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
import sys sys.path.append( '../../_build/moose' ) import moose print( 'Using moose from %s' % moose.__file__ ) f = moose.Function( '/f' ) f.expr = 'rand(1)' moose.reinit() for i in range( 10 ): moose.start( 1 ) print f.value
rahulgayatri23/moose-core
tests/issues/issue_muparser_rand.py
Python
gpl-3.0
235
[ "MOOSE" ]
ef044dc24af57afcd3bd3a389f3ee3a925f14694cbd8f742abbca67d53aec4e4
# -*- coding: utf-8 -*- """ [Python 2.7 (Mayavi is not yet compatible with Python 3+)] Created on Tue Feb 10 18:27:17 2015 @author: Ryan Stauffer https://github.com/ryanpstauffer/market-vis Market Visualization Prototype Visualization and Interactive module """ import numpy as np import moviepy.editor as...
ryanpstauffer/market-vis
marketvis/visualization.py
Python
mit
2,880
[ "Mayavi" ]
fabddea25f885b7e0d92c6c2fb8ba234eba93aa6823d3f9931af2753c5e3b767
from __future__ import division import numpy as np import pylab as pl from mpl_toolkits.axes_grid1 import make_axes_locatable import fastfit # Set for our camera sx, sy, pixelsize = 640, 480, 5.6 def sizetext(sx, sy): """ Check if the difference between the two axes are similar or different Returns displ...
UltracoldAtomsLab/labhardware
projects/beamprofile/interface.py
Python
mit
7,631
[ "Gaussian" ]
4b568beb262a986dd8c24255f67746c3e56507f18ada7ffb37dcd67ae4c1c284
__RCSID__ = "$Id$" ''' FileCatalogFactory class to create file catalog client objects according to the configuration description ''' from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Resources.Catalog.FileCatalogProxyClient import FileCatalogProxyClient from DIRAC.ConfigurationSystem.Client.Helpers.Resources impo...
sposs/DIRAC
Resources/Catalog/FileCatalogFactory.py
Python
gpl-3.0
2,618
[ "DIRAC" ]
f4a36bda6d27de028908c5e610bb8697fc389190875818f88d51c848c31f4c20
""" .. module:: parser_mp :synopsis: Definition of the command line options .. moduleauthor:: Benjamin Audren <benjamin.audren@epfl.ch> .. moduleauthor:: Francesco Montesano <franz.bergesund@gmail.com> Defines the command line options and their help messages in :func:`create_parser` and read the input command line...
miguelzuma/montepython_zuma
montepython/parser_mp.py
Python
mit
36,893
[ "Gaussian" ]
7fc9f3d3a879966ef5b14da3181a900527e8d3428c58a4e5c56b3cd6b1e13759
# # 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/orca/src/bigdl/orca/data/pandas/preprocessing.py
Python
apache-2.0
12,841
[ "ORCA" ]
583e1266a961d721190c68489250948b72e6b34cee939997f1da6a0dd3ff23af
# 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...
larroy/mxnet
python/mxnet/ndarray/numpy_extension/random.py
Python
apache-2.0
10,473
[ "Gaussian" ]
4ce3ff8603415e0c4a15064b408529e6b34c508dac0ec59905b6f9bd71981a62
# classifier - classification algorithms for Bregman toolkit __version__ = '1.0' __author__ = 'Michael A. Casey' __copyright__ = "Copyright (C) 2010 Michael Casey, Dartmouth College, All Rights Reserved" __license__ = "GPL Version 2.0 or Higher" __email__ = 'mcasey@dartmouth.edu' import numpy as N import scipy.linal...
bregmanstudio/BregmanToolkit
bregman/classifier.py
Python
mit
11,802
[ "Gaussian" ]
b792206a851addd2fcfc1fd881d5bd0a2d1a57f8beb9077b6f4192674c08d03c
# Version: 0.19 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain * Compatible with: Python 3.6, 3.7, 3.8, 3.9 and pypy3 * [![Latest Version][pypi...
pymor/pymor-deal.II
versioneer.py
Python
bsd-2-clause
70,238
[ "Brian" ]
eba028cc37a274e262ecc5e8d8cd076c1dfacaac63e8b39d9f8d55a76d3a0ac8
#!/usr/local/bin/python """ Cantera .cti input file processor The functions and classes in this module process Cantera .cti input files and produce CTML files. It can be imported as a module, or used as a script. script usage: python ctml_writer.py infile.cti This will produce CTML file 'infile.xml' """ imp...
blurock/CANTERA
RunIgnition/examples/RunIgnition/ctml_writer.py
Python
gpl-3.0
51,733
[ "CRYSTAL" ]
057570af94a1595452c3a15dc09673bda3731c4b779e7b34f4e7018145a35893
import numpy as np import logging from collections import defaultdict, Counter from itertools import izip, imap from operator import itemgetter from tqdm import tqdm from cityhash import CityHash32 from .containers import RandomChoiceDict class NDHashable(object): """Turn NumPy NDArray into a hashable object ...
escherba/annx
annx/pyann/gauss.py
Python
mit
8,078
[ "Gaussian" ]
f26e4156b6d3638b25793e0785ab237ed57e1acb10c35c3384af64d71cc949ca
""" Single Bubble Model: Droplet simulations ========================================= Use the ``TAMOC`` `single_bubble_model` to simulate the trajectory of a light oil droplet rising through the water column. This script demonstrates the typical steps involved in running the single bubble model. It uses the ambient...
socolofs/tamoc
bin/sbm/drop_biodeg.py
Python
mit
2,096
[ "NetCDF" ]
4b3da33dc60f7baa8884c08dfb67db9aaafdb4f6355f29aef709694c2ba94956
from collections import defaultdict import toolshed as ts import numpy as np import pandas as pd from .crystal import Feature, CountFeature import os def example_random_cluster(n_samples=20, n_sites=4, seed=42): np.random.seed(seed) if n_samples % 2 != 0: n_samples += 1 covs = pd.DataFrame({'gender': ['F...
kidaa/crystal-1
crystal/utils.py
Python
mit
3,815
[ "CRYSTAL" ]
870ed8eceafc92f6c1bcc76abb461d8256ce7450d65a10913344cc2e187ccd0d
import numpy as np def get_key_to_indexes_dic(labels): """ Builds a dictionary whose keys are the labels and whose items are all the indexes that have that particular key. """ # Get the unique labels and initialize the dictionary label_set = set(labels) key_to_indexes = {} for label ...
h-mayorquin/competitive_and_selective_learning
functions.py
Python
mit
1,475
[ "NEURON" ]
4d7871e222d9be177d7dfa9912678ed603225def7215dcb04cdc8314394f1d35
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA 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 vers...
fabian-paul/PyEMMA
pyemma/coordinates/tests/test_source.py
Python
lgpl-3.0
9,194
[ "MDTraj" ]
51fc7181aa1e70b3212991bd7be98115b3c6890d7fbb20cfadf61327bec1371d
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/interaction/AngularUniquePotential.py
Python
gpl-3.0
2,263
[ "ESPResSo" ]
8061622265049254eba919188619a1088802fecff8305a19cb8ed48b8545f302
# -*- coding: utf-8 -*- import os import datetime import subprocess from flask import Blueprint, jsonify, current_app from flask.ext.misaka import markdown from werkzeug.contrib.atom import AtomFeed import codecs import shutil import math from mako.template import Template from mako.lookup import TemplateLookup fro...
gaowhen/summer
summer/view/build/build.py
Python
mit
4,518
[ "GULP" ]
3c19cba3d98af3e957d2e7224de8c7720b7c4afe8f81a05a8934b9a5eaf514df
# 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...
wojciechtanski/robotframework
src/robot/model/testcase.py
Python
apache-2.0
2,435
[ "VisIt" ]
af2531e3f61f27e5bbee646227140ac6dee883345a484e1ad9139e0683f3a3f2
from electrum.i18n import _ fullname = _('Two Factor Authentication') description = ''.join([ _("This plugin adds two-factor authentication to your wallet."), '<br/>', _("For more information, visit"), " <a href=\"https://api.trustedcoin.com/#/electrum-help\">https://api.trustedcoin.com/#/electrum-help</a>...
valesi/electrum
plugins/trustedcoin/__init__.py
Python
gpl-3.0
468
[ "VisIt" ]
e47f410e73976cffb4cb304e0e3eef512434a71e1bcf629134ac65866f738cd6
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/fci/test/test_spin1_symm.py
Python
apache-2.0
3,685
[ "PySCF" ]
ecc1dc307b4cdce85684c1fe7cd5ae958263bcb1de6bd9ca8e44a2e8253487cb
#!/usr/local/bin/python # -- coding: utf-8 -- import nltk from __future__ import division # ------------------------------------------------------------------------------ # Work through the http://nltk.org/book/ # -- gene at ology dot net not dot com # # Handy links: # http://nltk.org/ # http://stackoverflow.com/quest...
ology/NLTK-Study
ch02.py
Python
artistic-2.0
32,251
[ "ORCA" ]
ddbffaf5b2158200d31abf5ebea6fc713ea981467f78ce3e52ef1a9c14023fef
""" InaSAFE Disaster risk assessment tool developed by AusAid - **IS Utilitles implementation.** Contact : ole.moller.nielsen@gmail.com .. note:: 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 Foun...
fivejjs/inasafe
safe_qgis/utilities.py
Python
gpl-3.0
44,063
[ "VisIt" ]
972d610f5e884ca3150c8f88e3c0d5beb2d48b9ee7fde826faf5bec4aeb30133
#please add any of the toy examples you build with comprehensions here fish_tuple = ('blowfish', 'clownfish', 'catfish', 'octopus') # make a list of all fish with a for loop fish_list = [] for fish in fish_tuple: if fish != 'octopus': fish_list.append(fish) # print(fish_list) # make a list of all fish us...
developerQuinnZ/this_will_work
student-work/ashley_riehl/week_2/day_1/working_with_csvs/comprehensions.py
Python
mit
656
[ "Octopus" ]
13ecc69af5a5e9ce69e31936c6b32da37f0ceba21ca8dd38b5030019ffefba5c
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string, optparse, subprocess import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','desc...
hoyo/TiMultipeer
build.py
Python
mit
8,785
[ "VisIt" ]
e7b2168aeeefa91f98d396e52529e8809ec3d61c1cd25d5eee5e9c12bca67430
#!/usr/bin/python # -*- coding: utf-8 -*- """ Copyright (c) 2014 windpro Author : windpro E-mail : windprog@gmail.com Date : 15/1/28 Desc : """ import os import geventwebsocket from geventwebsocket.server import WebSocketServer PORT = 8000 def echo_app(environ, start_response): websocket = env...
windprog/requestspool
tests/websocketservertest.py
Python
mit
1,522
[ "VisIt" ]
de8cb6bee7184742613d0a512ca91201d4bbd09444aca5b2d1d4fe152315561a
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
schwehr/gdal-autotest2
python/gdrivers/gdrivers_util.py
Python
apache-2.0
22,015
[ "NetCDF" ]
1f418b487babb242b52342c11f596ddc3b7945b781c6df787f847d6e7dd0105a
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The fsl module provides classes for interfacing with the `FSL <http://www.fmrib.ox.ac.uk/fsl/index.html>`_ command line tools. This was written to work with FSL version 4.1.4. ...
carolFrohlich/nipype
nipype/interfaces/fsl/preprocess.py
Python
bsd-3-clause
75,161
[ "Gaussian", "VTK" ]
ccde6d76ec02cac8bf506136b6ec64a2e930b22517538a0040ca51c7e596e0b4
# https://clifford.readthedocs.io/en/latest/SpaceTimeAlgebra.html from . import Cl, BladeMap # Dirac Algebra `D` D, D_blades = Cl(1, 3, firstIdx=0, names='d') # Pauli Algebra `P` P, P_blades = Cl(3, names='p') # put elements of each in namespace locals().update(D_blades) locals().update(P_blades) bm = BladeMap([...
arsenovic/clifford
clifford/sta.py
Python
bsd-3-clause
594
[ "DIRAC" ]
db632d39783a7a159eddd548a7e86eec7306b27c482664a9584b559f1abe971e
from vtk import * import os.path data_dir = "../../../../VTKData/Data/Infovis/SQLite/" if not os.path.exists(data_dir): data_dir = "../../../../../VTKData/Data/Infovis/SQLite/" if not os.path.exists(data_dir): data_dir = "../../../../../../VTKData/Data/Infovis/SQLite/" sqlite_file = data_dir + "temperatures.db" #...
collects/VTK
Examples/Infovis/Python/streaming_statistics.py
Python
bsd-3-clause
3,118
[ "VTK" ]
d195ce278272a045b36090f62cbc074d356df3b75ebb308e999ac4b270d77433
#!/usr/bin/env python __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011, The QIIME Project" __credits__ = ["Rob Knight", "Greg Caporaso", "Kyle Bittinger", "Jens Reeder", "William Walters", "Jose Carlos Clemente Litran", "Adam Robbins-Pianka", "Jose Antonio Navas Molina"] __lice...
adamrp/qiime
qiime/pick_otus.py
Python
gpl-2.0
82,387
[ "BLAST" ]
06e4d4b00fc3857092582e4426e18fa7252474661ca9ed27c9de0b22c066f6f0
from setuptools import setup setup( name='mercuro', version='0.1.1', author='Brian Cline', author_email='brian.cline@gmail.com', description=('A simple daemon that listens for syslog events and ' 'forwards them to a Riemann server.'), license = 'Apache', keywords = 'syslog...
briancline/mercuro
setup.py
Python
apache-2.0
833
[ "Brian" ]
b9a918633c2b538bc96cc6e523e4b3d176f6186c1de1abc113254fe866805ae9
import unittest from pycparser import parse_file import minic.c_ast_to_minic as ctoc import minic.minic_ast as mast class TestVisitor(mast.NodeVisitor): def __init__(self): self.assignment_counter = 0 self.forl_counter = 0 def visit_Assignment(self, assignment): self.assignment_count...
martylee/Python
CSC410-Project-1-master/tests/test_nodevisitors.py
Python
gpl-2.0
699
[ "VisIt" ]
1be42e637460301662fc42689984fa7ad12e6ed8304e46ce7a89543cf5099a64
r"""OS routines for Mac, NT, or Posix depending on what system we're on. This exports: - all functions from posix, nt or ce, e.g. unlink, stat, etc. - os.path is either posixpath or ntpath - os.name is either 'posix', 'nt' or 'ce'. - os.curdir is a string representing the current directory ('.' or ':') - os....
171121130/SWI
venv/Lib/os.py
Python
mit
34,425
[ "VisIt" ]
8a9eb9c72489e99f4d20c3e9ca11b15aaaeadcc129db6b94cafb1df1fe4406f9
######################################################################## # File: RegisterOperation.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/03/19 13:55:14 ######################################################################## """ :mod: RegisterFile ================== .. module: RegisterFile ...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/Agent/RequestOperations/RegisterFile.py
Python
gpl-3.0
5,299
[ "DIRAC" ]
8bc9bcce591d5a05ecd7bd50348dac5a9372f92ec720a92d10a625abcd61ec9c
""" Manage transfers from arbitrary URLs to temporary files. Socket interface for IPC with multiple process configurations. """ import os, subprocess, socket, logging, threading from galaxy import eggs from galaxy.util import listify, json log = logging.getLogger( __name__ ) class TransferManager( object ): """...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/jobs/transfer_manager.py
Python
gpl-3.0
8,605
[ "Galaxy" ]
63902fca5f0c33dc8eafed12033be2b730b183f8682026ab2f95ddacf7aee4cd
from pyramid import testing from pyramid.session import UnencryptedCookieSessionFactoryConfig import pytest from pyramid_crud import forms, views from webob.multidict import MultiDict @pytest.fixture def pyramid_request(): r = testing.DummyRequest() r.POST = MultiDict() return r @pytest.yield_fixture de...
Javex/pyramid_crud
tests/test_integration.py
Python
mit
8,372
[ "VisIt" ]
69690b0444f08b2ba0edd74dc38423264540464855ef280aeedf47f2ab443f81
#!/usr/bin/env python import vtk class TerminationCrashTestCase: """This test case should produce a crash on termination if we aren't careful in DECREFing a Python callback via vtkPythonCommand. The problem occurs only when you have an uncollectable reference cycle with an observer callbac...
timkrentz/SunTracker
IMU/VTK-6.2.0/Common/Core/Testing/Python/TestTerminationCrash.py
Python
mit
1,445
[ "VTK" ]
cec69741e62d943bd48fbc4c94d2069cc214e9b00d6891e6bee21624d124bb78
""" This module is used to create an appropriate object which can be used to insert records to the Monitoring system. It always try to insert the records directly. In case of failure the monitoring client is used... """ from __future__ import absolute_import from __future__ import division from __future__ import print_...
ic-hep/DIRAC
src/DIRAC/MonitoringSystem/Client/ServerUtils.py
Python
gpl-3.0
1,130
[ "DIRAC" ]
95cbf92ed58963a252bd131a035fff052e563fd7cba38241b56c5a7bd72decfc
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The ants module provides basic functions for interfacing with WMQL.""" import os import glob from nipype.interfaces.base import (CommandLine, CommandLineInputSpec, TraitedSpec, traits) class TractQue...
BRAINSia/tract_querier
tract_querier/nipype/wmql.py
Python
bsd-3-clause
5,548
[ "VTK" ]
a09b5e727ce4c4eeec629fa7ca13ab27a83478cfb571c2108cff3c2b0078ba7c
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageEllipsoidSource(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
chrisidefix/devide
modules/vtk_basic/vtkImageEllipsoidSource.py
Python
bsd-3-clause
488
[ "VTK" ]
dc5642086cbfc93e32eb7c101214369bac571d00a7f19635785b3f302660c72d
#!/usr/bin/python # -*- coding: utf-8 -*- # # This file is part of Radicale Server - Calendar Server # Copyright © 2009-2013 Guillaume Ayoub # # This library 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, eit...
UIKit0/Radicale
setup.py
Python
gpl-3.0
3,051
[ "VisIt" ]
291e40c162011ee69767fcfdae654656d470ac75c497edb1410a513f8dc2841a
import os import unittest from pymatgen.core.periodic_table import Element from pymatgen.util.testing import PymatgenTest from pymatgen.io.phonopy import * import sys if sys.version_info >= (3, 0): try: from phonopy import Phonopy from phonopy.structure.atoms import PhonopyAtoms from phono...
montoyjh/pymatgen
pymatgen/io/tests/test_phonopy.py
Python
mit
5,833
[ "phonopy", "pymatgen" ]
c3f098455bbd460cefcd84fb05699ca753d34f99fa04b09de14efca576f1a0b2
#!/usr/bin/env python3 import sys import numpy as np import argparse import matplotlib.pyplot as plt from analysisTools import sensibleIds, groundOffset, quadrantAnalysis from netcdfTools import read3dDataFromNetCDF, netcdfOutputDataset, \ createNetcdfVariable, netcdfWriteAndClose from utilities import filesFromList,...
mjsauvinen/P4UL
pyNetCDF/reynoldsStressNetCdf.py
Python
mit
6,222
[ "NetCDF" ]
1dd5fe079791e1e1823858699efa30beee58e47e3348cc62c21bea6bb8db643b
# Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. import copy import io import os import pickle import re import shutil import tempfile import threading import time import unittest import warnings from unittest import mock from django.conf import settings from django.core...
sjlehtin/django
tests/cache/tests.py
Python
bsd-3-clause
91,787
[ "Brian" ]
5de2db7bb459f4df0e71966776fdaf78b1b9dbda639bb83a3b9a3db31330f6b3
# $Id$ # # Copyright (C) 2003-2006 Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # try: from reportlab import platypus ...
rdkit/rdkit-orig
rdkit/Dbase/DbReport.py
Python
bsd-3-clause
7,416
[ "RDKit" ]
9253b2752d61ab35e803af1ff97d2b1524e49b07197bfcdc76fab29b836ae4ca
# -*- python -*- # Copyright (C) 2009-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later versio...
h4ck3rm1k3/OpenWrt-Firefly-SDK
staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/lib/libstdc++.so.6.0.19-gdb.py
Python
gpl-2.0
2,580
[ "Firefly" ]
52cf6f0f80f1d48db22e1a2400ce5b496f357689d08e9a1446c9d23ebf900b26
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** # ...
SKIRT/PTS
magic/config/extract.py
Python
agpl-3.0
2,224
[ "Galaxy" ]
750de49014f46483d8421f49e5c80e6ae66ee1450bd194572ae8a1ad04ab3a69
""" Distributions """ from __future__ import division, absolute_import from functools import wraps from abc import ABCMeta from abc import abstractmethod import scipy as sp import numpy as np from pygam.core import Core from pygam.utils import ylogydu def multiply_weights(deviance): @wraps(deviance) def mu...
dswah/pyGAM
pygam/distributions.py
Python
apache-2.0
17,299
[ "Gaussian" ]
0efe767e90f7592b7fc479c70acdf11f960f79d0d71d78ec06855515fecbd348
# -*- coding: utf-8 -*- # # network.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, or # (...
weidel-p/nest-simulator
pynest/examples/Potjans_2014/network.py
Python
gpl-2.0
21,785
[ "NEURON" ]
41be4ac70e42bc236a5887219274a39a3e3e0dc38c5d6c2b17f6ec3026b580f8
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # # 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 versi...
pmghalvorsen/gramps_branch
gramps/gui/plug/report/_webreportdialog.py
Python
gpl-2.0
1,982
[ "Brian" ]
c9140a3c7b3316801066cad9ecd9ffaa697582abe582dc896de94bfd66a96c8e
# Copyright (c) 2012-2014, Max Zwiessele, James Hensman # Licensed under the BSD 3-clause license (see LICENSE.txt) __doc__ = """ Inference over Gaussian process latent functions In all our GP models, the consistency propery means that we have a Gaussian prior over a finite set of points f. This prior is math:: N(...
beckdaniel/GPy
GPy/inference/latent_function_inference/__init__.py
Python
bsd-3-clause
3,440
[ "Gaussian" ]
22f32d9750a7be3d23797f752353c9122015a7e05e80f994ea08d426c63896ac
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Visit.mobile' db.add_column(u'clinics_visit', 'mobile', ...
myvoice-nigeria/myvoice
myvoice/clinics/migrations/0025_auto__add_field_visit_mobile.py
Python
bsd-2-clause
14,087
[ "VisIt" ]
d1befe8315f4838db41b3a1c1b38d36cda02700d076903ce20e929c06215bb83
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2017 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
QuantumElephant/horton
horton/io/test/test_molden.py
Python
gpl-3.0
8,205
[ "ORCA", "Psi4", "TURBOMOLE" ]
28dc8733a8b41184a7094abb51eeeebc97e4c5d98dcd4328f9d9972351b42806
""" DIRAC FileCatalog mix-in class to manage users and groups within the FC database """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import six import time import threading from DIRAC import S_OK, S_ERROR, gConfig, gLogger from DIRAC...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/UserGroupManager/UserAndGroupManagerDB.py
Python
gpl-3.0
8,952
[ "DIRAC" ]
ab84be12a275a74f33bdc2cd77c4ca57d7c9f1d067e78dc2165d0ddbaff52a4a
# # Gramps - a GTK+/GNOME based genealogy program # # 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 Free Software Foundation; either version 2 of the License, or # (at your ...
Forage/Gramps
gramps/gen/plug/_export.py
Python
gpl-2.0
2,836
[ "Brian" ]
55ee33f7fcf720346f598fb8c08939d96b5e87b1d17fcef90fe1f10ced99e339
from mypyli import blastparser from Bio import SeqIO import argparse import logging import sys def get_seq_ids(fasta_f): """ Returns a list of sequence headers and makes sure they are all unique.""" ids = [] with open(fasta_f, 'r') as IN: for seq in SeqIO.parse(IN, 'fasta'): ids.append...
hunter-cameron/Bioinformatics
job_scripts/tati/implement_qiime_blast_taxonomy.py
Python
mit
3,420
[ "BLAST" ]
2c4c4dfbb2ff577ffe52948907025322d7bdc9afe2225e3d8be96ac426eb4ccd
# (c) 2015, Brian Coca <bcoca@ansible.com> # (c) 2012-17 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ lookup: url author: Brian Coca (@bcoca) versi...
aperigault/ansible
lib/ansible/plugins/lookup/url.py
Python
gpl-3.0
3,817
[ "Brian" ]
36027350b0794648148206af5e78be10266c599325b28cd640fc2aa638cb5edf
# -*- coding: utf-8 -*-; # Generated by Django 1.11.23 on 2020-01-29 09:38 from __future__ import unicode_literals import django.db.models.deletion import enumfields.fields import filer.fields.image from decimal import Decimal from django.conf import settings from django.db import migrations, models import shuup.core...
shoopio/shoop
shuup/core/migrations/0068_help_text_improvements.py
Python
agpl-3.0
40,311
[ "VisIt" ]
8e4d6aa0fcd83b9ace7b8c6d85253feab03b3b654de86a7b772189916ed03837
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'kmu' """ Test to read netcdf files from thredds.met.no """ #from matplotlib import pyplot as plt import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np import netCDF4 # Access netcdf file via OpenDAP filename = 'http://th...
kmunve/TSanalysis
Test/thredds_test.py
Python
mit
1,766
[ "NetCDF" ]
bc5d5d4062ba292c9b59fec7a911e4417602b887f8b9b302e37d16244952d1d5
# Author(s): TJ Lane (tjlane@stanford.edu) and Christian Schwantes # (schwancr@stanford.edu) # Contributors: Vince Voelz, Kyle Beauchamp, Robert McGibbon # Copyright (c) 2014, Stanford University # All rights reserved. """ Functions for performing mean first passage time calculations for an MSM. For a usef...
dr-nate/msmbuilder
msmbuilder/tpt/mfpt.py
Python
lgpl-2.1
6,342
[ "MDTraj" ]
37355234b729e33977f4a6b4fcebf07136b77f9c7311472423098582550ea11e
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from node import NodeVisitor, ValueNode, BinaryExpressionNode from parser import precedence def escape(string, extras=...
indykish/servo
tests/wpt/harness/wptrunner/wptmanifest/serializer.py
Python
mpl-2.0
3,478
[ "VisIt" ]
9cc539d691c923b15d58fc37c6c626411f26b9a4a4293624cc3d50ddf940ce27
# coding: utf-8 from __future__ import unicode_literals import itertools import re import xml from .common import InfoExtractor from ..utils import ( clean_html, dict_get, ExtractorError, float_or_none, get_element_by_class, int_or_none, js_to_json, parse_duration, parse_iso8601, ...
kidburglar/youtube-dl
youtube_dl/extractor/bbc.py
Python
unlicense
59,081
[ "VisIt" ]
9d7a37a3e8fd1312a7d42c280424d4460170ed23839a4c9b5fe233108a1c421e
import matplotlib.pyplot as plt import numpy as np import glob #delete the headers every timesteps (snapshots) ''' sed -i '/ITEM: TIMESTEP/,+8d' dump.test ''' natoms = 86718 #2023 21054 9126 nsnaps = 31 #no. of snaps filename = 'dump.test' # lammps dump file after processing with 'sed' command flist = glob.glob...
msadat/python-scripts
del_types_dump_write.py
Python
gpl-3.0
2,281
[ "LAMMPS" ]
4c0489be1ac16a750627affcc4aabad36f69b67fc68131bad710358d565786d5
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Implementation of defect correction methods. """ import logging import matplotlib.pyplot as plt import numpy as np import scipy from scipy import stats from pymatgen.analysis.defects.core import DefectCo...
richardtran415/pymatgen
pymatgen/analysis/defects/corrections.py
Python
mit
38,404
[ "VASP", "pymatgen" ]
a62a74149ea1d7658a13ae0cc9135035353ba30c186085447ff993919a8b743d
#*- coding : utf-8 -*- ''' Created on 2011-01-18\n The twist angle for G-DNA is defined from a JCTC article. which DOI is 10.1021/ct100253m. The twist angle is defined using the angle between the line of C1' atoms in a G-quartet layer. @version: 0.1.0 @author: zhuh @change: - 2011-01-18\n - Create this fi...
zhuhong/g4analysis
G4Analysis/G4_twist.py
Python
gpl-2.0
9,527
[ "MDAnalysis" ]
7a5f824b80f70f915297730b5b687e631c7a8e36fd4edd61f7e5fd206011b115
''' Created on Jun 4, 2011 @author: mkiyer chimerascan: chimeric transcript discovery using RNA-seq Copyright (C) 2011 Matthew Iyer 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 ...
tectronics/chimerascan
chimerascan/deprecated/old_nominate_chimeras.py
Python
gpl-3.0
8,393
[ "pysam" ]
3a3ffba4a608a478548fdda94d2e8159cdebcf7697ed4a2c1e1c7b29bf8de505
# -*- coding: utf-8 -*- ''' Provide authentication using YubiKey. .. versionadded:: 2015.5.0 :depends: yubico-client Python module To get your YubiKey API key you will need to visit the website below. https://upgrade.yubico.com/getapikey/ The resulting page will show the generated Client ID (aka AuthID or API ID)...
stephane-martin/salt-debian-packaging
salt-2016.3.3/salt/auth/yubico.py
Python
apache-2.0
2,096
[ "VisIt" ]
fe6470dd10a207bb6ea7a35c955a26482d32b81af03b1b90e9cc88ae303eae9d
#!/usr/bin/python # -*- coding: utf-8 -*- """ Get polarizability from X0h server (http://x-server.gmca.aps.anl.gov/x0h.html). For details see http://x-server.gmca.aps.anl.gov/pub/Stepanov_CR_1991_08.pdf. """ from __future__ import division import math import re import requests X0H_SERVER = 'http://x-server.gmca.aps....
mrakitin/sirepo
sirepo/crystal.py
Python
apache-2.0
5,120
[ "CRYSTAL" ]
e01e42f0e4e120b867330d089aa0831d05c33b3a80a114051c20ba95b4d0e15a
from aces.materials import Material from aces.modify import get_unique_atoms from ase import Atoms,Atom from math import pi,sqrt from ase.dft.kpoints import ibz_points from aces import config from ase.lattice import bulk import numpy as np from aces.tools import * class structure(Material): def set_parameters(self): ...
vanceeasleaf/aces
aces/materials/NaCl.py
Python
gpl-2.0
1,655
[ "ASE" ]
af1cba7bd6427027dea21cffcca74d77bbadf9057340dd44bf3af3945d6e93fb
tutorial_tests = """ Let's try a simple generator: >>> def f(): ... yield 1 ... yield 2 >>> for i in f(): ... print(i) 1 2 >>> g = f() >>> next(g) 1 >>> next(g) 2 "Falling off the end" stops the generator: >>> next(g) Traceback (most recent call last...
timm/timmnix
pypy3-v5.5.0-linux64/lib-python/3/test/test_generators.py
Python
mit
49,731
[ "VisIt" ]
d7b49bcee7bdd5509440b1f53a3580e2eed869cc3818e262b6cd4f7263701295
import os import sys import random import time import math import torchvision from torch import optim import io from PIL import Image import visdom vis = visdom.Visdom() import matplotlib.ticker as ticker import socket hostname = socket.gethostname() from .pssm2go_model import * from .baselines import * from ...
yotamfr/prot2vec
src/python/pssm2go_train.py
Python
mit
27,410
[ "BLAST" ]
8c52bac0333276678104d35303faf6bd0724d81880ee8cda185e8dc54a20dee1
# -*- coding: utf-8 -*- # Copyright (c) 2011 - 2015 Detlev Offenbach <detlev@die-offenbachs.de> # """ Package implementing cryptography related functionality. """ from __future__ import unicode_literals import random import base64 from PyQt5.QtCore import QCoreApplication from PyQt5.QtWidgets import QLineEdit, QIn...
paulmadore/Eric-IDE
6-6.0.9/eric/Utilities/crypto/__init__.py
Python
gpl-3.0
10,304
[ "EPW" ]
bda8cb9c914006b5ca09ccfec9746668060abd6659d449fb690d5f55ad6553bc
from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import timedelta from collections import defaultdict import functools import itertools from distutils.version import LooseVersion import numpy as np import pandas as pd from . import common from ...
jhamman/xray
xarray/core/variable.py
Python
apache-2.0
54,258
[ "NetCDF" ]
8f26af5b7c80ae8ba16a2b43ffb7e067bc31ec2d9e96109828a5d5d5471d198a
#!/usr/bin/python # Copyright (C) 2011 Tianyang Li # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This pro...
tianyang-li/meta-transcriptome
get_sam_db_aligned.py
Python
gpl-3.0
986
[ "HTSeq" ]
193b097dc34f9f32cefe13415f1a558cb0d1bb511f9d37b0e0d94e9acc08c726
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent import pytest from pants.backend.codegen.protobuf.python.python_protobuf_subsystem import ( rules as protobuf_subsyste...
pantsbuild/pants
src/python/pants/backend/python/typecheck/mypy/rules_integration_test.py
Python
apache-2.0
29,373
[ "BLAST" ]
356bbec93c078f7cb1c01ff1a96b81a5607ca5e4212cf906a59f9910901f7551
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Unit tests for the :mod:`iris.tests.stock.netcdf` module.""" import shutil import tempfile from iris import load_cube from...
bjlittle/iris
lib/iris/tests/unit/tests/stock/test_netcdf.py
Python
lgpl-3.0
5,089
[ "NetCDF" ]
b0fdb79b34aeb979488de63a256cb20bab7687b1500490d0332e0adfedaa6713
#from opengmcore import _opengmcore.adder as adder from opengmcore import * from __version__ import version from functionhelper import * from _inf_param import _MetaInfParam , InfParam from _visu import visualizeGm from _misc ...
yanlend/opengm
src/interfaces/python/opengm/__init__.py
Python
mit
12,141
[ "VisIt" ]
3daa85a5e872d504d2f97b0db7c5099423f9937f48d686fca87ea1b4f9fde61c
#!/usr/bin/python """ Copyright 2016 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of th...
druss316/G-Harvestor
checkAlerts.py
Python
gpl-3.0
15,402
[ "Galaxy" ]
43129fb2c58f896a75523818aa41de43035dd50ebd6fb087e7e3899794c41aa7
from sympy.physics.matrices import msigma, mgamma, minkowski_tensor, pat_matrix from sympy import zeros, eye, I, Matrix def test_parallel_axis_theorem(): # This tests the parallel axis theorem matrix by comparing to test # matrices. # First case, 1 in all directions. mat1 = Matrix(((2, -1, -1), (-1, ...
lidavidm/mathics-heroku
venv/lib/python2.7/site-packages/sympy/physics/tests/test_physics_matrices.py
Python
gpl-3.0
2,212
[ "DIRAC" ]
871238326da5471a6ba84191f092fb1ea36df43db7a70acb5154fd0b7284e389
# -*- coding: utf-8 -*- """ Lower calls. """ from pykit import types from pykit.ir import visit, Const, FunctionPass class Verify(object): """Verify the current state of calls""" def op_call(self, op): assert not op.args[0].type.is_object, "Object calls must have been resolved" class ExceptionCheck...
ContinuumIO/pykit
pykit/lower/lower_calls.py
Python
bsd-3-clause
1,497
[ "VisIt" ]
e9ffe9722188a3791e16fd418a1bda0631c44d4a2cbde293b1c9cf26a046cd36
from WebAppDIRAC.Lib.WebHandler import WebSocketHandler, asyncGen from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC import gConfig, gLogger from DIRAC.Core.Utilities import Time, List from DIRAC.Core.Utilities.CFG import CFG from DIRAC.ConfigurationSystem.private.Modificator import Modificator import json i...
zmathe/WebAppDIRAC
WebApp/handler/ConfigurationManagerHandler.py
Python
gpl-3.0
25,480
[ "DIRAC" ]
2544edc1d94fa0b935a2636b60b530755b0aa89b74f1c0475485373b94fdb89f
import matplotlib matplotlib.use('Agg') import sys sys.path.append('../../') import numpy as np import scipy.stats import matplotlib.pylab as plt import os, sys import geepee.aep_models as aep import geepee.vfe_models as vfe import geepee.ep_models as ep import pdb np.random.seed(42) # We first define several utility...
thangbui/geepee
exps/gpssm/lin_cos_exp.py
Python
mit
5,539
[ "Gaussian" ]
cefb8d3c461dd565dc15bf70f72027079ced842bcf4bb3bb87d10b66f1aa9e62
# Copyright 2002 by Katharine Lindner. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # python unittest framework import unittest import copy # modules to be tested from Bio.C...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_Crystal.py
Python
gpl-2.0
16,782
[ "Biopython", "CRYSTAL" ]
c5d1a892131039fea003774854871c624e369f4b7c71c5b2f29b263a416136bf
#!/usr/bin/env python # Import peak data into the meTRN structures! import sys import time import optparse import general import numpy import pickle import pdb import metrn import modencode import copy import os print "Command:", " ".join(sys.argv) print "Timestamp:", time.asctime(time.localtime()) """ define functi...
claraya/meTRN
python/dataImporter.py
Python
mit
11,052
[ "BWA", "Bowtie" ]
aebc049b5640c09666bec4f84410de6e6a82ceb2b40151b022b333838ea122ed
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2016-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free S...
The-Compiler/qutebrowser
qutebrowser/browser/browsertab.py
Python
gpl-3.0
41,845
[ "VisIt" ]
151429e823b56774e6dc191d54acaf6263a78649556908b570365a1cca207924
# $HeadURL: $ """ PEP PEP ( Policy Enforcement Point ) is the front-end of the whole Policy System. Any interaction with it must go through the PEP to ensure a smooth flow. Firstly, it loads the PDP ( Policy Decision Point ) which actually is the module doing all dirty work ( finding policies, running them...
Sbalbp/DIRAC
ResourceStatusSystem/PolicySystem/PEP.py
Python
gpl-3.0
6,634
[ "DIRAC" ]
a6557f7d178ab17404a9c1bf7a3745be5e07b8edec7fc0e8dfdbca3faf3fac96
#!/usr/bin/env python # -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright INRIA # Contributors: Nicolas P. Rougier (Nicolas.Rougier@inria.fr) # # DANA is a computing framework for the simulation of distributed, # asynchronous, numerical and adaptive models...
rougier/dana
examples/overt-attention.py
Python
bsd-3-clause
7,064
[ "Gaussian" ]
48cf2e0ecf93c493ce6b75edaea1a469324f34e19b2ce205ea57d29990782354
""" Gaussian Process Factor Analysis (GPFA) plots --------------------------------------------- Visualizes transformed trajectories output from :class:`elephant.gpfa.gpfa.GPFA` .. autosummary:: :toctree: toctree/gpfa/ plot_dimensions_vs_time plot_trajectories plot_trajectories_spikeplay plot_cumu...
INM-6/viziphant
viziphant/gpfa.py
Python
bsd-3-clause
41,325
[ "Gaussian", "NEURON" ]
17455cdc666848f18e4cc15e8e548b229cd336334bf0ce6868f93a497915b316
""" https://leetcode.com/problems/subdomain-visit-count/ https://leetcode.com/submissions/detail/148073410/ """ class Solution: def subdomainVisits(self, cpdomains): """ :type cpdomains: List[str] :rtype: List[str] """ dic = dict() for cpdomain in cpdomains: ...
vivaxy/algorithms
python/problems/subdomain_visit_count.py
Python
mit
1,110
[ "VisIt" ]
77d1638c4acf6bf735fdc6e4071c237b8e2323e30eb1b5f4d4923ebe54d69e38
# - coding: utf-8 - # Copyright (C) 2008-2010 Toms Bauģis <toms.baugis at gmail.com> # Dual licensed under the MIT or GPL Version 2 licenses. # See http://github.com/tbaugis/hamster_experiments/blob/master/README.textile import math import datetime as dt import gtk, gobject import pango, cairo import re try: im...
omaciel/billreminder
src/gui/widgets/graphics.py
Python
gpl-3.0
62,323
[ "FLEUR" ]
36676bdfe40602374d0db458d6678fc5896dd25e5e06f4be999ff85c57f5c742
#! /usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import division ############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is s...
medularis/py-star
run_tests.py
Python
bsd-3-clause
29,564
[ "VisIt" ]
d361bb18723867b6e0b0a8bb5ff252056c6ce33e17c006cc7831fac7028e767f
from __future__ import absolute_import from unittest import TestCase, skip from ccdproc import CCDData from astropy.convolution import convolve, Gaussian1DKernel, Box1DKernel from astropy.io import fits from astropy.modeling import Model from astropy.modeling import (models, fitting) impo...
soar-telescope/goodman
goodman_pipeline/core/tests/test_core.py
Python
bsd-3-clause
93,118
[ "Gaussian" ]
8c1ff876834d2de1893b0341a249b83ae408c72efb93c5d7b4b45d2a9ace98ce
from ase.db.core import connect class IdCollisionError(Exception): pass
grhawk/ASE
tools/ase/db/__init__.py
Python
gpl-2.0
78
[ "ASE" ]
29b77e4554560a2360a3621dcd23c966f5f5b31f306386708b204347e3546558
# Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. # Use of this file is governed by the BSD 3-clause license that # can be found in the LICENSE.txt file in the project root. #/ # The basic notion of a tree has a parent, a payload, and a list of children. # It is the most abstract interface for all th...
cikelengfeng/HTTPIDL
Sources/Compiler/antlr4/tree/Tree.py
Python
mit
4,145
[ "VisIt" ]
9f372cbd5e82e0a7dbe9c81577fd7c26dd259a8864a8380edc2f1cb62f5ada13
''' Created on Jan 5, 2011 @author: Dan Blankenberg Code from the Galaxy project (http://galaxy.psu.edu) Contains methods to transform sequence strings ''' import string from math import log10 from string import maketrans # Quality score formats SANGER_FORMAT = "sanger" SOLEXA_FORMAT = "solexa" ILLUMINA_FORMAT = "il...
genome-vendor/chimerascan
chimerascan/lib/seq.py
Python
gpl-3.0
5,019
[ "Galaxy" ]
922315f8061e2e2d508c673b656d5bcd96b7b09ed60eefc4cf8344d838f816e8
''' user interface for viewing/editing photon optics layouts ''' from numpy import sin, cos, pi, sqrt, log, array, random, sign from numpy.linalg import norm import numpy as np import matplotlib.pyplot as plt import scipy.integrate as integrate #import matplotlib.animation as animation from ocelot.optics.elements imp...
ocelot-collab/ocelot
ocelot/gui/optics.py
Python
gpl-3.0
7,089
[ "CRYSTAL" ]
79c8101a32d40431f6bb1487cec5fdc204d2fa43bf1994dda82a8861f698601c
#!/usr/bin/env python "Check documentation and input variables" from __future__ import division, print_function, absolute_import #unicode_literals, import sys import os import os.path import glob import re def usage(): print("\n Usage: docchk \n ") def abinit_test_generator(): def test_func(abenv): "Chec...
jmbeuken/abinit
abichecks/scripts/docchk.py
Python
gpl-3.0
8,508
[ "ABINIT" ]
84a63192cf268487011fb5469d7f70a3c8a163367a4f179ac17d4ccc658fdcf0
''' ''' from __future__ import print_function import shutil from os.path import dirname, exists, join, realpath, relpath import os, re, subprocess, sys, time import versioneer # provide fallbacks for highlights in case colorama is not installed try: import colorama from colorama import Fore, Style def ...
Ziqi-Li/bknqgis
bokeh/_setup_support.py
Python
gpl-2.0
15,276
[ "GULP" ]
85a11e7e94e51856b150f829b5ead504ce100e8bdf20b24af701e4d7bf9168f3
######################################################################## # $HeadURL $ # File: ListTestCase.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2011/01/17 08:17:58 ######################################################################## """.. module:: ListTestCase Test cases for DIRAC.Core.Utilities.L...
Sbalbp/DIRAC
Core/Utilities/test/ListTestCase.py
Python
gpl-3.0
5,481
[ "DIRAC" ]
7437d5212a9da7f376c71cb92848872581be7a113e300063bf6e99dcefcc2981
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 3: Deep Learning and Neural Networks Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2015 by Jeff Heaton Licensed under the Apache License, V...
trenton3983/Artificial_Intelligence_for_Humans
vol3/vol3-python-examples/lib/aifh/rbf_network.py
Python
apache-2.0
4,920
[ "Gaussian", "VisIt" ]
fe4f72c81566284170429661905f91d8e114899205d0bc69da196385d7f2f021