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 2021, 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...
tensorflow/privacy
tensorflow_privacy/privacy/dp_query/tree_aggregation_test.py
Python
apache-2.0
18,269
[ "Gaussian" ]
034d22167ed2add2f6fedb5242fa1c33f3893bba740506ff7f560312cbe5d3ab
from scipy import misc from skimage import color import numpy as np import sompy import os import pickle import random from sompy.visualization.bmuhits import BmuHitsView def createDatasetSom (trainingDir, ratio): dataset = None #trainig data for filename in os.listdir(trainingDir): if filename.end...
mrichart/NNcoloring
src/som.py
Python
mit
4,213
[ "Gaussian", "NEURON" ]
3a2e9b3bdfd76df2a1963c7025f17113d5964f7b54e51a0c7ce8620467f80eac
from __future__ import division, print_function import numpy as np import nose.tools as nt import regreg.api as rr from ..lasso import lasso, selected_targets, full_targets, debiased_targets from ...tests.instance import gaussian_instance from ...tests.flags import SET_SEED from ...tests.decorators import set_sampli...
selective-inference/selective-inference
selectinf/randomized/tests/test_lasso.py
Python
bsd-3-clause
13,984
[ "Gaussian" ]
1e8515623db004799711b3366fbe8c2e5e689da06f7da886f66bd35870b6911d
#!/usr/bin/env python # Encoding: utf-8 # ----------------------------------------------------------------------------- # Project : OKF - Spending Stories # ----------------------------------------------------------------------------- # Author : Edouard Richard <edou4rd@gmail.com> # ---...
okfn/spendingstories
webapp/core/fields.py
Python
gpl-3.0
7,991
[ "BWA" ]
1749e7d35de95410a9a79742f7e5772bfc9428a88a464de852af72f9193bcb26
import zmq, time import numpy as np import copy import sys, json, pdb, pickle, operator, collections import helper import predict as predict from train import load_data from itertools import izip import inflect from sklearn.metrics.pairwise import cosine_similarity from sklearn.feature_extraction.text import TfidfVecto...
adi-sharma/RLIE_A3C
code/server_multiprocessing.py
Python
mit
62,206
[ "Gaussian" ]
2dff14ce8faf84f45c2e389421610c39e7c56498d9e5dde16674078ff635308d
# -*- coding: utf-8 -*- """ Electrostatic potential simulation ================================== """ from math import sqrt import numpy as np from numpy import pi from scipy.special import k0 as bessel from .. import minimum_image_distance from .scattering_params import scattering_params m = 9.109 * 10 ** (-31) # ...
LaurentRDC/scikit-ued
skued/simulation/potential.py
Python
gpl-3.0
4,659
[ "CRYSTAL" ]
971baa4e9b0e6f12292409d272707d7fa9c5a7585a3cb9dd78276c257512d8a6
"""CLI script to simulate transcriptome reads """ import sys, argparse, gzip, os, itertools from seqtools.format.gpd import GPDStream from seqtools.format.fasta import FASTAData from seqtools.structure.transcriptome import Transcriptome from seqtools.simulation.emitter import TranscriptomeEmitter from seqtools.simulat...
jason-weirather/py-seq-tools
seqtools/cli/utilities/simulate_tx.py
Python
apache-2.0
10,034
[ "Gaussian" ]
c0ec33f9e782e8ccc2c82b85ec01cf604742864530741c87d397d1bf4a4da351
# -*- 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 publi...
thica/ORCA-Remote
src/ORCA/utils/Platform/generic/generic_GetDrives.py
Python
gpl-3.0
1,003
[ "ORCA" ]
85952ddcbbc1a989d2b70acf45381116481d9b5c240f2330ec502cf4e9890849
from django.db import models from django.core.cache import cache from protein.models import Protein from residue.models import Residue from mutation.models import Mutation from construct.schematics import generate_schematic from common.diagrams_gpcr import DrawSnakePlot import pickle class Construct(models.Model): ...
cmunk/protwis
construct/models.py
Python
apache-2.0
18,892
[ "CRYSTAL" ]
d5762da7e18854ccd4dc3330a508f28f2096578735dbd3fd8c97ed32d92a4e50
# -*- coding: utf-8 -*- import os import os.path # FAS usernames of people can that approve/reject proposals ADMINS = ('lmacken', 'spot') # Available Languages LANGUAGES = { 'en': 'English', 'es': 'Español' } # Displayed at the top of the index NOTICE = 'This site is currently in TESTING mode. Registration...
fedora-infra/flock-registration
wsgi/config_default.py
Python
gpl-2.0
1,575
[ "VisIt" ]
41137a5ee3c6d450807d7135eb4ffde181c4fa209a09c1a4cddc4b8cf7385e38
import MDAnalysis as mda import numpy as np from numpy.testing import (assert_equal, assert_, assert_almost_equal, assert_raises) from MDAnalysisTests.coordinates.reference import RefACHE, RefCappedAla from MDAnalysisTests.datafiles import (PRM, TRJ, TRJ_bz2, PRMpbc, TRJpbc_bz2) from MDAnal...
alejob/mdanalysis
testsuite/MDAnalysisTests/coordinates/test_trj.py
Python
gpl-2.0
4,236
[ "MDAnalysis" ]
e05aa35b8c2269febc9357a6212e5d9be6a60aa411dd8135dad77e5160d6df21
""" Modules defining cross-correlated samples. Has classes for both pure HOD cross-correlations (i.e. number of cross-pairs) and for HaloModel-derived quantities based on these cross-pairs. To construct a :class:`CrossCorrelations` one need to specify the halo models to be cross-correlated, and how they're correlated...
steven-murray/halomod
src/halomod/cross_correlations.py
Python
mit
10,570
[ "Galaxy" ]
580e3f2bf86bdc46d9984f4b937c2c97521b6c10da6183ec5b204bd1b11310cf
"""Rewrite assertion AST to produce nice error messages""" import ast import errno import itertools import imp import marshal import os import struct import sys import types import py from _pytest.assertion import util # Windows gives ENOENT in places *nix gives ENOTDIR. if sys.platform.startswith("win"): PATH_...
ktan2020/legacy-automation
win/Lib/site-packages/pytest-2.3.4-py2.7.egg/_pytest/assertion/rewrite.py
Python
mit
22,506
[ "VisIt" ]
1b247a4c235e69f23a374fdb71347eb9d6d479044a6b99400e355e6742d7e648
#!/usr/bin/env python # 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 # # U...
sunqm/pyscf
pyscf/gto/test/test_eval_gto.py
Python
apache-2.0
5,062
[ "PySCF" ]
6e71e7abe7180ca9fa7f6d948b12a6cf4b8d48fa937aa36b0667830a42316967
#!/usr/bin/python """ Copyright 2011 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester 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 th...
clreinki/GalaxyHarvester
updateFilters.py
Python
agpl-3.0
9,156
[ "Galaxy" ]
6d3b062baf279abd49ebd0e0dee215b1d62527e5e66a75260f0acec09f2b0b6b
# Imports. import numpy as np from numpy import pi import matplotlib.pyplot as plt import matplotlib.patheffects as PE from matplotlib import ticker # The ImageMagick package is needed for gifs. # Visit http://www.imagemagick.org. try: from matplotlib.animation import FuncAnimation except: print "Couldn't find...
alurban/mentoring
tidal_disruption/scripts/schwarzschild_orbits_rk4.py
Python
gpl-3.0
10,732
[ "VisIt" ]
c7a72583a9ebd9828f2e3ffc1320d139dd36c5cbebca136f590bf16a96deba21
""" test run for DFTB+ calculator the tolerance is extremely loose, beause different sk files give different results """ from ase.test.dftb import installed assert installed() from ase import Atoms from ase.visualize import view from ase.calculators.dftb import Dftb from ase.constraints import FixAtoms fro...
askhl/ase
ase/test/dftb/test_tricky.py
Python
gpl-2.0
2,052
[ "ASE" ]
5ad49b76d03b6fc1ac2e64ff67e5dd22afc62ccc256efe2c431d14e48cce57f4
from .node import NodeVisitor, ValueNode, ListNode, BinaryExpressionNode from .parser import atoms, precedence atom_names = {v:"@%s" % k for (k,v) in atoms.items()} named_escapes = {"\a", "\b", "\f", "\n", "\r", "\t", "\v"} def escape(string, extras=""): # Assumes input bytes are either UTF8 bytes or unicode. ...
saneyuki/servo
tests/wpt/web-platform-tests/tools/wptrunner/wptrunner/wptmanifest/serializer.py
Python
mpl-2.0
4,558
[ "VisIt" ]
3b48696ddf03c1b8dc4f98a63a6a5b47c9fcc939eba4e2805dc1306fdaf2fd26
## # Copyright 2009-2016 Ghent University # Copyright 2015-2016 Stanford University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum...
hpcleuven/easybuild-easyblocks
easybuild/easyblocks/a/amber.py
Python
gpl-2.0
8,914
[ "Amber", "NetCDF" ]
0ff5130735bb578468bc04b82f2e08b48863a1501f6549cedf519d0f4e13770d
# Copyright (c) 2015 Jose David Fernandez Rodriguez # # This file is distributed under the terms of the # GNU Affero General Public License, version 3 # as published by the Free Software Foundation. # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied ...
jdfr/pyslic3r
pyclipper/plot3d.py
Python
agpl-3.0
4,657
[ "Mayavi" ]
f5d2ed2aa49e7462b167eb8f31750e2a976058c8f256dc55c366e90cbd5f55e9
from django.db import models from django.db.models.deletion import ProtectedError from edc_visit_schedule.site_visit_schedules import site_visit_schedules class AppointmentManagerError(Exception): pass class AppointmentManager(models.Manager): def get_by_natural_key(self, subject_identifier, visit_schedul...
botswana-harvard/edc-appointment
edc_appointment/managers.py
Python
gpl-2.0
8,316
[ "VisIt" ]
5bda8cb987f244f57fae6ff7e8c88a1a5f712059373e1e262e94d71f9c01c4a9
# -*- coding: utf-8 -*- { "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "Uma localização que especifica a área geográfica para esta região. Pode ser uma localização da hierarq...
gnarula/eden_deployment
languages/pt.py
Python
mit
207,885
[ "VisIt" ]
f1cd17c517a22e5f29dfa014324f345c66597eb6cda62f192cbde96b7a98a840
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/songs/forms/mediafilesform.py
Python
gpl-2.0
2,925
[ "Brian" ]
f928866fb988c94ac9ffcc3a5250361768ec4ad60c9e9275fc256c230e8eb225
#!/usr/bin/env python # encoding: utf-8 """Based on code from P Barmby""" from astropy.coordinates import ICRS, Distance, Angle from astropy import units as u import numpy as np def correct_rgc(coord, glx_ctr=ICRS('00h42m44.33s +41d16m07.5s'), glx_PA=Angle('37d42m54s'), glx_incl=Angle('77.5d'), ...
jonathansick/synthsb
synthsb/galradii.py
Python
bsd-3-clause
2,141
[ "Galaxy" ]
9287b7d716a45fc9b37fe0b4288c19640d340c0c3514a6e45dcff2db18ee55b8
from __future__ import with_statement import os from datetime import datetime import logging from fabric.api import * env.user = 'bhs' env.use_ssh_config = True env.now = datetime.now().strftime('%Y%m%d-%H%M') def deploy(api_server='test'): local('npm install && bower install') local('gulp test') push_di...
Beit-Hatfutsot/dbs-front
fabfile.py
Python
agpl-3.0
707
[ "GULP" ]
f81cf13bf6078ab8862e5243f6b591659df4d453c3fef050d206188a17eb04a0
# coding: utf-8 """ This module defines the Node class that is inherited by Task, Work and Flow objects. """ from __future__ import division, print_function, unicode_literals import sys import os import time import collections import abc import six import numpy as np from pprint import pprint from pymatgen.util.io_ut...
johnson1228/pymatgen
pymatgen/io/abinit/nodes.py
Python
mit
39,056
[ "ABINIT", "pymatgen" ]
21e433329cf698ae49217875e67b005bf427583c53d972f51f43ce77cd3c5da9
########################################################################### # Habeluna Segmentation # # Modified: Aug/07/2015 ########################################################################### # dependency: nibabel, numpy, scipy import errno import os import numpy as np from scipy.optimize import curve_fit ...
junqianxulab/habenula_segmentation
src/segment_hb.py
Python
mit
54,404
[ "Gaussian" ]
7b6ba541e87b3758afdc03b8caedc435d7dfd5b4b338849b344266f793591578
"""Defines the System class for first-principles calculations.""" import os import shutil import subprocess import contextlib import collections.abc from fsc.export import export from ..system import OverlapSystem from . import _read_mmn as mmn @export class System(OverlapSystem): r""" System class for sys...
Z2PackDev/Z2Pack
z2pack/fp/_first_principles.py
Python
gpl-3.0
6,872
[ "Wannier90" ]
53e2e25b8290ac85bed3c6800adcbbe66b6542a608e218bd4acc58111d861fa5
# # 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/RLGlue.py
Python
apache-2.0
6,211
[ "Brian" ]
5486a3ce5fa2cb3eed6c301cda30198f00da3f3e58d1ec3df7f59120e2eb5337
# coding: utf-8 """Test mdn.specifications.""" from __future__ import unicode_literals from webplatformcompat.models import Section from mdn.html import HTMLText from mdn.kumascript import KumaVisitor, SpecName, kumascript_grammar from mdn.specifications import ( SpecSectionExtractor, Spec2Visitor, SpecDescVisito...
jwhitlock/web-platform-compat
mdn/tests/test_specifications.py
Python
mpl-2.0
19,677
[ "VisIt" ]
e413b846c5b2b4458c3c9b382af2cc95ed60807c3085e5a3dde77a8a694e0471
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2006 Donald N. Allingham # Copyright (C) 2007 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 Free Software Foundation; ...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/note/__init__.py
Python
gpl-2.0
1,568
[ "Brian" ]
faf55485390e95b5845d0c25423f0a03d574891926975f4061dc8316e7478949
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-05-19 16:34:31 # @Last modified by: Brian Cherinka # @Last Modified time: 2018-07-10 14:23:32 from __future__ import print_function, division, absolute_import from marvin.tests.api.co...
albireox/marvin
python/marvin/tests/api/test_general.py
Python
bsd-3-clause
3,850
[ "Brian", "Galaxy" ]
0ad9e29340713fe7832c9b58b39cfed139d6f86682ac9cd53c9cf31df676c079
#!/usr/bin/env python import numpy as np from horton import * # pylint: disable=wildcard-import,unused-wildcard-import # Load the Gaussian output from file fn_fchk = context.get_fn('test/water_sto3g_hf_g03.fchk') # Replace the previous line with any other fchk file, e.g. fn_fchk = 'yourfile.fchk'. mol = IOData.fro...
theochem/horton
data/examples/wpart/becke.py
Python
gpl-3.0
1,051
[ "Gaussian" ]
3fd09aa63ae57d84aa26f1a484f059ff4cea1ad68e91d47378fadf65e82b8738
# lifcomp.py --- # # Filename: lifcomp.py # Description: Leaky Integrate and Fire using regular neuronal compartment # Author: Subhasis Ray # Maintainer: # Created: Fri Feb 7 16:26:05 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # ...
BhallaLab/moose
moose-examples/snippets/lifcomp.py
Python
gpl-3.0
5,913
[ "MOOSE", "NEURON" ]
05fd7883ec431d0dff42eb16f7566a172e2ef53c6ba7242503639c9b2fb4094b
# -*- coding:utf-8 mode:python; tab-width:4; indent-tabs-mode:nil; py-indent-offset:4 -*- import json import hashlib import uuid import cpinterface import sharedutilities class Psi4Job(cpinterface.Job): def __init__(self, *args, **kw): super(Psi4Job, self).__init__(*args, **kw) self.backend = "psi...
mattbernst/polyhartree
adapters/psi4.py
Python
gpl-3.0
13,008
[ "GAMESS", "NWChem", "Psi4" ]
ba324d1df1c8adb0318fffbb73192e735d4ab6a0bdda20f328c501dd6458f0c0
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) #...
MDAnalysis/mdanalysis
testsuite/MDAnalysisTests/topology/test_crd.py
Python
gpl-2.0
1,574
[ "MDAnalysis" ]
b987b1b09a1d0fce2a19df4da481a4e146ff7af33bd36cc490bdffdff7d29ed5
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Denominator.multiplier' db.add_column('profiles_denominator', 'multiplier', self.gf('djang...
ProvidencePlan/Profiles
communityprofiles/profiles/oldmigrations/0035_auto__add_field_denominator_multiplier.py
Python
mit
16,284
[ "MOE" ]
87b1b5497fe719204caa8b06821382d4b866ccfd55db13f959d07e3dc3e9674c
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
jrossyra/adaptivemd
adaptivemd/model.py
Python
lgpl-2.1
1,706
[ "MDTraj" ]
4353032d24abc91f05351bf181f30abb5b2f25c8cbc85e9da1d6b7c5334a49fd
import py import sys class CommonFSTests(object): def test_constructor_equality(self, path1): p = path1.__class__(path1) assert p == path1 def test_eq_nonstring(self, path1): p1 = path1.join('sampledir') p2 = path1.join('sampledir') assert p1 == p2 def test_new_ide...
youtube/cobalt
third_party/web_platform_tests/tools/py/testing/path/common.py
Python
bsd-3-clause
15,649
[ "VisIt" ]
4a8d6cf174219fef94a7a373e8ac031e2bffd0c158fb40dd4263a42248792912
#!/usr/bin/env python #-*- coding: utf-8 -*- #python imports from sys import exit from os import path, rename,sep from cPickle import dump from glob import glob try: from hashlib import sha1 as new_sha except ImportError: from sha import new as new_sha from urlparse import urljoin #project imports from sessio...
cria/microSICol
py/modules/form_save.py
Python
gpl-2.0
158,166
[ "VisIt" ]
aa7173bf788bdd0c8dba0a6bc11d062336165bf01d3907f588c4d14921521570
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.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...
indrajitr/ansible
lib/ansible/executor/module_common.py
Python
gpl-3.0
63,447
[ "VisIt" ]
87275baf3dc9075eb28915e65c82bce00eb616eb01dfddd87110ddc54be04009
# 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. # # This program is distributed in the hope that it will be useful, # bu...
michel-slm/bodhi
bodhi/mail.py
Python
gpl-2.0
15,460
[ "VisIt" ]
0ff5603a21105af13b215d1622cca50186526b3d8be785dc256280452d1c5501
#! /usr/bin/python3 import json from multiprocessing.dummy import Pool import os import pprint import urllib.parse from bs4 import BeautifulSoup as BS import requests """ Note - pages sometimes link back to themselves or to other pages which do. So it is important to avoid reprocessing a page that has already been pr...
Kamikazilady/scrape-xls-beautifulsoup
scraper.py
Python
mit
4,824
[ "VisIt" ]
2f091507e67eabdb671ef2304e9b4ee0bb5a7f19ca15ad7ca346c26c45fb0667
#!/usr/bin/env python # -*- coding: ISO-8859-1 -*- # # Kovan's OGBot # Copyright (c) 2007 by kovan # # ************************************************************************* # * * # * This program is free software; you ca...
tectronics/ogrobot
src/gui.py
Python
gpl-2.0
27,011
[ "CRYSTAL" ]
8ae4d82c13f843d736f4f5f4413045fe50d2d04f9fd699359749ff4d575595ac
import os import difflib try: from urllib.request import urlopen from urllib.parse import urlparse except ImportError: # python 2 from urllib2 import urlopen from urlparse import urlparse from .handlers.base import make_ionotavailable from .handlers import GromacsIO from .handlers import PdbIO from .ha...
swails/chemlab
chemlab/io/datafile.py
Python
gpl-3.0
4,680
[ "cclib" ]
06a9ca78a1fd176eca86cb3803e5b1f007711f535abbbcfd2585498d110afbc9
from pycbc.types import * from pycbc.noise.gaussian import * from pycbc.filter import * from pycbc.waveform import * from pycbc.vetoes import * import pycbc.psd sr = 4096.0 dt = 1.0/sr bl = 256 df = 1.0/bl N = int(sr * bl) n = int(N/2 + 1) psd = pycbc.psd.from_string("aLIGOZeroDetHighPower", n, df, 14) strain = noise...
tdent/pycbc
test/bankvetotest.py
Python
gpl-3.0
3,650
[ "Gaussian" ]
aefff6b457b651361a5ba6b46dd4fdd703ed36435da95bbc5204fb9c5514874d
# -*- coding: utf-8 -*- # LICENSE # # Copyright (c) 2010-2017, GEM Foundation, G. Weatherill, M. Pagani, # D. Monelli. # # The Hazard Modeller's Toolkit 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, e...
gem/oq-hazardlib
openquake/hmtk/tests/seismicity/smoothing/test_isotropic_gaussian_kernel.py
Python
agpl-3.0
5,532
[ "Gaussian" ]
a422e9af2aecaf5898dd9857a64e07719d073524c5acf596636537788c834cb2
"""Implementation of the WebSocket protocol. `WebSockets <http://dev.w3.org/html5/websockets/>`_ allow for bidirectional communication between the browser and server. WebSockets are supported in the current versions of all major browsers, although older versions that do not support WebSockets are still in use (refer ...
mr-ping/tornado
tornado/websocket.py
Python
apache-2.0
41,314
[ "VisIt" ]
1bc6adb19e4e47f9accb9a6af9e57a2c75f47574def3e79d7418b2c3d7ae92b4
import popsims import numpy as np import matplotlib.pyplot as plt import wisps import pandas as pd import wisps.simulations as wispsim from tqdm import tqdm import astropy.units as u import numba from scipy.interpolate import griddata from popsims import galaxy def probability_of_selection(spt, snr): """ pro...
caganze/wisps
wisps/simulations/thick_disk_counts.py
Python
mit
9,347
[ "Galaxy" ]
e3d6a717acaeba252823f78327dab8f467d723afa7f61592a3e5b7ce45da8d7d
"""This is where most universal code for the Python examples of API implementation exist. Much of the abstracted logic such as filling out credential objects and arrays resides in this class.""" from mboapi_djangodemo.SECRETS import SITEIDs, SOURCENAME, SOURCEPASS, USERNAME, USERPASS def BuildWsdlUrl(serviceNa...
kirkalicious/MINDBODY-Django
helpers/mbosoap/BasicRequestHelper.py
Python
mit
3,678
[ "VisIt" ]
e065e03022eb7a9d2cafe8860784c65eea8cdc49f65c5d2d7570cace023c5042
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
wizmer/NeuroM
neurom/apps/morph_stats.py
Python
bsd-3-clause
9,849
[ "NEURON" ]
e8addb99f57cc9c9acf4646a94b8edf345b948c063f9aa9605ea48f0b87fc29a
# Copyright (C) 2010-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 v...
KaiSzuttor/espresso
testsuite/python/lb.py
Python
gpl-3.0
17,439
[ "ESPResSo" ]
703637f4af023eaa9782e28731e565ecbca76cb138560f4b8228cedc903e7d50
## \package GOXDiGraph A weighted directed graph representation of the Gene Ontology. # \author Brian Muller <mullerb@musc.edu> from networkx import DiGraph, dfs_postorder_nodes import Aspects from GOGraphBase import GOGraphBase from GOXGraph import GOXGraph import DOMLight class GOXDiGraph(DiGraph, GOGraphBase): ...
aswarren/GOGranny
GOGranny/GOXDiGraph.py
Python
gpl-2.0
3,272
[ "Brian" ]
7bb63e6277eda935eb366e5a9077db9ca92d9cc6152e8978a2370d5d03fe47d9
import gtk from ase.gui.languages import translate as _ class Number(gtk.SpinButton): def __init__(self, value=0, lower=0, upper=10000, step_incr=1, page_incr=10, climb_rate=0.5, digits=0): self.adj = gtk.Adjustment(value, lower, upper, step_incr, page_i...
slabanja/ase
ase/gui/widgets.py
Python
gpl-2.0
5,441
[ "ASE" ]
77eee3e8a4945193fea0eb7284b24b1daec4a9f0b636ad8dd8c2670072ec2ee2
#!/usr/bin/env python from __future__ import print_function from school_exp import load_school from ca_exp import load_ca from nips_exp import load_nips from words_exp import load_words import spacetime import numpy as np import scipy.io import itertools import sys, os, re, argparse def load_data( data ): nips_...
sunk/spacetime
kl_exp.py
Python
bsd-2-clause
3,123
[ "Gaussian" ]
a3c4dbe180a564d007c2d88bcceee87084b946e4434523c6c6fd15ddd59c560a
import os import sys from math import sqrt, fabs from scipy import optimize import numpy as np from array import array import cvfit from cvfit import data from cvfit import errors from cvfit.errors import residuals from cvfit.errors import SSD from cvfit.errors import SSDlik class MultipleFitSession(object): def ...
DCPROGS/CVFIT
cvfit/fitting.py
Python
gpl-2.0
21,252
[ "Gaussian" ]
4b53a5a30ba34e90609f08d9e0b85868ceda6ef6951f8e641fd80f6e3450ba19
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2009 Brian G. Matherly # Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
ennoborg/gramps
gramps/gui/dbman.py
Python
gpl-2.0
45,230
[ "Brian" ]
bc1b99a4c83de3085d0e42e466f357212f188fb77c92878377eda5e7b8d29a0c
# Copyright 2002 by Katharine Lindner. 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. """ Module to represent the NDB Atlas structure (a minimal subset of PDB format). Hetero,...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Crystal/__init__.py
Python
gpl-2.0
8,693
[ "Biopython", "CRYSTAL" ]
9182b5ce220be377aa4bd74f3259761577c43c37435829f2363c6c893e19de83
from __future__ import annotations from scitbx.array_family import flex from dials.algorithms.image.filter import convolve from dials.algorithms.statistics import BinnedStatistics # Module-level definition imported by the image viewer phil_str = """ n_iqr = 6 .type = int .help = "IQR multiplier for determini...
dials/dials
extensions/radial_profile_spotfinder_threshold_ext.py
Python
bsd-3-clause
5,140
[ "Gaussian" ]
e08f01cf6703181feaea2d94912a663e9cd1bf24fe97042c05272b43b70d0723
#!/usr/bin/env python3 ''' Unit tests for ToolDog ''' # Import ------------------------------ # General libraries import os import json import filecmp import unittest # External libraries import requests_mock # Class and Objects from tooldog import main, biotool_model from tooldog.annotate import galaxy, cwl, ed...
khillion/ToolDog
test/test_unit_tooldog.py
Python
mit
24,232
[ "Galaxy" ]
8e2df096d66c98b08c27014fb15fe96b2ecd033c5987456b294e0ceeaa5cc5bd
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2012-2013 Michal Kalewski <mkalewski at cs.put.poznan.pl> # # This file is a part of the Simple Network Simulator (sim2net) project. # USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO # THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHO...
mkalewski/sim2net
sim2net/mobility/_mobility.py
Python
mit
3,133
[ "VisIt" ]
2f02baa3366306fb92fe0f9cd51ef771b81031d450f8743f7c071f0bca13a18a
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # File Title: ngrok.py # Author: Selphia # Mail: LoliSound@gmail.com # Time: 2017年07月16日 星期日 04时10分16秒 # Version: # Ngrok Install import os import shutil print("""Please enter your system architecture: 1.) x64 2.) i386 3.) ARM (RaspBerry Pi) """) Arch=input() if Arch ...
selphia/ManagementScript
ngrok.py
Python
gpl-3.0
1,588
[ "MOE" ]
0fa49d4a0f203436db6002d2af07f343cc56787a3699841a955c43f73112d269
import os import numpy as np import numpy as np import scipy as sp from abc import ABCMeta, abstractmethod class DataSet(object): def __init__(self, data = None, params=None): if data is None: self._data = [] self._params = [] elif params is None: self._dat...
mmechelke/bayesian_xfel
bxfel/model/__init__.py
Python
mit
13,024
[ "Gaussian" ]
cd8856eba443afbc4b8b59733c0d83eea92663b02905fa7827ddd3710bf08e66
#!/usr/bin/env python """ Get rid of lines containing duplicate bonded nbody interactions in the corresponding section of a LAMMPS data file (such as bonds, angles, dihedrals and impropers). Duplicate lines which occur later are preserved and the earlier lines are erased. (This program reads from sys....
slitvinov/lammps-sph-multiphase
tools/moltemplate/src/remove_duplicates_nbody.py
Python
gpl-2.0
1,438
[ "LAMMPS" ]
040b54af07ccaf2ee8b99f2b56d981a37b8aa0c4ae2a7a8c1816e917ed6bc029
# ERPNext - web based ERP (http://erpnext.com) # Copyright (C) 2012 Web Notes Technologies Pvt Ltd # # 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 you...
indictranstech/focal-erpnext
home/__init__.py
Python
agpl-3.0
3,676
[ "VisIt" ]
70e70b2af3efd258635463b7f61d38ce256a4fe80f3281f2556792333497b701
""" Acceptance tests for Content Libraries in Studio """ from ddt import ddt, data from nose.plugins.attrib import attr from flaky import flaky from unittest import skip from .base_studio_test import StudioLibraryTest from ...fixtures.course import XBlockFixtureDesc from ...pages.studio.auto_auth import AutoAuthPage f...
nttks/edx-platform
common/test/acceptance/tests/studio/test_studio_library.py
Python
agpl-3.0
28,290
[ "VisIt" ]
a6558afbf98cbde2b2f6aafdf6d46cadeee877e072c2f23f1daa6fb79391928a
#!/usr/bin/env python import numpy as np import pandas as pd # from matplotlib.pyplot import plot,show,draw import scipy.io import sys sys.path.append("../") from functions import * from pylab import * from sklearn.decomposition import PCA import _pickle as cPickle import neuroseries as nts import os data_director...
gviejo/ThalamusPhysio
python/figure_article_v3/main_article_v3_fig_2.py
Python
gpl-3.0
24,115
[ "NEURON" ]
43553ca607ce085f5018d3629ffcb98f1d02f59e9e5fb0c5919648deaa67e63f
import random from simphony.core.cuba import CUBA from simphony.cuds.meta.api import Material from simphony.cuds.particles import Particle, Particles class MDExampleConfigurator: """ Class which handles configuration of MD examples Class provides an example configuration for a lammps molecular dynamic ...
simphony/simphony-lammps-md
simlammps/testing/md_example_configurator.py
Python
bsd-2-clause
5,576
[ "LAMMPS" ]
214f5a701da507065d7213a26d75c453f282120dab174b490ce6e730500820cd
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/transformations/wrap.py
Python
gpl-2.0
5,641
[ "MDAnalysis" ]
9c16123729c9d45ebc48655fd61a9f66667d6a2eaba56566318e9c2229ed08b7
import scipy.io as sio import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf import numpy as np import plotly.plotly as py import plotly.graph_objs as go import plotly.tools as tls from tqdm import tqdm from embedded_rnn_model import RecurrentActivityModel from helpers.dataloaders import MatLoad...
elijahc/ml_v1
rnn/continuous.py
Python
mit
12,924
[ "NEURON" ]
2d8e9f6d90aa24e81b483d223c89a825c5e77d2a507e634a1eb7ec5dea2b47a5
#!/usr/bin/env python # # tools.py # # Reimplementations of Santi's trim_longitudes.py and blastclust_lst2fasta.py # scripts/functions, and other miscellaneous functions # # (c) The James Hutton Institute 2016 # Author: Leighton Pritchard and Peter Thorpe import os import gzip from subprocess import check_output, Cal...
widdowquinn/THAPBI-pycits
pycits/tools.py
Python
mit
23,643
[ "BLAST", "Biopython", "pysam" ]
6f3d9d4d610ab11b2d3634637538992d4a7e20a88c966ddad0c70df3a49da137
""" font data tables for truetype and afm computer modern fonts """ # this dict maps symbol names to fontnames, glyphindex. To get the # glyph index from the character code, you have to use get_charmap """ from matplotlib.ft2font import FT2Font font = FT2Font('/usr/local/share/matplotlib/cmr10.ttf') items = font.get_...
tkaitchuck/nupic
external/linux64/lib/python2.6/site-packages/matplotlib/_mathtext_data.py
Python
gpl-3.0
57,988
[ "Bowtie" ]
10ce3d131be041046eeaa9e36166eacaab73b7e9666c980e19e83eaff09a759e
""" ExpandImports replaces imports by their full paths. """ from pythran.passmanager import Transformation from pythran.utils import path_to_attr import ast class ExpandImports(Transformation): """ Expands all imports into full paths. Attributes ---------- imports : {str} Imported modu...
hainm/pythran
pythran/transformations/expand_imports.py
Python
bsd-3-clause
3,987
[ "VisIt" ]
5afce342be614638e7ba9f52a27610a355948be25988a10ed1369afec4c6111d
""" =============== Gaussian fitter =============== .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> Created 3/17/08 Original version available at http://code.google.com/p/agpy/source/browse/trunk/agpy/gaussfitter.py (the version below uses a Class instead of independent functions) """ from __future__ impo...
jpinedaf/pyspeckit
pyspeckit/spectrum/models/gaussfitter.py
Python
mit
10,301
[ "Gaussian" ]
3659ea132138dfa2d6129caa5a1d70b236c9d67c885284fb6f90ef200db96922
""" KeepNote Copyright Matt Rasmussen 2008 Editor widget in main window """ # python imports import sys, os # pygtk imports import pygtk pygtk.require('2.0') from gtk import gdk ##import gtk.glade import gtk import gobject # keepnote imports ##import keepnote ##from rednotebook.gui.keepnote import...
tomka/rednotebook
rednotebook/gui/keepnote/gui/editor.py
Python
gpl-2.0
22,723
[ "VisIt" ]
f023f86e3160fac8da86ab9bc5601ad8d31dc94a573e0f2e2da39c78481accc6
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/procedures/mcscf/augmented_hessian.py
Python
gpl-2.0
5,871
[ "Psi4" ]
745d877784079b80106edb1baa31491849a04203a996093d9a7fa8dfe456adff
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
pli3/Openwebif
plugin/controllers/views/ajax/event.py
Python
gpl-2.0
10,247
[ "VisIt" ]
860e30421728d731cbf5dc29a9dfc4e68f3208543c3c4633746bc9a415da6c77
#!/usr/bin/env python3 import random import math import loos import LipidLibrary import PSFGen import NAMD import WaterBox if __name__ == '__main__': import sys import shutil import os import stat config = PSFGen.ReadConfig(sys.argv[1]) if len(sys.argv) > 2: config.directory = sys.ar...
GrossfieldLab/loos
Packages/OptimalMembraneGenerator/OptimalMembraneGenerator.py
Python
gpl-3.0
17,712
[ "NAMD" ]
6594c214e96680e599b4278977770ee2139a33f48c931a576ba88fec05818a2c
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # import El import time m = 250 n = 500 lambda1 = 3 lambd...
justusc/Elemental
examples/interface/ENDense.py
Python
bsd-3-clause
1,400
[ "Gaussian" ]
82d143a88ef8620a266a108810dadfc99d914a057dc0b73de76d6c67dd956bd2
# Start with users that need to be verified, # and an empty list to hold confirmed users. unconfirmed_users = ['alice', 'brian', 'candace'] confirmed_users = [] # Verify each user until there are no more unconfirmed users. # Move each verified user into the list of confirmed users. while unconfirmed_users: curre...
mccarrion/python-practice
crash_course/chapter07/confirmed_users.py
Python
mit
606
[ "Brian" ]
36c8247835f046510c89efa5e915adceab07e6b5049e09ea0192c1c76c986034
# Copyright (c) 2020 PaddlePaddle 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 app...
luotao1/Paddle
python/paddle/fluid/dygraph/dygraph_to_static/logical_transformer.py
Python
apache-2.0
4,789
[ "VisIt" ]
e2873762c67a599fd799b9228e2178d1bdf224368144a058bb18b8bc81345ec2
''' Created on Jul 15, 2011 @author: sean ''' from __future__ import print_function import _ast from graphlab.meta.asttools import Visitor from string import Formatter import sys from graphlab.meta.utils import py3op, py2op if sys.version_info.major < 3: from StringIO import StringIO else: from io import Stri...
ypkang/Dato-Core
src/unity/python/graphlab/meta/asttools/visitors/pysourcegen.py
Python
agpl-3.0
23,991
[ "VisIt" ]
7c53518697c913423cb3f55d665c6bd1833343b323d131dc3741c88d97159c75
# coding: utf-8 import os, sys, time, re from Crypto.Cipher import AES import crypt import pwd from binascii import b2a_hex, a2b_hex import hashlib import datetime import random import subprocess import uuid import json import logging from settings import * from django.core.paginator import Paginator, EmptyPage, Inva...
ibuler/jumpserver
jumpserver/api.py
Python
gpl-2.0
14,526
[ "VisIt" ]
0cc2bbe2b6c6e94a379ff15526b3a6b6d4ea5632b07c0e5d3f4050a460196da6
""" Just a selector for X509Certificate between PyGSI and M2Crypto based on DIRAC_USE_M2CRYPTO environment variable """ __RCSID__ = "$Id$" import os from pkgutil import extend_path ##### # SUPER DISGUSTING HACK # We define these variables, and then remove them immediately. # it is to allow something like 'from DIR...
fstagni/DIRAC
Core/Security/__init__.py
Python
gpl-3.0
1,116
[ "DIRAC" ]
3c9b7f4f37e81df03550c2362069d57bf9a81556eae867914ba36380c8c4c612
# -*- coding: utf-8 -*- """ Application Template for Rhineland-Palatinate (RLP) Crisis Management - used to manage COVID-19 test stations @license MIT """ from collections import OrderedDict from gluon import current, URL, A, DIV, TAG, \ IS_EMPTY_OR, IS_IN_SET, IS_INT_IN_RANGE, IS_NOT_...
flavour/eden
modules/templates/historic/RLPPTM/config.py
Python
mit
197,643
[ "Amber" ]
27b162283284513e619d0dd3e0c457548fc2161ee987ac172b23702d12d97c66
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # Copyright 2016 Kitware Inc. # # 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 cop...
Kitware/HPCCloud
server/taskflows/hpccloud/taskflow/pyfr/__init__.py
Python
apache-2.0
20,813
[ "ParaView", "VTK" ]
fd28558fb7b63c6a6b6fcfdab5b33d138ab9e56f9b9c324d172640bcace3c3d9
# ---------------------------------------------------------------------- # LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator # http://lammps.sandia.gov, Sandia National Laboratories # Steve Plimpton, sjplimp@sandia.gov # # Copyright (2003) Sandia Corporation. Under the terms of Contract # DE...
jag1g13/lammps
python/lammps.py
Python
gpl-2.0
28,009
[ "LAMMPS" ]
eab1e4a524de54c8c877ddabe0f1843a0e10a8659a8ae184aa9d1584437db556
# -*- coding: utf-8 -*- """ For each saddle point (out of three) in a bifurcation EC mesh place an 'imaginary' sphere around the point. Iterate over all EC centres and if a cell centre falls into one of the spheres, map the distance to the sphere centre to an ATP value. """ import os import vtk import math import num...
BlueFern/DBiharMesher
meshes/c4080ang/synCfd/GenerateSyntheticCFD_ATP60-110.py
Python
gpl-2.0
6,342
[ "VTK" ]
f92f3fc8ba8200121b592beba8b82221db81d8de2a7d37c4825b319204a7b8c6
from builtins import range from builtins import object import numpy as np from cs231n.layers import * from cs231n.layer_utils import * class TwoLayerNet(object): """ A two-layer fully-connected neural network with ReLU nonlinearity and softmax loss that uses a modular layer design. We assume an input dim...
DavidQiuChao/CS231nHomeWorks
assignment2/cs231n/classifiers/fc_net.py
Python
mit
17,124
[ "Gaussian" ]
453bb7c5661b4844bd346823a370593aa0ecd29c4a02749401981a20003ebdc8
""" This module contain solvers for all kinds of equations: - algebraic or transcendental, use solve() - recurrence, use rsolve() - differential, use dsolve() - nonlinear (numerically), use nsolve() (you will need a good starting point) """ from __future__ import print_function, division fr...
postvakje/sympy
sympy/solvers/solvers.py
Python
bsd-3-clause
122,311
[ "Gaussian" ]
82b311448aaeff360ebd9e9b8eb7237c322a9936413b78b2540dd515927408d9
# -*- coding: utf-8 -*- # # test_urbanczik_synapse.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 ...
lekshmideepu/nest-simulator
testsuite/pytests/test_urbanczik_synapse.py
Python
gpl-2.0
9,912
[ "NEURON" ]
050d48a27eb4d19c76af0bb417afbc342e630178f0aaa1ea7443fbcdd77defda
""" This pipeline is intended to extract Haralick features from T2W images. """ import os import numpy as np from protoclass.data_management import T2WModality from protoclass.data_management import GTModality from protoclass.preprocessing import RicianNormalization from protoclass.preprocessing import GaussianNorm...
I2Cvb/mp-mri-prostate
pipeline/feature-extraction/t2w/pipeline_extraction_phase_congruency_t2w.py
Python
mit
4,148
[ "Gaussian" ]
4c7dcb0352f347af018b51a686d62dfd1ce0842d970f0939fc7300a0c2cfd907
# Copyright (C) 2010-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 ...
psci2195/espresso-ffans
testsuite/python/dipolar_mdlc_p3m_scafacos_p2nfft.py
Python
gpl-3.0
7,552
[ "ESPResSo" ]
1d1cf4dabb6a7b8844b55ac0ff1b5e98d2cd5575a2d004795fa387cc28fc8a47
""" Module for the UngriddedData class """ import logging from time import gmtime, strftime import numpy import six from cis.data_io.netcdf import get_data as netcdf_get_data from cis.data_io.hdf_vd import get_data as hdf_vd_get_data from cis.data_io.hdf_sd import get_data as hdf_sd_get_data from cis.data_io.commo...
cedadev/jasmin_cis
cis/data_io/ungridded_data.py
Python
gpl-3.0
53,343
[ "NetCDF" ]
55b99b15527ec98675c84210e1e7793aabe9bb56027e2ab06cfd8bbf33f43d59
import unittest from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader from DIRAC.Core.DISET.RequestHandler import RequestHandler class ObjectLoaderMainSuccessScenario( unittest.TestCase ): def setUp( self ): self.ol = ObjectLoader() def __check( self, result ): if not result[ 'OK' ]: self.fai...
Sbalbp/DIRAC
Core/Utilities/test/ObjectLoaderTests.py
Python
gpl-3.0
917
[ "DIRAC" ]
c70024411c9e5c7052f547e3b0d0f4fbd47e798ee23c208f20288fe847ebcbd8
# -*- coding: utf-8 -*- import codecs import collections import json import os import tempfile from django import forms from django.core.files.storage import default_storage as storage from django.core.urlresolvers import reverse from mock import Mock, patch from nose.tools import eq_ from pyquery import PyQuery as p...
andymckay/zamboni
mkt/developers/tests/test_views_validation.py
Python
bsd-3-clause
9,409
[ "exciting" ]
ef5211394f8896344f75593050c1403c519b86a694b58007955d0c745ddcab25
''' Some tests for filters ''' from __future__ import division, print_function, absolute_import import numpy as np from numpy.testing import (assert_equal, assert_allclose, assert_array_equal, assert_almost_equal, suppress_warnings) from pytest import raises as as...
arokem/scipy
scipy/ndimage/tests/test_filters.py
Python
bsd-3-clause
16,554
[ "Gaussian" ]
ae305f1117a4682a9b57b1c0ea3a8548935a8bc0dabd6a26a6972f24a05a11b7
# -*- coding: utf-8 -*- """ Bok choy acceptance tests for problems in the LMS See also old lettuce tests in lms/djangoapps/courseware/features/problems.feature """ from textwrap import dedent from unittest import skip from ..helpers import UniqueCourseTest from ...pages.studio.auto_auth import AutoAuthPage from ...pa...
nttks/edx-platform
common/test/acceptance/tests/lms/test_lms_problems.py
Python
agpl-3.0
16,101
[ "VisIt" ]
d022c61f2ed5c1f0f598cf6111865962aa6cc4cc3a4c606613fc8e613bd0e697
## linelast.py ## This is my implementation of linear elasticity using FEniCS ## The reference that I used was ## A. Logg, K.-A. Mardal, G. N. Wells et al. (2012). Automated Solution of Differential Equations by the Finite Element Method, Springer. [doi:10.1007/978-3-642-23099-8] ## particularly Chapter 26 Applicati...
ernestyalumni/SME
linelast.py
Python
gpl-2.0
4,616
[ "VTK" ]
519342ef2a08d39ab489c4a06d9ebe3374b57777875766d385439810e9960537
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
johnchase/scikit-bio
skbio/sequence/_nucleotide_sequence.py
Python
bsd-3-clause
6,453
[ "scikit-bio" ]
b2f05627ff275ae7596c77af1f3f3d4a63752baf07bcdd7338d62a9ba748d029