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 |
|---|---|---|---|---|---|---|---|
#
# Copyright 2020-2021 Jan Griesser (U. Freiburg)
# 2020 griesserj@fp-10-126-132-144.eduroam-fp.privat
# 2020 Arnaud Allera (U. Lyon 1)
# 2014 Lars Pastewka (U. Freiburg)
# 2014 James Kermode (Warwick U.)
#
# matscipy - Materials science with Python at the atomic-scale
# https:/... | libAtoms/matscipy | matscipy/calculators/polydisperse/calculator.py | Python | lgpl-2.1 | 10,436 | [
"ASE",
"Matscipy"
] | 18969f10bf363175bb01f8dac94abb19032b7030301a527d8837d1512ca88f06 |
import sys, os, getpass, logging, time, inspect, requests, json, pprint
import h2o_test_utils
from h2o_test_utils import log, log_rest
import h2o_print as h2p
class H2O(object):
# static (class) variables
ipaddr_from_cmd_line = None
debugger = False
json_url_history = []
python_test_name = inspect.... | jangorecki/h2o-3 | py/h2o.py | Python | apache-2.0 | 46,333 | [
"Gaussian"
] | abff80f295d6a8d609fcf6c944d2f5e88a67c8eac33c11928b34d623bfd0fa04 |
# SPDX-FileCopyrightText: 2014-2020 Martin Roelfs
#
# SPDX-License-Identifier: MIT
from __future__ import division, print_function
import pytest
import numpy as np
from symfit import (
variables, parameters, Fit, Parameter, Variable,
Equality, Model, GradientModel
)
from symfit.core.minimizers import BFGS, MIN... | tBuLi/symfit | tests/test_auto_fit.py | Python | gpl-2.0 | 10,273 | [
"Gaussian"
] | d08c5345a48cc2a2361185a4be4a925635108d2dddf02b2199f5c3fdecca3d40 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2016-2019 Stoq Tecnologia <http://stoq.com.br>
## All rights reserved
##
## This program 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 Fou... | stoq/stoqdrivers | stoqdrivers/printers/elgin/I9.py | Python | lgpl-2.1 | 1,823 | [
"VisIt"
] | e4d051d777c15679186ae8ff45d4a5be5aa35e579d839ad42582d072b5c41f02 |
# -*- coding: utf-8 -*-
"""
Materials
---------
Module :mod:`~xrt.backends.raycing.materials` defines atomic and material
properties related to x-ray scattering, diffraction and propagation:
reflectivity, transmittivity, refractive index, absorption coefficient etc.
.. autofunction:: read_atomic_data
.. autoclass::... | kklmn/xrt | xrt/backends/raycing/materials.py | Python | mit | 88,590 | [
"Avogadro",
"CRYSTAL"
] | 98910b325637fea6949797626bcf4633b40d2034250ef3b3aa2bce0448dfafb2 |
from flyingpigeon import visualisation as vs
from pywps.Process import WPSProcess
from flyingpigeon.log import init_process_logger
import logging
logger = logging.getLogger(__name__)
class plottimeseriesProcess(WPSProcess):
def __init__(self):
# definition of this process
WPSProcess.__init__(
... | KatiRG/flyingpigeon | flyingpigeon/processes/wps_plot_timeseries.py | Python | apache-2.0 | 4,145 | [
"NetCDF"
] | f5fd600e20af78d91f755d218591c876ef62fbe9e51881c38845835f5d5f4b28 |
#!/usr/bin/env python
#
# ----------------------------------------------------------------------------------------------------
#
# Copyright (c) 2018, 2018, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistri... | graalvm/mx | tag_version.py | Python | gpl-2.0 | 4,024 | [
"VisIt"
] | 44efd917740f5e16c34938b129108dc58734ec868fc3f02d9546a428b343ea99 |
"""
Copyright (c) 2011-2015 Nathan Boley
This file is part of GRIT.
GRIT 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.
GRIT is distribut... | nboley/grit | grit/estimate_transcript_expression.py | Python | gpl-3.0 | 27,742 | [
"pysam"
] | e32046da6a65646e25594bf0fbe4bf718549de07890107545dc8d773f9627774 |
#!/usr/bin/python
# Check the spin-up of CLM, using 8760 hr history fileG.
import numpy as np
from scipy.io import netcdf
import math , re
# Read File
def read_vars(str_path, str_filename1, arr_2dvar):
ncdf_file01 = "{0:s}/{1:s}".format(str_path,str_filename1)
file01 = netcdf.netcdf_file( ncdf_file01 )
arr_i... | metalpen1984/SciTool_Py | find_grid_clm.py | Python | lgpl-3.0 | 3,212 | [
"NetCDF"
] | b84397474d080fd55a8473d7272f3b24ef6e76c4ddafd8ece8a61cd4c50c5821 |
import os
import ast
class RubyTransformer(ast.NodeTransformer):
def map_visit(self, list, join="\n", indent=""):
r = []
for item in list:
indd = (isinstance(item, str) and item or self.visit(item))
indd = "\n".join([indent+x for x in indd.split("\n")])
r += [indd]
return join.join(r)
... | johari/holy | lib/holy/Holy.py | Python | mit | 4,863 | [
"VisIt"
] | a54ca993611b7847559c39e645866e9596e38935ac1fd643d12539406f383d18 |
from galaxy.web.base.controller import *
class Error( BaseController ):
@web.expose
def index( self, trans ):
raise Exception, "Fake error" | volpino/Yeps-EURAC | lib/galaxy/web/controllers/error.py | Python | mit | 156 | [
"Galaxy"
] | 6a095a5d36582265f9f6f34852975135e18e851a447a038e3f89d8ddb1346b9f |
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | espressomd/espresso | testsuite/scripts/samples/test_minimal-polymer.py | Python | gpl-3.0 | 1,000 | [
"ESPResSo"
] | 38cb28aa11d8ba3c04901b8280c5d5f729950cdb4090ba65ee0a638efe3121bc |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#******************************************************************************
#*
#* Copyright (C) 2015 Kiran Karra <kiran.karra@gmail.com>
#*
#* This program is free software: you can redistribute it and/or modify
#* it under the terms of the GNU General Public Licens... | kkarrancsu/copula-bayesian-networks | copula_compatibility_problem.py | Python | gpl-3.0 | 3,061 | [
"Gaussian"
] | 6458ee38be061694adf07d48012e9fbe210bde832e81328bf4497be7ce949865 |
## \file
## \ingroup tutorial_roofit
## \notebook
##
## \brief Basic functionality: interpreted functions and p.d.f.s
##
## \macro_code
##
## \date February 2018
## \authors Clemens Lange, Wouter Verkerke (C++ version)
import ROOT
# Generic interpreted p.d.f.
# ------------------------------
# Declare observable x
x... | karies/root | tutorials/roofit/rf103_interprfuncs.py | Python | lgpl-2.1 | 3,130 | [
"Gaussian"
] | 5048bbd278f91f6997b665b3a52f7697e2964422055e61502c7292fbee9f3a3a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import unittest
import os
from rmgpy import getPath
from rmgpy.qm.main import QMSettings, QMCalculator
from rmgpy.molecule import Molecule
class TestQMSettings(unittest.TestCase):
"""
Contains unit tests for the QMSettings class.
"""
def setUp(self):
"""
A functio... | enochd/RMG-Py | rmgpy/qm/mainTest.py | Python | mit | 10,141 | [
"Gaussian",
"MOPAC",
"Molpro"
] | bb95aea3a03edd89115922704938bbbafa9e889ecc11e89e553d2bfaad9fe007 |
# Copyright 2017 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... | nburn42/tensorflow | tensorflow/contrib/kfac/python/ops/estimator.py | Python | apache-2.0 | 20,349 | [
"Gaussian"
] | d87c8ce9c0f6d41c4b6cd97e981afbd4f8891e4cb1059d225ecf24b0e155a711 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
"""
FParser... | nuclear-wizard/moose | python/mms/fparser.py | Python | lgpl-2.1 | 6,124 | [
"MOOSE"
] | 6617b4bb9180704e6369c54111bc9ab80be127278f947af04266263ba57eaa3b |
__all__ = ["analysis","external", "postprocessing","utils","tracking"]
__have_visit__ = None
__visitPath__ = None
__visitImportPath__ = None
import sys
from meanie3D.app.utils import findVisitPaths
# Import visit package
__visitPath__, __visitImportPath__ = findVisitPaths()
if __visitImportPath__ and __visitPath__:
... | meteo-ubonn/meanie3D | python/meanie3D/app/__init__.py | Python | mit | 518 | [
"VisIt"
] | a8ca3dbd730b372726885b055638544a453e543aac4a31333d59d581880d7f1a |
#!/usr/bin/env python2
# Copyright (C) 2016-2017(H)
# Max Planck Institute for Polymer Research
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eit... | MrTheodor/espressopp | examples/ewald/ewald.py | Python | gpl-3.0 | 7,823 | [
"ESPResSo"
] | bf9dc9eb6a3d4ab76bc015974ac7e7335852772102b849aa14d974df2a2fbb23 |
#from ctx_base import StandardBaseContext
from .libmp.backend import basestring, exec_
from .libmp import (MPZ, MPZ_ZERO, MPZ_ONE, int_types, repr_dps,
round_floor, round_ceiling, dps_to_prec, round_nearest, prec_to_dps,
ComplexResult, to_pickable, from_pickable, normalize,
from_int, from_float, from_str,... | ojengwa/sympy | sympy/mpmath/ctx_mp_python.py | Python | bsd-3-clause | 37,144 | [
"Gaussian"
] | 1115ef70c6b5258faa070c8740a189d4f2f7848abde6279d975d003598380748 |
from easy.visitors.base import BaseVisitor
class RegisterStack(object):
def __init__(self):
self._all_regs = ('%eax', '%ebx', '%ecx', '%edx', '%esi', '%edi')
self._free_regs = list(self._all_regs)
self._caller_save = ('%eax', '%ecx', '%edx')
self._callee_save = ('%ebx', '%esi', '%ed... | helgefmi/Easy | src/easy/visitors/codegen.py | Python | mit | 6,581 | [
"VisIt"
] | 13cf5b78fee43eb4b9cf3262ba0d7ebecaae6ec12a2ed6733132a34f41bca2ed |
"""This module defines the Atom object."""
import warnings
import numpy as np
from ase.data import atomic_numbers, chemical_symbols, atomic_masses
# singular, plural, default value
names = {'position': ('positions', np.zeros(3)),
'number': ('numbers', 0),
'tag': ('tags', ... | grhawk/ASE | tools/ase/atom.py | Python | gpl-2.0 | 7,093 | [
"ASE"
] | 11e806c9bde65a0c2d94a361a35c7668dfe24111f29869da962185fc73c6a9d4 |
# Copyright 2015 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... | taylorpaul/cifar10_tf | cifar10.py | Python | apache-2.0 | 15,652 | [
"Gaussian"
] | 14b6558c6ec1d12d07be27db4ba7ae3835b9ffa29e4a1fa3a0cec24d54f6c4d3 |
# -*- coding: utf-8 -*-
"""
Use local copy of wxVTKRenderWindowInteractor until the baseClass.__init__() order is adapted to glcanvas-2.9
"""
import sys
import os
try:
import wx
except ImportError as e:
import traceback
#traceback.print_exc(file=sys.stdout)
sys.stderr.write("No proper wx installed'.\n"... | florian-wagner/gimli | python/pygimli/gui/vtk/wxVTKPanel.py | Python | gpl-3.0 | 1,704 | [
"VTK"
] | 007c9b085e86f3d1f2d9868004817174c6dd950613653e2d36d23440a8c39fc7 |
"""
Gaussian Mixture Models.
This implementation corresponds to frequentist (non-Bayesian) formulation
of Gaussian Mixture Models.
"""
# Author: Ron Weiss <ronweiss@gmail.com>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Bertrand Thirion <bertrand.thirion@inria.fr>
import warnings
import numpy as... | abhishekkrthakur/scikit-learn | sklearn/mixture/gmm.py | Python | bsd-3-clause | 27,488 | [
"Gaussian"
] | 868c0c9e74dafe09c756306577f189e78d094dd83ecb64a9d47d2a8cec57889f |
#
# Copyright 2015 The AMP HTML Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | donttrustthisbot/amphtml | validator/validator_gen_js.py | Python | apache-2.0 | 38,580 | [
"VisIt"
] | 794939ad23cdd8a57c8c811499a93a463aa380ebe7f182e0f6d8293152548178 |
import json
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from coalib.bears.requirements.NpmRequirement import NpmRequirement
from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
from coalib.results.Result import Result
from coala_utils.param_convertion impor... | SanketDG/coala-bears | bears/coffee_script/CoffeeLintBear.py | Python | agpl-3.0 | 15,288 | [
"VisIt"
] | d79df62eaf3cefbaa0e321f83387c4c0cabc397629753e9e5aac2c26959600f8 |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | BackupTheBerlios/espressopp | src/interaction/AngularHarmonic.py | Python | gpl-3.0 | 2,855 | [
"ESPResSo"
] | 1979008236083b068d9e1106a49bafc8b443b7a0b0d1f230554d83d9ef87c397 |
from urllib2 import urlopen
import lxml.html
import requests
import json
import csv
# dataYears = ['2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015']
# dataAgencies = ['USDA','DOC','DoD','ED','DOE','HHS','DHS','HUD','DOI','DOJ','U.S. DOL','State','DOT','Treasury','VA','ACUS','USAID','ABMC','NRPC','AFRH','... | sunlightlabs/foia-data | data/foia.gov/scrape-foia-data-official.py | Python | gpl-3.0 | 2,323 | [
"ADF"
] | 0e36ed06b17b087907b4d367626a868ad54e5c1dc60f7a2e476d7136d08cdac9 |
import unittest
import warnings
from math import sqrt
import numpy as np
from iminuit import Minuit
from iminuit.iminuit_warnings import InitialParamWarning
from probfit import Normalized, Extended, UnbinnedLH
from probfit.pdf import gaussian
from probfit.oneshot import fit_binlh, fit_binx2, fit_uml
def assert_almost... | mtresch/probfit | test/testoneshot.py | Python | mit | 5,662 | [
"Gaussian"
] | 4aeb066e64bed67e39807de995fe20c54f939c1915fef7091a87809db3e74e8c |
# nmda.py ---
#
# Filename: nmda.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Wed Mar 17 14:07:20 2010 (+0530)
# Version:
# Last-Updated: Wed Mar 17 18:57:29 2010 (+0530)
# By: Subhasis Ray
# Update #: 97
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
#... | BhallaLab/moose-thalamocortical | pymoose/tests/nmda.py | Python | lgpl-2.1 | 3,385 | [
"MOOSE"
] | 0e44f585808ee8848b56e5d2958daade8a7522a677a592fb7c1e7a5a2fb0d219 |
# 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... | keras-team/keras | keras/utils/kernelized_utils_test.py | Python | apache-2.0 | 4,825 | [
"Gaussian"
] | 7e4133cda7b8383b904e3f31575cda49e36aa5d91382ca68f2da4ab46836c5d5 |
"""
A EEX utility folder
"""
import os
import hashlib
from . import units
import numpy as np
from subprocess import PIPE, Popen
def canonicalize_energy_names(energy_dict, canonical_keys):
"""Adjust the keys in energy_dict to the canonical names.
Parameters
----------
energy_dict : dict
engine : s... | dgasmith/EEX_scratch | eex/utility.py | Python | bsd-3-clause | 4,930 | [
"Desmond"
] | f7e859c7bfcf27e38199dc02a626b6e01d44c59df2b6c406a4328bf8f3a9c052 |
"""
# Notes:
- This simulation seeks to emulate the COBAHH benchmark simulations of (Brette
et al. 2007) using the Brian2 simulator for speed benchmark comparison to
DynaSim. However, this simulation includes CLOCK-DRIVEN synapses, for direct
comparison to DynaSim's clock-driven architecture. The synaptic connec... | asoplata/dynasim-benchmark-brette-2007 | output/Brian2/brian2_benchmark_COBAHH_clocksyn_lodens_4000/brian2_benchmark_COBAHH_clocksyn_lodens_4000.py | Python | gpl-3.0 | 3,781 | [
"Brian"
] | 5709c49c2eaf8f58da30e83eebb590835fe26ec610df3e90d5fd2e3c29753f06 |
# Copyright 2015 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... | petewarden/tensorflow | tensorflow/python/ops/gradients_util.py | Python | apache-2.0 | 40,178 | [
"VisIt"
] | 8ab030a7bfc2243a7cd96bf9a69c45114b7e3e5abe2e94c4aacaaea6b8e1ccf3 |
#!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
server = ECMWFDataServer()
for x in range(1981, 2015):
server.retrieve({
'class' : "ei",
'dataset' : "interim",
'date' : str(x) + "-01-01/to/" + str(x) + "-12-31",
'expver' : "1",
'grid' : "0.75/0.75",
'lev... | cvitolo/r_kehra | inst/ecmwf.py | Python | gpl-3.0 | 643 | [
"NetCDF"
] | 26a8a3cc4f927f5f9eaf5b5f00d279e807c45e020320f4c63139642119ca28dd |
import os
import platform
import getpass
import bisect
import shutil
import json
import numpy as np
import xarray as xr
from datetime import datetime
from utility import date
from utility import tdtsk
from utility import key_manager
from utility import dts
from utility import restoration
from utility import stock_symbo... | kinglogxzl/rqalpha | build/lib/rqalpha/data/dtsk_python_interface/dtsk.py | Python | apache-2.0 | 3,934 | [
"exciting"
] | 31bc4070a56dc2d4498fa3431fffef48a71bc2c5cea1ec25af0646e481f7994b |
from traits.api import Code, Button, Int, on_trait_change, Any, HasTraits,List, Str, Enum, Instance, Bool
from traitsui.api import (View, Item, Group, HGroup, CodeEditor,
spring, Handler, EnumEditor)
from cviewer.plugins.cff2.csurface_darray import CSurfaceDarray
class SurfacePa... | LTS5/connectomeviewer | cviewer/plugins/codeoracle/csurface_action.py | Python | bsd-3-clause | 2,690 | [
"Mayavi"
] | b33820a09d0e8f577aff2d6174a2baecf239ffca60a20153ca46a2098124df75 |
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Provides an interface to start and stop Android emulator.
Emulator: The class provides the methods to launch/shutdown the emulator with
... | junhuac/MQUIC | src/build/android/pylib/utils/emulator.py | Python | mit | 17,479 | [
"Galaxy"
] | 39dc5fc9f4be28ab88d17b8d1a2ee3f76d6054f05f353085ad3f33f63ff4e7f7 |
#!/usr/bin/env python
# encoding: utf-8
"""
Generate a random distribution of stars with magnitudes derived from an
SSP isochrone and an error model for a specified set of band passes.
The intention is to provide callback functions or subclasses the provide
domain-specific error models. This base class will assume gau... | jonathansick/pySPS | pysps/isoc/sspstars.py | Python | bsd-3-clause | 5,199 | [
"Gaussian"
] | 80853338f1baf021e45e46856dd5186bb80255d5d5f984671f8d28d91b2c4fc3 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# VISIT MY LABORATORY
from __future__ import print_function, with_statement
from threading import Thread, Event
from base64 import b64encode
import fcntl, sys, re, time
import cherrypy, json
import expeyes.eyesj
import os.path
import cv2
## to save ODS files
from odf.opendo... | wavicles/visitMyLab | vml-expeyes-jr.py | Python | agpl-3.0 | 17,452 | [
"VisIt"
] | 75bc3bb135109daf5a5d8ad0243c346fb952d00601adb15313808fe80393c176 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Copyright (C) 2020 Stoq Tecnologia <http://www.stoq.com.br>
# All rights reserved
#
# This program 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;... | stoq/stoq-server | stoqserver/signals.py | Python | gpl-2.0 | 2,517 | [
"VisIt"
] | 116138355c15072338d801a3c7c9bd5bf1cf0c0fb4b71ce92b2dbceb4278bc78 |
##############################################################################
# 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... | TheTimmy/spack | var/spack/repos/builtin/packages/py-netcdf4/package.py | Python | lgpl-2.1 | 1,806 | [
"NetCDF"
] | e1c9042ef4242e9a1343fccc6ceba5ca0f42f05cc20fbb7b222c4efc4b995c2c |
#
# Copyright (C) 2013,2014 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... | tbereau/espresso | samples/python/store_properties.py | Python | gpl-3.0 | 5,076 | [
"ESPResSo"
] | 3657d06d548737dfc8daab6d14a92b5eddedf3d00d633d958e57f825639ac0e8 |
"""
Computes matrix elements over a dirac delta function at the centre of
trajectory 1 and trajectory 2.
"""
import numpy as np
import nomad.core.glbl as glbl
import nomad.compiled.nuclear_dirac as dirac
import nomad.compiled.nuclear_gaussian as gauss
# Let propagator know if we need data at centroids to propagate
re... | mschuurman/FMSpy | nomad/integrals/fms_dirac.py | Python | lgpl-3.0 | 3,402 | [
"DIRAC",
"Gaussian"
] | 2cffd1a8712bdf76035904bd59cbc8acb8ed986c3a5ae848a53bed0ba5295e91 |
import threading
from midas.node import lsl as pylsl
import uuid
import numpy
class GSRData(threading.Thread):
""" Generates a stream which inputs randomly generated values into the LSL.
Generates a multichannel stream which inputs random values into the LSL.
Generated random values follow gaussi... | jtorniainen/edanode | gsrstream.py | Python | mit | 3,689 | [
"Gaussian"
] | 155e3119006a60bc8960f297310fa305b6126ff3dbfe6df9bffde96a35f19453 |
# pymol
from pymol import cmd
from chempy import io
from chempy import feedback
from chempy.bmin.state import State
import threading
import traceback
import os
state = None
model = None
def assign(sele,preserve=0):
from molobj import MolObj
from typer import Typer,Rules
import rules
result = 1
... | gratefulfrog/lib | python/chempy/bmin/realtime.py | Python | gpl-2.0 | 3,213 | [
"ChemPy",
"PyMOL",
"TINKER"
] | 8b06bf2689f8d29cbef6eece48f6a222c3941d0ac944d3e8d16ede50d83e8605 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/plugins/songs/lib/songcompare.py | Python | gpl-2.0 | 6,583 | [
"Brian"
] | 3db227eea79759f442843ee90a0aceb7224bdb6aa3faff379d90c56805871e5f |
#!/usr/bin/python
import numpy as np
import math
from scipy.stats import norm
import vrep
import vrep_rotors, vrep_imu
class RL(object):
def __init__(self, clientID):
self.clientID = clientID
self.quadHandle = None
self.pos = [0, 0, 0]
self.rotor_data = [0.0, 0.0, 0.0, 0.0]
... | kanishkaganguly/VREP | rl_helper.py | Python | bsd-3-clause | 2,562 | [
"Gaussian"
] | 5ba338babfb19707c627c4bd644b3101e64ca82402b9877db1133fb7e6cac121 |
"""
DIRAC.ConfigurationSystem.Client.Helpers package
"""
from DIRAC.ConfigurationSystem.Client.Helpers.Path import *
from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getCSExtensions, getVO
| DIRACGrid/DIRAC | src/DIRAC/ConfigurationSystem/Client/Helpers/__init__.py | Python | gpl-3.0 | 206 | [
"DIRAC"
] | b323804b08246479fa6fac9b618bb5e703bc9ab6578fb4fe8081e4dc40e5a637 |
#!/usr/bin/env
"""
ncutilities.py
Using Anaconda packaged Python
"""
import datetime
from netCDF4 import Dataset
from netCDF4 import MFDataset
__author__ = 'Shaun Bell'
__email__ = 'shaun.bell@noaa.gov'
__created__ = datetime.datetime(2013, 12, 20)
__modified__ = datetime.datetime(2014, 03, 14) #<-- P... | shaunwbell/FOCI_Analysis | ReanalysisRetreival_orig/GOA_Winds/utilities/ncutilities.py | Python | mit | 9,754 | [
"NetCDF"
] | 076aadf7b58ba66fab5e4a0d330c6b890ece3a33a73d8860bc1e3dad4097bac8 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/item_title | openlp/core/ui/mediadockmanager.py | Python | gpl-2.0 | 4,278 | [
"Brian"
] | 108697d7e9495301affcd5359b87c18442a1b895acd45c4eb51702d7e676aa2c |
""" DIRAC JobDB class is a front-end to the main WMS database containing
job definitions and status information. It is used in most of the WMS
components
The following methods are provided for public usage:
getJobAttribute()
getJobAttributes()
getAllJobAttributes()
getDistinctJobAttributes... | fstagni/DIRAC | WorkloadManagementSystem/DB/JobDB.py | Python | gpl-3.0 | 70,273 | [
"DIRAC"
] | 605f40403304de3bda307ef02cedd68c24dbaf5c646ff2a4c9ee91628859a707 |
#!/usr/bin/env python
'''unit testing code for pysam.
Execute in the :file:`tests` directory as it requires the Makefile
and data files located there.
'''
import pysam
import unittest
import os
import shutil
import sys
import collections
import subprocess
import logging
from functools import partial
from TestUtils im... | brendanofallon/pysam | tests/AlignmentFile_test.py | Python | mit | 83,514 | [
"BWA",
"pysam"
] | f55f0b0b8fac536418834da389bb0d1d0ac46ea8d873227ca569fc1a0f780b6c |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack import *
class Gdl(CMakePackage):
"""A free and open-source IDL/PV-WAVE compiler.
GNU Data ... | iulian787/spack | var/spack/repos/builtin/packages/gdl/package.py | Python | lgpl-2.1 | 5,275 | [
"NetCDF"
] | 4bbed094924f8985d4b83bf55e3182baf067fe304551f20aae38819942268155 |
#!/usr/bin/env python3
"""This module implements finding of Radio Frequency Interference for LOFAR data.
This module is strongly based on pyCRtools findrfi.py by Arthur Corstanje.
However, it has been heavily modified for use with LOFAR-LIM by Brian Hare
"""
from pickle import load
import numpy as np
from matplotl... | Bhare8972/LOFAR-LIM | LIM_scripts/findRFI.py | Python | mit | 18,312 | [
"Brian",
"Gaussian"
] | 9be2fda4c6b3769eb4c2cce2bea0f7fbd26aeab10f26ceffddb63155fad99578 |
../../../../share/pyshared/orca/sound.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/sound.py | Python | gpl-3.0 | 40 | [
"ORCA"
] | 6081e622abc7207a89ebac218652d3695966cc457718b1096d215b8d0edb125d |
"""Classes for use with IGOR Pro
"""
import re
import numpy as np
from . import cube
class Axis(object):
"""Represents an axis of an IGOR wave"""
def __init__(self, symbol, min, delta, unit, wavename=None):
self.symbol = symbol
self.min = min
self.delta = delta
self.unit = un... | cpignedoli/asetk | asetk/format/igor.py | Python | mit | 10,391 | [
"CP2K",
"Gaussian"
] | 6eff1f8c92706a24f37af4af862ffd318884f62b8b0811bb24878cc23354e905 |
#!/usr/bin/env python3
import argparse
import os
import copy
import sys
from pyfastaq import *
import pysam
#from scaffold_test_helper import *
class Hit:
def __init__(self, id, start, strand):
self.id = id
self.start = start
self.strand = strand
def __str__(self):
return se... | martinghunt/Scaffolder-evaluation | Analysis-scripts/scaff_test_make_unique_tags.py | Python | gpl-3.0 | 6,826 | [
"pysam"
] | 53590780dd005161943851fd1d726758c6d8345fab84a32bf67b5d15a4527e25 |
import os.path
import pytest
import gromacs.qsub
def test_queuing_systems(known=("Sun Gridengine", "PBS", "LoadLeveler", 'Slurm')):
assert len(gromacs.qsub.queuing_systems) == len(known)
for qs in gromacs.qsub.queuing_systems:
assert qs.name in known
assert qs.flag("-x").endswith("-x")
... | Becksteinlab/GromacsWrapper | tests/test_qsub.py | Python | gpl-3.0 | 1,184 | [
"Gromacs"
] | dd366aecdee2867364aa24382768df990726f76bc95dec79ab9d230f6a36a358 |
#
# @file TestEvent_newSetters.py
# @brief Event unit tests for new set function API
#
# @author Akiya Jouraku (Python conversion)
# @author Sarah Keating
#
# ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ======
#
# DO NOT EDIT THIS FILE.
#
# This file was generated automatically by co... | TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestEvent_newSetters.py | Python | bsd-3-clause | 9,536 | [
"VisIt"
] | aa3ea97748539ccabb07466743aaf4a11681f7017e2836144f9362dab1aac79e |
#-----------------------------------------------------------------------------
# Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley
#
# This file is part of pyzmq
#
# Distributed under the terms of the New BSD License. The full license is in
# the file COPYING.BSD, distributed as part of this software.
#-----... | IsCoolEntertainment/debpkg_python-pyzmq | zmq/tests/test_version.py | Python | lgpl-3.0 | 2,082 | [
"Brian"
] | 937a9ef2f0580c6490d4d1c99e16bbfcb281c1593a2e39565c77fa2eb610051c |
"""
Module for VASP
The Vienna Ab initio Simulation Package (VASP) is a computer program for atomic scale materials modelling,
e.g. electronic structure calculations and quantum-mechanical molecular dynamics, from first principles.
https://www.vasp.at/
"""
from .kpoints import read_kpoints, write_kpoints
from .posca... | MaterialsDiscovery/PyChemia | pychemia/code/vasp/__init__.py | Python | mit | 733 | [
"VASP"
] | 44e46fe053d7ea75e205a456d999dfc2c86e165ad6a85669f1c6d0647c8f565d |
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class FusionCatcherInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing FusionCatcher 0.99.3c on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/softw... | meissnert/StarCluster-Plugins | fusioncatcher_0_99_3c.py | Python | mit | 1,973 | [
"Biopython",
"Bowtie"
] | b32724554d3dea188840acb737a44d9d0a385fbedf27f086bfbced3799bb9af7 |
#!/usr/bin/env python
# This file is part of pyAstroLib.
#
# pyAstroLib is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pyAstroLib i... | mubdi/pyastrolib | idlphot.py | Python | lgpl-3.0 | 11,641 | [
"Gaussian"
] | 52561901a8b5b4d6a6fb12868b16571538cb0954e97351365ad3fe9740e32019 |
#!/usr/bin/env python
"""
Simple menu system
"""
import os, sys
class Submenu:
def __init__(self, name, description):
self.name = name
self.description = description
self.items = []
def __str__(self):
return self.brief_dump()
INDENT=' ' # indentation used in printo... | sniemi/SamPy | sandbox/src1/TCSE3-3rd-examples/src/py/examples/menusys.py | Python | bsd-2-clause | 2,030 | [
"Gaussian"
] | 299b2cca55317f88e37f8278564b7de1d65e41af600a7c637b08082d536fcb80 |
#===============================================================================
# LICENSE XOT-Framework - CC BY-NC-ND
#===============================================================================
# This work is licenced under the Creative Commons
# Attribution-Non-Commercial-No Derivative Works 3.0 Unported Li... | SMALLplayer/smallplayer-image-creator | storage/.xbmc/addons/net.rieter.xot.smallplayer/resources/libs/cache/__init__.py | Python | gpl-2.0 | 2,728 | [
"VisIt"
] | bd0d28a8253a57390dc13cdad6d68ca1383f7e304041df2a26f71f2e748beea5 |
import POVME.packages.binana.peel as peel
import POVME.packages.pymolecule.pymolecule as pymolecule
#import packages.pymolecule.pymolecule as pymolecule
#import numpy
my_params = peel.defaultParams
#my_protein = pymolecule.Molecule()
ligand = peel.PDB()
ligand.LoadPDB('4FSM-results_50221585.pdb')
my_ligand_peel = peel.... | POVME/POVME | POVME/packages/binana/tests/peel_receptor_basic/receptorLigandTest.py | Python | mit | 1,707 | [
"VMD"
] | 6b1fcec9e1511facc3948a25e3c8528d94172c0fabd0baa218ace43ca735bbb1 |
from __future__ import print_function
import time
from numpy import pi, sin, cos, linspace
from bokeh.browserlib import view
from bokeh.document import Document
from bokeh.models.glyphs import Line
from bokeh.models import (
Plot, DataRange1d, LinearAxis,
ColumnDataSource, PanTool, WheelZoomTool
)
from bokeh... | zrhans/python | exemplos/Examples.lnk/bokeh/glyphs/line_animate.py | Python | gpl-2.0 | 1,487 | [
"VisIt"
] | 497fd5107908ab4193c5d4c33d3c512e953192c94116c377cf89dd2e26f0466b |
###########################################################################
# (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. #
# #
# #
# This file is ... | ElettraSciComp/STP-Core | STP-Core/tools_multioffset.py | Python | gpl-3.0 | 21,256 | [
"Gaussian"
] | 18edd1b9f325f65e33a34e9a0ab8688e3f1661cdd322207236490cdd592f2257 |
import numpy as np
try:
import openmm
from openmm import unit
except ImportError: # OpenMM < 7.6
from simtk import unit
from simtk import openmm
import os, os.path
import logging
from nose.tools import assert_raises
from openmmtools import testsystems
from functools import partial
def _equiv_topol... | choderalab/openmmtools | openmmtools/tests/test_testsystems.py | Python | mit | 8,464 | [
"OpenMM"
] | 143f006226705cdfd0aa42f63c58a2ed85a92b031c8cd5779c7752722e168cf6 |
# -*- coding: utf-8 -*-
"""
Copyright 2009-2020 Olivier Belanger
This file is part of pyo, a python module to help digital signal
processing script creation.
pyo 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 Founda... | belangeo/pyo | setup.py | Python | lgpl-3.0 | 14,427 | [
"ESPResSo"
] | 3a7be6f59a05c178ed6e4ff8f5da4c2137a87f6bc28a1dccd02b608b65fd64c2 |
# Depending on how often these are edited, it may make more sense to put these
# into a model of their own, but as I don't have that information handy, I'm
# not going to over-complicate things at this stage for the sake of
# over-engineering.
from extended_choices import Choices
from core.utils import TrackedSuperse... | UKTradeInvestment/export-wins-data | wins/constants.py | Python | gpl-3.0 | 74,963 | [
"BWA"
] | 7fdca0b82c8374739a5cba4675a02035926d878110bfab9606dcc5a7e50d92fa |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import math
import itertools
import warnings
from six.moves import map, zip
import numpy as np
from numpy.linalg import inv
from numpy import pi, dot, transpo... | xhqu1981/pymatgen | pymatgen/core/lattice.py | Python | mit | 42,044 | [
"ABINIT",
"CRYSTAL",
"pymatgen"
] | 11cc8413d86f2b8066a301b2aaa182e34202a7d6c95693fc911d63db780aec11 |
# 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 | examples/offsetLinePlot.py | Python | gpl-2.0 | 2,387 | [
"VTK"
] | c6669dbb18bf37faf95af05d447c0c48816c4fe33d8624f7c40ccf69fa4dbb2f |
"""network2.py
~~~~~~~~~~~~~~
An improved version of network.py, implementing the stochastic
gradient descent learning algorithm for a feedforward neural network.
Improvements include the addition of the cross-entropy cost function,
regularization, and better initialization of network weights.
"""
#### Libraries
# St... | nilabja10201992/NeuralNettoDetectHandWrittenDigits | src/network2.py | Python | gpl-3.0 | 14,612 | [
"Gaussian",
"NEURON"
] | 6ea8e59b11eb872557f508d6d7073e8dd08945b950ad6d09ee8c8792a63bd41b |
def visit(animals, name):
print('Welcome to the zoo, ' + name + '! We have: ')
for key in animals:
print(' %d %s' % (animals[key], key))
animals = {'zebras': 5, 'elephants': 4, 'penguins': 10}
name = 'Jennifer'
visit(animals, name)
| jenfly/python-cheatsheets | zoo.py | Python | mit | 250 | [
"VisIt"
] | f618c1af4e89244c576e467f84eaabd8bafb65c571da045a90f11fde26e2f7d7 |
# sql/elements.py
# Copyright (C) 2005-2016 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Core SQL expression elements, including :class:`.ClauseElement`,
:class:`.ColumnE... | yelongyu/chihu | venv/lib/python2.7/site-packages/sqlalchemy/sql/elements.py | Python | gpl-3.0 | 133,812 | [
"VisIt"
] | a240d08d86213ee7045f93a63fa5c5c5651ab852eba55dee730222b134955461 |
import sys, re, os
from tce_tools import TTA
adf = ''
idf = ''
name = ''
try:
tce_root = os.environ['TCE_INSTALL_DIR']
except:
tce_root = ''
adf_re = re.compile('[a-z0-9_\-\.\/]+.adf$')
idf_re = re.compile('[a-z0-9_\-\.\/]+.idf$')
name_re = re.compile('name=([a-zA-z0-9_]+)')
tce_re = re.compile('tce=([a-zA-Z\... | lasseLehtonen/tce_unofficial | scripts/tce_commander.py | Python | mit | 1,496 | [
"ADF"
] | c92c2ada9d283ca41e8623f08ca75596da2e8ce0ea1d322e6b68b3390ae8c594 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements core classes for calculation of diffraction patterns.
"""
import abc
import collections
import numpy as np
from pymatgen.core.spectrum import Spectrum
from pymatgen.util.plotting i... | gmatteo/pymatgen | pymatgen/analysis/diffraction/core.py | Python | mit | 9,173 | [
"CRYSTAL",
"pymatgen"
] | 97089567fb10522f2cebb0a08eb67aa366debb6084575829afab7c6c17a1d854 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
r"""
============================================================================
Gaussian Processes regression: comparing different variants of Matern kernel
============================================================================
Gaussian Process regression with four di... | jmetzen/skgp | examples/plot_matern_kernel.py | Python | bsd-3-clause | 3,654 | [
"Gaussian"
] | 48674b5f59fc03d81062e57ac4ef275347889a194570265ca43a549fc751f881 |
#User provided customizations for the gpaw setup
#Here, one can override the default arguments, or append own
#arguments to default ones
#To override use the form
# libraries = ['somelib','otherlib']
#To append use the form
# libraries += ['somelib','otherlib']
# Valid values for scalapack are False, or True:... | qsnake/gpaw | customize.py | Python | gpl-3.0 | 1,099 | [
"GPAW"
] | 7d20b3592e2f7cba8bb91cdc63fc509da980d02819302e886186700e5df45916 |
#!/usr/bin/env python
"""
Generate a matrix of protocols used between SEs for FTS transfers.
The output is a CSV file containing a matrix source/destination.
The value of each cell is of the form "proto1/proto2 ([protoA,protoB,...])"
proto1/proto2 are the protocols that would really be given to FTS for source and dest ... | ic-hep/DIRAC | src/DIRAC/DataManagementSystem/scripts/dirac_dms_protocol_matrix.py | Python | gpl-3.0 | 7,334 | [
"DIRAC"
] | e88a55839858e0f5000ad7a5b85b4db0890977555fe8d7e877e0cd5ce9b9aa74 |
#!/usr/bin/python
#
# Copyright 2015 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 b... | wubr2000/googleads-python-lib | examples/adwords/v201506/advanced_operations/add_text_ad_with_upgraded_urls.py | Python | apache-2.0 | 3,965 | [
"VisIt"
] | a1dc0a7ac7b8853ce777b1c75673c698112f93748b8f3617aae55ebf5f7bb91c |
# Arrogant Search version 0.1
# by Fulminus
# in this version, the quest only works as total solo (no option to work with friends) and
# only for the purpose of gaining access to Baium's floor (not for making money via rewards).
print "importing quests:",
import sys
from net.sf.l2j.gameserver.model.quest import State
... | Barrog/C4-Datapack | data/jscript/quests/348_ArrogantSearch/__init__.py | Python | gpl-2.0 | 11,841 | [
"VisIt"
] | c39e1bf13f1a114d995934c12834ba961ecb6632048fdc8ff092cc12bafdc369 |
"""Generated message classes for genomics version v1.
Stores, processes, explores and shares genomic data. This API implements the
Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several
extensions.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from googlecloudsdk.thir... | flgiordano/netcash | +/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/genomics/v1/genomics_v1_messages.py | Python | bsd-3-clause | 99,734 | [
"BWA"
] | 25e98f5f21d5bd2031becad4c6fc3146359fcbea0d90fd33691c75940ada18ee |
# -*- coding:utf-8 -*-
#
# Copyright 2012 NAMD-EMAP-FGV
#
# This file is part of PyPLN. You can get more information at: http://pypln.org/.
#
# PyPLN is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either vers... | rsouza/pypln.web | pypln/web/settings/base.py | Python | gpl-3.0 | 6,744 | [
"NAMD"
] | 852520b88e134ddc26759a8adc0c2bbbd9e4973252b40aa95a5f11d874762b95 |
#!/usr/bin/env python
'''Test how interspike interval affect spike waveforms in terms of
spike amplitude and spike width
The script is set up as the other population scripts, but location
of the single cell is in origo, and we test only along x-axis'''
#import modules
import uuid
import urllib2
import zipfile
import ... | espenhgn/ViSAPy | examples/ISI_waveforms/ISI_waveforms.py | Python | gpl-2.0 | 44,953 | [
"NEURON"
] | 57b619081b6290e102bb66d05f04613a37ab63e852e56e172f05ec06e46aea3b |
from orbkit.read.high_level import main_read
from orbkit.test.tools import equal
import numpy
from orbkit.qcinfo import QCinfo
from orbkit.orbitals import MOClass
from orbkit import options
import os, inspect
import warnings
warnings.filterwarnings("ignore")
options.quiet = True
tests_home = os.path.dirname(inspect.g... | orbkit/orbkit | orbkit/test/qcinfo/mo_select.py | Python | lgpl-3.0 | 3,178 | [
"Gaussian"
] | a5dbe74dadc451b48e9929450ababf1996adf778f590023487209bea05a68962 |
import bluetooth
import ctypes
"""
To use this tool change the your_device_bluetooth_name to
your device blueooth name - you should be able to find this
in your device's bluetooth settings.
You MUST first pair your device for this to work.
Requirements:
1. Install PyBluez - https://pypi.python.org/pypi/PyBluez
"""
#... | kimaniidaniel/Bluetooth_Windows_Locker | bluetooth_lock.py | Python | gpl-3.0 | 1,069 | [
"Galaxy"
] | 7210e2d69bb2ccd064bd327ac531d6b1870cc05a43e2fed822c6d162b742fd2b |
# Copyright 2008-2015 Nokia Solutions and Networks
#
# 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 l... | caio2k/RIDE | src/robotide/lib/robot/result/resultbuilder.py | Python | apache-2.0 | 7,134 | [
"VisIt"
] | be117bdef1431ccb6e00b9d087677973fca25d5f3ac268a2eaed9e1975454bb3 |
""" MacroCommand
The MacroCommand class is a macro class for all the macro commands
for interacting with multiple commands
"""
from DIRAC import gLogger
from DIRAC.ResourceStatusSystem.Command.Command import Command
class MacroCommand(Command):
"""
As of today, it is not used.
"""
def __init__(... | DIRACGrid/DIRAC | src/DIRAC/ResourceStatusSystem/Command/MacroCommand.py | Python | gpl-3.0 | 3,098 | [
"DIRAC"
] | 17bae8f65c2ff79462da5384ae85ad938ccb68731405bc2d5f8cf6b8b1eeccd7 |
"""
===========================
Formaldehyde cm-line fitter
===========================
This is a formaldehyde 1_11-1_10 / 2_12-2_11 fitter. It includes hyperfine
components of the formaldehyde lines and has both LTE and RADEX LVG based
models
"""
from __future__ import print_function
import numpy as np
from ...mpfit... | mikelum/pyspeckit | pyspeckit/spectrum/models/formaldehyde.py | Python | mit | 23,605 | [
"Gaussian"
] | 6c347a870344c3614148937b2116b06e0706bc14df0b9aaedbdf715e9acd53e1 |
"""
NetCDF reader/writer module.
This module is used to read and create NetCDF files. NetCDF files are
accessed through the `netcdf_file` object. Data written to and from NetCDF
files are contained in `netcdf_variable` objects. Attributes are given
as member variables of the `netcdf_file` and `netcdf_variable` objects... | altMITgcm/MITgcm66h | utils/python/MITgcmutils/MITgcmutils/netcdf.py | Python | mit | 32,170 | [
"NetCDF"
] | 94cecf4c8eef5466379b13a941919414138883022ce1d3d42ec6832d251c3f2c |
# Copyright 2014 The Oppia 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 applicable ... | prasanna08/oppia | core/controllers/creator_dashboard_test.py | Python | apache-2.0 | 42,849 | [
"VisIt"
] | 32c3008e909ff6874ebdf7af387c476a70844169520b143b4a4fbc1acb4d5eff |
# -*- coding: utf-8
from yade import ymport,utils,pack,export,qt,bodiesHandling
import gts,os
# for plotting
from math import *
from yade import plot
############################
### DEFINING PARAMETERS ###
############################
#GEOMETRIC :dimension of the rectangular box
a=400e-3 # side dimension
h=150... | anna-effeindzourou/trunk | examples/anna_scripts/tilt/tilttest_v3.py | Python | gpl-2.0 | 16,318 | [
"ParaView"
] | c9b07f5cd68034611c0abdee91ed530e6a36a2af2f5552e1b786d452a358dea3 |
#
# setup.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later ... | kperun/nestml | setup.py | Python | gpl-2.0 | 1,909 | [
"NEURON"
] | 156ad97a8c3f6a8de0602bf74c3bd51622000e866560203b8bc06cd59e8fa038 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Created on Apr 25, 2012
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__da... | dongsenfo/pymatgen | pymatgen/util/tests/test_coord.py | Python | mit | 14,132 | [
"pymatgen"
] | 8da4c15af3cb582bff4a648759ff42bc5e4cca012fdfae34f5269c8065457706 |
"""
===================
utils
===================
Miscellaneous utilities for ``dms_tools2``.
"""
import os
import math
import sys
import time
import platform
import importlib
import logging
import tempfile
import textwrap
import itertools
import collections
import random
import re
import pysam
import numpy
import ... | jbloomlab/dms_tools2 | dms_tools2/utils.py | Python | gpl-3.0 | 59,560 | [
"pysam"
] | 95086441df3709b1c44d6a249178726288964a60956de20e96432fec8138d596 |
#
# Copyright (C) 2001,2002 greg Landrum and Rational Discovery LLC
#
""" Various bits and pieces for calculating descriptors
"""
from __future__ import print_function
from rdkit.six.moves import cPickle
class DescriptorCalculator:
""" abstract base class for descriptor calculators
"""
def __init__(self, *... | rvianello/rdkit | rdkit/ML/Descriptors/Descriptors.py | Python | bsd-3-clause | 1,613 | [
"RDKit"
] | c19f75d7324fa043ef70425c7bcfff56b1c7ae41411558a5253c16c348433b6c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.