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
from django.db import connection from django.http import HttpResponse from catmaid.control.authentication import requires_user_role from catmaid.models import UserRole from rest_framework.decorators import api_view from rest_framework.response import Response class LocationLookupError(Exception): pass @api_vi...
catsop/CATMAID
django/applications/catmaid/control/transaction.py
Python
gpl-3.0
12,262
[ "NEURON" ]
4fe307a1ce2c206f23a2b06efdbf8256f40f2b2ab468eaa8864696d52820afb9
#=============================================================================== # LICENSE XOT-Framework - CC BY-NC-ND #=============================================================================== # This work is licenced under the Creative Commons # Attribution-Non-Commercial-No Derivative Works 3.0 Unported Li...
SMALLplayer/smallplayer-image-creator
storage/.xbmc/addons/net.rieter.xot.smallplayer/resources/libs/locker.py
Python
gpl-2.0
2,507
[ "VisIt" ]
2a7f4d4527ebc7cf7559660793f4fc4ce08e097be9d16c22eff6c3e73c330e01
# Copyright (c) 2017, Henrique Miranda # All rights reserved. # # This file is part of the yambopy project # from yambopy import * from netCDF4 import Dataset from math import sqrt import numpy as np from cmath import exp I = complex(0,1) ha2ev = 27.211396132 ev2cm1 = 8065.54429 abs2 = lambda x: x.real**2 + x.imag**2...
henriquemiranda/yambopy
yambopy/dbs/elphondb.py
Python
bsd-3-clause
3,462
[ "Yambo" ]
477399e5df447fdf920e4a490185ad4f557c3333318f4444ba6ef03494ed68f4
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
retrography/scancode-toolkit
src/extractcode/__init__.py
Python
apache-2.0
8,181
[ "VisIt" ]
c6fa9724283c488da454207cf3c4b2e526c51aecff80714d485ef7d299d5e5be
from __future__ import print_function from builtins import range import numpy as np from numpy import cos, sin, pi from enthought.tvtk.api import tvtk from enthought.mayavi.scripts import mayavi2 def aligned_points(grid, nz=1, period=1.0, maxshift=0.4): try: nx = grid["nx"] ny = grid["ny"] ...
kevinpetersavage/BOUT-dev
tools/pylib/boutdata/mayavi2.py
Python
gpl-3.0
3,148
[ "Mayavi" ]
f214ce2d8d8238093cbc33b11219471f13cb3056996a9c24166057fdf82418fa
#!/usr/bin/python # # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2012-2013 Jonathan Topf, Jupiter Jazz Limited # Copyright (c) 2014-2017 Jonathan Topf, The appleseedhq Organizati...
aytekaman/appleseed
scripts/rendernode.py
Python
mit
18,017
[ "VisIt" ]
36552e36a03585c18b4b6b092963c9bbce7ce3e2bcac7d2000b830a2f3a00fb2
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2019, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
biocore/qiime2
qiime2/core/type/tests/test_grammar.py
Python
bsd-3-clause
20,736
[ "scikit-bio" ]
28011fea8d88715da3190e3fee5102461734a2f2d864f42234fd146e15e1ccff
#!/usr/bin/env python import argparse import datetime import json import os import re from urllib.request import urlretrieve import yaml class PackagedAnnotationMeta(): @classmethod def from_file(cls, fname): meta = yaml.safe_load(open(fname)) return cls(meta) def __init__(self, meta_di...
davebx/tools-iuc
data_managers/data_manager_packaged_annotation_data/data_manager/install_packaged_annotation_data.py
Python
mit
4,611
[ "Galaxy" ]
3ea2520e44280d4bc54f513924a18912252c6b4c2926f0ecfd5c07b47aac942e
from __future__ import absolute_import from builtins import zip from builtins import map from builtins import str from builtins import range from builtins import object from nose.tools import (assert_equal, assert_not_equal, raises, assert_true, assert_false) from nose.plugins.skip import SkipTe...
jhprinz/openpathsampling
openpathsampling/tests/testensemble.py
Python
lgpl-2.1
108,832
[ "OpenMM" ]
94fc9c1903ef59105cf628ca1e204cb5029623f0b6e8ca49278159cd2c0126dd
""" Module with helper classes and functions. """ def assign_protein_data_to_blast_results(blast_records_in_object_and_list): """Searches data related to transcript in local database. Modify objects by assigning protein's info to transcript. """ from newtbase.models import Transcript, Blast ...
michal-stuglik/newtbase
newtbase/utils.py
Python
gpl-2.0
1,135
[ "BLAST" ]
c9d2c1b58b5665c2bc460015c598948c18cbea395ca121214e3abaca5053e889
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012-2013 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## 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...
andrebellafronte/stoq
stoqlib/database/debug.py
Python
gpl-2.0
9,291
[ "VisIt" ]
f930a6dc0f6836e2f5aa78226b53fd6dc62ec8510a67c65c61acfa4d04db6b56
from __future__ import division, absolute_import import astropy.stats import glob import math import matplotlib.pyplot as plt from matplotlib import ticker from matplotlib.ticker import FormatStrFormatter import numpy as np import os import pandas as pd from scipy import optimize,spatial ###########################...
hrichstein/Stellar_mass_env_Density
Codes/Scripts/clean_copy.py
Python
mit
75,233
[ "Galaxy" ]
09348955b895a575a069ec6799a9dab8897f28a52de2af4f515fb241ef79df1d
# -*- coding: utf-8 -*- # # test_3d_gauss.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, ...
hakonsbm/nest-simulator
topology/examples/test_3d_gauss.py
Python
gpl-2.0
2,931
[ "Gaussian" ]
fe4e45d2082d5237afd265a130f53c22891702f6d5a419b8684c4098ea5be1f5
#!/usr/bin/env python3 import itertools import logging import operator import unicodedata import regex as re from somajo import doubly_linked_list from somajo import utils from somajo.token import Token class Tokenizer(): _supported_languages = set(["de", "de_CMC", "en", "en_PTB"]) _default_language = "de...
tsproisl/SoMaJo
somajo/tokenizer.py
Python
gpl-3.0
53,985
[ "FEFF" ]
c3a3918c21fe97c77c6469deaa66194a7235ab227f5a5339a5032a7ca64fc493
import numpy as np import pytest import psi4 from .utils import compare_values # Reference data generated from Psi's dfmp2 module data = { "df-mp2 ae": np.array([[ 0, 0, 9.62190509e-03], [0, 5.49835030e-03, -4.81095255e-03], [0, -5.49835030e-03, -4.81095255e-03]]), "df-mp2 fc": np.array([...
jgonthier/psi4
tests/pytests/test_gradients.py
Python
lgpl-3.0
2,081
[ "Psi4" ]
288972dcc920481b1db104a59396298e732892d3990212ba538533992e160ce6
# IWDEV Pi Traffic lights import RPi.GPIO as GPIO import time # set GPIO Mode GPIO.setmode(GPIO.BCM) # set pin mode GPIO.setup(02,GPIO.OUT) GPIO.setup(03,GPIO.OUT) GPIO.setup(04,GPIO.OUT) # set inital pin state GPIO.output(02,False) GPIO.output(03,False) GPIO.output(04,False) # start a loop to control the lig...
qubecad/Pi_traffic_lights_IWDEV
gpio_traffic_lights.py
Python
apache-2.0
739
[ "Amber" ]
60e8d5b7d8c3cd8cd5908438a67b90aace96ea72658540f6aac54d99456cf955
from pymol.wizard import Wizard from pymol import cmd import pymol import traceback sele_prefix = "_pf_s_" sele_prefix_len = len(sele_prefix) dist_prefix = "_pf_d_" indi_sele = "_indicate_pf" class Pair_fit(Wizard): def __init__(self,_self=cmd): Wizard.__init__(self,_self) self.memor...
gratefulfrog/lib
python/pymol/wizard/pair_fit.py
Python
gpl-2.0
6,453
[ "PyMOL" ]
1a4d3d07bda26b2752868834cacf9137750d07a93690e69da2d59975787d77ff
# -*- encoding: utf-8 -*- """Functions for controlling family-wise error rate (FWER) using random field theory (RFT) techniques and drawing diagnostic plots. Author: Tuomas Puoliväli Email: tuomas.puolivali@helsinki.fi Last modified: 26th July 2018 License: Revised 3-clause BSD Source: https://github.com/puolival/mult...
puolival/multipy
multipy/rft.py
Python
bsd-3-clause
9,184
[ "Gaussian" ]
008f2c18f73c40efd79faa26a15725fe87280227bd69afc83f97a213e7c9762d
from gevent import monkey monkey.patch_all() import os import logging import logging.config from gevent.pool import Pool from lxml import etree from restkit import request from restkit.globals import set_manager from restkit.manager.mgevent import GeventManager from urlparse import urljoin from urlparse import urlpars...
kyleconroy/salesman
salesman/__init__.py
Python
mit
4,734
[ "VisIt" ]
8c3b050c9171f02153163b31b0f4c0492b961fd64cee3cdeafeb2b12a25d0059
"""Contains the various config storage classes""" # config_storage.py # Mission Pinball Framework Wizard # Written by Brian Madden, Gabe Knuth & John Marsh # Released under the MIT License. (See license info at the end of this file.) from mpf.system.utility_functions import Util class MPFConfigFile(): def __...
missionpinball/mpf-wizard
mpfwiz/config_storage.py
Python
mit
1,964
[ "Brian" ]
9b64287fa12cc5a3eac354669c36e72dcb6754e3c2de9388b1c97cc8aaedadea
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1960-2020/regrid_nC4H10_emissions_n96e_360d.py
Python
gpl-3.0
17,154
[ "NetCDF" ]
d6d8971d5b70135c5855870c6fe65a7d592611a6612dafdba029aca80bca888a
"""Setup tu build panISa program Derived from setuptools based setup module See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import ...
bvalot/panISa
setup.py
Python
gpl-3.0
6,696
[ "VisIt", "pysam" ]
b91d2983e86fcf8f49c1c3576a0523838301152e2ad551f9bbc891557c225345
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Satpy developers # # satpy 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 ...
pytroll/satpy
satpy/readers/vii_l1b_nc.py
Python
gpl-3.0
6,435
[ "NetCDF" ]
f39b5fafaaf3f3ce18c715eb3d183d07e014e60d43e46af78c888ea8968215c0
import circulartextlayout import ui layout_text = ''' ************ ************ bbbbbbbbbbbb ************ i*i*i*i*i*i* ************ ************ ''' image_list = [ ui.Image.named(i) for i in 'Rabbit_Face Mouse_Face Cat_Face Dog_Face Octopus Cow_Face'.split()] _range_12 = (.3, .34, .38, .42, .46, .5, .55, .6, .63, .7...
balachandrana/textlayout
circular_test4.py
Python
mit
1,277
[ "Octopus" ]
cfb86190242b7a30d67abf3f32fb39f3b03084697c3d71924fd870a30cd78e45
import url_file_read as provided import math import random import project4 import matplotlib.pyplot as plt protein_human = provided.read_protein(provided.HUMAN_EYELESS_URL) protein_fly = provided.read_protein(provided.FRUITFLY_EYELESS_URL) scoring_matrix = provided.read_scoring_matrix(provided.PAM50_URL) """ caluclat...
wchen1994/Alignments-of-Sequences
alignSeq/app4.py
Python
mit
5,765
[ "Firefly" ]
d365766e0a43cccc675fb79807a065460ec9a89abe7be7306c8e482934e1ea5e
from server.lib.bottle import Bottle, debug,request,route, run, redirect import json import random # use the Jinja templating system from view_helper import JINJA_ENV import urllib from google.appengine.api import urlfetch from google.appengine.ext import ndb def invoke_verify(solution,lan,tests=""): url = "http://...
lamkeewei/battleships
server/controllers/Utility.py
Python
apache-2.0
2,726
[ "Firefly" ]
4fa4cd98f24bb8bb97caf6ae8e2ac9d7333ec6d4757842bf8b3cd0b221019f35
from collections import namedtuple from bottle_utils.i18n import lazy_gettext as _ __all__ = ('LBAND', 'KUBAND', 'L_PRESETS', 'KU_PRESETS', 'PRESETS') Preset = namedtuple('Preset', ('label', 'index', 'values')) LBAND = 'l' KUBAND = 'ku' L_PRESETS = [ # Translators, name of the L-band tuner preset covering AF...
Outernet-Project/librarian
librarian/data/tuner_presets.py
Python
gpl-3.0
3,433
[ "Galaxy" ]
d5bb2e87e2daa1c001a8f649d1fe2be6c13e28b3963dc302cdad194e517563ea
#! /usr/bin/env python # -*- coding: UTF-8 -*- import os import sys import setuptools from distutils.command.clean import clean as _clean from distutils.command.build import build as _build from setuptools.command.sdist import sdist as _sdist from setuptools.command.build_ext import build_ext as _build_ext try: ...
qisanstudio/qsapp-riitc
setup.py
Python
mit
2,804
[ "GULP" ]
c538f5ef8bf59c66955da7543f58a1fbf50e904314a27eb1a4daaa907fb321be
import h5py import sys import os.path as op from fos import * import numpy as np a=np.loadtxt(op.join(op.dirname(__file__), "..", "data", "rat-basal-forebrain.swc") ) pos = a[:,2:5].astype( np.float32 ) radius = a[:,5].astype( np.float32 ) * 4 # extract parent connectivity and create full connectivity parents = a[1:...
fos/fos
examples/dynamic/neuron.py
Python
bsd-3-clause
950
[ "NEURON" ]
d71b0de75cef532b02ac814dc133bf8ef4e73fabd7dff75101d40af7617fc7a4
## @package SparseTransformer # Module caffe2.experiments.python.SparseTransformer from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import workspace import scipy.sparse class NetDefNode(): def _...
xzturn/caffe2
caffe2/experiments/python/SparseTransformer.py
Python
apache-2.0
6,362
[ "VisIt" ]
288a4bf9f147a79d349d25a3f0baec2dc4dc550b7c6147212914ac08287612a9
""" Tests generating files for qm torsion scan """ import unittest from torsionfit.tests.utils import get_fn, has_openeye import torsionfit.qmscan.torsion_scan as qmscan from torsionfit.qmscan import utils from openmoltools import openeye import tempfile import os from fnmatch import fnmatch import shutil class Test...
choderalab/Torsions
torsionfit/tests/test_qmscan.py
Python
gpl-2.0
5,916
[ "Psi4" ]
8fafa06ce76f9018b9217b110728509a4e03a109073be3e98617971637e31cd9
# # Copyright 2015 LinkedIn Corp. 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 ...
thomas-young-2013/wherehowsX
metadata-etl/src/main/resources/jython/CodeSearchExtract.py
Python
apache-2.0
8,557
[ "ESPResSo" ]
e848ed7506bfa69911b3fac582260fa177a646a7477260443389a241eb069cf6
''' Significant lifting from https://jmetzen.github.io/2015-11-27/vae.html ''' import time import numpy as np import tensorflow as tf from tensorflow.python.ops import rnn import random import matplotlib.pyplot as plt import re, string from sklearn.feature_extraction.text import CountVectorizer from collections impo...
dricciardelli/vae2vec
def_def_alt_oh.py
Python
mit
35,911
[ "Gaussian" ]
3c61807f5c1d905574f98931484df0fa2eb3c7ed14e28aba713a0c7ce9e4dbca
#!/usr/bin/env python # -*- coding: utf-8 -*- # Brian Cottingham # spiffyech@gmail.com #This file is part of Spiffybot. # #Spiffybot 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...
spiffytech/spiffybot
spiffybot.py
Python
gpl-3.0
10,756
[ "Brian" ]
1ce9b6dca9dedfbf840d6aaa83850463b5e2fa06c8dba4d840f8bd329a1ffdb0
# Copyright 2016 Brian Innes # # 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, ...
brianinnes/pycupi
python/vPiP/constrainDrawingRectangle.py
Python
apache-2.0
8,796
[ "Brian" ]
5e089765242bfbb1f9c2e8bfae829b6f561032b3b110a52b71d32cbc6567aa4f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ JahnTeller distortion analysis. """ import os import numpy as np from pymatgen.core.structure import Structure from pymatgen.analysis.local_env import ( LocalStructOrderParams, get_neighbors_of_s...
gVallverdu/pymatgen
pymatgen/analysis/magnetism/jahnteller.py
Python
mit
21,643
[ "CRYSTAL", "pymatgen" ]
8747772dedd2617779f14ce52fadf9698c63c4add3095d491f7021f7f3fc2298
""" Student Views """ import datetime import json import logging import uuid import warnings from collections import defaultdict, namedtuple from urlparse import parse_qs, urlsplit, urlunsplit import django import analytics import edx_oauth2_provider from django.conf import settings from django.contrib import message...
lduarte1991/edx-platform
common/djangoapps/student/views.py
Python
agpl-3.0
126,253
[ "VisIt" ]
fd6b1f8b65bd77fab797bb96dcf82d9947ac80a08f35e3ed11c78f3314529d68
""" ======================== Random Number Generation ======================== ==================== ========================================================= Utility functions ============================================================================== random_sample Uniformly distributed floats over ``[0, 1)`...
ryfeus/lambda-packs
pytorch/source/numpy/random/__init__.py
Python
mit
6,053
[ "Gaussian" ]
46f2870ba1a93c211c65d18b6220c6dd11f9bc46c97ce90be1f3348a07c10000
### ### GPAW benchmark: Carbon Fullerenes on a Lead Surface ### from __future__ import print_function from gpaw.mpi import size, rank from gpaw import GPAW, Mixer, ConvergenceError from gpaw.occupations import FermiDirac from ase.io import read try: from gpaw.eigensolvers.rmm_diis import RMM_DIIS except ImportErro...
mlouhivu/gpaw-accelerator-benchmarks
fullerenes-on-surface/input.py
Python
mit
1,958
[ "ASE", "GPAW" ]
a28c6ba0cd50ee5953602e2270f420c898f5ac6db86f24ce248ac3472be4db2f
""" Django module container for classes and operations related to the "Course Module" content type """ import logging from cStringIO import StringIO from math import exp from lxml import etree from path import path # NOTE (THK): Only used for detecting presence of syllabus import requests from datetime import datetime...
abhilashnta/edx-platform
common/lib/xmodule/xmodule/course_module.py
Python
agpl-3.0
61,461
[ "VisIt" ]
4a8d445b98380e29d6dce350b9e6eb72e686b39012bee08644fd0630571dcc81
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflow/privacy
tensorflow_privacy/privacy/analysis/rdp_privacy_accountant_test.py
Python
apache-2.0
12,865
[ "Gaussian" ]
d3716cacaa0c86b5945601f58144c3b81f7fdb0e9ef6653b9e1656ae61065f96
# Copyright (c) 2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Tools and calculations for interpolating specifically to a grid.""" import numpy as np from .points import (interpolate_to_points, inverse_distance_to_points, ...
Unidata/MetPy
src/metpy/interpolate/grid.py
Python
bsd-3-clause
12,473
[ "Gaussian" ]
34e3d9a29f6795f328d19036363da8a55b45e33c179a5d5790bea5e25b56d337
import matplotlib import pylab as plt from scipy import interpolate from Pyheana.load.load_data import * def plot_slices(data): [n_cols, n_slices, n_turns] = data.shape A = data[2,:,:] * data[13,:,:] # Color cycle n_colors = n_turns colmap = plt.get_cmap('jet') c = [colmap(i) for i in plt.li...
like2000/Pyheana
display/plot_slices.py
Python
gpl-2.0
3,174
[ "Mayavi" ]
e4b50134ce6b1191576fa93b0d3dcf89e3edf23ab44c392c8de18eef269646cc
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string 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','description','copyright','...
simonrand/TiIntercom
build.py
Python
mit
6,787
[ "VisIt" ]
a26192638d4b7488dd8c25885d5b0787697a7c58b1f26668f01ebd14c3ccb568
# -*- coding: utf-8 -*- """ Generators for random graphs. """ # Copyright (C) 2004-2015 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. from collections import defaultdict import itertools import math import...
michaelpacer/networkx
networkx/generators/random_graphs.py
Python
bsd-3-clause
31,462
[ "VisIt" ]
a915537ed5f64e7638b3da5012702e3c7c12eaabe877ad42a9dbaa77fa241dcc
# coding: UTF-8 # 미국의 주의 수도를 찾는 함수를 만드세요. STATES_CAPITALS = { 'Alabama': 'Montgomery', 'Alaska': 'Juneau', 'Arizona': 'Phoenix', 'Arkansas': 'Little Rock', 'California': 'Sacramento', 'Colorado': 'Denver', 'Connecticut': 'Hartford', 'Delaware': 'Dover', 'Florida': 'Tallahassee', ...
inhwane/kookmin
source/problem/function_state_capital.py
Python
mit
1,565
[ "COLUMBUS" ]
e89bb1509217f07e49987a510e7fb1d6146123f0409116f5adc24438d2c6934f
# Copyright (C) 2008 NSC Jyvaskyla # Please see the accompanying LICENSE file for further information. from .atoms import Atoms from .aseinterface import Hotbit, database_from_path from .atoms import ExtendedTrajectory from .electrostatics import Electrostatics from .element import Element from .elements import Elemen...
pekkosk/hotbit
hotbit/__init__.py
Python
gpl-2.0
1,867
[ "Gaussian" ]
b5f6a93b927782f990045fa7ca33ec75631324d25c62ada503de2ef730f965d6
from django.db import IntegrityError from django.utils.functional import cached_property from redis.exceptions import ConnectionError, ResponseError from experiments.models import Enrollment from experiments.manager import experiment_manager from experiments.dateutils import now, fix_awareness, datetime_from_timestam...
mixcloud/django-experiments
experiments/utils.py
Python
mit
18,840
[ "VisIt" ]
d17dff353e22df0607921e5a89b38d22e7d6950e45ba0ff27d38152ac077db54
#!python import random import math import pyglet import pyglet.gl as gl import vector as vec import timevars as tv from gameassets import GameAssets from config import Config #gAssets = None class Swarm(object): ''' All the non-player objects (not sure if ShotSprites are included)''' def __init__(self, ...
sergio-py2/meteor
sprites.py
Python
mit
20,802
[ "Galaxy" ]
04c18390b6dabd4cc2f4ca931728dc18242d5d1d29b0a9c044b71d79b134a57e
from __future__ import print_function, division import random from sympy.core.basic import Basic from sympy.core.compatibility import is_sequence, as_int, range from sympy.core.function import count_ops from sympy.core.decorators import call_highest_priority from sympy.core.singleton import S from sympy.core.symbol i...
vipulroxx/sympy
sympy/matrices/dense.py
Python
bsd-3-clause
42,837
[ "DIRAC" ]
d266a5a63800a51b706b1f725794846db715db8c9a1e406cde7d0abd6151670d
#!/usr/bin/env python3 import logging import os import pathlib import numpy as np import pytest from pysisyphus.calculators.ORCA import ORCA from pysisyphus.constants import ANG2BOHR from pysisyphus.Geometry import Geometry from pysisyphus.irc.GonzalesSchlegel import GonzalesSchlegel from pysisyphus.irc.DampedVelocit...
eljost/pysisyphus
tests_staging/irc_hfabstraction/test_hfabstraction_irc.py
Python
gpl-3.0
3,585
[ "ORCA" ]
0adaa99829bf234d6564ffde70865b6cf4990c2c077ecac337429e2873bcfe13
# coding=utf-8 # Copyright 2022 The Edward2 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 o...
google/edward2
experimental/marginalization_mixup/sngp.py
Python
apache-2.0
30,800
[ "Gaussian" ]
2c76a0b825a85532722c238eea32e1e9669b73d52efc3a9e38c16123fc7ed465
""" This is a financial market model written in indra. It is intended to demonstrate how the interaction of value investors and trend followers can produce cyclical price changes. """ from math import isclose from indra.agent import Agent from indra.composite import Composite from indra.display_method...
gcallah/Indra
models/fmarket.py
Python
gpl-3.0
6,817
[ "Gaussian" ]
f7b16c71bb7afc035f9db7e6361759d694284d9b4e0d1c45bb97dc9bfeb9117e
# 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...
junghans/espressopp
src/PLogger.py
Python
gpl-3.0
1,899
[ "ESPResSo" ]
944b3c255128510ecf1cf8bbca86f6e9b44e24b76d9508a95502bdcafc52fd37
from __future__ import division import numpy as np from scipy.ndimage import gaussian_filter, gaussian_laplace import math from math import sqrt, log from scipy import spatial from ..util import img_as_float from .peak import peak_local_max from ._hessian_det_appx import _hessian_matrix_det from ..transform import inte...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/skimage/feature/blob.py
Python
gpl-3.0
19,138
[ "Gaussian" ]
6ae17cbf9e56d985ba239101f40084cb65823215733dd1c0bf91536948a92b99
#! /usr/bin/env python import re import math import collections import numpy as np import time import operator from scipy.io import mmread, mmwrite from random import randint from sklearn import cross_validation from sklearn import linear_model from sklearn.grid_search import GridSearchCV from sklearn import preproces...
Goodideax/CS249
predict_combine_1000.py
Python
bsd-3-clause
14,591
[ "Gaussian" ]
140da85ae98fe09c5f7c5af892b6864db26ffd00a3adb67d8e81923e869b6d46
""" Noise covariance function ------------------------- NoiseCFISO NoiseCFReplicates """ import sys sys.path.append("../") # import python / numpy: import scipy as SP from pygp.covar import CovarianceFunction class NoiseCFISO(CovarianceFunction): """ Covariance function for Gaussian observation noise fo...
PMBio/pygp
pygp/covar/noise.py
Python
gpl-2.0
3,746
[ "Gaussian" ]
e3c192e6c50ba81cc6adf5987ffd67b185a964565979ed74092965397bd2a0e3
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for ...
Kruehlio/XSspec
utils/mpfit.py
Python
mit
93,147
[ "Gaussian" ]
3970dd996a0fd8ee9bc9f098c129776640d3219cbfb5f212c95243da8c248af7
# Copyright 2012, Nachi Ueno, NTT MCL, 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 # # Unles...
eayunstack/neutron
neutron/tests/unit/agent/linux/test_iptables_firewall.py
Python
apache-2.0
97,081
[ "FEFF" ]
2ddbcaa7d3a3c00e5122258039c919aa4dad9b9c43192fd2a40a6e5d372ab977
import os import unittest import pytest import deepchem as dc import numpy as np from deepchem.models.losses import L2Loss from deepchem.feat.mol_graphs import ConvMol try: import tensorflow as tf from tensorflow.keras.layers import Input, Dense class MLP(dc.models.KerasModel): def __init__(self, ...
deepchem/deepchem
deepchem/models/tests/test_pretrained_keras.py
Python
mit
5,350
[ "RDKit" ]
21771535979108881c229bbb91e9c36a4f59f1ec185ad2b9703f119104a93132
from warnings import warn import numpy as np import pandas as pd from pandas import DataFrame, Series from shapely.geometry import box from shapely.geometry.base import BaseGeometry from .array import GeometryArray, GeometryDtype def is_geometry_type(data): """ Check if the data is of geometry dtype. ...
jdmcbr/geopandas
geopandas/base.py
Python
bsd-3-clause
112,668
[ "Bowtie" ]
fb41086cf21d980691f471aa3d00838a311044720bdb01a7521e7c2ded590dd1
# -*- coding: utf-8 -*- ############################################################################### # # This source file is part of the tomviz project. # # Copyright Kitware, Inc. # # This source code is released under the New BSD License, (the "License"). # # Unless required by applicable law or agreed to in ...
cjh1/tomviz
tomviz/python/tomviz/utils.py
Python
bsd-3-clause
15,400
[ "VTK" ]
134c0ed8dcfc6aeaef34c4aafee44a00b0e31fc12ae7c71be2aadb19eac63a38
from itertools import chain from optparse import make_option from django.core import serializers from django.core.management.base import BaseCommand, CommandError from catmaid.control.tracing import check_tracing_setup from catmaid.models import Class, ClassInstance, ClassInstanceClassInstance, \ Relation, Con...
catsop/CATMAID
django/applications/catmaid/management/commands/catmaid_export_data.py
Python
gpl-3.0
12,506
[ "NEURON" ]
2baf2713ee42b6db639c3c2bf2db292ab153b74e2ab025e50ff978e46ff0fde5
# #!/usr/bin/env python # -*- coding: utf-8 -*- # <HTTPretty - HTTP client mock for Python> # Copyright (C) <2011> Gabriel Falcao <gabriel@nacaolivre.org> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal ...
letolab/HTTPretty
setup.py
Python
mit
3,428
[ "VisIt" ]
39d1ee85669d8f1d9314031599767fc430ab38fae99e24c07b61b133c6984592
# Copyright (C) 2012,2013,2015,2016 # 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 ...
kkreis/espressopp
src/VerletList.py
Python
gpl-3.0
3,541
[ "ESPResSo" ]
85c28637d774883358c09a0befffca2b4d7079aede72a0161a56deffe8ec45cd
"""Algorithms for spectral clustering""" # Author: Gael Varoquaux gael.varoquaux@normalesup.org # Brian Cheung # Wei LI <kuantkid@gmail.com> # License: BSD import warnings import numpy as np from ..base import BaseEstimator, ClusterMixin from ..utils import check_random_state, as_float_array, depreca...
florian-f/sklearn
sklearn/cluster/spectral.py
Python
bsd-3-clause
17,870
[ "Brian", "Gaussian" ]
04f2ddb724b046e4c06d9fe5feeb42983c38ea41063fd45a942f1012d9f7753a
#!/usr/local/bin/python # Script: dumpsort.py # Purpose: sort the snapshots in a LAMMPS dump file by atom ID # Syntax: dumpsort.py oldfile N newfile # oldfile = old LAMMPS dump file in native LAMMPS format # N = column # for atom ID (usually 1) # newfile = new sorted LAMMPS dump file # Aut...
val-github/lammps-dev
tools/python/dumpsort.py
Python
gpl-2.0
697
[ "LAMMPS" ]
64a7ed67d0db2ad3ee32ece32888950a2eeab52c883b27224d84f4da7692d87b
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
sarvex/tensorflow
tensorflow/python/ops/nn_impl.py
Python
apache-2.0
100,241
[ "Gaussian" ]
316a1b3d655b70082d296c8bfbcf80b6bd3b592e4a1a59a2ab1e6f8020701f54
#----------------------------------------------------------------------------- # Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley # # This file is part of pyzmq # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD, distributed as part of this software. #-----...
IsCoolEntertainment/debpkg_python-pyzmq
zmq/tests/test_ioloop.py
Python
lgpl-3.0
3,188
[ "Brian" ]
deb83e74812f2e56fe159f31e28533f2669290b65de24c56120c4df2c7678470
import sys from setuptools import setup long_description = '''\ Raven Sentry client for Bash. Logs error if one of your commands exits with non-zero return code and produces simple traceback for easier debugging. It also tries to extract last values of the variables visible in the traceback. Environment variables and...
hareevs/raven-bash
setup.py
Python
apache-2.0
1,462
[ "VisIt" ]
6c25b1d225e9f2265f4134f4ab1c82e2c38be843eb9aa766a141ad5316ba87f5
import datetime import time from decimal import Decimal from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.core.exceptions import ObjectDoesNotExist from statisticscore import countries, session_types # The following imports are used to process imag...
eyp-developers/statistics
statisticscore/models.py
Python
gpl-3.0
22,641
[ "Amber" ]
6b3a2c688fc2b56253e4a0a72c32aaa9dadb021f9c85af1b2bb57a1762e57b11
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 Rackspace # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of t...
rcbops/nova-buildpackage
nova/tests/test_network.py
Python
apache-2.0
66,384
[ "FEFF" ]
a312e5e85e805ec296ed47516abff416cb93326c1f71281dc862769a8feb412f
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-filestore
tests/unit/gapic/filestore_v1/test_cloud_filestore_manager.py
Python
apache-2.0
157,841
[ "Octopus" ]
efc3f97f5c31130b8fc1c8c124e5cb7a1d9777821aad4ae381fa65ad2df56914
#!/usr/bin/env python ############################################################################### # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License...
dparks1134/CommunityM
classifyBWA_16S.py
Python
gpl-3.0
17,166
[ "BWA", "pysam" ]
7d04091f5d60d760c29b1ed9f8d0f94b2b7d2896fa70b7c3f6284e203663f042
import sys, collections, itertools, os.path, optparse optParser = optparse.OptionParser( usage = "python %prog [options] <in.gtf> <out.gff>", description= "Script to prepare annotation for DEXSeq." + "This script takes an annotation file in Ensembl GTF format" + "and outputs a 'flatten...
fchen365/RBP_models
python/dexseq_prepare_annotation.py
Python
mit
6,125
[ "HTSeq" ]
74c498ebac5b29f42e56f99f17bd08bd0f4b5f9a09508ba58eaa0b6518609ba5
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove ...
gratefulfrog/lib
python/chempy/protein.py
Python
gpl-2.0
19,224
[ "ChemPy", "PyMOL" ]
1d25836613348a60d810d54908b0d28e192fe495f7522b4fe9dee937b43d9a54
from rdkit import DataStructs from rdkit import RDConfig import unittest,os def feq(a,b,tol=1e-4): return abs(a-b)<tol class TestCase(unittest.TestCase): def setUp(self) : self.dirname = os.path.join(RDConfig.RDBaseDir,'Code','DataStructs','testData') self.filename = os.path.join(self.dirname,'zim.he...
adalke/rdkit
Code/DataStructs/Wrap/testFPB.py
Python
bsd-3-clause
12,163
[ "RDKit" ]
6b5ff0f82e38f363792f3e6d50d155338d063cc7151abb51177f390eff896d46
from django.apps import apps as django_apps from django.db.models.signals import post_save, post_delete from django.dispatch import receiver @receiver(post_save, weak=False, dispatch_uid="metadata_create_on_post_save") def metadata_create_on_post_save(sender, instance, raw, created, using, ...
botswana-harvard/edc-meta-data
edc_metadata/signals.py
Python
gpl-2.0
2,695
[ "VisIt" ]
67d58ffa616effadac9496841de247dba534edb1886e38852353afc0a060be0d
from __future__ import print_function from miasm.expression.expression import * from pdb import pm print(""" Expression simplification demo. (and regression test) """) a = ExprId('a', 32) b = ExprId('b', 32) c = ExprId('c', 32) d = ExprId('d', 32) e = ExprId('e', 32) m = ExprMem(a, 32) s = a[:8] i1 = ExprInt(0x1, ...
mrphrazer/miasm
example/expression/simplification_tools.py
Python
gpl-2.0
1,140
[ "VisIt" ]
7938aed94618325d5864aa05427937af5897cd8fefcb9981a7ae19e09d9bbac8
""" .. module:: VisVTK :platform: Unix, Windows :synopsis: VTK visualization component for NURBS-Python .. moduleauthor:: Onur Rauf Bingol <orbingol@gmail.com> """ from random import random from . import vis from . import vtk_helpers as vtkh import numpy as np from vtk.util.numpy_support import numpy_to_vtk ...
orbingol/NURBS-Python
geomdl/visualization/VisVTK.py
Python
mit
14,148
[ "VTK" ]
ac7289b92e12dd125e079bfe9de809bd740168b999aecf4c97bdfbc827300f71
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines 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 ap...
google/uncertainty-baselines
baselines/imagenet/hetsngp.py
Python
apache-2.0
22,003
[ "Gaussian" ]
727017073b26a4442baa986e803a71d061ff1a7248da12043d84b93350ebbaa4
#!/usr/bin/python2.5 ################################################################################ # A script for getting the inchi file from KEGG and translating it to a giant # SDF (a multi-molfile) so that it can be used with WebGCM to get the # free energy of formation for each compound in KEGG ################...
eladnoor/carbofix
src/gibbs.py
Python
mit
934
[ "Pybel" ]
ff771db5c32bacbea9f9fa77ffc82bc9f04698cc17ce26614ac38853d2fc5769
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
floaltvater/molblend
mb_utils.py
Python
gpl-2.0
57,132
[ "ABINIT", "Quantum ESPRESSO", "phonopy" ]
15a9760aee70794b22c1e3c418086cd6ceaf7f6f9787b3209308b2d0fa592588
import os import subprocess import sys import threading import functools import contextlib import logging import re import time from StringIO import StringIO from test import test_support from concurrent import futures from concurrent.futures._base import ( PENDING, RUNNING, CANCELLED, CANCELLED_AND_NOTIFIED, FINI...
cstipkovic/spidermonkey-research
python/futures/test_futures.py
Python
mpl-2.0
24,730
[ "Brian" ]
3b63404fbc48ac1b9756192b8d4d5494e0151f9896be2616caedbe2425e3d345
#!/usr/bin/env python # Script to build windows installer packages for LAMMPS # (c) 2017,2018,2019,2020 Axel Kohlmeyer <akohlmey@gmail.com> from __future__ import print_function import sys,os,shutil,glob,re,subprocess,tarfile,gzip,time,inspect try: from urllib.request import urlretrieve as geturl except: from urllib ...
lammps/lammps-packages
mingw-cross/cmake-win-on-linux.py
Python
mit
15,175
[ "LAMMPS", "VTK" ]
4662e83cb7c8b6fa2c4189c0fe7c99f9e91f0810933e3610f175b7447de4a0fa
""" manage PyTables query interface via Expressions """ from __future__ import annotations import ast from functools import partial from typing import Any import numpy as np from pandas._libs.tslibs import ( Timedelta, Timestamp, ) from pandas._typing import npt from pandas.compat.chainmap import DeepChainMa...
rs2/pandas
pandas/core/computation/pytables.py
Python
bsd-3-clause
19,641
[ "VisIt" ]
ed5d9f8535b54043c49eedd48015d5bb74654984b8d68a5d0580aa400ce2b225
from rdkit import RDConfig import sys, os from time import sleep from multiprocessing import Process, Value import unittest from rdkit import Chem from rdkit.Chem import ChemicalForceFields from rdkit.Chem import rdMolTransforms class OptSafe: def __init__(self): self.minInfLoop = """minInfLoop RDKit ...
ptosco/rdkit
Code/ForceField/Wrap/testConstraints.py
Python
bsd-3-clause
12,188
[ "RDKit" ]
a21c30278794e90a126550426a717714ebebdd52a979c084befd3ce11727a2dc
# coding=utf-8 # Copyright 2020 The SimCLR 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...
google-research/simclr
tf2/data_util.py
Python
apache-2.0
18,220
[ "Gaussian" ]
8c73c77f018b6f13267ee97c90fa24b978597bb11f97f7b3910b2490d44e59fc
""" This file is part of The Cannon analysis project. Copyright 2014 Melissa Ness. # urls - http://iopscience.iop.org/1538-3881/146/5/133/suppdata/aj485195t4_mrt.txt for calibration stars - http://data.sdss3.org/irSpectrumDetail?locid=4330&commiss=0&apogeeid=2M17411636-2903150&show_aspcap=True object explorer - http...
mkness/TheCannon
code/fitspectra.py
Python
mit
56,681
[ "VisIt" ]
bd01448399dd67887e6ba01e55f3ba986e2bd9828df81b33578f33a1451263ad
''' Interpolation actors. Inserts additional events between each pair of events, using a selected interpolation scheme.The interpolation schemes are: * zero interpolation - insert zero values * step interpolation - holds the last value * linear interpolation - places values on a straight line between successive ev...
mm318/scipysim-nogui
scipysim/actors/signal/interpolator.py
Python
gpl-3.0
7,526
[ "Brian" ]
947d426b87f60c48d59a803ccd0ca4747934dbe16128c5c82a8038504ff72722
""" Acceptance tests for studio related to the outline page. """ import json from datetime import datetime, timedelta import itertools from pytz import UTC from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from ...pages.studio.settings_advanced import AdvancedSettingsPage from ...pages.stu...
hamzehd/edx-platform
common/test/acceptance/tests/studio/test_studio_outline.py
Python
agpl-3.0
81,400
[ "VisIt" ]
7061765e3a52e6ac16f12c54fffa32257b09c2f9691c956d68aacea98f97e685
""" Brian T. Bailey ITM 513 - MP4 MP4 Main Driver """ FTPHOST = 'glenellyn.rice.iit.edu' FTPUSER = 'bbailey4' FTPPSSWD = '@4clibri'
briantbailey/ITM-513
mp4/src/mp4domain/ftpconfig.py
Python
mit
132
[ "Brian" ]
aa6c67d211db904db2138b6f53e86ec3ef176d190dd79064ea8bc6519c89a803
""" Utilities for reading YAML configurations for SHyFT simulations. """ import os from datetime import datetime import yaml import numpy as np from shyft import api from shyft.api import pt_gs_k, pt_ss_k, pt_hs_k, hbv_stack from shyft.repository.netcdf import ( RegionModelRepository, GeoTsRepository, get_geo_ts...
felixmatt/shyft
shyft/orchestration/config.py
Python
lgpl-3.0
5,145
[ "NetCDF" ]
a0bb28064d8d0e9637756e587d44f43b8d158095ad0881a39e95c6314e52fcc1
from __future__ import division import numpy as np import numpy.random as npr import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from pybasicbayes.distributions import Regression, Gaussian from pybasicbayes.util.text import progprint_xrange from pypolyagamma.distributions import BernoulliRegressio...
mattjj/pyhsmm-slds
examples/bernoulli_slds.py
Python
mit
5,425
[ "Gaussian" ]
170e8871bf0c4e031b2217f9b286cea9352942af113ad8bee37b5fc7ed95ce94
# (c) Nelen & Schuurmans. GPL licensed, see LICENSE.txt. import datetime import hashlib import logging import time from django.core.cache import cache from django.core.cache import get_cache from django.core.urlresolvers import reverse from django.db import models from django.db.models.signals import post_delete from...
lizardsystem/lizard-fewsjdbc
lizard_fewsjdbc/models.py
Python
gpl-3.0
28,909
[ "VisIt" ]
ff58408149e22b25005c8f50692aea3e54e4292674c8a969d99da7a597f5edec
import unittest from paste.deploy import appconfig from ecomaps.config.environment import load_environment from ecomaps.services.netcdf import EcoMapsNetCdfFile, NetCdfService __author__ = 'Phil Jenkins (Tessella)' class EcoMapsNetCdfFileTest(unittest.TestCase): def test_coverage_file_can_be_read(self): ...
NERC-CEH/ecomaps
ecomaps/services/tests/netcdf_test.py
Python
gpl-2.0
1,902
[ "NetCDF" ]
fed79b7f4913fe1e5155323713ebf36e21981ba5b5686216978b9640c2810a8e
# Map from VTK to enable key names KEY_MAP = { "Esc": "Esc", "Tab": "Tab", "Backtab": "Backtab", "Backspace": "Backspace", "Return": "Enter", "Enter": "Enter", "Insert": "Insert", "Delete": "Delete", "Pause": "Pause", "Print": "Print", "Sysreq": "Sysreq", "Clear": "Clear"...
tommy-u/enable
enable/vtk_backend/constants.py
Python
bsd-3-clause
799
[ "VTK" ]
af7ec748cb033a1ef02655791e752d5778a79f1a66724eb6d4173089d301779c
#! /usr/bin/env python # findlinksto # # find symbolic links to a path matching a regular expression import os import sys import regex import getopt def main(): try: opts, args = getopt.getopt(sys.argv[1:], '') if len(args) < 2: raise getopt.error, 'not enough arguments' except getopt.error, msg: sys.stdo...
sensysnetworks/uClinux
user/python/Tools/scripts/findlinksto.py
Python
gpl-2.0
870
[ "VisIt" ]
f32d4450d23b62b93d0efeb4c44402eb6b746f2ee8bf8296a426d7679c6fedde
######################################################################## # $HeadURL$ ######################################################################## """ SandboxMetadataDB class is a front-end to the metadata for sandboxes """ __RCSID__ = "$Id$" import types from DIRAC import gLogger, S_OK, S_ERROR from DIRA...
avedaee/DIRAC
WorkloadManagementSystem/DB/SandboxMetadataDB.py
Python
gpl-3.0
17,132
[ "DIRAC" ]
f9cce57d000ea75067e4ec2aa9b33b91ff796bf4fc4f63d42d8348e15cbf63f6
''' <h1> Library for specular magnetic x-ray reflectivity</h1> The magnetic reflectivity is calculated according to: S.A. Stephanov and S.K Shina PRB 61 15304. Note: The documentation is not updated from the interdiff model! <h2>Classes</h2> <h3>Layer</h3> <code> Layer(b = 0.0, d = 0.0, f = 0.0+0.0J, dens = 1.0, magn_a...
jackey-qiu/genx_pc_qiu
models/xmag.py
Python
gpl-3.0
13,739
[ "Gaussian" ]
acc67360f66eaa313cdb5174d46abf7a2d677e5669857fda52dd7676f4a512a1