text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
adit-chandra/tensorflow
tensorflow/python/keras/utils/kernelized_utils.py
Python
apache-2.0
4,631
[ "Gaussian" ]
63444e02acdba06fc5a82429301583940f8aef7ae8654c7d121a6d9a522bab00
# -*- coding: utf-8 -*- """Functions to plot evoked M/EEG data (besides topographies).""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # C...
kambysese/mne-python
mne/viz/evoked.py
Python
bsd-3-clause
108,723
[ "Gaussian" ]
c90a7bb4f23679901a55edebb37c6cc167502f4a352d467ab40392367650f42e
import enum import inspect import pydoc import unittest from collections import OrderedDict from enum import Enum, IntEnum, EnumMeta, unique from io import StringIO from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL # for pickle tests try: class Stooges(Enum): LARRY = 1 CURLY = 2 ...
technologiescollege/Blockly-rduino-communication
scripts_XP/Lib/test/test_enum.py
Python
gpl-3.0
57,439
[ "MOE" ]
a58fbd5714f0e9ee0c58b31b6a1ffd75a15f3aa0a8bf4fb7c397154d50f1f3fe
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
marscher/mdtraj
MDTraj/utils/arrays.py
Python
lgpl-2.1
6,633
[ "MDTraj" ]
9e1d3cb17c759135e47abb7792c2f407565032477aa34b8642a9e859e9bd9133
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Uninett AS # # This file is part of Network Administration Visualized (NAV). # # NAV is free software: you can redistribute it and/or modify it under # the terms of the GNU General Public License version 3 as published by # the Free Software Foundation. # # This program is...
hmpf/nav
python/nav/toposort.py
Python
gpl-3.0
2,484
[ "VisIt" ]
b2b5f5ea286ac95c4ec837d73dcf96103ff62e2fa30e470e8352e0c7564429e5
"""Test automatically write out of restart files""" import os from gpaw import GPAW from ase import Atom, Atoms from gpaw.test import equal ##endings = ['nc'] endings = ['gpw'] try: import _hdf5 endings.append('hdf5') except ImportError: pass for ending in endings: restart_wf = 'gpaw-restart-wf.' + e...
ajylee/gpaw-rtxs
gpaw/test/refine.py
Python
gpl-3.0
1,139
[ "ASE", "GPAW" ]
5ec6252ab266baf16c571e0767b3821c367e24b30b827ee1fd11dc1b5adcd0da
import ase.db from ase.structure import molecule from ase.optimize.bfgs import BFGS from ase.data.g2_1 import molecule_names, atom_names from gpaw import GPAW, PW, Mixer c = ase.db.connect('g2-1.db') for name in molecule_names + atom_names: id = c.reserve(name=name, calculator='gpaw') if id is None: ...
robwarm/gpaw-symm
gpaw/test/big/g2_1/g21gpaw.py
Python
gpl-3.0
929
[ "ASE", "GPAW" ]
7d3300494b2169a12bf192ff7cf453b8e455fc63bfb173b95ef9ace188d6775c
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * import glob import os import tempfile class Ncl(Package): """NCL is an interpreted language desi...
iulian787/spack
var/spack/repos/builtin/packages/ncl/package.py
Python
lgpl-2.1
10,745
[ "NetCDF" ]
752ea9c71b5cfa12d08c2eaa5df3de9fa8059af9b61b472ab331ea00ee961b82
import datetime from django.core.exceptions import ImproperlyConfigured from django.test import TestCase, override_settings from django.views.generic.base import View from .models import Artist, Author, Book, Page @override_settings(ROOT_URLCONF='generic_views.urls') class ListViewTests(TestCase): @classmethod...
elena/django
tests/generic_views/test_list.py
Python
bsd-3-clause
12,537
[ "MOOSE" ]
131b892a853ad07d142a4329cb52534e339ca16bffde75c7039defd89b547328
# #-*- coding:utf-8 -*- """ Gentoo-Keys - Log.py Logging module, placeholder for our site-wide logging module @copyright: 2012 by Brian Dolbec <dol-sen> <dol-sen@users.sourceforge.net> @license: GNU GPL2, see COPYING for details. """ import logging import time import os from gkeys.fileops import en...
gentoo/gentoo-keys
gkeys/gkeys/log.py
Python
gpl-2.0
2,286
[ "Brian" ]
90365e4b9724aa9dc06e7f3a16b08a8a4af7562ccb2107f532c28daf8f641bf2
"""Module level filter.""" __RCSID__ = '$Id$' from DIRAC.FrameworkSystem.private.standardLogging.LogLevels import LogLevels DOT = '.' LEVEL = '__level__' class ModuleFilter(object): """Filter module to set loglevel per module. :: Resources { LogBackends { <backend> { ...
andresailer/DIRAC
Resources/LogFilters/ModuleFilter.py
Python
gpl-3.0
2,944
[ "DIRAC" ]
4ee789b489ae05e961e625f2f1dead306e748bf7fe499d5e0ae631f1d720ba1e
# -*- coding: utf-8 -*- """ molvs.validations ~~~~~~~~~~~~~~~~~ This module contains all the built-in :class:`Validations <molvs.validations.Validation>`. :copyright: Copyright 2016 by Matt Swain. :license: MIT, see LICENSE file for more details. """ import logging from rdkit import Chem from .errors import StopV...
bp-kelley/rdkit
rdkit/Chem/MolStandardize/validations.py
Python
bsd-3-clause
7,161
[ "RDKit" ]
55d41712a30966c963125029622ede30d48702eebc9ddab4cf0e9a2f45839d37
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
jjneely/ansible
lib/ansible/utils/__init__.py
Python
gpl-3.0
51,023
[ "VisIt" ]
ba01268d58ff783bd518d1e964f733b425753b5d4f5c5ff4169dcd6adc08559c
#!/usr/bin/env python #pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simu...
liuwenf/moose
python/MooseDocs/tests/latex/test_generation.py
Python
lgpl-2.1
2,724
[ "MOOSE" ]
1ed4ea09a0efe711589131726633070c6f7a67d10e69e847e09dc24e496513ac
#**************************************************************************** # Copyright (C) 2013 SUNCAT # This file is distributed under the terms of the # GNU General Public License. See the file `COPYING' # in the root directory of the present distribution, # or http://www.gnu.org/copyleft/gpl.txt . #**************...
chuanshi/ase-espresso
utils.py
Python
gpl-3.0
3,681
[ "ASE", "ESPResSo" ]
3451bf80c6a41373a56c60ae46d8728d0d3d4428098f6c4a84d9934861b91a76
# Copyright 2006-2010 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """ Bio.AlignIO support for the "stockholm" format (used in the PFAM database). You are expe...
asherkhb/coge
bin/last_wrapper/Bio/AlignIO/StockholmIO.py
Python
bsd-2-clause
24,012
[ "BioPerl", "Biopython" ]
8e457b97a00f76ddc1ccafa90e8c5220362a23ced0026849c7fc2b49985ca2ad
class VehicleInfo(object): def __init__(self): """ waf_target: option passed to waf's --target to create binary default_params_filename: filename of default parameters file. Taken to be relative to autotest dir. extra_mavlink_cmds: extra parameters that will be passed to mavproxy ...
fhedberg/ardupilot
Tools/autotest/pysim/vehicleinfo.py
Python
gpl-3.0
15,380
[ "Firefly" ]
ec9c97b483d15dd8954ef4f4ee521843a4fd145cf2ccb062a3fcc87441bdf82b
import re from setuptools import setup version = re.search( '^__version__\s*=\s*"(.*)"', open('xenoGI/xenoGI.py').read(), re.M ).group(1) with open("README.rst", "rb") as f: long_descr = f.read().decode("utf-8") setup( name = "xenoGI", packages = ["xenoGI"], entry_points = { ...
ecbush/xenoGI
setup.py
Python
gpl-3.0
997
[ "Biopython" ]
fbf7411adcc40890f685c10dd0bd2c54c670e577cba6a992c0472d0dbf289d8a
"""Examine and query coverage in sequencing experiments. Provides estimates of coverage intervals based on callable regions """ import collections import itertools import os import shutil import yaml import pybedtools import numpy as np import pysam import toolz as tz from bcbio import bam, utils from bcbio.bam impor...
lbeltrame/bcbio-nextgen
bcbio/variation/coverage.py
Python
mit
13,646
[ "pysam" ]
2025b49faa0789ebabc3abfac5f2960c30369f3271ff5777b47f5f657be36bd5
## ENVISIoN ## ## Copyright (c) 2021 Gabriel Anderberg, Didrik Axén, Adam Engman, ## Kristoffer Gubberud Maras, Joakim Stenborg ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1. ...
rartino/ENVISIoN
envisionpy/hdf5parser/vasp/force_parser.py
Python
bsd-2-clause
8,153
[ "VASP" ]
56c404c92613eae8a9d62c8528a034b8025056b799be873de1a9319eea2c6d5e
# parsetree.py # Copyright (C) 2006, 2007, 2008 Michael Bayer mike_mp@zzzcomputing.com # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """defines the parse tree components for Mako templates.""" from mako import exceptions, ast, util, filters...
gabriel/shrub
lib/mako/parsetree.py
Python
mit
12,857
[ "VisIt" ]
97941fd6ca5d9e88d92a571cedf085c465d8a99a195f938aeecc4b839e9a45b6
""" ProxyRepository class is a front-end to the proxy repository Database """ __RCSID__ = "$Id$" import time import random import types try: import hashlib md5 = hashlib except: import md5 from DIRAC import gConfig, gLogger, S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.Core.Security.X509Request ...
Sbalbp/DIRAC
FrameworkSystem/DB/ProxyDB.py
Python
gpl-3.0
43,778
[ "DIRAC" ]
5a22a072316eed3a0b34471e88af7b9f1ededb4073d6b81638c06d2816e3d79d
#! /usr/bin/env python import os import sys import argparse import numpy as np import settings from optimize.gradient_optimizer import GradientOptimizer, FindParams from caffevis.caffevis_helper import check_force_backward_true, read_label_file LR_POLICY_CHOICES = ('constant', 'progress', 'progress01') def get_pa...
antkillerfarm/antkillerfarm_crazy
deep-visualization-toolbox/optimize_image.py
Python
gpl-3.0
13,231
[ "NEURON" ]
7c21f8409cf41fe53c5279760ebdf05f1841aed043d337ad215300da3a6d0a30
# Write the benchmarking functions here. # See "Writing benchmarks" in the asv docs for more information. import os import sys import py_entitymatching as mg p = mg.get_install_path() datasets_path = os.sep.join([p, 'datasets', 'example_datasets']) snb = mg.SortedNeighborhood...
anhaidgroup/py_entitymatching
benchmarks/benchmark_sn_blocker.py
Python
bsd-3-clause
11,105
[ "VisIt" ]
4b37b954647502cddd04dbaad70b56c149b64d0d457bce991abeabadb74b37db
from __future__ import division from math import log10 class PAM(object): """Following in the footsteps of Margaret Dayhoff, we create a PAM matrices of arbitrary evolutionary distance and create a dict useful for scoring alignments in the Smith-Waterman or Blast algorithms """ def __init_...
aravindvrm/bnfo
Veerappan_bnfo601_exam2/PAM.py
Python
mit
6,365
[ "BLAST" ]
87d0156d9ec321a7515d4e3176d2eb8f89b017f4192b4d872fd14538c0d33db2
# MIT License # # Copyright (c) 2016 Anders Steen Christensen, Felix Faber # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
andersx/fml
fml/kernels/kernels.py
Python
mit
18,068
[ "Gaussian" ]
10744d7b09246f67d0d10b8df0966ba954decb7387f701f46888da36b26445c7
from setuptools import setup from os import path # Load the __version__ variable without importing the package already exec(open('gptransits/version.py').read()) this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.re...
Fill4/gp-tests
setup.py
Python
mit
1,423
[ "Gaussian" ]
3d0495d358ee66d860770d977b11c89261c2d023f2ba618ae5d0358ec09be684
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1950-2020/regrid_CO_emissions_n96e_360d.py
Python
gpl-3.0
19,123
[ "NetCDF" ]
cd80a0639eeba1e33112395428258f0a05fb4b8b4d83f80eb7f637697c43f35a
### Simulations of point sources in a field with a give array configuration ### import numpy.random as rd import shutil, os rd.seed() simDir = "./" def saveSourceList(sourcefile, al, de, flux): "Write the source list with flux" with open(sourcefile,"a") as f: f.write("%f %f %f \n"%(al,d...
bosscha/alma-calibrator
src/utils/simulpointsources.py
Python
gpl-2.0
2,511
[ "Gaussian" ]
dd4e3719821079cb38519a12c9cd28d3cb4fea94fce1915e0df67b7dfcb8f7b6
# peppy Copyright (c) 2006-2010 Rob McMullen # Licenced under the GPLv2; see http://peppy.flipturn.org for more info """Hyperspectral image processing filters This file is a repository of actions that operate on the HSI mode. """ import os, struct, mmap, math from cStringIO import StringIO from peppy.hsi.common impo...
robmcmullen/peppy
peppy/hsi/filter.py
Python
gpl-2.0
11,499
[ "Gaussian" ]
7ff3604bad2dd3ce0562552ed0095a5d7fc421b596e61e4a44f085fa56d6297d
import logging import os import pytest import sys from intermol.tests.testing_tools import convert_one_to_all, ENGINES logger = logging.getLogger('InterMolLog') # Make a logger for unit and system tests. testing_logger = logging.getLogger('testing') if not testing_logger.handlers: testing_logger.setLevel(logging...
shirtsgroup/InterMol
intermol/tests/test_all.py
Python
mit
3,789
[ "Amber", "Desmond", "Gromacs", "LAMMPS" ]
1fb75172fe2588eb1ecac8f3b765e38067ca50d0eab647f424550a526af49d25
""" .. testsetup:: from zasim.cagen import * """ # This file is part of zasim. zasim is licensed under the BSD 3-clause license. # See LICENSE.txt for details. from .bases import Neighbourhood from .utils import gen_offset_pos from .compatibility import one_dimension from itertools import product class SimpleN...
timo/zasim
zasim/cagen/neighbourhoods.py
Python
bsd-3-clause
6,573
[ "VisIt" ]
82853ecc3e93b9f18fa7021e7dc18da49e2b14bf7dae403fc6905a86b9bfb3b1
"""Data flow analysis based on miasm intermediate representation""" from builtins import range from collections import namedtuple, Counter from pprint import pprint as pp from future.utils import viewitems, viewvalues from miasm.core.utils import encode_hex from miasm.core.graph import DiGraph from miasm.ir.ir import A...
mrphrazer/miasm
miasm/analysis/data_flow.py
Python
gpl-2.0
72,532
[ "VisIt" ]
4942404816713458368044aff7919f5801a112c7f8fc2e17ea06d4f13b517b4f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import os import re import json import datetime from copy import deepcopy from monty.json import MontyDecoder from pymatgen.core.structure import Structure from pymatg...
aykol/pymatgen
pymatgen/alchemy/materials.py
Python
mit
14,263
[ "VASP", "pymatgen" ]
51f6a4df4de783b5fb6dd985b2b72e390661e8c3e5f92c9fd69f34466ac826f2
""" Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@diku.dk>, Rune M. Friborg <runef@diku.dk> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrict...
runefriborg/pycsp
examples/problems/greenlets_exception_propagation_from_io_functions_pre_0.7.1.py
Python
mit
1,602
[ "Brian" ]
447f1b71ab9dff51852e0c5d2b5f0664376db0c5d48406782913f0388410d8e5
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # sendrequest - let user send request to other user or vgrid/resource admin # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the te...
heromod/migrid
mig/shared/functionality/sendrequest.py
Python
gpl-2.0
4,912
[ "Brian" ]
aa1c3cd261a5ac25cf728b5f6ac2e4ca1cec81dd3bd0811f77d015c376e52a46
import uuid import json import os # ######## Default Values ########### # Define default widget size DEF_HEIGHT = 700 DEF_WIDTH = 1098 # Same as cell width of Jupyter DEF_BACKGROUND_COLOR = '#FFFFFF' HTML_TEMPLATE_FILE = 'template.html' STYLE_FILE = 'default_style.json' STYLE_FILE=os.path.abspath(os.path.dirname(__...
idekerlab/py2cytoscape
py2cytoscape/cytoscapejs/viewer.py
Python
mit
3,652
[ "Cytoscape" ]
b3bdfc69aebd312ebe7697a0cffffca970f114f6e09980ca14b0aa07b6b2a255
"""Define several typing for convenient use""" from typing import Any, Callable, List, Optional, Union import numpy as np from pymatgen.core import Molecule, Structure OptStrOrCallable = Optional[Union[str, Callable[..., Any]]] StructureOrMolecule = Union[Structure, Molecule] VectorLike = Union[List[float], np.ndarr...
materialsvirtuallab/megnet
megnet/utils/typing.py
Python
bsd-3-clause
324
[ "pymatgen" ]
3c82c4a97a9341fa8302d582e5951189c58fb5aa89086984c1cf8d1397a18f90
# coding: utf-8 from __future__ import division, unicode_literals """ This module define the various drones used to assimilate data. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "1.0" __maintainer__ = "Shyue Ping Ong" __email__ = "shyuep@gmail.com" __date__...
rousseab/pymatgen
pymatgen/apps/borg/hive.py
Python
mit
17,151
[ "Gaussian", "VASP", "pymatgen" ]
632acca4f7e134d1be006d85eba2cd81458ccce61547832c70b9478a1648e366
# $Id$ # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ Template for a plugin ====================== You can use this file to write plugins that conform to the plugin API. Names that are supposed to b...
jandom/GromacsWrapper
gromacs/analysis/plugins/template_plugin.py
Python
gpl-3.0
7,243
[ "Gromacs" ]
9f3b08094dfa1bc92e7d69f6f40a242cbd6a6973e3acb01c9c0ae4b10a35328a
# -*- coding: utf-8 -*- """ Copyright (C) 2008-2012 Wolfgang Rohdewald <wolfgang@rohdewald.de> The function isAlive() is taken from the book "Rapid GUI Programming with Python and Qt" by Mark Summerfield. kajongg is free software you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
jsj2008/kdegames
kajongg/src/util.py
Python
gpl-2.0
13,390
[ "FEFF" ]
ac9ead53bbdff454eb1c90e0b06b879104ab754622b2adb89051c6890c6a0fae
# -*- coding: utf8 -*- import sys, os sys.path.append(os.path.abspath('.')) import re from operator import attrgetter import difflib # Pylons model init sequence import pylons.test import logging from quanthistling.config.environment import load_environment from quanthistling.model.meta import Sessi...
FrankNagel/qlc
src/webapp/quanthistling/scripts/annotations/annotations_for_loos1998.py
Python
gpl-3.0
9,978
[ "ASE" ]
34062aaa4cf9f0b99ee71daed76f83986cce55dad4b1ca4e3008c2e0f27a5bda
import glob import os import shutil import subprocess import sys import threading import time import urllib import zipfile DIRECTORY = "octopus-code-distribution" ARCHIVE = "octopus-code-distribution.zip" URL = "http://www.cs.mcgill.ca/~dprecup/workshops/ICML06/Octopus/%s" % ARCHIVE setup = { "env_dir" : DIRECTORY ...
hsidky/OpenANN
benchmarks/octopusarm/benchmark.py
Python
gpl-3.0
4,161
[ "Octopus" ]
0da6d137d5e23f1cf6c1ad3a9d72807197e40e893202c80509b8997c9310f898
# -*- coding: utf-8 -*- """ (c) 2015 - Copyright Red Hat Inc Authors: Pierre-Yves Chibon <pingou@pingoured.fr> """ from __future__ import unicode_literals, absolute_import import unittest import shutil import sys import os import json from mock import patch, MagicMock sys.path.insert(0, os.path.join(os.path...
pypingou/pagure
tests/test_pagure_flask_api.py
Python
gpl-2.0
11,231
[ "VisIt" ]
d22cf3d7ab0bb6bfd40b1f161a16390bcd8608ab524e6ffea12e691afb5f15ef
from lettuce import step, world import time from questionnaire.features.pages.skip_rule_modal import SkipRuleModalPage from questionnaire.models.skip_rule import SkipQuestion, SkipSubsection from questionnaire.models import QuestionGroupOrder, Questionnaire, Question, QuestionGroup, QuestionOption, Section, \ SubSe...
eJRF/ejrf
questionnaire/features/skip_rule_steps.py
Python
bsd-3-clause
14,899
[ "VisIt" ]
904f19af3f9dcf39ece565e0ac3894e6ae3cecb9dd13dd03e520c26cb2e05eaa
# # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, sublicen...
Distrotech/scons
src/engine/SCons/Taskmaster.py
Python
mit
39,803
[ "VisIt" ]
ec8bd3b0cb3671b0fe6937e7eb498a45ce40ec5657597c6ccc768bf394ecf181
from __future__ import (absolute_import, division, print_function,unicode_literals) import numpy as np def median_absolute_deviation(a, axis=None): """Compute the median absolute deviation. Returns the median absolute deviation (MAD) of the array elements. The MAD is defined as ``median(abs(a - median(a))...
giffordw/astrofuncs
astrostats/__init__.py
Python
mit
5,519
[ "Gaussian" ]
15adb14a16df0833fdef223de71a10721fbdd9a567b973ba5deea2f135626ae2
; PYTHON ; ; Author: Kate Willett ; Created: 1 February 2013 ; Last update: 15 January 2015 ; Location: /data/local/hadkw/HADCRUH2/UPDATE2014/PROGS/HADISDH_BUILD/ ; GitHub: https://github.com/Kate-Willett/HadISDH_Build ; ----------------------- ; CODE PURPOSE AND OUTPUT ; ----------------------- ; This code read...
Kate-Willett/HadISDH_Build
make_area_avg_ts.py
Python
cc0-1.0
33,255
[ "NetCDF" ]
fee9e31738921bea32d6b4c436518237a61c7eeb75bb8af5ec8dc9444c9bad98
#!/usr/bin/env python #-*- encoding: utf-8 -*- """ GUI front end for qrencode based on the work of David Green: <david4dev@gmail.com> https://launchpad.net/qr-code-creator/ and inspired by http://www.omgubuntu.co.uk/2011/03/how-to-create-qr-codes-in-ubuntu/ uses python-zbar for decoding from files and webcam """ impo...
BenjaminHae/qtqr
qtqr.py
Python
gpl-3.0
41,775
[ "VisIt" ]
f546bafa56ee8280907656ad5cb4a2af50edcd0b6790023dc900c5c02f4c9db9
# Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
jat255/hyperspy
hyperspy/tests/component/test_component_active_array.py
Python
gpl-3.0
2,393
[ "Gaussian" ]
74948053bac27048cb0afaa47953c9a8cd04bc11292ce49c064d5be339e5ee4a
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation010.py
Python
bsd-2-clause
3,237
[ "NEURON" ]
005ca84f6adc1c1a55586a0828536061ca9db993db6cec01643f331d8645bcef
""" Test LMS Notes """ from __future__ import absolute_import import random from datetime import datetime from unittest import skip from uuid import uuid4 from six.moves import range from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.fixtures.edxnotes impo...
ESOedX/edx-platform
common/test/acceptance/tests/lms/test_lms_edxnotes.py
Python
agpl-3.0
58,877
[ "VisIt" ]
5d932464512371b6ec72263f6d57693c2813e7b705813b4be2b07c4394c3b960
####################################### # pyGPGO examples # sineGP: Fits a Gaussian Process on a sine-like function. ####################################### import numpy as np from pyGPGO.surrogates.GaussianProcess import GaussianProcess from pyGPGO.covfunc import squaredExponential import matplotlib.pyplot as plt if...
hawk31/pyGPGO
examples/sineGP.py
Python
mit
1,282
[ "Gaussian" ]
18875bface4a2b9b6caff0eb1f21142816da0c6398f6bdc7c334f1a1a8a90a2d
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
kdmurray91/scikit-bio
skbio/stats/distance/tests/test_bioenv.py
Python
bsd-3-clause
9,907
[ "scikit-bio" ]
a0dfc33cec6641729928a1165b884f1d48ab6a358c88448a4e3b208f160ff499
import camera class firefly(camera.camera): def __init__(self, camera_configuration, opencv_id): camera.camera.__init__(self, camera_configuration, opencv_id)
ppp2006/runbot_number0
qbo_stereo_anaglyph/hrl_camera/src/hrl_camera/deprecated/firefly.py
Python
lgpl-2.1
172
[ "Firefly" ]
d70047aadf15cf1c3937b42702fbb613404175d8293394af5e3269c3844edc66
## ## Copyright Javier Velez <velezj@alum.mit.edu> April 2017 ## All Rights Reserved ## import logging logger = logging.getLogger( __name__ ) ## # # This file contains utilitiesfor nodes. # Most important is the Visitor pattern for searching the node graph import collections ##=====================================...
velezj/well_posed_problems
definer_d/node_utilities.py
Python
mit
4,991
[ "VisIt" ]
95e41fe59fe1ea0cb2eb3aa046c31a3218853a26b5a0f40c1c4a04b33fcadf43
# Copyright 2014-2018,2021 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
sunqm/pyscf
pyscf/pbc/mpitools/mpi_load_balancer.py
Python
apache-2.0
6,685
[ "PySCF" ]
b861cf8f067538eaa77c1b8d679b2fb9a4007c82000f528559bdf9f711b5566a
# Computes the gaussian gradients on a boxm_alpha_scene import bvpl_octree_batch; import os; bvpl_octree_batch.register_processes(); bvpl_octree_batch.register_datatypes(); class dbvalue: def __init__(self, index, type): self.id = index # unsigned integer self.type = type # string print("Computing Ste...
mirestrepo/voxels-at-lems
bvpl/bvpl_octree/steerable_gauss_filters/init_response_scene.py
Python
bsd-2-clause
1,977
[ "Gaussian" ]
5f6a9af39e6d2d0b090849d141b76dbed5c5e9977f8678c702ec883c79619c93
# # @file TestFunctionDefinition_newSetters.py # @brief FunctionDefinition unit tests for new set function API # # @author Akiya Jouraku (Python conversion) # @author Sarah Keating # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was gen...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestFunctionDefinition_newSetters.py
Python
bsd-3-clause
4,286
[ "VisIt" ]
a6c72644f57910e4fac95a63151007f273271dc71333cacaef5611fb96a2e78d
#!/usr/bin/env python # -*- coding: utf-8 -*- # # # www.genesilico.pl # #creates ranked 3D models of macromoleular complexes #based on experimental restraints and a whole complex shape. __author__ = "Joanna M. Kasprzak" __copyright__ = "Copyright 2010, The PyRy3D Project" __credits__ = ["Janusz Bujnicki"] __licen...
mdobrychlop/smart_p3d
cluster_complexes_3ok.py
Python
gpl-3.0
22,004
[ "Biopython" ]
c55ca3ae788609924a344aaf81f0036302aa67a8e599771406f280ed63bf5c9f
# Copyright (C) 2014 Red Hat, Inc. Neependra Khare <nkhare@redhat.com> # Copyright (C) 2014 Red Hat, Inc. Bryn M. Reeves <bmr@redhat.com> # This file is part of the sos project: https://github.com/sosreport/sos # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it...
slashdd/sos
sos/report/plugins/kubernetes.py
Python
gpl-2.0
8,206
[ "CDK" ]
7962c3f6a3daa59dc04509d095360dc4ff41d1415e588b6b7d8ce00a14e8e57e
from __future__ import division import numpy as np np.random.seed(1234) # seed random number generator srng_seed = np.random.randint(2**30) from keras.models import Sequential from keras.optimizers import SGD from keras_extensions.logging import log_to_file from keras_extensions.rbm import GBRBM, RBM from...
bnsnapper/keras_extensions
examples/test_dbn.py
Python
mit
3,318
[ "Gaussian" ]
4819d5eeaac457b2d1099c838d06a9a01e722a42b87beae083cd28c4c8f1e84d
import unittest from os import path import tempfile from uncle_PSL import psl2sam class ExamplePsl2sam(unittest.TestCase): def _parse_sam(self, fname): """ Simple parsing of SAM files. """ fh = open(fname, 'r') lines = [l.split() for l in fh if not l.startswith('@')] res = [] ...
bsipos/uncle_psl
uncle_PSL/tests/test_psl2sam.py
Python
mpl-2.0
1,074
[ "BWA" ]
5f7d3014f59930ac1866366ab9bf00cd5066d6f6cf90dab6a34667d7e4cbd9b7
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Tools for skipping data tests in cclib.""" def skipForParser(parser, msg): """Return a decorator that skips the t...
cclib/cclib
test/data/skip.py
Python
bsd-3-clause
1,173
[ "cclib" ]
f266f3a0d885d93068a5cf08c9d8603a110ce9d46395f4856716ad26004e071f
import cv2 as CvObject import numpy as np # PART 1 - Introduction # Topics # >> Read frames from camera # >> Baic Filters (Smoothening,blurring) # >> Morphological Transformation # >> Edge Detection Selext_WebCam = 0 Select_External_Camera = 1 CamTitle = "MyCam" # Store the captured video inside cap va...
yashp241195/OpenCVTutorial
BasicFilters.py
Python
apache-2.0
8,245
[ "Gaussian" ]
ffe7d3acf220ac0c38d2a18e87c3ae7212fbff41a8923666524ec1f5d19f3426
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
michaelrup/scancode-toolkit
src/licensedcode/match_hash.py
Python
apache-2.0
3,265
[ "VisIt" ]
a8139aacc23dae4375f8ae9fff59453de30db1afb22ef0db62b2c961d9f2782d
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Generate RGB colours suitable for distinguishing categorical data. This module provides a class that implements a spiral 'path' through HSV colou...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Graphics/ColorSpiral.py
Python
gpl-2.0
7,257
[ "Biopython" ]
6891f1faf8f6cf71728c0e3648617cf4fec87f1c6cee6801ed463db808d42559
# Copyright (C) The University of Auckland # OpenCOR is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # OpenCOR is distributed in the ...
agarny/opencor
cmake/check_python_package.py
Python
gpl-3.0
834
[ "OpenCOR" ]
e5d13286b5f909a420850dfdae299cff9828497aa949fa826cbeb113ce0043a9
# # Copyright (C) 2020 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
fweik/espresso
testsuite/python/utils.py
Python
gpl-3.0
3,072
[ "ESPResSo" ]
3d5c0de2d0a7d0e6596b336826a03e309839ee8fad583a2acfd647898c40c036
# -*- coding:utf-8 -*- # Copyright (c) 2015, Galaxy Authors. All Rights Reserved # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import datetime import time import urllib import json from common import util from common import pb2dict from bootstrap import settings ...
imotai/galaxy
platform/src/trace/views.py
Python
bsd-3-clause
12,021
[ "Galaxy" ]
d3dc508de3d46dac39196bee0bdee9bfe26498f91c087d148d4bd9161465d31f
#!/usr/bin/env python """ Quant-seq pipeline """ from argparse import ArgumentParser import os import sys from . import toolkit as tk import cPickle as pickle from pypiper import Pypiper __author__ = "Andre Rendeiro" __copyright__ = "Copyright 2015, Andre Rendeiro" __credits__ = [] __license__ = "GPL2" __version__ ...
afrendeiro/pipelines
pipelines/quantseq.py
Python
gpl-2.0
8,608
[ "HTSeq" ]
e12fe9b8bb345cede15606cdd4d58ef6b1ff07fc5f42a9cd7082f14956e8888f
# encoding: utf-8 """ Enable wxPython to be used interacive by setting PyOS_InputHook. Authors: Robin Dunn, Brian Granger, Ondrej Certik """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the ...
ArcherSys/ArcherSys
eclipse/plugins/org.python.pydev_4.5.5.201603221110/pysrc/pydev_ipython/inputhookwx.py
Python
mit
6,380
[ "Brian" ]
1af065c77c52d23c68367c3e03e949f3a08b6d7758f28de2f03c50cd8d3178a2
#!/usr/bin/env python # -*- coding: utf-8 -*- """Display total length of sequences in a fasta file. Usage: %program file.fasta""" import sys import re try: from Bio import SeqIO except: print "This program requires the Biopython library" sys.exit(0) try fasta_file = sys.argv[1] # Input fasta f...
enormandeau/Scripts
fasta_total_length.py
Python
gpl-3.0
594
[ "Biopython" ]
69beab30343154fb9c4efdb53bca5c56411c92421fc5ce2315722c5a7c7a8ce2
# -*- coding: utf-8 -*- """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ import os from distutils.sysconfig import get_python_inc #from distutils import setup, find_packages, Extension from setuptools import setup, Extension import platform import sys import imp def system(c...
maartenbreddels/vaex
py2app.py
Python
mit
8,952
[ "Galaxy" ]
0032fc4653ec94a23dcdaa8ffc3756d00b88250c18e98ed9d99ac6bacf169ca3
#!/usr/bin/env python #-*- coding:utf-8 -*- import logging import inspect from collections import namedtuple import miasm2.expression.expression as m2_expr from miasm2.expression.simplifications import expr_simp from miasm2.expression.modint import moduint, modint from miasm2.core.utils import Disasm_Exception, pck f...
rom1sqr/miasm
miasm2/core/asmbloc.py
Python
gpl-2.0
52,468
[ "VisIt" ]
7297a3d90b6d4ea6ff281ec02c73b989f111e6aada7a29aef5ba11c60d870e2c
""" Convenience routines for performing common operations. @since: 0.28 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import os, sys, logging from zeroinstall import support from zeroinstall.support import tasks def get_selections_gui(iface_uri, gui_args, t...
timdiels/zeroinstall
zeroinstall/helpers.py
Python
lgpl-2.1
4,110
[ "VisIt" ]
75f46f3cc70a2bc88048f820eecce9156d08ade1af727f702c2a6542a7990263
# -*- coding: utf-8 -*- # # pymatgen documentation build configuration file, created by # sphinx-quickstart on Tue Nov 15 00:13:52 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
gmatteo/pymatgen
docs_rst/conf.py
Python
mit
11,378
[ "pymatgen" ]
f6c7cb94a99db55f9d2445561697c0202e494e503c3690b6f90f80cae9cc6622
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Tinker(CMakePackage): """The Tinker molecular modeling software is a complete and general...
iulian787/spack
var/spack/repos/builtin/packages/tinker/package.py
Python
lgpl-2.1
758
[ "TINKER" ]
6799903ca9db4744270a729c16988db71bdd45c8b9c514ee8ad517e93cc74fc3
# -*- coding: utf-8 -*- """ Acceptance tests for CMS Video Module. """ from nose.plugins.attrib import attr from unittest import skipIf from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage from ...pages.studio.video.video import VideoComponentPage from ...fixtures.c...
DefyVentures/edx-platform
common/test/acceptance/tests/video/test_studio_video_module.py
Python
agpl-3.0
10,690
[ "VisIt" ]
0443b8b5b047cc0992cd598f93c270d0e8da6b1e17078be5cae963d0d061ac9c
"""PipelineTimeseries.py =============================== """ ############################################################# # Classes and functions for pipeline_timeseries_clustering.py ############################################################# import sys import os import itertools import math import numpy as np i...
CGATOxford/CGATPipelines
obsolete/PipelineTimeseries.py
Python
mit
51,341
[ "Bioconductor" ]
1c8f164ac14e59e07cd30fb517e780151582d97d8ac829c611bb1d35c17af2f5
#!/usr/local/bin/python # -*- coding: utf-8 -*- from addict import Dict __all__ = [ "introduction", "pallet_town", "viridian_city", "viridian_city_2", "viridian_forest", "pewter_city", "route_1", "route_3", "route_5", "route_10", "route_11", "route_12",...
itsthejoker/Pokemon-Homage
lemonyellow/data/dialogue.py
Python
mit
163,756
[ "Amber", "BLAST", "GULP", "VisIt" ]
62b291a5d818f95b04d1d0ee0fe80bc125753a1fcdf9b64612cc7cdb3dfc71ae
# Copyright 2005 Joe Wreschnig # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. from quodlibet import _ from quodlibet...
Mellthas/quodlibet
quodlibet/ext/events/autorating.py
Python
gpl-2.0
1,076
[ "Brian" ]
48716455f17ed35ed399f0d5db5e0808b04b9c1df7f5c54e542799d5f7958d3d
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
jwlawson/tensorflow
tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py
Python
apache-2.0
21,355
[ "Gaussian" ]
886c55a029f645358971e6f7c9693546886fea4c3536234e14048df69b98aa0f
#!/usr/bin/env python ######################################################################## # File : dirac-wms-get-normalized-queue-length.py # Author : Ricardo Graciani ######################################################################## """ Report Normalized CPU length of queue This script was used by the...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_wms_get_normalized_queue_length.py
Python
gpl-3.0
1,340
[ "DIRAC" ]
c22477612fdcabdc1785165b9e12a7e12deb032ef4b3737af75e47fc71ec5a14
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Module for Latent Semantic Analysis (aka Latent Semantic Indexing) in Python. Implements fast truncated SVD (Singular Value Decomp...
wtgme/labeldoc2vec
gensim/models/lsimodel.py
Python
lgpl-2.1
34,603
[ "Gaussian" ]
ae9ec15b2ee6a31aa00d30ed0b95a5e5f821c14f14a727d8af9c74a56bc70999
# -*- coding: utf-8 -*- # vim: set fileencodings=utf-8 __docformat__ = "reStructuredText" import os import sys import unittest from requests.exceptions import ConnectionError from docker import Client from docker.utils import kwargs_from_env from itests import SimpleRunTest, JavaPropertiesTest, \ EnvironmentVa...
thingslogic/thingslogic-scd
crate/tests/tests.py
Python
apache-2.0
2,116
[ "VisIt" ]
3abd03ffeecf4d811e23620ea8282ef93438767671950249fbf47b90c4f96ec0
from unittest import TestCase import nltk from nltk.tokenize.punkt import PunktSentenceTokenizer try: from unittest import mock except ImportError: import mock from iepy.preprocess.tokenizer import en_tokenize_and_segment, _get_tokenizer class TestTokenization(TestCase): def check_expected_words_are_in...
machinalis/iepy
tests/test_tokenizer.py
Python
bsd-3-clause
6,982
[ "VisIt" ]
5f95df00ae6389f228e483e3f7666253fe2c7cf76aa69af90e2113b1e5621f47
# -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # License: BSD 3 clause from __future__ import print_function import numpy as np from scipy import linalg, optimize from ..base import BaseEstimator, RegressorMixin from ..metrics...
nhejazi/scikit-learn
sklearn/gaussian_process/gaussian_process.py
Python
bsd-3-clause
34,771
[ "Gaussian" ]
babf623410cadd49703d27683275179f5931bfc0ea43d29a7222b89a5b6098c1
from django.db import models class Report(models.Model): ANACONDA = 'AN' ASP_EXPLORER = 'AE' ASP_SCOUT = 'AS' BELUGA_LINER = 'BE' COBRA_MK_III = 'C3' COBRA_MK_IV = 'C4' DIAMONDBACK_EXPLORER = 'DE' DIAMONDBACK_SCOUT = 'DS' DOLPHIN = 'DO' EAGLE = 'EA' FEDERAL_ASSAULT_SHIP = 'F...
johnobrien/edmw
reports/models.py
Python
mit
3,102
[ "ORCA" ]
3b9a660dfc86947aa1972d678212424386a3218a9b7a472c01f020d97c372cee
#!/usr/bin/env python """ A Python implementation of ANSI X9.31 using AES 128, following: http://csrc.nist.gov/groups/STM/cavp/documents/rng/931rngext.pdf Copyright (C) 2015 - Brian Caswell <bmc@lungetech.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associat...
f0rki/cb-multios
tools/generate-polls/generator/ansi_x931_aes128.py
Python
mit
4,116
[ "Brian" ]
64b6774bc15426eca4d5a4c6500f098749d93484c0c72cca92dbe61406accdf6
"""Provides simple class to compute (reproducible) random prices""" from random import Random as _Random from math import fabs as _fabs from collections import namedtuple as _nt _STATE = _nt('_STATE', ['last_price', 'random', 'iter']) class RandomPrices(object): """\ Provides iterable class producing rando...
wintoncode/winton-kafka-streams
examples/binning/random_prices.py
Python
apache-2.0
2,495
[ "Gaussian" ]
73f54b701fdb71cb9d3074cfb053325c71706c44d23b009c2ecb00b668772a10
# -*- coding: utf-8 -*- # # brette_gerstner_fig_2c.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the ...
hakonsbm/nest-simulator
pynest/examples/brette_gerstner_fig_2c.py
Python
gpl-2.0
3,375
[ "NEURON" ]
17402399cdb51c48da6d7e68195b8eeadf7596999f2f690bcb857d788b132d48
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import os import errno import logging from decorator import decorator ...
beaker-project/beaker
Server/bkr/server/identity.py
Python
gpl-2.0
10,773
[ "VisIt" ]
de72c6de418ccb0f09a6696057586591a950e25b1e82b2c03a935b52d5fa9465
# # Copyright 2013-2020 Universidad Complutense de Madrid # # This file is part of PyEmir # # SPDX-License-Identifier: GPL-3.0+ # License-Filename: LICENSE.txt # """Test recipe to find point sources""" from __future__ import division import sep import numpy import astropy.io.fits as fits from astropy.convolution im...
guaix-ucm/pyemir
emirdrp/recipes/aiv/pointsources.py
Python
gpl-3.0
6,641
[ "Gaussian" ]
cf961744c0fd3e6efa337ed5922b7753b125c06d20147f017e0390e8705b0ded
#!/usr/bin/env python # Author: Andrew Jewett (jewett.aij at g mail) # http://www.chem.ucsb.edu/~sheagroup # License: 3-clause BSD License (See LICENSE.TXT) # Copyright (c) 2011, Regents of the University of California # All rights reserved. man_page_text = """ nbody_by_type.py reads a LAMMPS data file ...
CFDEMproject/LAMMPS
tools/moltemplate/src/nbody_by_type.py
Python
gpl-2.0
25,571
[ "LAMMPS" ]
4bd3f39107b5d5aff32cd03d7f83a1b89afa105d704f85fdbe822097dcf86233
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'main.ui' # # Created: Thu Jul 16 13:01:04 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attribute...
Luindil/SXRD_Collect
sxrd_collect/views/UiFiles/mainUI.py
Python
gpl-3.0
29,229
[ "CRYSTAL" ]
5ce6634006412c21bb0f7a10aefc2b1a5d448ee368625bcf3418659912754839
""" mice.py adds a few basic mouse handlers to the image viewer """ """ ...And this file is part of Pynorama. Pynorama is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the Lice...
odraencoded/pynorama
code/pynorama/components/mice.py
Python
gpl-3.0
24,206
[ "FLEUR" ]
7e00bcee2b76c19d2020ddfa30ad9160be51ff2f388da956dddc7c7db4f39626
from fonAPI import FonApi fon = FonApi('401bfde5401d0bdce2edddba6bcaa1d4bc8e4d17091b92cd') #JC Testing git #brand = 'Samsung ' phone = 'Samsung Galaxy J3 Smartphone, Android, 5", 4G LTE, SIM Free, 8GB,' def phone_search(phone): '''function cycles through the website string and searches using fonoAPI. It sha...
armenvod/phone_match
demo.py
Python
mit
1,022
[ "Galaxy" ]
9dbc707173e62871c88cc4053584a64200f5a7fb727416029a661371f16421c6
""" The image module supports basic image loading, rescaling and display operations. """ from __future__ import (absolute_import, division, print_function, unicode_literals) from matplotlib.externals import six from matplotlib.externals.six.moves.urllib.parse import urlparse from matplotlib.ex...
rbalda/neural_ocr
env/lib/python2.7/site-packages/matplotlib/image.py
Python
mit
51,352
[ "Gaussian" ]
e3b1f13321dff040d4bed7b6a4c6c102ed31a5b0d38fb4e57e1652aa6903685a
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the G...
kkreis/espressopp
src/analysis/XPressure.py
Python
gpl-3.0
1,803
[ "ESPResSo" ]
99b69323bf002146706b47ccb5a1f01f5a6b794a9f19fd7471c0e260b43c4322