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) 2010-2014 CEA/DEN, EDF R&D # # 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, or (at your option) any later version. # # This library ...
FedoraScientific/salome-paravis
src/PV_SWIG/no_wrap/paravisSM.py
Python
lgpl-2.1
1,164
[ "ParaView" ]
7ccfa30f3b793d9ae349c649c40abb8ef88a8582417d0de5e3859fa5391ec8d4
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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 # # ...
shyamalschandra/neon
examples/mnist_mlp.py
Python
apache-2.0
4,538
[ "Gaussian" ]
3b6c367076d50761142473ac6a670102d71e20aa8475b9003d9b8d636585bb97
#-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU ...
fabio-otsuka/invesalius3
invesalius/data/vtk_utils.py
Python
gpl-2.0
8,929
[ "VTK" ]
12f1c80561270343a8ea7fde0ca449914813686ccc476d299e72b8ca52d91ac9
#!/usr/bin/env python3 #* 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/lgp...
nuclear-wizard/moose
modules/porous_flow/doc/content/modules/porous_flow/tests/dispersion/dispersion.py
Python
lgpl-2.1
1,987
[ "MOOSE" ]
a1a45dbc49b36f353b62310f27510bb6a3f2663aa82315747355dff59b9bce15
<<<<<<< HEAD <<<<<<< HEAD import test.support # Skip tests if _multiprocessing wasn't built. test.support.import_module('_multiprocessing') # Skip tests if sem_open implementation is broken. test.support.import_module('multiprocessing.synchronize') # import threading after _multiprocessing to raise a more revelant err...
ArcherSys/ArcherSys
Lib/test/test_concurrent_futures.py
Python
mit
71,624
[ "Brian" ]
906675db18f8b43a85f3f7788ca9a91467268535d562470728325d0346bb571b
# proxy module from __future__ import absolute_import from mayavi.preferences.preferences_helpers import *
enthought/etsproxy
enthought/mayavi/preferences/preferences_helpers.py
Python
bsd-3-clause
107
[ "Mayavi" ]
45f12e3791e2abb33e77611f12a9ab6880bffaf41283d07b49c9b50a42386a6a
import numpy as np def simple_mask(im_rgb, bandwidth=2, bgnd_std=2.5, tissue_std=30, min_peak_width=10, max_peak_width=25, fraction=0.10, min_tissue_prob=0.05): """Performs segmentation of the foreground (tissue) Uses a simple two-component Gaussian mixture model to mask tissue...
DigitalSlideArchive/HistomicsTK
histomicstk/utils/simple_mask.py
Python
apache-2.0
8,216
[ "Gaussian" ]
f4205d33ac8c69177c190a96ae22573ebe07b8edcc0e44ec4991bfdc49c5b5ff
# # Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Honeybee. # # Copyright (c) 2013-2020, Mostapha Sadeghipour Roudsari <mostapha@ladybug.tools> # Honeybee is free software; you can redistribute it and/or modify # it under the terms of the GNU G...
mostaphaRoudsari/Honeybee
src/Honeybee_Energy Simulation Par.py
Python
gpl-3.0
12,336
[ "EPW" ]
0e5246c6e08f2e8eeff50644faa5586aef7e3d57d29fce5663897c4a4cd88cec
from octopus.core import app from octopus.modules.jper import models from octopus.lib import http, dates import json class JPERException(Exception): pass class JPERConnectionException(JPERException): pass class JPERAuthException(JPERException): pass class ValidationException(JPERException): pass cl...
JiscPER/magnificent-octopus
octopus/modules/jper/client.py
Python
apache-2.0
8,448
[ "Octopus" ]
a2c388a5809ee54029d9d1133263ed0f05a5d6d85e2d333ecdf914a9b954bd74
from Firefly import logging from Firefly.components.zwave.device_types.motion_sensor import ZwaveMotionSensor from Firefly.const import DEVICE_TYPE_MOTION TITLE = 'Zwave Motion Sensor' DEVICE_TYPE = DEVICE_TYPE_MOTION def Setup(firefly, package, **kwargs): logging.message('Entering %s setup' % TITLE) sensor = Mo...
Firefly-Automation/Firefly
Firefly/components/zwave/zwave_generic_devices/motion_sensor.py
Python
apache-2.0
561
[ "Firefly" ]
42d62658cf0ef1107819aaf694a8a02cd0a39d0eecb9640c692a59e5e9902432
import json import wget import os.path from distutils.dir_util import mkpath from urllib.error import HTTPError blocktopus_dir = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', 'octopus', 'blocktopus') ) resources_dir = os.path.join(blocktopus_dir, 'resources', 'cache') resources_json = os.path.joi...
richardingham/octopus
tools/build.py
Python
mit
2,379
[ "Octopus" ]
2cab2842d700bc498b7ca4f8ec098ab0b7a0be7523ca19a4e5f97820c3e7d586
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflow/tensorflow
tensorflow/python/keras/utils/kernelized_utils_test.py
Python
apache-2.0
4,989
[ "Gaussian" ]
0bcbe8c899200cd9027d025f3fa587b5c33b8179e25d9875d7d4bc9e9576f5b6
import sys import maya.OpenMaya as OpenMaya import maya.OpenMayaMPx as OpenMayaMPx kPluginNodeName = "MitsubaSSSDipoleShader" kPluginNodeClassify = "shader/volume" kPluginNodeId = OpenMaya.MTypeId(0x87016) class dipole(OpenMayaMPx.MPxNode): def __init__(self): OpenMayaMPx.MPxNode.__init__(self) m...
hpd/MitsubaForMaya
plug-ins/mitsuba/materials/dipole.py
Python
mit
9,561
[ "Amber", "ESPResSo" ]
fc2c6b9ece1a61ce937f4228fc56907607577675144cef05064fc1791ed04de5
# 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...
psci2195/espresso-ffans
testsuite/python/icc.py
Python
gpl-3.0
3,783
[ "ESPResSo" ]
bdb4b6222e3beabad78991ebfcbdd1ff9501cd5cae6106c0923f051b9eb46567
# -*- coding: utf-8 -*- """ Created on Tue Aug 30 08:57:31 2016 @author: nicholas The Goal of this is to have a unified place to put the useful python 3.5 functions or templates how I got the fastq file # seqtk sample -s 27 ~/GitHub/FA/pseudochromosome/data/20150803_Abram1/ \ reads/3123-1_1_trimmed.fastq .0005 ba...
nickp60/pyutilsnrw
tests/test_utils3_5.py
Python
mit
21,944
[ "BLAST" ]
4cd7dfefd12dcaf75aad3c72a65e6c7406687988dd1af2f650e70e94fa378eaf
#!env/python3 # coding: utf-8 import os import sys import datetime import sqlalchemy import subprocess import reprlib import time from common import * from progress.bar import Bar from sqlalchemy import Table, Column, Integer, String, Boolean, ForeignKey, Sequence, UniqueConstraint, Index, func, distinct from sql...
REGOVAR/Sandbox
benchs/db/scripts/poc_007.py
Python
agpl-3.0
7,951
[ "pysam" ]
a5ef2e0dee10ac79815541975a3f5ee603b8ab96ca382afdff3828c8483e6a78
import itertools import pddl_types import f_expression import tasks def parse_condition(alist): condition = parse_condition_aux(alist, False) return condition def parse_condition_aux(alist, negated): """Parse a PDDL condition. The condition is translated into NNF on the fly.""" tag = alist[0] if...
GKIFreiburg/gki_symbolic_planning
tfd_modules/downward/translate/pddl/conditions.py
Python
bsd-3-clause
25,491
[ "VisIt" ]
ecf986f6acc3e02f0db7e83b7c0d9bbc8469636ae4777a870c1d4fe4624c0e71
# -*- 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...
kain88-de/mdanalysis
package/MDAnalysis/topology/base.py
Python
gpl-2.0
6,373
[ "MDAnalysis" ]
cd86b22928a48390fa1a537287c05facc87d2dcff7e15898465683c2a101d55b
import numpy as np from scipy.stats import norm def lerp(val, low, high): """Linear interpolation""" return low + (high - low) * val def lerp_gaussian(val, low, high): """Linear interpolation with gaussian CDF""" low_gau = norm.cdf(low) high_gau = norm.cdf(high) lerped_gau = lerp(val, low_gau,...
dribnet/plat
plat/interpolate.py
Python
mit
1,527
[ "Gaussian" ]
422ecb961d67387320af15cd2dee534fabf4e9de3359d1fcb6c59aa369b92500
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # pylint: disable=C0103 # We disable C0103 because the unittest prevailing style is camelCase """tools.py This module provides helper functions for tests. (c) The James Hutton Institute 2017-2019 Author: Leighton Pritchard Contact: leighton.pritchard@hutton.ac.uk Leigh...
widdowquinn/find_differential_primers
tests/tools.py
Python
mit
9,477
[ "BLAST" ]
78e0eecb27637ca3f895f35cc0a9d3d4c2ed97c325061fdbd8556f5d247ad389
#!/usr/bin/env python # Copyright 2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
sunqm/pyscf
pyscf/tools/test/test_cubegen.py
Python
apache-2.0
2,994
[ "PySCF" ]
18df8e480fec78bd67c25ddc806dc5c24c6a497050123ff7da64454eea66acd2
""" This is the interface to DIRAC PilotAgentsDB. """ __RCSID__ = "$Id$" from DIRAC import gConfig, S_OK, S_ERROR import DIRAC.Core.Utilities.Time as Time from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getUsernameForDN from DIRAC.WorkloadManag...
fstagni/DIRAC
WorkloadManagementSystem/Service/PilotManagerHandler.py
Python
gpl-3.0
14,504
[ "DIRAC" ]
5e228bb6ebcf1d4301a1d618f101846471e165a3096ae09a82421b34cd9d03cc
# # AtHomePowerlineServer - networked server for CM11/CM11A/XTB-232 X10 controllers # Copyright (C) 2014 Dave Hocker # # 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, version 3 of the Lic...
dhocker/athomepowerlineserver
Logging.py
Python
gpl-3.0
2,362
[ "xTB" ]
4a15569124bf74e9daf3442a3d21c75f3f1a5df68eead68a35d2120f44cb84dd
#!/usr/bin/python # -*- coding: utf-8 -*- """ ========================================================= Principal components analysis (PCA) ========================================================= These figures aid in illustrating how a point cloud can be very flat in one direction--which is where PCA comes in to ch...
pdedumast/ShapeVariationAnalyzer
ShapeVariationAnalyzer/Resources/Classifier/generation_shapes.py
Python
apache-2.0
20,161
[ "Gaussian", "VTK" ]
4a7b700733f4898001c6e0262b963d4adedf4467b88228961d95e45c0237a3cb
#!/usr/bin/env python ############################################################################# ## ## Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ## All rights reserved. ## Contact: Nokia Corporation (qt-info@nokia.com) ## ## This file is part of the test suite of the Qt Toolkit. ## ## $QT_BEG...
radekp/qt
doc/src/diagrams/contentspropagation/standardwidgets.py
Python
lgpl-2.1
6,840
[ "ASE" ]
ef79bcd2a2a15dd63b146a97f1c0b9153f967664007fdd6958f90484ca5c6ea9
""" Generalized linear models currently supports estimation using the one-parameter exponential families References ---------- Gill, Jeff. 2000. Generalized Linear Models: A Unified Approach. SAGE QASS Series. Green, PJ. 1984. "Iteratively reweighted least squares for maximum likelihood estimation, and some ...
bavardage/statsmodels
statsmodels/genmod/generalized_linear_model.py
Python
bsd-3-clause
30,165
[ "Gaussian" ]
09180ae627ef6b18e25ca2d71d1879853c24e873c7166216b7fb9017cde86445
import sys import random from . import wildcardFind, element, loadModel, ChemCompt, exists, Annotator, Pool, ZombiePool,PoolBase,CplxEnzBase,Function,ZombieFunction import numpy as np #Todo : To be written # --Notes # --StimulusTable def writeKkit( modelpath, filename,sceneitems=None): ...
rahulgayatri23/moose-core
python/moose/writekkit.py
Python
gpl-3.0
25,726
[ "MOOSE" ]
e07cd135d679f666dfdac76f5ce5403d7a971e9af3a8ef7ce8a789521f426505
""" Proxy Renewal agent is the key element of the Proxy Repository which maintains the user proxies alive .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN MyProxyRenewalAgent :end-before: ##END :dedent: 2 :caption: MyProxyRenewalAgent options """ from __future__ import ...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Agent/MyProxyRenewalAgent.py
Python
gpl-3.0
3,024
[ "DIRAC" ]
e9afbf577cdcf87280dc260154b38500d507a814154e35b484f926b68d2128a9
import sys from pyneuroml import pynml #################################################################### # Choose a LEMS/NeuroML2 file and run it with jNeuroML example_lems_file = 'LEMS_NML2_Ex5_DetCell.xml' results1 = pynml.run_lems_with_jneuroml(example_lems_file, nogui=True, load_saved_data=True) ######...
34383c/pyNeuroML
examples/run_jneuroml_plot_matplotlib.py
Python
lgpl-3.0
1,165
[ "NEURON" ]
2a7cf3405cc3bfd1977bee1d330658c32351aceed4be027a2a6bc0b07eaa98dc
import time from pathlib import Path import cv2 import numpy as np from pydub import AudioSegment from pydub.playback import play import cplexus as plexus VIDEO_FILE = 'videos/lower3.mp4' Path("videos/output/original").mkdir(parents=True, exist_ok=True) Path("videos/output/training").mkdir(parents=True, exist_ok=True...
mertyildiran/Plexus
examples/audio_visual.py
Python
mit
3,496
[ "NEURON" ]
094a50ea65ae6a42ffd70c9d0be144a0b9b0fdedeb000c2b5925134dc93adafc
# $Id$ """ This is a comment """ from __future__ import print_function __RCSID__ = "$Revision: 1.16 $" # $Source: /tmp/libdirac/tmp.stZoy15380/dirac/DIRAC3/DIRAC/Core/Workflow/test/WFSamples.py,v $ from DIRAC.Core.Workflow.Parameter import * from DIRAC.Core.Workflow.Module import * from DIRAC.Core.Workflow.Step i...
fstagni/DIRAC
Core/Workflow/test/WFSamples.py
Python
gpl-3.0
8,629
[ "DIRAC" ]
da5a6980e881da770b121b55efd7cd4727f4e0a82ad2c80d9db2b2e4c94fbd26
#!/usr/bin/env python # from distutils.core import setup from setuptools import setup # , find_packages import glob setup(name='cargo-port', version='1.0', description='Python Distribution Utilities', author='Intergalactic Utilities Commission', maintainer='Eric Rasche', url='https://gi...
gregvonkuster/cargo-port
setup.py
Python
mit
743
[ "Galaxy" ]
eab1c3605b28060619d2d371fe6b8ad0a57d21e36018386d5a319c2aa7f896cb
import numpy as np import math from espressomd.shapes import Rhomboid from espressomd.shapes import Cylinder small_epsilon = 0.000000001 large_number = 10000000.0 output_precision = 14 def custom_str(realn): return str('{:.{prec}f}'.format(realn, prec = output_precision)) def get_triangle_normal(a, b, c): ...
KonradBreitsprecher/espresso
src/python/object_in_fluid/oif_utils.py
Python
gpl-3.0
21,450
[ "ParaView", "VTK" ]
5a5afd0f4569fa32966a310ab87e95682e6dc5969623a2ae1c6018b9fe183aa1
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
intel-analytics/BigDL
python/chronos/test/bigdl/chronos/autots/model/test_auto_tcn.py
Python
apache-2.0
8,177
[ "ORCA" ]
2d87f61ba6b3b474537a810ecd151c7d383088c01599d09d578041caa3e48067
import pytest from gavl import parse from gavl.parser import nodes from gavl.parser.nodes import (VarNode, BinaryOpNode, RelationNode, ApplyNode, AssignNode, IntNode, BarOpNode, BoolLiteral, BoolExprNode) from gavl.parser.visitors import GavlToRelAlg from ga...
enderlabs/gavl
gavl/parser/tests/test_filter.py
Python
apache-2.0
4,642
[ "VisIt" ]
42ca1ad1f857b9eeb5233e0469755046f1291008a20b2a0af45abe2c2242c038
# Copyright 2002 by Jeffrey Chang. 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. from Bio.config.DBRegistry import CGIDB, DBGroup from _support import * from Martel import * ...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/dbdefs/pdb.py
Python
apache-2.0
1,473
[ "Biopython" ]
a8fcb10a01487eb14a5f6ea7f9f12d72bfe81399b34a111e835a57f7d6ac072a
import numpy as np import matplotlib.pyplot as plt from scipy import signal from scipy.fftpack import fft fs = 100 # Sample frequency (Hz) L = 10 # 10 seconds N = fs*L # Number of samples t = np.linspace(0, L, num=N, endpoint=False) noise = np.random.normal(scale=0.5, size=t.shape[0]) sig1 = 1.3*np.sin(2*np.pi*15*t)...
sbobovyc/LabNotes
DSP/gaussian_noise.py
Python
gpl-3.0
863
[ "Gaussian" ]
c93187daebdac0103d882dbfa2485f7b5255d5f09d44140239aaca5423179ba2
# This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # testinfo = "f 10 0.033, s, f 20 0.033, s, f 30 0.033, s, f 30 0.033, s, q" tags = "particles, Explosion" import pyglet import summa from summa.director impo...
shackra/thomas-aquinas
tests/test_particle_explosion.py
Python
bsd-3-clause
954
[ "Galaxy" ]
7f386bcb6a2c6a97855d5fcc8c9f68fb3acd8e996abb562ee4aa19e1e423ca59
#!/usr/bin/env python # -*- coding: utf-8 -*- # -*- Python -*- """ DoCoMoUnderstandingSrv.py Service Server for DoCoMo SentenceUnderstanding API The project is hosted on GitHub where your could fork the project or report issues. Visit https://github.com/roboworks/ :copyright: (c) 2015 by Hiroyuki...
okadahiroyuki/trcp
trcp_chat/nodes/DoCoMoUnderstandingSrv.py
Python
mit
12,054
[ "VisIt" ]
77c5797f2b0b3067082499e8c165ec31bef5f1e72622e02c28d239f730952c80
""" The B{0install remove-feed} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. syntax = "[INTERFACE] FEED" from zeroinstall import SafeException, _ from zeroinstall.injector import model, writer from zeroinstall.cmd import add_feed, U...
dabrahams/zeroinstall
zeroinstall/cmd/remove_feed.py
Python
lgpl-2.1
952
[ "VisIt" ]
bdef460f84970c220c0174152892693d804125fa12bb7f74da953462986ad496
#!/usr/bin/env python """ Convert from vasprun.xml in DIR direcotry to erg.ref, frc.ref, and pos files. Note that reading a lot of vasprun.xml takes a lot of time. Usage: vasprun2fp.py [options] DIR [DIR...] Options: -h,--help Show this message and exit. --specorder=SPECORDER Specify the order of ...
ryokbys/nap
nappy/vasp/vasprun2fp.py
Python
mit
7,316
[ "ASE", "VASP" ]
f720430962a0b6745b3b5993c8ee33be8961a16da1d083e359bc9903297836f0
from numpy.random import RandomState class GGPSampler(object): r"""Sample from a Generalised Gaussian Process. Outcome modelled via .. math:: \mathbf y \sim \int \prod_i \mathrm{ExpFam}(y_i ~|~ g_i(z_i)) \mathcal N(\mathbf z ~|~ \mathbf m; \mathrm K) \mathrm d\mathbf z. Parameters ...
limix/glimix-core
glimix_core/random/_ggp.py
Python
mit
1,998
[ "Gaussian" ]
aa44bfa9f6ace88fd1a665285806f59c4ace4a93033ed69400599522dcac193d
# -*- coding: utf-8 -*- import time from threading import Thread import redis import redisco import unittest from datetime import date from redisco import models from redisco.models.base import Mutex from dateutil.tz import tzlocal class Person(models.Model): first_name = models.CharField() last_name = models...
heckj/redisco
redisco/models/basetests.py
Python
mit
39,521
[ "VisIt" ]
66ea78b1a7a0dccaf0dee9c8bfec0cc5e61ce9193f7a06bbddd76aa7eacd5e7e
# 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 required by applica...
tensorflow/privacy
tensorflow_privacy/privacy/optimizers/dp_optimizer_keras.py
Python
apache-2.0
14,994
[ "Gaussian" ]
4a602714d0c245e38189e83af5f02ad7cb877b716dadd43a362ca5eee744f95e
''' sbclearn (c) University of Manchester 2018 sbclearn is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=invalid-name # pylint: disable=unused-argument import collections from sklearn.base import BaseEstimat...
synbiochem/synbiochem-learn
gg_learn/utils/transformer.py
Python
mit
4,012
[ "VisIt" ]
86f12cb1a0074e32043f102746ba7aeaae9fd4c8a9819c08da118cd24308655b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements a core class LammpsData for generating/parsing LAMMPS data file, and other bridging classes to build LammpsData from molecules. This module also implements a subclass CombinedData for...
fraricci/pymatgen
pymatgen/io/lammps/data.py
Python
mit
59,007
[ "LAMMPS", "pymatgen" ]
4a55eab064a50bf4641641355620badb235ccb8b78edf5e3ca49cb2d0f678dd0
''' Created on Sep 4, 2015 @author: Iaroslav Shcherbatyi ''' import numpy as np import matplotlib.pyplot as plt import scipy.optimize as optim import random as random Reps = 1 # number of times to repeat the experiment M = 3 # number of dimensions Xsz = 100; # number of training instances Changes = [1,10,100,1000] ...
iaroslav-ai/nn-local-minimum
LocalMinimaDemo/ExperimentsShallowNN.py
Python
mit
3,520
[ "NEURON" ]
3896ac63ef9046bd34931fbea4ae01f3e7c8dab569eba0fe63aae86a26f81793
# -*- coding: utf-8 -*- from .screen import screen, screen_width, screen_height, monitor_diagonal import os import pygame import time as builtin_time import numpy as np import datetime # ============================================================================== # =================================================...
neuropsychology/Neuropsydia.py
neuropsydia/core.py
Python
mpl-2.0
28,818
[ "Amber" ]
f591472c4170390efcbfd5262968d83c91f5a53ffe0a1eeb05665328b0cc68c5
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright (c) 2015 Jérémie DECOCK (http://www.jdhp.org) """ This is the simplest Python GTK+3 LinkButton snippet. See: http://python-gtk-3-tutorial.readthedocs.org/en/latest/introduction.html """ from gi.repository import Gtk as gtk def main(): window = gtk.Wind...
jeremiedecock/snippets
python/pygtk/python_gtk3_pygobject/link_button.py
Python
mit
842
[ "VisIt" ]
6f0ec4aa50f749214d836826c18ee60e51d1a4932daa71b9c9489954a37c32f8
""" """ # modes.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging import os from collections import namedtuple from mpf.system.timing import...
jabdoa2/mpf
mpf/media_controller/core/modes.py
Python
mit
11,399
[ "Brian" ]
e048a5981037a38cf4c9e4ac41caaac8fc1f681924ad22840e8a24f210b1e0b5
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
Azure/azure-sdk-for-python
sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/_models_py3.py
Python
mit
83,348
[ "VisIt" ]
095b7ce2719b975949880475e0142a732b3db2cb35e3b5d818973131bb2e8b31
from pype.ast import * from pype.symtab import * from pype.lib_import import LibraryImporter from pype.fgir import FGNodeType, FGNode, Flowgraph, FGIR from pype.error import * class SymbolTableVisitor(ASTVisitor): def __init__(self): self.symbol_table = SymbolTable() self.currentComponent = None def retur...
207leftovers/cs207project
pype/translate.py
Python
mit
6,055
[ "VisIt" ]
76f44412b069cca4f6d72af65302268da7c21d2462951c01b2dbbc6430e01af9
#! /usr/bin/env python from __future__ import print_function, division from collections import namedtuple """ Copyright (C) 2016 Wesley Fraser (westhefras@gmail.com, @wtfastro) 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 t...
fraserw/PyMOP
trippy/psf.py
Python
gpl-2.0
52,063
[ "Gaussian" ]
764c74d47c69bd84dabfa03a2a2f0ce1cd25e03d89dfd75c321320c68df0209a
#!/usr/bin/env python # -*- coding: utf-8 -*- #=============================================================================== # Copyright (c) 2012 - 2014, GPy authors (see AUTHORS.txt). # Copyright (c) 2014, James Hensman, Max Zwiessele # Copyright (c) 2015, Max Zwiessele # # All rights reserved. # # Redistribution a...
ysekky/GPy
setup.py
Python
bsd-3-clause
9,169
[ "Gaussian" ]
028b0c6a87f1f3b2fab82425d32094b5faa0238294b6d9bf57408632a5485996
from __future__ import print_function from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils import random def cv_carsGLM(): # read in the dataset and construct training set (and validation set) cars = h2o.import_file(path=pyunit_utils.locate("smalld...
nilbody/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_DEPRECATED_cv_carsGLM.py
Python
apache-2.0
6,421
[ "Gaussian" ]
080fba51e726e227f19c8c8785d4ae3c3b9bf65421b36cbbe5995b96c21e4347
# # 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...
KaiSzuttor/espresso
testsuite/python/interactions_non-bonded.py
Python
gpl-3.0
27,774
[ "ESPResSo", "Gaussian" ]
845ca4db8fb100917b223234b96af9caf07e80a59ba62d21569f0383f430d0aa
from asyncio import gather, Semaphore, sleep, Task, CancelledError from datetime import datetime from statistics import median from sys import platform from cyrandom import shuffle from collections import deque from itertools import dropwhile from time import time, monotonic from aiopogo import HashServer from sqlalch...
sebast1219/Monocle
monocle/overseer.py
Python
mit
20,753
[ "VisIt" ]
8dff0ff0bec10a0654a8faf3ed77be66a5a1f65ad04d4a158aa017d87055b5b4
#!/usr/bin/env python # -*- coding: utf-8 -*- # pylint: skip-file import os import sys from setuptools import find_packages, setup ##### Dependencies of GPflow # We do not want to install tensorflow in the readthedocs environment, where we # use autodoc_mock_imports instead. Hence we use this flag to decide whethe...
GPflow/GPflow
setup.py
Python
apache-2.0
2,779
[ "Gaussian" ]
d5f89f146c2842fd347406abea777b15f7d95f1784d139511c9de0518a5fd280
#!/usr/bin/env python """ Install.py tool to download, unpack, build, and link to the plumed2 library used to automate the steps described in the README file in this dir """ from __future__ import print_function import sys, os, platform, subprocess, shutil from argparse import ArgumentParser sys.path.append('..') fr...
Pakketeretet2/lammps
lib/plumed/Install.py
Python
gpl-2.0
5,336
[ "LAMMPS" ]
de2a945bd584a5d31f7cf0db55d7074fd3f4259ab4c855b4f0eb5aafb3b14254
# Copyright (C) 2012,2013,2015 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of ...
espressopp/espressopp
src/FixedTupleList.py
Python
gpl-3.0
1,989
[ "ESPResSo" ]
499e3ea93744044522e59c86f2d55958b9e558ff6463d54a56b3c32496099b04
"""This demo program solves the incompressible Navier-Stokes equations on an L-shaped domain using Chorin's splitting method.""" # Copyright (C) 2010-2011 Anders Logg # # This file is part of DOLFIN. # # DOLFIN is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Publi...
mathstuf/ParaViewCatalystExampleCode
PythonDolfinExample/simulation-catalyst-step2.py
Python
bsd-3-clause
5,485
[ "ParaView", "VTK" ]
d5cd88f7ef062756b591dffdfffdbd73957105fa90225f3c94f9cdd971b065e1
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function # # PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model # # Copyright (C) 2016, Edwin H. Sutanudjaja, Rens van Beek, Niko Wanders, Yoshihide Wada, # Joyce H. C. Bosmans, Niels Drost, Ruud J. van der Ent, Inge E. M. de...
UU-Hydro/PCR-GLOBWB_model
model/virtualOS.py
Python
gpl-3.0
98,035
[ "NetCDF" ]
f6319b51bd318d7b8cdf1b33ece11c597254a0f7ff3b99c4972367303ad0b292
# (C) 2017, Markus Wildi, markus.wildi@bluewin.ch # # 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, or (at your option) # any later version. # # This program is distr...
RTS2/rts2
scripts/u_point/unittest/rts2_environment.py
Python
lgpl-3.0
5,725
[ "VisIt" ]
b4d37e9243f28fd3354ab008f169ae86e0debe71bdb23bdbd3866aa6904e9faa
r"""OS routines for Mac, NT, or Posix depending on what system we're on. This exports: - all functions from posix, nt, os2, mac, or ce, e.g. unlink, stat, etc. - os.path is one of the modules posixpath, ntpath, or macpath - os.name is 'posix', 'nt', 'os2', 'mac', 'ce' or 'riscos' - os.curdir is a string repres...
christer155/Django-facebook
docs/docs_env/Lib/os.py
Python
bsd-3-clause
24,645
[ "VisIt" ]
ec3a2b2880c379d8030afc3a67eeb10dba37d13eead1ade43b84a9a69e67a4cf
# -*- coding: utf-8 -*- """ caching of the bibglossaries Originally adapted from: https://github.com/mcmtroffaes/sphinxcontrib-bibtex """ import six try: # pragma: no cover from collections import OrderedDict except ImportError: # pragma: no cover from ordereddict import OrderedDict import ast import colle...
chrisjsewell/ipypublish
ipypublish/sphinx/gls/cache.py
Python
bsd-3-clause
12,953
[ "VisIt" ]
3a4f7cf11ede3fe94ca24d10ffb49ae340eb8f5bb4d488b4d880e5a806cbe95b
import sys import copy import pprint import pytest import numpy as np from utils import * from addons import * import qcelemental as qcel import qcdb subject1 = """O 0 0 0 no_com H 1 ,, 0 \t 0 # stuff-n-nonsense""" ans1 = {'geom': [0., 0., 0., 1., 0., 0.], 'elbl': ['O', 'H'], 'fix_com': True,...
CDSherrill/psi4
psi4/driver/qcdb/pytest/test_from_string.py
Python
lgpl-3.0
38,751
[ "Psi4" ]
57cd8fd4a422575426f7cb76149621936271ce8336dcc98cfc42bf3300b0526f
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class contour(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._conto...
chrisidefix/devide
modules/filters/contour.py
Python
bsd-3-clause
2,032
[ "VTK" ]
24567ab3bf9f937cd4b4cd55e390015687e6466d59df5361cd07244204f3a750
# This module provides color definitions for use in Visualization. # # Written by: Konrad Hinsen <hinsen@cnrs-orleans.fr> # Last revision: 1999-7-23 # """This module provides color definitions that are used in the modules VRML, VRML2, and VMD. """ import Numeric, string # # Colors # class Color: """RGB Color sp...
OS2World/DEV-PYTHON-UTIL-ScientificPython
src/Lib/site-packages/Scientific/Visualization/Color.py
Python
isc
4,647
[ "VMD" ]
2737d20fcd9aa9385e87a48b64fec907cece8ee9ad4b5a08a4ccc695f768d141
import logging import george import numpy as np from scipy import optimize from robo.util import normalization from robo.models.base_model import BaseModel logger = logging.getLogger(__name__) class GaussianProcess(BaseModel): def __init__(self, kernel, prior=None, noise=1e-3, use_gradients=...
numairmansur/RoBO
robo/models/gaussian_process.py
Python
bsd-3-clause
11,571
[ "Gaussian" ]
b20a5e6fb39c2bc38d082d42027389f8b921548b0fa2f2e81f4f9d931a234c02
#!/usr/bin/env python import os, re, sys import readVasp import ScanOutcar import numpy as np #==================================================================== def badparms( msg): print '\nError: %s' % (msg,) print 'Parms:' print ' -bugLev <int> debug level' print ' -readType <string> outca...
ssullivangh/nrelmat
nrelmat/ScanOutcarTesta.py
Python
gpl-3.0
5,092
[ "VASP" ]
93532cc2d6b1ca9a80f094e4939eac746f3e4e8554f49084615964a0c627d158
""" Quantum dynamics simulation with Crank Nicolson method """ from QD.dynamics import CrankNicolson import numpy as np # Parameters a = 0.5 # Spatial resolution L = 100 # Domain size sigma = 9.5 # Wave function shape k = 0.8*(2*np.pi)/a # Wave vector mu = 15 ...
dbouman1/iccp-assignment-3
main.py
Python
mit
740
[ "Gaussian" ]
2415ff3c60d787c438e47703def3d856aa1551dbe97380d506c726149bf64b61
#!/usr/bin/env python # # Buildfarm client for PostgreSQL and Greenplum # # written by: Andreas Scherbaum <ascherbaum@pivotal.io> # Andreas Scherbaum <ads@pgug.de> # import re import os import sys import logging import tempfile import atexit import shutil import time import subprocess from subprocess impor...
andreasscherbaum/buildfarm-client
buildclient.py
Python
bsd-3-clause
29,338
[ "ORCA" ]
654aa98f295d0e02688d42052643c3349d43f0ba26b04b872d32e764eeee0630
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/test/zoo/orca/automl/autoestimator/test_autoestimator_keras.py
Python
apache-2.0
5,054
[ "ORCA" ]
72ae90f60556ed9e3ac46746b60f652a244a76ad4348b620c92234c21af919f8
# -*- coding: utf-8 -*- # This file is part of Viper - https://github.com/viper-framework/viper # See the file 'LICENSE' for copying permission. import os import re import string from socket import inet_pton, AF_INET6, error as socket_error from viper.common.abstracts import Module from viper.common.objects import Fi...
kevthehermit/viper
viper/modules/strings.py
Python
bsd-3-clause
13,867
[ "Brian" ]
30417a4c80b4076553c55d4e84a0cfc021aa80c52e78b05c6342629810ed5443
# # @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/inputparser.py
Python
lgpl-3.0
29,904
[ "CFOUR", "Psi4" ]
773d4a98c3b7349363bfafea0756eb7ed479a715fd2efae5668550ea2433b804
import urllib import re class GitHg(object): """Class that handles various aspects of converting a hg commit to git. """ def __init__(self, warn): """Initializes a new GitHg object with the specified warner. """ self.warn = warn def format_timezone(self, offset): if o...
gktomar/gaurav
git_remote_helpers/hg/hg.py
Python
gpl-2.0
4,072
[ "Octopus" ]
9ec39d71b4bffe6da84b0dcc60f72899109cdfcf9dad0f13c005a2e904b0eb84
# # $Id: tex2libplot.py,v 1.5 2002/08/18 22:04:07 mrnolta Exp $ # # Copyright (C) 2000 Mike Nolta <mike@nolta.net> # # 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 Lic...
kstory8/biggles
biggles/libplot/tex2libplot.py
Python
gpl-2.0
16,267
[ "Bowtie" ]
7ad2068f19d9ce7430accaaceef348bd96800d5f2194ee6fe96c45aec3581eae
#!/bin/env python2 ''' CalcuMLator testing file Copyright (C) 2016 Luiz Eduardo Amaral <luizamaral306@gmail.com> 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 (...
ArmlessJohn404/calcuMLator
calcuMLator/estimate.py
Python
gpl-3.0
2,928
[ "Gaussian" ]
42849737140c6a35e21427d7f89f522553d0a9b4f629e0944439f3cbf3b9dd0a
#!/usr/bin/env python3 # Copyright (c) 2019 The ungoogled-chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Update binary pruning and domain substitution lists automatically. It will download and unpack into the source tree...
Eloston/ungoogled-chromium
devutils/update_lists.py
Python
bsd-3-clause
14,456
[ "xTB" ]
b1986a3b5ffb947561e65bcb590ef85f8d52ffbd0597b624407546d22406eab4
#!/usr/bin/python # -*- coding: UTF-8 -*- from np import Neuron t = [[ [0,0], [0,1], [1,0], [1,1]], [0,1,1,0]] learning_rate = 0.5 max_epocas = 200 max_erro = 0.01 curr_erro = 100 curr_epoca = 1 # Instancia os neurônios que serão utilizados. ne0 = Neuron({"inputs":t[0][0]}) nh0, nh1 =...
aulusdiniz/neuron
neuropy/net.py
Python
mit
1,536
[ "NEURON" ]
3c244ce0d0d9aebf1aed1cabf876c43d51f8befa683e69bf5abe0b0955678bfe
""" Student Views """ import datetime import logging import uuid import json import warnings import jwt from collections import defaultdict from urlparse import urljoin from pytz import UTC from requests import HTTPError from django.conf import settings from django.contrib.auth import logout, authenticate, login fro...
Edraak/edx-platform
common/djangoapps/student/views.py
Python
agpl-3.0
99,571
[ "VisIt" ]
ca60be5f0cfbf6301e5e39be4703483312cb2a6e19f8d8c7b20f032dfc355c57
""" :mod: ReqClient .. module: ReqClient :synopsis: implementation of client for RequestDB using DISET framework """ import os import time import random import json import datetime # # from DIRAC from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.Core.Utilities....
andresailer/DIRAC
RequestManagementSystem/Client/ReqClient.py
Python
gpl-3.0
24,299
[ "DIRAC" ]
eb4e8cbd7a46bdf08fab6126998b330cd547ae9f6d1ac71fe1af335344bda65c
# Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
psci2195/espresso-ffans
doc/tutorials/04-lattice_boltzmann/scripts/04-lattice_boltzmann_part3_solution.py
Python
gpl-3.0
4,003
[ "ESPResSo" ]
c74d4b2cdb057f10bc515ea9eb6ced274937d2a8df73c3b86b4ad2b87ef74e16
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from __future__ import (absolute_import, divi...
mganeva/mantid
Framework/PythonInterface/plugins/algorithms/FitGaussian.py
Python
gpl-3.0
4,364
[ "Gaussian" ]
bf9f2dcc3d77f6c3c676b0f3cd959306bca8ccbdc92b9c271c434e1351089281
#!/usr/bin/env python # -*- coding : utf-8 -*- # # This file is part of the Siesta help scripts # # (c) Andrey Sobolev, 2013 # import numpy as np import matplotlib.pyplot as plt from shs.calc import SiestaCalc if __name__== '__main__': calc_dir = '../../examples/FeCANI' crd = [] forces = [] nste...
ansobolev/shs
bin/additional/forces.py
Python
mit
2,076
[ "SIESTA" ]
f42fadd371e39fc245f6b7438fdd12655f6bda93dbf7afe339502da33a15781e
from random import randint, uniform, random, gauss from MemoizationUtils import get_random_protocol class ParamVector(object): """ This class represents the vectors that defines a firewall a ParamVector is a class that represents a vector that defines a firewall. we have our indicator functions that s...
LeonAgmonNacht/Genetic-Algorithm-Firewall-TAU
ParamVector.py
Python
mit
11,886
[ "Gaussian" ]
b474129406377f4c535a8e395674b6bdf83e16b90c348018efa779bf6bee7da5
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Implements ThreadPoolExecutor.""" __author__ = 'Brian Quinlan (brian@sweetapp.com)' import atexit from concurrent.futures import _base import queue import threading import weakref import os # Workers are created...
Microvellum/Fluid-Designer
win64-vc/2.78/python/lib/concurrent/futures/thread.py
Python
gpl-3.0
4,865
[ "Brian" ]
26c226308838b367402efc915ffaec9b8d1ff4d3de45c581f14f8fadd3bfee54
""" Utility functions for cloud endpoints. """ import sys import os import six from DIRAC import S_OK, S_ERROR from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart STATE_MAP = { 0: "RUNNING", 1: "REBOOTING", 2: "TERMINATED", 3: "PENDING", 4: "UNKNOWN", 5: "STOPPE...
DIRACGrid/DIRAC
src/DIRAC/Resources/Cloud/Utilities.py
Python
gpl-3.0
10,256
[ "DIRAC" ]
6014c1bde55eca7b0ab408748f201c6d710c8f24da5aa514ff1bad05d608b14b
# Copyright 2012, 2013 by the Micromagnum authors. # # This file is part of MicroMagnum. # # MicroMagnum 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) a...
MicroMagnum/MicroMagnum
src/magnum/micromagnetics/stephandler/vtk_storage.py
Python
gpl-3.0
2,464
[ "VTK" ]
580b644fd95bf8b15d47f77ee877fc021bc41f3c80dc8d5385b4b9c1ec2c50e4
""" @name: PyHouse/src/Modules/Communication/_test/test_phone.py @author: D. Brian Kimmel @contact: d.briankimmel@gmail.com @copyright: 2016-2017 by D. Brian Kimmel @date: Created on May 30, 2016 @licencse: MIT License @summary: """ import unittest class Test(unittest.TestCase): def setUp...
DBrianKimmel/PyHouse
Project/src/Modules/Computer/Communication/_test/test_phone.py
Python
mit
532
[ "Brian" ]
18b56758fe1a45df594091d1cc3e3ef143cc69fa98926693f41b605fc77740df
""" ============ constants.py ============ Physical constants for astronomy & astrophysics Classes ======= Constant: Defines a physical constant for use in astronomical or physical computation. A Constant instance is defined by its value, description, and units attributes. """ class Constant(float): "...
NuGrid/NuGridPy
nugridpy/constants.py
Python
bsd-3-clause
5,488
[ "Avogadro" ]
e605676f1f24560978620c8826fbb0fc2b60b5dd51515233cb034eb82de4a623
# # A file that opens the neuroConstruct project LarkumEtAl2009 and run multiple simulations stimulating ech terminal apical branch with varying number of synapses. # # Author: Matteo Farinella from sys import * from java.io import File from java.lang import System from java.util import ArrayList from uc...
pgleeson/TestArea
models/LarkumEtAl2009/pythonScripts/PAP_multibranches_inhibition100ms.py
Python
gpl-2.0
22,071
[ "NEURON" ]
3feca849006afc0c6b345fd81d51c8d48722163dffcd2e34d57dc96bafef1b4d
# Copyright 2001 by Gavin E. Crooks. 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. """Unit test for Hie""" import unittest from Bio.SCOP import Hie class HieTests(unittes...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_SCOP_Hie.py
Python
gpl-2.0
1,413
[ "Biopython" ]
42d1745ff0eed36e35773f84b183e0ff17823de5e068d69287e7d2a3368438e3
"""Utility functions for printing version information.""" import importlib import locale import os import platform import struct import subprocess import sys def get_sys_info(): """Returns system information as a dict""" blob = [] # get full commit hash commit = None if os.path.isdir(".git") and...
pydata/xarray
xarray/util/print_versions.py
Python
apache-2.0
5,145
[ "NetCDF" ]
912aa587472b9e91336a7858995dc5ed1b86132b3c9eb3a133f61ffe2ec3edb3
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import astropy.units as u from astropy.extern import six from astropy import log import warnings from .extern.validator import ...
cdeil/naima
naima/utils.py
Python
bsd-3-clause
14,921
[ "Gaussian" ]
3ef60987d1fdb3849257b3be1b63baf009ab517e8a4f60fa6f9b057395f71dc3
#!/usr/bin/env python """ Copyright (c) 2014-2015 Miroslav Stampar (@stamparm) See the file 'LICENSE' for copying permission """ import sys PYVERSION = sys.version.split()[0] if PYVERSION >= "3" or PYVERSION < "2.6": exit("[CRITICAL] incompatible Python version detected ('%s'). For successfully running Maltrail...
hxp2k6/https-github.com-stamparm-maltrail
core/versioncheck.py
Python
mit
415
[ "VisIt" ]
60830bf8b3f186e26d13b268bffa68d0204db746570025017dd008dc9a840d83
# # tsne.py # # Implementation of t-SNE in Python. The implementation was tested on Python 2.5.1, and it requires a working # installation of NumPy. The implementation comes with an example on the MNIST dataset. In order to plot the # results of this example, a working installation of matplotlib is required. # The ...
robinjia/cgpotts-cs224u
tsne.py
Python
gpl-2.0
5,249
[ "Gaussian" ]
0f380d834cfb2f654bbd15980e94ef570a2f0cff86261ee014226f568c8ef742
# module pyparsing.py # # Copyright (c) 2003-2021 Paul T. McGuire # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, cop...
JonnyWong16/plexpy
lib/pyparsing/__init__.py
Python
gpl-3.0
9,095
[ "VisIt" ]
dcff933662b1fc7fff62093df0209930bfe4b263ebe597929218a02fa47350f4
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + import re import numpy as np from mantid.api ...
mganeva/mantid
Framework/PythonInterface/plugins/algorithms/SaveReflections.py
Python
gpl-3.0
10,638
[ "CRYSTAL" ]
deee178641315d3673a194d3f09da6fc81c9a4c3e85e110fb687b6448aa3c412
#!/bin/env python """ ec2-init.py --------------------------- Initialize Amazon EC2 Host Brian Parsons <brian@pmex.com> Features: ------------- Sets hostname based on instance user-data hostname Sends email with hostname, instance type, and IP address Will update DNS in Route53 if boto finds credentials or has IAM ...
bparsons/ec2-init
ec2-init.py
Python
mit
9,935
[ "Brian" ]
3684bf9f2868f3af40990465921ba3d2feb3e877b75d99298a49e9c1f3fa5a3a