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
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS Instructor Dashboard. """ import time from flaky import flaky from nose.plugins.attrib import attr from bok_choy.promise import EmptyPromise from ..helpers import UniqueCourseTest, get_modal_alert, EventsTestMixin from ...pages.common.logout import LogoutPage ...
inares/edx-platform
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
Python
agpl-3.0
35,574
[ "VisIt" ]
213a7808405d688151adeb72ab6ec35ad6a96fa3dcb987e06be032dd124984a1
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/e2openplugin-OpenWebif
plugin/controllers/views/web/message.py
Python
gpl-2.0
5,171
[ "VisIt" ]
30961e7d0dea8c4e6c2d14d4676f8b64356b9e84995032753bf58dc3806efd37
#!/usr/bin/env python import sys import math import os.path import pysam from Script import Script class BAMflagAnalyzer(): infiles = [] nreads = 0 bits = [("PAIRED", 1), ("PROPER_PAIR", 2), ("UNMAP", 4), ("MUNMAP", 8), ("REVERSE", 16), ("MREVERS...
albertoriva/bioscripts
bamreadlen.py
Python
gpl-3.0
5,325
[ "pysam" ]
0c1b7fc52284c62af288c87e21f14550daaacbd56cda46b81ef5ea88ab3e157c
import sys from traceHandler import sizeError try: import matplotlib.pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure except RuntimeError as re: print(re) sys.exit() #from inspyred.ec import analysis from inspyred.ec.analysis ...
KaliLab/optimizer
optimizer/graphic.py
Python
lgpl-2.1
113,966
[ "Gaussian", "NEURON" ]
c9681393b4ab61040903a7308e6ab7ea08790adb69d4434e079edc911354f01c
# Begin CVS Header # $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/sbml/unittests/scripts/compareSBMLFiles.py,v $ # $Revision: 1.6 $ # $Name: $ # $Author: gauges $ # $Date: 2008/02/15 13:11:24 $ # End CVS Header # Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual # Propertie...
copasi/COPASI
copasi/sbml/unittests/scripts/compareSBMLFiles.py
Python
artistic-2.0
30,929
[ "COPASI" ]
21311290fa02b075465bb6f2420c64e76b12573b9e867e23d6bbcf91c7389e7d
'''Various extensions to distributions * skew normal and skew t distribution by Azzalini, A. & Capitanio, A. * Gram-Charlier expansion distribution (using 4 moments), * distributions based on non-linear transformation - Transf_gen - ExpTransf_gen, LogTransf_gen - TransfTwo_gen (defines as examples: square, n...
pprett/statsmodels
statsmodels/sandbox/distributions/extras.py
Python
bsd-3-clause
42,324
[ "Gaussian" ]
7578de2095e6face99b5f73ad40ab1c1e7c6d1a9489a284963860075ae1cdd04
# # Copyright 2011-2016 Ghent University # # This file is part of vsc-mympirun, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # the Flemish Research Foundat...
Iepoev/vsc-mympirun
lib/vsc/mympirun/mpi/mpi.py
Python
gpl-2.0
41,888
[ "GAMESS" ]
e10a3936b7fd271934930cfd08c2e3260683e9d6033a5064e29d7a1df05e50ef
# # This file can be placed in the simulations directory of any neuroConstruct simulation # and all of the data traces found in that directory will be loaded into NeuroTools # AnalogSignal and SpikeTrain objects # # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstr...
rgerkin/neuroConstruct
pythonNeuroML/NeuroTools/LoadToNeuroTools.py
Python
gpl-2.0
3,662
[ "NEURON" ]
03826e3b9582249c4e89f10e5d43bf666d524b0cf69751a04f1634a7d532ad8f
""" ..mod: FTSRequest ================= Helper class to perform FTS job submission and monitoring. """ # # imports import sys import re import time # # from DIRAC from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.File import checkGuid from DIRAC.Core.Utilities.Adler import compareAdler, intAd...
Andrew-McNab-UK/DIRAC
DataManagementSystem/Client/FTSRequest.py
Python
gpl-3.0
37,615
[ "DIRAC" ]
e843930807954063ac2fdfa5b2b7bceb5022b152c0d6fd064a347c9308880560
# # Copyright 2020 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # 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 Founda...
libAtoms/matscipy
examples/fracture_mechanics/sinclair_crack/params.py
Python
lgpl-2.1
2,603
[ "ASE", "CRYSTAL", "Matscipy" ]
7ba32d6a4dde8cc0b53606f5b99616da8d42e404e12e4bd74127b1e64e6b813b
"""A script to test the extraction of a bunch of RHEA2 spectra. The functions within this module should go in the Extractor if they are general. Spectrograph specific functions should go in the RHEA module ******************************************************************************** NOTE: ---- The functions in thi...
mikeireland/pymfe
test_rhea2_extract.py
Python
mit
16,632
[ "Gaussian" ]
1eeb99dc37d8623072b5c0b552eea7bc590f87a56c5feff825160657c06114c9
#!/usr/bin/env python ## Program: VMTK ## Module: $RCSfile: vmtkappend.py,v $ ## Language: Python ## Date: $Date: 2016/07/19 09:49:59 $ ## Version: $Revision: 1.6 $ ## Copyright (c) Jingfeng Jiang, Yu Wang. All rights reserved. ## See LICENCE file for details. ## This software is distribu...
jjiang-mtu/virtual-breast-project
quasi-static_UE/append_geometry/vmtkappend.py
Python
gpl-2.0
1,738
[ "VTK" ]
d967527302d76c3e9fee9f128ebf90250408ffc0b3643d7e924622ae19f16240
# Copyright 2016 CERN. This software is distributed under the # terms of the GNU General Public Licence version 3 (GPL Version 3), # copied verbatim in the file LICENCE.md. # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Or...
blond-admin/BLonD
blond/beam/coasting_beam.py
Python
gpl-3.0
3,685
[ "Gaussian" ]
4cf392cba17a6c405462794cd48e7e9388838500e302a13227de1f3adf699d59
import unittest from rdkit import Chem from rdkit.Chem import rdMolInterchange from rdkit import RDConfig class TestCase(unittest.TestCase): def setUp(self): pass def test1(self): smis = ('c1ccccc1','C[C@H](F)Cl') for smi in smis: m = Chem.MolFromSmiles(smi) csmi = Chem.MolToSmiles(m) ...
bp-kelley/rdkit
Code/GraphMol/MolInterchange/Wrap/testMolInterchange.py
Python
bsd-3-clause
830
[ "RDKit" ]
1fedde59e9e18934fa3f2ca0d08e5d0c47bfdc4a1ca387b655bb74cd6d182f8b
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Brian Coca <brian.coca+dev@gmail.com> # # This file is part of Ansible # # Ansible 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...
kbrebanov/ansible-modules-extras
system/getent.py
Python
gpl-3.0
4,333
[ "Brian" ]
2c6dc2b5cff8b509b64aaab8e14c4d159413066cf3ebc2567041089115898869
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) import os from os import path as op import sys from struct import pack from glob import glob import numpy as...
matthew-tucker/mne-python
mne/surface.py
Python
bsd-3-clause
39,112
[ "Mayavi" ]
73672a8589a196d14298e390e25b4f0af9756186d774d43b7f314ca74c8ac117
"""Dirac notation for states.""" from __future__ import print_function, division from sympy import (cacheit, conjugate, Expr, Function, integrate, oo, sqrt, Tuple) from sympy.core.compatibility import u from sympy.printing.pretty.stringpict import prettyForm, stringPict from sympy.physics.quantum.q...
beni55/sympy
sympy/physics/quantum/state.py
Python
bsd-3-clause
29,191
[ "DIRAC" ]
b097b598fe3777981baebb72b35bd277158fa3df7defe035440ade4fca4fad42
""" visual_example_fri_vs_clean.py: an example for source separation Copyright (C) 2017 Hanjie Pan 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...
hanjiepan/LEAP
visual_example_fri_vs_clean.py
Python
gpl-3.0
33,224
[ "DIRAC" ]
64010161777925253b1368c778583a37afcf6aa3de6db6cb05cdb7f77ee201ea
#!/usr/bin/env python from FileTransfer import FtpFileTransfer import os import shutil import prody class _main_(): def fetchData(): global wd wd = str(os.getcwd()) print('All Files will go into the celpp folder') cred = (wd + '/credentials.txt') try: #attempts to connect to file requ...
dkoes/celpp
celpp2.py
Python
mit
10,697
[ "RDKit" ]
3f71dc5a5937fe6f2f16d60e38e0eccaa753aca0a854e230f9e876b89f1b7563
# -*- coding: utf-8 -*- ''' Graphics of the finite element model. ''' __author__= "Luis C. Pérez Tato (LCPT) , Ana Ortega (AO_O) " __copyright__= "Copyright 2016, LCPT, AO_O" __license__= "GPL" __version__= "3.0" __email__= "l.pereztato@ciccp.es, ana.ortega@ciccp.es " import sys import vtk from miscUtils import LogMes...
lcpt/xc
python_modules/postprocess/xcVtk/FE_model/vtk_FE_graphic.py
Python
gpl-3.0
16,260
[ "VTK" ]
01a6f15adc4f8ec7a910196eef1bb04ee20cb19b466acc569c2db9f05bfe19b9
from ..structure import * from ..utils import * from neuron.neuralnet import NN class AMCMC_NN(MCMC): def __init__(self, problem, \ verbose_int = 100, N = 1000, T = 10000, record_start = 3000, \ train_int = 100, train_steps = 1000, train_batch_size = 5, \ train_lambda_fn = lambd...
SsnL/amcmc
inference/amcmc_nn.py
Python
mit
9,833
[ "NEURON" ]
b7bf29375d3b88ea0dd59416b9d02d191471e10911da4ff155380a79e71b8970
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/driver/qcdb/interface_gcp.py
Python
lgpl-3.0
11,517
[ "Psi4" ]
6f6c3d18f043a3f84bad87e3861c86ae866bce9aa92b15c2cb22dbd32d9e8edc
# -*- coding: utf-8 -*- # # Copyright © 2018 Mark Wolfman # # This file is part of scimap. # # Scimap 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 ...
m3wolf/scimap
scimap/pawley_refinement.py
Python
gpl-3.0
20,883
[ "Gaussian" ]
48dbaeeea896f38aec9cf3c9a71febae62d14c3a6be7ecd51ac0cd6cbf8ffeca
#!/usr/bin/env python # QAPI texi generator # # This work is licensed under the terms of the GNU LGPL, version 2+. # See the COPYING file in the top-level directory. """This script produces the documentation of a qapi schema in texinfo format""" import re import sys import qapi MSG_FMT = """ @deftypefn {type} {{}} {n...
J-Liu/qemu
scripts/qapi2texi.py
Python
gpl-2.0
8,997
[ "VisIt" ]
6b5fe8d000437b014673d5ddae1f21662e8170b422c1c404173dc2dbfd938129
# # Copyright 2008, 2009 Brian R. D'Urso # # This file is part of Python Instrument Control System, also known as Pythics. # # Pythics 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 t...
LunarLanding/Pythics
pythics/instruments/MettlerToledo_UMX2.py
Python
gpl-3.0
2,803
[ "Brian" ]
0d40ec87d3b6da755bf2ff4edb98eb7934e2dc36707d3ef0f8715c1054a376db
#!/usr/bin/env python ############################################################################### # # phage_genome_plotter.py - Tell me all about a phage and the spacers and snps # ############################################################################### # ...
JoshDaly/scriptShed
phage_genome_plotter.py
Python
gpl-2.0
15,561
[ "BLAST" ]
0e2d648efd472180276493fba61013cda5cdcdce772f93c0efea784e31e816e4
""" ===================================================== Gaussian process classification (GPC) on iris dataset ===================================================== This example illustrates the predicted probability of GPC for an isotropic and anisotropic RBF kernel on a two-dimensional version for the iris-dataset. ...
chenyyx/scikit-learn-doc-zh
examples/zh/gaussian_process/plot_gpc_iris.py
Python
gpl-3.0
2,269
[ "Gaussian" ]
014ca3922405837ede6e1004b9d375c738ab9db519eee937506a116c18ab0bfa
from __future__ import division import numpy as np import pandas as pd import scipy.stats # Basic utilities. def get_teams(data): return data['Visitor'].append(data['Home']).unique() class RatingAlgorithm(object): """Base class for rating algorithm.""" def __init__(self): raise NotImplemented...
young-geng/RatingAnalysis
rating_utils.py
Python
bsd-2-clause
11,360
[ "Gaussian" ]
88f31d4dc04da1653551647fcffa18f16b89868c05a899d6270a6874dcd0d98b
# coding: utf8 # # python-ipfix (c) 2013 Brian Trammell. # # Many thanks to the mPlane consortium (http://www.ict-mplane.eu) for # its material support of this effort. # # 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 t...
britram/python-ipfix
ipfix/__init__.py
Python
lgpl-3.0
2,474
[ "Brian" ]
ded41b355b262b12a522bbe56201657362e08724216819ca69f697e8a34406d5
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
jairideout/scikit-bio
skbio/diversity/alpha/_chao1.py
Python
bsd-3-clause
6,514
[ "scikit-bio" ]
03e37ade9abb7565fdd3fbde08abd2bc1f58ce5586cd0c4cbb82d2dda422891e
# $Id$ # # Copyright (C) 2006 Greg Landrum # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from rdkit.Chem.FeatMaps.FeatMapPoint import FeatMapPoi...
rvianello/rdkit
rdkit/Chem/FeatMaps/FeatMaps.py
Python
bsd-3-clause
7,458
[ "Gaussian", "RDKit" ]
cf7aee37bef2efd778cf5e78d07d6d16cd893f7d414484efe0397b3d9fdf7aa1
# Copyright 2016-2020 The GPflow Contributors. 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 appli...
GPflow/GPflow
gpflow/models/gplvm.py
Python
apache-2.0
11,715
[ "Gaussian" ]
c6c864e680367678680a9f93439796159f105f1e9613806519cdda70619df83e
from __future__ import absolute_import import logging import six from six.moves.urllib.parse import quote_plus from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from sentry import features from sentry.integrations import ( Integration, IntegrationFeatures, Integrati...
ifduyue/sentry
src/sentry/integrations/jira/integration.py
Python
bsd-3-clause
27,403
[ "VisIt" ]
c8f6dae12c561f747aba0334e2aa0a28cedc6ecc467181f5dcbaba2abd349066
import ast from unittest import TestCase from bricklayer.doctor.ast_visitors import * class AstVisitorsTest(TestCase): def test_it_gets_all_user_defined_functions(self): code = """ def my_function(): print 'hello' """ v = UserDefinedFunctionVisitor() v.visit(ast.parse(code)) ...
cbrentharris/bricklayer
bricklayer/tests/doctor/ast_visitors_test.py
Python
mit
937
[ "VisIt" ]
5b17598418d65a4be94bfe7cfb5dfb6c5f08f68a14b80bfa5b9957727cc067df
import sys import os import numpy as np import h5py import multiprocessing import cPickle import matplotlib.pyplot as plt from scipy.stats import sigmaclip from sklearn.gaussian_process import GaussianProcess fMapper = { "apcp_sfc" : "Total_precipitation", "dlwrf_sfc" : "Downward_Long-Wave_Rad_Flux", "dswr...
acbecker/solar
gp.py
Python
mit
9,681
[ "Gaussian" ]
1301879089545430c6af5b4aca566aa5eaee360f17fd5cf99458416f88e121de
from __future__ import division, absolute_import, print_function import collections import operator import re import sys import warnings import numpy as np import numpy.core.numeric as _nx from numpy.core import linspace, atleast_1d, atleast_2d, transpose from numpy.core.numeric import ( ones, zeros, arange, conc...
jjas0nn/solvem
tensorflow/lib/python2.7/site-packages/numpy/lib/function_base.py
Python
mit
164,441
[ "Gaussian" ]
0dcbef02b97859221bc84731787336035d00d54ced2ff0eae30b6568eeea77ea
# Copyright (c) 2013-2015 Siphon Contributors. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Test the parsing of the NCSS dataset.xml.""" import logging import xml.etree.ElementTree as ET # noqa:N814 from siphon.http_util import session_manager from siphon.ncss...
Unidata/siphon
tests/test_ncss_dataset.py
Python
bsd-3-clause
24,738
[ "NetCDF" ]
420b730bd4649873e5c2ff699490ddedbe9312597e990aa9db9eedbd0492d01e
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
hryamzik/ansible
lib/ansible/modules/packaging/os/dpkg_selections.py
Python
gpl-3.0
2,155
[ "Brian" ]
ad719487eb59c45f64e0efbfbf80e5ef7bc8ff87e7f848b45aa676f32d509910
import asyncio import discord import re import os import random import string import json import time import html import codecs from random import shuffle from discord.ext import commands class CardsAgainstHumanity: # Init with the bot reference, and a reference to the deck file def __init__(self, bot, fil...
jonyroda97/redbot-amigosprovaveis
cogs/cah.py
Python
gpl-3.0
73,657
[ "VisIt" ]
fea94ca1238aac23235c2f05022be2250c60146ab63d064bdda1e5b1df333ffd
#!/usr/bin/env python import vtk, os from pymicro.crystal.lattice import Lattice from pymicro.view.scene3d import Scene3D from pymicro.view.vtk_utils import lattice_grid, lattice_3d, lattice_3d_with_planes, axes_actor, \ apply_translation_to_actor ''' Create a 3d scene with all the crystal lattice types. Each latt...
heprom/pymicro
examples/3d_visualisation/crystal_lattice_3d.py
Python
mit
2,147
[ "CRYSTAL", "VTK" ]
0568d9572a5ab180a67f5782cbd1ce327bdf5252697c754d3b38aed7b5473db5
#! /usr/bin/env python # Expect peculiar motion to be 0 in all three vectors if maser is rotating at the same # velocity as the galaxy. from scipy import * from ephem import * from pylab import * import sys import re from functions import * from spec2gpec_inp import * def buff(charOfInterest,spaceCount): # Buffer ...
ekadhanda/bin
inputs/spect.py
Python
mit
4,304
[ "Galaxy" ]
8e8aabefbb394417883b78af9e5dcc4166993290b97cafd05a905dfda9cc4ca3
import unittest from os import path from os import environ from shyft import shyftdata_dir from shyft import api from shyft.repository.netcdf.opendap_data_repository import GFSDataRepository class GFSDataRepositoryTestCase(unittest.TestCase): @property def start_date(self): utc = api.Calendar() ...
felixmatt/shyft
shyft/tests/test_opendap_repository.py
Python
lgpl-3.0
5,259
[ "NetCDF" ]
ea5aac7694fd8857f03f5752d12f7d30c09c8c4ad89b2c8a8c1bea37ffe0e897
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ---------------------...
Jorge-C/bipy
skbio/util/__init__.py
Python
bsd-3-clause
432
[ "scikit-bio" ]
d638587101e16ca7f4e86dcc27198ce452f18473268992d62c76af7a0d3c00e1
################################################################ #NB: FOR FIREFOX USERS ONLY #Little script that reads your browsing history and returns your #20 most visited domains. Produces a urls.txt file for the #domain of your choice, which can be fed to indexPages.py ############################################...
MohamedAshiqrh/PeARS
local/mkURLFile.py
Python
mit
2,777
[ "VisIt" ]
e1643014dae7f7061bc169ee435b10eddaee25bb442a3f448736b39fed7a17be
""" Woopra template tags and filters. """ import json import re from django.conf import settings from django.template import Library, Node, TemplateSyntaxError from analytical.utils import ( disable_html, get_identity, get_required_setting, get_user_from_context, get_user_is_authenticated, is...
jcassee/django-analytical
analytical/templatetags/woopra.py
Python
mit
3,250
[ "VisIt" ]
21c753a638032f751a5b122c1c74cd43641e19a0c354ed41bef01b5967869e0e
from __future__ import unicode_literals, print_function import os import ansible from distutils.version import LooseVersion message = """ To ensure Ansible can use the NAPALM modules you will have to add the following configurtion to your Ansible configuration file (ansible.cfg): [defaults] library = {path}/m...
napalm-automation/napalm-ansible
napalm_ansible/__init__.py
Python
apache-2.0
792
[ "VisIt" ]
41e9782ebe60b97daeff476dcca18ec937114bd5367bf0a6c3fcdc7649e9bf53
""" Test LMS Notes """ from unittest import skip import random from uuid import uuid4 from datetime import datetime from nose.plugins.attrib import attr from common.test.acceptance.tests.helpers import UniqueCourseTest, EventsTestMixin from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc ...
romain-li/edx-platform
common/test/acceptance/tests/lms/test_lms_edxnotes.py
Python
agpl-3.0
59,945
[ "VisIt" ]
407abc406f3d6fa969966a791a409fa80844914f1b6f411582b74d2662a9640d
# -*-python-*- # # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved. # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # distribution or at http://viewvc.org/license-1.html. # # For more information, visit h...
foresthz/fusion5.1
www/scm/viewvc/lib/vclib/svn_ra/__init__.py
Python
gpl-2.0
14,887
[ "VisIt" ]
91b881887207b9d5bc91f27d18262a7cc22f82ab88c068bd0dd9b9dc3128b202
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
kain88-de/mdanalysis
package/MDAnalysis/analysis/encore/utils.py
Python
gpl-2.0
12,123
[ "MDAnalysis" ]
bdc78a280eb0398ba0efda4da7d2c8cd98518492378c9601f27c6c02fd565e0a
../../../../../../../share/pyshared/orca/scripts/apps/soffice/speech_generator.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/soffice/speech_generator.py
Python
gpl-3.0
81
[ "ORCA" ]
7b158d9fa62cfdefd0e00ea32a986a894adb6095e16e9cf3c86cd0d5e0118b5d
# -*- coding: utf-8 -*- import os from setuptools import setup from setuptools import find_packages with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir...
botswana-harvard/edc-visit-schedule
setup.py
Python
gpl-2.0
1,173
[ "VisIt" ]
1a164c545e9fa0778969c11852de0e0bc7ac0afaccfebfbba6b83546218db6ef
"""Initial configuration setup. Index ----- .. currentmodule:: nanoqm.workflows.initialization .. autosummary:: initialize split_trajectory API --- .. autofunction:: initialize .. autofunction:: split_trajectory """ __all__ = ['initialize', 'read_swaps', 'split_trajectory'] import fnmatch import getpass impo...
SCM-NV/qmworks-namd
nanoqm/workflows/initialization.py
Python
mit
7,433
[ "CP2K" ]
1dafddde70451d5e11097907e3c5130dbbf371ae7157993ffa5133ebd8e89cc9
# This module defines a SeleniumTest class that is used here and in # the discussion app to run Selenium and Chrome-based functional/integration # testing. # # Selenium requires that 'chromedriver' be on the system PATH. The # Ubuntu package chromium-chromedriver installs Chromium and # chromedriver. But if you also ha...
GovReady/govready-q
siteapp/tests.py
Python
gpl-3.0
74,496
[ "VisIt" ]
940f51f7a4fd2fe249253c2171143b49edc9726fb520c235686d330fc6b8ef8c
import gzip import os import pysam from TestUtils import TABIX_DATADIR FN_COMPRESSED = "example.bed.gz" FN_UNCOMPRESSED = "example.bed" FN_LARGE_COMPRESSED = "example_large.bed.gz" FN_LARGE_UNCOMPRESSED = "example_large.bed" def read_python_compressed(fn): '''iterate through with python.''' with gzip.open(f...
kyleabeauchamp/pysam
tests/tabix_bench.py
Python
mit
5,235
[ "pysam" ]
887ae1f0911572cdac8951e968dc3f6c8b8143a7b31ae85949afbdf1d0e116f2
# coding: utf-8 from __future__ import division, unicode_literals """ This module defines PDEntry, which wraps information (composition and energy) necessary to create phase diagrams. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2011, The Materials Project" __version__ = "1.0" __maintainer__ = "Shyu...
Dioptas/pymatgen
pymatgen/phasediagram/entries.py
Python
mit
9,392
[ "pymatgen" ]
65c3297f6d75bae0ffd59a766ce226f8a1db586028dd15b6fa6cd6ffb88fd3dd
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import torch from torch.distributions import constraints import pyro import pyro.distributions as dist from pyro.contrib.gp.likelihoods.likelihood import Likelihood from pyro.nn.module import PyroParam class Gaussian(Likelihood)...
uber/pyro
pyro/contrib/gp/likelihoods/gaussian.py
Python
apache-2.0
1,677
[ "Gaussian" ]
66eb8ec52ea62dc4eff6d8e7cc13eb11a65b6f7492966c52771153315ef1a4a6
#! /usr/bin/env python # # @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 file is part of Psi4. # # Psi4 is free software; you can redistr...
jH0ward/psi4
psi4/versioner.py
Python
lgpl-3.0
14,383
[ "Psi4" ]
16fc50c838dfa88dbd377da4e2fbfb0e54b10879b65fe3269bad52aabf33be7b
# pmx Copyright Notice # ============================ # # The pmx source code is copyrighted, but you can freely use and # copy it as long as you don't change or remove any of the copyright # notices. # # ---------------------------------------------------------------------- # pmx is Copyright (C) 2006-2013 by Daniel ...
dseeliger/pmx
pmx/__init__.py
Python
lgpl-3.0
2,080
[ "Gromacs" ]
2b879f635feafcfb73cfe92037d54be29d11a85b8319b30c4a13b33b83250218
import numpy as np from PIL import ImageGrab import cv2 import time from directScanKeys import ReleaseKey, PressKey, W, A, S, D import pyautogui from numpy import ones,vstack from numpy.linalg import lstsq from numpy import polyfit from statistics import mean from matplotlib import pyplot as plt from getKeys...
adityagm/Self-Driving-Try
sd_1_version_2_backup_v2.py
Python
gpl-3.0
6,736
[ "Gaussian" ]
c9606a0454d2dd36d93fc83bd76f2ea63099005eb61918b324148126c3b0e5e1
"""Livestreamer extracts streams from various services. The main compontent of Livestreamer is a command-line utility that launches the streams in a video player. An API is also provided that allows direct access to stream data. Full documentation is available at http://livestreamer.tanuki.se/. """ __title__ = "l...
guymakam/Kodi-Israel
plugin.video.israelive/resources/lib/livestreamer/__init__.py
Python
gpl-2.0
1,258
[ "Brian" ]
392ba3089936f80f8733417518caa50589ef0131f701f972dd2f5d22e03b6c99
from __main__ import vtk, qt, ctk, slicer import string import collections import FeatureWidgetHelperLib class CheckableTabsWidget(qt.QTabWidget): """ Class that contains all the tabs correspondign to the main categories """ def __init__(self, parent=None): super(CheckableTabsWidget, self).__init_...
acil-bwh/SlicerCIP
Scripted/CIP_LesionModel/FeatureWidgetHelperLib/FeatureWidgets.py
Python
bsd-3-clause
6,811
[ "VTK" ]
263a6494404613bbb1eff1dae2396b210c28c982cdf0c7bfa7005c1bdc2c955c
# -*- coding: utf-8 -*- u""" .. module:: fabfile Be aware, that becaus fabric doesn't support py3k You need to execute this particular script using Python 2. """ import contextlib from fabric.api import cd from fabric.api import env from fabric.api import prefix from fabric.api import run env.user = 'root' env.host...
magul/empatia
fabfile.py
Python
mit
679
[ "GULP" ]
3da9773ce12d473670e506b8b042e0ebebfee1d4e7965236a3fd1b95a5a68245
# (c) 2017, Brian Coca <bcoca@ansible.com> # # Ansible 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. # # Ansible is distributed in th...
romain-dartigues/ansible
lib/ansible/cli/inventory.py
Python
gpl-3.0
16,727
[ "Brian" ]
d7f5e74bc28571ad356bc274ddb502fd3d7df8118635461d09d0ccae8ca8fcbe
# coding=utf-8 # Copyright © 2016 Computational Molecular Biology Group, # Freie Universität Berlin (GER) # # This file is part of ReaDDy. # # ReaDDy 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 Softwar...
chrisfroe/readdy
wrappers/python/src/python/readdy/api/trajectory.py
Python
lgpl-3.0
20,523
[ "VMD" ]
ff4b76912affbacee0a92cebf863c644e34f35409b1cad16f61b17bf6a2bec4b
# -*- coding: utf-8 -*- """ File related views, including view_file, view_history_file, view_trash_file, view_snapshot_file, view_shared_file, file_edit, etc. """ import os import hashlib import json import stat import urllib2 import chardet import logging import posixpath import re import mimetypes import urlparse im...
madflow/seahub
seahub/views/file.py
Python
apache-2.0
57,593
[ "VisIt" ]
cc9d5fc1af94bb81a513c1bc39a9156fdac95bc864911720207bbf5c19538169
''' Verbose broken (piecewise continuous) random field generation. Note: When FWHM gets large (2FWHM>nNodes), the data should be padded prior to filtering. Use **rft1d.random.randn1d** for optional padding. ''' import numpy as np from scipy.ndimage import gaussian_filter1d from matplotlib import pyplot #(0) Se...
0todd0000/spm1d
spm1d/rft1d/examples/random_fields_broken_0.py
Python
gpl-3.0
1,728
[ "Gaussian" ]
53c0811474456fc1464c778f2a0b418b6c80f29ac5b9a439242d43bdd44dbd5a
#!/usr/bin/env python3 import sys import multiprocessing from pathlib import Path import jinja2 import pypandoc import pytoml as toml from common import validate_toml if (sys.version_info.major, sys.version_info.minor) < (3, 6): raise Exception("need Python 3.6 or later") THIS_FILE = Path(__file__).resolve() R...
burnsauce/teletype
utils/cheatsheet.py
Python
gpl-2.0
3,687
[ "ORCA" ]
cf98f52964463aa8675993242e76601a01d4741307b8080530ee9431c06db1ee
# -*- coding: utf-8 -*- import ast import logging import os.path import re import traceback from collections import OrderedDict, Sized, Mapping from functools import reduce from itertools import tee, count from textwrap import dedent import itertools from lxml import etree, html from psycopg2.extensions import Transa...
t3dev/odoo
odoo/addons/base/models/qweb.py
Python
gpl-3.0
70,160
[ "VisIt" ]
f32ac6348a16fdcbd9361c41042d83a7685f994550b1fc76542222def8272b2e
from pathlib import Path from vulture import Vulture, noqa from vulture.utils import VultureInputException from .base import PythonTool, Issue, ParseIssue, AccessIssue from ..util import parse_python_file class VultureIssue(Issue): tool = 'vulture' pylint_type = 'R' class TidyPyVulture(Vulture): ISSU...
jayclassless/tidypy
src/tidypy/tools/vulture.py
Python
mit
4,190
[ "VisIt" ]
3abfe1b6eec45ff872ec4d1678d43038836ee997c15253e464e9add472a8cc61
""" Created on 3/05/2013 @author: thom """ import unittest from rdkit.Chem import AllChem as Chem from chemistry_model.reaction import Reaction class Test(unittest.TestCase): def testInit(self): result = Reaction(Chem.MolFromSmiles('O=C=O'), 40) self.assertEqual(40, result.get_energy_delta()) ...
th0mmeke/toyworld
tests/test_reaction.py
Python
gpl-3.0
368
[ "RDKit" ]
5b77819ce91b7481ea54eb737fdd93bc1f24b7635638a97fe8907bfdf92f23fe
#!/usr/bin/env python # # Copyright (C) 2014 Brian Caswell <bmc@lungetech.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 Software without restriction, including without limitation # the rights...
f0rki/cb-multios
tools/generate-polls/examples/ftplite/ftplite.py
Python
mit
4,897
[ "Brian" ]
d48ce6c7007f1dc3b5128be09799235891435c1748685f2cb11364f971e7ed15
''' Created on 23/11/2009 @author: Brian Thorne ''' import logging from scipysim.actors import Siso, Channel, Event, LastEvent class Proportional(Siso): ''' This actor takes a source and multiplies it by some gain P. ''' def __init__(self, input, out, gain=2.0): """ Constructor for a...
hardbyte/scipy-sim
scipysim/actors/math/proportional.py
Python
gpl-3.0
1,782
[ "Brian" ]
4c86bf2442a9fb3417a880827aa6e493e1e8791b55881007a1835cf0057b0a69
#!/usr/bin/python ## -*- coding: utf-8 -*- ## ## (C) 2008, 2013 Muthiah Annamalai ## Licensed under GPL Version 3 ## ## This module contains AST visitor for the Ezhil language. ## It is used by profiling insertion, semantic checks among ## others from .ezhil_scanner import EzhilLex, EzhilToken #from .Interpreter Ezh...
arcturusannamalai/Ezhil-Lang
ezhil/transform.py
Python
gpl-3.0
9,120
[ "VisIt" ]
4692ed80a1ee2e10728967d89d42f0f5c2204229f24759be60732d03286497f4
#!/usr/bin/env python3 """ This script is a python version of TimingAccuracyGLQ. We use numpy functions to simplify the creation of random coefficients. """ import time import numpy as np from pyshtools import expand from pyshtools import spectralanalysis # ==== MAIN FUNCTION ==== def main(): TimingAccuracyGLQ()...
MarkWieczorek/SHTOOLS
examples/python/TimingAccuracy/TimingAccuracyGLQ.py
Python
bsd-3-clause
2,854
[ "Gaussian" ]
15aaebd9bc58019ab51a72cf911a472d7a99935bad56bccd46af82f91272147d
# -*- coding: utf-8 -*- # Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2013 Phil Schaf <flying-sheep@web.de> # Copyright (c) 2014-2018 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014-2015 Google, Inc. # Copyright (c) 2014 Alexander Presnyakov <flagist0@g...
ekwoodrich/python-dvrip
env/lib/python3.5/site-packages/astroid/builder.py
Python
mit
16,023
[ "VisIt" ]
d30ac2e3e6aeb14fe710492023c2c94ecacd14dfd709b3a4aa81b60ec282b24b
# -*- coding: utf-8 -*- # # test_step_rate_generator.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 th...
hakonsbm/nest-simulator
pynest/nest/tests/test_step_rate_generator.py
Python
gpl-2.0
2,863
[ "NEURON" ]
ae407f9e7b769a8743470f228969d3df60f6fab4f346191c7fc09386d71b1a04
# Copyright 2014 Google Inc. # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any later # version. # # This program is distributed in the hope...
JetChars/vim
vim/bundle/python-mode/pymode/libs/pylint/checkers/python3.py
Python
apache-2.0
25,096
[ "VisIt" ]
2ff32879ed0e8d2ee5488d7a45e551a6cdd41b7b081498764a64613760062d17
# Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
PAIR-code/interpretability
text-dream/python/dream/reconstruct_activation.py
Python
apache-2.0
10,106
[ "NEURON" ]
f1428f5c886787a9959917f8faca73e801f266766c3787de106cf064c56edc7b
#!/usr/bin/env python3 """ refguide_check.py [OPTIONS] [-- ARGS] - Check for a NumPy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. - Check docstring examples - Check example blocks in RST files Example of usage:: $ python refguide_check.py optimize...
endolith/numpy
tools/refguide_check.py
Python
bsd-3-clause
37,851
[ "Gaussian" ]
02c87bee38060a258262bc7d7efe9a43f487354ab790ca34490820512e2743c0
# # @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 ...
andysim/psi4
psi4/driver/p4util/numpy_helper.py
Python
gpl-2.0
16,894
[ "Psi4" ]
c3b37d6a5e3fbfe62a51d2293a0b8d85c1e4601af0d4e987c7795dd1719bbc12
from hashkernel.bakery import Cake, CakeRole from hashstore.bakery.lite.node import ( User, Permission, UserType, Portal, PortalHistory, VolatileTree) from sqlalchemy import or_, and_ def find_normal_user(glue_sess, user_or_email): if isinstance(user_or_email, str) and '@' in user_or_email: conditio...
walnutgeek/hashstore
hashstore/bakery/lite/dal.py
Python
apache-2.0
2,766
[ "NEURON" ]
635ca39c1b37c3370a041cff6bbd4ab8055df73cfd9587ce9c17a465b29e03da
# selectedPoints.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # from module_kits.misc_kit.mixins import SubjectMixin from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin import operator import vtk import wx # ------------------------------------------------------------------------- c...
nagyistoce/devide
modules/viewers/slice3dVWRmodules/selectedPoints.py
Python
bsd-3-clause
19,169
[ "VTK" ]
764c52d2002b497dc654f6266cf9d8630160f2a5a8aa0f1b728d905b45ad8f27
#!/usr/bin/env python ''' Fly Copter in SITL AP_FLAKE8_CLEAN ''' from __future__ import print_function import copy import math import os import shutil import time import numpy from pymavlink import mavutil from pymavlink import mavextra from pymavlink import rotmat from pysim import util from pysim import vehiclei...
collmot/ardupilot
Tools/autotest/arducopter.py
Python
gpl-3.0
320,933
[ "Gaussian" ]
f7173f67ba6360e2163a5162ad56c7694330ce6048a71b8d954b94f644e3d4ef
# -*- coding: utf-8 -*- ## ## This file is part of Invenio. ## Copyright (C) 2013, 2014 CERN. ## ## Invenio is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your opt...
lnielsen/invenio
invenio/modules/deposit/models.py
Python
gpl-2.0
46,747
[ "VisIt" ]
90b16ad0be051bb0f34a3bc2e40277187142b5580e2228b86ac90a882dba9e36
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import import warnings from scipy.special import comb from scipy.misc.doccer import inherit_docstring_from from scipy import special from scipy import optim...
raoulbq/scipy
scipy/stats/_continuous_distns.py
Python
bsd-3-clause
118,838
[ "Gaussian" ]
7a31f7e8044e14b64c2d4cbd94d203df9be8258e57115c16f19462fcac52b38c
# Import of the relevant tools import time import numpy as np import theano import theano.tensor as T from theano import pp, config from numpy.fft import fftn, ifftn, fftshift, ifftshift, fftfreq from .theano_hamiltoniancarrier import TheanoHamiltonianCarrier from .images_manifold import ImagesManifold ...
jeanfeydy/lddmm-ot
LDDMM_Python/lddmm_python/modules/manifolds/images_carrier.py
Python
mit
5,721
[ "DIRAC", "Gaussian" ]
eb02ab83021a68d20cb874fc716c35632928660a791ac258f9957e0cecf8a9a8
# Multi-armed bandit problem for a linear Gaussian model # with linear reward function. # In this demo, we consider three arms: # 1. The first arm is an upward-trending arm with initial negative bias # 2. The second arm is a downward-trending arm with initial positive bias # 3. The third arm is a stationary arm with in...
probml/pyprobml
scripts/thompson_sampling_linear_gaussian.py
Python
mit
6,762
[ "Gaussian" ]
020f4823ead380c9c7a56277a7a0172790d2abd2f72a35dfb0b19f965eeb4c91
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap 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....
brianmay/python-tldap-debian
tldap/schemas/ds389.py
Python
gpl-3.0
1,387
[ "Brian" ]
3429d5998cae0c080a788fae98a58471bab34cd8892bcdbe364b4a15fefed09a
#!/usr/bin/env python # encoding: utf-8 import os import sys import time import pprint import pytest import signal import threading import Queue import traceback from urlparse import urlsplit, parse_qsl, urlunsplit, urljoin from urllib import urlencode from bs4 import BeautifulSoup from testlib import web, var_dir c...
ypid-bot/check_mk
tests/web/test_crawl.py
Python
gpl-2.0
11,497
[ "VisIt" ]
aaad9ff87a5c8c3d6a362a2fdc79e1be8ec24bac68cb311e7925c81f6f5b1937
# ws30 -- the thirty minute web server # author: Wilhelm Fitzpatrick (rafial@well.com) # date: August 3rd, 2002 # version: 1.0 # # Written after attending a Dave Thomas talk at PNSS and hearing about # his "write a web server in Ruby in one hour" challenge. # # Actual time spent: # 30 minutes reading socket man page # ...
unice2345/uw_python
week04/thirty_minute_webserver.py
Python
gpl-3.0
2,907
[ "Brian" ]
2dbdb8fdcb713b21c07c1e35724b54ace0c9390799634c189f733ef9c727bc4c
## Automatically adapted for numpy.oldnumeric Jun 27, 2008 by -c # # Copyright (C) 2001-2008 greg Landrum # """ unit testing code for the Stats module """ import unittest,sys from rdkit import RDConfig from rdkit.ML.Data import Stats import numpy FLOAT_TOL = 1e-4 def feq(x,y,tol=FLOAT_TOL): return abs(x-y)<tol ...
rdkit/rdkit-orig
rdkit/ML/Data/UnitTestStats.py
Python
bsd-3-clause
5,294
[ "RDKit" ]
34d539072cbfcdbc661f277a89af33936993f3141907950bbb5ce4a2a4258dda
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/modeltree.py
Python
gpl-2.0
3,686
[ "VisIt" ]
bda87cc7b426f50c7fd0f89fe25eae1a8afc3dfc139bf84ccff057c53559996c
import sys import csv from collections import defaultdict def loadData(csvfile): listRawData = list() if csvfile == '-': fh = sys.stdin else: fh = open(csvfile, 'r') try: csvreader = csv.reader(fh, delimiter=',') for nRow, row in enumerate(csvreader): if nR...
steffens21/diesunddas
soccer_stats_calc/soccer_betting_eval.py
Python
mit
7,507
[ "BWA" ]
97d01a737effc36816b6f1c7ff11ae76d2dcaed27c3dced1152eafc1ebef6169
# # @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/p4util/python_helpers.py
Python
gpl-2.0
5,000
[ "Psi4" ]
e7d30225e597564441d500774054f57ceed3ba0daa383059595ca917a4ff44a5
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model # # Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada, # Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez, # Stefanie ...
UU-Hydro/PCR-GLOBWB_model
modflow/scripts/deterministic_runner_glue_with_parallel_and_modflow_options.py
Python
gpl-3.0
25,522
[ "NetCDF" ]
275f8a9fa793c9c3d31731e193a00aa4bc79ae5238eb9c889ba69de84f8f53c8
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest class PWInputTest(PymatgenTest): def test_init(self): s = se...
gmatteo/pymatgen
pymatgen/io/tests/test_pwscf.py
Python
mit
1,988
[ "CRYSTAL", "pymatgen" ]
bb3978273ecc6281cbb2b44a45d5415d1ad83c8dfafe5bfd3b4b3f1c2c937327
""" ========================================== Outlier detection with several methods. ========================================== When the amount of contamination is known, this example illustrates three different ways of performing :ref:`outlier_detection`: - based on a robust estimator of covariance, which is assum...
RPGOne/Skynet
scikit-learn-0.18.1/examples/covariance/plot_outlier_detection.py
Python
bsd-3-clause
4,318
[ "Gaussian" ]
1e8b9d0781705fc4c1fcd6675f0fed66cfae6348b90faad72e30b3afe2e1cff5
from .ahdlvisitor import AHDLVisitor class AHDLVarReplacer(AHDLVisitor): def replace(self, ahdl, old, new): self.old = old self.new = new self.visit(ahdl) def visit_AHDL_VAR(self, ahdl): if ahdl.sig == self.old: ahdl.sig = self.new
ktok07b6/polyphony
polyphony/compiler/ahdlhelper.py
Python
mit
287
[ "VisIt" ]
424f84dae80309f88d7d43719dbc8673f1237e1ddfe56bf910a380efff2897d6
#!/usr/bin/env python import __main__ #__main__.pymol_argv = [ 'pymol', '-qc'] # Quiet and no GUI import sys, time, os from pymol import cmd import pymol if len(sys.argv) < 3: print "Useage: plot_cube.py <pdb_name> <cube_name>" exit() pymol.finish_launching() surface_name = sys.argv[2].split('.')[0] mol_name = sy...
chliu1990/plotMO
plot_cube.py
Python
mit
741
[ "PyMOL" ]
08f8d1c3340c0fc79dea5453049e94f312d636c9bb8f4cad8515d61eacf10066
'''This module contains routines to extract data from the crawler's database to analyze content for Jeff Hardy's project Alpha. The idea is to extract the database content for inclusion in a client-ready report, probably in Excel. I plan to do this by producing a bunch of tab-deliminted files into a directory wi...
pbarton666/buzz_bot
djangoproj/djangoapp/moviemain.py
Python
mit
6,987
[ "VisIt" ]
fa1d9a58012534846f0fb2654dcb99a345aa323131733f60856e0c3f957bf421