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
#! /usr/bin/env python ########### ## REMAP ## ########### ## ## first operational version: Matthias Aechner -- 2014 ## rewrite + generalization + options + optimization: Aymeric SPIGA -- March 2015 ## import netCDF4 as nc import ctypes as ct import numpy as np import os import time from optparse import OptionParser #...
aymeric-spiga/remap
py/remap.py
Python
gpl-2.0
17,599
[ "NetCDF" ]
72d54f5d7a3638e057e836ae6e14c8b47e921abb38118cdb8e66fac41a334d99
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/ior/package.py
Python
lgpl-2.1
2,584
[ "NetCDF" ]
21e6b771af6e3fd83757f8066b2dd16073b320a05cc12a1818fc6d121f896d18
''' Created on 28/09/2012 @author: Amr Hassan ''' import os import sys import struct import string import math import numpy from random import randrange import logging import PGDBInterface import h5py import numpy import time import ProcessTreeTraversal class SAGEDataReader: #The Module handles the data readi...
IntersectAustralia/asvo-tao
core/sageimport_mpi_HDF/SAGEReader.py
Python
gpl-3.0
12,776
[ "Galaxy" ]
fa48f024a1f18a29da72737d67bf4f0cb0daafffedd126cca9219a14ecb5202e
#!/usr/bin/env python # Author: Samuel Ponc\'e # Date: 30/04/2013 -- 11/09/2014 # Version: 1.3 # Script to compute the ZPR import sys import os import copy try: from rf_mods_seq import system except ImportError: import warnings warnings.warn("The system module is missing!") raise from rf_mods_seq import zpm im...
jmbeuken/abinit
scripts/deprecated/temperature_seq.py
Python
gpl-3.0
22,982
[ "ABINIT" ]
d97ee4e8c22064e830f689b33991ee448e5fd4621b9248ab97a5aeb92ebe919a
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # 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...
google-research/proteinfer
colab_evaluation_test.py
Python
apache-2.0
8,978
[ "BLAST" ]
8615f12979c2bc1ef9ca7b999b2f065477846825d55b4197884674e1739fa4ad
"""This demo program uses the interface to SNES solver for variational inequalities to solve a contact mechanics problems in FEniCS. The example considers a heavy hyperelastic circle in a box of the same size""" # Copyright (C) 2012 Corrado Maurini # # This file is part of DOLFIN. # # DOLFIN is free software: you ...
FEniCS/dolfin
demo/undocumented/contact-vi-snes/python/demo_contact-vi-snes.py
Python
lgpl-3.0
3,873
[ "VTK" ]
06952a6467cbb39d47ef3cc135f7885bda5bf4fb302adac1c7f9c2826cdf54dd
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2017 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
QuantumElephant/horton
horton/io/cp2k.py
Python
gpl-3.0
14,590
[ "CP2K", "Gaussian" ]
22e7029df253a675436b240d6c361ddb0543fb806deaf70e10e16c3e7289e595
import numpy as np from skimage.restoration._nl_means_denoising import _nl_means_denoising_2d, \ _nl_means_denoising_3d, \ _fast_nl_means_denoising_2d, _fast_nl_means_denoising_3d def nl_means_denoising(image, patch_size=7, patch_distance=11, h=0.1, multic...
Britefury/scikit-image
skimage/restoration/non_local_means.py
Python
bsd-3-clause
5,145
[ "Gaussian" ]
3d62803bb5787464b4e47330d65b08c9af5551700a513ee47fdfa0fe030417f2
def myargs(parser): parser.add_argument("-n", "--numcores", type=int, default=1, help="Number of concurrent jobs to process.") parser.add_argument("-c", "--cores-per-job", type=int, default=1, help="Number of cores to use.") parser.add_argument("-m", "--memo...
lpantano/ich-wrapper
ichwrapper/arguments.py
Python
mit
1,578
[ "Galaxy" ]
b078d9f607a7e01630e3ec22013e03ac918b79a660a250bee219a7401373270e
import numpy as np from gpaw.xc.kernel import XCKernel class LB94(XCKernel): """Correction to LDA to resemble asymptotic -1/r potential. See: van Leeuwen and Baerends, Phys.Rev.A vol 49 (1994) 2421 """ def __init__(self, beta=0.05): XCKernel.__init__(self, 'LDA') self.name =...
qsnake/gpaw
gpaw/xc/lb94.py
Python
gpl-3.0
995
[ "GPAW" ]
3838ab948c3d010bf1f3110a76dc4125e65095e24e8a6abd1c1de3a418988c6a
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html """ An Exten...
harterj/moose
python/MooseDocs/base/Extension.py
Python
lgpl-2.1
6,018
[ "MOOSE" ]
332442a0634e7270fd9bb929b4874b343d8ff6986e2a0868bb1ffa4f0485b941
"""Polynomial factorization routines in characteristic zero. """ from sympy.polys.galoistools import ( gf_from_int_poly, gf_to_int_poly, gf_degree, gf_from_dict, gf_lshift, gf_add_mul, gf_mul, gf_div, gf_rem, gf_gcd, gf_gcdex, gf_sqf_p, gf_factor_sqf, gf_factor) from sympy.polys.densebasic...
Cuuuurzel/KiPyCalc
sympy_old/polys/factortools.py
Python
mit
33,114
[ "Gaussian" ]
b4439862f1cec6e88d6447d4385133cb86b6e1c52e2aba14aa98d8d5ff01f995
"""PEP484 compatibility code.""" import re from pytype.pytd.parse import visitors class Print484StubVisitor(visitors.Visitor): """Visitor for converting ASTs to the PEP 484 format. This generates a PEP484 "stub" format that contains function signatures, but no code. For example: class MyList(GenericType[...
pombredanne/pytype
pytype/pytd/pep484.py
Python
apache-2.0
4,900
[ "VisIt" ]
0862e97b4982c9335f1bc3bdd8f99f8d0be9d13025970cec6a24ff4641abf936
#!/usr/bin/python3 import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import HR_data import time import HR_vocabulary import tensorflow as tf import numpy as np import random from datetime import datetime from Logger import Logger tf.flags.DEFINE_integer("BATCH_SIZE", 50, "Training batch size") tf.flags.DEFINE_integ...
bornabesic/cnn-text-classification
HR/HR_train_and_test.py
Python
mit
4,986
[ "NEURON" ]
19f888c0e85e9691e75c1c6e6f076d95d280aec8f241744ffe5cca1db17ceb4c
""" ======= Plotter ======= .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> """ from __future__ import print_function import matplotlib import matplotlib.figure import numpy as np import astropy.units as u import copy import inspect from astropy import log # this mess is to handle a nested hell of differe...
keflavich/pyspeckit
pyspeckit/spectrum/plotters.py
Python
mit
35,854
[ "Gaussian" ]
d038af81f73fb2e14a7c8dd82df6b4d401c0fd10d63fa59ea53d9c0d301766f5
from django.utils.translation import ugettext_lazy as _ from crystal_dashboard.dashboards.crystal import dashboard import horizon class WorkloadMetrics(horizon.Panel): name = _("Workload Metrics") slug = "metrics" dashboard.CrystalController.register(WorkloadMetrics)
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/metrics/panel.py
Python
gpl-3.0
280
[ "CRYSTAL" ]
5039f9be96a81a39c292b263bd936e74ac9c93764cce7b6edd403b1aff736d29
# coding: utf-8 # Copyright (c) Pymatgen Development Team. <<<<<<< HEAD # Distributed under the terms of the MIT License. ======= # Distributed under the terms of the MIT License. >>>>>>> a41cc069c865a5d0f35d0731f92c547467395b1b
Bismarrck/pymatgen
pymatgen/optimization/__init__.py
Python
mit
229
[ "pymatgen" ]
e12729bdf6c1328ff7c07aa686bc9220f198fde44e878beb4b52e09a7d9e02c4
import numpy as np from sklearn.utils.testing import (assert_allclose, assert_raises, assert_equal) from sklearn.neighbors import KernelDensity, KDTree, NearestNeighbors from sklearn.neighbors.ball_tree import kernel_norm from sklearn.pipeline import make_pipeline from sklearn.dataset...
krez13/scikit-learn
sklearn/neighbors/tests/test_kde.py
Python
bsd-3-clause
5,560
[ "Gaussian" ]
56115d4dc435645b11d5390f975639ffd1bd97d18c0df9dce1b30f3d69ea6e74
# Copyright 2016 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...
kobejean/tensorflow
tensorflow/python/ops/linalg/linear_operator_test_util.py
Python
apache-2.0
28,127
[ "Gaussian" ]
685e87a645a4c2c83225c3d1ca80e1c1529ca0022930587bd843032677790573
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2005 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # # 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 Fr...
arunkgupta/gramps
gramps/plugins/rel/rel_nl.py
Python
gpl-2.0
23,343
[ "Brian" ]
18d3355b28628f048cd8cf2e7809b3adb525243d08f09d4ef8e3f66180c63b8f
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
alejob/mdanalysis
testsuite/MDAnalysisTests/test_altloc.py
Python
gpl-2.0
2,503
[ "MDAnalysis" ]
fbec9048559d9f526d1a476196edf7779e8791cfcef1f17ae83f1791ca9ed2f7
# $Id: docutils_xml.py 7497 2012-08-16 15:17:29Z milde $ # Author: David Goodger, Paul Tremblay, Guenter Milde # Maintainer: docutils-develop@lists.sourceforge.net # Copyright: This module has been placed in the public domain. """ Simple document tree Writer, writes Docutils XML according to http://docutils.sourceforg...
asedunov/intellij-community
python/helpers/py3only/docutils/writers/docutils_xml.py
Python
apache-2.0
6,973
[ "VisIt" ]
5f86c7b7f5bf72b775beefed6e2d6ba5c342488dea25ec820be6e02c52e12070
# Copyright 2018 The Lucid 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 applicable l...
tensorflow/lucid
lucid/optvis/objectives.py
Python
apache-2.0
14,268
[ "NEURON" ]
da721265a57f529d33017f2574a915d5c2f1c0dfef2d90148c715f3c357b8a31
#!/usr/bin/python # -*- coding: utf-8 -*- # :::~ Author: Claudio Juan Tessone <claudio.tessone@uzh.ch> (c) 2010 ### ### ### ### # Distributed According to GNU Generic Purpose License (GPL) version 3 # Please visit www.gnu.org ############################################################################### PROGRAM_NAM...
tessonec/PySPG
scripts/vault/spg-param-split.py
Python
gpl-3.0
5,135
[ "VisIt" ]
c145d37285f32c8fa61edbce2314058384e29dc7430686de826f6175ded8ef6b
#!/usr/bin/env python # ****************************************************************************** # Copyright 2014-2018 Intel Corporation # # 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 ...
NervanaSystems/neon
examples/convnet-benchmarks/overfeat.py
Python
apache-2.0
2,740
[ "Gaussian" ]
41ece6460d98a8f7afa1ead117c7cc180aee45d8e5fa7d66cca7d33c7fe017d4
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ desitarget.gaiamatch ==================== Useful Gaia matching and manipulation routines. .. _`Gaia Collaboration/Babusiaux et al. (2018)`: https://ui.adsabs.harvard.edu/abs/2018A%26A...616A..10G/abstract .. _`borrowed shamele...
desihub/desitarget
py/desitarget/gaiamatch.py
Python
bsd-3-clause
57,119
[ "Galaxy" ]
e0531f594f00e2b5ac73c5ff3f059ea907e32f578d28e273aa231385d38112db
#!/usr/bin/env python import sys import argparse import numpy as np import netCDF4 as nc import matplotlib.pyplot as plt from matplotlib import animation """ This script makes a fluid animation using NetCDF data. """ def main (): # Setup arguments. parser = argparse.ArgumentParser() parser.add_argument('input_...
LAMBDA-HYPERON/fluids-movie
make_movie.py
Python
apache-2.0
1,245
[ "NetCDF" ]
84ecd28f6a587405e62e5d472b08b9984214dd97865428a592ae035780d849c7
import tensorflow as tf import tensorflow_addons as tfa import numpy as np import scipy.signal import cv2 as cv def derivative_of_Gaussian_win( N, sigma=1.0 ): assert N%2==1 x = np.expand_dims( np.array( scipy.signal.windows.gaussian(N, sigma ) ), axis=0 ).astype(np.double) x = x.T @ x dx = np.gradie...
fbergama/wass
gridding/TFVariationalRefinement.py
Python
gpl-3.0
5,232
[ "Gaussian" ]
070050bd3c08bf49f8a32b67107ed348125a1c7b0918fb4537569a90a9e4c16f
""" # Notes: - This simulation seeks to emulate the CUBA benchmark simulations of (Brette et al. 2007) using the Brian2 simulator for speed benchmark comparison to DynaSim. However, this simulation does NOT include synapses, for better comparison to Figure 5 of (Goodman and Brette, 2008). - The time taken to si...
asoplata/dynasim-benchmark-brette-2007
Brian2/brian2_benchmark_CUBA_nosyn_compiled_500.py
Python
gpl-3.0
2,137
[ "Brian" ]
d7b89052599cbabca2566f773ee8b007f850a5cfeefe4258defe604e17fe4dda
######################################################################## # File : InstallTools.py # Author : Ricardo Graciani ######################################################################## """ Collection of Tools for installation of DIRAC components: MySQL, DB's, Services's, Agents It only makes use of ...
vmendez/DIRAC
Core/Utilities/InstallTools.py
Python
gpl-3.0
97,592
[ "DIRAC" ]
0006e62952783f8f2d5851554feefb0b0ad0850e778aab1f7b4e00ced141b020
# -*- coding: utf-8 -*- """ jinja2.compiler ~~~~~~~~~~~~~~~ Compiles nodes into python code. :copyright: (c) 2009 by the Jinja Team. :license: BSD. """ from cStringIO import StringIO from itertools import chain from copy import deepcopy from jinja2 import nodes from jinja2.visitor import NodeVisit...
yesudeep/tisshrmlr
app/jinja2/jinja2/compiler.py
Python
mit
57,185
[ "VisIt" ]
1290584dc50192b9a2b7767fdf1a613f3c9cd00a5671b2a258a80de1bf7e8a44
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import from scipy.linalg import polar import numpy as np import itertools import warnings import collections from pymatgen.symm...
tallakahath/pymatgen
pymatgen/analysis/elasticity/tensors.py
Python
mit
19,491
[ "CRYSTAL", "pymatgen" ]
91380a1179dafd8f75102c3c98bf126036fb5b2f47b6bcd02f93020ae1e40ce9
# Copyright (C) 2019 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 versio...
psci2195/espresso-ffans
testsuite/scripts/samples/test_visualization_mmm2d.py
Python
gpl-3.0
1,258
[ "ESPResSo" ]
c70fdc911d9b0113a16f9c0c03fe37a075ad7b2c090b39088c6022c08490d467
#!/usr/bin/env python import os.path from zipfile import ZipFile from django.conf import settings from django.test import TransactionTestCase from panda.models import TaskStatus from panda.tasks import ExportSearchTask from panda.tests import utils class TestExportSearch(TransactionTestCase): fixtures = ['init_...
NUKnightLab/panda
panda/tests/test_export_search.py
Python
mit
3,391
[ "Brian" ]
e3411283128c3746cb20805dee7cab1e10efbcafdeba06e3f6b6de1cfce031a0
# 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 t...
capoe/espressopp.soap
src/standard_system/LennardJones.py
Python
gpl-3.0
5,615
[ "ESPResSo" ]
1f03be7a56999ad0647e745d0b9d087fee4dacf8efcf380a4eca4e3239e1383b
# $Id$ # # Copyright (C) 2004-2006 Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from __future__ import print_function f...
rvianello/rdkit
rdkit/Chem/AtomPairs/Utils.py
Python
bsd-3-clause
7,283
[ "RDKit" ]
e9b2d646742275c4551612db2a994f692f2c7bd9b5f55b5c557bd593dd4216ee
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import collections import abc import numpy as np from pymatgen.core.spectrum import Spectrum from pymatgen.util.plotting import add_fig_kwargs """ This module implements core classes for calculation of diff...
montoyjh/pymatgen
pymatgen/analysis/diffraction/core.py
Python
mit
7,574
[ "CRYSTAL", "pymatgen" ]
1482a1f237fa5a1e83642ac14ea6e97cb3f5300e4e7d466bdb289e231ca37bda
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
kain88-de/mdanalysis
testsuite/MDAnalysisTests/test_failure.py
Python
gpl-2.0
1,352
[ "MDAnalysis" ]
d12c782529e5dbc501776165c48f078ab1714975d68cd030ece88ac05b3a2c41
#!/usr/bin/env python __author__ = 'Brian Jimenez <brian.jimenez@bsc.es>' from Bio import Entrez import xml.etree.ElementTree as ET import sys # Needed in order to let Pubmed to notify you instead of blocking your IP crawler_contact = 'your_email@here' def search(query): """Searches the query in Entrez""" ...
brianjimenez/pub_crawler
papers_crawler.py
Python
gpl-2.0
4,934
[ "Brian" ]
006273a792150f1377eb2e2111f89a2db8aba4b129216cf895f9022a9f9cbf53
# Copyright 2014 Google Inc. 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 applicable law or ag...
KaranToor/MA450
google-cloud-sdk/lib/surface/docker.py
Python
apache-2.0
5,178
[ "VisIt" ]
b17e45c0479e83a278d39839fbffd09e92e052eb35fbb831b3a9ec9894335f7e
import sys import os.path #sys.path.insert(0, '/home/andy/theano/tool_examples/theano-lstm-0.0.15') from theano_lstm import Embedding, LSTM, RNN, StackedCells, Layer, create_optimization_updates, masked_loss from utilities import * import dill import argparse #import cPickle import pickle import numpy from collections...
darongliu/Lstm_Turing_LM
lstm-neural-turing-machines-lm/analysis/v1-one-weight/lm_v4.py
Python
mit
24,931
[ "NEURON" ]
0da1cdb81ca80d903c129278409e9ed254fe8b216c912da66285f7543edbc535
# rc19.py --- # # Filename: rc19.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Sat May 24 14:10:22 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This program is fr...
dilawar/moose-full
moose-core/tests/python/mus/rc19.py
Python
gpl-2.0
9,829
[ "MOOSE", "NEURON" ]
6fc5de66b9a833c1c056908ed9b6c74b6d5bd321d91bba43c5e8cc541726f2d1
import wx import wx.html import os import sys import webbrowser import warnings import wx.lib.agw.persist as PM if getattr(sys, 'frozen', False): sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))))) elif __file__: sys.path.insert(0, os.path.dirnam...
fukatani/Pyverilog_toolbox
pyverilog_toolbox/gui/gui_main.py
Python
apache-2.0
14,752
[ "VisIt" ]
266a48885d9f83e8cf3b0805f91be0fc16fd0881f8d397753082ca79d882be05
import json import os import re import time import ast from . import python_minifier class Visitor(ast.NodeVisitor): """Used to list all the modules imported by a script.""" def __init__(self, lib_path, package): self.imports = set() self.lib_path = lib_path self.package = package ...
kikocorreoso/brython
setup/brython/make_package.py
Python
bsd-3-clause
4,055
[ "VisIt" ]
8d9d49cd44fc18d10ba2c401ee0041f65bfde84a05ec4d62c13fac5e5f10c685
""" Views for the verification flow """ import datetime import decimal import json import logging import urllib import analytics from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.staticfiles.storage import staticfiles_storage from django.core.mail import se...
ahmedaljazzar/edx-platform
lms/djangoapps/verify_student/views.py
Python
agpl-3.0
50,989
[ "VisIt" ]
d9c58541cdbc7071508b648ae9b85e74272566c2470b28b05623d170936d9ec9
from setuptools import setup, find_packages setup(name='latimes-mappingla-geopy', version='0.93-latimes', description='Python Geocoding Toolbox', author='Ben Welsh from original work by Brian Beck', author_email='Benjamin.Welsh@latimes.com', url='http://github.com/datadesk/latimes-mapping...
datadesk/latimes-mappingla-geopy
setup.py
Python
mit
1,045
[ "Brian" ]
119ca86c7627f01ff31d11837322da9711fc41045aa161efa11d62d81493e9c3
# -*- coding: utf-8 -*- # # test documentation build configuration file, created by # sphinx-quickstart on Fri Feb 7 11:33:27 2014. # # 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. # # All ...
CGATOxford/CGATPipelines
CGATPipelines/pipeline_template_data/conf.py
Python
mit
13,166
[ "pysam" ]
3660419f318a47d77cae7765365826aaf2dd97a961c95bfe245cfb153fb63a6e
# imports import pandas as pd # import pandas for easy data manipulation using data frames import numpy as np # import numpy for numeric calculations on matrices import time # for timers import os # import h2o to check calculations import h2o from h2o.estimators.glm import H2OGeneralizedLinearEstimator # impo...
kcrandall/Kaggle_Mercedes_Manufacturing
h2o/main.py
Python
mit
5,401
[ "Gaussian" ]
05cb7c8399c3ad0b986dd1570b70102c8e49d82117c41e4f55289db2f0cf0e8f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides """ from __future__ import unicode_literals, division, print_function from collections import namedtuple, OrderedDict from monty.string import is_string from monty.json import MSONable ...
xhqu1981/pymatgen
pymatgen/core/xcfunc.py
Python
mit
10,353
[ "ABINIT", "GPAW", "pymatgen" ]
77ee86c2806850f5ea68927905130300bd0933e553c173ba57952eb74a209cfb
"""Definitions of Celery tasks in Askbot in this module there are two types of functions: * those wrapped with a @task decorator and a ``_celery_task`` suffix - celery tasks * those with the same base name, but without the decorator and the name suffix the actual work units run by the task Celery tasks are special ...
coffenbacher/askbot-devel
askbot/tasks.py
Python
gpl-3.0
10,807
[ "VisIt" ]
f7614d5c3850a770b5115f0789b8e845934dd19f3f0fcd873f9dbec210f9e144
# # The BAO likelihoods. # from TabulatedBAOLikelihood import * from TabulatedBAODVLikelihood import * from GaussBAODVLikelihood import * from LCDMCosmology import * from scipy import * class DR11LOWZ(GaussBAODVLikelihood): def __init__(self): obh2 = 0.0224 Om = 0.274 h = 0.7 mnu ...
slosar/april
py/BAOLikelihoods.py
Python
gpl-2.0
3,883
[ "Galaxy" ]
b327cccfc1e920370b2883f3c6c711f4cfdc54b114e0363e1ea2750712fc211e
import os import sys import re import requests import urllib import json from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) Debug = False #shared across functions defined here LOG = sys.stderr PatricUser = None def createTSVGet(a...
PATRIC3/p3diffexp
lib/diffexp_api.py
Python
mit
17,928
[ "Biopython" ]
3ce8931a4a24db496bf91fd367ffff2355cf5a7f6807b4cdf2f6c73343be0daa
import SimpleITK as sitk import matplotlib.pyplot as plt import ipywidgets as widgets from IPython.display import display import numpy as np from matplotlib.widgets import RectangleSelector import matplotlib.patches as patches import matplotlib.cm as cm from matplotlib.ticker import MaxNLocator import copy class Regi...
InsightSoftwareConsortium/SimpleITK-Notebooks
Python/gui.py
Python
apache-2.0
64,301
[ "Gaussian" ]
9a0837e2e5c01e27f212ff11fd788f0d8ecd66110c089c6aae582c2f80d5a6e3
""" This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well as testing instructions are located at http://amzn.to/1LzFrj6 For additional samples, visit the Alexa Skills Kit Getting Started guide at http://amzn.to/1LG...
ItsNotABugItsAFeature/transcribe
alexa/startTranscribe.py
Python
mit
6,780
[ "VisIt" ]
b808fff5a3116ee16b4bbcd25c9217f64ae998adb26f8d830e289a7caf7e1a8c
# # Copyright (C) 2007, Mark Lee # #http://rl-glue-ext.googlecode.com/ # # 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...
steckdenis/rlglue-py3
rlglue/types.py
Python
apache-2.0
4,169
[ "Brian" ]
7081833662a347c06898c6716b4bbab0854e511cbdc93aac605d6f767ed19c77
""" This package provides the packages and modules to perform IO from various input file formats and pymatgen objects. """
Dioptas/pymatgen
pymatgen/io/__init__.py
Python
mit
123
[ "pymatgen" ]
12e40db9cf06391ac34a9aaf3435b6f7a19f0e646dbe7aad13a7bcbb4f1cc53c
#!/usr/bin/env python """ Miscellaneous computations. Authors: - Arno Klein, 2012-2013 (arno@mindboggle.info) http://binarybottle.com - Yrjo Hame, 2012 (yrjo.hame@gmail.com) Copyright 2013, Mindboggle team (http://mindboggle.info), Apache v2.0 License """ def sigmoid(values, gain, shift): """ Ma...
binarybottle/mindboggle_sidelined
misc.py
Python
apache-2.0
22,033
[ "VTK" ]
705c6a0654f1dbcc8e0ad8344bf9e844bcd8b514656bc3b544488e2d8921eee5
from django.shortcuts import render from django.http import HttpResponse from django.template.loader import get_template from django.shortcuts import render_to_response from datetime import datetime, timedelta import httplib, urllib import xml.etree.ElementTree as ET # Create your views here. def principal(request): ...
NullSleep/Super-Fun-Time
main_content/views.py
Python
gpl-3.0
4,790
[ "COLUMBUS" ]
c718e012be2b3af036f26ec55be0878a4b0fc3b77ee723ef21946caacd9eaf54
''' Plugin for CudaText editor Authors: Andrey Kvichansky (kvichans on github.com) Version: '0.9.6 2016-12-06' ToDo: (see end of file) ''' import re, colorsys import cudatext as app #from cudatext import ed #import cudatext_cmd as cmds import cudax_lib as apx from .cd_plug_lib ...
vhanla/CudaText
app/py/cuda_palette/__init__.py
Python
mpl-2.0
138,324
[ "Amber", "BLAST" ]
62c8bcab63582c6f68e28eb6dd1f725246b6e3b410c1c55268114894d153781f
"""Testing for Gaussian process classification """ # Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # License: BSD 3 clause import warnings import numpy as np from scipy.optimize import approx_fprime import pytest from sklearn.gaussian_process import GaussianProcessClassifier from sklearn.gaussian_proce...
sergeyf/scikit-learn
sklearn/gaussian_process/tests/test_gpc.py
Python
bsd-3-clause
9,224
[ "Gaussian" ]
231847642811263b642454dbc73d5776a056ac63fc8f224514315e084a1b1bc5
#!/usr/bin/env python """Module to keep track of paths and versions of other software used within the workflow at various intervals.""" import Bio import argparse import getpass import logging import os from subprocess import Popen, PIPE, check_call import sys __author__ = "Tim te Beek" __copyright__ = "Copyright 20...
ODoSE/odose.nl
versions.py
Python
mit
4,752
[ "BLAST", "Biopython" ]
31023b539177f1691df28ed7033201dbea30ac39e3fb546f9693f3a800b90b18
import time import pytest import numpy as np import multiprocessing import psi4 # Test below is fine on its own but erratic through pytest. Most likely # to succeed as first test collected, so here it lies. @pytest.mark.xfail(True, reason='threading treatment suspect', run=True) def test_threaded_blas(): thread...
rmcgibbo/psi4public
tests/pytest/test_aaa_profiling.py
Python
lgpl-3.0
1,787
[ "Psi4" ]
3a8a43cd77ba4e0988a496967537aaeb971ad3a3115bee4b89e9f982cc5e8e5f
# Copyright 2014-2020 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 appl...
sunqm/pyscf
pyscf/agf2/uagf2.py
Python
apache-2.0
36,471
[ "PySCF" ]
8433b056b4c6d80f9abb62f38640bb3f3dff4210eeedf388e589a7aece8ecb99
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals # Version: 0.15+dev """ HEADS UP! ========= You are looking at a heavily modified version of the original [Versioneer](https://github.com/warner/python-versioneer), customized to fit the development of [OctoPri...
foosel/OctoPrint
versioneer.py
Python
agpl-3.0
81,073
[ "Brian" ]
2fcae61ee2e82c2a84bd2e3ce6b1921cb5f0a4c1446bbd6ecd48f017e110f853
""" Test_RSS_Policy_AlwaysActivePolicy """ import unittest import DIRAC.ResourceStatusSystem.Policy.AlwaysActivePolicy as moduleTested ################################################################################ class AlwaysActivePolicy_TestCase(unittest.TestCase): def setUp(self): """Setup""" ...
DIRACGrid/DIRAC
src/DIRAC/ResourceStatusSystem/Policy/test/Test_RSS_Policy_AlwaysActivePolicy.py
Python
gpl-3.0
1,655
[ "DIRAC" ]
7ccdd09e7983f21508841e9585ee51c548a6ea72d7098cd88976b17576c93e39
# Copyright (c) 2011, 2012 Free Software Foundation # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later ver...
gnowledge/ISON
gstudio/models.py
Python
agpl-3.0
114,556
[ "ADF" ]
26ac632a3776598bae75a90c05a68586766e9b3a094828a74a46817dfc9fe38c
"""Rewrite assertion AST to produce nice error messages""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import ast import errno import imp import itertools import marshal import os import re import string import struct import sys import types import atom...
txomon/pytest
src/_pytest/assertion/rewrite.py
Python
mit
39,457
[ "VisIt" ]
6c1238cc60eaf666d5784f5ec65d27ced2195a4525ab312eeba0c27c270c0512
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved. # # This source code is licensed under the OSL-3.0 license found in the # LICENSE file in the root directory of this source tree. import os import pytest from django.core.urlresolvers import reve...
suutari-ai/shoop
shuup_tests/browser/notify/test_script_template.py
Python
agpl-3.0
13,824
[ "VisIt" ]
e689343b3b59bf2c53f0d73b5a1c5ee8773bc14b667595eb53334bfd5e232988
# Copyright (C) 2013 Chris N. Richardson # # This file is part of DOLFIN. # # DOLFIN is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
MiroK/dolfin
demo/undocumented/parallel-refinement/python/demo_parallel-refinement.py
Python
gpl-3.0
1,661
[ "VTK" ]
09ae2eb17d2120fea47f9ee7872e3f98436add7274c98337e5577c9d26d260cb
# -*- coding: utf-8 -*- # @Author: twankim # @Date: 2017-02-24 17:46:51 # @Last Modified by: twankim # @Last Modified time: 2018-03-09 22:14:15 import numpy as np import time import sys import os import argparse import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from ssac import weakSSAC from...
twankim/weaksemi
main_local.py
Python
mit
8,601
[ "Gaussian" ]
1cf766d826ec96caea7649b118c163c0c7f0e35c91efa33e962f091fa8cd840c
#!/usr/bin/python """ Several functions. See -h output. Assign the 1-student function and the submit-grades functions to a hotkey for easy access during class. Randomly choose a student from the class list, and pop-up their name using operating system Desktop notification. On the size-N algorithm: I want each group t...
cpbl/classroom_active_learning
classroomActiveLearning.py
Python
gpl-3.0
18,696
[ "ADF" ]
f0b7266beefbf904b31a596bb1540f21815ab687633f5bb8931a53b2a5bdfde3
""" FlexGet build and development utilities - unfortunately this file is somewhat messy """ from __future__ import print_function import os import subprocess import shutil import sys from paver.easy import * import paver.virtual import paver.setuputils from paver.shell import sh from paver.setuputils import setup, find...
offbyone/Flexget
pavement.py
Python
mit
11,354
[ "GULP" ]
248a539675a9088faca064cce1cf941b8b8a1d02940d7e6311e3d6b601c60e26
""" Description here Author: Leonard Berrada Date: 6 Nov 2015 """ import numpy as np import pandas as pd import copy import matplotlib.pyplot as plt from regression import RegressionModel class KalmanFilter(RegressionModel): """ simple Linear Gaussian Kalman Filter""" def __init__(self, d...
leonardbj/AIMS
src/Regression/kalman.py
Python
mit
1,932
[ "Gaussian" ]
b214ade30ddbdc6a3970954e660189b679b02a52d2cdfc6652df25c3b41c3230
from ase.visualize import view from ase.io.opls import OPLSStructure s = OPLSStructure('172_mod.xyz') # 172_mod.xyz if the file name for the structure above view(s) # view with real elements elements = { 'CT' : 'Si', 'HC' : 'H', 'H1' : 'He' } view(s.colored(elements)) # view with fake elements
grhawk/ASE
tools/doc/ase/io/view_172_mod.py
Python
gpl-2.0
296
[ "ASE" ]
3d226e29e9417aa2b98d2ec4e557769acb2671b372cdd3ddc0ebfd879d6fe44b
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """\ Bipartie maximum matching jill-jenn vie et christoph durr - 2014-2018 """ __all__ = ["max_bipartite_matching", "max_bipartite_matching2"] # snip{ def augment(u, bigraph, visit, match): """augment """ for v in bigraph[u]: if not visit[v]: ...
jilljenn/tryalgo
tryalgo/bipartite_matching.py
Python
mit
1,855
[ "VisIt" ]
5aa33a6b2c2e7a02aa5d9128174650ecc778b21351b4c8b3aefb4d2e9276d5ce
#!/usr/bin/env python """ .. py:currentmodule:: FileFormat.MicroscopeParameters .. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca> MCXRay microscope parameters input file. """ # Script information for the file. __author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)" __version__ = "" __d...
drix00/pymcxray
pymcxray/FileFormat/MicroscopeParameters.py
Python
apache-2.0
19,275
[ "CRYSTAL", "Gaussian" ]
171474da661173b0dcb77e75343d9e6566e12c0cf391a6960069de683bdfade2
# -*- coding: utf-8 -*- import datetime import json import mock import pytest import requests_mock from constance.test import override_config from django.conf import settings from django.contrib.sites.models import Site from django.core import mail from django.template.loader import render_to_string from django.utils....
SphinxKnight/kuma
kuma/wiki/tests/test_views.py
Python
mpl-2.0
113,459
[ "VisIt" ]
7949d26fa8244a08d1ef4f13ca1913a88bbc79914bfd554dc75bcf018a4dbe7e
""" TornadoBaseClient contains all the low-levels functionalities and initilization methods It must be instantiated from :py:class:`~DIRAC.Core.Tornado.Client.TornadoClient` Requests library manage itself retry when connection failed, so the __nbOfRetry attribute is removed from DIRAC (For each URL req...
yujikato/DIRAC
src/DIRAC/Core/Tornado/Client/private/TornadoBaseClient.py
Python
gpl-3.0
22,782
[ "DIRAC" ]
d33ee813234c908ad9b64cf708e64f4d448a72a761558a525ca900c5433b9316
import numpy as np import pyroms from pyroms_toolbox.BGrid_SODA import BGrid_SODA def get_nc_BGrid_SODA(grdfile, name='SODA_2.1.6_CORAL', area='regional', \ xrange=(185,340), yrange=(100, 210), ystart=245): """ grd = get_nc_BGrid_SODA(grdfile) Load Bgrid object for SODA 2.1.6 fro...
dcherian/pyroms
pyroms_toolbox/pyroms_toolbox/BGrid_SODA/get_nc_BGrid_SODA.py
Python
bsd-3-clause
3,646
[ "NetCDF" ]
b532e0100192b01a127df67dec28144448c931cdcb106c4f2cd926feed2c9aa7
import numpy as np from bayespy.utils import misc from bayespy.utils import linalg from .gaussian import GaussianMoments from .deterministic import Deterministic class ConcatGaussian(Deterministic): """Concatenate Gaussian vectors along the variable axis (not plate axis) NOTE: This concatenates on the varia...
jluttine/bayespy
bayespy/inference/vmp/nodes/concat_gaussian.py
Python
mit
3,889
[ "Gaussian" ]
72dd48b9c71ffbc7f7062123b5fbc65ee7272d180357aa6bd104f249d28cf4d4
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as pub...
thica/ORCA-Remote
src/scripts/discover/discover_itach/script.py
Python
gpl-3.0
12,378
[ "ORCA" ]
7a623842a3379ab0e3c8631266193efb50b3b1d53034c7541051bcdc9106ddfe
"""A kernel manager for multiple kernels Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2013 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as par...
WillisXChen/django-oscar
oscar/lib/python2.7/site-packages/IPython/kernel/multikernelmanager.py
Python
bsd-3-clause
9,183
[ "Brian" ]
0e8db364ae5ab08ae4715fdb9c4941ae64e20013effc689f5c1b60a9c5c77995
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines Authors. # # 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 ap...
google/uncertainty-baselines
baselines/jft/checkpoint_utils.py
Python
apache-2.0
19,080
[ "VisIt" ]
5002fc5084faac011fd31d1606b1f9566f819b35e7254edcd2d863b96b782ec3
''' Significant lifting from https://jmetzen.github.io/2015-11-27/vae.html ''' import time import numpy as np import tensorflow as tf from tensorflow.python.ops import rnn import random import matplotlib.pyplot as plt import re, string from sklearn.feature_extraction.text import CountVectorizer from collections impo...
dricciardelli/vae2vec
def_def_alt.py
Python
mit
36,437
[ "Gaussian" ]
85e4c8f13bf1f33ec5ae4d162b8f75c8db4165d742e544d830b62295effa9be0
#!/usr/bin/env python # -*- coding: utf-8 -*- import pylid from collections import Counter sk = pylid.PyLID(3) sk.total_ngrams = 85522929 sk.lang = 'sk' sk.ngrams = Counter({ u'#pr': 817084, u'#po': 561483, u'ch#': 483526, u'#a#': 475597, u'#na': 412411, u'ie#': 388611, u'pre': 363041, ...
dmort27/pylid
pylid/langs/sk.py
Python
mit
317,125
[ "ASE", "BWA", "EPW", "Elk", "MOE" ]
7f144f22d9f5695c2e23be6ef7d1cba4e4ee30ad7c2c77d7b4cc533514d12179
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ from __future__ import unicode_literals import os from django.core.urlresolvers import reverse from django.template import (TemplateSyntaxError, Context, Template, loader) import django.template.context fro...
mdj2/django
tests/test_client_regress/tests.py
Python
bsd-3-clause
59,629
[ "VisIt" ]
394f1ae58db4f5b812d8b8a78ec557c4802fe9376e8920752b55a65e0cdff4ce
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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 requ...
googleapis/python-secret-manager
scripts/fixup_secretmanager_v1beta1_keywords.py
Python
apache-2.0
6,654
[ "VisIt" ]
6867f1dfa7c5caa8a97bb169a0fa4ab6c0e04cb1564187c9f5d181332feb8b6b
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Jc2k/libcloudcore
libcloudcore/tests/test_data.py
Python
apache-2.0
5,383
[ "VisIt" ]
1adc0b0db1b489c73e07c5baf53c3d75acfa83c1cfebbbb884bcfd12eb52fb41
# Copyright 2019 Google LLC # # 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 applicable law or agreed to in writing, s...
google/pyctr
sct/transformer_test.py
Python
apache-2.0
8,923
[ "VisIt" ]
56860090c97de31b2aa3758d76f1caca7501b87f4795aecaf35a5115231d0a76
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkHierarchicalDataLevelFilter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
chrisidefix/devide
modules/vtk_basic/vtkHierarchicalDataLevelFilter.py
Python
bsd-3-clause
533
[ "VTK" ]
298ef6894895e0048af20cb18b43cc437ecac31c78d2434a6961d064d6ea3e38
# -*- coding: utf-8 -*- #This is generated code - do not edit encoding = 'utf-8' dict = { ' of ': ' de ', '&About...': '&Sobre...', '&Close Document': 'Fe&char o Documento', '&Comment Region': '\xc3\x81rea de &Coment\xc3\xa1rios', '&Delete Window': '%Apagar Janela', '&Describe Action': '&Descrever Ac\xc3\xa7\xc3\xa3o',...
robmcmullen/peppy
peppy/i18n/pt.py
Python
gpl-2.0
18,181
[ "Gaussian" ]
160896cd001e81f9a1657f6ea09d567e6c1a51a878f1b1a547934c9c375b2c3d
""" .. module:: samples_generator samples_generator ************* :Description: samples_generator :Authors: bejar :Version: :Created on: 21/01/2015 9:02 """ __author__ = 'bejar' import numpy as np import numbers from sklearn.utils import check_random_state, check_array def make_blobs(n_samples=10...
bejar/kemlglearn
kemlglearn/datasets/samples_generator.py
Python
mit
5,132
[ "Gaussian" ]
15689f9135acec8608dd236aa7d06d3af7ea40418f9ce9b7d85fa0edd52ee38c
#!/opt/datafax/PHRI/python27 # # Copyright 2017, Population Health Research Institute # Copyright 2017, Martin Renters # # This file is part of the DataFax Toolkit. # # The DataFax Toolkit is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # th...
mrenters/DFtoolkit
dfpython/qc2excel.py
Python
gpl-3.0
35,931
[ "VisIt" ]
ca45f69aabece36bc363608884e9379dd38575c8850f56a6fcf908072ff0c228
""" Unit tests for pipelines """ import logging import sys import unittest import numpy from astropy import units as u from astropy.coordinates import SkyCoord from data_models.polarisation import PolarisationFrame from workflows.serial.imaging.imaging_serial import zero_list_serial_workflow, \ predict_list_seri...
SKA-ScienceDataProcessor/algorithm-reference-library
tests/workflows/test_imaging_serial.py
Python
apache-2.0
17,056
[ "Gaussian" ]
1ffa9f4b831401feaff54d7ee60bb65bcdf5d3c7b7f742dcb34ee666d47552eb
import os import os.path import inspect import numpy as np from astropy.io import fits import yaml import galsim import bashes class Observation(object): """ Represents a GREAT3 observation specified by a branch, index (0-199) and epoch. """ def __init__(self,branch,index,epoch): """ In...
deepzot/bashes
bashes/great3.py
Python
mit
15,737
[ "Galaxy", "Gaussian" ]
ee75b68cb033ebbadb2073ec46e8fd7f790a1aa19f9d4f6bd0b5f7ce1ec9d14d
# # ENVISIoN # # Copyright (c) 2017-2019 Daniel Thomas # 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. Redistributions of source code must retain the above copyright notice, this # l...
rartino/ENVISIoN
unit_testing/test_DOS_parsing.py
Python
bsd-2-clause
2,801
[ "VASP" ]
e1cf92ff2ed41fefcbea60216c80f5157385e1025168a64dc7e7acea6d78f8e7
# RPi Meteor Station # Copyright (C) 2015 Dario Zubovic # # 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 3 of the License, or # (at your option) any later version. # # This pr...
CroatianMeteorNetwork/RMS
Tests/CompressionTimings.py
Python
gpl-3.0
1,976
[ "Gaussian" ]
68e9a358332d96f7d0e41449cdb6edc770b034ece3ea181640d95b7d98444410
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import collections import os.path from pymatgen.io.abinit.pseudos import Pseudo, PseudoTable from pymatgen.util.testing import PymatgenTest _test_dir = os.path.join(PymatgenTest.TEST_FILES_DIR, "abinit") def ref_file(file...
materialsproject/pymatgen
pymatgen/io/abinit/tests/test_pseudos.py
Python
mit
6,615
[ "ABINIT", "pymatgen" ]
4d411199b59c10791a2917b522a31f91cfe0228cc941e3d1b1b88bedf4d4488c
# Most of this code is: # (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org) # Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php # The server command includes the additional header: # For discussion of daemonizing: # http://aspn.activestate.com/ASPN/C...
natefoo/pulsar
pulsar/util/pastescript/serve.py
Python
apache-2.0
36,222
[ "Galaxy" ]
210cd7eca5affb655e7f57717f6530d8a1a74012847dfd9d7d59476b156d3f5a
'''<h1>Library for surface x-ray diffraction simulations</h1> <p> The problem of modelling the sample is divided to four different classes: Sample, Slab, UnitCell and Instrument. A Slab is the basic unit that builds up a sample and can be seen as a quasi-unitcell for the sxrd problem. Stricitly it is a 2D unitcell with...
jackey-qiu/genx_pc_qiu
models/sxrd_new1.py
Python
gpl-3.0
213,492
[ "CRYSTAL", "Gaussian" ]
9add43ab733fb4d459e41860231e4b1d12b05c81e23fdd9c5f1b35ca430f9992