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
"""Each ElkM1 area will be created as a separate alarm_control_panel.""" from elkm1_lib.const import AlarmState, ArmedStatus, ArmLevel, ArmUpState from elkm1_lib.util import username import voluptuous as vol from homeassistant.components.alarm_control_panel import ( ATTR_CHANGED_BY, FORMAT_NUMBER, AlarmCon...
aronsky/home-assistant
homeassistant/components/elkm1/alarm_control_panel.py
Python
apache-2.0
9,817
[ "Elk" ]
6b2cce55663419197498f04c542c31cbf714bfc694b263f040ab8da04b1bfae7
# -*- coding: utf-8 -*- ''' Used for processing FPCA requests''' # # Copyright © 2008 Ricky Zhou # Copyright © 2008-2009 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, modify, # copy, or redistribute it subject to the terms and conditions of the GNU # General Public License v.2...
chensuchun/fas
fas/fpca.py
Python
gpl-2.0
15,159
[ "VisIt" ]
f6c144f1282e0801b6a3208d30f4eacb27efec54d3a36c5abcf08d98bdc433af
# Copyright (c) 2009 Greg Pintilie - pintilie@mit.edu # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, me...
gregdp/segger
Segger/extract_region_dialog.py
Python
mit
72,373
[ "Gaussian" ]
73c97469f3f91d01c156477a3deb00a0f2369924f2cd4388819ee983a8bb4187
"""A dialog box for displaying help text.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import gtk import sys class HelpBox(object): """A dialog for showing longish help texts. The GTK widget is not created until L{display} is called. """ box = None titl...
rammstein/0install
zeroinstall/gtkui/help_box.py
Python
lgpl-2.1
2,105
[ "VisIt" ]
450b6ac7b4d3e669dcbcb1f9ca3ec2993ea693813cada081ba4c5c17a1c8669e
""" This module contains classes for reading trajectories into a Frame instance. Multiple readers are defined, allowing different underlying trajectory libraries to be used. This module is tightly coupled with the frame.py module, so shares a set of unit tests. """ import os import abc import itertools import logging...
jag1g13/pycgtool
pycgtool/framereader.py
Python
gpl-3.0
9,879
[ "Gromacs", "MDAnalysis", "MDTraj" ]
62182c4eb3ff8ddc1fc17471321ce9ff46c4fc5d4140585801d319d5a280cfce
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/core/lib/pluginmanager.py
Python
gpl-2.0
9,368
[ "Brian" ]
f6d52045f08739c4d999a03cf7713d5a9a31c4d989b939ef5ccc32b4a7918581
# # ENVISIoN # # Copyright (c) 2017-2019 Daniel Thomas # 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. Redistributions of source code must retain the above copyright notice, this # l...
rartino/ENVISIoN
unit_testing/test_electrondensity_parsing.py
Python
bsd-2-clause
2,758
[ "VASP" ]
ebf7b361cdc7b79dc6fa385ee9a69c8b5dfc6ff4a99480945e45946c399a7222
#!/usr/bin/env python3 import sys, os.path, os, time, stat, struct, ctypes, io, subprocess, math, random, difflib import ply, re, traceback import argparse, base64, json from js_lex import plexer from js_global import glob, Glob from js_ast import * from js_parse import parser, print_err from js_preprocessor import p...
joeedh/webblender
tools/extjs_cc/js_cc.py
Python
apache-2.0
27,075
[ "VisIt" ]
c4d9c76bc3bdb45ccf1eca268b9306ac4ef093610893ecf829b772863dbc8147
from __init__ import ToolAction from galaxy.datatypes.metadata import JobExternalOutputMetadataWrapper import logging log = logging.getLogger( __name__ ) class SetMetadataToolAction( ToolAction ): """Tool action used for setting external metadata on an existing dataset""" def execute( self, tool, trans, ...
volpino/Yeps-EURAC
lib/galaxy/tools/actions/metadata.py
Python
mit
3,763
[ "Galaxy" ]
76822bef1a48e6e15d47a887cce1acacda82890781ded2d41483d6a069513c68
# # Copyright (C) 2000 greg Landrum # """ handles doing cross validation with decision trees This is, perhaps, a little misleading. For the purposes of this module, cross validation == evaluating the accuracy of a tree. """ from rdkit.ML.DecTree import ID3 from rdkit.ML.Data import SplitData import numpy from rdk...
rdkit/rdkit-orig
rdkit/ML/DecTree/CrossValidate.py
Python
bsd-3-clause
7,247
[ "RDKit" ]
4a1ac7b21eb1a7663b875e5453bc2c20c3d71846d91c94500992b32f7edf8663
import json import requests from dateutil import parser import time from unittest import skip from django.test import override_settings from rest_framework import status from hs_core.hydroshare.utils import get_resource_by_shortkey from .base import HSRESTTestCase class TestCreateResource(HSRESTTestCase): @over...
ResearchSoftwareInstitute/MyHPOM
hs_core/tests/api/rest/test_create_resource.py
Python
bsd-3-clause
22,373
[ "NetCDF" ]
d5f6f17e0c3022b55c35885b6954e7699a16b78f6a6a94d46f9ef890ed8cbdd9
# setdiscovery.py - improved discovery of common nodeset for mercurial # # Copyright 2010 Benoit Boissinot <bboissin@gmail.com> # and Peter Arrenbrecht <peter@arrenbrecht.ch> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from no...
spraints/for-example
mercurial/setdiscovery.py
Python
gpl-2.0
6,900
[ "VisIt" ]
622f4d48dfd6af53b458c33ac11893d0f60ec382f07b3dab3ff27e9946301d3f
""" Module to create topo and qinit data files for this example. """ from pyclaw.geotools import topotools from numpy import * def maketopo(): """ Output topography file for the entire domain """ nxpoints = 201 nypoints = 201 xlower = -100.e0 xupper = 100.e0 yupper = 100.e0 ylower...
clawpack/clawpack-4.x
apps/tsunami/bowl-radial/maketopo.py
Python
bsd-3-clause
1,169
[ "Gaussian" ]
958368e1973a41772d43d75f512ba0e8df9ef2c5b7378561f9f79891f13a1a57
""" test for RFIO plugin """ # FIXME: doesn't work ATM from __future__ import print_function from __future__ import absolute_import from __future__ import division import unittest import time import os import shutil import mock from DIRAC import S_OK from DIRAC.Resources.Storage.test.Test_FilePlugin import mock_St...
yujikato/DIRAC
src/DIRAC/Resources/Storage/test/FIXME_Test_RFIOPlugIn.py
Python
gpl-3.0
30,619
[ "DIRAC" ]
6de167945ea4cca00ff686108f37e3ccd8e13d3a5c58215a82b816e7666090c5
from selenium import webdriver from selenium.webdriver.common.keys import Keys import unittest import time class NewVisitorTest(unittest.TestCase): def setUp(self): self.browser = webdriver.Firefox() # TODO: fill in the name of the use case def test_nameOfUC(self): # Open the browser and ...
tony-hong/roleo
test/functional_tests.py
Python
gpl-3.0
4,810
[ "VisIt" ]
3a63c7a6cc2b558fc7d00fd6bbcc8f39d5f14c9c054e105470492a02b3279243
#!/usr/bin/python # trafficLight.py # loops through red, yellow, green like a traffic light # Author : Zachary Igielman import RPi.GPIO as GPIO, time, sys GPIO.setmode(GPIO.BOARD) GPIO.setup(11, GPIO.OUT) #red GPIO.setup(13, GPIO.OUT) #amber GPIO.setup(21, GPIO.OUT) #green GPIO.output(11, GPIO.LOW) GPIO.output(13, ...
soslug/projects
rpi/python_resources/smstext-and mypifi-code/trafficLight.py
Python
gpl-3.0
669
[ "Amber" ]
ca70754a993195d09cb2e14d796c9554c96c49fd2072f83f7dd6d02a52fdb875
tests=[ ("python","UnitTestParser.py",{}), ("python","UnitTestMolDescriptors.py",{}), ("python","UnitTestDescriptors.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
rdkit/ML/Descriptors/test_list.py
Python
bsd-3-clause
311
[ "RDKit" ]
bcbbc1c927fff0a6c06ee5919fbb2c427d959fc7082e45aa00373d02ec2ce057
#!/usr/bin/env python3 from subprocess import check_output import json, re, os.path, time cache_filename = 'up-output.cache' def yes_or_no(question): reply = str(input(question+' (y/n): ')).lower().strip() if len(reply) > 0 and reply[0] == 'y': return True if len(reply) > 0 and reply[0] == '...
weex/up
browser.py
Python
mit
3,201
[ "VisIt" ]
799cf5f2f8510aa11a9447ff3bf14435f16b2acc73d25506354ae906a02f1aba
import tempfile import unittest import os import numpy as np from deepchem.utils import rdkit_utils class TestRdkitUtil(unittest.TestCase): def setUp(self): # TODO test more formats for ligand current_dir = os.path.dirname(os.path.realpath(__file__)) self.protein_file = os.path.join( current_...
lilleswing/deepchem
deepchem/utils/test/test_rdkit_utils.py
Python
mit
6,287
[ "RDKit" ]
4f12cd05117f4b28da95e1475fd8907ba0cd92d9db082e6c6188235d0d4f1b92
#!/usr/bin/python # Static Code Checker - static_code # Written by bwhunan # # 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) an...
bwhunan/IffyCode
static_code.py
Python
gpl-2.0
8,236
[ "VisIt" ]
c16eb1d371ff327d80c97ce1f4d1f82d9b70428fb4b0bf2ca094504bd6c480b2
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
thempel/adaptivemd
adaptivemd/brain.py
Python
lgpl-2.1
2,025
[ "MDTraj" ]
a40b874a9eebea200d9cb9732e2f6056e770c6e8ce4d5f4be34d0f8025bd5eb8
"""setuptools.command.bdist_egg Build .egg distributions""" from distutils.dir_util import remove_tree, mkpath from distutils import log from types import CodeType import sys import os import re import textwrap import marshal from pkg_resources import get_build_platform, Distribution from setuptools.extension import...
pypa/setuptools
setuptools/command/bdist_egg.py
Python
mit
16,623
[ "VisIt" ]
40422ed409204b4da3e9e8e89c963b9301a9e8b3717cc798677b3191de797ed0
import enum import logging import os from paleomix.common.command import InputFile from paleomix.common.fileutils import swap_ext from paleomix.common.layout import Layout from paleomix.nodes.adapterremoval import IdentifyAdaptersNode from paleomix.nodes.bwa import BWAAlgorithmNode, BWAIndexNode, BWAMem2IndexNode from...
MikkelSchubert/paleomix
paleomix/pipelines/ngs/pipeline.py
Python
mit
30,915
[ "BWA" ]
d7d95c0a14b10134cd91ddf15384849d0eac4743aa763e52c3a5fad0e5ef0721
# -*- coding: utf-8 -*- # Copyright 2013 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os import unittest import pytest from .fake_webapp import EXAMPLE_APP from .base import WebDriverTests, get_browser class Fir...
cobrateam/splinter
tests/test_webdriver_firefox.py
Python
bsd-3-clause
2,466
[ "VisIt" ]
03f7714e22826188ab0f049195f453793a5a2b9ed59315420c6982170e242791
from galaxy import Galaxy
IDragonfire/modular-client
src/galacticWar/galaxy/__init__.py
Python
gpl-3.0
25
[ "Galaxy" ]
82675750a80800da0ca13f464b23d6430d4035ed46814a8d1fb593a5b374eead
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
psi4/share/psi4/databases/S22.py
Python
gpl-2.0
43,443
[ "Psi4" ]
da2a4b2040f105a10131893ad57c508d8704870d80e500b7aed4cd1c84ba9bdc
import os, sys import numpy as np import argparse import glob import types import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import tensorflow as tf import data import model from util import * def get_results_self(args, ds_src, ds_tar, ide...
googleinterns/intern2020_cocal
uncertainty/plots/plot_why_self.py
Python
apache-2.0
9,063
[ "Gaussian" ]
b4b3ea580b3249aef560dcee109f5275ed4f652a541339c22e19072330fdace9
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The freesurfer module provides basic functions for interfacing with freesurfer tools. Change directory to provide relative paths for doctests >>> import os >>> filepath = os.path.dirname( os...
FredLoney/nipype
nipype/interfaces/freesurfer/model.py
Python
bsd-3-clause
42,315
[ "Gaussian" ]
15c18e7fea3c4b1f879a3ad68c3f1b9f20e5c57f8ca693ccbddd081c6a2a838d
import logging import subprocess import threading from kalliope.core.NeuronModule import NeuronModule, MissingParameterException logging.basicConfig() logger = logging.getLogger("kalliope") class AsyncShell(threading.Thread): """ Class used to run an asynchrone Shell command .. notes:: Impossible to get...
kalliope-project/kalliope
kalliope/neurons/shell/shell.py
Python
gpl-3.0
2,296
[ "NEURON" ]
17d91790ecc7d1e219e32f328b3109d0e126f3a88eccf956d032efce2ba829a9
'''refining and describing''' from db import database as D from db.utils import text as tU from db.knowledge import drinking as drK import pandas as pd import numpy as np from sklearn.neighbors import KernelDensity from datetime import datetime as dt from numbers import Number from collections import Counter impo...
HBNLdev/DataStore
db/meta.py
Python
gpl-3.0
8,321
[ "Gaussian" ]
0bc69f8c0689be5c1e523b0f1d2b6c4e8751b2465c63f55a916ce5731c5253f6
import sys import os.path import logging from galaxy import eggs eggs.require( "SQLAlchemy" ) eggs.require( "decorator" ) # Required by sqlalchemy-migrate eggs.require( "Tempita " ) # Required by sqlalchemy-migrate eggs.require( "sqlalchemy-migrate" ) from sqlalchemy import * from sqlalchemy.exc import NoSuchTableE...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/tool_shed_install/migrate/check.py
Python
gpl-3.0
4,397
[ "Galaxy" ]
20399ad06d4b971836cb00732ef449bd605e9d97d25b587cb6a19425503a0fd9
"""Builds the network. Summary of available functions: # Compute input images and labels for training. If you would like to run # evaluations, use inputs() instead. inputs, labels = distorted_inputs() # Compute inference on the model inputs to make a prediction. predictions = inference(inputs) # Compute the tota...
sridhar912/Udacity_SDC_Challenge
code/predict_steering.py
Python
mit
22,483
[ "Gaussian" ]
5fbb105f4104d677ac730a1a2c35873e45a2ed2acd0c53658ef993d3851c8745
#!/usr/bin/env python from rdkit import Chem from rdkit.Chem import Descriptors, rdMolDescriptors def parseSDF ( filename ): obj={} with open(filename,'r') as f: num=0 previousLine='$$$$' block='' for line in f: if previousLine.startswith('$$$$'): num += 1 obj[num]={'title': ...
sunghunbae/pubchem
parseSDF.py
Python
mit
1,078
[ "RDKit" ]
e8d556618f3aa0d472e7ca5c44ee609c86a59b2f5afc8ecc37e227baf6f0f17f
# coding: utf-8 """ Astropy coordinate class for the Sagittarius coordinate system """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Third-party import numpy as np from numpy import cos, sin from astropy.coordinates import frame_transform_graph from astropy.coordin...
abonaca/gary
gary/coordinates/sgr.py
Python
mit
3,849
[ "Galaxy" ]
102f407b6182c528e720644d1490546f356652ad0dcbd5dbeb58687d3c0048a4
#!/usr/bin/env python ######################################################################## # File : dirac-wms-job-get-output # Author : Stuart Paterson ######################################################################## """ Retrieve output sandbox for a DIRAC job """ import DIRAC from DIRAC.Core.Base impo...
andresailer/DIRAC
Interfaces/scripts/dirac-wms-job-get-output.py
Python
gpl-3.0
3,348
[ "DIRAC" ]
2c858f0927ecfe9660c52d5cee184919d7417bde8b6d941441887070b43bd599
"""PyDota - A tiny Python wrapper for the Dota 2 Steam Web API. Visit https://steamcommunity.com/dev for more information. """ import requests import urllib STEAM_API_URL = "https://api.steampowered.com/" class PyDotaError(Exception): def __init__(self, msg): self.msg = msg def __st...
Catgroove/dotaninja
app/pydota.py
Python
gpl-3.0
5,215
[ "VisIt" ]
2a23f2dc1b243a6b9b1b0c6c83a0f645dc00d86c3da997321fe51fb23b2dc075
import ast import re from itertools import chain import pycodestyle from flake8_import_order import ImportVisitor, NewLine from flake8_import_order.styles import lookup_entry_point DEFAULT_IMPORT_ORDER_STYLE = 'cryptography' NOQA_INLINE_REGEXP = re.compile( # We're looking for items that look like this: # ``...
PyCQA/flake8-import-order
flake8_import_order/checker.py
Python
lgpl-3.0
3,301
[ "VisIt" ]
16923aafec81287e1a98f030225f16eaa3eb45b4510be4b4eb1245732e652896
""" manage PyTables query interface via Expressions """ import ast from functools import partial import numpy as np from pandas._libs.tslibs import Timedelta, Timestamp from pandas.compat.chainmap import DeepChainMap from pandas.core.dtypes.common import is_list_like import pandas as pd from pandas.core.base impor...
cbertinato/pandas
pandas/core/computation/pytables.py
Python
bsd-3-clause
19,248
[ "VisIt" ]
d90fb196f9a34df27ea065c4d0ddc79a800aeb6f634c9480eb71ff0449047026
''' Wrap modules' top-level exprs in an anonymous function. ''' from ..util.dispatch import method_store, multimethod from .. import node class ModuleFunction(object): _store = method_store() def __init__(self): self.definition = None self.module = None @multimethod(_store) def recu...
dacjames/mara-lang
bootstrap/mara/passes/module_function.py
Python
mit
893
[ "VisIt" ]
27f0a54d92e273aa501929b13f93fdd2b5512dbc75b1a945bc9d5c0db9cf0bc9
# -*- coding: utf-8 -*- """ wakatime.dependencies.html ~~~~~~~~~~~~~~~~~~~~~~~~~~ Parse dependencies from HTML. :copyright: (c) 2014 Alan Hamlett. :license: BSD, see LICENSE for more details. """ from . import TokenParser from ..compat import u """ If these keywords are found in the source file...
wakatime/wakatime
wakatime/dependencies/html.py
Python
bsd-3-clause
4,112
[ "ESPResSo", "GULP" ]
e2dfbec2c6dc8cdbb774db57fc4c537ff8ef9b35aa4c1e1a867dbfffb4cc59eb
import json from .. import util def load_msgpack(blob, **kwargs): """ Load a dict packed with msgpack into kwargs for a Trimesh constructor Parameters ---------- blob : bytes msgpack packed dict containing keys 'vertices' and 'faces' Returns ---------- loaded : dict ...
dajusc/trimesh
trimesh/exchange/misc.py
Python
mit
4,482
[ "VTK" ]
76e6aec2478a288cb4fdf799b5e4de6937075899a16a5c8e791c92df10d6350e
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyAtropos(PythonPackage): """Atropos is tool for specific, sensitive, and speedy trimming ...
iulian787/spack
var/spack/repos/builtin/packages/py-atropos/package.py
Python
lgpl-2.1
1,111
[ "pysam" ]
363f60c6e07f94bfc44e426a478fa4633ba1f313e6b8fbe72b2e7f3ce2a862b3
import vtk import vtk.test.Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Slat points into a cube math = vtk.vtkMath() points = vtk.vtkPoints() i = 0 while i < 100000: points.InsertPoint(i,math.Random(0,1),math.Random(0,1),math.Random(0,1)) i = i + 1 profile...
hlzz/dotfiles
graphics/VTK-7.0.0/Imaging/Hybrid/Testing/Python/TestCheckerboardSplatter.py
Python
bsd-3-clause
1,810
[ "VTK" ]
d1ee70c54d745433a19ab9a1a31c7a640c98293a7a005e604ff77ef600367314
from numpy import sign, dot, around, exp, array, seterr, minimum, abs, full, count_nonzero, amin, amax, double from numpy.random import RandomState from numpy.linalg import norm from pypuf.learner.base import Learner from pypuf.simulation.arbiter_based.ltfarray import LTFArray from pypuf.tools import compare_functions ...
nicostephan/pypuf
pypuf/learner/regression/logistic_regression.py
Python
gpl-3.0
10,263
[ "Gaussian" ]
ae815d82a76b071a17d6cb1d9eb8f72e2415c866dde500a75b394221e581a10d
import esprit from esprit import mappings from octopus.core import app import json as jsonlib from datetime import datetime import dateutil.relativedelta as relativedelta import os, threading from octopus.lib import plugin from octopus.modules.es.initialise import put_mappings, put_example class ESDAO(esprit.dao.Domai...
JiscPER/magnificent-octopus
octopus/modules/es/dao.py
Python
apache-2.0
17,642
[ "Octopus" ]
47e0ef4c00583b911e3217df0b76efed8c7cbc0c19b75f51ff13dcc01d3ada0c
#!/usr/bin/env python2.7 #Usage: read in a catalog and cut cylinders around each cluster import numpy as np from array import array import math import random import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from bisect import bisect_left from scipy.stats import skew from scipy.stats import kur...
maho3/gal-ML
old/cutCyl.py
Python
mit
49,949
[ "Galaxy" ]
62827de607d9eaa521301645c8bd1e45701eca9b3c0bd1c02d39c0be84c773c1
from math import pi import numpy as np from ase import Atoms from ase.units import Hartree, Bohr from gpaw import GPAW from gpaw.xc import XC from gpaw.xc.kernel import XCNull from gpaw.test import equal class NoInteractionPoissonSolver: relax_method = 0 nn = 1 def get_method(self): return 'No i...
qsnake/gpaw
gpaw/test/harmonic.py
Python
gpl-3.0
1,299
[ "ASE", "GPAW" ]
a7b014aba68f1c449d23bf58a4bbe8939a3aa8275bf9f066fdda2d76c22eb8e4
import sys, os, atexit from galaxy import config, db, jobs, util, tools, web import galaxy.model.mapping from galaxy.interfaces import root, tool_runner, proxy, async, admin, user, error from galaxy.web import middleware from galaxy.app import UniverseApplication def app_factory( global_conf, **kwargs ): """ ...
jmchilton/galaxy-central
universe_wsgi.py
Python
mit
1,778
[ "Galaxy" ]
9a069fb66fe8c23491618d5fe8fc4e4dbdc526c68467ac854e74e161fd55c0b6
import os import numpy as np import periodictable class GaussianInput: def __init__(self, link0, routes, atom_symbols, atom_coords, charge=0, multiplicity=1, title="Title Card Required", extras=None): self.link0 = link0 self.routes = routes ...
jincheng95/charges-tools
chargetools/gaussian.py
Python
mit
4,290
[ "Gaussian", "cclib" ]
5fcbcb5a3396ce0bb2f25a254596375621b532c5694c69288cfd0f8cbb3fb3d6
import os, sys from shutil import copyfile class PythonWrapper: def __init__(self, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12): workingdir = os.getcwd() + '/' print workingdir copyfile('/home/jonas/galaxy/tools/straintracer/InputComp.class', workingdir + "/InputComp.class") isol...
jeezes/Straintracer
InputWrapper.py
Python
bsd-3-clause
1,228
[ "Galaxy" ]
e57e4aafb3baddf9daa8a1c61352833b437b7ea9905d658d5ed2775d7f61a904
# -*- coding: utf-8 -*- # SPDX-FileCopyrightText: 2016-2019 The Atlite Authors # # SPDX-License-Identifier: GPL-3.0-or-later """ All functions for converting weather data into energy system model data. """ import xarray as xr import numpy as np import pandas as pd import geopandas as gpd import datetime as dt from o...
FRESNA/atlite
atlite/convert.py
Python
gpl-3.0
20,717
[ "Gaussian" ]
86133abbb4498011f7cca8abff3a7cc30febe075eb177e50ece49f8b69d5172b
# -*- coding: utf-8 -*- # Copyright 2007-2022 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 the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
jat255/hyperspy
hyperspy/tests/component/test_components.py
Python
gpl-3.0
24,335
[ "Gaussian" ]
91f22c3297b5d67e9afee060885c23edab103c1798bea2d56a349957a70f7111
from edc_visit_schedule.site_visit_schedules import site_visit_schedules from .rule import Rule class VisitScheduleRule(Rule): visit_schedule_name = None schedule_name = None visit_codes = None def __init__(self, visit_schedule_name=None, schedule_name=None, visit_codes=None, **kwa...
botswana-harvard/edc-rule-groups
edc_rule_groups/crf_rule.py
Python
gpl-2.0
1,227
[ "VisIt" ]
32840aa3edaa341e979a81dc5567c1faa299acc7939746681ca87c585eb12b22
""" Helper for the CS Resources section """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from urllib import parse from distutils.version import LooseVersion # pylint: disable=no-name-in-module,import-error from DIRAC import S_OK, S_E...
ic-hep/DIRAC
src/DIRAC/ConfigurationSystem/Client/Helpers/Resources.py
Python
gpl-3.0
23,983
[ "DIRAC" ]
56144f91835e4102790a97c8de4981131189b7c4067553f71883025dde55b825
import os from app.readers import xml as basereader def specfn_quant_generator(specfiles, quantfiles, tag, ignore_tags): """Generates tuples of specfile and quant element for general formats""" for specfn, qfn in zip(specfiles, quantfiles): for quant_el in basereader.generate_xmltags(qfn, tag, ignore_...
glormph/msstitch
src/app/readers/openms.py
Python
mit
1,860
[ "OpenMS" ]
e4db5eeae096be2a045955457479d072583eabbf63f0d89f0a14d447db228d08
# as normal_numbers1.py, but non-vectorized drawing of random numbers import sys N = int(sys.argv[1]) m = float(sys.argv[2]) s = float(sys.argv[3]) import numpy as np import random random.seed(12) samples = [random.normalvariate(m, s) for i in range(N)] print np.mean(samples), np.std(samples) import scitools.std as s...
qilicun/python
python3/src/random/normal_numbers2.py
Python
gpl-3.0
491
[ "Gaussian" ]
a22a5582021afc6ac2f608abaa48ca8c4c28b213e659fb7c544aa08ee4408a63
# coding: utf-8 # pylint: disable=line-too-long """Provides the necessary class to profile BAM files.""" import gc import os import sys import copy import shutil import argparse import numpy as np import multiprocessing from collections import OrderedDict import anvio import anvio.tables as t import anvio.dbops as d...
meren/anvio
anvio/profiler.py
Python
gpl-3.0
68,859
[ "pysam" ]
9c43a5d3d423b4541d175013e601619f95df9d45c48d02246a3d0404efc1d8ab
# This file is part of ArcJail. # # ArcJail 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. # # ArcJail is distributed in the hope that...
KirillMysnik/ArcJail
srcds/addons/source-python/plugins/arcjail/modules/games/game_classes/survival_flashbang_arena.py
Python
gpl-3.0
8,695
[ "BLAST" ]
30b6a4b1f9168dde7e020089d48efcd8261f8cb4800798ab3f51d704375816b6
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function, unicode_literals import unittest import copy import numpy as np from chemfiles import Residue, ChemfilesError from _utils import remove_warnings class TestResidue(unittest.TestCase): def test_repr(self): residue = Residue("ALA...
Luthaf/Chemharp-python
tests/residue.py
Python
mpl-2.0
2,908
[ "Chemfiles" ]
72a7d920709ac2f2b90dddc919fa549c9ccb61ebf2a64a77a508d9fdef23e263
# -*- coding: UTF-8 -*- __revision__ = '$Id$' # Copyright (c) 2005-2009 Vasco Nunes, Piotr Ożarowski # # 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...
marcin1j/griffith
lib/plugins/movie/PluginMovieE-Pipoca.py
Python
gpl-2.0
11,389
[ "Brian" ]
9367df48d4271b3ef57152c6ca09527f3afce9f81883ff107747176b24ce605e
""" Package for interacting on the network at a high level. Copyright (c) 2014 Brian Muller Copyright (c) 2015 OpenBazaar """ import pickle import httplib from binascii import hexlify from twisted.internet.task import LoopingCall from twisted.internet import defer, reactor, task import nacl.signing import nacl.hash ...
eXcomm/OpenBazaar-Server
dht/network.py
Python
mit
14,227
[ "Brian" ]
6c7cc309cb58ba63459e2df291ced7eeaa1a25c4f5f47b39ee287227c0a40106
import itertools import json import os import pymongo import pysam import gzip from parsing import * import logging import lookups import random import sys import requests from tqdm import tqdm from utils import * import warnings from flask.exthook import ExtDeprecationWarning warnings.simplefilter('ignore', ExtDeprec...
macarthur-lab/gnomad_browser
exac.py
Python
mit
52,951
[ "pysam" ]
1ad98e72bfe59afaf7cf20874983c4882f194cfce5f557a4832c41fb7c26fd59
""" UnshadowParameters prevents the shadow parameter phenomenon """ from pythran.analyses import Identifiers from pythran.passmanager import Transformation import ast class UnshadowParameters(Transformation): ''' Prevents parameter shadowing by creating new variable. >>> import ast >>> from pythran...
artas360/pythran
pythran/transformations/unshadow_parameters.py
Python
bsd-3-clause
1,990
[ "VisIt" ]
5b54b9d8a12e84e7efc3fa7adc0d2062a2eb26372b6b4dc0d0fe6792ab438025
# proxy module from __future__ import absolute_import from mayavi.filters.set_active_attribute import *
enthought/etsproxy
enthought/mayavi/filters/set_active_attribute.py
Python
bsd-3-clause
104
[ "Mayavi" ]
fc428f25b8c9cbf6e66bc29214f389666a070cf07c71f4775bba7b6b66270b9e
''' Created on Nov 18, 2014 @author: rene ''' import autopep8 from docformatter import format_code from generator import generate_epw, generate_testclass from iddparser import IDDParser if __name__ == '__main__': parser = IDDParser() objs = parser.parse("epw.idd") source_file = generate_epw(objs) s...
rbuffat/pyepw
generator/main.py
Python
apache-2.0
1,339
[ "EPW" ]
b481a5e444bb3921e65eea1f0a5ebfa2f9e96d9a5981175f714d083e8761aafc
""" Kernel Density Estimation ------------------------- """ # Author: Jake Vanderplas <jakevdp@cs.washington.edu> import numpy as np from scipy.special import gammainc from ..base import BaseEstimator from ..utils import check_array, check_random_state from ..utils.validation import _check_sample_weight, check_is_fitt...
xuewei4d/scikit-learn
sklearn/neighbors/_kde.py
Python
bsd-3-clause
10,831
[ "Gaussian" ]
a32c74e7a8d6102d33226e01c6f9d414b936900eecf6c5a028865ff775d0af5b
""" Views related to the Custom Courses feature. """ import csv import datetime import functools import json import logging import pytz from copy import deepcopy from cStringIO import StringIO from django.conf import settings from django.core.urlresolvers import reverse from django.http import ( HttpResponse, ...
analyseuc3m/ANALYSE-v1
lms/djangoapps/ccx/views.py
Python
agpl-3.0
20,095
[ "VisIt" ]
1bfbeb6623c58f8cb10e547c682494752d7621601b92524490be269f74915d79
# Copyright (C) 2010-2018 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 v...
hmenke/espresso
src/python/espressomd/io/mpiio.py
Python
gpl-3.0
3,846
[ "ESPResSo" ]
893eeead7dfbdaf4f1345946ada31bc161da9fc2d43576f0f84cc33a5b04c439
from __future__ import print_function import numpy as np import xarray as xr import os import copy import matplotlib.pyplot as plt #import xarray as xr import cartopy.crs as ccrs import cartopy.feature as cfeature import cartopy.io.shapereader as shapereader import seaborn as sns #import shapely.geometry as sgeom #fr...
pirkkao/OpenEPS
bin/plot_modules.py
Python
apache-2.0
13,650
[ "NetCDF" ]
6cd1dd64537c1aaccdf8db996dd37208ef8fc716535285e30f5c57dae6f3cce4
#!/usr/bin/python2 import optparse import os import shutil import stat import subprocess import sys from builds.GpBuild import GpBuild INSTALL_DIR = "/usr/local/gpdb" DEPENDENCY_INSTALL_DIR = "/usr/local" def copy_installed(output_dir): if os.path.normpath(INSTALL_DIR) != os.path.normpath(output_dir): ...
Chibin/gpdb
concourse/scripts/build_gpdb.py
Python
apache-2.0
5,274
[ "ORCA" ]
e4ff26cad564149ab99f2f4109d6be6a8a99f108cb8c3b4e38594ae606deed61
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/inputparser.py
Python
gpl-2.0
30,550
[ "CFOUR", "Psi4" ]
17c7dc2f0714c02a726d9c375596c34fc96f0a7d234461306328c270b726dcc4
""" ======================================== Special functions (:mod:`scipy.special`) ======================================== .. module:: scipy.special Nearly all of the functions below are universal functions and follow broadcasting and automatic array-looping rules. Exceptions are noted. Error handling ==========...
chatcannon/scipy
scipy/special/__init__.py
Python
bsd-3-clause
22,866
[ "Gaussian" ]
f2402b7ad78a14f27e82dcb6321e786f42fa519f08f62d8bf74dab4759b7cf56
# Orca # # Copyright 2014 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 your o...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/scripts/apps/epiphany/script.py
Python
gpl-3.0
1,654
[ "ORCA" ]
d4dcf0a67949861583871aada3e64e23719a033712d4b2487dc5f729d8dd4f1e
r""" Laplace equation with Dirichlet boundary conditions given by a sine function and constants. Find :math:`t` such that: .. math:: \int_{\Omega} c \nabla s \cdot \nabla t = 0 \;, \quad \forall s \;. The :class:`sfepy.discrete.fem.meshio.UserMeshIO` class is used to refine the original two-element mesh ...
rc/sfepy
examples/diffusion/sinbc.py
Python
bsd-3-clause
4,736
[ "VTK" ]
38371b86c6bc380e13d59994224df399656ff88cb54e7e541866a6a1e67d6baf
import os import tempfile import shutil from django.test import TransactionTestCase from django.core.exceptions import ValidationError from django.core.files.uploadedfile import UploadedFile from django.contrib.auth.models import Group from django.db import IntegrityError from hs_core import hydroshare from hs_core.h...
FescueFungiShare/hydroshare
hs_app_netCDF/tests/test_netcdf_metadata.py
Python
bsd-3-clause
25,899
[ "NetCDF" ]
054815df9b0a8966531ccb42ab6957bdc3b590d49c39a4c910660a9c9eecea29
from electrum_ppc.util import print_error import httplib, urllib import socket import threading import hashlib import json from urlparse import urlparse, parse_qs try: import PyQt4 except Exception: sys.exit("Error: Could not import PyQt4 on Linux systems, you may try 'sudo apt-get install python-qt4'") from ...
testalt/electrum-ppc
plugins/labels.py
Python
gpl-3.0
9,164
[ "VisIt" ]
00bd8f36f7dc54350454434b093589c71e7e5441ad3bb14e44e798a77338502b
# This file is part of Radicale Server - Calendar Server # Copyright © 2008 Nicolas Kandel # Copyright © 2008 Pascal Halter # Copyright © 2008-2015 Guillaume Ayoub # # This library 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...
jaesivsm/Radicale
radicale/xmlutils.py
Python
gpl-3.0
50,882
[ "VisIt" ]
fc7c59e2694c2fe1cafa696c73dc0e060edd04cb41847a6a8a13189130f53ad7
# -*- coding: utf-8 -*- """Exceptions for input/output.""" from typing import Tuple from ..exceptions import PyBELWarning import_version_message_fmt = "Tried importing from PyBEL v{}. Need at least v{}" class ImportVersionWarning(PyBELWarning, ValueError): """Raised when trying to import data from an old vers...
pybel/pybel
src/pybel/io/exc.py
Python
mit
917
[ "Pybel" ]
62686e393a81c1419f958a188847a4773d97be59f8b8fa16f4f3bc491261c510
""" Acceptance tests for Studio related to the split_test module. """ import json import os from unittest import skip, skipUnless from xmodule.partitions.partitions import Group, UserPartition from bok_choy.promise import Promise from ..fixtures.course import CourseFixture, XBlockFixtureDesc from ..pages.studio.comp...
wwj718/murp-edx
common/test/acceptance/tests/test_studio_split_test.py
Python
agpl-3.0
12,617
[ "VisIt" ]
e079412ffbb8527b0e50a8957cfd3508b14a3f4b9b9d77c4954b45d134c80f4f
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageSpatialFilter(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkImageSpatialFilter.py
Python
bsd-3-clause
499
[ "VTK" ]
6825599d98c062715867d2362d43bd5c9ea84e88cceccb39132fe69b2171b59f
""" A test DB in DIRAC, using MySQL as backend """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from DIRAC.Core.Base.DB import DB class AtomDB(DB): def __init__(self): DB.__init__(self, 'AtomDB', 'Test/AtomDB') retVal = self.__initializeDB() ...
yujikato/DIRAC
docs/source/DeveloperGuide/AddingNewComponents/DevelopingDatabases/AtomDB.py
Python
gpl-3.0
1,026
[ "DIRAC" ]
619478fad63c2fa6a4a9748673913a90d6017999d597f7c5e6c58b792487a907
#!/usr/bin/python import getopt, sys from bloatitstats.parser.logparser import logparser from bloatitstats.commun.database import database from bloatitstats.parser.entry_processor import entry_processor version = '0.1' def parse_file(dbname, logfile): parser = logparser(logfile) base = database(dbname) ...
BloatIt/bloatit
stats/src/bloatitstats/filldb.py
Python
agpl-3.0
3,264
[ "VisIt" ]
f4e920c26e79dd7bc800f74fd185a79d8566a3920488492dc57edaf2d1169c02
#!/usr/bin/env python __author__ = 'Brian McKenna' from nose.plugins.attrib import attr from unittest import SkipTest from mock import Mock, patch, ANY from pyon.util.int_test import IonIntegrationTestCase from pyon.util.unit_test import IonUnitTestCase from pyon.datastore.datastore_query import DatastoreQueryBuil...
mkl-/scioncc
src/pyon/datastore/postgresql/test/test_pg_query.py
Python
bsd-2-clause
2,733
[ "Brian" ]
de1c0fc04cadb7eaac037674b853d584d4e62597ef009d793e0cf2f300098e08
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 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 Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_salepaymentseditor.py
Python
gpl-2.0
3,079
[ "VisIt" ]
89d3ce10223dd1b5abd63b33f5c02dba9b95f8c53b8fff48e589da16d8872364
###GeneSetDownloader #Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California #Author Nathan Salomonis - nsalomonis@gmail.com #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the ...
nsalomonis/AltAnalyze
build_scripts/GeneSetDownloader.py
Python
apache-2.0
66,428
[ "Cytoscape" ]
4e6873d6136d0b24330361384e74841e5fed57f7f6ec046150360f5ada18d695
# Copyright (C) 2010-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 v...
KaiSzuttor/espresso
testsuite/python/dawaanr-and-dds-gpu.py
Python
gpl-3.0
5,536
[ "ESPResSo" ]
3c5b23fe47d4f0d4fac1763f03531f9eba33e6a87bc879ffec7b3cb65ba39651
from scipy import signal import h5py import numpy as np import cv2 import math """ parameters: matrix = (n, m) binary matrix applies sobel kernel to highlight edges/areas of high contrast returns: resulting (n, m) binary matrix """ def contourise(matrix): sobelX = np.array([[-1, 0, 1], [-2, 0, 2], [-1, 0, ...
mdlaskey/DeepLfD
src/deep_lfd/rgbd/basic_imaging.py
Python
gpl-3.0
4,012
[ "Gaussian" ]
f6b5ee699317cb593610d860ac6f05d6525d62912bc0f6c86a8a4deb4a6961fd
#!/usr/bin/env python # =============================================================== # date : 30 novembre 2016 # author : fmv # decription : convert POSFF (mdff) to POSCAR (vasp) # =============================================================== import datetime import argparse from config import Config fr...
FilipeVasconcelos/mdff
bin/fftocar.py
Python
gpl-2.0
1,230
[ "VASP" ]
e8799b30ef53263e5515e75dfa57228afc886af555d30af430b26b37df664b8d
""" Service interface adapted to work with tornado, must be used only by tornado service handlers """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from tornado import gen from tornado.ioloop import IOLoop from DIRAC.ConfigurationSys...
yujikato/DIRAC
src/DIRAC/ConfigurationSystem/private/ServiceInterfaceTornado.py
Python
gpl-3.0
1,429
[ "DIRAC" ]
3b6bffc4ecb0235b5bf77f85dafbc211e750c773ee9b29fe04088653cd1d4c93
"""Fetches and parses the BioASQ dataset from 2018. Parses and splits according to (using 2017/2018 for test instead of 2014/2015): Jinseok Nam, Eneldo Loza Mencía, Hyunwoo J. Kim, Johannes Fürnkranz Maximizing Subset Accuracy with Recurrent Neural Networks in Multi-label Classification. NIPS 2017: 541...
jpbottaro/anna
anna/data/dataset/bioasq.py
Python
mit
3,360
[ "VisIt" ]
82bcda89b4c1351fd71dd184aba7f150d0b731417381a342f677baeb30acf0e8
######################################################################## # File : Utilities.py # Author : Federico Stagni ######################################################################## """ Utilities for Transformation system """ from __future__ import absolute_import from __future__ import division from __fu...
ic-hep/DIRAC
src/DIRAC/TransformationSystem/Client/Utilities.py
Python
gpl-3.0
20,089
[ "DIRAC" ]
a39bb945d2b7b870d8935eee5b5af91a3500c2066d58b7ab2cc6ae8d9c566c55
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # wc - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GN...
heromod/migrid
mig/cgi-bin/wc.py
Python
gpl-2.0
1,092
[ "Brian" ]
3ce3ba09ab1c3684d999002a4c90d10246efc1fd3040256c7a0cd13ba181431b
import neo.core import quantities as pq import numpy as np import elephant.conditions as conditions def time_axis(tstart, tstop, h): """ Create a time axis """ return np.arange(tstart, tstop, h) def bin_spiketrain(spiketrain, h): """ Create a binned spike train from a neo object. Documenta...
SPP1665DataAnalysisCourse/elephant
elephant/rep.py
Python
bsd-3-clause
46,952
[ "NEURON" ]
94a66cf346dc3cca463f28d8ea9c4eed22d54fafa282bb6b0a534c6e5077d0b9
# -*- coding: utf-8 -*- # ------------------------------------------------------------ # streamondemand.- XBMC Plugin # Canal para asiansubita # http://blog.tvalacarta.info/plugin-xbmc/streamondemand. # ------------------------------------------------------------ import re import urlparse from core import logger from ...
dentaku65/plugin.video.sod
channels/asiansubita.py
Python
gpl-3.0
5,816
[ "ADF" ]
f20904e87f4becf02bc3b55cc217a94cbcbdb52bc37f2289f354984237ba7ad4
from __future__ import division, print_function, absolute_import import numpy as np from numpy import array from numpy.testing import (assert_array_almost_equal, assert_array_equal, assert_, run_module_suite) from scipy import signal window_funcs = [ ('boxcar', ()), ('triang', ())...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/scipy/signal/tests/test_windows.py
Python
agpl-3.0
3,753
[ "Gaussian" ]
f041bfe6bce8645f512ec49b91eaae2ea3dc866c6ed07b39888e487463d5411d
""" @author David W.H. Swenson @author Jan-Hendrik Prinz """ from __future__ import absolute_import from builtins import zip from builtins import range from builtins import object import os import pytest from nose.tools import (assert_equal) import openpathsampling as paths import openpathsampling.engines.openmm as...
openpathsampling/openpathsampling
openpathsampling/tests/test_storage.py
Python
mit
13,683
[ "MDTraj", "OpenMM" ]
cb463f874c6edc4840319393bb8f4fa55730bb72f7daab7e201ce8d052a9a10a
""" :mod: GFAL2_StorageBase ================= .. module: python :synopsis: GFAL2 class from StorageElement using gfal2. Other modules can inherit from this use the gfal2 methods. """ # pylint: disable=arguments-differ # # imports import os import datetime import errno from stat import S_ISREG, S_ISDIR,...
chaen/DIRAC
Resources/Storage/GFAL2_StorageBase.py
Python
gpl-3.0
65,583
[ "DIRAC" ]
2b85c2a0befcb4904756794a78c814a4c9e9cde7346a3f344478363a13e06c65
#!/usr/bin/env python # test_cursor.py - unit test for cursor attributes # # Copyright (C) 2010-2011 Daniele Varrazzo <daniele.varrazzo@gmail.com> # # psycopg2 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 Foun...
wildchildyn/autism-website
yanni_env/lib/python3.6/site-packages/psycopg2/tests/test_cursor.py
Python
gpl-3.0
22,791
[ "GULP" ]
759055239503dc549eefc36e82fd71617ca1e37ba2d28634fc17a047401b150f
""" Global Average Annual Temperature Plot ====================================== Produces a time-series plot of North American temperature forecasts for 2 different emission scenarios. Constraining data to a limited spatial area also features in this example. The data used comes from the HadGEM2-AO model simulations...
SciTools/iris
docs/gallery_code/meteorology/plot_COP_1d.py
Python
lgpl-3.0
3,953
[ "NetCDF" ]
ff499fb6c6e5a1e530fbcafcb4462b3d548fca1d501cb16d591f9706ed6d911d
# ---------------------------------------------------------------------- # Copyright (c) 2016, The Regents of the University of California All # rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # ...
drichmond/tinker
python/Interface.py
Python
bsd-3-clause
7,958
[ "TINKER" ]
86f57d4853ac1572c8fe154a1303fcd21b01091fb751f04020e2849fa82b4cdf