text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import hashlib import numpy import os import random import scipy.stats import shutil import subprocess from contextlib import closing from django.test import TestCase, tag from unittest.mock import MagicMock from data_refinery_common.utils import get_env_variable from data_refinery_common.models import ( Computat...
data-refinery/data_refinery
workers/data_refinery_workers/processors/test_salmon.py
Python
bsd-3-clause
29,174
[ "Bioconductor" ]
d4cba489dc4eccd6ca40c411a388882670991b1ac0b5738e56e55f1e22d8f1b4
# Copyright 2018 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, ...
lablup/sorna-repl
vendor/benchmark/minigo/mcts.py
Python
lgpl-3.0
12,327
[ "VisIt" ]
966b46ef0b4924cb3fd18d94b6c3a407d09d5c6460407f8476cc6513059c223d
from setuptools import setup, find_packages scripts = [ 'annotations/gencode_annotate_utrs_5p_3p.pl', 'mirna/miR_splitter.py', 'clipseq/barcode_collapse.py', 'clipseq/barcode_collapse_pe.py', 'clipseq/fix_scores.py', 'clipseq/run_kasey.py', 'clipseq/kmer_extractor.py', 'clipseq/perform...
YeoLab/gscripts
setup.py
Python
mit
3,208
[ "HTSeq", "pysam" ]
3a06fa21536fa8a18092a2fc2abdfc63270beea68744ab6dff67d23d1f46486e
""" Frontend to FTS3 MySQL DB. Written using sqlalchemy """ # We disable the no-member error because # they are constructed by SQLAlchemy for all # the objects mapped to a table. # pylint: disable=no-member import datetime import errno from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.exc import SQLAlchemy...
DIRACGrid/DIRAC
src/DIRAC/DataManagementSystem/DB/FTS3DB.py
Python
gpl-3.0
27,414
[ "DIRAC" ]
c86032ddf602ce4a0f6fd506fcfa823c9c0ec61b7118e38c92ca3c737ec46418
# -*- coding: utf-8 -*- """Multivariate Normal and t distributions Created on Sat May 28 15:38:23 2011 @author: Josef Perktold TODO: * renaming, - after adding t distribution, cov does not make sense for Sigma DONE - should mean also be renamed to mu, if there will be distributions with mean != mu...
bashtage/statsmodels
statsmodels/sandbox/distributions/mv_normal.py
Python
bsd-3-clause
38,674
[ "Gaussian" ]
d3e3c0536807c0afa3b7c67a0d3508953d1f6d8d092dec4bbf717d570cd08478
""" MultiVolumeVisualizationMIP :Authors: Berend Klein Haneveld """ from MultiVolumeVisualization import MultiVolumeVisualization from MultiVolumeVisualization import CreateEmptyFunctions from MultiVolumeVisualization import CreateRangeFunctions from core.decorators import overrides from PySide.QtGui import QLabel fr...
berendkleinhaneveld/Registrationshop
ui/visualizations/MultiVolumeVisualizationMIP.py
Python
mit
2,351
[ "VTK" ]
a7f5fdde14902836e0df4464d0a2bbe7e3bcc485a9b094a971b2ef708427412d
# # QE.py # # Interface to Quantum ESPRESSO (http://www.quantum-espresso.org) # # Copyright (c) 2014 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # import n...
ttadano/ALM
tools/interface/QE.py
Python
mit
30,917
[ "CRYSTAL", "ESPResSo", "Quantum ESPRESSO" ]
d3f364d2fa1941db8168fcb9580a7d7e8d4f46f09680c75faacd6c25dda9ff4b
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/zoo/examples/orca/learn/tf/inception/inception.py
Python
apache-2.0
11,693
[ "ORCA" ]
09318827279b001dd978a0d06f677563da81fcb5a657eb2508d07985c41eaac2
# -*- coding: UTF-8 -*- #This file is part of pyAlienFX. # # pyAlienFX 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. # #...
AndroidMarv/pyalienfx
AlienFX/AlienFXComputers.py
Python
gpl-3.0
38,192
[ "VisIt" ]
061d7d91a0fb9577c284913329a217419194f81b6e2a63437af539277ba1abf9
''' Created on Jul 19, 2011 @author: sean ''' from __future__ import print_function from . import Visitor import sys import _ast from warnings import warn if sys.version_info.major < 3: from StringIO import StringIO else: from io import StringIO class Indentor(object): def __init__(self, printer, inden...
diana-hep/femtocode
lang/femtocode/thirdparty/meta/asttools/visitors/print_visitor.py
Python
apache-2.0
5,036
[ "VisIt" ]
fa67187467ae6371058c4f288213b5314e19841933aae62e3aaa32b9224110d2
import sys, glob, os, subprocess if sys.version_info < (2, 6): raise SystemExit("""matplotlib and the basemap toolkit require Python 2.6 or later.""") from distutils.dist import Distribution from distutils.util import convert_path from distutils import ccompiler, sysconfig # Do not require numpy for just queryin...
jenshnielsen/basemap
setup.py
Python
gpl-2.0
5,944
[ "NetCDF" ]
c6b7c0f6b08cfc8e796be67afad6ad4fa39ae8ad73bea2894a1ef69b995cedee
# -*- coding: utf-8 -*- # Copyright 2014 Matt Austin # 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 ...
mattaustin/gaussian
gaussian/feeds.py
Python
apache-2.0
2,495
[ "Gaussian" ]
396a4596f95c26b73c509c4e3da8144a52354a5a8d4b890ff9b8cc5a9b90f7b0
import os import sqlite3 import om10 import pandas as pd import numpy as np import gzip import shutil import copy import json from lsst.utils import getPackageDir import lsst.sims.utils.htmModule as htm from lsst.sims.photUtils import Bandpass, BandpassDict, Sed, getImsimFluxNorm from lsst.sims.photUtils import calcSNR...
LSSTDESC/Twinkles
python/desc/twinkles/validation/validate_ic.py
Python
mit
57,531
[ "Galaxy", "VisIt" ]
20e0a764e48317db62b493656bf2aec509f2d68824fdb16b8754a4154631a9ef
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # ...
dictoon/blenderseed
translators/objects/mesh.py
Python
mit
17,167
[ "VisIt" ]
d9b9ec170754e695fc2b91473237b98f8933dd0db4bd3a8c16ec3247c8877cd4
''' Created on 2012-11-13 A script to average CESM monthly data to create a monthly climatology. This script does not rely on PyGeode but instead uses netCDF4 and numpy directly. @author: Andre R. Erler ''' ## imports # numpy from numpy import arange, array, zeros import os, re, sys # import netCDF4-python and adde...
aerler/WRF-Tools
Python/archive/avgCESM.py
Python
gpl-3.0
6,217
[ "NetCDF" ]
a9e41273113b0cf408f72faf516ced281598717f60909b489b2b7a86705e1db5
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/core/ui/media/playertab.py
Python
gpl-2.0
13,172
[ "Brian" ]
1b0c1e177b2aa5360594377c18c7ebcfae49e0754250c380087cfab301adb562
import numpy import pylab import math from math import degrees, atan2, radians, cos, sin import random import scipy.ndimage num_type = numpy.float32 def normalize_volume(array): ''' Makes a new array with total density of 1 and the same shape as array ''' array /= numpy.sum(array) def normalize_max(array): ...
cuauv/software
locator/density.py
Python
bsd-3-clause
5,402
[ "Gaussian" ]
65317054e6f17712aa892e3d1acbc2411b274890277825c38c8a110286c1f68b
import pdb import gc import numpy as np from numpy import zeros from numpy import shape import cPickle as pickle #from astropy.cosmology import FlatLambdaCDM from astropy.cosmology import Planck15 as cosmo import astropy.units as u from scipy.ndimage.filters import gaussian_filter from scipy.optimize import curve_fit i...
marcoviero/Utils
utils.py
Python
mit
36,940
[ "Gaussian" ]
7523af53b0a352139dd13ede0a4f578a6c1d64f54ef51806538338171e1877d9
#!/usr/bin/env python from instagram.client import InstagramAPI from ConfigParser import SafeConfigParser import argparse import datetime import logging config_parser = SafeConfigParser() config_parser.read('config') arg_parser = argparse.ArgumentParser(description='Auto-like my GF\'s Instagram') arg_parser.add_argu...
janson123/Like-My-GF
like_my_gf.py
Python
mit
3,030
[ "VisIt" ]
144061d1eebc10f721b6a031ddd09104fcf966ef207bb1efde7eadc38124ba1f
# -*- coding: utf-8 -*- # Author: Óscar Nájera # License: 3-clause BSD """ ================== RST file generator ================== Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from __future__ import division, print_functi...
RPGOne/Skynet
scikit-learn-0.18.1/doc/sphinxext/sphinx_gallery/gen_rst.py
Python
bsd-3-clause
20,630
[ "Mayavi" ]
998e63a532c0a2eae3b33bdb7f2d6b5d9cd962bb44b2c6ccb1a49a452a3dc72c
"""Defines the App class.""" from typing import ( # pylint: disable=unused-import Any, Callable, Generator, List, Optional, Set, Tuple, Union, Dict, Sequence ) import os import json import itertools import shutil from collections import namedtuple, defaultdict from subprocess import Popen, PIPE, STDOUT, check_out...
jwkvam/conex
bowtie/_app.py
Python
mit
38,439
[ "Bowtie" ]
167bd30e896d6a9434c17a2bb4f5caa168d51258e97f341c685a4831f26ebd7c
#!/usr/bin/env python -i # preceding line should have path for Python on your machine # demo.py # Purpose: illustrate use of many library interface commands # Syntax: demo.py # uses in.demo as LAMMPS input script from __future__ import print_function import sys # parse command line argv = sys.argv if len(...
akohlmey/lammps
python/examples/demo.py
Python
gpl-2.0
1,406
[ "LAMMPS" ]
b3845e030ddc31fef381ede6765b14200dfb76fcab3fdce439b76a0747e1ba82
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Gary Burton # # 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...
Forage/Gramps
gramps/gen/plug/menu/_family.py
Python
gpl-2.0
1,791
[ "Brian" ]
214c1e6d430d32ce779e82b2fcfc729d448287021385b215857234370526e0e3
""" Filename: eigen_markov.py Author: Daisuke Oyama This file contains some routines specialized for stochastic (Markov) matrices. stoch_eig : returns the stochastic eigenvector (stationary distribution) of an irreducible stochastic matrix P, i.e., the stochastic vector x with x P = x gth_solve : returns the...
oyamad/mpmath_eigen_markov
eigen_markov.py
Python
bsd-3-clause
5,711
[ "Gaussian" ]
b692fabb7b3c919c417c7d61a896e48ec581d7c24a8afa471852dd9c3b059ee7
# -*- coding:utf-8 -*- from brian import Equations, NeuronGroup from brian.units import * from brian.stdunits import * from model import PARAMETERS as ps # If the model parameters have been initialized if ps != None: PSGR = ps['Granule'] C_m = PSGR['C_m'] g_L = PSGR['g_L'] E_L = PSGR['E_L'] g_...
neuro-lyon/multiglom-model
src/model/granule_cells.py
Python
mit
2,334
[ "Brian" ]
4a0e49aadac6e09c83829730827f8033e55917f81f7835c0b8c9ed8df7a50496
#!/usr/bin/env python # -*- coding: utf-8 -*- """ | This file is part of the web2py Web Framework | Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> | License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) CONTENT_TYPE dictionary created against freedesktop.org's shared mime info database version 1.1. Dev...
manuelep/openshift_v3_test
wsgi/web2py/gluon/contenttype.py
Python
mit
30,533
[ "NetCDF" ]
6f2bde91f4275eee1cc9c48d053652f634dbf52e34f7825e1ef944483ec50148
#!/usr/bin/env python # # Author: Oliver J. Backhouse <olbackhouse@gmail.com> # George H. Booth <george.booth@kcl.ac.uk> # ''' An example of generating Dyson orbitals from an AGF2 calculation. Default AGF2 corresponds to the AGF2(1,0) method outlined in the papers: - O. J. Backhouse, M. Nusspickel and G. H....
sunqm/pyscf
examples/agf2/10-dyson_orbitals.py
Python
apache-2.0
934
[ "PySCF" ]
a4e1c560bb41b54bca5fb95fcf47509f2e445cdd0df27fea995c5c96ff2c81d4
from __future__ import print_function, division from sympy.core.add import Add from sympy.core.compatibility import as_int, is_sequence, range from sympy.core.exprtools import factor_terms from sympy.core.function import _mexpand from sympy.core.mul import Mul from sympy.core.numbers import Rational from sympy.core.nu...
antepsis/anteplahmacun
sympy/solvers/diophantine.py
Python
bsd-3-clause
92,743
[ "Gaussian" ]
8bd04aa7cf05f156288a2028f4bb665b13b03bd7fd01a65d3957b083b6a1a024
# Copyright 2017 Max Planck Society # Distributed under the BSD-3 Software license, # (See accompanying file ./LICENSE.txt or copy at # https://opensource.org/licenses/BSD-3-Clause) """Class responsible for vizualizing and evaluating trained models. """ import os import logging import tensorflow as tf import matplotli...
tolstikhin/adagan
metrics.py
Python
bsd-3-clause
28,548
[ "Gaussian" ]
c9d3dbbade8b49389b7bd11504772bb0066b667a109656db5ef2081e022e67de
# Orca # # Copyright 2004-2008 Sun Microsystems Inc. # Copyright 2001, 2002 BAUM Retec, A.G. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at ...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/rolenames.py
Python
gpl-3.0
39,324
[ "ORCA" ]
0a7ea3bd5874ceff5285ddba07c9b5bd0b1f5fee1fb6cc771c875f6b652b6057
# -*- coding: utf-8 -*- class vlist(list): def accept(self, visitor): visitor.visit_list(self) class vdict(dict): def accept(self, visitor): visitor.visit_dict(self) class Printer(object): def visit_list(self, ob): print 'list content :' print str(ob) def visit_dict(s...
t10471/python
practice/src/design_pattern/expert/visitor.py
Python
mit
1,310
[ "VisIt" ]
39136ebd599cfad6ca207340fa1e3e85a94dd09bf970303b0ac3e1a790af2236
# -*- coding: utf-8 -*- """ Created on Thu Jan 07 11:08:01 2016 @author: Radu """ from neuron import h from matplotlib import pyplot def set_recording_vectors(cell): """Set soma, dendrite, and time recording vectors on the cell. :param cell: Cell to record from. :return: the soma, dendrite, and time vec...
penguinscontrol/Spinal-Cord-Modeling
ClarkesNetwork/simrun_passive.py
Python
gpl-2.0
1,539
[ "NEURON" ]
23c6b6a5c940b076516f4c032cb92965137efd7a8880f6f6fc40091f12a434e6
# -*- coding: utf-8 -*- # Copyright 2007-2020 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
dnjohnstone/hyperspy
hyperspy/_components/doniach.py
Python
gpl-3.0
5,281
[ "Gaussian" ]
be9d99c7049b1e39d6bb6ec9a379498407e85cccc78de1d33c65c1150ba5d868
""" Extensions to SQLAlchemy for altering existing tables. At the moment, this isn't so much based off of ANSI as much as things that just happen to work with multiple databases. """ import StringIO import sqlalchemy as sa from sqlalchemy.schema import SchemaVisitor from sqlalchemy.engine.default import Defa...
zhumengyuan/kallithea
kallithea/lib/dbmigrate/migrate/changeset/ansisql.py
Python
gpl-3.0
10,723
[ "VisIt" ]
f5783e2db3e7a9808b5e1aa2bfbc3a3e0c5072a7d5400a0eb9c2393aa6f797f2
# Copyright 2012 by Eric Talevich. 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. import collections import warnings from Bio.Alphabet import generic_protein from Bio.Seq impor...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SeqIO/PdbIO.py
Python
gpl-2.0
9,132
[ "Biopython" ]
77427944a90df8bdd45754c4a2c81330d2c1fdf8f5ae89134b3b1eac5da9221c
from collections import OrderedDict import logging import os import parmed.unit as units from intermol.utils import which, run_subprocess from intermol.gromacs.gromacs_parser import load, save GMX_PATH = '' logger = logging.getLogger('InterMolLog') to_canonical = { 'Bond': 'bond', 'Angle': 'angle', '...
shirtsgroup/InterMol
intermol/gromacs/__init__.py
Python
mit
4,930
[ "Gromacs" ]
c41ef7245e028d3fb83846e690d3de6cd721d777e3a4efd95252f1b6e0e0e8b2
from nbodykit import CurrentMPIComm from nbodykit.binned_statistic import BinnedStatistic from collections import OrderedDict import numpy import logging import kdcount class Base3PCF(object): """ Base class for implementing common 3PCF calculations. Users should use :class:`SimulationBox3PCF` or :class:`...
nickhand/nbodykit
nbodykit/algorithms/threeptcf.py
Python
gpl-3.0
19,956
[ "Galaxy" ]
05b36a6a514934ae0e29dfe9028e7057050330f7696aa650e92d6538b3a309c4
# # Copyright 2018 Analytics Zoo 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...
intel-analytics/analytics-zoo
pyzoo/test/zoo/orca/learn/spark/test_estimator_for_spark.py
Python
apache-2.0
25,922
[ "ORCA" ]
fff5ca7e30f60cb4b01cf24d1bfbd382f96d87c713e4afa286a69a70cd6402c2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.optimization.linear_assignment import LinearAssignment import numpy as np class LinearAssignmentTest(unittest.TestCase): def test(self): w0 = np.array([[19, 95, 9,...
dongsenfo/pymatgen
pymatgen/optimization/tests/test_linear_assignment.py
Python
mit
7,626
[ "pymatgen" ]
68d12f4848adea15a3682d0e58f3a6c060eaa251604eb4e7cdfecd686ed07007
import unittest from test import support import sys import random import math import array # SHIFT should match the value in longintrepr.h for best testing. SHIFT = sys.int_info.bits_per_digit BASE = 2 ** SHIFT MASK = BASE - 1 KARATSUBA_CUTOFF = 70 # from longobject.c # Max number of base BASE digits to use in te...
batermj/algorithm-challenger
code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/test/test_long.py
Python
apache-2.0
49,541
[ "Brian" ]
260fa254e6453abdf0ceee48e5174f2f8908275e801733599c1f065af9573b3b
# Author: Travis Oliphant, 2002 # # Further updates and enhancements by many SciPy developers. # from __future__ import division, print_function, absolute_import import math import warnings from collections import namedtuple import numpy as np from numpy import (isscalar, r_, log, around, unique, asarray, ...
argriffing/scipy
scipy/stats/morestats.py
Python
bsd-3-clause
94,790
[ "Gaussian" ]
893af3ba3266c7ecf37f236558e1d9bd52db7f0ebb12a6daa880568a8bff28a8
""" #;+ #; NAME: #; cgm.core #; Version 1.0 #; #; PURPOSE: #; Module for core routines of CGM analysis #; 29-Nov-2014 by JXP #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, division, unicode_literals import numpy...
nhmc/xastropy
xastropy/cgm/field.py
Python
bsd-3-clause
7,430
[ "Galaxy" ]
7c3b2af0a973a13d76934c934f1f217f10d018fb5ff094e8d92eee0b71b6c417
import unittest, time, sys sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_glm, h2o_util, h2o_import as h2i class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init(1) global SYNDATASETS_DIR ...
rowhit/h2o-2
py/testdir_single_jvm/test_GLM2_princeton.py
Python
apache-2.0
1,776
[ "Gaussian" ]
dc4e9e7879ebd17d44fe513337349d5565eb5400080c6c0e574ec20e4e6c67f2
# -*- coding: utf8 """Random Projection transformers Random Projections are a simple and computationally efficient way to reduce the dimensionality of the data by trading a controlled amount of accuracy (as additional variance) for faster processing times and smaller model sizes. The dimensions and distribution of Ra...
kmike/scikit-learn
sklearn/random_projection.py
Python
bsd-3-clause
21,717
[ "Gaussian" ]
061ea4fb3bfa2f64100e88f0adf090b0e05a9fd9ef761530f73bcfe28e8efff2
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from parlai.core.opt import Opt from parlai.tasks.empathetic_dialogues.agents import ( EmotionClass...
facebookresearch/ParlAI
tests/tasks/test_empathetic_dialogues.py
Python
mit
30,262
[ "VisIt", "exciting" ]
3900afda2eb3c582dda202c141eeeb7591a65c80b1f82435372f329b77d043b7
#!/usr/bin/env python # # Manage bundled python module files for use in PyPy.js. # # This script is used to manage an indexed bundle of python module files in # a format that makes them easy to use for PyPy.js. In particular it lets # us hack around the fact that we can't use an async XMLHttpRequest from # inside...
perkinslr/pypyjs
website/js/pypy.js-0.2.0/tools/module_bundler.py
Python
mit
23,227
[ "VisIt" ]
b3c1c10576466d2091a17f76a21f3a1bb679e289618b46b5830731738bba8162
####################################### # pyGPGO examples # example1d: SHows how the Bayesian Optimization works on a one-dimensional # sine-like function, step by step. ####################################### import os import matplotlib.pyplot as plt import numpy as np from pyGPGO.GPGO import GPGO from pyGPGO.surr...
hawk31/pyGPGO
examples/example1d.py
Python
mit
1,883
[ "Gaussian" ]
3c087cb4ac0ec71c081436eb613d9a6ed1c10e89a54113738d084cc729815cc4
__author__ = 'Jason Piper' import imp current_version = imp.load_source('lol', 'pyDNase/_version.py').__version__ try: from setuptools import setup, Extension except ImportError: from distutils.core import setup from distutils.extension import Extension setup( name='pyDNase', version=current_vers...
jpiper/pyDNase
setup.py
Python
mit
1,690
[ "pysam" ]
e0e7d5be38c8ffd701185bed9ad271b06013516d041129759394f484f4353a72
# Copyright (c) Materials Virtual Lab. # Distributed under the terms of the BSD License. """ This package contains various command line interfaces for common pymatgen functionality such as file conversion, etc. Entry points to these interfaces are defined in setup.py. """
vorwerkc/pymatgen
pymatgen/cli/__init__.py
Python
mit
274
[ "pymatgen" ]
91ec1a41939000912ebf0a12b1081f06137ee2ae06814744e8155118ab32205d
## ENVISIoN ## ## Copyright (c) 2021 Gabriel Anderberg, Didrik Axén, Adam Engman, ## Kristoffer Gubberud Maras, Joakim Stenborg ## All rights reserved. ## ## Redistribution and use in source and binary forms, with or without ## modification, are permitted provided that the following conditions are met: ## ## 1....
rartino/ENVISIoN
demo/molecular_dynamics.py
Python
bsd-2-clause
2,653
[ "VASP" ]
6270b8edebdc7ab9a10d665f8aac529017edd73a2f9ca96db99d2c4aeebc3911
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import re import six import errno import os import tempfile import codecs from monty.io import zopen """ This module provides utility classes for io operations. """ __a...
Bismarrck/pymatgen
pymatgen/util/io_utils.py
Python
mit
6,087
[ "pymatgen" ]
121306622611bc5d5c217d405501ff34c69179e0887ce64f2703b4fa13f455a2
""" Module to that correct the Discret Fourier Transform in order to get the analytical value. """ from __future__ import division import numpy as np import scipy try: import numba as nb use_numba = True except: use_numba = False def get_fft_freq(t): """ return the frequency range of the...
gkc1000/pyscf
pyscf/nao/m_fft.py
Python
apache-2.0
12,731
[ "PySCF" ]
d2ba4215c7f7db6f01c561af8941d7209822ce5b4f6e3468aaf8b83517fbd6ae
# encoding: utf-8 ''' PYROMS is a toolkit for working with ROMS ocean models pyroms is based on the python/numpy/matplotlib scientific python suite. NetCDF I/O is based on the NetCDF4-python package. The toolkit contains general modeling tools for dealing with arrays, diagnosing standard properties, curvilinear gr...
dcherian/pyroms
pyroms/pyroms/__init__.py
Python
bsd-3-clause
583
[ "NetCDF" ]
8ab5c2a74fd21149f633d261a35096538d5f4c166cf4f6816ee2efc15da894e5
#!/usr/bin/env python import os import sys import numpy as np import matplotlib.pyplot as plt def expected(x): p0 = 0.0 bulk = 1.2 dens0 = 1.0 grav = 1.0 return -bulk * np.log(np.exp(-p0 / bulk) + grav * dens0 * x / bulk) def equal_to_tol(a, b): return (np.abs(a) < 1.0E-10 and np.abs(b) < 1.0...
katyhuff/moose
modules/porous_flow/doc/tests/gravity.py
Python
lgpl-2.1
2,634
[ "MOOSE" ]
e2469694ab3ba688d2e29e10838bc05aec318fd1d26b36a561d5dc677ec402c1
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # create a rendering window and renderer ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) renWin.StereoCapableWindowOn() iren = vtk.vtkRende...
hlzz/dotfiles
graphics/VTK-7.0.0/IO/EnSight/Testing/Python/EnSightSelectArrays.py
Python
bsd-3-clause
1,590
[ "VTK" ]
60c0caf103eb13b978f844f23144730d48a6445c0cc0e090ead27bd7ad31c92c
#!/usr/bin/env python import numpy as np from gpaw.mpi import world from gpaw.utilities.dscftools import mpi_debug W = world.size N = 32 assert N%W == 0 M = N//W # Create my share of data data = np.arange(world.rank*M, (world.rank+1)*M) # Let's calculate the global sum slocal = data.sum() s = world.sum(slocal) mp...
qsnake/gpaw
doc/devel/parallelization.py
Python
gpl-3.0
3,593
[ "GPAW" ]
2f4a350c0a11e1f163ac3f5949632c4c59d17399e0d68b0ac4cf9d409d14f6ad
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
dmlc/tvm
python/tvm/relay/frontend/change_datatype.py
Python
apache-2.0
3,473
[ "VisIt" ]
e44b43f1d518687e2cb6b138aa5090a8a252ec4766ee860a2e6324f0e2dc8856
# -*- coding: utf-8 -*- # """ This models contains the Kernels for Kernel smoothing. Hopefully in the future they may be reused/extended for other kernel based method References: ---------- Pointwise Kernel Confidence Bounds (smoothconf) http://fedc.wiwi.hu-berlin.de/xplore/ebooks/html/anr/anrhtmlframe62.html """ #...
pprett/statsmodels
statsmodels/sandbox/nonparametric/kernels.py
Python
bsd-3-clause
13,269
[ "Gaussian" ]
934820c9aed98fb0f44c4c9cb858a3fbb5bea62786f16ab446df5166a3b7da74
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
intel-analytics/BigDL
python/orca/src/bigdl/orca/common.py
Python
apache-2.0
16,827
[ "ORCA" ]
cfefe809936688009a10dc48e6710c1461420610f67f71979665f1572c6d5401
''' Created on Jul 14, 2011 @author: sean ''' from __future__ import print_function from graphlab.meta.decompiler.simple_instructions import SimpleInstructions from graphlab.meta.decompiler.control_flow_instructions import CtrlFlowInstructions import _ast from graphlab.meta.asttools import print_ast from graphlab.met...
chen0031/Dato-Core
src/unity/python/graphlab/meta/decompiler/instructions.py
Python
agpl-3.0
14,782
[ "VisIt" ]
5f2835e18c31d20865e60b244adfc53a126fcb27ab30680a8f1b026b072067f7
import collections import contextlib import heapq import inspect import traceback import weakref import numpy import six import chainer from chainer import _backprop_utils from chainer.backends import cuda from chainer import backend from chainer import configuration from chainer import function_hook from chainer.gra...
jnishi/chainer
chainer/function_node.py
Python
mit
49,905
[ "VisIt" ]
8a244247636174da632bec7d7714e26fdaa1cc87bd06ece69962d3fdf3ada4ad
#!/usr/bin/env python # Copyright 2018-2020 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....
gkc1000/pyscf
pyscf/ao2mo/semi_incore.py
Python
apache-2.0
13,121
[ "PySCF" ]
23559860e4402b63e9cdeb50c8631465c846f5d6d663d27ace5426386d1abec7
import logging import os import easygui import math import sys import numpy as np import pyqtgraph as pg import pyqtgraph.opengl as gl from pyqtgraph.Qt import QtCore, QtGui from scipy.misc import imread import matplotlib as mpl import matplotlib.pyplot as plt if __name__ == '__main__': from cogrecon.core.data_...
kevroy314/msl-iposition-pipeline
cogrecon/core/visualization/vis_time_travel_task.py
Python
gpl-3.0
35,430
[ "Mayavi" ]
612518c0688886d0e885146f6fd4a085c73a94820a286365c2d961932a79a595
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/pbc/dft/test/test_rks.py
Python
apache-2.0
6,300
[ "PySCF" ]
999ef22b81b17750d00888a2b3d6c570c2bdfd964942fd599d4763a4cecf229b
# -*- coding: utf-8 -*- import os import re import zipfile from shutil import copyfileobj from django import forms from django.conf import settings from django.core.cache import cache from django.core.files.storage import default_storage as storage from django.core.urlresolvers import reverse from mock import Mock, p...
jamesthechamp/zamboni
mkt/files/tests/test_helpers.py
Python
bsd-3-clause
11,149
[ "exciting" ]
be352bac5f059709f18b32fc6ed340505a9fa7dad7b68815335e34321e0ac825
"""Convert the Unidata GOES product netcdf files to IEM PNG. The devil is in the details here :) """ import datetime import subprocess import traceback import tempfile import json import os import sys import inotify.adapters from PIL import Image import numpy as np from netCDF4 import Dataset from pyiem.util import ...
akrherz/pyWWA
goes/netcdf2png.py
Python
mit
6,591
[ "NetCDF" ]
ada660e23f4c615d2b79121a6b284408a2507a4602b5b1538ab4fd8b1db6bdf1
from test import test_support import unittest import codecs import sys, StringIO, _testcapi class Queue(object): """ queue: write bytes at one end, read bytes from the other end """ def __init__(self): self._buffer = "" def write(self, chars): self._buffer += chars def read(se...
mancoast/CPythonPyc_test
cpython/266_test_codecs.py
Python
gpl-3.0
56,881
[ "FEFF" ]
8aed45685ef0f8c8f30ecf11d362bfe1981a8b1793e3291619c56eb2fc453b59
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=1> # Reading H-SAF images # <rawcell> # In this Example we will read and plot images of the H-SAF products H07, H08 and H14. # <codecell> import pytesmo.io.sat.h_saf as h_saf import os import datetime import matplotlib.pyplot as plt from mpl_...
christophreimer/pytesmo
examples/Read_H_SAF_images.py
Python
bsd-3-clause
10,071
[ "Gaussian" ]
8d8382d097be6507f0ce71fac864412e2053deb3433dd38c07aae865b5e53f1d
""" This file is part of gempy. gempy 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. gempy is distributed in the h...
cgre-aachen/gempy
gempy/plot/_plot.py
Python
lgpl-3.0
14,507
[ "Gaussian", "VTK" ]
12a7817c35ace44861cbcc3504382bdf555e369c69c0f4bcd2d1dab24d036756
# -*- coding: utf-8 -*- import ast import base64 import csv import glob import itertools import logging import operator import datetime import hashlib import os import re import simplejson import time import urllib2 import xmlrpclib import zlib from xml.etree import ElementTree from cStringIO import StringIO import b...
dhp-denero/LibrERP
web_client/ea_web-github/addons/web/controllers/main.py
Python
agpl-3.0
81,348
[ "VisIt" ]
f488595a3d97a211815c96b8e4ba998c659b6bd2cb5a962d8c75487aa94a4b3f
#!/usr/bin/env python # # $File: absIndex.py $ # # This file is part of simuPOP, a forward-time population genetics # simulation environment. Please visit http://simupop.sourceforge.net # for details. # # Copyright (C) 2004 - 2010 Bo Peng (bpeng@mdanderson.org) # # This program is free software: you can redistribute i...
BoPeng/simuPOP
docs/absIndex.py
Python
gpl-2.0
1,272
[ "VisIt" ]
0594616d8f831201f9b7cc99c2a21f8fea270bac189da6a5cf443f3e4bf9b720
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, Submount, get_config, import_string def get_rules(): """Returns a list of URL rules for the application. The list can be defi...
ac001/moe
project/app/urls.py
Python
bsd-3-clause
1,517
[ "MOE" ]
132716ff3818351be67f5e54608a2b8e549c557064512abd8130f817007a1711
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2012, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.zenoss.Notifications
ZenPacks/zenoss/Notifications/actions/altemailhost.py
Python
gpl-2.0
3,955
[ "VisIt" ]
205dacaae03ea94f6e3a777fbb61e2dfa08ecb3a5a697e5d56516360e01a6980
from java import lang from com.im.lac.types import MoleculeObject, MoleculeObjectIterable lang.System.loadLibrary('GraphMolWrap') from org.RDKit import * from find_props import funct_dict from java.util import ArrayList def filter_prop(request, function, max_ans, min_ans): """Function to filter a list of mols giv...
InformaticsMatters/squonk
components/rdkit-camel/src/main/python/find_props/filter_props.py
Python
apache-2.0
1,170
[ "RDKit" ]
51c1e46f9cc178f86bd01ed6139138a2851b86557ab2a80d46928c90d5910b6a
# # The Template-Python distribution is Copyright (C) Sean McAfee 2007-2008, # derived from the Perl Template Toolkit Copyright (C) 1996-2007 Andy # Wardley. All Rights Reserved. # # The file "LICENSE" at the top level of this source distribution describes # the terms under which this file may be distributed. # ...
gsnedders/Template-Python
template/context.py
Python
artistic-2.0
36,136
[ "VisIt" ]
8ed375bf71e9d71c13f143fe41c7dc6f427a35a2c1162e736e7d1ead63482957
""" Alchemical softening illustration for imatinib binding to Abl kinase. """ __author__ = 'John D. Chodera' ################################################################################ # IMPORTS ################################################################################ import os, os.path import sys, math...
steven-albanese/sams
examples/abl-imatinib-explicit/soften-ligand.py
Python
mit
6,729
[ "Amber", "MDTraj", "OpenMM" ]
e471ac338732a704117d261bc2007c28896d9d59f555022b602aa4a2a262af7e
# Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda s: s #################...
rawwell/django
django/conf/global_settings.py
Python
bsd-3-clause
13,209
[ "VisIt" ]
a6104b073602cddcb4c26264d0b942ca200b9400295831799b051cd3b1aa7e2e
import difflib import glob import itertools as it import os from typing import List import parmed as pmd import pytest from lxml import etree as ET from parmed.gromacs.gromacstop import _Defaults from pkg_resources import resource_filename from foyer import Forcefield, forcefields from foyer.exceptions import ( F...
mosdef-hub/foyer
foyer/tests/test_forcefield.py
Python
mit
29,080
[ "Gromacs", "OpenMM" ]
88b202ab043fee94157af5fa366be17a510cfadf31edbfd98917917738d71135
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses...
andmos/ansible
lib/ansible/modules/network/avi/avi_sslprofile.py
Python
gpl-3.0
8,511
[ "VisIt" ]
a01189d80f1deb40b614df395d090e1a8e24f09b3de3436374ccf1f781b98a17
#!/usr/bin/env python # Example to illustrate the benefit of using EDHMM over HMM, to fit temporally structured event patterns. # # Written by Dan Stowell 2016. # # To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worl...
cassebook/cassebook.github.io
code/ch08/fig8_4_edhmm_example.py
Python
mit
8,320
[ "Gaussian" ]
af694e4505157a40471fc158eb8ab1a2aa7632e74e31ead953c1ccc8e8d6750a
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.model.utils.rename_field import rename_field from frappe.modules import scrub, get_doctype_module rename_map = { "Opportunit...
ovresko/erpnext
erpnext/patches/v5_0/rename_table_fieldnames.py
Python
gpl-3.0
6,648
[ "VisIt" ]
fe64eca4246eec6a7286f2aafbe2c3242ef2697e47a45fa8e4236b6a117255c3
#!/usr/bin/env python # -*- coding: UTF-8 -*- """Death by Captcha HTTP and socket API clients. There are two types of Death by Captcha (DBC hereinafter) API: HTTP and socket ones. Both offer the same functionalily, with the socket API sporting faster responses and using way less connections. To access the socket AP...
dantebarba/docker-media-server
plex/Sub-Zero.bundle/Contents/Libraries/Shared/deathbycaptcha.py
Python
gpl-3.0
17,470
[ "VisIt" ]
f46acb84b523f3f594ef5f6381d36b4e234d5f37e1c166dcac5da5d9ea6d32fc
from __future__ import print_function import fitsio from legacypipe.runbrick import * from legacypipe.runbrick import _depth_histogram from legacypipe.coadds import write_coadd_images, _resample_one from collections import OrderedDict olddir = '/global/projecta/projectdirs/cosmo/work/dr4c' def stage_galdepths(survey...
legacysurvey/legacypipe
py/scripts/dr4/remake-galdepths.py
Python
bsd-3-clause
5,658
[ "Galaxy" ]
c3712c89b727e12e619c446286956e4c55f4d76d320c546a05bba3dac3845bdd
# Copyright (c), Michael DeHaan <michael.dehaan@gmail.com>, 2012-2013 # Copyright (c), Toshio Kuratomi <tkuratomi@ansible.com> 2016 # Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause) from __future__ import absolute_import, division, print_function SIZE_RANGES = ...
jimi-c/ansible
lib/ansible/module_utils/basic.py
Python
gpl-3.0
116,552
[ "VisIt" ]
2341d47d7d821999ffc048bde50cd83399505510ac7f06e950aa8c57343825f2
from __future__ import absolute_import import unittest import math import os import numpy as np from monty.serialization import loadfn from pymatgen.analysis.elasticity.tensors import * from pymatgen.core.operations import SymmOp from pymatgen.symmetry.analyzer import SpacegroupAnalyzer from pymatgen.util.testing imp...
matk86/pymatgen
pymatgen/analysis/elasticity/tests/test_tensors.py
Python
mit
24,453
[ "pymatgen" ]
026ef2db663e598de4d4540dc7b9591bf7a88a0637e05ab6771cc7d21109b5a9
""" This is the VAR class refactored from pymaclab. """ from __future__ import division import copy as COP import scipy as S import numpy as np from numpy import matlib as MAT from scipy import linalg as LIN #TODO: get rid of this once cleaned up from scipy import linalg, sparse from scipy.stats import norm, ss as sumo...
matthew-brett/draft-statsmodels
scikits/statsmodels/sandbox/tsa/var.py
Python
bsd-3-clause
48,879
[ "ADF" ]
a1230921dc5b4598e9338530be8705c4dcc7d78014701dd774a61f7b4f8b6ebe
# -*- coding: utf-8 -*- # # precise_spiking.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License...
lekshmideepu/nest-simulator
pynest/examples/precise_spiking.py
Python
gpl-2.0
5,090
[ "NEURON" ]
234ffb7fcc94a33625c5ae668524ab929f34cf7e6ebc87969f7422c05dbc4792
''' Game Boy ROM Object A part of the libPirate (Python) library Version: 0.2 Author: Derrick Sobodash <derrick@sobodash.com> Copyright: (c) 2008, 2012 Derrick Sobodash Web site: https://github.com/sobodash/libpirate/ License: BSD License <http://opensource.org/licenses/bsd-license.php> ''' try: import re ...
sobodash/libpirate
lib/pirromgboy.py
Python
bsd-2-clause
9,575
[ "VisIt" ]
8d955e59b9ade6553795440bf8cd67051a9b9c6a40351c1a7f9539c301a17061
"""Unit test for soundex.py This program is part of "Dive Into Python", a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. """ __author__ = "Mark Pilgrim (mark@diveintopython.org)" __version__ = "$Revision: 1.1 $" __date__ = "$Date: 2004/05/06 17:18:17 $" __copyr...
tapomayukh/projects_in_python
sandbox_tapo/src/refs/diveintopython-pdf-5.4/diveintopython-5.4/py/soundextest.py
Python
mit
1,122
[ "VisIt" ]
3db0ccdc257d0e6d163c7e705b41b260345049c55691430f0e3c185c1a55ed7a
import pycuda.autoinit from pycuda.compiler import SourceModule cu_matrix_kernel = SourceModule(""" #include <math.h> #include <stdio.h> #include "texture_fetch_functions.h" #include "texture_types.h" #define THREADS_PER_BLOCK 256 #define FIT_RADIUS 6 texture<float, cudaTextureType2DLayered, cudaReadModeElementTy...
MichaelDAlbrow/pyDIA
Code/cuda_functions_sp.py
Python
mit
42,630
[ "Gaussian" ]
8ed2d3d635ec40b0dd97b7869efbc8dbf26d11a66068ef06b2989d80b822c2d1
'''collect all functions that deal directly with event lists for e.g.:: - Timing ''' import numpy as np import scipy import scipy.stats import matplotlib as mpl import matplotlib.mlab as mlab import matplotlib.pyplot as plt from PyAstronomy.pyTiming import pyPeriod from astropy.table import Table import glob import...
hamogu/COStools
eventlists.py
Python
gpl-2.0
19,517
[ "Gaussian" ]
45aa86473dac40cd4a062fd1fc3e166f6d7329bf51d76d2bf6f847963c20c88d
#!/usr/bin/env python2 # Copyright (C) 2016-2017(H) # Max Planck Institute for Polymer Research # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, eit...
govarguz/espressopp
examples/tabulated_potential/table_interpolation.py
Python
gpl-3.0
6,396
[ "ESPResSo" ]
09e8115212c6d453472659886eeeb0d77b7e3a79c27d9c9f81ff7f68d5a1aecd
# make plot of ozone concentration data on # lambert conformal conic map projection, drawing coastlines, state and # country boundaries, and parallels/meridians. # the data is interpolated to the native projection grid. from mpl_toolkits.basemap import Basemap, shiftgrid import numpy as np import matplotlib.pyplot as ...
raincoatrun/basemap
examples/plotozone.py
Python
gpl-2.0
4,020
[ "NetCDF" ]
08415bc449fe109fc9e32475c27e1c94b650af003e7a1382ab17b0ffd0a11e0d
#---------------------------------------------------------------------- # This file was generated by img2py.py # from wx.lib.embeddedimage import PyEmbeddedImage _3d_graph = PyEmbeddedImage( "iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAGw0lEQVR42sXXe1BU1xkA8O8+" "dveyPHZl7/JYApEQBDEaJQ9nSBEEY1JHbR5a09Exace...
ODM2/ODMToolsPython
odmtools/common/icons/icons.py
Python
bsd-3-clause
139,001
[ "ASE" ]
5a24a1a0740a4eedfd167de8a22a56ecb1da04a587818451b46717fdeb428b56
#!/usr/bin/env python """ desispec.io.emlinefit ==================== IO routines for desi_emlinefit_afterburner. """ import os from astropy.table import Table import fitsio import numpy as np from desitarget.geomask import match_to from desitarget.targets import main_cmx_or_sv from desiutil.dust import ext_odonnell f...
desihub/desispec
py/desispec/io/emlinefit.py
Python
bsd-3-clause
18,073
[ "Galaxy" ]
3369df334b523436d12ed0c4df9f29ec6384097968fbeb2ead960448532968c8
"""Functions to plot epochs data """ # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.f...
andyh616/mne-python
mne/viz/epochs.py
Python
bsd-3-clause
60,131
[ "Gaussian" ]
ac86673b835b0228e958185641ace179b90e4cdadc89a20a8bc963e924c6295a
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012-2015 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Fou...
andrebellafronte/stoq
stoqlib/gui/test/test_producteditor.py
Python
gpl-2.0
7,862
[ "VisIt" ]
00e94295529c199473c2b0acbb9e04a73f4190a87695b11d2c1766e08b6688e7
# -*- coding: utf-8 -*- """ End-to-end tests related to the divided discussion management on the LMS Instructor Dashboard """ from __future__ import absolute_import import uuid from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth impor...
ESOedX/edx-platform
common/test/acceptance/tests/discussion/test_discussion_management.py
Python
agpl-3.0
22,127
[ "VisIt" ]
3ebbef90c3cf38a4ffb321d0a4f51450ccb093af2d66b464b1160d1265490738
""" Course Outline page in Studio. """ import datetime from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise from selenium.webdriver import ActionChains from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from common.test.acceptance.pages.c...
synergeticsedx/deployment-wipro
common/test/acceptance/pages/studio/overview.py
Python
agpl-3.0
38,396
[ "VisIt" ]
632ffc8ee42db3444e7c545bb8d750bde4ea4b88382ba71313c1c6d3d6688ea1
""" SkCode figures tag definitions code. """ from gettext import gettext as _ from ..etree import TreeNode from ..tools import slugify from ..render import render_inner_text class FigureCaptionTreeNode(TreeNode): """ Figure caption tree node class. """ canonical_tag_name = 'figcaption' alias_tag_names ...
TamiaLab/PySkCode
skcode/tags/figures.py
Python
agpl-3.0
6,227
[ "VisIt" ]
54d3c77e2efa0147d7f802e9e6027428bc1db9fececdf1b46d92aa978bb1c5c3