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 (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...
tmerrick1/spack
var/spack/repos/builtin/packages/r-genie3/package.py
Python
lgpl-2.1
1,694
[ "Bioconductor" ]
0c0cbb19fa4d2626e857f7de0634599241dcd5e991f4383aa38d62b4b76663ea
# Copyright 2014 Roberto Brian Sarrionandia # # 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 t...
sarrionandia/tournatrack
trackpin.py
Python
apache-2.0
1,957
[ "Brian" ]
8bed831ac0b44c6c844e99f25867bd0b1cee50ca2d245c278f1247a2bee97aea
#!/usr/bin/python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute...
susilehtola/psi4
doc/sphinxman/document_psifiles.py
Python
lgpl-3.0
3,196
[ "Psi4" ]
a18578f8a8a969f41b75b2ae7af2fd9825412d83c44335a843547be0652ac944
# -*- coding: utf-8 -*- from __future__ import print_function """ This file is part of GEOVAL and edited for use with ESMValTool (c) 2016- Alexander Loew For COPYING and LICENSE details, please refer to the LICENSE file EDITS: 2015-12-17: - changed .data to .content to avoid Data.data.data to assess values ...
pygeo/geoval
geoval/core/data.py
Python
apache-2.0
163,462
[ "NetCDF" ]
59faa9f99ad12f36bd0f547dcfd06e6a60485504e57a571e7584e03e827f2cd5
#!/usr/bin/env python # -*- coding: utf-8 -*- # .. _poisson-topology-example: # # .. py:currentmodule:: dolfin_adjoint # # Topology optimisation of heat conduction problems governed by the Poisson equation # ================================================================================== # # .. sectionauthor:: Patri...
live-clones/dolfin-adjoint
examples/poisson-topology/poisson-topology.py
Python
lgpl-3.0
12,500
[ "ParaView", "VTK" ]
3e817d0d27d8ad93b1127a25c406aaa9e8ab4564d53ea9cc4fdeaf68482b2f95
""" This module contains the GromacsWriter class. It is used to apply atom names from known topologies to the molecule by using a graph-based representation of each molecule. Author: Robin Betz Copyright (C) 2019 Robin Betz """ # This program is free software; you can redistribute it and/or modify it under # the ter...
Eigenstate/dabble
dabble/param/gromacs.py
Python
gpl-2.0
13,368
[ "Amber", "CHARMM", "GROMOS", "Gromacs", "VMD" ]
6200acad7c4bf026db0a8061d31db440db934ed076fdc75458b2847ec852b6e3
import codecs import contextlib import io import locale import sys import unittest import warnings import encodings from test import support if sys.platform == 'win32': VISTA_OR_LATER = (sys.getwindowsversion().major >= 6) else: VISTA_OR_LATER = False try: import ctypes except ImportError: ctypes = N...
jiangzhuo/kbengine
kbe/src/lib/python/Lib/test/test_codecs.py
Python
lgpl-3.0
111,483
[ "FEFF" ]
8ecad1575979a922ca09d8f094dd1432aa845a73a8cb6fbb2195603483a0ddda
from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from math import sqrt from math import exp from math import pi from concept_formation.utils import c4 class ContinuousValue(): """ This class is used to store t...
cmaclell/concept_formation
concept_formation/continuous_value.py
Python
mit
7,374
[ "Gaussian" ]
56eabbedccf291eff68d6e107e86e8a55e51d389de39dde409a86a81d65037ca
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap 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....
brianmay/python-tldap-debian
tldap/modlist.py
Python
gpl-3.0
5,483
[ "Brian" ]
6f2705e32af095c011be6ab99488fa79ac47774684c1d795ccebb06c5af6d7fe
import unittest from django.urls import reverse from django.test import TestCase, RequestFactory from media_management_api.media_service.models import Course, Collection from media_management_api.media_service.iiif.views import IiifManifestView from media_management_api.media_service.iiif.objects import IIIFManifest ...
Harvard-ATG/media_management_api
media_management_api/media_service/tests/test_iiif.py
Python
bsd-3-clause
5,676
[ "Galaxy" ]
cd2549f2489c2d9b194e9bc815c7cad152f8fda048bc34f81a51239f880eb26f
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University # Berlin, 14195 Berlin, Germany. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source c...
trendelkampschroer/PyEMMA
pyemma/coordinates/tests/test_save_trajs.py
Python
bsd-2-clause
7,362
[ "MDTraj" ]
c5598c9c54bc164533d5299bdaab2707dfadcaadd37dc0640e9c467af68099c5
import logging log = logging.getLogger( __name__ ) from sqlalchemy import create_engine from galaxy.model.orm import load_egg_for_url def build_engine(url, engine_options, database_query_profiling_proxy=False, trace_logger=None): load_egg_for_url( url ) # Should we use the logging proxy? if database_que...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/orm/engine_factory.py
Python
gpl-3.0
855
[ "Galaxy" ]
bc45fda89a8a32368f8996f7a52d02035ddf7cd8ae5022fdb1c8d0d7e230bed8
from matplotlib import pyplot as plt import numpy as np def my_plot_convergence(*args, **kwargs): """Plot one or several convergence traces. Parameters ---------- * `args[i]` [`OptimizeResult`, list of `OptimizeResult`, or tuple]: The result(s) for which to plot the convergence trace. ...
pligor/predicting-future-product-prices
02_preprocessing/gp_opt/plot_res_gp.py
Python
agpl-3.0
3,213
[ "Gaussian" ]
7341689d140852fdc6f0faf8246cc6844c39e5524dbbc956f69110747871c24d
#!/usr/bin/env python # -*- coding: utf-8 -*- # This is a very simple way to culculate the famous number of Pi, which is very use in mathematics ans science. We can call this 'the magical number', because it appears naturally in a lot of formulas and scopes. # With this program we calculate Pi with the Montecarlo's me...
xoancosmed/Calculate-Pi
Montecarlo/Montecarlo.py
Python
gpl-3.0
2,279
[ "VisIt" ]
efcb3eb69ae77b5140de736dffbda414df1ffadcee3329570ff124299845bb29
""" Play a trace of a PyCSP application Usage: python PlayTrace.py <trace file> Requires: Graphviz wxPython 2.8+ PyCSP Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License...
runefriborg/pycsp
tools/PlayTrace.py
Python
mit
35,826
[ "Brian" ]
ae20b42fc026306b5b298cc6f3aa949a822651ac0856d014f9a9f77f386ae72b
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ %prog -i query.fa -d database.fa [options] run LASTZ similar to the BLAST interface, and generates -m8 tabular format """ import os import sys import math import logging logging.basicConfig(level=logging.DEBUG) from subprocess import Popen, PIPE from multiprocessing...
asherkhb/coge
bin/blastz_wrapper/blastz.py
Python
bsd-2-clause
4,303
[ "BLAST" ]
bd28c4fa3317c46688960648f7ccfbef83a43bc733110d3c5671c2c01bd0abd2
""" ==================================== Outlier detection on a real data set ==================================== This example illustrates the need for robust covariance estimation on a real data set. It is useful both for outlier detection and for a better understanding of the data structure. We selected two sets o...
huzq/scikit-learn
examples/applications/plot_outlier_detection_wine.py
Python
bsd-3-clause
5,809
[ "Gaussian" ]
f96cb3c45692d89b66c74037a4add63ae5fbb69de08d1d14efa4aa8cce8f2558
# freeseer - vga/presentation capture software # # Copyright (C) 2011, 2013 Free and Open Source Software Learning Centre # http://fosslc.org # # 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 Foundati...
Freeseer/freeseer
src/freeseer/plugins/videomixer/videopassthrough/__init__.py
Python
gpl-3.0
8,637
[ "VisIt" ]
c908576c119633047dfe41433d1a2ea59ef7cfe9d69be9f2c056243b8e5b77a1
import numpy as np from scipy import optimize import time import pprint def bose_g(z, power=3./2., n_terms=5): """Evaluate the bose g function g_n(z) = \sum{i}{z^i/n^i} for i = 1 to infinity here n is the power n_terms is the number of terms to use in the summation. """ if isinstance(z, floa...
shreyaspotnis/ipbec
ipbec/clt/fittools.py
Python
mit
13,000
[ "Gaussian" ]
0f552cf764eae45ffc27ea9c64ae31eaf1a26562ceef2440e9406e8118794909
import sys from math import erf,sqrt from ..utils.autoconv import autoconv class Mixture: ID = "mixture" def __init__(self, n_components, cutoff): self.n_components = n_components self.cutoff = cutoff self.gmms = None @staticmethod def register(parser): parser.add_a...
cpitclaudel/dBoost
dboost/models/mixture.py
Python
gpl-3.0
3,284
[ "Gaussian" ]
871711a634dca0485c95227da26cefa0f579cafcbd062974a4545254ed56da65
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import nmap import datetime import os from nose.tools import assert_equals from nose.tools import raises from nose import with_setup from multiprocessing import Value """ test_nmap.py - tests cases for python-nmap Source code : https://bitbucket.org/xael/python-nmap ...
Haynie-Research-and-Development/jarvis
deps/lib/python3.4/site-packages/nmap/test_nmap.py
Python
gpl-2.0
12,722
[ "Brian" ]
a9a412c97e8e7899fa0a4e57344c2056a6e35d5ea141a3d91672eb456f30e9b6
############################################################################### # GaussianAmplitudeWrapperPotential.py: Wrapper to modulate the amplitude # of a potential with a Gaussian ############################################################################### import nump...
jobovy/galpy
galpy/potential/GaussianAmplitudeWrapperPotential.py
Python
bsd-3-clause
1,914
[ "Gaussian" ]
9b247ef212d24bdad8ad40ec43f4b3fe6b4da46854ff4989722d4519f0655a7d
#!/usr/bin/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 # # Unles...
sunqm/pyscf
pyscf/pbc/gto/basis/split_GTH_BASIS_SETS.py
Python
apache-2.0
1,567
[ "PySCF" ]
28db80c45241a02a345c7c06a0f75ecbb13e169308389727db7910d7129e3720
""" ConnectionField and associated classes. This module defines some basic classes of objects used to create simulations of cortical sheets that take input through connection fields that project from other cortical sheets (or laterally from themselves). ConnectionField: Holds a single connection field within a CFProj...
mjabri/topographica
topo/base/cf.py
Python
bsd-3-clause
47,553
[ "NEURON" ]
cc8eda88f1446ea8ae7f33438ba96a5c9ee51a07b007ce9130f8cfc9c28048e5
# coding: utf-8 # # Test out standardized ADCIRC, SELFE and FVCOM datasets with pyugrid, IRIS and Cartopy # The datasets being accessed here are NetCDF files from ADCIRC, SELFE and FVCOM, with attributes added or modified virtually using NcML to meet the [UGRID conventions standard for unstructured grid models](htt...
rsignell-usgs/notebook
pyugrid/notebook_examples/pyugrid_cartopy_test.py
Python
mit
3,029
[ "NetCDF" ]
3667c260ecd2bccfa993dd0e820364495b37b8c0edbb75306ab16ebc55504861
#!/usr/bin/env python '''CREATED:2013-12-09 00:02:54 by Brian McFee <brm2132@columbia.edu> Estimate the tuning (deviation from A440) of a recording. Usage: ./tuning.py [-h] input_file ''' from __future__ import print_function import argparse import sys import librosa def estimate_tuning(input_file): '''Load an...
ebattenberg/librosa
examples/estimate_tuning.py
Python
isc
1,274
[ "Brian" ]
aab746aa6383a214aa948b70f6d66a86fb7a581c24d1fb5dbfe9cf371688d76a
# # 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...
shiwalimohan/RLInfiniteMario
system/codecs/Python/src/rlglue/environment/Environment.py
Python
gpl-2.0
1,264
[ "Brian" ]
70370e09d8f0c6cd812765cb5f6ce12a2f6a0749b111d4c7f75ab90d165c556d
#!/usr/bin/env python # File created on 09 Feb 2010 from __future__ import division __author__ = "Dan Knights" __copyright__ = "Copyright 2011, The QIIME Project" __credits__ = ["Dan Knights", "Luke Ursell"] __license__ = "GPL" __version__ = "1.9.1-dev" __maintainer__ = "Dan Knights" __email__ = "daniel.knights@colora...
josenavas/qiime
scripts/supervised_learning.py
Python
gpl-2.0
11,481
[ "VisIt" ]
646bcf8847f4de7b89d85013ff7ff3bba4e80e4a737e18094f6b594bdd7055d1
# -*- coding: utf-8 -*- # # Copyright (c) 2018, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Test the Moments method in cclib""" import unittest from unittest import mock import numpy as np from numpy.testing i...
ATenderholt/cclib
test/method/testmoments.py
Python
bsd-3-clause
4,745
[ "cclib" ]
0402e06588da8aaecbc7ab3c7b89825ff9908170df84e024376a8a41b23fa7ec
# -*- coding: utf-8 -*- import os import time from collections import OrderedDict from translate.misc import wStringIO from translate.storage import po, poheader, poxliff def test_parseheaderstring(): """ test for the header parsing function""" source = r'''item1: one item2: two:two this item must get ignor...
dwaynebailey/translate
translate/storage/test_poheader.py
Python
gpl-2.0
10,934
[ "MOE" ]
d0d8f16c1af1d391c9211137f006d55c82942083fba68f1a278f3feedf14d4c3
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # Copyright 2010 Joanmarie Diggs, Mesar Hameed # # This library 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 2.1 of the License, ...
pvagner/orca
src/orca/orca_state.py
Python
lgpl-2.1
2,115
[ "ORCA" ]
a2ce420f548178896101e59c650831de1921d709d6d35c495b5108866052219f
'''This example illustrates how to run a Markov Chain using pypmc''' import numpy as np import pypmc # define a proposal prop_dof = 1. prop_sigma = np.array([[0.1 , 0. ] ,[0. , 0.02]]) prop = pypmc.density.student_t.LocalStudentT(prop_sigma, prop_dof) # define the target; i.e., the function...
fredRos/pypmc
examples/markov_chain.py
Python
gpl-2.0
1,798
[ "Gaussian" ]
7139297dafc8b9178da181d65acd870664cab63e4f58a7a46114b092a948604e
#!/usr/bin/env python # Copyright 2014-2018 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/scf/test/test_stability.py
Python
apache-2.0
9,774
[ "PySCF" ]
182d0a7b476329def985f5a4444a8f588b1e71872de3a9246e91e567e0df55f3
#!/usr/bin/python # # Flickr API implementation # # Inspired largely by Michele Campeotto's flickrclient and Aaron Swartz' # xmltramp... but I wanted to get a better idea of how python worked in # those regards, so I mostly worked those components out for myself. # # http://micampe.it/things/flickrclient # htt...
Oh233/Flicrawler
query_imgs/flickrapi2.py
Python
mit
17,925
[ "Brian", "VisIt" ]
b699397af369c37b1da07f11d8fb9a88b35f9362c29eed86a5c8d87f439a8ff6
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # 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) # # Released under t...
alejob/mdanalysis
package/MDAnalysis/tests/__init__.py
Python
gpl-2.0
4,220
[ "CHARMM", "Gromacs", "MDAnalysis" ]
eb80c756ed2e875096371a32d202ab50de1a3e304cf69a30d784114c2f61a5f3
"""Script to plot the fano factor graph for a given simulation stored as a trajectory to an HDF5 file. """ __author__ = 'Robert Meyer' import os import matplotlib.pyplot as plt from pypet import Trajectory, Environment from pypet.brian.parameter import BrianMonitorResult, BrianParameter def main(): filename...
nigroup/pypet
examples/example_11_large_scale_brian_simulation/plotff.py
Python
bsd-3-clause
1,583
[ "Brian" ]
db664c13533cb588d3e7d5f94a8100fbe972c80a443a7292b494887e5d11b4d4
"""Code for the B{0store} command-line interface.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function from zeroinstall import _ import sys, os, errno from zeroinstall.zerostore.manifest import verify, get_algorithm, copy_tree_...
dabrahams/zeroinstall
zeroinstall/zerostore/cli.py
Python
lgpl-2.1
7,406
[ "VisIt" ]
50061b0cf41fd974d72d04f2d7723794c06ce1ba4f13ac8ac6901a1bc314e873
from vtk.util import vtkMethodParser class Tester: def __init__(self, debug=0): self.setDebug(debug) self.parser = vtkMethodParser.VtkDirMethodParser() self.obj = None def setDebug(self, val): """Sets debug value of the vtkMethodParser. 1 is verbose and 0 is not. 0 i...
keithroe/vtkoptix
Wrapping/Python/vtk/test/BlackBox.py
Python
bsd-3-clause
2,957
[ "VTK" ]
25cc4f0a004f1506df3473d6235e8cfdc331c246908d2e58e78c6b0c12aedf6d
#* 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 import subp...
harterj/moose
python/TestHarness/tests/test_Recover.py
Python
lgpl-2.1
1,321
[ "MOOSE" ]
2a97c20ef38d586b044d961ef0d2874664017367a21090e1ae946ca98429efa5
# demo: generate the noninteracting DOS from the Hamiltonian produced by DFT+MLWF import sys # directory for the main code sys.path.append('..') from int_donly_tilted_3bands import calc_Gavg from numpy import * from functions import * from share_fun import grule import init N_LAYERS = 4 FLAVORS = 3 SPINS = 1 mu = ...
hungdt/scf_dmft
examples/calculate_dos_dft_mlwf.py
Python
mit
1,918
[ "Gaussian" ]
325d22c5df1027268580d23f973349d45348cf45fbd9e4255947e5c901ff59e0
# ROC curve/AOC calculator using MOE database input file (in .txt format) # Active compoounds must be placed first (lowest mseq values) # Usage : MOE_db_ROC_analysis.py [filename.txt] ([NB_COMPOUNDS] [NB_POSITIVE_COMPOUNDS]) # If not given, NB_COMPOUND = 100 and NB_POSITIVE_COMPOUNDS = 10 # For more information, contac...
RubenStaub/ROC-calculator-for-MOE-docking
MOE_db_ROC_analysis.py
Python
gpl-3.0
3,516
[ "MOE" ]
4b28b7adc313467a02e8bf068702cc4c37affcd8977defece860712d825ca780
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Rackspace # Copyright (c) 2011 X.commerce, a business unit of eBay 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 t...
fajoy/nova
nova/tests/network/test_manager.py
Python
apache-2.0
95,224
[ "FEFF" ]
513a264bb4786aac6b49e1b2cf98af99f38509659ca22977fe03c3b5d8dba21e
#!/usr/bin/env python """ simple plot of Chapman profile Michael Hirsch """ from numpy import arange from matplotlib.pyplot import subplots, show import seaborn as sns sns.set_context("talk") # from histfeas.arcclass import ChapmanArc def plotchapman(Wkm, H, X0, Z0): x = arange(-5, 5, 0.05) z = arange(60, 30...
scienceopen/histfeas
Plots/PlotChapmanProfile.py
Python
gpl-3.0
968
[ "Gaussian" ]
ad354fac5f55df1a3658c4751476b6e2507f1aed0f90802794c967b2e29a6ea7
#!/usr/bin/env python """ Remove the outputs produced by a transformation """ from __future__ import print_function import sys from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() if len( sys.argv ) < 2: print('Usage: dirac-transformation-remove-output transID [transID] [transID]') sys.exit() e...
chaen/DIRAC
TransformationSystem/scripts/dirac-transformation-remove-output.py
Python
gpl-3.0
945
[ "DIRAC" ]
da43b452a66abce2a3650c1cc1c73866126cbac6748a007dd6eb4ce88d0abbf7
# 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...
espressomd/espresso
testsuite/python/observable_profileLB.py
Python
gpl-3.0
8,479
[ "ESPResSo" ]
5819294bfd98e541a85baa703a1d24c5850b89da5f29db83516526c9b9616863
# -*- coding: utf-8 -*- # Copyright 2014 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os import unittest from splinter import Browser from .base import BaseBrowserTests from .fake_webapp import app, EXAMPLE_APP c...
gjvis/splinter
tests/test_flaskclient.py
Python
bsd-3-clause
4,421
[ "VisIt" ]
c1767510266a3b4c174fe736a82adf17a0e77715583a1e9cb257285c461470bf
# -*- coding: utf-8 -*- # Copyright (C) 2004-2019 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # William Schwartz <wkschwartz@gmail.com> # All rights reserved. # BSD license. # # Authors: Aric Hagberg (hagberg@lanl.gov) # Dan Schul...
sserrot/champion_relationships
venv/Lib/site-packages/networkx/algorithms/distance_measures.py
Python
mit
18,963
[ "Brian" ]
991021e0198d10ea580f1d999b2a0e293e7b5c4ba7245514657b879610f014f7
# Copyright 2004-2008 by Sebastian Bassi. # Copyright 2013 by Markus Piotrowski. # 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. """Calculate the melting temperature of nucleot...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SeqUtils/MeltingTemp.py
Python
gpl-2.0
43,014
[ "Biopython" ]
70b7a056c5c2d2e2e03fe35fb786cf826509a52d62e16635ec072b94f2343dbf
#!/usr/bin/env python3 # This script generates pvd files for time series in paraview import vtktools as vtk import glob import re import sys def generate_pvd(pvdfilename, list_vtu_filenames, list_time): """ This function writes a simple xml pvd file that can be loaded in paraview to display time series c...
FluidityStokes/fluidity
tools/genpvd.py
Python
lgpl-2.1
3,968
[ "ParaView", "VTK" ]
c5cf12cb058e61d5fa03ead526cd1190ef2300629ddf900f0470dbf01bd7d2f7
import argparse import os from os.path import join as pjoin import theano from models.neural_net.layers import HiddenLayer, ResidualHiddenLayer from models.neural_net.activation_fns import ReLU, Sigmoid, Identity from train_scripts.train_gauss_VAE import train_and_eval_gaussian_vae from utils.utils import mkdirs def ...
enalisnick/stick-breaking_dgms
run_gauss_VAE_experiments.py
Python
mit
5,463
[ "Gaussian" ]
481fc778bb90e51eb2dfecaed25a9bb061f415121a6b499c8e9428caca6f362f
# Copyright (c) 2015-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2015-2016 Ceridwen <ceridwenv@gmail.com> # Copyright (c) 2016 Jakub Wilk <jwilk@jwilk.net> # Copyright (c) 2017 Łukasz Rogalski <rogalski.91@gmail.com> # Copyright (c) 2018 Nick Drozd <nicholasdrozd@gmail.com> # Copyright (c) 2019 Ashley Whe...
PyCQA/astroid
tests/unittest_protocols.py
Python
lgpl-2.1
12,935
[ "VisIt" ]
88ff4a11fd7175a78700c3223049bdabe2f36543e8104bc7d899fc9275675b82
""" @name: Modules/CXore/Drivers/USB/usb_open.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2011-2020 by D. Brian Kimmel @license: MIT License @note: Created on Mar 27, 2011 @summary: This module is for communicating with USB devices. This will interface various PyHo...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Drivers/Usb/Usb_open.py
Python
mit
6,996
[ "Brian" ]
7c80e9bba37a7bcc472b85b915d57fd36ebfcbbfa3b69a6a9a1e3a7cdae8e91d
""" Unit tests for each of the recognised CDL constant types. """ import os import tempfile import unittest import cdlparser import numpy as np #--------------------------------------------------------------------------------------------------- class TestConstants(unittest.TestCase) : #--------------------------------...
ocehugo/cdlparser
test/test_constants.py
Python
bsd-3-clause
5,869
[ "NetCDF" ]
2249315b937aee4ef68f8b69e0b717f0fae735b150d996ed465e971787942476
# coding: utf-8 # 😬 from django.utils.translation import ugettext_lazy as _ # This file is a place to store static, translatable strings SECTORS = ( # (value, human-readable label) ("Public Administration", _("Public Administration")), ("Arts, Entertainment, and Recreation", _("Arts, Entertainment, and R...
onaio/kpi
kobo/static_lists.py
Python
agpl-3.0
16,731
[ "BWA" ]
3d861621a6a63293d8f435ba6c2211d1db509c763e2be2daf197d0d8f8256871
#!/usr/bin/env python # Credit: Chris Gulvik with modification by Joe Healey from argparse import ArgumentParser def parseArgs(): parser = ArgumentParser(description='Filters BLAST output format 6 ' '(tab-delimited) for best hit based on bitscore. ' 'Handles additional data following bitscore (column 12).', ...
MicroInfect/bioinfx
blastfilterer.py
Python
gpl-3.0
2,012
[ "BLAST" ]
6df572863ad4a3f4e61896f08da436f3ff5353a2fef534f7f6f0de21ec0b7884
import pandas as pd # 1.1 Understanding the dataset # =================================================================================== # - Import the dataset into a pandas dataframe using the read_table method. # Because this is a tab separated dataset we will be using '\t' as the value # for the 'sep' argument whi...
aktse/udacity-mlnd
projects/naive_bayes/spam_model.py
Python
mit
19,886
[ "Gaussian" ]
455593ee653522871b25e0bb3d89d45788f182c36eae18ab453b6795c305c64d
#!/usr/bin/python """ Copyright (C) 2015 Albrecht Kleinfeld and Oskar Maier This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions; see the LICENSE file or <http://www.gnu.org/licenses/> for details. """ # build-in modules import argpars...
kleinfeld/medpy
bin/medpy_occlusion.py
Python
gpl-3.0
7,046
[ "Gaussian" ]
c15788455639809b77fe6aafe976fae0f8a98e7aab62f6bbc4de89ad15c761b3
import RPi.GPIO as GPIO import sys import time import logging <<<<<<< HEAD from math import * from gps_threaded import GpsPoller ======= from math import radians from gps_threaded import Point, GpsPoller >>>>>>> e8f7b34679a54b190cce189c46f1fef55d19994c from sqlalchemy import create_engine from sqlalchemy.orm import ses...
kashifpk/droneos
RPi_code/navigator.py
Python
gpl-2.0
13,329
[ "Amber" ]
4c4af4d03ad740fa2328835296c120db928ea8e8bec9ccdf5107f3ea0ca84842
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # vgridadmin - manage vgrids # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
heromod/migrid
mig/shared/functionality/vgridadmin.py
Python
gpl-2.0
24,434
[ "Brian" ]
1ff298f4771fdd9ba5a849108e70231f37fec430c1b0b20995049e1f00bc2f33
# Copyright 2018 Open Source Robotics Foundation, 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 copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
ros2/launch
launch/launch/launch_description.py
Python
apache-2.0
8,414
[ "VisIt" ]
360702c76f4d567f2508f70f2932007fcb3cb07fdbbedb08447910b13f4caa68
""" Gaussian Mixture Models. This implementation corresponds to frequentist (non-Bayesian) formulation of Gaussian Mixture Models. """ # Author: Ron Weiss <ronweiss@gmail.com> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Bertrand Thirion <bertrand.thirion@inria.fr> import warnings import numpy as...
jchodera/bhmm
bhmm/_external/sklearn/mixture/gmm.py
Python
lgpl-3.0
27,825
[ "Gaussian" ]
deb968773f72e47ab02fc2009171e706cb8b96b935d4c6cea0ec4e103988a0cc
'''apport package hook for update-manager (c) 2011 Canonical Ltd. Author: Brian Murray <brian@ubuntu.com> ''' from apport.hookutils import * def add_info(report, ui): attach_gconf(report, 'update-manager') response = ui.yesno("Is the issue you are reporting one you encountered when upgrading Ubuntu from on...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/apport/package-hooks/source_update-manager.py
Python
gpl-3.0
1,524
[ "Brian" ]
904bea51cf440edeb4d0269ac7d060b97c714407f5065a7d5c4ec426f1ad2467
""" The Grid module contains several utilities for grid operations """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import six import os import re from DIRAC.Core.Utilities.Os import sourceEnv from DIRAC.FrameworkSystem.Client.ProxyManagerClient import g...
yujikato/DIRAC
src/DIRAC/Core/Utilities/Grid.py
Python
gpl-3.0
4,227
[ "DIRAC" ]
a07dd5c5477541a42633ec99b6d1070b1bfc7d4797a29e513d58c3bfca5a8569
from txtalert.core.models import Patient, ClinicNameMapping, MSISDN, Visit from django.conf import settings from django.contrib.auth.models import User from django.db import transaction from datetime import datetime, timedelta from dateutil.parser import parse as date_util_parse from txtalert.apps.general.settings.mode...
praekelt/txtalert
txtalert/core/wrhi_automation.py
Python
gpl-3.0
16,809
[ "VisIt" ]
68b20d8ef0729253f93e1de1ccd57f34bec68f9fc6dcb5c1994e34fc5d1e6d79
from node_visitor import NodeVisitor from scoped_symbol_table import ScopedSymbolTable from built_in_symbol import BuiltInSymbol from variable_symbol import VariableSymbol from function_symbol import FunctionSymbol class SemanticAnalyzer(NodeVisitor): def __init__(self): self.current_scope = None def ...
doubledherin/my_compiler
semantic_analyzer.py
Python
mit
3,538
[ "VisIt" ]
191037004ebf5fc97c93cc41c5a66c43a30889061c5c0c25142591c05e9718ec
import os.path, xml.dom.minidom, shutil, StringIO import xmlstore.xmlstore import xmlplot.common, xmlplot.data import common, scenario class ResultProperties(xmlstore.xmlstore.TypedStore): """Class for result properties, based on xmlstore.TypedStore. Currently this does nothing specific except automatica...
BoldingBruggeman/gotm
gui.py/core/result.py
Python
gpl-2.0
9,161
[ "NetCDF" ]
90fffa6940e5e254581699cc9d0364b6fc8444cd063ca283815a0b1097eea848
# Copyright (C) 2010, Jesper Friis # (see accompanying license files for details). """Definition of the Spacegroup class. This module only depends on NumPy and the space group database. """ import os import warnings import numpy as np __all__ = ['Spacegroup'] class SpacegroupError(Exception): """Base excepti...
chrisjsewell/ipymd
ipymd/data_input/spacegroup/spacegroup.py
Python
gpl-3.0
25,815
[ "ASE", "CRYSTAL" ]
ff96314930aa6628b6492de5691d086f147900cbb34d0d0b7d4fa2b82b104c15
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2007-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later. ...
Clyde-fare/cclib
test/__init__.py
Python
lgpl-2.1
572
[ "cclib" ]
25e46266f0d986e5335bf6bd3fe5647fd40916c2dbebbc40192450fe996c9a8d
#!/usr/bin/env python import os import sys import math import time import importlib import sysconfig import subprocess import collections if sys.version_info <= (3, 0): print('Much of this script needs py3') sys.exit() # good #import numpy as np #import psi4 # bad import psi4 import numpy as np def test_t...
CDSherrill/psi4
psi4/share/psi4/scripts/test_threading.py
Python
lgpl-3.0
10,708
[ "Psi4" ]
05eac7b58a07b6da6d5b58a89dbd51776341930b3c84a951922684de2e2a8399
#!/usr/bin/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 # # Unles...
sunqm/pyscf
pyscf/pbc/gto/basis/split_HFX_BASIS.py
Python
apache-2.0
1,626
[ "PySCF" ]
f1db6469e8ee771fcc5b3b402acd7f0064154c2ef064a5c1c92f3cdaaa215d14
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
Achuth17/scikit-bio
skbio/sequence/tests/test_sequence.py
Python
bsd-3-clause
102,057
[ "scikit-bio" ]
0840194f6edc985be2ff1e50b5a0e23a9c41c41efd7d5c6280be3f5fa246de70
import random HANGMANPICS = [''' +---+ | | | | | | ========''',''' +---+ | | O | | | | ========''',''' +---+ | | O | | | | | ========''',''' +---+ | | O | /| | | | ========''',''' +---+ | | O | /...
liulyn/python_game
sourceCode/hangman.py
Python
gpl-3.0
3,464
[ "MOOSE" ]
c285e5e350ee1a909acd3e2bbc8c8950cf79a785775dd44d7339fc53ea90965a
# -*- coding: utf-8 -*- # # multimeter_file.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 License...
stinebuu/nest-simulator
pynest/examples/multimeter_file.py
Python
gpl-2.0
6,029
[ "NEURON" ]
d122673f264048edeb2cdfb4b3b1e17848842390dff87740657f1615364b835f
from setuptools import setup setup( name = 'rformat', version = '0.2.0', author = 'brian wickman', author_email = 'wickman@gmail.com', license = 'MIT', description = 'rformat is a recursive version of str.format', zip_safe = True, py_modules = ['rformat'], )
wickman/rformat
setup.py
Python
mit
276
[ "Brian" ]
83b2e238676216de1bc3a2850c070fc609e7e0f239d4e25742f5836dba4f7ef4
from diraccfg import CFG from DIRAC import S_OK, S_ERROR from DIRAC.Core.Utilities import List from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations from DIRAC.Core.Utilities.JDL import loadJDLAsCFG, dumpCFGAsJDL class JobManifest: def __init__(self, manifest=""): self.__manifest = C...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Client/JobState/JobManifest.py
Python
gpl-3.0
9,064
[ "DIRAC" ]
f367e0742d7c4330b7cd075a60fe7a9afe5ce4e7b7b81a7185245bacbfad6c62
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
rmcgibbo/psi4public
psi4/driver/qcdb/basislistdunning.py
Python
lgpl-3.0
33,095
[ "Psi4" ]
88c73b9ea2e989f92396f11ce0ca7c16127d7acb7418211d02c4ca1f7b459a10
""" Tests for discussion pages """ import datetime from pytz import UTC from uuid import uuid4 from nose.plugins.attrib import attr from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.courseware import CoursewarePage from ...pages.lms.discussion import ( Discus...
UQ-UQx/edx-platform_lti
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
34,277
[ "VisIt" ]
f9fe5837812dfa6af902c35acab89db95e834db24a7297c9d8c4ebed70b47504
''' FieldElements. >>> import moose on node 0, numNodes = 1, numCores = 8 Info: Time to define moose classes:0 Info: Time to initialize module:0.05 >>> a = moose.IntFire('a') Created 123 path=a numData=1 isGlobal=0 baseType=IntFire >>> b = moose.Synapse('a/b') Created 125 path=a/b numData=1 isGlobal=0 baseType=Synapse...
BhallaLab/moose-examples
snippets/fieldelement.py
Python
gpl-2.0
5,710
[ "MOOSE" ]
99c0652fbff16986b06bff690fd52bd410eb27a0020a0676200c25d47cc26987
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # ...
huzq/scikit-learn
sklearn/preprocessing/_data.py
Python
bsd-3-clause
115,805
[ "Gaussian" ]
ec4074ab9c8593b92cedce7b5884fbff364d9893598506d257f4245b37dd8b85
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2011, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.zenoss.PostgreSQL
setup.py
Python
gpl-2.0
3,323
[ "VisIt" ]
e65c0f360c74c66b0ab0a0ec3b931b2a2ad3e72c4de9975d64ecf92e87468102
# -*- coding: utf-8 -*- import json from catmaid.control.annotation import _annotate_entities from catmaid.models import ClassInstance, Log from .common import CatmaidApiTestCase class NeuronsApiTests(CatmaidApiTestCase): def test_rename_neuron(self): self.fake_authentication() neuron_id = 233 ...
catmaid/CATMAID
django/applications/catmaid/tests/apis/test_neurons.py
Python
gpl-3.0
3,467
[ "NEURON" ]
c2204dc3f3e3816eb5d2d9fa29b75e29378c91f96644a0db14176f39fc52b731
from datetime import datetime import os from matplotlib.mlab import normpdf from matplotlib.patches import Rectangle import numpy as np import pandas as pd import statsmodels.api as sm from scipy.stats import wilcoxon, norm, mannwhitneyu from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt ...
jbonaiuto/perceptual-choice-hysteresis
src/python/perceptchoice/experiment/analysis.py
Python
gpl-3.0
52,031
[ "Gaussian" ]
22994f230fb900765215a8110db064435486e099f327f74cfa5cbfc056c78052
# # Copyright (C) 2001-2005 Ichiro Fujinaga, Michael Droettboom, Karl MacMillan # 2014 Fabian Schmitt # 2009-2014 Christoph Dalitz # # 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 S...
playingaround2017/test123
gamera/plugins/listutilities.py
Python
gpl-2.0
6,383
[ "Gaussian" ]
04915e5367d2932d902b738790e28ef6e2867a24b2d7bf249a1b66293f90142a
from nose.tools import eq_ import mkt.site.tests from mkt.feed.models import FeedItem from mkt.feed.fakedata import app_item, brand, collection, shelf from mkt.site.fixtures import fixture from mkt.webapps.models import Webapp class TestFeedGeneration(mkt.site.tests.TestCase): fixtures = fixture('webapp_337141'...
mudithkr/zamboni
mkt/feed/tests/test_fakedata.py
Python
bsd-3-clause
2,143
[ "Amber" ]
5f82821e01c95f37a1ff2c6abadc83c8bf9794cbb499e7a780fd28df0718fc19
# # @BEGIN LICENSE # # QCDB: quantum chemistry common driver and databases # # Copyright (c) 2011-2017 The QCDB Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of QCDB. # # QCDB is free software; you can redistribute it and/or modify # it ...
loriab/qcdb
qcdb/dbwrap.py
Python
lgpl-3.0
176,081
[ "Gaussian", "Psi4", "PyMOL" ]
a854bfddce76bba3656da6efe2d1daf8d0be5f511c5f4f990fb24c0792ecc766
############################################################################## # 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...
tmerrick1/spack
var/spack/repos/builtin/packages/quantum-espresso/package.py
Python
lgpl-2.1
6,095
[ "ESPResSo" ]
564a2dfb0737fc15b0047373866d6031e98cd1b0064acfd1270c6e84364e7859
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/core/lib/plugin.py
Python
gpl-2.0
14,886
[ "Brian" ]
b2ffc931ce036f81393d4e33dc074576145739af5a66c2eb041762c8887f8dca
r""" Spurious PAC with spikes ------------------------ This example demonstrates how a spike train can generate a significant amount of phase-amplitude coupling (PAC), even though there is no nested oscillations. This phenomenon is usually referred as spurious PAC. References ========== Dupre la Tour et al. (2017). N...
pactools/pactools
examples/plot_spurious_pac.py
Python
bsd-3-clause
4,284
[ "Gaussian" ]
74cf836a58021c42d51debb2445eb9e5f4553582d6f0609ecd1cbee0d8b7c533
import os import dalton from dalton import FileWrapper here = os.path.abspath(os.path.dirname(__file__))
bbangert/Dalton
dalton/tests/test_recordings/empty_play_test/__init__.py
Python
mit
106
[ "Dalton" ]
22e26439e76613c0a67ceb609f39837b71b070f52ce392403e23a39d8f1d751d
# coding=utf-8 from ladybug.wea import Wea from ladybug.location import Location from ladybug.analysisperiod import AnalysisPeriod from ladybug.epw import EPW from ladybug.datacollection import HourlyContinuousCollection, HourlyDiscontinuousCollection from ladybug.dt import DateTime import pytest import os def test_...
ladybug-analysis-tools/ladybug-core
tests/wea_test.py
Python
gpl-3.0
16,811
[ "EPW" ]
e7a89bb36a9b32e57b1dc82fce2e811dd6c1cc62e124e666bc92ea8ff2600887
import numpy as np from numpy import zeros, ones, empty, r_, c_, sqrt, dot from numpy.linalg import norm import skimage.io as imio from skimage.filters import gaussian from skimage.segmentation import active_contour from skimage.color import rgb2grey from skimage.feature import canny import os import glob from tools...
kitizz/edge3d-paper
src/Contours.py
Python
gpl-3.0
12,522
[ "Gaussian" ]
cd9a4a73e8cb22c57ffa44875a25b323322b691752b687207915ee907a758e1c
# the Scientific Python netCDF 3 interface # http://dirac.cnrs-orleans.fr/ScientificPython/ from Scientific.IO.NetCDF import NetCDFFile as Dataset # the 'classic' version of the netCDF4 python interface # http://code.google.com/p/netcdf4-python/ #from netCDF4_classic import Dataset from numpy import arange, dtype # arr...
CopyChat/Plotting
Python/simple_xy.py
Python
gpl-3.0
1,724
[ "DIRAC", "NetCDF" ]
67790baaa0b14346b80d2fa60a277998096b313714d58387cb44e55198128351
# $Id: ShowFeats.py 537 2007-08-20 14:54:35Z landrgr1 $ # # Created by Greg Landrum Aug 2006 # # from __future__ import print_function # # --- ---- --- ---- --- ---- --- ---- --- ---- --- ---- import sys, os, getopt from rdkit import RDConfig from rdkit import Chem from rdkit.Chem import AllChem _version = "0.3.2...
InformaticsMatters/pipelines
src/python/pipelines/rdkit/show_feats.py
Python
apache-2.0
8,263
[ "PyMOL", "RDKit" ]
5fc29fa48fbaba680df9d86b606551ddc5071d3204db60db2f2facb1127d0c1c
# Lint as: python3 # Copyright 2020 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 ...
annarev/tensorflow
tensorflow/python/eager/gradient_input_output_exclusions.py
Python
apache-2.0
12,732
[ "VisIt" ]
10d9651cf428e6f9d8f770258222c17a6f7496ec5141bf4288a352911b257942
# -*- coding: utf-8 -*- """ py-iCSD toolbox! Translation of the core functionality of the CSDplotter MATLAB package to python. The methods were originally developed by Klas H. Pettersen, as described in: Klas H. Pettersen, Anna Devor, Istvan Ulbert, Anders M. Dale, Gaute T. Einevoll, Current-source density estimation ...
INM-6/elephant
elephant/current_source_density_src/icsd.py
Python
bsd-3-clause
35,190
[ "Gaussian" ]
afface963046f0df8ffc184e766c1d633fc8bf789ffacd4ff97b4fe772e9a9e1
""" Plots elevation time series """ import h5py from netCDF4 import Dataset from thetis.timezone import * import numpy as np import matplotlib.pyplot as plt from collections import OrderedDict timezone = FixedTimeZone(-8, 'PST') init_date = datetime.datetime(2006, 5, 10, tzinfo=timezone) epoch = datetime.datetime(19...
tkarna/cofs
examples/columbia_plume/plot_elevation_ts.py
Python
mit
3,162
[ "NetCDF" ]
4777040385380589cc6041dacf4becf844cebb5059be06d0be335cf1d0f7703e
import unittest from neural_network_with_connections import Neuron, Layer from unittest import TestCase class NeuralNetworkTests(TestCase): def test_connection_adds_to_incoming_and_outgoing_arrays(self): neuron = Neuron(input=0) neuron_2 = Neuron() neuron.connect_child(neuron_2, weight=...
dev-coop/neural-net-hacking-examples
python/Part 4/neural_network_with_connections_tests.py
Python
mit
1,740
[ "NEURON" ]
466592b3664847c0fc4f766a96b00b3e2f2d404fea7eb3f8ec813c4bc06a8fd0
#!/usr/bin/python # -*- coding: utf-8 -*- from ConfigParser import ConfigParser import time from PyQt4.QtGui import QApplication from scipy import exp, sqrt, log10, log from scipy.optimize import fsolve, leastsq from numpy.linalg import solve from numpy import array import unidades from physics import R_atml, R_Btu ...
edusegzy/pychemqt
lib/petro.py
Python
gpl-3.0
186,146
[ "Elk" ]
da54ee18abc43eb9e089b50d19f594017222cc819481221434fb95c087112396
""" This is the sqlalchemy class for communicating with the visits table """ from sqlalchemy import Column, Integer, DateTime, ForeignKey import models.base as base from utils.utils import * class VolunteerVisit(base.Base): """Sqlalchemy deals model""" __tablename__ = "volunteervisits" id = Column(Int...
jlutz777/FreeStore
models/volunteervisit.py
Python
mit
963
[ "VisIt" ]
28bcd9d66347c3d968947909e1dafb6d6b17cbd68169706de6ef0a63bd299109
# # Copyright (C) 2013-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...
fweik/espresso
samples/gibbs_ensemble_client.py
Python
gpl-3.0
6,432
[ "ESPResSo" ]
4867c83e482f4b2580a3778ff88cc1d1d3b21b05609fde7f7c7553f2e3a4627a