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
"""this is python equivalent of ./Wrapping/Tcl/vtktesting/backdrop.tcl This script is used while running python tests translated from Tcl.""" import vtk basePlane = None baseMapper = None base = None backPlane = None backMapper = None back = None leftPlane = None leftMapper = None left = None def BuildBackdrop (mi...
cjh1/vtkmodular
Utilities/vtkTclTest2Py/backdrop.py
Python
bsd-3-clause
1,927
[ "VTK" ]
51b2d29d9f00c0302f17a3d0243ff28fabd13e4588ba0088fd3c1cb16d1d26b0
# Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
espressomd/espresso
testsuite/scripts/samples/test_ekboundaries.py
Python
gpl-3.0
1,413
[ "ESPResSo", "VTK" ]
caf9d404bd088dc0f2bc77bb02292dbfabd9842ecf3e8cfb961b06b63109e038
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import pytest import psi4 import forte def test_spinorbital_mp2(): import forte import forte.utils from math import isclose import numpy as np geom = """0 1 H F 1 1.0 symmetry c1 """ basis = '6-31g' Escf, wfn = fo...
evangelistalab/forte
tests/pytest/helpers/test_spinorbital.py
Python
lgpl-3.0
1,809
[ "Psi4" ]
709df33ca405dfc9a00b7d876cc1c36eb916efc2d045960dec31f5384b4b6437
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/enigma2-plugin-extensions-openwebif
plugin/controllers/views/ajax/bouquets.py
Python
gpl-2.0
6,693
[ "VisIt" ]
9be85ed11b8023d7a84ff9700fd90b43a39d475fa66bd7825cd964e4401a817b
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Test Utilities Trapped Services ------------------------------- """ import unittest from bacpypes.debugging import bacpypes_debugging, ModuleLogger from bacpypes.comm import ServiceAccessPoint, ApplicationServiceElement, bind from ..trapped_classes import TrappedSer...
JoelBender/bacpypes
tests/test_utilities/test_service_access_point.py
Python
mit
3,492
[ "ASE" ]
f4dc15f5aafc77c06cf2138eacb861a2cc8bf680bd7cfff074be368a0e28b2f5
import cStringIO import numpy as np import theano.tensor as T from theano.tests import disturb_mem from theano.tests.record import Record, RecordMode import warnings from pylearn2.costs.cost import Cost, SumOfCosts, DefaultDataSpecsMixin from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix from pylearn...
kastnerkyle/pylearn2
pylearn2/training_algorithms/tests/test_sgd.py
Python
bsd-3-clause
48,393
[ "VisIt" ]
9739c7a2e9153bbee54fdc2cebefc9b798d5838b188313e8888faa0595ca20f8
# -*- coding: utf-8 -*- # These tests don't work at the moment, due to the security_groups multi select not working # in selenium (the group is selected then immediately reset) import fauxfactory import pytest from riggerlib import recursive_update from textwrap import dedent from widgetastic.utils import partial_matc...
akarol/cfme_tests
cfme/tests/cloud/test_provisioning.py
Python
gpl-2.0
27,785
[ "VisIt" ]
6b2e8e4f18f97b5b6da2ced4418ec7917ad4673df9063c8ebf0a14ac093ed578
# sybase/base.py # Copyright (C) 2010-2015 the SQLAlchemy authors and contributors # <see AUTHORS file> # get_select_precolumns(), limit_clause() implementation # copyright (C) 2007 Fisch Asset Management # AG http://www.fam.ch, with coding by Alexander Houben # alexander.houben@thor-solutions.ch # # This module is par...
bdh1011/cupeye
venv/lib/python2.7/site-packages/sqlalchemy/dialects/sybase/base.py
Python
bsd-3-clause
28,812
[ "ASE" ]
6096c8dde9a2062f5379ba15a27c704359e7071b93d99e22f4d715a89aa74aba
# Copyright (c) 2014 OpenStack Foundation. # # 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 ...
julianwang/cinder
cinder/hacking/checks.py
Python
apache-2.0
12,426
[ "VisIt" ]
4618cfd94478b6ebbc3cb34218eb8ee8bc425395158e226a6c1d7db77732d7c4
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ ====================================== fMRI: surface smooth - FreeSurfer, SPM ====================================== This tutorial illustrates how to perform surface-based smoothi...
FCP-INDI/nipype
examples/fmri_freesurfer_smooth.py
Python
bsd-3-clause
22,931
[ "Gaussian" ]
f7b83213cd936985e3ddf6e27dd203a9f08af7061105cda731df69aad00e90a4
#!/usr/bin/env python # # Robin Shields-Cutler # August 2016 # takes standard blast output TSV (outfmt 6-- *.b6 or *.txt, etc) and stores entries in dictionary, # then writes to dataframe and exports as CSV usage = 'blastp_to_matrix.py -i BLASTOUT.b6 -s SCORE_METHOD -t THRESHOLD -o OUTFILE.csv' import argparse import...
RRShieldsCutler/clusterpluck
clusterpluck/scripts/blastp_to_matrix.py
Python
mit
6,813
[ "BLAST" ]
73200aa65e0f0f7225b4bb2937262fbc54a4d54cdf53f016f769693fbfaa8046
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2011, 2012 CERN. ## ## Invenio 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 opt...
kaplun/ops
modules/bibauthorid/lib/bibauthorid_webapi.py
Python
gpl-2.0
111,884
[ "VisIt" ]
8665d2a71498e2a169709127f3307d69d6bb1e9ede0698d0ac00421261982244
# -*- encoding: utf-8 from sqlalchemy import Column from sqlalchemy import engine_from_config from sqlalchemy import event from sqlalchemy import exc from sqlalchemy import Integer from sqlalchemy import String from sqlalchemy import Table from sqlalchemy import testing from sqlalchemy.dialects.mssql import adodbapi fr...
graingert/sqlalchemy
test/dialect/mssql/test_engine.py
Python
mit
16,955
[ "ASE" ]
8e88e252b1658a8c0e2b1f4717625fa2451bc0152944655d68790275c1faf243
# (c) 2017, Brian Coca # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' cache: pickle short_descript...
alxgu/ansible
lib/ansible/plugins/cache/pickle.py
Python
gpl-3.0
1,997
[ "Brian" ]
dde13d46f249b7bdbc8e34e1eaceebb9d095c16906c4e09b08ac39a2b7668363
#!/usr/bin/env python import radical.utils as ru #import radical.analytics as ra import radical.entk as re from radical.entk import Pipeline, Stage, Task, AppManager import os import tarfile import writeInputs import time import git #os.environ['RADICAL_SAGA_VERBOSE'] = 'INFO' os.environ['RADICAL_ENTK_VERBO...
radical-cybertools/radical.repex
old/examples/experimental_async.py
Python
mit
8,631
[ "Amber" ]
4422d70c52fdfcb4971f9da4677eafd3d22775ac720ee22387aecda99b28b1c4
# 460. LFU Cache # Design and implement a data structure for Least Frequently Used (LFU) cache. It should support the following operations: get and put. # # get(key) - Get the value (will always be positive) of the key if the key exists in the cache, otherwise return -1. # put(key, value) - Set or insert the value if ...
gengwg/leetcode
460_lfu_cache.py
Python
apache-2.0
3,669
[ "VisIt" ]
8fa0e0f94afd8b5adaf3e7d9ceca217c06672ed772b8a89defc31e782ff273f8
# # Copyright 2015 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 # # Unless required by applic...
ampproject/amppackager
vendor/github.com/ampproject/amphtml/validator/validator_gen_js.py
Python
apache-2.0
37,258
[ "VisIt" ]
cf925bc9772b04de218b0cc06307556fdfa4c113c0aa93d6a4e738e72f371855
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Kyle A. Beauchamp # Contributors: Robert McGibbon # # MDTraj i...
kyleabeauchamp/mdtraj
mdtraj/nmr/shift_wrappers.py
Python
lgpl-2.1
12,264
[ "MDTraj" ]
f7412dc25e2c7d426b69ff74009864e6ee6bfbb458d57550fc7ebf8a732416cc
# -*- coding: utf-8 -*- """ """ from __future__ import absolute_import from ._utils import _cd from ..unitquantity import UnitConstant N_A = L = Avogadro_constant = UnitConstant( 'Avogadro_constant', _cd('Avogadro constant'), symbol='N_A' ) n_0 = Loschmidt_constant = UnitConstant( 'Loschmidt_constant...
AdaptiveApplications/carnegie
tarc_bus_locator_client/quantities-0.10.1/quantities/constants/statisticalmechanics.py
Python
mit
1,648
[ "Avogadro" ]
f2df8b6e65a3aab739ec39295f5815b614b0b4c2f68bd5226a573aa81fbb03b8
import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from os.path import join from . import mp_cent_dens from . import add_version_plot from . import prep_plots from . prep_plots import grid_x, grid_y, figsize_x, figsize_y def main(npd, cld_i, pd, clp): """ Make A2 block plots. """ ...
asteca/ASteCA
packages/out/make_A2_plot.py
Python
gpl-3.0
2,412
[ "Gaussian" ]
145c12c57aceee5b1e6386ab816e7e2f4a2ef0cad37812c2be6a6e6d60bd54d4
#!/usr/bin/env python # -*- coding: utf-8 -*- #This module calculates statistics and saves it to a file import numpy as np import stat_functions as stat from scipy import stats as scstats import functions as fu import loglikelihood as logl from tkinter import font as tkfont import tkinter as tk STANDARD_LENGTH=8 c...
espensirnes/paneltime
build/lib.win-amd64-3.7/paneltime/stat_object.py
Python
gpl-3.0
5,294
[ "ADF" ]
db93ded9862e796782301579c88d67a1651423ecffe400bdbe9b1f3d5fdbb30e
# # A number of functions which can be used to generate different types of noise, # which can then be added to model output to simulate experimental data. # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright...
martinjrobins/hobo
pints/noise.py
Python
bsd-3-clause
9,614
[ "Gaussian" ]
c2d87aa104a0897771d1b1e5508b99ec52e550397e55f3741f6624ff8181b63d
import fileinput import math import collections import time import numpy as np from pylab import * from matplotlib import pyplot as plt import matplotlib.mlab as mlab #file_path = '/media/ABB4-4F3A/DATALOG.TXT' file_path = 'DATALOG.TXT' def split_in_blocks(txt_file, pattern): ''' Find the last appears of the text t...
gmartinvela/OpenRocket
generate_statistics_from_SD.py
Python
mit
7,682
[ "Gaussian" ]
cc6c40a69c1b27edce41269b3e96addafa07b803055dcc8addfa3ca70b466128
""" BigchainDB: A Scalable Blockchain Database For full docs visit https://bigchaindb.readthedocs.org """ from setuptools import setup, find_packages tests_require = [ 'pytest', 'coverage', 'pep8', 'pyflakes', 'pylint', 'pytest', 'pytest-cov', 'pytest-xdist', 'pytest-flask', ] de...
bigchaindb/bigchaindb-examples
setup.py
Python
apache-2.0
2,007
[ "VisIt" ]
f6729395bb52362ec14fec492655f15b2f37a11f2c923f9689d45b181d71bbc5
""" This object is a small tool to allow user to quickly determine the variance in q from the instrumental parameters. """ import sys from math import pi, sqrt import math import logging import numpy as np from .instrument import Sample from .instrument import Detector from .instrument import TOF as Neutron from .in...
SasView/sasview
src/sas/sascalc/calculator/resolution_calculator.py
Python
bsd-3-clause
39,431
[ "Gaussian" ]
a5f2c46d9d565457e9f084ac1c5fa8a7f363102b283dca0b8c1969dd16c4fc7d
"""Protocol and threaded interface for data acquisition.""" import time import numpy from PyQt5 import QtCore from axopy.messaging import Transmitter from axopy.gui.main import get_qtapp, qt_key_map from axopy.pipeline import Filter class DaqStream(QtCore.QThread): """Asynchronous interface to an input device. ...
ucdrascal/axopy
axopy/daq.py
Python
mit
11,328
[ "Gaussian" ]
c9f9727b5784d3f8e41b529307be74355a0e69a6686e66db0e2316821ba5a855
# -*- 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-compute
tests/unit/gapic/compute_v1/test_region_disks.py
Python
apache-2.0
183,067
[ "Octopus" ]
40a79702f2b10b056300b5f13b0e3f40ecf046b23e2a354e4879d643afe286c4
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageBlend(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.vtk...
chrisidefix/devide
modules/vtk_basic/vtkImageBlend.py
Python
bsd-3-clause
505
[ "VTK" ]
44533d6fa5f9b151d00323fe593e6841bc96377531ae7a72273445b3cb357b48
import numpy as np from numpy.linalg import inv import vtk #import vtk.util.numpy_support as converter from vtk.io import vtkPLYReader import h5py from pipeline_config import COLOR_OCTOMAP_H5_FILE,\ GPS_FILE, EXPORT_START, EXPORT_STEP, EXPORT_NUM,\ OCTOMAP_H5_FILE, STATIC_VTK_FILE, DYNAMIC_VTK_FILE, MAP...
sameeptandon/sail-car-log
mapping/viz/blockworld.py
Python
bsd-2-clause
10,247
[ "VTK" ]
082d8c2db3df584602b023a28fca0088593fde271b5283dce41f225cde28afcc
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Scientific Package. This package holds all simulators, and # analysers necessary to run brain-simulations. You can use it stand alone or # in conjunction with TheVirtualBrain-Framework Package. See content of the # documentation-folder for more details. See also http://ww...
echohenry2006/tvb-library
tvb/simulator/demos/region_deterministic_stimulus.py
Python
gpl-2.0
4,737
[ "Gaussian" ]
b2941f07ec9b9e1d3c7d90f65f911edad40517c9bc2df4cbb900bc57b58a37fd
#!/usr/bin/env python import ROOT import numpy as numpy import array import io, os, sys import optparse import commands from UserCode.HGCanalysis.PlotUtils import * from UserCode.HGCanalysis.HGCTree2Workspace import * INTEGMIPEM=None WEIGHTINGSCHEME=None """ Starts weighting scheme """ def initWeightingScheme(opt) :...
lgray/HGCanalysis
test/analysis/runPionCalibration.py
Python
gpl-3.0
74,020
[ "Gaussian" ]
47ec75f64731eecb2f2e26ca74771e201a8aa96c5d7b762023c96e13bb71d202
from __future__ import division, print_function, absolute_import import networkx as nx import numpy as np from matplotlib import pyplot as plt from scipy.spatial.distance import cdist from .utilities import DifferenceKernel from .SafeMDP_class import (reachable_set, returnable_set, SafeMDP, ...
befelix/SafeMDP
safemdp/grid_world.py
Python
mit
25,021
[ "Gaussian" ]
9685f44f862f354f2adde8883f6d22d193ab46bad946123d623c05d1d15f3598
#!/usr/bin/env python ######################################################################## # File : dirac-jobexec # Author : Stuart Paterson ######################################################################## """ The dirac-jobexec script is equipped to execute workflows that are specified via their XML...
ic-hep/DIRAC
src/DIRAC/WorkloadManagementSystem/scripts/dirac_jobexec.py
Python
gpl-3.0
4,315
[ "DIRAC" ]
362205e8069b1689a2fe489e01ce4f23f551aeec7f442d528ddd6078cfbac148
## # Copyright 2009-2016 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
ocaisa/easybuild-easyblocks
easybuild/easyblocks/o/openfoam.py
Python
gpl-2.0
19,042
[ "ParaView" ]
1070fe13f5617aaa0d82518d74c5269b8b39533a880930902a166f4d2ddba3bf
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Orca documentation build configuration file, created by # sphinx-quickstart on Tue Apr 7 16:19:37 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
UDST/orca
docs/source/conf.py
Python
bsd-3-clause
8,328
[ "ORCA" ]
c5ab5182a56d4fc6a8abfec81dffffa3ab6229e108b04e54c6be9672b3c88b22
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Deep learning via word2vec's "skip-gram and CBOW models", using either hierarchical softmax or negative sampling [1]_ [2]_. The train...
wtgme/labeldoc2vec
build/lib.linux-x86_64-2.7/gensim/models/word2vec.py
Python
lgpl-2.1
92,365
[ "VisIt" ]
ed070889c72e224773d97d0227c785e1f552302d568ca6c74a7331a7fea90145
"""A meta-component that allows a component to be optionally enabled or disabled. This component is mostly for illustration and is not used anywhere. This is because it is usually much easier to simply add a trait in the module to enable/disable a particular component. """ # Author: Prabhu Ramachandran <prabhu_r@use...
dmsurti/mayavi
mayavi/components/optional.py
Python
bsd-3-clause
4,594
[ "Mayavi" ]
fb943d6bed6685e3ff83aa2831194933a38f995a58356c800fa8953731213cdd
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' cc_plugin_ncei/ncei_timeseries_profile.py ''' from compliance_checker.base import BaseCheck from cc_plugin_ncei.ncei_base import TestCtx, NCEI1_1Check, NCEI2_0Check from cc_plugin_ncei import util from isodate import parse_duration class NCEITimeSeriesProfileOrthogon...
ioos/cc-plugin-ncei
cc_plugin_ncei/ncei_timeseries_profile.py
Python
apache-2.0
32,990
[ "NetCDF" ]
b3cd526f2e2ecf21df1f548cc02e0c459893618c7e4861042bf6b42347d96fa0
""" EvMenu This implements a full menu system for Evennia. It is considerably more flexible than the older contrib/menusystem.py and also uses menu plugin modules. To start the menu, just import the EvMenu class from this module. Example usage: ```python from evennia.utils.evmenu import EvMenu EvMenu(calle...
titeuf87/evennia
evennia/utils/evmenu.py
Python
bsd-3-clause
39,605
[ "VisIt" ]
45cb217936ef02c734b14ca541a36c8e2ddbe755eb29c5d07a23dc7f3d3fe31a
''' hw4_2.py A single cell driven by synaptic inputs. Written by Sungho Hong, Computational Neuroscience Unit, OIST, 2017 ''' from neuron import h, gui h.load_file("stdrun.hoc") h.load_file("CNSutils.hoc") # CNSsaveVectors # The simulation will run for 100 ms. h.tstop = 300 # Global sampling period will be 0.1 ms ...
shhong/a310_cns_2017
Assignment_4/hw4_2.py
Python
gpl-3.0
2,504
[ "NEURON" ]
b2f755c75c2fb82ea050accd3d2f585babf91f9565a9084628ab572f8b494887
""" ============================================= Integration and ODEs (:mod:`scipy.integrate`) ============================================= .. currentmodule:: scipy.integrate Integrating functions, given function object ============================================ .. autosummary:: :toctree: generated/ quad ...
teoliphant/scipy
scipy/integrate/__init__.py
Python
bsd-3-clause
1,850
[ "Gaussian" ]
be24f8b451d8b7d2002ef186d66697988e0abb72d88091019a17d2538ed64ce6
""" KeepNote General rich text editor that saves to HTML """ # # KeepNote # Copyright (c) 2008-2009 Matt Rasmussen # Author: Matt Rasmussen <rasmus@mit.edu> # # 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...
reshadh/Keepnote-LaTeX
keepnote/gui/richtext/__init__.py
Python
gpl-2.0
46,902
[ "VisIt" ]
46055e730cdb2dfa406687b90cf63d721b7f8828a638aff9152b5a54fbe934ac
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ========================================================================= Program: Visualization Toolkit Module: TestNamedColorsIntegration.py Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www....
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/TestAllMaskBits.py
Python
gpl-3.0
3,568
[ "VTK" ]
a6c0e881c9c7c73e76490ae6b697c9cbfcc375d03285b05797571998f4692ac4
import ssl from sleekxmpp import ClientXMPP from ShadowLogger import ShadowLogger from Constants import Constants class LoLChat(ClientXMPP): users = [] def __init__(self, shadow, loldb, jid, password): self.shadow = shadow self.loldb = loldb self.INTERCONTINENT = self.loldb.GetSetting("LoLRedbackID") #Crea...
RedbackThomson/LoLShadow
LoLChat.py
Python
mit
5,800
[ "VisIt" ]
fb05c4d267c4c212478e6a95e0e46ada065e3a1af2ba8b83f125abc7df2e3059
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2012 Hewlett-Packard Development Company, L.P. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the L...
scripnichenko/nova
nova/tests/unit/matchers.py
Python
apache-2.0
18,988
[ "VisIt" ]
0e2c6f32d21553062b257d9dc966a323d511cbf17380661f9e69384cccc69417
import os import cPickle from sys import argv ATOMS = ["H", "C", "N", "O", "S", "P"] def read_charges(filename): """ Reads NPA charges from an outputfile containing NPA/NBO output """ f = open(filename, "r") lines = f.readlines() f.close() start_line = 0 end_line = 0 for i, line in ...
andersx/dftbfit
scripts/parse_orca.py
Python
bsd-2-clause
1,786
[ "Gaussian" ]
00271c4cbacc9f65069a1931125d637a13855228b98872649988038ebd56c297
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Modified parameters file for the Hybrid LFP scheme, applying the methodology with the model of: Potjans, T. and Diesmann, M. "The Cell-Type Specific Cortical Microcircuit: Relating Structure and Activity in a Full-Scale Spiking Network Model". Cereb. Cortex (2014) 24 (...
espenhgn/hybridLFPy
examples/Hagen_et_al_2016_cercor/cellsim16popsParams_default.py
Python
gpl-3.0
39,405
[ "Gaussian", "NEURON" ]
a0159324ea7e2bcf223a2a03874ca9c7a4cec52c44a0bd6f7b734d0206548df7
import numpy as np from matplotlib import pyplot import rft1d eps = np.finfo(float).eps #smallest float #(0) Set parameters: np.random.seed(0) nResponses = 2000 nNodes = 101 FWHM = 10.0 interp = True wrap = True heights = [2.2, 2.4, 2.6, 2.8] ### generate data: y ...
0todd0000/rft1d
rft1d/examples/val_upx_0_gauss_cluster.py
Python
gpl-3.0
1,372
[ "Gaussian" ]
e084ff2721f39f08a28ff53e3bb83f2a799476ad7e6664500d23e9b898826b09
import struct, zlib, sys, re, os, gzip, random import Bio.Align #import Bio.Format.BamIndex as BamIndex from Bio.Sequence import rc from cStringIO import StringIO from string import maketrans from Bio.Range import GenomicRange from subprocess import Popen, PIPE _bam_ops = maketrans('012345678','MIDNSHP=X') _bam_char = ...
jason-weirather/Au-public
iron/pythonlib/Bio/Format/Sam.py
Python
apache-2.0
29,728
[ "Biopython" ]
280839cea3b1c48f639db57149fcc354f1155e6e75e8b36db05b44a954c5598c
# - Coding UTF8 - # # Networked Decision Making # Development Sites (source code): # http://code.google.com/p/global-decision-making-system/ # http://github.com/NewGlobalStrategy/NetDecisionMaking # # Demo Sites (Google App Engine) # http://netdecisionmaking.appspot.com # http://globaldecisionmaking.appspot.co...
NewGlobalStrategy/NetDecisionMaking
controllers/event.py
Python
mit
21,172
[ "VisIt" ]
344ae084912904dee568726ba9fe4f719c38573e60a03acaaac67645645080c9
# ============================================================================== # Copyright 2015 The Paragon 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 # ...
Klaminite1337/Paragon
WindowsBoot.py
Python
mit
25,298
[ "Gaussian" ]
30c3863ec1796fc688e68739caff31c6ba4ddb059f2d481a1cb63a2808637ab4
#!/usr/bin/python # Code to read in years of hourly high resolution ERA5 t, td and land_sea_mask data # Converts to q, RH, e, tw and DPD # Aggregates to daily average # Regrids to 1by1 degree and shifts to -179.5 ot 179.5 and 180 lats from 89.5 to -89.5 (was 181 lats!!!) # Outputs as netCDF # Later code will read in ...
Kate-Willett/Climate_Explorer
PYTHON/get_era5.py
Python
cc0-1.0
21,719
[ "NetCDF" ]
d714684b152e01bd7850ecf52a83730cf4b73bf3c19c89524097f3cf1253bab0
import sys, string import export import math import random import copy import os import os.path import unique R_present=True try: ### If file is present use this location loc = unique.filepath('Config/R_location.txt') s = open(loc,'r') useStaticLocation=s.read() #print useStaticLocation #print ...
wuxue/altanalyze
R_interface.py
Python
apache-2.0
52,813
[ "Bioconductor" ]
bd17639fb37642be3e554259acb58c0bde169feb488a6450b7bdd83df218f929
#!/usr/bin/env python import vtk # arrow.py adapted from the C++ vtk examples and translated to python. def main(): colors = vtk.vtkNamedColors() arrowSource = vtk.vtkArrowSource() # arrowSource.SetShaftRadius(0.01) # arrowSource.SetTipLength(.9) # Create a mapper and actor mapper = vtk.vt...
lorensen/VTKExamples
src/Python/GeometricObjects/Arrow.py
Python
apache-2.0
934
[ "VTK" ]
7dc22f8acb834110373427db46aec19416eeab361c0f4e0e86ab527a635b3c09
# Copyright (C) 2012 Mathias Brodala # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that...
eri-trabiccolo/exaile
plugins/osd/__init__.py
Python
gpl-2.0
12,493
[ "FLEUR" ]
b6be84be918145dede23ff25988addfe06e12f0127e84e53370abac07ebc4b19
# test_efield.py --- # # Filename: test_efield.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Wed Sep 28 12:31:43 2011 (+0530) # Version: # Last-Updated: Wed Sep 28 16:10:11 2011 (+0530) # By: Subhasis Ray # Update #: 118 # URL: # Keywords: # Compatibility: # # # Commentary: ...
BhallaLab/moose-thalamocortical
TESTS/pymoose/test_efield.py
Python
lgpl-2.1
4,572
[ "MOOSE" ]
565ea0db78a678b0ab7fef3ed844ca77b06db10d36848710d0393e423ca813b9
""" ======================================= Signal processing (:mod:`scipy.signal`) ======================================= Convolution =========== .. autosummary:: :toctree: generated/ convolve -- N-dimensional convolution. correlate -- N-dimensional correlation. fftconvolve --...
bkendzior/scipy
scipy/signal/__init__.py
Python
bsd-3-clause
12,650
[ "Gaussian" ]
030a40a7e98de0d6a9b04202e62895c096b766d65f7b96eabd2305bcc8b95ba6
#!/usr/bin/env python # # Author: Qiming Sun <osirpt.sun@gmail.com> # ''' The force from QM region acting on the background MM particles. ''' from functools import reduce import numpy from pyscf import gto, scf, mp, qmmm mol = gto.M(atom=''' C 1.1879 -0.3829 0.0000 C 0.0000 0.5526 0.0000 O -1.18...
sunqm/pyscf
examples/qmmm/30-force_on_mm_particles.py
Python
apache-2.0
6,522
[ "PySCF" ]
f8009fe5a86e259e088efde319ec262d284dbdcc5cce5123139509a567f53eb1
from rest_framework import viewsets, permissions, mixins from rest_framework.exceptions import PermissionDenied from timetable.models import WorkingHour from users.models import Doctor, Patient, User from .models import Visit from .serializers import VisitSerializer class VisitViewSet(viewsets.GenericViewSet, ...
vechnoe/clinic
src/apps/reception_office/views.py
Python
mit
1,116
[ "VisIt" ]
75453aaf228a21d7264f56f933dfc3d3b78d27001958d0d415f625618a4d2491
import pytest from ceph_deploy.cli import get_parser COMP_FLAGS = [ 'mon', 'mds', 'rgw', 'osd', 'common', 'all' ] class TestParserInstall(object): def setup(self): self.parser = get_parser() def test_install_help(self, capsys): with pytest.raises(SystemExit): self.parser.pa...
SUSE/ceph-deploy-to-be-deleted
ceph_deploy/tests/parser/test_install.py
Python
mit
6,476
[ "Firefly" ]
bfb67847a2924ff1a29523598fab4924e6ebc1e77cb9b58175c909adeda1b6a7
#!/usr/local/bin/python -i # preceeding line should have path for Python on your machine # simple.py # Purpose: mimic operation of couple/simple/simple.cpp via Python # Syntax: simple.py in.lammps # in.lammps = LAMMPS input script import sys # parse command line argv = sys.argv if len(argv) != 2: print ...
jcarlson23/lammps
python/examples/simple.py
Python
gpl-2.0
1,043
[ "LAMMPS" ]
78d5a6ad27180ee89d51fa45f37ea5ffc4583cc7a88e0b7d73bcbfb69ad07a9b
# Copyright 2012, 2013 The GalSim developers: # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # # GalSim 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...
mardom/GalSim
galsim/config/value.py
Python
gpl-3.0
38,704
[ "Galaxy", "Gaussian" ]
cd0f46bbc9cbb8f63c0a24d4c48e14c522f21a26c901e60cc7c4b55f9084117d
#pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # # # (c) 2010...
backmari/moose
python/chigger/utils/AxisOptions.py
Python
lgpl-2.1
4,689
[ "MOOSE", "VTK" ]
81833a0caaf94ac2822ecb7c106c57d96db39a88213c339bd47d35756e279ab5
""" dmath v0.9.1 Python math module for Decimal numbers. All functions should return Decimal numbers. Probably only works with real numbers. pi, exp, cos, sin from Decimal recipes: http://docs.python.org/lib/decimal-recipes.html float_to_decimal from Decimal FAQ: http://docs.python.org/lib/decimal-faq.html...
twright/C1000-Intelligent-Calculator
dmath.py
Python
gpl-3.0
15,548
[ "Brian" ]
a7b7ee8be038b998a6aaaf6dcdcf2e9a1521bf6781810a72c31596e9f0ce2c1e
""" ------------ PyMine 1.0.1 ------------ PyMine lets you integrate and visualize biological data used for drug discovery using PyMOL. ------------ REQUIREMENTS ------------ 1) Ubuntu 11.04 or above OR Mac OS X 10.7 or above 2) Pymol 1.7 or above 3) PyMine 1.0.1 ------------ INSTALLATION ------------ 1) Download an...
rrchaudhari/PyMine
pymine.py
Python
mit
46,677
[ "PyMOL" ]
a895ab1e73e3dd63b011a4222a188605dcf0b78d471951073964845dcd66f265
from ase.ga.startgenerator import StartGenerator from ase.ga.utilities import closest_distances_generator from ase.ga.standardmutations import RattleMutation, PermutationMutation import numpy as np from ase.lattice.surface import fcc111 from ase.constraints import FixAtoms # first create two random starting candidates...
askhl/ase
ase/test/ga/mutations.py
Python
gpl-2.0
2,235
[ "ASE" ]
0c758b708a382c49f6b380e6f8051d2b2e5c64ffd3227aa9752937819ed5a311
#!/usr/bin/env python """ toggle between two images by pressing "t" The basic idea is to load two images (they can be different shapes) and plot them to the same axes with hold "on". Then, toggle the visible property of them using keypress event handling If you want two images with different shapes to be plotted wit...
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/mpl_examples/pylab_examples/toggle_images.py
Python
mit
1,277
[ "exciting" ]
b8c20b4b89dabf322952a0e8c6ec30efa5aa78c4fb5c1ce68c01a98ea9a5f063
# Filtering BLAST table file (arg1) by coverage & identity (arg2 & arg3) import sys inFile = open(sys.argv[1]) thCov = float(sys.argv[2]) thId = float(sys.argv[3]) for line in inFile: tabs = line.rstrip('\n').split('\t') cov = 100*(float(tabs[5])-float(tabs[4])) / float(tabs[2]) hid = float(tabs[8]) if hid > t...
HaseloffLab/MarpoDB
scripts/filterBlastByCl.py
Python
mit
434
[ "BLAST" ]
43e387ea0a1097e8bc5559f855904166bdc71a40ad5c7944a29b0dee00501596
from paraview.simple import * from paraview import coprocessing #-------------------------------------------------------------- # Code generated from cpstate.py to create the CoProcessor. # ParaView 4.2.0-15-g46ac001 64 bits # ----------------------- CoProcessor definition ----------------------- def CreateCoProce...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/CoProcessing/Adaptors/CamAdaptor/se_coprocess.py
Python
gpl-3.0
3,813
[ "ParaView" ]
99b3875f0bc019818a66cc8f8a6ee3751638cfb79de5b5cd27957e88668e68c3
""" Flask-Tus ------------- Implements the tus.io server-side file-upload protocol visit http://tus.io for more information """ from setuptools import setup setup( name='Flask-Tus', version='0.6.1', url='http://github.com/matthoskins1980/Flask-Tus/', license='MIT', author='Matt Hoskins', aut...
matthoskins1980/Flask-Tus
setup.py
Python
mit
920
[ "VisIt" ]
5d2fd86aff6101def5097f9cb9e01c0c5ebbab83adae5dcd3b95d510440a0d32
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ This script is intended for use as a GYP_GENERATOR. It takes as input (by way of the generator flag config_path) the path of a json file that dictates th...
mikemcdaid/getonupband
sites/all/themes/getonupband/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py
Python
gpl-2.0
31,308
[ "VisIt" ]
ee54264cf37483fe8d47a0fe515e507837097aecbf8eb0e5bf33b92687744f94
__author__ = 'Rob' def atom_pair_energy(atom1, atom2): energy = 0 import math sep = math.sqrt((atom1[0] - atom2[0]) ** 2 + (atom1[1] - atom2[1]) ** 2 + (atom1[2] - atom2[2]) ** 2) if sep != 0: # avoid divide by zero for an atom being paired with itself energy = (atom1[3] * atom2[3]) / sep ...
rpt26/coulomb_energy
coulomb_utils.py
Python
mit
2,557
[ "CRYSTAL" ]
d343322e7a690633129a9023894a1788c77f90502bc2703efaa8b18c29f5a8e2
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkExtractSelectedFrustum(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
chrisidefix/devide
modules/vtk_basic/vtkExtractSelectedFrustum.py
Python
bsd-3-clause
518
[ "VTK" ]
4344d9ae0c8e62de6ab0f3356d10a6df7e97e602e7994556be98709c2e5aad88
""" =============================================== Compute all-to-all connectivity in sensor space =============================================== Computes the Phase Lag Index (PLI) between all gradiometers and shows the connectivity in 3D using the helmet geometry. The left visual stimulation data are used which pro...
MadsJensen/malthe_alpha_project
connectivity_analysis.py
Python
mit
3,720
[ "Mayavi" ]
4a5f1fd391bfba736c1da34d5b8143b53165469173636c8ac53652f708e92df1
#!/usr/bin/env python """ This example shows how to create an unstructured grid. """ import vtk def main(): colors = vtk.vtkNamedColors() x = [[0, 0, 0], [1, 0, 0], [2, 0, 0], [0, 1, 0], [1, 1, 0], [2, 1, 0], [0, 0, 1], [1, 0, 1], [2, 0, 1], [0, 1, 1], [1, 1, 1], [2, 1, 1], [0, 1, 2], [1, 1, 2], [...
lorensen/VTKExamples
src/Python/UnstructuredGrid/UGrid.py
Python
apache-2.0
2,790
[ "VTK" ]
1fa10bf8111eb6fd7694c1103b12bafc7194c57548045c7cd68a3505a8225c2d
# Copyright 2014 Mark Chilenski # This program is distributed under the terms of the GNU General Purpose License (GPL). # Refer to http://www.gnu.org/licenses/gpl.txt # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fr...
markchil/profiletools
profiletools/core.py
Python
gpl-3.0
88,014
[ "Gaussian", "NetCDF" ]
d4793fb80bfcc4dc7a1220604003012e28705581964d6f579a6ca3539bb050b8
#!/usr/bin/env python # # Copyright (C) 2009-2011 University of Edinburgh # # This file is part of IMUSim. # # IMUSim 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 y...
spaghetti-/imusim
setup.py
Python
gpl-3.0
2,664
[ "Mayavi" ]
e24250be2b6c3feabeff13374c82a7960ea71a244d4b7a3a30044e39e4381e35
""" Sigma_MonteCarlo """ import numpy as np from scipy import interpolate import halomodel as hm import matplotlib.pyplot as plt from matplotlib import rc, rcParams rc('text', usetex=True) rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"] CosPar={'Omega_M':0.3, 'Omega_L':0.7, 'Omega_b':0.045, 'Omega_nu':1e-5,...
guangtunbenzhu/BGT-Cosmology
Examples/LRG-MgII/Sigma_MonteCarlo_saturated.py
Python
mit
47,529
[ "Galaxy" ]
f0f4008b90bdff4913fcc3afdf2e81b589411cd727e5ee07c245c7544d55a4ec
import copy import datetime import functools import logging import random from typing import ( Callable, Dict, List, Mapping, MutableMapping, MutableSequence, Optional, cast, ) from uuid import UUID from ruamel.yaml.comments import CommentedMap from schema_salad.exceptions import Valida...
common-workflow-language/cwltool
cwltool/workflow.py
Python
apache-2.0
18,689
[ "VisIt" ]
e2eaa6f8ab3d84cf502ac7b0a6bfbd257ec0ba126341612c8e4730b39e2de149
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (c) 2012 Cubic ERP - Teradata SAC. (http://cubicerp.com). # # This program is free software: you can redistribute it and/or modify # it under th...
jmesteve/openerp
openerp/addons/delivery_routes/delivery.py
Python
agpl-3.0
33,481
[ "VisIt" ]
9b6ae73f4f557488d7c543e8aaf569654502c7fbeb43d98bd7282c7368889e30
""" Fits binary source model using EMCEE sampler. The code simulates binary source light curve and fits the model twice: with source flux ratio found via linear regression and with source flux ratio as a chain parameter. """ import os import sys import numpy as np import matplotlib.pyplot as plt try: import emcee ...
rpoleski/MulensModel
examples/example_11_binary_source.py
Python
mit
5,751
[ "exciting" ]
2bbdbeb8c3b08d14216898a8e150d3007ee14586a22e900d680d77c27ce079dc
#!/usr/bin/env python from ase.visualize import view from ase.lattice.surface import fcc111, add_adsorbate from gpaw import GPAW from gpaw.mixer import MixerSum from gpaw import dscf filename='homo' #------------------------------------------- c_mol = GPAW(nbands=9, h=0.2, xc='RPBE', kpts=(8,6,1), spin...
qsnake/gpaw
doc/documentation/dscf/homo.py
Python
gpl-3.0
1,793
[ "ASE", "GPAW" ]
3ededd1ef7903059f795d85a272dd68fb291587bbbbdc7ea88791503959ee9f3
#!/usr/bin/env python # Written by Daniel Barshis, June 2011 import sys #sys.argv[1] Input file is a list of contig names in a single column with ContigName as the column header #sys.argv[2] Output file name #sys.argv[3:] Any number of files to add columns from #makes a dictionary of a file where the first column i...
cuttlefishh/papers
vibrio-fischeri-transcriptomics/code/python/ParseExpression2BigTable_counts.py
Python
mit
2,760
[ "BLAST" ]
b307d3daa3522d0fe8d3a9c87dc9a886296f1478bf70ad348b65f0b8a72dbcd7
import numpy as np import os try: import netCDF4 as netCDF except: import netCDF3 as netCDF import matplotlib.pyplot as plt import time from datetime import datetime from matplotlib.dates import date2num, num2date import pyroms import pyroms_toolbox import _remapping class nctime(object): pass def remap_bio_...
kshedstrom/pyroms
examples/cobalt-preproc/Initial_bio/remap_bio_glodap.py
Python
bsd-3-clause
4,385
[ "NetCDF" ]
0f4daa6e85c51a2006e255ae7436c6c8b10e3bc695686da9a07829de44eecae7
# 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 # d...
julianwang/cinder
cinder/flow_utils.py
Python
apache-2.0
2,961
[ "VisIt" ]
f11d3000ad593398460a0d707afcb7dd94bbc34227892d5ea2fa6f6415ceb899
import os import sys import time import config import numpy as np from scipy import integrate from scipy import special from scipy.interpolate import interp1d, InterpolatedUnivariateSpline import pylab as pl from numba import jit import timeit #import fastcorr from CosmologyFunctions import CosmologyFunctions from mass...
vvinuv/HaloModel
halowlsz/halomodel_cl_WL_tSZ_z.py
Python
gpl-3.0
19,200
[ "TINKER" ]
ac227e509bd03084e25ea17699dd8ee0d89c62f522e2bdde3067897ea7c90caf
#!/usr/bin/env python2 # # Copyright 2001 - 2016 Ludek Smid [http://www.ospace.net/] # # This file is part of Outer Space. # # Outer Space 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...
dahaic/outerspace
outerspace.py
Python
gpl-2.0
7,215
[ "Galaxy" ]
15bd8ae88630af0c43e002e048e4e8014742851553b49ada403aee1831e726c7
from __future__ import print_function # # Copied from VTK/Common/Testing/Python/PythonSmoke.py # import qt try: import vtk except: print("Cannot import vtk") qt.QApplication.exit(1) try: print(dir(vtk)) except: print("Cannot print dir(vtk)") qt.QApplication.exit(1) try: try: try: o = vtk.vt...
SINTEFMedtek/CTK
Applications/ctkSimplePythonShell/Testing/Python/vtkPythonSmoke.py
Python
apache-2.0
896
[ "VTK" ]
1f50091a0c3b27b1cadfac3d5ed7a0f1466abd0e85aa01342e6cd05cfefe997f
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
ElDeveloper/qiita
qiita_db/software.py
Python
bsd-3-clause
70,632
[ "VisIt" ]
4f0b6fad9e4b654aba76e03ff754244dddac44141577730a65b03895fe36821d
""" ----------- Setup stage ----------- *** Identify residues in the molecule - playground/rotamer/identify_residue.py *** Find dihedrals and store atom identities. - playground/rotamer/find_dihedrals.py * Choose backbone-dependent, local environment etc. to determine what sort of library data to generate. * Read in r...
khs26/rotamer_library
rotamer/rotamer_move.py
Python
mit
924
[ "Amber" ]
2303992b5c5ba41f084e8290b2b92c0f75a70b6abd64988bff417ef3b10c8e67
# Hop --- a framework to analyze solvation dynamics from MD simulations # Copyright (c) 2007-2010 Oliver Beckstein <orbeckst@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either v...
Becksteinlab/hop
hop/density.py
Python
gpl-3.0
30,548
[ "CRYSTAL", "Gaussian", "MDAnalysis", "VMD" ]
34cd57610e0c1a14acd5f7d901cf94a7aba1de39c468c2439917948696fc03b5
## # Copyright 2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (FWO) (...
bartoldeman/easybuild-easyblocks
easybuild/easyblocks/q/qt.py
Python
gpl-2.0
5,353
[ "VisIt" ]
31e324b1203b05927f2a614fde0e48327eae1bca4f4b49637a9956a0fc33bee9
# Lint as: python3 # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
tensorflow/lingvo
lingvo/core/py_utils.py
Python
apache-2.0
235,298
[ "Gaussian" ]
76e4301473db9965712e30c37e8e4bd9775fd17c44f1861add66620459fbe01c
#!/usr/bin/env python # -*- coding:utf-8 -*- import sys from antlr4 import * from antlr4.InputStream import InputStream from antlr4.error.ErrorStrategy import DefaultErrorStrategy from UnitXLexer import UnitXLexer from UnitXParser import UnitXParser from eval_visitor import EvalVisitor from eval_error_strategy import ...
0ED/UnitX
unitx/example.py
Python
mit
6,946
[ "VisIt" ]
38f47bf213d215d864cf031a9e65c2ca2b51f529a32df955b5e3a87478d71224
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
Stargrazer82301/CAAPR
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/core/kernel.py
Python
mit
13,284
[ "Gaussian" ]
b65766b5496e3019247fc382896bd6293e1ccb7962f8f1a51b504ffc636b1167
#!/usr/bin/env python3 # This script assumes the ASTE binaries and python scripts are in $PATH # Furthermore, execute in ./contrib/timestep-demo or copy precice.xml from there to $PWD import os, subprocess def run(cmd): print("+ " + cmd) subprocess.run(cmd, shell = True, check = True) # Get bunny and red blo...
precice/aste
contrib/timestep-demo/demo.py
Python
gpl-3.0
1,334
[ "VTK" ]
661908582d8076892e99b698367ceccea585cf93056492ad87d81b0a20b0d270
import requests import numpy as np import h5py baseUrl = 'http://www.illustris-project.org/api/' headers = {"api-key":"cc4ff6392e79c9e08c158e5ae5493718"} # Routine to pull data from online def get(path, params=None, fName='temp'): # gets data from url, saves to file # make HTTP GET request to path r = req...
zpenoyre/illustris
illustrisAPI/data.py
Python
mit
5,130
[ "Galaxy" ]
124b3e425ccd6de6d58bca8806cf41e66296ac3ecb197b6095543a24caeafb35
#!/usr/bin/python import matplotlib.pyplot as plt import numpy from scipy.special import erfc import math import glob import re def setAxLinesBW(ax): """ Take each Line2D in the axes, ax, and convert the line style to be suitable for black and white viewing. """ MARKERSIZE = 3 COLORMAP = { ...
martinjrobins/RD_3D
scripts/plot.py
Python
lgpl-3.0
12,174
[ "Smoldyn" ]
81ffd7b4cc9bde770361b51164971bbad8124b5454eabd8382fc0231225574d2
#!/usr/bin/env python # PythonJS to C++ Translator # by Brett Hartshorn - copyright 2014 # License: "New BSD" import os, sys import ast import pythonjs_to_rust JVM_HEADER = ''' #include <jni.h> JavaVM* __create_javavm__() { JavaVM* jvm = new JavaVM(); JNIEnv* env; JavaVMInitArgs args; JavaVMOption options[2]; ar...
kustomzone/Rusthon
pythonjs/pythonjs_to_cpp.py
Python
bsd-3-clause
9,155
[ "VisIt" ]
7f878dc45e62c77ea0e0f5571452ffc2662274232e69c6b91c5552d43dd7ec84
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from typing import Tuple import numpy as np from ...quadrature.interfaces.base_gp import IBaseGaussianProcess from .warped_bq_model import WarpedBayesianQuadratureModel from .warpings import IdentityWarpi...
EmuKit/emukit
emukit/quadrature/methods/vanilla_bq.py
Python
apache-2.0
3,029
[ "Gaussian" ]
c4766f9a5c032903358ba6e22364f48683df307d5ed19c4f5be2749e48cf0489