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
""" Tests for building models for parameter selection """ from collections import OrderedDict import symengine from pycalphad import variables as v from espei.parameter_selection.model_building import build_feature_sets, build_candidate_models from espei.sublattice_tools import generate_symmetric_group, sorted_inter...
PhasesResearchLab/ESPEI
tests/test_model_building.py
Python
mit
9,390
[ "pycalphad" ]
53f02aa9a222e69a21130e2418733c9762a4f79d45208bd657c006a59f81e461
import os import pandas as pd import pdb import math import time from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from models import AD_View from sklearn import svm from sklearn.model_selection import train_test_split from sklearn import ensemble from sklearn import metrics import numpy as n...
bhzunami/Immo
immo/scikit/scripts/anomaly_detection.py
Python
mit
6,624
[ "Gaussian" ]
f553130dbe6d7a3d18967695bc1ff06a5b506cb0ddb6743f37228728e4b38277
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2016-09-15 14:50:00 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-02-10 17:54:00 from __future__ import print_function, division, absolute_import import distutils import...
bretthandrews/marvin
python/marvin/tools/modelcube.py
Python
bsd-3-clause
18,903
[ "Brian" ]
a96d0b76eee667bfe319e64fd705c4f4ca22743109f50009e1dcb198ebf13932
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/remindor
remindor/scheduler.py
Python
gpl-3.0
2,615
[ "Brian" ]
ebf2966372728d06996314b70f69785cab7fd7fa69666132fcdb96b886602b17
## # Copyright 2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (http://w...
valtandor/easybuild-easyblocks
easybuild/easyblocks/e/esmf.py
Python
gpl-2.0
4,293
[ "NetCDF" ]
1adbf9001f951741c42df624eeba550a36dcfac0290ce77689bc631a5d27fd29
# -*- coding: utf-8 # pylint: disable=line-too-long """ Classes to define and work with anvi'o pangenomics workflows. """ import os import anvio import anvio.terminal as terminal from anvio.errors import ConfigError from anvio.workflows import WorkflowSuperClass from anvio.workflows.contigs import ContigsDBWorkf...
meren/anvio
anvio/workflows/pangenomics/__init__.py
Python
gpl-3.0
7,684
[ "BLAST" ]
3c4748cd5996de78e4ea74a2b27db608480ccb95c17effcf7c29a61951930321
# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 from typing import List, Optional, Tuple import numpy as np from scipy.special import erf from ...quadrature.interfaces.standard_kernels import IRBF from ...quadrature.kernels.bounds import BoxBounds from...
EmuKit/emukit
emukit/quadrature/kernels/quadrature_rbf.py
Python
apache-2.0
14,186
[ "Gaussian" ]
86c9f600e3c855f4a4c738a213b71439703156cb93d1c3ad9da243a419afc7c4
from __future__ import print_function, division from sympy.core import S, C, sympify from sympy.core.function import Function, ArgumentIndexError from sympy.core.logic import fuzzy_and from sympy.ntheory import sieve from math import sqrt as _sqrt from sympy.core.compatibility import reduce, as_int, xrange from sympy...
cccfran/sympy
sympy/functions/combinatorial/factorials.py
Python
bsd-3-clause
17,750
[ "VisIt" ]
0617ab74061e60f346628bf4c92a49cdb32064f8bbc51b377e9bb478369a7186
"""Support for package tracking sensors from 17track.net.""" import logging from datetime import timedelta import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_LOCATION, CONF_PASSWORD, CONF_SCAN_INTERVAL, CONF...
Cinntax/home-assistant
homeassistant/components/seventeentrack/sensor.py
Python
apache-2.0
10,865
[ "VisIt" ]
9feea18c0e8931859e7230ec6bd222e42df0897bc9395ee606e196f880f05376
__author__ = 'Elahe' import ephem import numpy as np import json from operator import attrgetter from numpy import * import time ''' Constants ''' inf = 1e10 eps = 1e-10 #temp variable AllF = np.zeros((4206,7)) class Data(object): def __init__(self, date, site): self.Date = date self.Site =...
elahesadatnaghib/feature-based-scheduler
FBDE.py
Python
mit
27,590
[ "VisIt" ]
3dc1e93f8ad8208f538d4c0f2b6aaffd7ba9006428e1442ae05175e9ece651ac
#!/usr/bin/env python # Copyright 2014-2021 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/cc/gccsd_rdm.py
Python
apache-2.0
10,624
[ "PySCF" ]
10ceb99a91e6e5d0f6a1a38baac3c2902f82fcf443da972e63aec3468342f8ba
""" Module that contains simple client access to Matcher service """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from DIRAC.Core.Base.Client import Client, createClient from DIRAC.Core.Utilities.DEncode import ignoreEncodeWarning from...
yujikato/DIRAC
src/DIRAC/WorkloadManagementSystem/Client/MatcherClient.py
Python
gpl-3.0
1,451
[ "DIRAC" ]
f2fd51fc608a0d79e128e846d737f590207d57988ca53b6f8c13a11b6ad8a1fc
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2014-2016 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser 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 S...
Konubinix/qutebrowser
scripts/dev/pylint_checkers/qute_pylint/config.py
Python
gpl-3.0
3,009
[ "VisIt" ]
5eedb43f8ad05da882dd6b93de99bd88b0b2ea6cde094be67eba119a24cf2086
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
alejob/mdanalysis
package/MDAnalysis/lib/__init__.py
Python
gpl-2.0
1,457
[ "MDAnalysis" ]
493f5ddea1ba308ec2ac2ae9cd6960fe258f6ce37365f369e3bbdab15cf89851
#!/usr/bin/python import sys import argparse from CSPBrowser import * parser = argparse.ArgumentParser(description="Auto-visit target URLs") parser.add_argument('-p', '--port', metavar='num', type=int, help='Port to listen on', dest='port') parser.add_argument('-d', '--domain', metavar='d', help='IP address/hostname ...
Kennysan/CSPTools
browser/run.py
Python
mit
617
[ "VisIt" ]
d0e18334a7806b10de872610936073cbae25dbd937a626f621205665dae4ad65
# Hidden Markov Model Implementation import pylab as pyl import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy #import hrl_lib.mayavi2_util as mu import hrl_lib.viz ...
tapomayukh/projects_in_python
classification/Classification_with_HMM/Single_Contact_Classification/area_codes/time_window/hmm_crossvalidation_area_800ms.py
Python
mit
16,122
[ "Gaussian", "Mayavi" ]
713c5f9a0122b56e7232c8917501cfb8649a0e8a7e72d4b5bec221fb8b69e1be
""" Tests for regressiom based dispersion tests (Cameron & Trivedi, 2013) Cameron, Colin A. & Trivedi, Pravin K. (2013) Regression Analysis of Count Data. Camridge University Press: New York, New York. """ __author__ = 'Taylor Oshan tayoshan@gmail.com' import unittest import numpy as np import libpysal from sp...
TaylorOshan/spint
spint/tests/test_dispersion.py
Python
bsd-3-clause
1,507
[ "COLUMBUS" ]
19ccf758cd8027afeb1f3dd259224b50f6d0cf9069a7411a47f9f39e97c88b07
""" ================================= Map data to a normal distribution ================================= .. currentmodule:: sklearn.preprocessing This example demonstrates the use of the Box-Cox and Yeo-Johnson transforms through :class:`~PowerTransformer` to map data from various distributions to a normal distribut...
manhhomienbienthuy/scikit-learn
examples/preprocessing/plot_map_data_to_normal.py
Python
bsd-3-clause
4,665
[ "Gaussian" ]
6a11e70c05b5fbd481255b6aa21defd1438d325592c0da57bd9a0d1ffe0fdf4d
#!/usr/bin/env python """ dirac-my-great-script This script prints out how great is it, shows raw queries and sets the number of pings. Usage: dirac-my-great-script [option|cfgfile] <Arguments> Arguments: <service1> [<service2> ...] """ from DIRAC import S_OK, S_ERROR, gLogger...
DIRACGrid/DIRACDocs
source/DeveloperGuide/AddingNewComponents/DevelopingCommands/dirac-my-great-script.py
Python
gpl-3.0
2,711
[ "DIRAC" ]
06befd9ee2f9e0b201f852e24700bdca4e5e126cd6dfc3b78968ed478ce6eab6
../../../../../../../share/pyshared/orca/scripts/apps/notify-osd/script.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/notify-osd/script.py
Python
gpl-3.0
74
[ "ORCA" ]
b663627d7ef9cf2f45099cfa4c71e627a66757205383fd802a129155658b617a
from collections import OrderedDict from scipy.signal.signaltools import convolve2d from scipy.interpolate.interpolate import interp1d from scipy.optimize import nnls from numpy import power, max, square, ones, arange, exp, zeros, transpose, diag, linalg, dot, outer, empty, ceil # Reddening law from CCM89 # TODO Re...
Delosari/dazer
bin/lib/Astro_Libraries/spectrum_fitting/starContinuum_functions.py
Python
mit
3,244
[ "Gaussian" ]
07e58c49a5961fc0e4a34218e7d82b20ab08e8725b87d80cd13d94c1e032a966
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2016, Akamai Technologies # Author: Daniel Garcia """ Usage: c2e [options] c2e -h | --help c2e --version Options: -h, --help Print this help --version Show version number -v, --verbose Print ...
dagarcia-akamai/c2e
c2e/c2e.py
Python
bsd-3-clause
8,530
[ "VisIt" ]
0d41015bf40b95c13424fa570ddb8c5b32d5656a63ca52d26a8f3d9867b21256
#!/usr/bin/env python import sys import os import unittest import glob import shutil import vtk import time from PyQt5 import QtWidgets import chigger from peacock.ExodusViewer.plugins.VTKWindowPlugin import main from peacock.utils import Testing class TestVTKWindowPlugin(Testing.PeacockImageTestCase): """ T...
liuwenf/moose
python/peacock/tests/exodus_tab/test_VTKWindowPlugin.py
Python
lgpl-2.1
6,082
[ "VTK" ]
bc4d0d505a8c2e792c60954b8b43e6409bab6d9b3e04c250196eb9aa233e6f45
# coding: utf-8 """ Generators of Firework workflows """ import logging import sys import abc import os import six import datetime import json import numpy as np import abipy.abio.input_tags as atags import traceback from collections import defaultdict from abipy.abio.factories import HybridOneShotFromGsFactory, ScfFa...
davidwaroquiers/abiflows
abiflows/fireworks/workflows/abinit_workflows.py
Python
gpl-2.0
154,521
[ "ABINIT" ]
f3ac8b3d6a2b138bd0413e9e7dc766cfb07dd646fadad2571517ab67c34ab5ef
"""Redis Key Commands Mixin""" from tornado import concurrent # Python 2 support for ascii() if 'ascii' not in dir(__builtins__): # pragma: nocover from tredis.compat import ascii class KeysMixin(object): """Redis Key Commands Mixin""" def delete(self, *keys): """Removes the specified keys. A k...
gmr/tredis
tredis/keys.py
Python
bsd-3-clause
26,277
[ "VisIt" ]
47a669fd705fa8627606b9555acef04bd249886ff878f030523f339875a00d97
from __future__ import print_function """Function-like object creating hexagonal lattices. The following lattice creators are defined: * Hexagonal * HexagonalClosedPacked * Graphite * Graphene Example for using Graphene to create atoms object gra:: from ase.lattice.hexagonal import * import ase.io as io ...
suttond/MODOI
ase/lattice/hexagonal.py
Python
lgpl-3.0
4,016
[ "ASE", "CRYSTAL" ]
5095577322089b4b6bcdafd551cd7a557f02406bcf53a1884aef2d2e99700e37
tests=[ ("python","testMatricCalc.py",{}), ] longTests=[] if __name__=='__main__': import sys from rdkit import TestRunner failed,tests = TestRunner.RunScript('test_list.py',0,1) sys.exit(len(failed))
adalke/rdkit
Code/DataManip/MetricMatrixCalc/Wrap/test_list.py
Python
bsd-3-clause
220
[ "RDKit" ]
f1265bed919ad40c1f99e0150f5b7c59f1e085318e63adc49c90136d6aaf29fa
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # title : scanco.py # description : provides support for Scanco (TM) files # copyright : (c) 2017 I3MTO laboratory. All Rights Reserved # author(s) : Thomas Janvier # creation : 01 December 2017 # modification : 19 December 2017 # # TO...
Bone-Imaging-ToolKit/BItk
bitk/io/scanco.py
Python
gpl-3.0
12,859
[ "VTK" ]
b3c726e8d2c43ff821fb533c2652291eb8647129b64a767b61b6bec15bc25c59
#coding:utf-8 import os, sys import timeit import numpy, math import scipy.spatial.distance as sp import common_functions ################################################ # Parameters ################################################ # define the default parameters train = "DR1" test = "DR2" lesions = ["exsudato-duro...
piresramon/pires.ramon.msc
source/mid_level_script.py
Python
gpl-3.0
8,459
[ "Gaussian" ]
93364d079a00892c29a3e4c412835b2897329ecb23b477419fcefe42c2ddff64
#!/usr/bin/env python ''' This tool installs the macports package management infrastructure in a custom directory which allows you to create a USB or portable drive with your favorite macports tools. It also makes removal easier because no system directories are affected. It has a couple of important features. 1. ...
jlinoff/mpinstall
mpinstall.py
Python
mit
18,426
[ "VisIt" ]
05fe3af57af4706d08e8870269cbc8237e0c8b148d1e29e38eb1969642a4d9ec
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import numpy as np from fractions import Fraction from math import gcd, floor, cos from functools import reduce from pymatgen import Structure, Lattice from pymatgen.core.sites import PeriodicSite from monty.fr...
tschaume/pymatgen
pymatgen/analysis/gb/grain.py
Python
mit
117,508
[ "CRYSTAL", "pymatgen" ]
e0b0c3e0d2dec6b3328e98f925e5cebc0b7367baa5ace1e72e34b0ce47795b99
try: from vtk.qt4.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor from PyQt4 import QtGui, QtCore import pyqtgraph as QtGraph except ImportError: QtGui = type("vtk, PyQt, or pyqtgraph missing. functionality unavailable!", (), {"QWidget": object, "QMainWindow": object}) fro...
RodericDay/MiniPNM
minipnm/gui/__init__.py
Python
mit
387
[ "VTK" ]
887c6b518f22477fa4a5041208f54dd822da14740c0e7fcc1a0ebc1066807fba
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
skosukhin/spack
var/spack/repos/builtin/packages/r-genefilter/package.py
Python
lgpl-2.1
1,882
[ "Bioconductor" ]
03a291ff9db69782a908e5a69adabf6a37f6cb9739a428f9953ab6a8630299f8
import numpy import sklearn.cluster import time import scipy import os from . import audioFeatureExtraction as aF from . import audioTrainTest as aT from . import audioBasicIO import matplotlib.pyplot as plt from scipy.spatial import distance import matplotlib.pyplot as plt import matplotlib.cm as cm import sklearn.dis...
belkinsky/SFXbot
src/pyAudioAnalysis/audioSegmentation.py
Python
mit
46,836
[ "Gaussian" ]
0f72788c6e9b717043dd389b7c3b8c8bf215fe35afca91721581ee2ab372ec44
#! /usr/bin/env python # Copyright 2014 Miguel Martinez de Aguirre # See LICENSE for details from StringIO import StringIO import sys from PIL import Image, ImageTk import Tkinter from tkSimpleDialog import Dialog from twisted.cred import credentials from twisted.internet import reactor, tksupport from twisted.prot...
mmdeas/path-game
client.py
Python
mit
11,523
[ "exciting" ]
c871c3a0dfd255e2208391e4e9b96254d57e2af5f584d97e23a8d109f839eedf
import json import platform import unittest import xapian from gi.repository import GLib from mock import patch from piston_mini_client import PistonResponseObject from tests.utils import ( get_test_pkg_info, setup_test_env, ObjectWithSignals, ) setup_test_env() from softwarecenter.enums import ( App...
mortenpi/ubuntu-software-center
tests/test_reinstall_purchased.py
Python
gpl-3.0
17,776
[ "BLAST" ]
3676901c86b799337d53ba070cb62387ea2dca6b995583ae26317147e6d46eef
#!/usr/bin/env python """ The dirac-pilot.py script is a steering script to execute a series of pilot commands. The commands may be provided in the pilot input sandbox, and are coded in the pilotCommands.py module or in any <EXTENSION>Commands.py module. The pilot script defines two switches in order to ch...
Sbalbp/DIRAC
WorkloadManagementSystem/PilotAgent/dirac-pilot.py
Python
gpl-3.0
2,136
[ "DIRAC" ]
5999c75a8ce1aa7e0b4197ffddabead73facf160b18b5f406e213f0cb50b8d07
# Copyright (c) 2012, 2013, 2014 James Hensman # Licensed under the GPL v3 (see LICENSE.txt) import numpy as np from .collapsed_mixture import CollapsedMixture import GPy from GPy.util.linalg import mdot, pdinv, backsub_both_sides, dpotrs, jitchol, dtrtrs from GPy.util.linalg import tdot_numpy as tdot class OMGP(Coll...
jameshensman/GPclust
GPclust/OMGP.py
Python
gpl-3.0
8,106
[ "Gaussian" ]
18f6398c0b805d686f929c50edb7b74c14274ab04fb7abde25a063cf36b34266
# GenCumulativeSkyMtx # # Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Ladybug. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Ladybug is free software; you can redistribute it and/or modify # it under the ...
samuto/ladybug
src/Ladybug_GenCumulativeSkyMtx.py
Python
gpl-3.0
16,430
[ "EPW" ]
8371a25172952e773e18dfddd80815433c64a1be7d35112640549897d6873845
# macs2 python wrapper # based on http://toolshed.g2.bx.psu.edu/view/modencode-dcc/macs2 import sys, subprocess, tempfile, shutil, glob, os, os.path, gzip from galaxy import eggs import json CHUNK_SIZE = 1024 #========================================================================================== #functions #====...
stemcellcommons/macs2
macs2_wrapper.py
Python
mit
9,144
[ "Galaxy" ]
5b6289db9f182c49c5c3d662679723b04c75134f8b36525cd9131934e7aa2e39
#ryangc ATSYMBOL mail.med.upenn.edu ryan.g.coleman ATSYMBOL gmail.com #Ryan G Coleman, Kim Sharp http://crystal.med.upenn.edu #contains lots of grid primitives, there is not a grid class import math import geometry def getIndices(mins, gridSize, pt): '''helper function to find the box a point is in''' xIndex = in...
ryancoleman/traveldistance
src/grid.py
Python
gpl-2.0
18,159
[ "CRYSTAL" ]
eba491d005b770f6652781c7ccc243fadf84a227a344d9e37fc08636d5c91bec
# Compute the audio novelty features of a song import sys import numpy as np import scipy from ..utils import RMS_energy def novelty(song, k=64, wlen_ms=100, start=0, duration=None, nchangepoints=5, feature="rms"): """Return points of high "novelty" in a song (e.g., significant musical transitions) :pa...
ucbvislab/radiotool
radiotool/algorithms/novelty.py
Python
isc
5,195
[ "Gaussian", "exciting" ]
5bcb7ce9466e303cddf4d6935d3cc8d6911b3aab69b561996485d23eae2a8e7e
# rdesignerProtos.py --- # # Filename: rdesignerProtos.py # Description: # Author: Subhasis Ray, Upi Bhalla # Maintainer: # Created: Tue May 7 12:11:22 2013 (+0530) # Version: # Last-Updated: Wed Dec 30 13:01:00 2015 (+0530) # By: Upi # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change l...
subhacom/moose-core
python/rdesigneur/rdesigneurProtos.py
Python
gpl-3.0
15,090
[ "MOOSE", "NEURON" ]
2e40e3a0d4ed828f61bf4c69fbc80b52735aef11bb8076126f7201349c4731f6
# -*- coding: utf-8 -*- """ Functions relevant for photometric calibration Table of contents: 1. Available response functions 2. Adding filters on the fly - Defining a new filter - Temporarily modifying an existing filter 3. Adding filters permanently Section 1. Available response functio...
MarieVdS/ComboCode
cc/ivs/sed/filters.py
Python
gpl-3.0
26,787
[ "Gaussian" ]
6222f44a4ea6e456832a7c04bd33d3f75ae8d9b5da2c4db24410e552025f0b82
#!/usr/bin/python # Python name convention : http://stackoverflow.com/questions/159720/what-is-the-naming-convention-in-python-for-variable-and-function-names import csv import os import math import numpy from Bio import PDB, pairwise2 from Bio.SeqUtils import seq1 ''' Created on 17 nov. 2015 @author: 0mi...
maxdy/BioTools
PyRAT/main.py
Python
mit
18,402
[ "Biopython" ]
bd029a5f2720a2719020b26c0c2fd33e20eff7a305bec6e3e9cba5d3c1cb84fb
# # 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 us...
dbtsai/spark
python/pyspark/mllib/util.py
Python
apache-2.0
19,536
[ "Gaussian" ]
7f88a7dec45f42edd1af4d75d06b41c3c6c69f08d540385833ace2d5ab54be5e
from ase.atoms import string2symbols abinitio_energies = { 'CO_gas': -626.611970497, 'H2_gas': -32.9625308725, 'CH4_gas': -231.60983421, 'H2O_gas': -496.411394229, 'CO_111': -115390.445596, 'C_111': -114926.212205, 'O_111': -115225.106527, 'H_111': -114779.038569, 'CH_111': -114943....
charlietsai/catmap
tutorials/1-generating_input_file/generate_input.py
Python
gpl-3.0
4,903
[ "ASE" ]
aa576f17edb4210b32024be136dc356a782e1e7ae7a32a3c4aa9717ee6c6119c
# -*- coding: utf-8 -*- """ Created on Wed Jul 08 16:12:29 2015 @author: winsemi $Id: wflow_flood_lib.py $ $Date: 2016-04-07 12:05:38 +0200 (Thu, 7 Apr 2016) $ $Author: winsemi $ $Revision: $ $HeadURL: $ $Keywords: $ """ import sys import os import configparser import logging import logging.handlers import numpy ...
openstreams/wflow
Scripts/wflow_flood_lib.py
Python
gpl-3.0
28,442
[ "NetCDF" ]
6f4137b4593071927c4404d577c3ba5936f11dcca4b297b08243e7e82942700f
#!/usr/bin/env python """ FCKeditor - The text editor for internet Copyright (C) 2003-2005 Frederico Caldeira Knabben Licensed under the terms of the GNU Lesser General Public License: http://www.opensource.org/licenses/lgpl-license.php For further information visit: http://www.fckeditor.net/ "Suppo...
dapfru/gladiators
parsek/cls/editor/_samples/py/sample01.py
Python
gpl-2.0
1,935
[ "VisIt" ]
28ce32ecd606fbc671d0a8380b7e332469d48a93cf06dc33d0db496036a11101
# Copyright (C) 2015-2020 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information import random from hypothesis import given from swh.model.h...
SoftwareHeritage/swh-web-ui
swh/web/tests/api/test_utils.py
Python
agpl-3.0
18,364
[ "VisIt" ]
b069a07f6a04c4ed0c979a7394125c21383f00506ee82d1ca49bc12a48cf86b2
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, zeros, arange, sort, amin, amax, any, atleast_1d, sqrt, ceil, floor, a...
bkendzior/scipy
scipy/stats/morestats.py
Python
bsd-3-clause
95,258
[ "Gaussian" ]
7c0d0dd04489459b91a1f3f75abb7a420a7299820a15fca8b905bfb7d276be1e
# Orca # # Copyright 2018-2019 Igalia, S.L. # # Author: Joanmarie Diggs <jdiggs@igalia.com> # # 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 y...
GNOME/orca
src/orca/scripts/toolkits/Chromium/braille_generator.py
Python
lgpl-2.1
2,248
[ "ORCA" ]
63bb6e434f6d35e61267f51ddf539451061f72f013571a8d478e958465ff87ed
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ sextractor.py: Classes to read SExtractor table format Built on daophot.py: :Copyright: Smithsonian Astrophysical Observatory (2011) :Author: Tom Aldcroft (aldcroft@head.cfa.harvard.edu) """ import re from . import core class SExtractorHeader(c...
StuartLittlefair/astropy
astropy/io/ascii/sextractor.py
Python
bsd-3-clause
6,346
[ "Galaxy" ]
033d6fd3b1ed191d2adcaa9d39833c9e4a47cf3c04b119a70359534084a969f4
from vtk import vtkRenderer, vtkConeSource, vtkPolyDataMapper, vtkActor, \ vtkImplicitPlaneWidget2, vtkImplicitPlaneRepresentation, \ vtkObject, vtkPNGReader, vtkImageActor, QVTKWidget2, \ vtkRenderWindow, vtkOrientationMarkerWidget, vtkAxesActor, \ vtkTra...
ilastik/ilastik-0.5
ilastik/gui/view3d.py
Python
bsd-2-clause
17,552
[ "VTK" ]
3ffa58f0bc089256362fef91f9f78ffca4c7c0bd471f222bfb163d267a123083
# Copyright (c) 2001-2009 Twisted Matrix Laboratories. # See LICENSE for details. from itertools import count import re, os, cStringIO, time, cgi, string, urlparse from xml.dom import minidom as dom from xml.sax.handler import ErrorHandler, feature_validation from xml.dom.pulldom import SAX2DOM from xml.sax import ma...
movmov/cc
vendor/Twisted-10.0.0/twisted/lore/tree.py
Python
apache-2.0
40,056
[ "VisIt" ]
77d2a505e830f5589e2fad4e240bf0b4457613c6823bc968bc83017b5bc9929f
# Copyright (C) 2013, Walter Bender - Raul Gutierrez Segales # # 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 ...
icarito/sugar
extensions/cpsection/webaccount/view.py
Python
gpl-3.0
4,477
[ "VisIt" ]
6e8a43360437a254874521423aa6e88ad865db04d83b2c96e4846b128f2d3994
import os from os import path import numpy as np from netCDF4 import Dataset import pyproj from shapely.ops import transform from shapely.geometry import MultiPoint, Polygon, MultiPolygon from shapely.prepared import prep from functools import partial from shyft import api from shyft import shyftdata_dir from .. import...
felixmatt/shyft
shyft/repository/netcdf/arome_concat_data_repository.py
Python
lgpl-3.0
27,396
[ "NetCDF" ]
52725118553d19b4bf1c76a927791f5b201bda4abc77754e6f61a316b469577c
# -*- 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...
factorlibre/OCB
addons/project/project.py
Python
agpl-3.0
70,511
[ "VisIt" ]
a7c632d17447a2b573e458db1e7dec1aea7a1abe9be4e67a71640e91fc8f0ed0
# # Copyright (C) 2013,2014,2015,2016 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option)...
tbereau/espresso
samples/python/minimal-charged-particles.py
Python
gpl-3.0
3,219
[ "ESPResSo" ]
cbc6dd00cfb2b3b317ca367e5b35d32e5187cf150b99e1872d49df52a5baeb5f
""" scikit-learn style implementation of Relevance Vector Machine based regression plus helper functions and example. Eric Schmidt e.schmidt@cantab.net 2017-10-12 """ from __future__ import print_function from sklearn import linear_model, utils, preprocessing import sklearn import numpy as np from scipy import stats...
Hamstard/RVMs
linear_model.py
Python
mit
72,466
[ "Gaussian" ]
7401469f91978f58482add6be0e5a71dbfaa9cc89166380a65485baeed16c156
import fileinput import random def weighted_choice(items): # [(key, count)] total = sum(x[1] for x in items) index = random.randint(0, total - 1) offset = 0 for key, count in items: offset += count if index < offset: return key class Node(object): def __init__(self): ...
UIKit0/MisterQueen
scripts/parser.py
Python
mit
3,540
[ "VisIt" ]
596b2c5cd923ec3cb697ac25551bf1c88b72ae06b509b1f436f7ec546e6daf56
import numpy as np def makeGaussian(size, fwhm = 3, center=None): """ Make a square gaussian kernel. size is the length of a side of the square fwhm is full-width-half-maximum, which can be thought of as an effective radius. """ x = np.arange(0, size, 1, float) y = x[:,np.newaxis] if...
Josue-Martinez-Moreno/trackeddy
trackeddy/utils/gaussian_field_functions.py
Python
mit
691
[ "Gaussian" ]
97960824dc7841060e6bac84d49980d9945c615486ee7b6d0befb4d0aa765143
import datetime import json import logging import time from typing import Tuple, Any, Set import random import requests import yaml logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG) from src.session import Session URL = { 'root': 'https://www.instagram.com/', 'login': 'https://www...
vinitkumar/instabote
src/instabot.py
Python
mit
11,863
[ "Gaussian" ]
2c94396da0aec1aaef25d00fc4c821b58fc86c3c9d7c0a8b05d101ff6c68d001
# Nemubot is a smart and modulable IM bot. # Copyright (C) 2012-2015 Mercier Pierre-Olivier # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at yo...
nbr23/nemubot
nemubot/message/visitor.py
Python
agpl-3.0
958
[ "VisIt" ]
1a5170dbd417c31137f51f85334e9466092113be426b4d96d7e4edbcd0910930
# Copyright (C) 2004-2008 Paul Cochrane # # 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 distribut...
paultcochrane/pyvisi
pyvisi/renderers/vtk/offset_plot.py
Python
gpl-2.0
12,830
[ "VTK" ]
77d625e9d4f858355dc61e83a12ed73cf1fa84d01b85391c1007c23c02865feb
from os import path from collections import OrderedDict from IPython.display import display, clear_output from matplotlib import pyplot as plt from matplotlib import transforms from matplotlib import rcParams from numpy import linspace import ipywidgets as widgets from pysces import ModelMap from pysces import output_...
exe0cdc/PyscesToolbox
psctb/utils/plotting/_plotting.py
Python
bsd-3-clause
44,476
[ "PySCeS" ]
5a90b8fd880a4ec4b60a73d31a9b83fb901661df19aca1914f8b99c09e446e44
""" Course Outline page in Studio. """ import datetime from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from .course_p...
olexiim/edx-platform
common/test/acceptance/pages/studio/overview.py
Python
agpl-3.0
23,236
[ "VisIt" ]
c4106d421deb2c2d29f6f09837a40177cc4ebcc41570a9cd628843a3a06331d4
"""Tests for distutils.dist.""" import os import io import sys import unittest import warnings import textwrap from unittest import mock from distutils.dist import Distribution, fix_help_options from distutils.cmd import Command from test.support import ( captured_stdout, captured_stderr, run_unittest ) from .p...
iproduct/course-social-robotics
11-dnn-keras/venv/Lib/site-packages/setuptools/_distutils/tests/test_dist.py
Python
gpl-2.0
19,274
[ "Brian" ]
a9c41f278eba480f65cbc0ebed009dccbf6054915aca3c8fe1d0e74cbc41854f
"""Synthesize a MIDI file, chiptunes-style! (using pure numpy and scipy) Includes functions for synthesizing different drum types, bass instruments, and all other instruments. Also for auto-arpeggiating chords. """ import numpy as np import scipy.signal import scipy.io.wavfile import pretty_midi import argparse impo...
douglaseck/pretty-midi
examples/chiptunes.py
Python
mit
11,000
[ "Gaussian" ]
6015bedeaa9f8fadeeae2afba8d0001473a4a48e5a8ef6ff9fbb7daf7d944c7d
# # 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 us...
markflyhigh/incubator-beam
sdks/python/apache_beam/pipeline.py
Python
apache-2.0
39,747
[ "VisIt" ]
7934395c3910852d0184e718056e3732004dea73265610f79eef3ba594c1db23
""" # Notes: - This simulation seeks to emulate the CUBA benchmark simulations of (Brette et al. 2007) using the Brian2 simulator for speed benchmark comparison to DynaSim. However, this simulation does NOT include synapses, for better comparison to Figure 5 of (Goodman and Brette, 2008). - The time taken to si...
asoplata/dynasim-benchmark-brette-2007
output/Brian2/brian2_benchmark_CUBA_nosyn_1000/brian2_benchmark_CUBA_nosyn_1000.py
Python
gpl-3.0
2,006
[ "Brian" ]
92085f37842bd4fd31ec6bfe69e1e7e96d75e52c7990d8261435b102ec293af4
#!/usr/bin/env python import argparse from Bio import AlignIO from Bio.Alphabet import IUPAC, Gapped # A simple converter from Phylip to fasta format using BioPython. # Matt Gitzendanner # University of Florida parser = argparse.ArgumentParser() parser.add_argument("-i", help="input Phylip formatted file") parser.ad...
magitz/ToolBox
converters/phy_to_fasta.py
Python
mit
982
[ "Biopython" ]
f9563d2aada6651caea3954a6a472245709709f6bb58bb0b26e666961b956145
############################################################################### # lazyflow: data flow based lazy parallel computation framework # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/o...
stuarteberg/lazyflow
tests/broken/testOpTrainRandomForest.py
Python
lgpl-3.0
5,487
[ "Gaussian" ]
5762510fb618c92b3304ce11647be2e3c260177764ca63211948d83c013c8452
#!/usr/bin/env python # 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.Wise contains modules for running and processing the output of # some of the models in the Wise2 package by Ewan Birney av...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Wise/dnal.py
Python
gpl-2.0
4,323
[ "Biopython" ]
8e18e52ff1e2b869a137f9760f08c32d1196e16cc4094f18a389a66b65b9f04c
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
kevin-coder/tensorflow-fork
tensorflow/python/autograph/converters/directives.py
Python
apache-2.0
6,115
[ "VisIt" ]
fcf7783091e429d3efc2617f285bf242fd380d098cf35830d066446d79395e8f
from .gaussian import * from .voigt import *
adrn/GaiaPairsFollowup
comoving_rv/longslit/fitting/__init__.py
Python
mit
45
[ "Gaussian" ]
b4e058bc5f1f943fbd1b797d3f564e1f99bf3ea1e687d71977128b807b59f7f5
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements functions to perform various useful operations on entries, such as grouping entries by structure. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Pr...
gVallverdu/pymatgen
pymatgen/entries/entry_tools.py
Python
mit
11,247
[ "pymatgen" ]
b97fd253449ba3e522788c697150374f45f3a57b957d791c2e3b016ca8e2db2b
# -*- coding: utf-8 -*- # Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2011-2014 Google, Inc. # Copyright (c) 2012 Tim Hatch <tim@timhatch.com> # Copyright (c) 2013-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Co...
kczapla/pylint
pylint/checkers/exceptions.py
Python
gpl-2.0
20,193
[ "VisIt" ]
7bb88d814ad0e0ea4939508b6a958daa18fc4f0adffc1fd450fae75f25db7e9f
# # Copyright (C) 2018-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
espressomd/espresso
testsuite/python/actor.py
Python
gpl-3.0
5,507
[ "ESPResSo" ]
7d7b3faa70a324708a7ee1f4e104971cf2c557bce0c792d5579252d2f3c8e8e3
# (C) British Crown Copyright 2013 - 2015, Met Office # # This file is part of Iris. # # Iris 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 3 of the License, or # (at your option) any l...
Jozhogg/iris
lib/iris/tests/unit/fileformats/netcdf/test_Saver.py
Python
lgpl-3.0
11,728
[ "NetCDF" ]
c8933e8c52a463825c9b31c59c276d34d7b30f0e2169e7669f64d5090b9eaa78
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
shishaochen/TensorFlow-0.8-Win
tensorflow/contrib/distributions/python/ops/gaussian.py
Python
apache-2.0
6,920
[ "Gaussian" ]
76020ea999cd54d1b51d8a14c1c7841e7078a300f5755ef5af7d9217651f38a5
""" Gaussian Model of functional data moduleauthor:: Derek Tucker <dtucker@stat.fsu.edu> """ import numpy as np import fdasrsf.utility_functions as uf import collections def gauss_model(fn, time, qn, gam, n=1, sort_samples=False): """ This function models the functional data using a Gaussian model extra...
glemaitre/fdasrsf
fdasrsf/gauss_model.py
Python
gpl-3.0
3,546
[ "Gaussian" ]
75c8854073c5a74070033cbf9b314c7dbdf850ba1e05717994729ed603380073
#!/usr/bin/env python # -*- coding: utf-8 -*- # TAMkin is a post-processing toolkit for normal mode analysis, thermochemistry # and reaction kinetics. # Copyright (C) 2008-2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, An Ghysels # <An.Ghysels@UGent.be> and Matthias Vandichel <Matthias.Vandichel@UGent.be> # Center ...
molmod/tamkin
tamkin/examples/009_ethyl_ethene/cutter.py
Python
gpl-3.0
2,220
[ "Gaussian" ]
6b0547af82aa8a4616ea6bcf4edab70a2015b8e5ccad89db4ac25249a89fc4a0
# # This source file is part of appleseed. # Visit https://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
ui/render.py
Python
mit
21,990
[ "VisIt" ]
cf6464ab26355b77d2247c2e4ba8721472e32dc072703e0cb237287efb3093a0
# 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. # """KD tree data structure for searching N-dimensional vectors. The KD tree data structure can be used for all kinds of searches that involve N-dimen...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/KDTree/__init__.py
Python
gpl-2.0
701
[ "Biopython" ]
4908d96328e005c4c2e408d9e5241c4f0956e72efb808d083bf69a9a86d732ca
#!/usr/bin/python """ Copyright 2012 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of th...
clreinki/GalaxyHarvester
ghStats.py
Python
agpl-3.0
1,848
[ "Galaxy" ]
246fa680bfbb378556ba9eabf9a3f7c5cc2efc391e68357d00f6836796e16c64
# -*- coding: utf-8 -*- from itertools import chain import pytest from ..util.testing import requires from ..util.parsing import parsing_library from ..units import default_units, units_library, allclose from ..chemistry import Substance, Reaction from ..reactionsystem import ReactionSystem @requires(parsing_libra...
bjodah/aqchem
chempy/tests/test_reactionsystem.py
Python
bsd-2-clause
15,621
[ "ChemPy" ]
7e99b4f6028ee04499d9f473a06189e1cefdbc4e93ce39fc07cf73cb0f452b93
# Jython Database Specification API 2.0 # # Copyright (c) 2001 brian zimmer <bzimmer@ziclix.com> """ To run the tests, simply invoke this script from the commandline: jython runner.py <xml config file> [vendor, ...] If no vendors are given, then all vendors will be tested. If a vendor is given, then only that vend...
ofermend/medicare-demo
socialite/jython/Lib/test/zxjdbc/runner.py
Python
apache-2.0
5,996
[ "Brian" ]
240e5f3d665fcf6e5b5103b72b762944b5aa539fb0f2633860ef697b42228985
# -*- coding: utf-8 -*- # Copyright (c) 2006-2016 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2010 Daniel Harding <dharding@gmail.com> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2013-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyri...
kczapla/pylint
pylint/checkers/base.py
Python
gpl-2.0
84,804
[ "VisIt" ]
63085a7f78dd0502674c676427acb6d881fa3a9fc4cf0383e4eae36a14fe61a7
#!/usr/bin/env python ######################################################################## # File : dirac-admin-get-CAs # Author : Ricardo Graciani ######################################################################## """Refresh the local copy of the CA certificates and revocation lists. Connects to the Bun...
fstagni/DIRAC
FrameworkSystem/scripts/dirac-admin-get-CAs.py
Python
gpl-3.0
1,320
[ "DIRAC" ]
1a2e0b6ec4a9e314d464b951401736d8ca9d0b17a6c4f20cb39c3b9c853a1c60
######################################################################## # $HeadURL$ ######################################################################## """ DIRAC FileCatalog mix-in class to manage directory metadata """ __RCSID__ = "$Id$" import os, types from DIRAC import S_OK, S_ERROR from DIRAC.Core.Utiliti...
Andrew-McNab-UK/DIRAC
DataManagementSystem/DB/FileCatalogComponents/DirectoryMetadata.py
Python
gpl-3.0
28,658
[ "DIRAC" ]
d994edf9d56442b6d530ebd1ed94346755e25b842c2a59eda44c0d2aeb44bac1
""" Extract a 20 by 20 km grid based on x-y coordinates from a netCDF file containing data on the xgeo-grid. """ # Input INFILE = r"/mnt/grid/metdata/config/xgeo_dem.nc" # "/mnt/grid/metdata/prognosis/meps/det/archive/2022/meps_det_1km_20220207T00Z.nc" VAR = "xgeo_dem_2" # "air_temperature_2m" IX = 9 # number betwee...
kmunve/APS
aps/data/met_obs_grid/ncks_command_miniregion.py
Python
mit
2,062
[ "NetCDF" ]
d5daeba0f660dfc93dbcf62db08a61e11b7983e2e0912feda06bbf6c1620ba08
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Jitter Explorer =============== Application to explore orientation angle and angular dispersity. From the command line:: # Show docs python -m sasmodels.jitter --help # Guyou projection jitter, uniform over 20 degree theta and 10 in phi python -m sas...
SasView/sasmodels
sasmodels/jitter.py
Python
bsd-3-clause
55,967
[ "CRYSTAL", "Gaussian" ]
dd70e3e03f7a64b9006123fe0abfebe47961dfd5ff9f03ef8a93f1c49edcb35b
import subprocess import sys import os import json def get_jobs(): p = subprocess.Popen(["./galaxy","jobs"], stdout=subprocess.PIPE) out, err = p.communicate() if err: print "fail to list jobs" sys.exit(-1) lines = out.splitlines() # job id and job name pair jobs = {} for lin...
imotai/galaxy
optools/preempt.py
Python
bsd-3-clause
3,345
[ "Galaxy" ]
65462e2a7e5d0835cfda04775ef7745252b10125016fadddf7a0b5976e0bd4a3
# Base node class SourceElement(object): ''' A SourceElement is the base class for all elements that occur in a Java file parsed by plyj. ''' def __init__(self): super(SourceElement, self).__init__() self._fields = [] def __repr__(self): equals = ("{0}={1!r}".format(k, ...
RealTimeWeb/program-analyzer
plyj/model.py
Python
apache-2.0
23,359
[ "VisIt" ]
56408813c2eb58f9dc0ac6d22db10558b050b602d63a8dedaac3b291b815eb7f
# -*- coding: utf-8 -*- ''' Created on 21 Oct 2015 @author: Kimon Tsitsikas Copyright © 2014 Kimon Tsitsikas, Delmic This file is part of Odemis. Odemis is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation...
gstiebler/odemis
src/odemis/util/test/peak_test.py
Python
gpl-2.0
2,985
[ "Gaussian" ]
4b15bafaccacdff193bab18ee2381955f8f47263460d8bb99c96fc3d53430a87
import numpy as np from types import FloatType from ase.parallel import rank import _gpaw from gpaw.xc import XC from gpaw.xc.kernel import XCKernel from gpaw.xc.libxc import LibXC from gpaw.xc.vdw import FFTVDWFunctional from gpaw import debug class BEE1(XCKernel): """GGA exchange expanded in a PBE-like basis."...
robwarm/gpaw-symm
gpaw/xc/bee.py
Python
gpl-3.0
11,238
[ "ASE", "GPAW" ]
0034bc511c4c36ae231a1d06cd642279738dc75149d318cb19ded1a5bb79ab62
from django.conf import settings BIGQUERY_CONFIG = { "reference_config": { "project_name": "isb-cgc", "dataset_name": "platform_reference" }, "supported_genomic_builds": ['hg19', 'hg38'], "tables": [ { "table_id": "{}:TCGA_hg19_data_v0.RNAseq_Gene_Expression_UNC_RSEM...
isb-cgc/ISB-CGC-Webapp
bq_data_access/data_types/gexp.py
Python
apache-2.0
1,638
[ "HTSeq" ]
b28ce1364a2674a9fcb33d547789c9f255516877b952d128b823a1186534717c
# -*- coding: utf-8 -*- """ pysteps.nowcasts.steps ====================== Implementation of the STEPS stochastic nowcasting method as described in :cite:`Seed2003`, :cite:`BPS2006` and :cite:`SPN2013`. .. autosummary:: :toctree: ../generated/ forecast """ import numpy as np import scipy.ndimage import time ...
pySTEPS/pysteps
pysteps/nowcasts/steps.py
Python
bsd-3-clause
33,095
[ "Gaussian" ]
23887325f7c57a54f6e7417c14dfcf6e8a1f66911161b3e833e1fa9afe4c4cae
"""Test case for autocomplete implementations.""" import os import uuid from django import VERSION from django.contrib.contenttypes.models import ContentType from django.contrib.staticfiles.testing import StaticLiveServerTestCase try: from django.urls import reverse except ImportError: from django.core.urlres...
shubhamdipt/django-autocomplete-light
src/dal/test/case.py
Python
mit
3,484
[ "VisIt" ]
e639991e7b98ba1b97a9b57447a3901bc7a82343fb849794271ed3f4f8a074c1