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
#!/usr/bin/env """ Chuckchi_Winds_NARR_model_prep.py Retrieve NARR winds for one locations Icy Cape Line, Ckip2 Latitude = 70.8401 Longitude = 163.2054 Filter NARR winds with a triangular filter (1/4, 1/2, 1/4) and output every 3hrs Provide U, V Save in EPIC NetCDF standard python 2.7 only """ #System St...
shaunwbell/FOCI_Analysis
NARR_daily_WindsSFCtemp_Station.py
Python
mit
10,585
[ "NetCDF" ]
516fde6e12004d247bc32b820baed0b1747e1770840b32007cbc6d6c2e201426
#!/usr/bin/env python """Copyright 2010 Phidgets Inc. This work is licensed under the Creative Commons Attribution 2.5 Canada License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/ """ __author__ = 'Adam Stelmack' __version__ = '2.1.8' __date__ = 'May 17 2010' #Basi...
dborrero/Reed-Taylor-Couette
Old Code/Stepper-tests.py
Python
gpl-2.0
5,282
[ "VisIt" ]
3b369057312e83b8d8c24343bcd5443a1bd9e03f3c3979a271ad847235f9c51c
# Copyright 2019 The MediaPipe Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
google/mediapipe
mediapipe/examples/desktop/media_sequence/kinetics_dataset.py
Python
apache-2.0
20,519
[ "Brian" ]
d198f6371048b0d62acdeb0ac0ecfa686f4522d140e519193969fa11807bd001
from utils import pickle_write, pickle_load from projections import Projections from sampling import Sampling import time import os import logging logger = logging.getLogger(__name__) def comp_sketch(matrix, objective, load_N=False, save_N=False, N_dir='../N_file/', **kwargs): """ Given matrix A, the function ...
chocjy/randomized-LS-solvers
src/comp_sketch.py
Python
apache-2.0
7,388
[ "Gaussian" ]
932a124f2bb52f80ce3739c2443553810edc743d9e01f67e5b8c764822f45adf
""" Module for testing tst module. """ __author__ = 'wittawat' import autograd.numpy as np import matplotlib.pyplot as plt import freqopttest.data as data import freqopttest.util as util import freqopttest.kernel as kernel import freqopttest.tst as tst import freqopttest.glo as glo import scipy.stats as stats import...
wittawatj/interpretable-test
freqopttest/test/test_tst.py
Python
mit
4,093
[ "Gaussian" ]
049183fa9d645daba5183593a34e6ef6297336375b4ec7c4f1d59c93672bdcc5
# 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...
usc-isi/essex-baremetal-support
nova/tests/network/test_manager.py
Python
apache-2.0
72,563
[ "FEFF" ]
643422c6b1829ad3ac00dd0d0503bc550b12298c447cab4cf3b8643398f0134b
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Netius System # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Netius System. # # Hive Netius System is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Foun...
hivesolutions/netius
src/netius/base/legacy.py
Python
apache-2.0
13,068
[ "VisIt" ]
07ed4c0941fe7ca4e44391aab4bf1c5ff91c018ce590c7a2bab91497509d59aa
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Paul Franklin # # This program is free software; you can redistribute it and/or modify # it under the terms o...
beernarrd/gramps
gramps/plugins/tool/verify.py
Python
gpl-2.0
66,835
[ "Brian" ]
8d16bc1d13fe18afba9368748a57583e90155200f7135ae6ac2152db10c4fc87
#!/usr/bin/python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it ...
kannon92/psi4
doc/sphinxman/document_databases.py
Python
gpl-2.0
1,854
[ "Psi4" ]
fff4eba2df68ee8be412928a323ef9cb480c79263b8df0486b0216273ccc29ad
#!/usr/bin/env python # # vine_utils.py # # Copyright 2009 David Vine <djvine@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 vers...
jbgastineau/cxphasing
cxphasing/vine_utils.py
Python
mit
17,184
[ "NetCDF" ]
aa8ed7c90edd48a5ccf92a01d3f096e552ec78c10d67b41b2045c72be63aad1e
#!/usr/bin/env python import logging logging.basicConfig(format='%(asctime)s %(message)s', level=logging.INFO) import sys import os import subprocess from time import sleep from bgqtools import (get_bootable_blocks, boot_blocks, block_corner_iter, set_unbuffered_stdout) set_unbuffered_stdout()...
marcocaccin/crack2Dglass
run_neb_cp2k.py
Python
gpl-2.0
2,785
[ "CP2K" ]
1c4706096a784229de713d4a2ce0a1ae6824f2bbd955779748079cc17c837a40
import numpy as np import xarray as xr from scipy.signal import filtfilt, gaussian from scipy import stats from dask.array import coarsen, ones_like from dask.array.core import Array import warnings from xarrayutils.utilities import detect_dtype from xarrayutils.filtering import filter_1D as filter_1D_refactored """...
jbusecke/xarrayutils
xarrayutils/utils.py
Python
mit
27,958
[ "Gaussian" ]
c40fcf558b03d96d555149d0bf7d8b093355d9f905276a0285f16339b35d6c77
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals from six.moves import filter, zip import numpy as np import six import collections from numbers import Number import numbers from functools import partial im...
czhengsci/pymatgen
pymatgen/core/units.py
Python
mit
28,044
[ "pymatgen" ]
f8880a4dbaaf3ba483c0d1c7222e6670dad11a31af2ab3c128a91124f13770bd
""" Component wrappers are created by the ``start`` command after the associated component's server has been started. """ import os import sys import time import logging import traceback from functools import partial from cStringIO import StringIO import xml.etree.cElementTree as ElementTree from xml.sax.saxutils impo...
naylor-b/aserver
analysis_server/compwrapper.py
Python
apache-2.0
20,804
[ "VisIt" ]
5f6dea75d0ea53e43bc22fb1d9812c83426227057f61033d0485f2cef521d9bb
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # ParseAllConfigurations - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under...
heromod/migrid
mig/server/ParseAllConfigurations.py
Python
gpl-2.0
1,646
[ "Brian" ]
4eb2aedda034cb1f55f8750ca6d3ade22ee4794f2272e0922b7cefb52a0a4d74
# A Radial Basis Function (unit) has three things that can be learned: # center - the model vector # radius - radius of the function # weight - weighting of this node __author__ = "Douglas Blank <dblank@brynmawr.edu>" __version__ = "$Revision: 2587 $" import numpy.oldnumeric as Numeric import math, random ...
emilydolson/forestcat
pyrobot/brain/rbf.py
Python
agpl-3.0
1,509
[ "Gaussian" ]
1f3161f292e41e463da7170a482164b6c173e5fba4be8221eccfc136f5f15b25
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2011 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 option) a...
Panos512/invenio
modules/pdfchecker/lib/arxiv_pdf_checker_regression_tests.py
Python
gpl-2.0
12,516
[ "CRYSTAL" ]
e1340688cec01fac7e86eda23a945451d51dd366b3239354d9fd21e9fcd7b4d4
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO objects to model high scoring regions between query and hit.""" import sy...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/SearchIO/_model/hsp.py
Python
gpl-2.0
45,624
[ "BLAST", "Biopython" ]
bf7b458832794ac60535e12611b4dcccbaaa15baa621db1f676a74673ef30c27
# -*-python-*- # # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit h...
foresthz/fusion5.1
www/scm/viewvc/lib/dbi.py
Python
gpl-2.0
2,184
[ "VisIt" ]
c9af091fab6610d2159289fb54cf18971e52782aa4efee7199a1262460968981
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html import matp...
harterj/moose
python/mms/ConvergencePlot.py
Python
lgpl-2.1
3,697
[ "MOOSE" ]
36e6809db8e4274f5438bd7e683082878f5ce44513286ab7b2b535f167f7bfb4
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
Bam4d/neon
examples/alexnet.py
Python
apache-2.0
3,704
[ "Gaussian" ]
a47622957a16f279fbd981645df648248d867548848f347c39959259a101777f
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import vtk class ITKtoVTK(NoConfigModuleMixin, ModuleBase): """Convert ITK 3D float data to...
nagyistoce/devide
modules/insight/ITKtoVTK.py
Python
bsd-3-clause
3,131
[ "VTK" ]
86d2446cd2d039896ef6ad9e93a6bfba89a94f41f489ad0e97276f3d70f8a181
#!/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/settings.py
Python
gpl-2.0
5,912
[ "VisIt" ]
3fbb8c080b1ab65cfdcf8572c1806807ffa2d0c8c1b3eabf17ec97e136705439
from scipy.stats import norm, mvn #normal and bivariate normal from numpy import sqrt from numpy import exp from datetime import date, timedelta import datetime as dt import pandas as pd import numpy as np from parameters import x0Vas from Curves.Corporates.CorporateDaily import CorporateRates from Products.Cred...
rrozewsk/OurProject
Curves/PortfolioLoss/PortfolioLossCalculations.py
Python
mit
18,270
[ "Gaussian" ]
779df5b26b2d1a0809b28d4985cf3a153c23fd00115df9c8c5ef9c48a97ee494
from Firefly import logging from Firefly.const import ACTION_OFF, ACTION_ON, COMMAND_SET_LIGHT, DEVICE_TYPE_SWITCH, LEVEL, SWITCH from Firefly.helpers.device import * from Firefly.helpers.device.device import Device from Firefly.helpers.metadata.metadata import action_battery, action_dimmer, action_on_off_switch, actio...
Firefly-Automation/Firefly
Firefly/helpers/device_types/switch.py
Python
apache-2.0
5,854
[ "Firefly" ]
b1b82e70283bed267db44d6f316a38a3f894bfb20a16972a1d8f86614eca4dd1
########################################################################### # # # physical_validation, # # a python package to test the physical validity of MD results # # ...
shirtsgroup/physical-validation
physical_validation/data/gromacs_parser.py
Python
lgpl-2.1
14,389
[ "Gromacs" ]
2b841c6a7b9d7d075e15543360c732a7509226337a5017052c33f9d675912c4e
#!/usr/bin/env python """@namespace IMP.pmi.representation Representation of the system. """ from __future__ import print_function import IMP import IMP.core import IMP.algebra import IMP.atom import IMP.display import IMP.isd import IMP.pmi import IMP.pmi.tools import IMP.pmi.output import IMP.rmf import IMP.pmi....
shanot/imp
modules/pmi/pyext/src/representation.py
Python
gpl-3.0
111,198
[ "Gaussian" ]
80e4240ebaa82f861072ae82df028298c350fadcfa0f5e3d679e65f174afc76e
#! /usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## from __future__ import print_function __RCSID__ = "$Id$" from DIRAC import exit as DIRACExit from DIRAC.Core.Base import Scrip...
fstagni/DIRAC
DataManagementSystem/scripts/dirac-dms-change-replica-status.py
Python
gpl-3.0
1,594
[ "DIRAC" ]
29ae9c48e32aa1155fff414aed24dcac2a99e1884702acd2b738d69808df014b
import unittest import numpy import os from rdkit.six.moves import cPickle from rdkit import RDConfig,RDRandom from rdkit.ML.InfoTheory import rdInfoTheory as rdit from rdkit import DataStructs def feq(a,b,tol=1e-4): return abs(a-b)<tol class TestCase(unittest.TestCase): def setUp(self) : pass ...
AlexanderSavelyev/rdkit
Code/ML/InfoTheory/Wrap/testRanker.py
Python
bsd-3-clause
4,929
[ "RDKit" ]
51e35e19ff9a5c39571378078d8782efae6e15b7dc79c87629144e74ba833c05
#!/usr/bin/env python """Script to run all the tests. """ # Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Prabhu Ramachandran # License: BSD Style. import sys import os from os.path import splitext import glob from common import TestCase def get_tests(): """Get all the tes...
liulion/mayavi
integrationtests/mayavi/run.py
Python
bsd-3-clause
2,498
[ "Mayavi" ]
7db7178d08ac06a1da5035c4b0498332a68353020f197271df1102876b83de81
#!/usr/bin/env python """ Lamina specification """ import csv import os import collections import numpy as np import gzip import networkx as nx class hex_array(object): """ 0 1 2 3 4 ----------------------> cols (X=cols*sqrt(3)) 0| 0 2 4 | 1 3 1| 5 7 9 ...
cerrno/neurokernel
examples/lamina/data/vision_configuration.py
Python
bsd-3-clause
23,995
[ "NEURON" ]
0ebc07d22d4a63ce7f5ff7b42f8063e7753fff0ae9648fc66a0409b18e984eba
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
CalebBell/thermo
thermo/electrochem.py
Python
mit
62,707
[ "ASE" ]
f78d22c3fb126cd67b43517861395bb2a1acedde276f0e7bdeccfd402c3025c0
"""Spherical harmonic vector wind computations.""" # Copyright (c) 2012-2014 Andrew Dawson # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation ...
nicolasfauchereau/windspharm
lib/windspharm/standard.py
Python
mit
19,295
[ "Gaussian" ]
81694525339a701a2375d85725d84186e3e65131a61ed2ae34afef3f104e958f
""" ============================================= Whitening evoked data with a noise covariance ============================================= Evoked data are loaded and then whitened using a given noise covariance matrix. It's an excellent quality check to see if baseline signals match the assumption of Gaussian white...
kambysese/mne-python
examples/visualization/plot_evoked_whitening.py
Python
bsd-3-clause
2,975
[ "Gaussian" ]
00e306f530c61aaaac51b8f3fe2354b8756a7216c89b801945eee50a975621e0
"""Test tools.""" import pytest import os from hdltools.verilog.codegen import VerilogCodeGenerator from hdltools.template import HDLTemplateParser from hdltools.mmap import parse_mmap_str from hdltools.mmap.builder import MMBuilder def test_vec(): """Test verilog code generator.""" print(VerilogCodeGenerator...
brunosmmm/hdltools
tests/test_tools.py
Python
mit
1,942
[ "VisIt" ]
2d746f6e0be0d13320df0b0bcf429756effba2585bf3c4523e41773d24271fc1
# -*- coding: utf-8 -*- from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QColorDialog from PyQt5.QtGui import * import sys import serial import logging import pyHandyCAN import time class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow...
SirVolta/HandyCAN
PC/hcdemogui.py
Python
gpl-3.0
10,285
[ "Amber" ]
fd636e2dc479ab2c176307b4414b30b9f1d33ce0489d49c2b6a97d35cff5b1b3
#!/usr/bin/env python2 desc="""Report frequency of editing from individual reads. CHANGELOG: v1.0 - TBD: """ epilog="""Author: l.p.pryszcz+git@gmail.com Warsaw, 2/12/2015 """ import argparse, os, re, sys from datetime import datetime import subprocess import numpy as np import pysam def bed2intervals(handle, wi...
lpryszcz/bin
bam2editing_penetrance.py
Python
gpl-3.0
4,197
[ "pysam" ]
3e218357078d767f10c458d539adeb0113272f5cc0b4b5e7c22d19234376253e
""" Query the PDB for similar unit cell parameters """ __license__ = """ This file is part of RAPD Copyright (C) 2010-2018, Cornell University All rights reserved. RAPD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Softwar...
RAPD/RAPD
src/old_agents/rapd_agent_cell.py
Python
agpl-3.0
29,862
[ "ADF" ]
677bdcf4f2dd308726372ea4bb5512fe82f9a7647625c99be3ec5112eef23da4
#!/usr/bin/python import fileinput import string import sys import os import subprocess def perm(l): sz = len(l) if sz <= 1: return [l] return [p[:i]+[l[0]]+p[i:] for i in xrange(sz) for p in perm(l[1:])] def nwchem_triples_usage(): # 123456 is included just for verification; it is not used i...
jeffhammond/spaghetty
trunk/generator6.py
Python
bsd-2-clause
36,412
[ "NWChem" ]
f90e9cc7b366ee2c75118630275fd9aac27bf536eea0337a86db057168da9d3c
#!/usr/bin/env python3 # Version 1.1 # Author Alexis Blanchet-Cohen # Date: 09/06/2014 import argparse import glob import os import os.path import pandas import subprocess import util # Read the command line arguments. parser = argparse.ArgumentParser(description="Generates GATK IndelRealigner scripts.") parser.add_...
blancha/abcngspipelines
exomeseq/indelrealigner.py
Python
gpl-3.0
3,024
[ "BWA" ]
a3a1bb5aecbcccaac5ff78e93500bf7d3c6bc156097a657a5c068e37c828b834
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
jaggu303619/asylum
openerp/addons/project/project.py
Python
agpl-3.0
75,113
[ "VisIt" ]
3cd839d51fa86baf532f905811698ef3eeb50f73095d18ff013a16b7d0b85e6d
################################################################## # Code for networks and whatnot to use in variationalish stuff. # ################################################################## # basic python import numpy as np import numpy.random as npr from collections import OrderedDict import cPickle # the...
Philip-Bachman/ICML-2015
InfNet.py
Python
mit
27,786
[ "Gaussian", "NEURON" ]
0bbb9785bf38a02c5d5db47d3f8c9e5230602b1851495bdb2d7f06c481d43002
# -*- coding: utf-8 -*- # run_hhcell.py --- # # Filename: run_hhcell.py # Description: # Author: # Maintainer: P Gleeson # Version: # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU...
BhallaLab/moose
moose-examples/neuroml2/run_hhcell.py
Python
gpl-3.0
4,300
[ "MOOSE" ]
4176623b67c26d3b832f44598ee15e30e24d73b9bd7971a032585ebedb2927dd
import csv import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.path as path import matplotlib.dates as mdates from dateutil.parser import parse from datetime import datetime from datetime import timedelta # import urllib.request import pytz import codecs from matplo...
bearing/dosenet-raspberrypi
spectra_fitter.py
Python
mit
24,564
[ "Gaussian" ]
5763955ed5fb11fa17a31573f3869ce7fbf66dff5dbef540431b7cc1ab7dc0e2
#_PYTHON_INSERT_SAO_COPYRIGHT_HERE_(2009)_ #_PYTHON_INSERT_GPL_LICENSE_HERE_ from itertools import izip import logging import os import signal from numpy import power, arange, array, abs, iterable, sqrt, where, \ ones_like, isnan, isinf, float, float32, finfo, nan, any from sherpa.utils import NoNewAttributesAfter...
brefsdal/sherpa
sherpa/fit.py
Python
gpl-2.0
44,594
[ "VisIt" ]
a28f9f2a4d24fef16354b5b52418481801b6d5e1b636ab2bcaf2540a38a9d18f
# 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...
capoe/espressopp.soap
src/tools/tabulated.py
Python
gpl-3.0
1,838
[ "ESPResSo" ]
9d4bed9968b68c8b0a46543086abfd96a0a7ac995bb598f276a274b5df64bde7
### Adapted from: ## (c) Peter Norvig, 2010; See http://norvig.com/lispy.html ################ Symbol, Env classes import os import itertools import uuid import logging import traceback, sys #### Arast Libraries import assembly as utils import asmtypes import wasp_functions as wf logger = logging.getLogger(__name__)...
kbase/assembly
lib/assembly/wasp.py
Python
mit
19,952
[ "BWA" ]
de1b7476baa4886f45de0f4770d9dac4ef16312c2e390add9c8f2889b4c6bfa2
""" SDSS "Great Wall" ----------------- Plotting the SDSS "great wall", a filament of galaxies visible by-eye in the projected locations of the SDSS spectroscopic galaxy sample. This follows a similar procedure to [1]_, References ---------- .. [1] http://adsabs.harvard.edu/abs/2008ApJ...674L..13C """ # Author: Jake V...
astroML/astroML
examples/datasets/plot_great_wall.py
Python
bsd-2-clause
1,071
[ "Galaxy" ]
d4cd86e810e598d5f9f2bb376a92253166caea5ba8288aa00c210fbc0df2268f
# Compiled by Charles Harris, dated October 3, 2002 # updated to 2002 values by BasSw, 2006 # Updated to 2006 values by Vincent Davis June 2010 # Updated to 2014 values by Joseph Booker, 2015 """ Fundamental Physical Constants ------------------------------ These constants are taken from CODATA Recommended Values of ...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/scipy/constants/codata.py
Python
gpl-3.0
116,026
[ "Avogadro", "VisIt" ]
0c125ebbafc18a04263839ff6d5d41320ad9a6c016f4aa0cab3a91dc4cbb824c
#!/usr/bin/python # -*- coding: utf-8 -* import sys, os import subprocess as sub import multiprocessing import time import datetime import logging from optparse import OptionParser, OptionGroup import pos_common import pos_wrappers class generic_workflow(object): """ A generic command-line workflow class....
chrisfilo/poSSum
possum/pos_wrapper_skel.py
Python
mit
25,152
[ "Gaussian" ]
e4721ed7036116037c89cce9ef7c7b2cde7a8c7537d7489c8d79a28bd4a40e62
# See https://en.wikipedia.org/wiki/General_MIDI#Parameter_interpretations # Generated by get_instruments.py instruments = { (1, "Acoustic Grand Piano", "piano"), (2, "Bright Acoustic Piano", "piano"), (3, "Electric Grand Piano", "piano"), (4, "Honky-tonk Piano", "piano"), (5, "Electric Piano 1", "...
milkey-mouse/swood
swood/instruments.py
Python
mit
6,530
[ "CRYSTAL" ]
5448654fccb246c781526855f6f6b1cfaba00b70dbff7411e76663f4652570df
# -*- coding: utf-8 -*- import plotly.graph_objects as go class MODiagram: """ A class to make plots of MO levels Methods ------- MODiagram(wfn) Make a MO plot from a psi4 Wavefunction object save(filename) Save the plot to a figure file """ def __init__(self, ...
evangelistalab/forte
forte/utils/mo_diagram.py
Python
lgpl-3.0
10,881
[ "Psi4" ]
28e1d50bb2e35db42b65936778acfe3b441b0ec1131d4080d8e361a06e5e4a55
# Possible executions of this script # ./yadempi script.py #interactive will spawn 3 additional workers # mpiexec -n 4 ./yadempi script.py #non interactive NSTEPS=5000 #turn it >0 to see time iterations, else only initilization TODO!HACK #NSTEPS=50 #turn it >0 to see time iterations, else only initilization import os...
cosurgi/trunk
examples/mpi/vtkRecorderExample.py
Python
gpl-2.0
2,159
[ "VTK" ]
686040a13e96d56532e99cae3879e3a08cbbbd6c9b152435f96d5859028db4c2
#!/usr/bin/env python ################################################################################ # gcn_dbinterface.py # pyanalysis # # Created by Brian Baughman on 11/9/11. # Copyright 2011 Brian Baughman. All rights reserved. ################################################################################ tr...
bbaugh/gcn-parser
gcn_dbinterface.py
Python
gpl-2.0
3,013
[ "Brian" ]
0afeb830181e07577bc901a907786a46016c18fa28c59c58f89ff51978ca22cd
################################################################################ # Copyright (C) 2011-2012 Jaakko Luttinen # # This file is licensed under the MIT License. ################################################################################ import numpy as np import matplotlib.pyplot as plt import time f...
SalemAmeen/bayespy
bayespy/demos/mog.py
Python
mit
3,110
[ "Gaussian" ]
bb79970f4e320351e4697f212bafb7aad97c0e3882e2f5ef860723c587ce34ba
# -*- coding: utf-8 -*- import os import numpy as np import pytest from numpy.testing import assert_array_almost_equal import pysteps from pysteps import nowcasts from pysteps.cascade.bandpass_filters import filter_gaussian from pysteps.cascade.bandpass_filters import filter_uniform from pysteps.cascade.decompositio...
pySTEPS/pysteps
pysteps/tests/test_cascade.py
Python
bsd-3-clause
2,172
[ "Gaussian" ]
c7e2a186e90569aac87bd4685febcb902a3611e17f23c9cf70c6f57ced35e4bd
from __future__ import print_function, division import unittest, numpy as np from pyscf.nao.log_mesh import funct_log_mesh from pyscf.nao.m_log_interp import log_interp_c from timeit import default_timer as timer class KnowValues(unittest.TestCase): def test_log_interp_vv_speed(self): """ Test the interpolatio...
gkc1000/pyscf
pyscf/nao/test/test_0202_log_interp_vv.py
Python
apache-2.0
1,363
[ "PySCF" ]
4f275054bdcc0e9bedc724d9da17ba689d611ce37fedbce44834b770fa2aade3
# Copyright 2014 Quip # # 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, softwar...
textpotential/aproximatebible
quip.py
Python
gpl-2.0
28,090
[ "VisIt" ]
3dd80a2484de49b3351c8eaf25f9cc2afc8474f306da4d6288b9c1b712d51e6b
# Copyright (c) 2012, GlaxoSmithKline Research & Development Ltd. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # ...
bp-kelley/rdkit
Contrib/mmpa/cansmirk.py
Python
bsd-3-clause
2,887
[ "RDKit" ]
3878b9c4d0ea496dba6cd1217f2a6548c984ec10e1f93c8687a4e3aaf284314d
jmol = { 'h': [255, 255, 255], 'he': [217, 255, 255], 'li': [204, 128, 255], 'be': [194, 255, 0], 'b': [255, 181, 181], 'c': [144, 144, 144], 'n': [48, 80, 248], 'o': [255, 13, 13], 'f': [144, 224, 80], 'ne': [179, 227, 245], 'na': [171, 92, 242], 'mg': [138, 255, 0], ...
haozhangphd/genx-py3
genx/plugins/add_ons/help_modules/atom_colors.py
Python
gpl-3.0
2,872
[ "Jmol" ]
ec613bcb9fd175b7301f996a4d05bbd854b95def2d41a26a38ba481577cbb50a
"""Class to run the full red-sequence calibration """ import os import numpy as np import fitsio import copy import re from ..configuration import Configuration from ..color_background import ColorBackgroundGenerator from ..catalog import Entry, Catalog from ..galaxy import GalaxyCatalog from .selectspecred import Sel...
erykoff/redmapper
redmapper/calibration/calibrate.py
Python
apache-2.0
26,306
[ "Galaxy" ]
2f36aa876584ec805c33393939724608ffd9dbbb9da233448cd1ed2260696a79
# -*- coding: utf-8 -*- # pylint: disable=invalid-name, too-many-instance-attributes """Copyright 2015 Roger R Labbe Jr. FilterPy library. http://github.com/rlabbe/filterpy Documentation at: https://filterpy.readthedocs.org Supporting book at: https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python This is...
rlabbe/filterpy
filterpy/kalman/sigma_points.py
Python
mit
16,341
[ "Gaussian" ]
c4ae7452bf0a51e572ee233f1b17ea76186cf62b389b0ab9bac22b42d734370f
# build_assistant/autogen/raw_events/EventCodeGenerator.py # # (C) Copyright 2014-present Cristian Dinu <goc9000@gmail.com> # # This file is part of Uniarchive II. # # Licensed under the GPL-3 from build_assistant.autogen.raw_events.AbstractEventCodeGenerator import AbstractEventCodeGenerator from build_assistant.aut...
goc9000/uniarchive2
build_assistant/autogen/raw_events/EventCodeGenerator.py
Python
gpl-3.0
5,968
[ "VisIt" ]
52ee49201ed7415fd156f4f2e2bef8be3fce80058b7c0e22d16153607abc88b0
from pathlib import PurePath class LineCountInfo(object): def __init__(self, total_lines, code_lines=0, comment_lines=0, blank_lines=0): self.code_lines = code_lines self.comment_lines = comment_lines self.blank_lines = blank_lines self.total_lines = total_lines def get_code_li...
MarkZuber/DiskUsage
LineCountVisitor.py
Python
mit
2,767
[ "VisIt" ]
5c8febf4d97674481fd5bbad1e86df36033ca217f8f0e499768f091c8de77913
from datetime import datetime from django.contrib.auth.models import User from django.conf import settings from edc_constants.constants import YES from ..exceptions import SpecimenError class LabProfile(object): name = None # controller uses this to register the aliquot, receive, # ... models so they...
botswana-harvard/lab-profile
lab_profile/classes/lab_profile.py
Python
gpl-2.0
6,100
[ "VisIt" ]
b46ec8be9d16191dc0aa445edd883d1908b7ae7d255730c41915823db1fb60b5
class VehicleInfo(object): def __init__(self): """ make_target: option passed to make to create binaries. Usually sitl, and "-debug" may be appended if -D is passed to sim_vehicle.py default_params_filename: filename of default parameters file. Taken to be relative to autotest dir. ...
night-ghost/ardupilot
Tools/autotest/pysim/vehicleinfo.py
Python
gpl-3.0
11,808
[ "Firefly" ]
dabce9453b18accb2ef0cfa7b08a8c9b0e0bd617f0ad9e04563e64ac7db4ad34
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Robert Layton <robertlayton@gmail.com> # Andreas Mueller <amueller@ais.uni-bonn.de> # Philippe Gervais <philippe.gervais@inria.fr> # Lars Buitinck ...
herilalaina/scikit-learn
sklearn/metrics/pairwise.py
Python
bsd-3-clause
46,964
[ "Gaussian" ]
a8ee273437e2bd2465153f440f33cb4617a2b92d646c05f50622f8ca505760b2
import errno import logging import os from abc import ABC, abstractmethod from toil.lib.threading import ExceptionalThread log = logging.getLogger(__name__) class WritablePipe(ABC): """ An object-oriented wrapper for os.pipe. Clients should subclass it, implement :meth:`.readFrom` to consume the readable...
BD2KGenomics/slugflow
src/toil/jobStores/utils.py
Python
apache-2.0
12,719
[ "VisIt" ]
275102260e5dafcc3b52656497ebad0b296b290b011b25ff8055a1a238f2cee1
# Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in> # Copyright (c) 2008-2009, Enthought, Inc. # License: BSD Style. import numpy as np import scipy from traits.api import HasTraits, Range, Instance, \ on_trait_change, Array, Tuple, Str from traitsui.api import View, Item, HSplit, Group from mayavi import...
HPCGISLab/STDataViz
WorkingVersion/LibTry/MayaviGUI/Lorenz ui example.py
Python
bsd-3-clause
4,745
[ "Mayavi" ]
98802bcc1689a103cbeeab53ce8c3282729e3d4ed4f56839ed9d8fe85c77ddc3
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
gkc1000/pyscf
pyscf/nao/m_vxc_pack.py
Python
apache-2.0
2,427
[ "PySCF" ]
c03e8c3f7ee9cf1f395e11190a1bd52551eb20321d9e019f75f6908be9d27fd8
from qepy import * from yambopy import * class hBN_1l_test(): """ Input files for hBN monolayer for testing purposes (i.e., UNCONVERGED) """ def __init__(self,prefix='bn_TEST',pseudo_path='./pseudos'): self.prefix = prefix self.pseudos = pseudo_path self.scfin = self.scf() ...
alexmoratalla/yambopy
materials/hbn_test.py
Python
bsd-3-clause
2,481
[ "Quantum ESPRESSO", "Yambo" ]
5115723e903eca799b1a6164351814f4d0c411173af8f9c9ff8b1506d2998ab8
import os import numpy as np import pytest import numpy.testing as npt from dipy.tracking.streamline import Streamlines from dipy.io.stateful_tractogram import Space, StatefulTractogram from dipy.io.utils import create_nifti_header from dipy.testing.decorators import use_xvfb from dipy.utils.optpkg import optional_pack...
FrancoisRheaultUS/dipy
dipy/viz/tests/test_apps.py
Python
bsd-3-clause
4,461
[ "VTK" ]
33e38b943aee17a036aac2c2abbab820bf53c354681c77cd5f44d504de097229
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Andrew Dykstra <andrew.r.dykstra@gmail.com> # Mads Jensen <mje.mads@gmail.com> # Jona Sa...
teonlamont/mne-python
mne/evoked.py
Python
bsd-3-clause
50,206
[ "Gaussian" ]
79f8442c6c38b8362a126d8e0258a5cd43e267132abf5072959fd53ad149af5d
from director.thirdparty import transformations import vtkAll as vtk import math import numpy as np try: # This module uses libbot for some transformations. # There is a pending branch that replaces libbot with the # thirdparty.transformations module. For now, libbot is # imported with a try/except to...
manuelli/director
src/python/director/transformUtils.py
Python
bsd-3-clause
7,009
[ "VTK" ]
95b0859085bccecd68b81a43355ab4e658438ae6b249c635199c9a3c044d5fc4
#!/usr/bin/env python """ This file tests vtk.util.vtkImageExportToArray and vtk.util.vtkImageImportFromArray. It tests the code by first exporting a PNG image to a Numeric Array and then converts the array to an image and compares that image to the original image. It does this for all PNG images in a particular dir...
naucoin/VTKSlicerWidgets
Imaging/Testing/Python/TestNumericArrayImageData.py
Python
bsd-3-clause
2,213
[ "VTK" ]
f8a56b98d68887d7de7d07520dc53bc232e98e46df9add3bb2fc2652edf491b6
'''This script demonstrates how to build a variational autoencoder with Keras and deconvolution layers. Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114 Copied from: https://github.com/keras-team/keras/blob/master/examples/variational_autoencoder_deconv.py # @IgnorePep8 Original implement...
avolkov1/keras_experiments
examples/variational_autoencoder/variational_autoencoder_deconv.py
Python
unlicense
7,692
[ "Gaussian" ]
a31b472a24ad06c77b6038d368abcec116e3f71b373350030eece2e681a65e7d
################################################################## # Copyright 2018 Open Source Geospatial Foundation and others # # licensed under MIT, Please consult LICENSE.txt for details # ################################################################## """List of know mimetypes""" # List of known compl...
tomkralidis/pywps
pywps/inout/formats/__init__.py
Python
mit
6,590
[ "NetCDF" ]
4064d65dcbfb39d6591eb1f8810447902bf53b426bd7096bab75ddc034407ed1
# -*- coding: utf-8 -*- # # Copyright (C) 2014 Bitergia # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This progr...
MetricsGrimoire/Octopus
tests/test_puppet.py
Python
gpl-3.0
17,261
[ "Octopus" ]
b07556a64391fe823fc016ad1b737bb7e08e66ea16694a459226147fdbfa239e
import argparse import logging import os import sys import warnings import numpy as np import parmed import intermol.gromacs as gmx import intermol.lammps as lmp import intermol.desmond as des import intermol.amber as amb import intermol.charmm as crm import intermol.tests # we have a number of "canonical" terms tha...
ctk3b/InterMol
intermol/convert.py
Python
mit
29,297
[ "Amber", "CHARMM", "CRYSTAL", "Desmond", "Gromacs", "LAMMPS" ]
209d87866632325ba3a98f33e3223566bb50d9a741ebb11e4d6f741848b818f0
# Spectral smoothing functionality # To do: # 3) add extra zero-padding for FFT algorithms so they don't go funky at the # edges? import numpy as np from numpy.fft import fft, ifft, fftfreq, rfftfreq __all__ = ["smoothspec", "smooth_wave", "smooth_vel", "smooth_lsf", "smooth_wave_fft", "smooth_vel_fft",...
bd-j/prospector
prospect/utils/smoothing.py
Python
mit
24,897
[ "Gaussian" ]
dcaf0064ed1e104e679b4ef5cb6b4734555db8c510e9b7f6d7d703f817230c75
import cv2 import numpy as np import math from scipy.ndimage.filters import correlate from scipy.signal import convolve2d import superzoomit.misc.typeconv as tc import superzoomit.misc.geotransform as gt import superzoomit.misc.mattransform as mt import superzoomit.misc.filter as filter # % rff: autocorrelation mat...
caiotaniguchi/super-zoom-it
superzoomit/superres/wiener.py
Python
gpl-3.0
10,277
[ "Gaussian" ]
638c84c6863ec0534e226167e626e0803a69d762411fb23fe01e80863a3dcd1c
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import os from spack import * class Neuron(Package): """NEURON is a simulation environment for single and networks o...
iulian787/spack
var/spack/repos/builtin/packages/neuron/package.py
Python
lgpl-2.1
7,230
[ "NEURON" ]
657f4050695bb5d04b0bf1f2c74e54c87d97843c5c320da03eae1377a7e01971
""" pyNEAT Copyright (C) 2007-2008 Brian Greer This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in ...
liquidkarma/pyneat
pyNEAT/Innovation.py
Python
gpl-2.0
1,247
[ "Brian", "NEURON" ]
42e9e23d1b728d37e122a729c4249a03a071f6ad673ef5341778636505f0791c
#!/usr/bin/env python """ Convert GIO format to FASTA format. Usage: gio_to_fasta.py gio_file_path fasta_file Requirement: biopython : http://biopython.org """ import sys, re, os from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio import SeqIO def __main__(): try: contig_files = o...
vipints/genomeutils
utils/gio_to_fasta.py
Python
bsd-3-clause
1,257
[ "Biopython" ]
dd1aea174c2f743d7fb2bf4035dda687046cfe26bc5eb33cc50761bf3faff2bc
"""Find and deal with signatures in biological sequence data. In addition to representing sequences according to motifs (see Motif.py for more information), we can also use Signatures, which are conserved regions that are not necessarily consecutive. This may be useful in the case of very diverged sequences, where sig...
bryback/quickseq
genescript/Bio/NeuralNetwork/Gene/Signature.py
Python
mit
8,972
[ "Biopython" ]
4b6f63b58a33102a7b28b54d36cd778cb792343140203772ff7c8bf01368e8df
############################################################################## ############################################################################## # Model specification # Linear Gaussian state space model # # Copyright (c) 2016 Johan Dahlin # liu (at) johandahlin.com # #######################################...
compops/gpo-abc2015
models/lgss_3parameters.py
Python
mit
11,474
[ "Gaussian" ]
15b7e3c2c1dda053a1890c1fbcb74cde7f43886a0fcfd81192d8ef5ec88cee57
### All lines that are commented out (and some that aren't) are optional ### DB_ENGINE = 'sqlite:///db.sqlite' #DB_ENGINE = 'mysql://user:pass@localhost/monocle' #DB_ENGINE = 'postgresql://user:pass@localhost/monocle' AREA_NAME = 'SLC' # the city or region you are scanning LANGUAGE = 'EN' # ISO 639-1 codes ...
ZeChrales/Monocle
config.example.py
Python
mit
18,693
[ "VisIt" ]
274500f421939045637fc3084389d4ff30d64542abffc28a3886ce1e5875bac4
"""Obtain phase space points at a given milestone as a prerequisite for running a milestoning simulation. """ __all__ = ['prepare'] import copy import logging import os import random from typing import List, Optional, Set from miles import (InitialTransition, Milestone, Simulation, TimestepperNAMD, TrajectoryParse...
clsb/miles
miles/prepare.py
Python
mit
4,313
[ "NAMD" ]
f7e018f67dc1596094865504f7b53210db729d0748220a1006b2f1f8c773e8fc
""" Each character on a computer is assigned a unique code and the preferred standard is ASCII (American Standard Code for Information Interchange). For example, uppercase A = 65, asterisk (*) = 42, and lowercase k = 107. A modern encryption method is to take a text file, convert the bytes to ASCII, then XOR each byte...
TheAlgorithms/Python
project_euler/problem_059/sol1.py
Python
mit
4,890
[ "ADF" ]
4d2368aa1507b4f3c5d0981b5f5c811f6a29eda80de981d574441530d6e34a25
######################################################################## # $HeadURL$ ######################################################################## """ DataIntegrityDB class is a front-end to the Data Integrity Database. """ __RCSID__ = "$Id$" from DIRAC import gConfig, gLogger, S_OK from DIRAC.Core.Base.DB ...
avedaee/DIRAC
DataManagementSystem/DB/DataIntegrityDB.py
Python
gpl-3.0
10,539
[ "DIRAC" ]
b9b3ec66d91ce1bf3fdee12d2a333a8321839c527e3176d2c05b211ff85f10d5
## # 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/n/netcdf.py
Python
gpl-2.0
6,459
[ "NetCDF" ]
ea0365f18e2f973cfad2f232b5227821b7a8eda45266fa5453695704678ad74d
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
psi4/__init__.py
Python
gpl-2.0
3,387
[ "Psi4" ]
975fab9009e8c4160f3425862f1fa1db38cd14ffa22d2c985fbfc1e669f41779
from vtk import vtkImageImport import numpy def __numpyTypeToVtkType(dtype): #from vtkType.h if dtype == numpy.int8: #define VTK_CHAR 2 return 2 elif dtype == numpy.uint8: #define VTK_UNSIGNED_CHAR 3 return 3 elif dtype == numpy.int16: #define VTK_SH...
ilastik/ilastik-0.5
ilastik/gui/numpy2vtk.py
Python
bsd-2-clause
1,685
[ "VTK" ]
dcf33e113fb60d8a7fc611bf1c51ddfd75caa8a7f54b96795be2071fff009bc9
from copy import copy from typing import List, Optional, Tuple from gilgamesh.snes.instruction import ( Instruction, InstructionID, RetIndirectType, StackManipulation, ) from gilgamesh.snes.opcodes import AddressMode, Op from gilgamesh.snes.registers import Registers from gilgamesh.snes.state import St...
AndreaOrru/Gilgamesh
gilgamesh/snes/cpu.py
Python
bsd-2-clause
18,291
[ "VisIt" ]
bdead2fa807940bab1f5aa01168500cb18c743c56c6b2511ff8c4ca45aa5892b
# Copyright 2019 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 agreed to in writing, s...
google/pyctr
analysis/cfg.py
Python
apache-2.0
27,337
[ "VisIt" ]
890561e7483e8cf6fea8d7590885277e9eeccf0a78fa8a4a9fa358fcb7230763
""" General purpose algorithms dealing with data structures. """ from __future__ import absolute_import from collections import deque from itertools import chain, cycle as cycle_, islice, repeat from numbers import Integral from taipan._compat import imap, izip_longest from taipan.collections import ensure_countable,...
Xion/taipan
taipan/algorithms.py
Python
bsd-2-clause
8,091
[ "VisIt" ]
0b489576488d5990d5fe88ac310ecf983e6b38021172e4ecfa45daca36f93c31
""" simple hello world job """ from DIRAC.Interfaces.API.Job import Job from DIRAC.Interfaces.API.Dirac import Dirac from DIRAC.DataManagementSystem.Utilities.DMSHelpers import DMSHelpers j = Job() j.setName( "helloWorld-test" ) j.setExecutable( "exe-script.py", "", "Executable.log" ) # <-- user settings j.setCPUT...
andresailer/DIRAC
tests/Workflow/Regression/helloWorld.py
Python
gpl-3.0
522
[ "DIRAC" ]
63be8565b768895cfb8243f5b355d7aee288f7e9338a4e7850ff18612a5a787c
import sys import os from netCDF4 import Dataset import numpy as np import subprocess import math import copy from mpl_toolkits.axes_grid1 import make_axes_locatable from ._quiver import _LogStart _lg=_LogStart().setup() from .scf import call_ffmpeg """ MkMov: sub-command "quiver" workhorse file. """ def interpola...
chrisb13/mkmov
commands/quiver.py
Python
gpl-3.0
19,824
[ "NetCDF" ]
7f63274281d7a7db1dac1cc9639d43904916db7808e0339c2420928df23b4151
import sys from typing import Any, Dict, List, Optional, Tuple, Union import attr from pytest import importorskip from omegaconf import II, MISSING, SI from tests import Color if sys.version_info >= (3, 8): # pragma: no cover from typing import TypedDict # attr is a dependency of pytest which means it's always...
omry/omegaconf
tests/structured_conf/data/attr_classes.py
Python
bsd-3-clause
13,479
[ "MOE" ]
2b2d18796e3e929218d631b047837be8ebd958f8a26a0fa2affee1ffd7ec574e
"""Tests for the binary tree module""" import unittest from binary_tree import BinaryTree class test_BinaryTree(unittest.TestCase): def setUp(self): self.empty_tree = BinaryTree() self.tree = BinaryTree() self.tree.insert(3) self.tree.insert(4) self.tree.insert(2) ...
radome/algorithms_and_data_structures
Python/test/test_binary_tree.py
Python
apache-2.0
1,435
[ "VisIt" ]
f290cfb01b1f57541d315ad56ddff057c259fa1c9f6efd81f4f345f0b70b1f27