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
""" General helper functions that don't fit neatly under any given category. They provide some useful string and conversion methods that might be of use when designing your own game. """ import os import sys import imp import types import math import re import textwrap import datetime import random import traceback ...
GhostshipSoftware/avaloria
src/utils/utils.py
Python
bsd-3-clause
37,662
[ "VisIt" ]
5a20bdc5149cb305b3a5b85d63db803402b770a8a50ad489b690ea856a10d289
#!/usr/bin/python # -*- coding: utf8 -*- # # electrode: numeric tools for Paul traps # # Copyright (C) 2011-2012 Robert Jordens <jordens@phys.ethz.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 Soft...
nist-ionstorage/electrode
setup.py
Python
gpl-3.0
3,968
[ "Mayavi" ]
62c3cc3334fa957f095008eaa3d1714daccb0bf73c56029714c6382f502fe942
# encoding: utf-8 """ System command aliases. Authors: * Fernando Perez * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. # # The full license is in the file...
vicky2135/lucious
oscar/lib/python2.7/site-packages/IPython/core/alias.py
Python
bsd-3-clause
9,981
[ "Brian" ]
feebc0eb2103f3a795eec296ad72300aa1bcb7c4ace6e2af8adbd32524281caf
"""Tests for options manager for :class:`Poly` and public API functions. """ from sympy.polys.polyoptions import ( Options, Expand, Gens, Wrt, Sort, Order, Field, Greedy, Domain, Split, Gaussian, Extension, Modulus, Symmetric, Strict, Auto, Frac, Formal, Polys, Include, All, Gen, Symbols, Method) from sym...
wolfram74/numerical_methods_iserles_notes
venv/lib/python2.7/site-packages/sympy/polys/tests/test_polyoptions.py
Python
mit
11,998
[ "Gaussian" ]
5f92584b5fdf70b2952306199b6c3db7675d60a5ed17e06284af280b852a2f20
import os import re import errno def colorText(string, color, **kwargs): """ A function for coloring text. Args: string[str]: The string to color. color[str]: The color to use (see color_codes variable). Kwargs: html[bool]: If true html colored text is returned. colored[bool]: When fa...
katyhuff/moose
python/utils/utils.py
Python
lgpl-2.1
4,158
[ "MOOSE" ]
0d6529ed1c23838064d76882a324b3f2d596c0d63a27045ce9cee9fdfc0d8790
# Copyright 2008-2015 Nokia Solutions and Networks # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
caio2k/RIDE
src/robotide/lib/robot/reporting/resultwriter.py
Python
apache-2.0
5,933
[ "VisIt" ]
5a181d7fe502cae1ab597c232172ebbfda8ac611aad97b3633d758ab2400dc32
""" Processes for Weather Classification Author: Nils Hempelmann (nils.hempelmann@lsce.ipsl.fr) """ from flyingpigeon.datafetch import _PRESSUREDATA_ from flyingpigeon.weatherregimes import _TIMEREGIONS_ from pywps.Process import WPSProcess from flyingpigeon.log import init_process_logger # from datetime import dat...
KatiRG/flyingpigeon
flyingpigeon/processes/wps_weatherregimes_reanalyse.py
Python
apache-2.0
12,405
[ "NetCDF" ]
b5b840926c4e249c3fed51187df76dc162bf1892b633525551ad3b47f668a46f
#!/usr/bin/env python ## ## @file echo_sedml.py ## @brief Echos (and prints) a NuML data. ## @author Joseph O. Dada ## ## <!-------------------------------------------------------------------------- ## This file is part of libNUML. Please visit http://numl.org for more ## information about NUML, and the latest...
TheCoSMoCompany/biopredyn
Prototype/src/libnuml-1.0.1/examples/python/echoNUML.py
Python
bsd-3-clause
874
[ "VisIt" ]
e553c37ca79dc5ba8fe4d687eb55a6327bcefb6486b1306a6e8c593f0b5d6e28
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Tools for skipping data tests in cclib.""" def skipForParser(parser, msg): """Return a decorator that skips the t...
gaursagar/cclib
test/data/skip.py
Python
bsd-3-clause
1,034
[ "cclib" ]
b1fda3e3871a1be7335d049324a9bfeafa9c09bad1f5d5b5b1c63faf7ca989ba
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2011 Doug Blank <doug.blank@gmail.com> # # This program is free software; you can redistribute it and/or modify ...
beernarrd/gramps
gramps/gen/filters/rules/person/__init__.py
Python
gpl-2.0
6,905
[ "Brian" ]
9e23472b3c89267f070488949ebeaab20c7026ad9f40d7885c16ba637e7a65fa
''' dsift.py: this function implements some basic functions that does dense sift feature extraction. The descriptors are defined in a similar way to the one used in Svetlana Lazebnik's Matlab implementation, which could be found at: http://www.cs.unc.edu/~lazebnik/ Yangqing Jia, jiayq@eecs.berkeley.edu ''' import num...
eokeeffe/uav_photogrammetry-toolkit
feature_detection/SIFT/DenseSIFT/dsift.py
Python
gpl-2.0
7,766
[ "Gaussian" ]
ffb167c3964e9587ec5ccd1f4ba5f0ed0cf254cd80142f0f6ce7efb3d64fd19e
#-*- coding:utf-8 -*- # # graph_connectivity.py # # This file is part of the NNGT project to generate and analyze # neuronal networks and their activity. # Copyright (C) 2015-2019 Tanguy Fardet # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
Silmathoron/NNGT
nngt/generation/graph_connectivity.py
Python
gpl-3.0
43,043
[ "Gaussian", "NEURON" ]
5f803820d046d166b257ae5636d51e78416c33d6613ba0b22ea598e79ba6e4ff
import numpy as np try: from simtk.openmm import app from simtk import openmm as mm from simtk import unit except ModuleNotFoundError: print("OpenMM is not installed!") from pysisyphus.constants import BOHR2ANG from pysisyphus.calculators.Calculator import Calculator class OpenMM(Calculator): de...
eljost/pysisyphus
pysisyphus/calculators/OpenMM.py
Python
gpl-3.0
3,169
[ "OpenMM" ]
589bcc23d13f31ac1b309a9249592d13280aa67d268eb1baaf1129bac34f1e4e
''' This module performs a few early syntax check on the input AST. It checks the conformance of the input code to Pythran specific constraints. ''' from pythran.tables import MODULES from pythran.intrinsic import Class from pythran.typing import Tuple, List, Set, Dict from pythran.utils import isstr import beniget i...
serge-sans-paille/pythran
pythran/syntax.py
Python
bsd-3-clause
10,966
[ "VisIt" ]
2ccb4bb4146e812311f305cdb99a35cbb3fb11c0f3e77db106c333a29cbef4c8
# Copyright 2018 TVB-HPC contributors # # 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 applicab...
the-virtual-brain/tvb-hpc
tvb_hpc/compiler.py
Python
apache-2.0
8,183
[ "VisIt" ]
50ffccc83ec3a902fc85fca27f7c3406f234f8c92d20b2336005bf07369884d5
import numpy as np import scipy.spatial.distance as dist from matplotlib.backends.backend_pdf import PdfPages import matplotlib.pyplot as plt import matplotlib.lines as mplines import scipy.cluster.hierarchy as clust import os def kabsch(coord, ref,app): C = np.dot(np.transpose(coord), ref) V, S, W = np.linalg.svd(C...
jEschweiler/Urease
urease_software/cluster.py
Python
gpl-3.0
5,877
[ "PyMOL" ]
3cce1e5ee3211b46fdfc2b3ef9c827342db3ee3c1283f16521082c7665bb3f82
""" GenBank format (:mod:`skbio.io.format.genbank`) =============================================== .. currentmodule:: skbio.io.format.genbank GenBank format (GenBank Flat File Format) stores sequence and its annotation together. The start of the annotation section is marked by a line beginning with the word "LOCUS"....
anderspitman/scikit-bio
skbio/io/format/genbank.py
Python
bsd-3-clause
28,337
[ "scikit-bio" ]
f95f1ea9a7c794435bae7b90540e3c750a87f4586b37ade0bc58da58f746fdae
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Tests that relate to evaluating models with quantity parameters """ from __future__ import (absolute_import, unicode_literals, division, print_function) import numpy as np from numpy.testing import assert_allclose from ..co...
kelle/astropy
astropy/modeling/tests/test_quantities_evaluation.py
Python
bsd-3-clause
6,719
[ "Gaussian" ]
562d78b81ecc4863a3a8a88291abdc05ade2eb18cb3414a5a3748f77fc66ed16
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
anderspitman/scikit-bio
skbio/io/format/tests/test_ordination.py
Python
bsd-3-clause
11,706
[ "scikit-bio" ]
5043e3b1b1544d6f5a3068a625cfb4e5e0397bf62adac3825faac3fab8d4a3a6
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
liuwenf/moose
python/chigger/tests/contours/block_elem.py
Python
lgpl-2.1
1,435
[ "MOOSE", "VTK" ]
6ce4ba26274acc8b6dccd798c2fe50d552cc33c41e2025bf2f1339f4f41c0200
# License: BSD 3 clause import numpy as np def std_mad(x): """Robust estimation of the standard deviation, based on the Corrected Median Absolute Deviation (MAD) of x. This computes the MAD of x, and applies the Gaussian distribution correction, making it a consistent estimator of the standard-deviat...
X-DataInitiative/tick
tick/robust/robust.py
Python
bsd-3-clause
1,329
[ "Gaussian" ]
7b26da661d90c732093ab2d06c21e7fb8f535e2782854bc6d4d3bf55725979cf
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fr...
arunkgupta/gramps
gramps/plugins/rel/rel_sk.py
Python
gpl-2.0
24,755
[ "Brian" ]
f81df0783a26bf4777ffbb2684322cfea0080027a000a2dd35a55eb6528bab09
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest import os import numpy as np from pymatgen import Structure from pymatgen.io.feff.inputs import Atoms, Header, Tags, Potential, Paths from pymatgen.io...
matk86/pymatgen
pymatgen/io/feff/tests/test_inputs.py
Python
mit
13,286
[ "FEFF", "pymatgen" ]
3a88a9c93284581353ef575588ac219fa8598fcd327a3bdf0342bcdbff0746e2
# -*- coding: utf-8 -*- """ ambari_jinja2.visitor ~~~~~~~~~~~~~~ This module implements a visitor for the nodes. :copyright: (c) 2010 by the Jinja Team. :license: BSD. """ from ambari_jinja2.nodes import Node class NodeVisitor(object): """Walks the abstract syntax tree and call visitor funct...
arenadata/ambari
ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/visitor.py
Python
apache-2.0
3,330
[ "VisIt" ]
c6beffbc387ae785373ef09c68ff273a9483ec3aeed32c66b2c14c69ad51067a
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2009 Brian G. Matherly # Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publis...
prculley/gramps
gramps/gui/dbman.py
Python
gpl-2.0
45,685
[ "Brian" ]
878b673b0c8ff4a217d9bf461671223bbd5506ba905eed47f5f8bb3bccecc3de
""" RMSMonitoring type is used to monitor behaviour pattern of requests executed by RequestManagementSystem inside DataManagementSystem/Agent/RequestOperations. Understanding the key fields: 'objectType': This field describes the type of object which can be Request, Operation, or File. 'operationType': This field cont...
ic-hep/DIRAC
src/DIRAC/MonitoringSystem/Client/Types/RMSMonitoring.py
Python
gpl-3.0
2,063
[ "DIRAC" ]
aeb1c8a5813e6e2e74e8a7cb0d4756ae6596e79dd9b176c9d930fc06cc38dc1f
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de; Christian Osendorfer, osendorf@in.tum.de' from scipy import r_, exp, zeros, eye, array, asarray, random, ravel, diag, sqrt, sin, cos, sort, mgrid, dot, floor from scipy import c_ #@UnusedImport from scipy.linalg import solve, inv from pybrain.datasets import Super...
daanwierstra/pybrain
pybrain/auxiliary/gaussprocess.py
Python
bsd-3-clause
9,397
[ "Gaussian" ]
ca709ace24b5d963722e3ff39e53cb5809adc870edccf506e75623054907ee7b
from django.db import models class Visit(models.Model): when = models.DateTimeField(auto_now_add=True, db_index=True) project = models.CharField(max_length=255, db_index=True) slug = models.CharField(max_length=255, db_index=True) retval = models.TextField(null=True, blank=True)
yetizzz/zzz
src/analytics/models.py
Python
bsd-2-clause
298
[ "VisIt" ]
d3cf3d9e86462021e97c46b94f714e625152939e4c890821cf381cb5c394da13
import cPickle import os import gzip import matplotlib.pyplot as plt import pylab import numpy as np #### Libraries # Standard library import gzip import pylab # Third-party libraries import numpy as np weights=[] biases=[] outs=[] costs=[] def mvectorized_result(j,classifications): """Return a classifications-...
ak4778/neural-network
test_neural_network.py
Python
bsd-3-clause
13,434
[ "Gaussian", "NEURON" ]
c66762754325024238cb32cec6f5d9f6d26326b7540559d0e4a8a8b99cd696dd
import pytest from stellar_sdk import Keypair, StrKey from stellar_sdk.exceptions import ( AttributeError, BadSignatureError, Ed25519PublicKeyInvalidError, Ed25519SecretSeedInvalidError, MissingEd25519SecretSeedError, ) from stellar_sdk.sep.mnemonic import Language class TestKeypair: def test...
StellarCN/py-stellar-base
tests/test_keypair.py
Python
apache-2.0
23,819
[ "BLAST" ]
d2517f76dcd45d4dbb4b84b3d4dbdcd97dc621c3583adff26e7bfdb8e535dd52
""" Pyicoteo is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY...
RegulatoryGenomicsUPF/pyicoteo
pyicoteolib/enrichment.py
Python
gpl-3.0
40,209
[ "Galaxy" ]
cea9f6b3448b2e20cc5a3eba43ea65653afd1cd0492a2b3bd277b6b66fc53fea
# # AUTHORS: # Hakan Ozadam # # Moore Laboratory # UMASS Medical School / HHMI # RNA Therapeutics Institute # Albert Sherman Center, ASC4-1009 # 368 Plantation Street # Worcester, MA 01605 # USA # ################################################################# ...
hakanozadam/bal
bal/core/find_mismatch_positions.py
Python
gpl-2.0
10,336
[ "pysam" ]
babf4d19dbe97fe903b7fca07010e0343e685bc04a502244a3224a2d315da45c
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Author: ryanss <ryanssdev@icl...
linuxsoftware/python-holidays
holidays.py
Python
mit
85,487
[ "COLUMBUS" ]
2c63afd56df6c7c86f89589a711ffb80d1d37013a73ed5c1df076912bd983d6e
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
thilbern/scikit-learn
sklearn/cluster/k_means_.py
Python
bsd-3-clause
54,077
[ "Gaussian" ]
4e910b147215a88ed4bf77712da660b4b1c9f26e4c1ec0b100b06be4a7eebca8
#!/usr/bin/env python # test_cursor.py - unit test for cursor attributes # # Copyright (C) 2010-2011 Daniele Varrazzo <daniele.varrazzo@gmail.com> # # psycopg2 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 Foun...
zzeleznick/zDjango
venv/lib/python2.7/site-packages/psycopg2/tests/test_cursor.py
Python
mit
15,878
[ "GULP" ]
6c4d33f906030c2d6be1b71a7ee1bcad1ad229bde0cb7fd98154ef073b92ba8d
import h5py import matplotlib matplotlib.use('GTKAgg') # Change this as desired. import gobject from pylab import * ### from enthought.mayavi import mlab # Uncomment for Linux ### from enthought.mayavi.sources.array_source import ArraySource # Uncomment for Linux from mayavi import mlab # For OSX # if len(sys.argv) ...
xancandal/hdf5-heat
heat.h5-3D.py
Python
gpl-3.0
1,593
[ "Mayavi" ]
49d0d617a67a1cf6328a4a7ada4340e336c3f301ec7368dc5fc9b229582bd94c
from ase.optimize import BFGS from ase.io import read, write from ase.calculators.emt import EMT from ase.ga.relax_attaches import VariansBreak from ase.ga.atoms_attach import enable_raw_score_methods import sys fname = sys.argv[1] print('Now relaxing {}'.format(fname)) a = read(fname) a.set_calculator(EMT()) dyn =...
askhl/ase
doc/tutorials/ga/ga_basic_calc.py
Python
gpl-2.0
576
[ "ASE" ]
cce62fce5bc01d41f60de841872e5a29ee07c250285c53ad6fc74e2b4fa89796
""" BaseFormatter """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import logging import sys class BaseFormatter(logging.Formatter): """ BaseFormatter is used to format log record to create a string representing a DIRAC log m...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/private/standardLogging/Formatter/BaseFormatter.py
Python
gpl-3.0
2,732
[ "DIRAC" ]
e9f06b4ddb6517d5b180a0572421bb84918f6ea21c10bec660d636e135cf716e
# Copyright 2015 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...
anilmuthineni/tensorflow
tensorflow/tools/common/public_api.py
Python
apache-2.0
2,990
[ "VisIt" ]
f59e0052093091464abe016cf5d7dcddf331293e41af2d5f30c6678c03bb6358
import numpy as np def hessian(im_input, sigma): """ Calculates hessian of image I convolved with a gaussian kernel with covariance C = [Sigma^2 0; 0 Sigma^2]. Parameters ---------- im_input : array_like M x N grayscale image. sigma : double standard deviation of gaussian ...
DigitalSlideArchive/HistomicsTK
histomicstk/utils/hessian.py
Python
apache-2.0
1,287
[ "Gaussian" ]
a3e8c242f75f8c0df8d9d711714a574997ba794f15d538d0c4ce3b70438a64b5
""" Sqlalchemy models for magma result database """ import json from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Float from sqlalchemy import Boolean from sqlalchemy import ForeignKey from sqlalchemy import TypeDecorator from sqlalchemy.ext.declarative i...
NLeSC/MAGMa
web/magmaweb/models.py
Python
apache-2.0
10,663
[ "Dalton" ]
13b0406f0c61882424862688375331772d71cb51bd2536ea76517395a212762e
from __future__ import print_function import pyspeckit import numpy as np # Grab a .fits spectrum with a legitimate header sp = pyspeckit.Spectrum('G031.947+00.076_nh3_11_Tastar.fits') """ HEADER: SIMPLE = T / Written by IDL: Tue Aug 31 18:17:01 2010 BITPIX = -64 NAXIS = 1 / ...
allisony/pyspeckit
examples/ammonia_fit_example.py
Python
mit
3,535
[ "Gaussian" ]
5e3e9b4958f5b9eae19c52b06466e627dcabf30c093f0db7eab5836dd509f5ec
#!/usr/bin/python from os import environ as env import os import subprocess from sys import argv model_to_file = { "KrakowSFO": "krakow.ini", "BlastWave": "blastwave.ini", "BWAVT": "bwa.ini", "BWAVTDelay": "bwa.ini", "BWAVLinear": "bwa.ini", "BWAVLinearDelay": "bwa.ini", "BWAVLinearFormati...
victor-gonzalez/AliPhysics
PWG/MCLEGO/Therminator2/apply_custom_config.py
Python
bsd-3-clause
3,526
[ "BWA" ]
2a40bc1f8dadec9b5a108ff41050d76357c8de4572477c9aea248f3565a1da67
""" Target Setup GUI The Target Setup GUI is used to interact with the GPS algorithm before training. It contains the below four functionalities: Action Panel contains buttons for: - switching target numbers, - switching actuator types ...
alexlee-gk/visual_dynamics
visual_dynamics/gui/target_setup_gui.py
Python
mit
16,392
[ "VisIt" ]
f06cccae5e8ff300cf791681472181055408619b3425b1414017ca4b02d9bad4
#Mike Aubry (w/ true credit going to Sebastian Morales and Brian Ekins) #Description - This Fusion 360 Script allows you to create a construction point where the center of mass is for # the top level component. This is especially useful for balancing applications. import adsk.core, adsk.fusion, adsk.cam, traceback ap...
MichaelAubry/Fusion360
CenterOfMassPoint.py
Python
mit
3,750
[ "Brian" ]
eb304da007326713a4cb36035bd268d422225645687eb28fbd8dd7d19240d98d
from django.conf import settings from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.core.urlresolvers import reverse from django.db import models from django.db.models.base import ModelBase from django_facebook import model_managers, settings as ...
fogcitymarathoner/djfb
facebook_example/django_facebook/models.py
Python
bsd-3-clause
18,518
[ "VisIt" ]
cd214d33596b0c38dd24651ed5b528b85fce587aef503b390f7317519118f0b8
"""Example creating minimal model. This demonstrates just the very core SBML functionality. """ from pathlib import Path from sbmlutils import EXAMPLES_DIR from sbmlutils.cytoscape import visualize_sbml from sbmlutils.factory import * model_minimal = Model( sid="minimal_model", packages=["fbc"], compart...
matthiaskoenig/sbmlutils
src/sbmlutils/examples/minimal_model.py
Python
lgpl-3.0
1,071
[ "Cytoscape" ]
ad2df111b6b24bf3c6c60b01871eb19b1fea5d9b7bcda98d5ef3e58c77e25f7a
''' Accounting Type for Pilot Submission ''' from DIRAC.AccountingSystem.Client.Types.BaseAccountingType import BaseAccountingType __RCSID__ = "$Id$" class PilotSubmission(BaseAccountingType): ''' Accounting Type class for Pilot Submission ''' def __init__(self): BaseAccountingType.__init__(self) se...
andresailer/DIRAC
AccountingSystem/Client/Types/PilotSubmission.py
Python
gpl-3.0
1,244
[ "DIRAC" ]
59ad5c9702aefe9b75cc2217af36b0e3bfd3724eed031649dc55c28c1888e146
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # A script to test the island removal filter. # first the image is thresholded, then small islands are removed. # Image pipeline reader = vtk.vtkPNGReader() reader.SetFileNa...
hlzz/dotfiles
graphics/VTK-7.0.0/Imaging/Core/Testing/Python/TestIslandRemoval2D.py
Python
bsd-3-clause
974
[ "VTK" ]
148a11d52c859de1e119f49568dfd027cb9cc8b6c1e906133dfbe51c0b257c0c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A module for NMR analysis """ from collections import namedtuple import numpy as np from pymatgen.core.periodic_table import Species from pymatgen.core.structure import Site from pymatgen.core.tensors im...
gmatteo/pymatgen
pymatgen/analysis/nmr.py
Python
mit
8,593
[ "pymatgen" ]
5031217a7775a64eb560c092ba20c4a7ffbf66df7d18ca247ec4bf4027f8d6cc
# # 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/src/bigdl/chronos/forecaster/nbeats_forecaster.py
Python
apache-2.0
6,592
[ "NEURON", "ORCA" ]
c091bce1860d24d0d529dda1559f7f46aefc79a8ba29feacb27b2276e33ee22d
#!/usr/bin/env python #encoding:utf-8 #author:dbr/Ben #project:tvdb_api #repository:http://github.com/dbr/tvdb_api #license:unlicense (http://unlicense.org/) """Unittests for tvdb_api """ import os import sys import datetime import unittest # Force parent directory onto path sys.path.insert(0, os.path.dirname(os.pat...
cstan11/Sick-Beard
lib/tvdb_api/tests/test_tvdb_api.py
Python
gpl-3.0
17,701
[ "Firefly" ]
cc4b05c962d124de0444761af05dbc57c18ff158ab2e2a3cf5e71612ce9e39b8
# amu = 1/12 mass of an atom of carbon-12 from nucleus import * from units import * #6.022 * pow(10,23) <- avogadro's number/chem constant avogadro_const = 6.022 * pow(10,23) #it's also number of atoms in 12 grams of carbon-12 def to_Moles(name='',relative_atomic_mass=0.0): #when we get relative_atomic_mass from peri...
defm03/chemistry-cc
src/stechiometry.py
Python
gpl-3.0
573
[ "Avogadro" ]
8314b00e98610aead3c05bd73fb6be9d158d5c9fb2ee70815714bcd264b194d8
"""pypyr dynamic modules, namespaces and path discovery. Load modules dynamically, find things on file-system. Attributes: working_dir (WorkingDir): Global shared current working dir. """ import ast import builtins from collections import ChainMap import importlib import logging from pathlib import Path import sy...
pypyr/pypyr-cli
pypyr/moduleloader.py
Python
apache-2.0
10,109
[ "VisIt" ]
14b80f80f66154b1df0d3cda501014c2de9c048d3d74d62a63b6bb175db9b816
# proxy module from __future__ import absolute_import from mayavi.filters.vorticity import *
enthought/etsproxy
enthought/mayavi/filters/vorticity.py
Python
bsd-3-clause
93
[ "Mayavi" ]
f185e0472f58de63108345f7b23bb38e16873d7b90888f385c8c4652b036fcdf
"""HTML character entity references. Backported for python-future from Python 3.3 """ from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * # maps the HTML entity name to the Unicode codepoint name2codepoint = { 'AElig': 0x0...
noam09/deluge-telegramer
telegramer/include/future/backports/html/entities.py
Python
gpl-3.0
75,428
[ "Bowtie" ]
933a119d0c8693fdc3828b9c1cb84be502f5a6094af67be6c613c81991434e77
import unittest from spglib import (get_symmetry_dataset, find_primitive, get_spacegroup_type, standardize_cell) from vasp import read_vasp import os data_dir = os.path.dirname(os.path.abspath(__file__)) dirnames = ('cubic', 'hexagonal', 'monoclinic', 'orthorhom...
jochym/spglib
python/test/test_spglib.py
Python
bsd-3-clause
7,768
[ "VASP" ]
ba1afb2cc58c8feb82394881ce591a016289e9bd25167310d92dc3269f3c031b
''' This file contains the definitions of: node_tr => transitions class node_em => emission class node_em_gmm => gaussian mixture model emission class (derived class of node_em) State => state class which contains one pointer to a node_tr object one pointer to a node_em object Extending the...
arthurfait/HMM-3
hmm/State.py
Python
gpl-3.0
20,970
[ "Gaussian" ]
e2854d1f3bd5be6898f941d1d570e403f52b3d01c13c516cc3d495ea649587bf
""" Convenience routines for performing common operations. @since: 0.28 """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import os, sys from zeroinstall import support, SafeException, logger from zeroinstall.support import...
dabrahams/0install
zeroinstall/helpers.py
Python
lgpl-2.1
7,198
[ "VisIt" ]
de9f60f6aa8fdaacdfb7d7e40f9c408b56cfb6bdae13b152c16b4dedbc70ae71
# Orca # # Copyright 2010 Joanmarie Diggs. # # 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 i...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/scripts/toolkits/J2SE-access-bridge/script_utilities.py
Python
gpl-3.0
5,966
[ "ORCA" ]
26054659e38fe8362affcceb56b95a4bbe51cb0ccabcb3e0d294c361e5680912
''' Created on 14 Jun 2019 @author: Alex Ip ''' import numpy as np import math from geophys_utils import get_spatial_ref_from_wkt, get_wkt_from_spatial_ref, transform_coords from netCDF4 import Dataset from scipy.interpolate import griddata from geophys_utils import CSWUtils from geophys_utils import NetCDFPointUtils ...
alex-ip/geophys_utils
examples/tile_gridder.py
Python
apache-2.0
29,132
[ "NetCDF" ]
7e8b0e311810bab17535db24966e7729adae4d3da53d598e7db543f2ca1d80cd
#!/usr/bin/env python import os.path from datetime import date from cogue import symmetry as get_symmetry from cogue.interface.vasp_io import read_poscar_yaml from cogue.crystal.utility import get_Z tmpl_index = """Materials id {midstart} - {midend} ==================================================== .. toctree:: ...
atztogo/phonondb
phonondb/sphinx/make_rst.py
Python
bsd-3-clause
7,513
[ "CRYSTAL" ]
2db6cb74e938586267d87f8f5c5b2c365ecbd6bb1407c90facf9d95f1afca1d0
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Crystal Ball documentation build configuration file, created by # sphinx-quickstart on Sat Sep 5 17:56:25 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this...
Almad/crystal-ball
docs/conf.py
Python
mit
9,227
[ "CRYSTAL" ]
58e518c4b65fac42598892e2b5c17db425b57966b6974339167727e286993730
#!/usr/bin/env python2 ''' description: Convert directory with downloaded zipped KNMI ascii files to netCDF format. Station information is obtained from a csv file. Creation of the csv file and downloading of the KNMI data is performed in another script (knmi_getdata.py). aut...
rvanharen/ERA_URBAN
scripts/knmi2netcdf/knmi2netcdf.py
Python
apache-2.0
6,897
[ "NetCDF" ]
d980aaa07a6cc607f2e3ab8b848fa3569c1900d2b75919cce233152ef406e4c0
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import logging import multiprocessing import os import unittest import warnings import pytest import numpy as np from monty.serialization import loadfn, dumpfn from monty.tempfile import ScratchDir from pyma...
gmatteo/pymatgen
pymatgen/analysis/tests/test_pourbaix_diagram.py
Python
mit
12,770
[ "pymatgen" ]
47b8f7a23c5709ac9cc8248056427aeadc090cccb2ea64378c1d8b6d1342f19e
import sys sys.path.insert(1,"../../") import h2o from tests import pyunit_utils # The purpose of this test is to detect a change in the _metric_json of MetricsBase objects. Many of the metric # accessors require _metric_json to have a particular form. from h2o.estimators.glm import H2OGeneralizedLinearEstimator from h...
YzPaul3/h2o-3
h2o-py/tests/testdir_misc/pyunit_metric_json_check.py
Python
apache-2.0
11,095
[ "Gaussian" ]
163f26b137155fce074fc8af560321ef56674def4b143330867b7e95c73fdf55
# ---------------------------------------------------------------------------- # 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 # # http://www.apache.o...
nhynes/neon
tests/test_optimizer.py
Python
apache-2.0
6,823
[ "Gaussian" ]
e29922d0a3f3b087787625e320b7fbb06c09f989f6f82a694707922cca158a30
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
jralls/gramps
gramps/plugins/webreport/citation.py
Python
gpl-2.0
2,796
[ "Brian" ]
d2f91e7453e122e1433e1cfbfef08e03ca2e6e7be9c2c194c5551673ef9b0c46
try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() ImageRFFT()
jeromevelut/Peavip
Testing/ImageRFFT.py
Python
gpl-3.0
122
[ "ParaView" ]
291483f4a9b2adcf66ab6a39196ce3e144676aecfe9d2bbb8e44b51282edc66b
#! /usr/bin/env python # Copyright 2004, Magnus Hagdorn # # This file is part of GLIMMER. # # GLIMMER is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) a...
glimmer-cism/PyCF
progs/plotRSL.py
Python
gpl-2.0
4,478
[ "NetCDF" ]
9b30429b7eec886d322643bc7403db9df4312a8a507653fbfea81bdf700d7846
import datetime import StringIO import os def load_movie_fixtures(): from camelot.model.fixture import Fixture from camelot.model.party import Person from camelot_example.model import Movie, VisitorReport from camelot.core.files.storage import Storage, StoredImage from camelot.core.resou...
jeroendierckx/Camelot
camelot_example/fixtures.py
Python
gpl-2.0
10,163
[ "Brian", "CASINO", "COLUMBUS" ]
bb7d33e186083285b5bb7b9041fcd2cfeaad2f018f9bdf413bfac7a1d739edea
#* 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 sys ...
nuclear-wizard/moose
python/peacock/ExodusViewer/plugins/VTKWindowPlugin.py
Python
lgpl-2.1
19,179
[ "MOOSE", "VTK" ]
196fb189512409531649e71b35270b50f875f8972cfa39a73355e0b7da9caf19
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
googleapis/python-cloud-common
scripts/fixup_common_keywords.py
Python
apache-2.0
5,898
[ "VisIt" ]
536ae63b3169ce47a6312fee2dc40c54ec69f3828a75ef1f5bd465501fe0c080
import numpy as np import pandas as pd from bs4 import BeautifulSoup import requests import json import urllib class VineScraper(object): """ Main class for scraping data from Vine Potential target URLs for scraping: https://vine.co/tags/snowboarding https://vine.co/api/timelines/tags/snowboarding...
pdxcycling/carv.io
data_mining/code/vine_scraper.py
Python
mit
2,777
[ "VisIt" ]
9de0d2b34a4872f8c30cff45d81559fa8196ef494097dd1d38a08d6c74d364bf
""" bct v0.01 Bitcoin Trade Simulatorf Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot 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 ...
enikesha/ga-bitbot
bct_alt.py
Python
gpl-3.0
38,578
[ "Brian" ]
92f4ab62d5b3e1cf39cb370b76b3f57d40bbc3dede2f16df79e8d50f00218696
"""Test the function that parses Wannier90 *.mmn files.""" # pylint: disable=protected-access import pytest import numpy as np import z2pack def test_read(compare_data, sample): compare_data( lambda x, y: np.equal(x, y).all(), z2pack.fp._read_mmn.get_m(sample('mmn/bi.mmn')) ) def test_fals...
Z2PackDev/Z2Pack
tests/test_read_mmn.py
Python
gpl-3.0
413
[ "Wannier90" ]
a6027b429016b24f48a98b70c6f8d0db717681816cf6988592d5c32c818d5074
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
huikyole/climate
examples/podaac_integration_example.py
Python
apache-2.0
3,291
[ "NetCDF" ]
518a1e5b9563b82129622fb3ff67a51ddc81d84d98646ddee5f10eee11937e9c
""" Test for regime detection ------------------------- Collection of tests for the regime detection module functions. """ import numpy as np import pandas as pd from ..Regime_detection.aux_functions import sum_conservative_detectors from ..Regime_detection.regime_detection import compute_threshold,\ compute_uni...
tgquintela/TimeSeriesTools
TimeSeriesTools/tests/test_regimedetection.py
Python
mit
4,347
[ "NEURON" ]
8eecc583e6f54e3ff9d7bad46c5ae41aa4ae686ee47f41563c5cd4c16f471eef
""" =============================== Plot classification probability =============================== Plot the classification probability for different classifiers. We use a 3 class dataset, and we classify it with a Support Vector classifier, L1 and L2 penalized logistic regression with either a One-Vs-Rest or multinom...
RPGOne/Skynet
scikit-learn-0.18.1/examples/classification/plot_classification_probability.py
Python
bsd-3-clause
2,871
[ "Gaussian" ]
9d65680937823dee9edf2784c605d0f10d27a104e6f7f176e6e231f01cbe9fab
# -*- coding: utf-8 -*- """Tests for OAuth2 permission delegation.""" from __future__ import absolute_import from six.moves.urllib.parse import parse_qsl, urlparse # pylint: disable=import-error from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.lms.oauth2_confir...
jolyonb/edx-platform
common/test/acceptance/tests/lms/test_oauth2.py
Python
agpl-3.0
3,999
[ "VisIt" ]
5c127111d1e41a80e9f5fa57e246e202f7793c88ae371e80018bb9dc0203e87a
# coding: utf-8 """ PyKrige ======= Code by Benjamin S. Murphy and the PyKrige Developers bscott.murphy@gmail.com Summary ------- Contains class OrdinaryKriging, which provides easy access to 2D Ordinary Kriging. References ---------- .. [1] P.K. Kitanidis, Introduction to Geostatistcs: Applications i...
bsmurphy/PyKrige
pykrige/ok.py
Python
bsd-3-clause
42,986
[ "Gaussian" ]
1562f6c371a2650415b27faae2af54e3f2aac0b0a352aa4ac426a27e3bf9250e
from __future__ import absolute_import, division, print_function from operator import add from itertools import chain def inc(x): return x + 1 def ishashable(x): """ Is x hashable? Examples -------- >>> ishashable(1) True >>> ishashable([1]) False """ try: hash(x) ...
pombredanne/dask
dask/core.py
Python
bsd-3-clause
11,458
[ "VisIt" ]
9db114f7ff6252c3e2028145ffddaf44f8eb1ec800fd01b65ea7e102a48c5a2f
#!/usr/bin/env python """ PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Af...
bgoli/pysces
setupegg.py
Python
bsd-3-clause
830
[ "PySCeS" ]
c2fb71afdc259539991d00eb8751528aaf67bf02fe235a6af76410fd324c430f
# *********************************************************************************** # * Copyright 2010 Paulo A. Herrera. All rights reserved. * # * * # * Redistribution and use in source and binary forms, with o...
jungla/ICOM-fluidity-toolbox
hl.py
Python
gpl-2.0
9,870
[ "VTK" ]
308778e040435e2e582ce896ff4f65281e26d86be66499a3d90e3b5fa0ccc844
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
Kleptobismol/scikit-bio
skbio/alignment/tests/test_alignment.py
Python
bsd-3-clause
47,367
[ "scikit-bio" ]
62fd9703bfda29b6daa2a87a58f6a94050e057e7e055c35bbda4b8708f954cd2
# -*- coding: utf-8 -*- # # voltage_trace.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, ...
synergetics/nest
pynest/nest/voltage_trace.py
Python
gpl-2.0
6,711
[ "NEURON" ]
6760c276b250f2deff53e6d0ee8bd76b4465e7ee2163d953f457e40f9f9f3a63
#!/usr/bin/env python """ Example of using a UQ method with matlab Usage: switch_dynamics.py [-v] """ from puq import * def run(): # Gaussian parameters gap = Parameter('gap', 'Gap Size (microns)', mean=3.49, dev=0.22) th = Parameter('th', 'Thickness (microns)', mean=4.0, dev=0.35) E = Parameter('e', ...
c-PRIMED/puq
examples/matlab/switch_dynamics.py
Python
mit
980
[ "Gaussian" ]
bee84e6d1d5cd407471122a6f6987df453e9d9fbf66317707f2576f4f1b07ab9
import numpy as np import pandas as pd # from matplotlib.pyplot import plot,show,draw import scipy.io from functions import * from pylab import * from sklearn.decomposition import PCA import _pickle as cPickle import time import os, sys import ipyparallel import matplotlib.cm as cm from scipy.optimize import curve_fi...
gviejo/ThalamusPhysio
python/main_pop_corr_fig.py
Python
gpl-3.0
9,516
[ "Gaussian" ]
c6919f7251265ecb9507590708e48e72bbcc2155c17834a6b1c0d4cf23bdd447
# Copyright (C) 2010-2018 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...
mkuron/espresso
src/python/espressomd/cluster_analysis.py
Python
gpl-3.0
5,257
[ "ESPResSo" ]
58be376c0a7435eb902cb28c513d140763ac985e8d827f3944872ef62eb607b2
#!/usr/bin/env python ''' Setup.py script (uses setuptools) for building, testing, and installing simple_simulation. ''' _VERSION="0.0.1" from setuptools import setup setup(name = 'simple_simulation', version = _VERSION, description = 'Simple genetic simulator', author = 'Gerald A McCollam', author_e...
atallah-lab/simple_simulation
setup.py
Python
mit
742
[ "Biopython" ]
432371faa2e777afb760eadc92fb68977c729ed2217738105a18d41656d9a9f6
# supaxoaxonic.py --- # # Filename: supaxoaxonic.py # Description: Superficial Layer 2/3 axoaxonic cells # Author: subhasis ray # Maintainer: # Created: Tue Oct 6 16:52:28 2009 (+0530) # Version: # Last-Updated: Fri Oct 21 17:06:19 2011 (+0530) # By: Subhasis Ray # Update #: 29 # URL: # Keywords: #...
BhallaLab/moose-thalamocortical
DEMOS/pymoose/traub2005/py/supaxoaxonic.py
Python
lgpl-2.1
4,383
[ "MOOSE", "NEURON" ]
e93e947fc3ca5d089f468133c5b867c679e5dbfcf9e536b15e138decb0a7fa4c
''' This __init__ file is for a PySCeS "eXtension module" (pysx), the following variables should be set for each module ''' pysx_name = 'VisualiseSBML' pysx_oscompat = ['posix','nt'] pysx_base_class = 'CONTRIB_visualise' pysx_author = 'Collin Gillespie' pysx_email = '' pysx_affiliation = '' pysx_web = 'http://www.basi...
asttra/pysces
pysces/contrib/visualise/__init__.py
Python
bsd-3-clause
388
[ "PySCeS" ]
c04cc59b32117907f6aa9d202bbc96e3c9c4650e610f75ea30c01a7d29525eaa
#!/usr/bin/env python import os import re import sys import glob import json import time import shutil import base64 import inspect import requests couch_host = "http://localhost:5984" clustered_host = "http://localhost:15984" single_node_host = "http://localhost:15986" parent_auth = () DEBUG = True final_rev = 12...
chewbranca/test_couch_file_migrations
test_couch_files.py
Python
apache-2.0
18,114
[ "exciting" ]
e7d37725df9d106dd6021094310cdfb1dca2c1816e883de7aa02079ccd8358a9
# coding: utf-8 # Copyright (c) Henniggroup. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import """ reads in KPOINTS(with labels) and vasprun.xml files and plots band diagram and density of states from http://gvallver.perso.univ-...
henniggroup/MPInterfaces
examples/bands_dos.py
Python
mit
7,987
[ "VASP", "pymatgen" ]
97a9e016df279663aaf1104e951d31b291a9c22365903955dea115fd3207ee50
#Author : Lewis Mervin lhm30@cam.ac.uk #Supervisor : Dr. A. Bender #All rights reserved 2014 #Protein Target Prediction Tool trained on SARs from PubChem (Mined 08/04/14) and ChEMBL18 #Molecular Descriptors : 2048bit Morgan Binary Fingerprints (Rdkit) - ECFP4 #Dependencies : rdkit, sklearn, numpy #libraries from rdkit...
lhm30/PIDGIN
predict_ranked.py
Python
mit
3,264
[ "RDKit" ]
5c5d2562084fbea5705c1958bed395eb00b6c4044b116c723284bfce852c194c
# -*- coding: utf-8 -*- """ Test for matlab problems """ import time from textwrap import dedent from flaky import flaky from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.fixtures.xqueue import XQueueResponseFixture from common.test.acceptance.pages.lms.matlab_problem im...
fintech-circle/edx-platform
common/test/acceptance/tests/lms/test_lms_matlab_problem.py
Python
agpl-3.0
3,665
[ "VisIt" ]
5340857297b26b55b600928435aa1ee42ed549f598ff54d042bcb6cd0e6c709f
#!/usr/bin/env python """ run_parallel_blast.py [--log_file PATH] [--quiet] """ ################################################################################ # # run_parallel_blast # # # Copyright (c) 4/21/2010 Leo Goodstadt # # Permission is hereby granted, free of charge, to any person ...
NIASC/VirusMeta
blast_module/run_parallel_blast.py
Python
gpl-3.0
13,744
[ "BLAST" ]
428d74c07b6f02864fa4e6ae41f3bf7d738ae55dcdad7cbd87d222ad62705e01
""" Created on Wed Nov 19 00:18:55 2014 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the ho...
SamWitte/Codds_DarkMatter
src/Data/CDMS_Snolab_SiHV.py
Python
gpl-2.0
2,201
[ "DIRAC" ]
55f6e3e3044fd905c7f494aa5b19d0af902259f2a947e1e6944c7de6160342f2
import numpy as np import pandas as pd import vtk from vtky.BaseArray import BaseArray class Points(object): def __init__(self, array, array_name='Points'): if isinstance(array, list): array = np.array(array) elif isinstance(array, pd.DataFrame): array = array.as_matrix()...
marcelotrevisani/vtky
vtky/Points.py
Python
mit
5,975
[ "VTK" ]
e9886efcbf7f4c0af5f959a23bee6d47d3c60e268b43ee49cf0ce915b820f964
import os, sys import vtktools import numpy as np import matplotlib as mpl mpl.use('ps') import matplotlib.pyplot as plt import matplotlib.tri as tri from paraview.simple import * ## READ archive (too many points... somehow) label = sys.argv[1] dayi = int(sys.argv[2]) dayf = int(sys.argv[3]) days = int(sys.argv[...
jungla/ICOM-fluidity-toolbox
2D/U/plot_T_hs.py
Python
gpl-2.0
3,621
[ "ParaView" ]
d808b5fff5294f3516c0ed75631f5768b24fa93b48f19dce5e66dfe5261fd234