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 py import sys import pytest class CommonFSTests(object): def test_constructor_equality(self, path1): p = path1.__class__(path1) assert p == path1 def test_eq_nonstring(self, path1): p1 = path1.join('sampledir') p2 = path1.join('sampledir') assert p1 == p2 d...
asajeffrey/servo
tests/wpt/web-platform-tests/tools/third_party/py/testing/path/common.py
Python
mpl-2.0
16,410
[ "VisIt" ]
784ae43f0e784f384f9a1552fcd1399245841c0d542dc062bf273393376f8f28
#!/usr/bin/env python # encoding: utf-8 # PYTHON_ARGCOMPLETE_OK # === IMPORTANT ==== # NOTE: In order to support non-ASCII file names, # your system's locale MUST be set to 'utf-8' # CAVEAT: DOESN'T seem to work with proxy, the underlying reason being # the 'requests' package used for http communication...
liuycsd/bypy
bypy/bypy.py
Python
mit
111,744
[ "VisIt" ]
0fe88c92c12aef07620d4490c92c5f8ed12ba0fc9c65584aaa5c975e1f993b14
# proxy module from __future__ import absolute_import from mayavi.version import *
enthought/etsproxy
enthought/mayavi/version.py
Python
bsd-3-clause
83
[ "Mayavi" ]
7602a2343d7c445e720c1be6d0988731f35242e21c78dc539819674dfcde6347
""" A script for updating the patient organization of a user. This is a manage.py command. Run with --help for documentation. Example usage: To run on localhost: > manage.py print_all_visits --org maventy To run on production: > manage.py print_all_visits --org maventy --remote """ import logging from optparse im...
avastjohn/maventy_new
healthdb/management/commands/print_all_visits.py
Python
bsd-3-clause
1,191
[ "VisIt" ]
b5f51d2f99070d651de5c6b067f4b06da289337bf297590a8f22d72c57b71abc
import numpy import sys from mmdlab.datareader import readfile_metgas_boxes from mmdlab.utils import showable from mmdlab.utils import saveimg from mmdlab.utils import offscreen from mmdlab.utils import init_mlab_scene from mayavi import mlab import time import pylab from numba import jit from numba import float64, ...
detorto/mdvis
src/draw_points.py
Python
mit
1,207
[ "Mayavi" ]
d415c92a54156cb7918f297d554e6644ac03d7691dc4dfb6c81e59cfea9e2d61
#!/usr/bin/env python import os import re from os import path from subprocess import check_call import logging import tempfile from contextlib import closing import multiprocessing MIN_SCORE = 0.01 #Fitness functions #All fitnesses need to be > 0 and positive for selection functions to work! class VinaFitness(object...
fergaljd/pep_ga
fitness/vina_fitness.py
Python
gpl-2.0
5,643
[ "Pybel" ]
1ab953b2ee28f67794179fa24fbd0a69ca10a06cd5c1bbde21ed234c7a205272
import hyperchamber as hc import numpy as np import torch from .base_distribution import BaseDistribution from ..gan_component import ValidationException from torch.distributions import uniform TINY=1e-12 class UniformDistribution(BaseDistribution): def __init__(self, gan, config): BaseDistribution.__ini...
255BITS/HyperGAN
hypergan/distributions/uniform_distribution.py
Python
mit
2,450
[ "Gaussian" ]
c8dcc10a0f52712fc26353188f53de245ad1588ac34d48466cba80d03ab8a07f
# Copyright (c) 2012 - 2014 the GPy Austhors (see AUTHORS.txt) # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ..core import SparseGP from ..inference.latent_function_inference import VarDTC from .. import kern from .. import util class SparseGPCoregionalizedRegression(SparseGP): ...
SheffieldML/GPy
GPy/models/sparse_gp_coregionalized_regression.py
Python
bsd-3-clause
3,030
[ "Gaussian" ]
fca0000996f271742608de7df4d683aa8f473e94d9a9aad0447ea7e8d7584339
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # startstore - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms o...
heromod/migrid
mig/shared/functionality/startstore.py
Python
gpl-2.0
1,022
[ "Brian" ]
78da60f625b348fe3c85e210c970f8def72b9593fd39f18123ee5ba25efdb66a
""" Just listing the possible Properties This module contains list of Properties that can be assigned to users and groups """ #: A host property. This property is used:: #: * For a host to forward credentials in a DISET call TRUSTED_HOST = "TrustedHost" #: Normal user operations NORMAL_USER = "NormalUser" #: CS Admin...
DIRACGrid/DIRAC
src/DIRAC/Core/Security/Properties.py
Python
gpl-3.0
1,966
[ "DIRAC" ]
16f18959c83e0b01c375e150c3198333b5a91c31a2052e785b75abade1e1e06e
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # statusallexes - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the term...
heromod/migrid
mig/cgi-bin/statusallexes.py
Python
gpl-2.0
1,129
[ "Brian" ]
c0f3624ba27b3b85b7f0e46881f21ec722072a39751d5f20050b1c85b25b001f
#!/usr/bin/env python # # Copyright 2016 The AMP HTML 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 # # Unl...
nexxtv/amphtml
validator/js/webui/build.py
Python
apache-2.0
5,597
[ "GULP" ]
570a7ec570a42c866648fe99fa252e204ba9997b05e6175e3e70e761ccd4d173
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
sjsucohort6/openstack
python/venv/lib/python2.7/site-packages/openstack/object_store/v1/_proxy.py
Python
mit
10,117
[ "Brian" ]
2de35ae42f0a96092b44011c64301b761b68942a1461eb3717ce97b5368bda15
#!/usr/bin/python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2014 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published ...
Freeseer/freeseer
src/freeseer/tests/frontend/controller/test_validate.py
Python
gpl-3.0
3,391
[ "VisIt" ]
04b595870dab985632665a7c1bdee900b28d9fd790dae3c602e8c193d3fc81df
# coding: utf-8 """ This module defines the last object to be created during the picking, i.e. the locus. """ from typing import Union, Dict, List, Set import collections import itertools import operator from collections import defaultdict import pysam from ..transcripts.pad import pad_transcript from ..transcripts.tr...
lucventurini/mikado
Mikado/loci/locus.py
Python
lgpl-3.0
64,917
[ "pysam" ]
53bd6d920a694e1159550534f4c9ee3f759216ab4165cb559e00a9d9636e2496
#!/usr/bin/env python # # threat_note v3.0 # # Developed By: Brian Warehime # # Defense Point Security (defpoint.com) # # October 26, 2015 # # import argparse import csv import hashlib import io import r...
brianwarehime/threat_note
threat_note/threat_note.py
Python
apache-2.0
39,764
[ "Brian" ]
5a687a25373758069aaded8f835ae03464f45c0f4daecdaea829240f555fe436
# MS STRING - NAMD # ------------------------------------- # The main file for the python script that runs MS string calculations using NAMD # as the engine. # Jeremy Tempkin # 11/6/13 #----------IMPORT------------ import sys import time import copy import numpy as np from subprocess import * from fileIO import * # ...
jtempkin/enhanced-sampling-toolkit
est/string_method/main.py
Python
mit
20,185
[ "CHARMM", "NAMD" ]
f521bb968623661a92fd93dbc12d25fad040d6c6e081d135a7a41629f88fa732
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines Entry classes for containing experimental data. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Pi...
gmatteo/pymatgen
pymatgen/entries/exp_entries.py
Python
mit
2,827
[ "pymatgen" ]
2f3ee86096ff0f2d6018f316a355f2db67fed15ba80ed123f4b6b42e113495b9
import matplotlib.pyplot as plt import numpy as np from sklearn.preprocessing import RobustScaler from sklearn.preprocessing import StandardScaler from sklearn.model_selection import GridSearchCV # classifiers from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors import RadiusNeighborsClassifier fr...
alod83/osiris
srp/train.py
Python
mit
10,250
[ "Gaussian" ]
a067ab9b5114e26c73822fdd59292c2f29533875dde0e359fd25ab2ab4c627f8
import logging import urllib from collections import defaultdict from lxml import html from django.conf import settings from django.core.context_processors import csrf from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse from django.contrib.auth.models import User, Anonymo...
altsen/diandiyun-platform
lms/djangoapps/wechat/views.py
Python
agpl-3.0
47,026
[ "VisIt" ]
e24c635006ae55b707e6101fc5ce4880c58a7414f63752374a352d527c5c4a2c
SIMCACHE = { 'a': 0x0cc175b9c0f1b6a831c399e269772661, 'b': 0x92eb5ffee6ae2fec3ad71c777531578f, 'c': 0x4a8a08f09d37b73795649038408b5f33, 'd': 0x8277e0910d750195b448797616e091ad, 'e': 0xe1671797c52e15f763380b45e841ec32, 'f': 0x8fa14cdd754f91cc6554c9e71929cce7, 'g': 0xb2f5ff47436671b6e533d8dc3614845d, 'h': 0x2510c39011c5b...
likaiguo/simhashpy
simhash/simcache.py
Python
apache-2.0
785,241
[ "ADF", "ASE", "BWA", "CDK", "EPW", "Elk", "MOE", "VMD", "VTK", "xTB" ]
4e21ea89f55a4909c25b7ce7773ec56bb800b14818304c53ffb9054e97dec50c
# -*- coding: utf-8 -*- # Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
FedoraScientific/salome-hexablock
doc/test_doc/extrudeQuad/extrude_quad.py
Python
lgpl-2.1
2,051
[ "VTK" ]
af989352d4ba19a56b9dd124cd525e66e1ef2d21e9a9cae7be18db160d096326
""" Test courseware search """ import os import json from nose.plugins.attrib import attr from ..helpers import UniqueCourseTest from ...pages.common.logout import LogoutPage from ...pages.studio.utils import add_html_component, click_css, type_in_codemirror from ...pages.studio.auto_auth import AutoAuthPage from ......
dkarakats/edx-platform
common/test/acceptance/tests/lms/test_lms_courseware_search.py
Python
agpl-3.0
7,300
[ "VisIt" ]
7d184558e55567577b4c94957f62e56b9453bad9a5d3dfb8fbccff31d941df84
# ImageNet classes # Taken from: # https://gist.githubusercontent.com/yrevar/942d3a0ac09ec9e5eb3a/raw/238f720ff059c1f82f368259d1ca4ffa5dd8f9f5/imagenet1000_clsidx_to_labels.txt IMAGENET_CLASSES = \ {0: 'tench, Tinca tinca', 1: 'goldfish, Carassius auratus', 2: 'great white shark, white shark, man-eater, man-eating s...
Britefury/deep-learning-tutorial-pydata2016
imagenet_classes.py
Python
mit
30,763
[ "Bowtie", "ESPResSo", "Jaguar", "ORCA" ]
31ab36be5fefad39f78591ac37cc345943f3d7a51c00a77dd11dfefd9861bb3c
# Copyright (C) 2016 # Max Planck Institute for Polymer Research # # 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 Licens...
fedepad/espressopp
src/tools/prepareComplexMolecules.py
Python
gpl-3.0
6,805
[ "ESPResSo", "Gromacs" ]
fd4fec37ca880c6025d917ba42f43c5fe100d2340a5ad1dd11fe72226ba7b285
""" Tests for geography support in PostGIS """ from __future__ import unicode_literals import os from unittest import skipUnless from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.geos import HAS_GEOS from django.contrib.gis.measure import D from django.contrib.gis.tests.utils import postgis from dj...
diegoguimaraes/django
django/contrib/gis/tests/geogapp/tests.py
Python
bsd-3-clause
4,650
[ "VisIt" ]
ebf604b453b4f718ce53a93907817a86cf397d70c4ef7ed25aab248b1d2afbed
import shutil import os import mdtraj as md from openmoltools.utils import import_, enter_temp_directory, run_antechamber, create_ffxml_file import logging logger = logging.getLogger(__name__) logging.basicConfig(level=logging.DEBUG, format="LOG: %(message)s") # Note: We recommend having every function return *copie...
Clyde-fare/openmoltools
openmoltools/openeye.py
Python
gpl-2.0
15,515
[ "MDTraj", "OpenMM" ]
834f0dfaedd002bc571ad28de77c458678a14ede92302473259ac54829bf5289
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either...
rmfitzpatrick/ansible
lib/ansible/executor/module_common.py
Python
gpl-3.0
40,314
[ "VisIt" ]
281a8c97eafdfa563da80b4dd3c3ebc7090efc799ec895c3c903b58bee8f7d94
#! /usr/bin/env python ''' hmmerformat.py takes input hmmscan output files (if using --domtblout option in hmmscan) and converts them to readable HTML contact: jonathan.tietz@gmail.com ''' # import modules import csv, re, os, math, argparse, operator from Bio import Entrez, Seq, SeqIO # BioPython ...
jtietz1/bioinf
hmmerformatdom.py
Python
gpl-3.0
10,154
[ "BLAST", "Biopython" ]
527c6c8132d269ad44313eba8360ccfa0f2c3522fd27714a77e39124859769c0
"""Displays ImageData efficiently. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2007, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance, Bool, on_trait_change, \ Property from traitsui.api import View, Group, Item from tvtk.api impo...
dmsurti/mayavi
mayavi/modules/image_actor.py
Python
bsd-3-clause
4,083
[ "Mayavi", "VTK" ]
d1fe7317490429ba8029fad1d02a824abccae374c007c833704f56b6dcab3765
""" climatology2.py Compute a multi-epoch (multi-day) climatology from daily SST Level-3 grids. Simple code to be run on Spark cluster, or using multi-core parallelism on single machine. """ import sys, os, urlparse, urllib, re, time import numpy as N import matplotlib matplotlib.use('Agg') import matplotlib.pylab ...
dataplumber/nexus
climatology/clim/climatology2.py
Python
apache-2.0
21,756
[ "Gaussian", "NetCDF" ]
d11b51e3d1489668f5e25c569fec6580ad2b248a7cf5c0b6d1c49d6f100a8def
#!/usr/bin/env python3 # ver 0.1 - coding python by Hyuntae Jung on 2/11/2017 # ver 0.2 - support pdb and dcd files for openmm on 5/8/2017 # ver 0.3 - support gro trajectory files for Monte Carlo on 6/6/2017 import argparse parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatt...
jht0664/Utility_python_gromacs
python/select-groups-dist.py
Python
mit
7,784
[ "MDAnalysis", "OpenMM" ]
1f8296477f22ce6c10d40a920f705c540266f910e265e6d384af2e4db62bf218
from DIRAC.AccountingSystem.private.Policies.JobPolicy import JobPolicy as myJobPolicy gPoliciesList = {"Job": myJobPolicy(), "WMSHistory": myJobPolicy(), "Pilot": myJobPolicy(), "Null": False}
DIRACGrid/DIRAC
src/DIRAC/AccountingSystem/private/Policies/__init__.py
Python
gpl-3.0
195
[ "DIRAC" ]
319ffb254dbe860471c7d61dbc8df95b5dfb61bfc432dfbdaa4063a5f93c739a
""" ast ~~~ The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and allows modifications of it. ...
FFMG/myoddweb.piger
monitor/api/python/Python-3.7.2/Lib/ast.py
Python
gpl-2.0
12,575
[ "VisIt" ]
280782a871e047aa888ac4b5ca06894f8ea892f2842be76249b9f9ffb2ff8fac
# -*- coding: utf-8 -*- # # Copyright (C) 2009-2013 Red Hat, Inc. # This file is part of python-fedora # # python-fedora 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 Lice...
fedora-infra/python-fedora
fedora/client/proxyclient.py
Python
lgpl-2.1
22,822
[ "VisIt" ]
ac45b62a4a920eb0744c5203f8ae12e76cb9b933d0f8f2de0af21aa7daa8ea7a
# $Id$ # # Copyright (C) 2014 Seiji Matsuoka # # @@ 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. # from rdkit.Chem.Draw.canvasbase import CanvasBase f...
soerendip42/rdkit
rdkit/Chem/Draw/qtCanvas.py
Python
bsd-3-clause
3,963
[ "RDKit" ]
93579aa271037017c343c253280f140460b89290156431bdaec9cd4347a83b8c
# coding: utf-8 """ Works for Abinit: """ from __future__ import unicode_literals, division, print_function import os import shutil import time import abc import collections import numpy as np import six import copy from six.moves import filter from monty.collections import AttrDict from monty.itertools import chunks...
Dioptas/pymatgen
pymatgen/io/abinitio/works.py
Python
mit
44,400
[ "ABINIT", "Gaussian", "NetCDF", "pymatgen" ]
b5c58aa0b3b3e58cabb88f7d741bdd8f7b03f7d644ed112fe78bc3b04966cac7
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A convenience script engine to read Gaussian output in a directory tree. """ from __future__ import division, print_function __author__ = "Shyue Ping Ong" __copyright__ = "Copyright...
nisse3000/pymatgen
pymatgen/cli/gaussian_analyzer.py
Python
mit
3,347
[ "Gaussian", "pymatgen" ]
6c6159a9ecd364a514588e4c3343676a9cf156fe8f532eb86db874cb252c3e3a
# # This file is a part of Siesta Help Scripts # # (c) Andrey Sobolev, 2013 # import numpy as np from shs.geom import r from abstract import OneTypeData, InteractingTypesData class VAFData(OneTypeData): """ Get VAF of evolution (type-wise) NB: As it uses only one cell vector set, when calculating VAF for...
ansobolev/shs
shs/data/per_type.py
Python
mit
6,972
[ "SIESTA" ]
94164bdcf5e3f20ae33dcc168df28091a631072f7ab00f45001e132f613dbb65
import os import unittest import tempfile from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta import pytest import pytz from pyaxiom.netcdf.grids import Collection import logging from pyaxiom import logger logger.level = logging.INFO logger.addHandler(logging.StreamHandler()) ...
ocefpaf/pyaxiom
pyaxiom/tests/test_netcdf_collection.py
Python
mit
9,573
[ "NetCDF" ]
683ae6f092d24a9517d8fb26c220dbb269decd464d08db244e1167e93b97d1f9
''' synbiochem (c) University of Manchester 2015 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=too-many-public-methods import unittest import synbiochem.utils.chem_utils as chm_util class Tes...
synbiochem/synbiochem-py
synbiochem/utils/test/test_chem_utils.py
Python
mit
1,308
[ "VisIt" ]
ab128ed42c04977d6fa27b1964504fbf00cacf4d14b51e745eb909c4d6127741
""" Alternation module Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ # Imports import inspect import types import collections import pickle from pycsp.parallel.guard...
runefriborg/pycsp
pycsp/parallel/alternation.py
Python
mit
11,461
[ "Brian" ]
d299d49cd8b1595b28606faf22d5223de751dfcf01d4435012d3314cf2078187
#!/usr/bin/env python """ Convert data from Genbank format to GFF. Usage: python gbk_to_gff.py in.gbk > out.gff Requirements: BioPython:- http://biopython.org/ helper.py : https://github.com/vipints/GFFtools-GX/blob/master/helper.py Copyright (C) 2009-2012 Friedrich Miescher Laboratory of the Max Pla...
vipints/oqtans
oqtans_tools/GFFtools/0.2/gbk_to_gff.py
Python
bsd-3-clause
6,837
[ "Biopython" ]
06b5a6543aa7a346746f6d269acbc4718f30e21387591388e14eb8a4dc1e5564
""" Order Steps Steps file for Order.feature """ from os import getenv import json import requests from behave import * from compare import expect, ensure from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from ...
DevOps17-Bravo/orders
features/steps/orders_steps.py
Python
apache-2.0
5,302
[ "VisIt" ]
44453d0c84a3087d7e53a8c6ec0d99abad3b76cb763e804c2f8dff25574461cc
""" Forest of trees-based ensemble methods. Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls th...
bnaul/scikit-learn
sklearn/ensemble/_forest.py
Python
bsd-3-clause
95,540
[ "Brian" ]
858c76f48626546183deb057fe41ba472f17ff25db4e1d5f4fbf402d5be07307
from ase import * from hotbit import Hotbit from ase.lattice.cubic import FaceCenteredCubic from hotbit.test.misc import default_param import pylab as pl from box import Atoms for SCC in [True,False]: timings=[] norbs=[] sccs=['non-SCC','SCC'][SCC] for nx in [1,2,3,4,5]: for ny in [1,2,3,4,5]...
pekkosk/hotbit
hotbit/test/size2.py
Python
gpl-2.0
1,736
[ "ASE" ]
ddcd71ca679fecfb16e119fbd3fe24b9d3096bc08c6cb8b8cf315d19b0d82713
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. # Credit to Dr. Shyue Ping Ong for the template of the calculator """ This module implements a TEM pattern calculator. """ import json import os from collections import namedtuple from fractions import Fraction from functools...
vorwerkc/pymatgen
pymatgen/analysis/diffraction/tem.py
Python
mit
27,037
[ "CRYSTAL", "pymatgen" ]
dec4eb1dbd6dd8fdeea7ef20de0a2956c99244de93c5b7f15393fa8c59c91bd6
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi4/psi4
psi4/driver/p4util/prop_util.py
Python
lgpl-3.0
4,828
[ "Psi4" ]
35e96927a29f760ba67b76e91eb3538880f5c88aefb834f181aa054810a6938f
''' Volume filter This example script shows how to filter a volume using the PySPIDER interface. This script can be used to lowpass filter a volume or, alternatively, bandpass filter the volume using SPIDER commands. Note that the code contains a "comment", a line starting with a `#`. This comment explains the code ...
ezralanglois/arachnid
arachnid/snippets/pyspider/filter_volume.py
Python
gpl-2.0
4,176
[ "Gaussian" ]
eee892393d7056da56a21107557d4038f9908b7e53e274cac62fd63fcbe36d2b
# Copyright 2018 Brian May # # This file is part of python-tldap. # # python-tldap is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
brianmay/python-tldap
tldap/dict.py
Python
gpl-3.0
4,084
[ "Brian" ]
d2a322ed0338aa1094c4e291337bc52ec469341fa8a48cca161428f597f404fd
""" The geometric sector decomposition routines. """ from .common import Sector, refactorize from ..polytope import convex_hull, triangulate, Polytope from ..algebra import Polynomial, ExponentiatedPolynomial, Product import itertools, numpy as np, sympy as sp # *********************** primary decomposition *******...
mppmu/secdec
pySecDec/decomposition/geometric.py
Python
gpl-3.0
14,294
[ "DIRAC" ]
1211476378b4c2df977fe92bbb4f65c6066d5aa580cba3f5218284bd4c961a7a
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
wolfram74/numerical_methods_iserles_notes
venv/lib/python2.7/site-packages/IPython/core/interactiveshell.py
Python
mit
138,880
[ "VisIt" ]
7f0fba82cc8fc6179acb96cce454fff68c60e5f2fc8a0057c3f965fa58f4acc3
#!/usr/bin/env python import boto import boto.sqs import boto.sqs.jsonmessage import os import iris import json import time import sys sys.path.append(".") from config import manifest class Job(object): """ message should be URI to OpenDAP """ def __init__(self, message): body = json.loads(message.g...
met-office-lab/image-service-scheduler
scheduler.py
Python
lgpl-3.0
4,111
[ "NetCDF" ]
6bd0475c9cc3b1d472074bc510528866fef2a311a45c4492232e11620444b664
from __future__ import (absolute_import, print_function) from mantid.kernel import VMD import math import unittest class VMDTest(unittest.TestCase): def test_default_construction_gives_object_with_single_dimension(self): one = VMD() self.assertEquals(1, one.getNumDims()) def test_constructor...
dymkowsk/mantid
Framework/PythonInterface/test/python/mantid/kernel/VMDTest.py
Python
gpl-3.0
4,558
[ "VMD" ]
64c0423ccdf391dfccfa9e4c8a1f8882711895462e36912bc778c406ba858eca
# Load dependencies import ovito.io.particles # Load the native code module import OpenBabelPlugin # Inject selected classes into parent module. ovito.io.particles.OpenBabelImporter = OpenBabelPlugin.OpenBabelImporter ovito.io.particles.CIFImporter = OpenBabelPlugin.CIFImporter
srinath-chakravarthy/ovito
src/plugins/openbabel/python/ovito/io/particles/openbabel/__init__.py
Python
gpl-3.0
281
[ "OVITO" ]
9b09621712fcb400506bcb29fcf32c0ec7ebe5591a2bf4882018ac7dbb997843
# -*- coding: utf-8 -*- # # This file is part of Invenio-Query-Parser. # Copyright (C) 2014, 2015, 2016 CERN. # # Invenio-Query-Parser 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 # ...
tiborsimko/invenio-query-parser
invenio_query_parser/walkers/pypeg_to_ast.py
Python
gpl-2.0
4,234
[ "VisIt" ]
5f4d357283b0d20ed76920c17c6b9432b8cc19e9681d4d398077752da07d992a
# Copyright (C) 2017 Matteo Franchin # # This file is part of Pyrtist. # Pyrtist 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 late...
mfnch/pyrtist
pyrtist/lib2d/cairo_cmd_exec.py
Python
lgpl-2.1
14,883
[ "Gaussian" ]
a5ebf2790ac787b31df4ee926c4354082764e8e86c0d596e2f941ed973cc04e4
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ import json import os import pytest from osbs.constants import DEFAULT_NAMESPACE from osbs.cli.capture import setup_json_capture from tests....
jpopelka/osbs-client
tests/cli/test_capture.py
Python
bsd-3-clause
1,581
[ "VisIt" ]
3a869687409c76d2991950535ab288daed185e1f902feac135eb6e89e18133df
import ast as pyast import re import lxml.etree as ET from calmjs.parse import asttypes as ast from lxml.builder import E invalid_unicode_re = re.compile(u"""[\u0001-\u0008\u000b\u000e-\u001f\u007f]""", re.U) surrogate_unicode_re = re.compile(u"[\\ud800-\\udbff][\\udc00-\\udfff]", re.U) def unescape_string(input_s...
redapple/js2xml
js2xml/xmlvisitor.py
Python
mit
14,395
[ "VisIt" ]
dd151b6d32ba33325c349b363f26bb3a8030389f233955903ffea8debc041689
from __future__ import print_function from builtins import str import os import unittest import shutil import yaml from sherlock.utKit import utKit from fundamentals import tools from os.path import expanduser home = expanduser("~") packageDirectory = utKit("").get_project_root() settingsFile = packageDirectory + "/te...
thespacedoctor/sherlock
sherlock/tests/test_transient_catalogue_crossmatch.py
Python
mit
11,473
[ "Galaxy" ]
a4c07f37175b46015454a6a74cf0a242905207fe6856133a83c6b43c32dbab2f
""" This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well as testing instructions are located at http://amzn.to/1LzFrj6 For additional samples, visit the Alexa Skills Kit Getting Started guide at http://amzn.to/1LG...
ItsNotABugItsAFeature/transcribe
alexa/startStop.py
Python
mit
8,405
[ "VisIt" ]
7d1f3778e11562da6d43dbe78a8e412e71b8bcce25fdf6cdf6031b37ef386b54
"""Test class for Remote Execution Management UI :Requirement: Remoteexecution :CaseAutomation: Automated :CaseLevel: Acceptance :CaseComponent: RemoteExecution :Assignee: pondrejk :TestType: Functional :CaseImportance: High :Upstream: No """ from datetime import datetime from datetime import timedelta from tim...
rplevka/robottelo
tests/foreman/cli/test_remoteexecution.py
Python
gpl-3.0
32,749
[ "Galaxy" ]
c441ee6de0dd5cbc0a8a6ccd4243383b51d15aae59df22131fcdeab798f77eff
"""Find and deal with signatures in biological sequence data. In addition to representing sequences according to motifs (see Motif.py for more information), we can also use Signatures, which are conserved regions that are not necessarily consecutive. This may be useful in the case of very diverged sequences, where sig...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/NeuralNetwork/Gene/Signature.py
Python
gpl-2.0
8,956
[ "Biopython" ]
4217be3f0035eaf633df308332d926050ac6c357a302a24b1afdc7ee55f0c9f8
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi-rking/psi4
psi4/driver/procrouting/empirical_dispersion.py
Python
lgpl-3.0
14,773
[ "Psi4" ]
0dba6b336bfa873bf8d899e581f8237bbf89b48969cabdfbb2f9a63c14f2bf4b
""" Test atomic coordinates and neighbor lists. """ import os import logging import numpy as np import unittest from deepchem.utils import conformers from deepchem.feat.atomic_coordinates import get_coords from deepchem.feat.atomic_coordinates import AtomicCoordinates from deepchem.feat.atomic_coordinates import Neighb...
ktaneishi/deepchem
deepchem/feat/tests/test_atomic_coordinates.py
Python
mit
7,419
[ "RDKit" ]
ade1f98f8dfcb8d2e083b82cae8cae41624ae182bf40269618d63465f829450c
import k3d from k3d.headless import k3d_remote, get_headless_driver import pathlib import vtk path = pathlib.Path(__file__).parent.resolve() def generate(): plot = k3d.plot(screenshot_scale=1.0) headless = k3d_remote(plot, get_headless_driver(), width=320, height=226) model_matrix = ( 1.0, 0.0, ...
K3D-tools/K3D-jupyter
docs/source/showcase/VTK_polydata.py
Python
mit
841
[ "VTK" ]
3b2c2c07c77fac0acc3885535988fdcc574923bae3d81f21bffb422d68b2507e
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkThreshold(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.vtkT...
nagyistoce/devide
modules/vtk_basic/vtkThreshold.py
Python
bsd-3-clause
486
[ "VTK" ]
1cab1abab4027d2e9c7a469a0314b3a9cc6ded6b8d070b809c91b12953be9dec
import datetime import os import sys from unittest import mock from datetime import timedelta import pytest from freezegun import freeze_time from click.testing import CliRunner from khal.cli import main_khal, main_ikhal from .utils import _get_text, _get_ics_filepath class CustomCliRunner(CliRunner): def __in...
hobarrera/khal
tests/cli_test.py
Python
mit
28,017
[ "VisIt" ]
98a8fa851acd829589cca909d0ff831c352c2d94855b5baa6798e248dc1b54be
from argparse import ArgumentParser from bioblend import galaxy def extract_users(user_list, all_users): selected_users = [] for old_user in user_list: for user in all_users: if user[u'email'] == old_user: selected_users.append(user) continue return sel...
ARTbio/tools-artbio
scripts/helper_scripts/purge_old_user_histories.py
Python
mit
2,372
[ "Galaxy" ]
2ccefd818620d17be5ba5c038f4edf780202df1875f0bb204ec839c3f2442fc0
#!/usr/bin/python """ Copyright 2015 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
html/postFilter.py
Python
gpl-3.0
6,748
[ "Galaxy" ]
9f3ee34a5346b309c3d75542baf6d2ac0db877d79f3d3e3f185db2040799090a
"""Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2014 Benjamin Peterson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including with...
bp-kelley/rdkit
rdkit/six.py
Python
bsd-3-clause
23,799
[ "RDKit" ]
52258e9a01aa8214c31991fdc0641af7b2d524341476afc4dedf87e6427bce56
import numpy as np from tqdm import tqdm import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from sklearn.preprocessing import PolynomialFeatures from sklearn import linear_model import statsmodels.nonparametric.smoothers_lowess as sm import spectralspac...
npricejones/spectralspace
spectralspace/analysis/empca_residuals.py
Python
bsd-3-clause
51,257
[ "Gaussian" ]
81be6523160517999efbc9002e9654da670dc613e2b3a7465e0654911aa9252a
import os import pyemu import pandas as pd import numpy as np if not os.path.exists("temp"): os.mkdir("temp") def add_base_test(): pst = pyemu.Pst(os.path.join("pst", "pest.pst")) num_reals = 10 pe = pyemu.ParameterEnsemble.from_gaussian_draw(pst,num_reals=num_reals) oe = pyemu.ObservationEnsembl...
jtwhite79/pyemu
autotest/en_tests.py
Python
bsd-3-clause
22,500
[ "Gaussian" ]
5e5d99b6415154d8baa259569d656f201b24080982a16917d424d82b65a14793
""" Codes for Canstrat ASCII files; only used by canstrat.py. :copyright: 2016 Agile Geoscience :license: Apache 2.0 """ # Codes for rtc. rtc_txt = """X ROC-C_X ROCKTP_IGNEB ROCK TYPE 1 Igneous Basic N ROC-C_N ROCKTP_IGNEA ROCK TYPE 2 Igneous Acidic Z ROC-C_Z ROCKTP_META ROCK TYPE 3 Metamorphic V ROC-C_V ROCKTP_VOLC R...
agile-geoscience/striplog
striplog/canstrat_codes.py
Python
apache-2.0
5,071
[ "CRYSTAL" ]
7f1bc1cb742d943db550032a2359de27bbd93fbeff133236d6ee77ec0a5185d5
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/driver/schema_wrapper.py
Python
lgpl-3.0
22,829
[ "Gaussian", "Psi4" ]
aeaa2f659cf39b5b1b88a875862165d41b82928c8d4cdcab9a7ee481e38f5d49
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
sonnyhu/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
41,818
[ "Brian" ]
ca327c95ec1bb92f67e779ad2d437772ffa378c55510e0850e174c77f34290ec
# Principal Component Analysis Code : from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud from pylab import * import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import ro...
tapomayukh/projects_in_python
classification/Classification_with_kNN/Single_Contact_Classification/Scaled_Features/best_kNN_PCA/objects/test11_cross_validate_objects_1200ms_scaled_method_iv.py
Python
mit
4,916
[ "Mayavi" ]
1ffd4a6743c897021833c8ba69d83ac76a132c9cd7e21606d3b1fa296d74a593
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, date from lxml import etree import time from openerp import api from openerp import SUPERUSER_ID from openerp import tools from openerp.osv import fields, osv from openerp.tools.translate ...
bplancher/odoo
addons/project/project.py
Python
agpl-3.0
53,906
[ "VisIt" ]
1ab893ee6f2ad42571809356a3268ef63f20569086414c46e27a3f7de9213d3d
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-05 10:20 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('visit', '0001_initial'), ...
anhelus/emw-museum-output
visit/migrations/0002_auto_20160605_1220.py
Python
gpl-3.0
563
[ "VisIt" ]
a95be434ba8d3cfb201087df875595c80e5b94644d00536316f9da555da3886a
import numpy as np import os import math from skimage.io import imread from matplotlib.colors import BoundaryNorm from matplotlib.ticker import MaxNLocator import scipy.stats as stats import matplotlib.pyplot as plt def create_isotropic_gaussian_twindataset(pos, amount_data, variance, sep_vec): """ Creates two...
mahieke/maschinelles_lernen
a3/util/__init__.py
Python
mit
16,551
[ "Gaussian" ]
d1bdd6f960284dd63d852724db99fbacab7f6b05f258e021cbb0dca207628659
#!/usr/bin/env python import numpy as np import matplotlib # matplotlib.use("Agg") import matplotlib.pyplot as plt import math import scipy.signal """ Usage: som = Planar(3,20,10) ; set other parameters? for i in range(0,1000): som.train([red,green,blue]) self.clasify([0.1,0.4,0.5]) """ cl...
karolciba/playground
kohonen/planar.py
Python
unlicense
5,289
[ "Gaussian" ]
1d4afa59504d4f42f0c1380e235b953dd6a2dd7504b4a7aa80048f846bebba25
""" .. versionadded:: 0.2 .. versionchanged:: 0.4 This function generates random steps according to given width of steps and desired number of steps. Example Usage ================== Simplest example (10 steps with width 50 samples, normal distribution with unit standard deviation and zero mean) follows. .. code-bl...
matousc89/signalz
signalz/generators/random_steps.py
Python
mit
3,018
[ "Gaussian" ]
165f9386c96ee6feb80f2f22068b9c1e74657bbee94e357abcd302b887264cce
import copy as cp import logging import lib.const as C import lib.visit as v from .. import util from ..meta import class_lookup from ..meta.template import Template from ..meta.clazz import Clazz from ..meta.method import Method from ..meta.field import Field from ..meta.statement import Statement, to_statements fro...
plum-umd/pasket
pasket/rewrite/proxy.py
Python
mit
3,168
[ "VisIt" ]
d2b6221c5ab1d34225b77198ae04508eae0042c138081675c7e536f14405453f
import os.path from .action_mapper import FileActionMapper from .action_mapper import path_type from .util import PathHelper from galaxy.util import in_directory class PathMapper(object): """ Ties together a FileActionMapper and remote job configuration returned by the Pulsar setup method to pre-determine th...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/pulsar/client/path_mapper.py
Python
gpl-3.0
4,244
[ "Galaxy" ]
a65637ff661fd7171af6d2dcb66ae2b00469e2988c23cd79202b0783cb496202
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Heyo # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) a...
georgefrank/ansible-modules-extras
windows/win_nssm.py
Python
gpl-3.0
5,495
[ "ADF" ]
eb031416e654c68e4bc3c0509bf376d903e471426d9bf6ca04fec1b4398a1bc1
#!/usr/bin/env python """ Variational Bayes method to solve phylgoenetic HMM for histone modifications Need to: * Preprocess ** load each dataset ** call significant sites for each dataset (vs. one control dataset) ** save out resulting histogrammed data * Learn ** Init parameters randomly ** E step: optimize each q...
satwik77/tree-hmm
treehmm/__init__.py
Python
bsd-3-clause
65,101
[ "Gaussian", "pysam" ]
328529e71083a24cf26acda00a491d23601ca00ac6346674d72f75691b4a6d99
# Requires: # - netcdf4-python (HDF5, NetCDF-4) # - NumPy try: from netCDF4 import Dataset except ImportError: print "ERROR: netcdf4-python module not found" raise try: import os import sys import glob except ImportError: print "ERROR: os, sys or glob modules not available" raise tr...
bendudson/BOUT-1.0
tools/pylib/boutdata/collect.py
Python
gpl-3.0
7,138
[ "NetCDF" ]
f368f962c25a96f212324dac2ea2d76b3c513165bcfb42a93ea4a7827574e4b5
from typing import Optional, Set import click import copy from datetime import datetime import json import logging import os import subprocess import sys import time import urllib import urllib.parse import yaml from socket import socket import ray import psutil from ray._private.gcs_utils import use_gcs_for_bootstra...
ray-project/ray
python/ray/scripts/scripts.py
Python
apache-2.0
72,026
[ "VisIt" ]
caf9517f64a6d590b3e0fe5b8a0c6932997576cff487e8bf074d3c3549220768
# -*- coding: utf-8 -*- # Copyright: (c) 2008, Jarek Zgoda <jarek.zgoda@gmail.com> __revision__ = '$Id: models.py 28 2009-10-22 15:03:02Z jarek.zgoda $' import datetime from django.db import models from django.db.models import CASCADE from django.urls import reverse from django.conf import settings from django.cont...
jackrzhang/zulip
confirmation/models.py
Python
apache-2.0
8,199
[ "VisIt" ]
6e08fbc80b9f55a453bdb22582cad265d763efab3ec38828e7429785de2dbf5b
# coding=utf8 # # Copyright 2013 Dreamlab Onet.pl # # 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; # version 3.0. # This library is distributed in the hope that it will be useful, # bu...
tikan/rmock
src/rmock/runners/lmtp/runner.py
Python
lgpl-3.0
785
[ "VisIt" ]
2678d9a4fb55ff2f5719b77a54a7284e24094e886a08eb03d03c28fdc1bb42f7
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Implement parameter dictionaries.""" from abc import abstractmethod from collections.abc import Mapping, MutableMapping from itertools import product, combin...
joaander/hoomd-blue
hoomd/data/parameterdicts.py
Python
bsd-3-clause
19,595
[ "HOOMD-blue" ]
6a36870d7ac62c5b555a388e6ad30f11bf732d2628ce6fd108912bb6f4decd64
# Copyright (c) 2006-2013 Regents of the University of Minnesota. # For licensing terms, see the file LICENSE. import conf import g log = g.log.getLogger('ccp_stp_wrds') # This isn't a perfect implementation, but we can use different stop words # depending on what we're searching. # # Addy_Stop_Words__Annotation # ...
lbouma/Cyclopath
pyserver/util_/streetaddress/ccp_stop_words.py
Python
apache-2.0
28,632
[ "CRYSTAL", "Dalton", "Elk", "MOOSE" ]
c626dde36283601fb25ca4862a27674ad3a23d3756d5b17bda22e7cd69f7ed2a
#!/usr/bin/env python """Multithreaded interactive interpreter with GTK and Matplotlib support. WARNING: As of 2010/06/25, this is not working, at least on Linux. I have disabled it as a runnable script. - EF Usage: pyint-gtk.py -> starts shell with gtk thread running separately pyint-gtk.py -pylab [filename]...
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/mpl_examples/user_interfaces/interactive.py
Python
mit
8,150
[ "Brian" ]
f4cdc3e9e28deaa53e8d294b38b8335e4235bc12d6c4202e361e107303b45e4f
#!/usr/bin/env python ######################################## #Globale Karte fuer tests # from Rabea Amther ######################################## # http://gfesuite.noaa.gov/developer/netCDFPythonInterface.html import math import numpy as np import pylab as pl import Scientific.IO.NetCDF as IO import matplotlib as ...
CopyChat/Plotting
Python/bias.TCC.GCMs.py
Python
gpl-3.0
12,009
[ "NetCDF" ]
27b0b26d52fef5f64565682fa80cb20cb723eb7796a08c77cac6cbf9106922e8
# Author: Travis Oliphant # 1999 -- 2002 import operator import math import sys import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes import nu...
aeklant/scipy
scipy/signal/signaltools.py
Python
bsd-3-clause
145,636
[ "Gaussian" ]
fb47c14af07ff98dfc6f6dac33520725bc9e2617c1130c137bf73fe7fa63400d
""" Assorted utility functions and classes """ from os import path, listdir def is_type(typecheck, data): """ Generic type checker typically used to check that a string can be cast to int or float """ try: typecheck(data) except ValueError: return False else: return...
ben-albrecht/qcl
qcl/utils.py
Python
mit
1,829
[ "VisIt" ]
d84eccc8df51cd5be1b3105da48bedb8bec1729e5ebbf4040ac485e8d6eabdc9
""" Helpful functions for testing """ from app.models.gym_item import GymItem from app.models.gym import Gym from app.models.profile import Profile from django.contrib.auth.models import User def create_gym_item(username=None, name=None, location=None, visit=None): """ Create a Gym Item instance :param us...
Gimpneek/exclusive-raid-gym-tracker
app/tests/common.py
Python
gpl-3.0
941
[ "VisIt" ]
a1cd3f8570cc5ee53632d1f824a94daab12c73105ee9fe3a7afd131438c425f6
# coding: utf-8 # # Copyright 2012 NAMD-EMAP-FGV # # This file is part of PyPLN. You can get more information at: http://pypln.org/. # # PyPLN 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 o...
fccoelho/pypln.backend
pypln/backend/workers/extractor.py
Python
gpl-3.0
8,419
[ "NAMD" ]
f060d359db722e5322c42a92adb01be4abe88574f56313e7b72ea44b53e86663
"""Contains the parent class for Scriptlets.""" # Scriptlet.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging class Scriptlet(object): ...
spierepf/mpf
mpf/system/scriptlet.py
Python
mit
827
[ "Brian" ]
9f0ad5ac1c854e7c8bc92c81021e3498ebaa7308ecdbc48fbd22eba1a97edd95
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # LICENSE # # Copyright (c) 2010-2017, GEM Foundation, G. Weatherill, M. Pagani, # D. Monelli. # # The Hazard Modeller's Toolkit is free software: you can redistribute # it and/or modify it under the terms of the GNU Affero General Public # License ...
gem/oq-hazardlib
openquake/hmtk/tests/faults/mfd/test_characteristic.py
Python
agpl-3.0
6,251
[ "Gaussian" ]
78b06821cb56a5d69adf4cfcd709edcbe20c37143d1cde3d3a2f0f846d62b3d8