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
""" test_Population.py This file is part of ANNarchy. Copyright (C) 2013-2016 Joseph Gussev <joseph.gussev@s2012.tu-chemnitz.de>, Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU Ge...
ANNarchy/ANNarchy
tests/Unittests/test_Population.py
Python
gpl-2.0
39,563
[ "NEURON" ]
7d4ba726d4933182cb5ef557bd086b5c0b057c6e7c8c2b873fc5e07158723511
# # QAPI visitor generator # # Copyright IBM, Corp. 2011 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # Michael Roth <mdroth@linux.vnet.ibm.com> # # This work is licensed under the terms of the GNU GPLv2. # See the COPYING.LIB file in the top-level directory. from ordereddict import OrderedDict from qapi ...
KernelAnalysisPlatform/KlareDbg
tracers/qemu/decaf/scripts/qapi-visit.py
Python
gpl-3.0
6,227
[ "VisIt" ]
7757aad11a0e406d6803296c01e717635d3c7513be5813a3ce4ad68879791b9e
import vtk def main(): colors = vtk.vtkNamedColors() sphereSource = vtk.vtkSphereSource() sphereSource.Update() input_data = vtk.vtkPolyData() input_data.ShallowCopy(sphereSource.GetOutput()) arrowSource = vtk.vtkArrowSource() glyph3D = vtk.vtkGlyph3D() glyph3D.SetSourceConnection(...
lorensen/VTKExamples
src/Python/Visualization/OrientedGlyphs.py
Python
apache-2.0
1,194
[ "VTK" ]
d8797e18355467db95f0b3465d2db8ee0ac562a43bfa9a3b49ed66f15136546e
# encoding: utf-8 # --------------------------------------------------------------------------- # Copyright (C) 2008-2014, IPython Development Team and Enthought, Inc. # Distributed under the terms of the BSD License. See COPYING.rst. # --------------------------------------------------------------------------- """...
RaoUmer/distarray
distarray/localapi/random.py
Python
bsd-3-clause
6,638
[ "Gaussian" ]
768c0cb95eea59b0ee5247f3b0fc8dacdde4c32b215aefbf5c939df7d1086e62
#!/usr/bin/python3 # -*-coding:Utf-8 -* # Copyright (C) 2015 Laurent Modolo # This file is part of TEtools suite for galaxy. # TEtools 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 th...
l-modolo/TEtools
TEcount.py
Python
gpl-3.0
23,494
[ "Bowtie", "Galaxy" ]
38ced2d31acf61e1310b43c6331d3e057fcc7b7dea5e6fc8a33be0ecac72c3e3
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
thempel/adaptivemd
adaptivemd/analysis/pyemma/__init__.py
Python
lgpl-2.1
1,086
[ "MDTraj" ]
27ea405eda7c48306728e465cc993155a63484bc2b1ee85407b04b5d761e5ebe
# Copyright 2016 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...
kobejean/tensorflow
tensorflow/python/ops/distributions/normal.py
Python
apache-2.0
9,290
[ "Gaussian" ]
c48c8af4995472f9908100d4abb6cf565ef6b532e5a1cd55ea85ea008c31cf54
from antlr4 import * from autogen.TestParser import TestParser from autogen.TestVisitor import TestVisitor class TestExtendVisitor(TestVisitor): # Visit a parse tree produced by TestParser#Expressions. def visitExpressions(self, ctx:TestParser.ExpressionsContext): return self.visitChildren(ctx) # Visit a parse...
damorim/compilers-cin
antigo/ap2/TestExtendVisitor.py
Python
mit
1,464
[ "VisIt" ]
c17861d1f2a9d0e79d9a33fa09a3521c10a29144f866a0ea1b58a024170cc49a
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
retrography/scancode-toolkit
tests/cluecode/test_authors.py
Python
apache-2.0
9,422
[ "VisIt" ]
da19ee2cbf351a9f2547e2bad6542c2558845db3e3c7c98e0ada69ab963c36a8
#!/usr/bin/env python """ Generate an ECDSA keypair and Bitcoin-compatible payment address. Requires Brian Warner's excellent python-ecdsa library. http://github.com/aristus/bitcoin-printer """ from ecdsa.ecdsa import Public_key, int_to_string from ecdsa.ellipticcurve import CurveFp, Point from binascii import hexlif...
megcoin/megcoin
genecd.py
Python
mit
2,561
[ "Brian" ]
abe25fcce2d972fe0b8e34dc18b93a1ca63d8830c2972f83f4d5bfbb21d80e29
#!/usr/bin/env python ################################################################################ # # RMC-vasp # # Retriving output data from DFT calculations # # Part of the REMARC set of scripts for retriving output data # from DFT calculations (using VASP). # # Specifically writes the DFT data to a text-file t...
NanoSim/Porto
porto/src/remark-wrapper/resource/RMC_vasp.py
Python
gpl-3.0
2,751
[ "VASP" ]
b4243d4d578e8e7267cf0aac9af3b4e420fe3685abe8d27a4c9f5e4efe8e4973
# -*- coding: utf-8 -*- # # test_parrot_neuron_ps.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 L...
hakonsbm/nest-simulator
pynest/nest/tests/test_parrot_neuron_ps.py
Python
gpl-2.0
10,826
[ "NEURON" ]
484cfd0bafcf05b3707601afb41c1ce371b40b2c1a59e88b98c9348ad7ce4c28
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Sales Pipeline"), "icon": "fa fa-star", "items": [ { "type": "doctype", "name": "Lead", "description": _("Database of potential customers."), "onboard": 1, }, { "type": "...
gsnbng/erpnext
erpnext/config/crm.py
Python
agpl-3.0
5,352
[ "VisIt" ]
fb7ffd895a76a7d0d84169540a0c68b7784ea85dc60dc5bec0d41f201492c74c
from impacket import smbserver, smb import ntpath from threading import RLock import json from quickcrack import try_to_crack_hash """ This script acts as an SMB server and gathers credentials from connecting users. Developed by Brian Wallace @botnet_hutner """ sessions = {} output_file_lock = RLock() def report_...
CaledoniaProject/SMBTrap
smbtrap/smbtrap2.py
Python
mit
8,551
[ "Brian" ]
1340542d92bcfbb4443389a1ba16f02185d0f61a185872506e9ca8c18db38831
#! /usr/bin/env python3 """A helper to keep the jvplot docstrings consistent.""" import argparse import ast import importlib import os import pkgutil import re _parser = argparse.ArgumentParser() _parser.add_argument("-o", "--out", default="out", help="directory to store output in") _args = _pa...
seehuhn/py-jvplot
tools/doc-strings.py
Python
gpl-3.0
16,660
[ "VisIt" ]
27367f3c0bce77169098a27346baf665f486c613b550c7b788115b22c9186177
# -*- coding: utf-8 -*- # TODO: Port to pytest # PEP8 asserts from copy import deepcopy import httplib as http import time import mock import pytest from nose.tools import * # noqa from tests.base import OsfTestCase, fake from osf_tests.factories import ( UserFactory, NodeFactory, ProjectFactory, AuthUserF...
aaxelb/osf.io
addons/wiki/tests/test_wiki.py
Python
apache-2.0
60,482
[ "VisIt" ]
1f4029c9572c7b1095e096cb3b6ecf1894fbe979f33c0cfe8e047ce065ee28cb
''' Created on 14 Aug 2017 @author: Mathias Bucher ''' import unittest from mock import MagicMock from ctr.Controller import Controller from ctr.Log import Log from model.Model import Model from view.View import View from model.ModelEntry import ModelEntry import os from mock import mock_open, patch import copy clas...
maeddlae/keepit
test/TestController.py
Python
mit
15,548
[ "ADF" ]
a5fc9c83283d118eca70768bfa0cc7b6b9328d3b07d7f21e6990735d99cce8f1
""" @name: Modules/Core/Mqtt/mqtt.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2017-2020 by D. Brian Kimmel @note: Created on Apr 25, 2017 @license: MIT License @summary: This is basically the MQTT Api interface that is used by all of pyhouse. """ __updated__ = '202...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Mqtt/mqtt.py
Python
mit
10,509
[ "Brian" ]
d364c489a4f4d745f3a7821f3d715ac262282c6db1822b07c6d6cd52f0dce4d0
# proxy module from __future__ import absolute_import from mayavi.modules.structured_grid_outline import *
enthought/etsproxy
enthought/mayavi/modules/structured_grid_outline.py
Python
bsd-3-clause
107
[ "Mayavi" ]
b93c9c2933c828745f6fc6971fefedb4c5fccc60f5b33a99a987b773cd85fedb
# # CPM modulation and demodulation. # # # Copyright 2005,2006,2007 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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 ve...
trnewman/VT-USRP-daughterboard-drivers_python
gnuradio-core/src/python/gnuradio/blksimpl/cpm.py
Python
gpl-3.0
8,853
[ "Gaussian" ]
1c46b5f6275d46c7f800842b46228a9dcdf603eeb58b0003b685049f39cb75bb
""" Functions to for making PDFs""" import numpy as np import scipy as sp import pandas as pd import sklearn from sklearn.model_selection import GridSearchCV from sklearn.neighbors import KernelDensity rv_amount = 10**6 def make_pdf(distribution, num_of_draws, grid, stepsize): """ Makes PDF of given distribu...
FRBs/DM
frb/dm_kde/pdf_fns.py
Python
bsd-3-clause
2,468
[ "Gaussian" ]
32350038e03a4f8ead20d6b623e7783b5dd29ca3c7587469c0978136819dc606
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ from unittest import skip from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from ...pages.lms.course_info import CourseInfoPage from ...pages.lms.tab_nav import TabNavPage from ...pages.xblock.acid import AcidView from ...
dsajkl/reqiop
common/test/acceptance/tests/lms/test_lms_acid_xblock.py
Python
agpl-3.0
4,532
[ "VisIt" ]
34d139039212361fbf7328172a7de50f4984668b7ab73ab277695ad09862670f
import pdb def readit(filename): data = open(filename, 'r+') line = data.readline() i=1 event_log = {} while line != '': if 'event' in line: line = data.readline() line = data.readline() line = data.readline() line = data.readline() event = [] while (line.find('event') == -1) & (line.find('sum...
haupt235/waldo
readit.py
Python
mit
2,060
[ "VTK" ]
803c625b587c03487dceac6879fadf2a3553337474937ac510ffff7b0b0c78ff
import oauth2 as oauth import urlparse import urllib from error import PyReadsError class OAuthHandler(object): OAUTH_HOST = 'www.goodreads.com' OAUTH_ROOT = '/oauth/' def __init__(self, app_key, app_secret, oauth_token = None, oauth_token_secret = None): self.consumer = oauth.Con...
bvattikonda/pyreads
pyreads/auth.py
Python
mit
3,204
[ "VisIt" ]
1ec40962f2ea9dcac9210cf6840b3ca6a873e79282f1c1c16ad324203dc46aac
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','license','co...
atsusy/tirepeatedbackgroundimage
build.py
Python
mit
5,876
[ "VisIt" ]
f9e70a209bc2102f3ed37701d3a2b291bfe7c6cb638fbb71740f15f8d0097eeb
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- dataset_destination_path = '/Users/seb/Desktop/vtk_cone' # ----------------------------------------------------------------------------- ...
Kitware/tonic-data-generator
scripts/vtk/samples/cone.py
Python
bsd-3-clause
1,667
[ "VTK" ]
2a0dbca419516a72cb07fd4ef436d5458bb89c30b2976913a242ec2f54acbf33
# pylint: disable=arguments-differ """ Models for the shopping cart and assorted purchase types """ from collections import namedtuple from datetime import datetime from datetime import timedelta from decimal import Decimal import json import analytics from io import BytesIO from django.db.models import Q, F import py...
solashirai/edx-platform
lms/djangoapps/shoppingcart/models.py
Python
agpl-3.0
90,378
[ "VisIt" ]
27f51d75d621b851170e70e3b49329f17337b8acef42cc2a8ddcdf4503149c2a
import Bio.PDB.Polypeptide from rosettautil.util import fileutil class pssm_map: def __init__(self,path,mode="score"): """Parse a PSSM file from BLAST into a usable datastructure""" self.pssmmap = {} self.native_sequence = {} pssmfile = fileutil.universal_open(path,'r') pssmfile.readline() pssmfile.r...
decarboxy/py_protein_utils
rosettautil/protein/PSSM.py
Python
mit
1,640
[ "BLAST" ]
4ac07e485035809934c286b9aa0145f5014799af1564fb37b719a4fdc4493175
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Patch the sequences of one assembly using sequences from another assembly. This is tested on merging the medicago WGS assembly with the clone-by-clone assembly. There are a few techniques, used in curating medicago assembly. 1. Split chimeric scaffolds based on genet...
tanghaibao/jcvi
jcvi/assembly/patch.py
Python
bsd-2-clause
27,294
[ "BLAST" ]
53fb22a7f2b80b12e60f203a9ee27ecef714223d4947c578e8be8d203eabc8e2
from skimage import data, filters, feature from skimage.morphology import disk import matplotlib.pyplot as plt def ex_1(): # sobel,roberts,scharr,prewitt,canny operator img = data.camera() edges = filters.sobel(img) edges1 = filters.roberts(img) edges2 = filters.scharr(img) edges3 = filters.prew...
Esmidth/DIP
practice/10.py
Python
apache-2.0
3,117
[ "Gaussian" ]
2df0b2809a00982c54bb8e80f9b8fcfbb559b80b194e89a940c4ef675df20707
# -*- coding: utf-8 -*- # # This file is part of INSPIRE. # Copyright (C) 2014-2017 CERN. # # INSPIRE 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 ...
jacquerie/inspire-dojson
tests/test_hep_bd1xx.py
Python
gpl-3.0
51,760
[ "Brian" ]
5a327e94cde5d27e58ffb929280bec36092da3e8d972b30b3e82bc6a73c9df94
''' Reads one of David Tack's pre-processed FCXCLEAN.txt files and makes a fasta out of it so that it can be used by bwa Usage: %% python format_sequence_reads.py <FCFile.txt> <output.fasta> ''' import sys input_handle = open(sys.argv[1], 'r') output_handle = open(sys.argv[2], 'w') first_line = True for cur_line i...
DworkinLab/ChandlerChariTackDworkin2014
expression_scripts/dge/format_sequence_reads.py
Python
mit
639
[ "BWA" ]
cb7ad29563626d5a5ab95be091e49ba4e28589400237b8519d9492d49d40081f
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> from __future__ import division import numpy as np from functools import partial from scipy.stats import linregress import matplotlib.pyplot as plt from matplotlib import dates import pandas as pd import gspread from StringIO import StringIO import csv i...
JudoWill/ResearchNotebooks
SmokingAnalysis.py
Python
mit
2,782
[ "VisIt" ]
d942fa64d3c9d98ca41467d0220f5713d262a171fe01a681dceefb9204beff7a
""" 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...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/scipy/io/netcdf.py
Python
gpl-3.0
39,509
[ "NetCDF" ]
2c39ad0ef31c9ae38ccdf63cabd9340122d2666b6158d48b3e1c39cf0923c589
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from ajax_select import urls as ajax_select_urls urlpatte...
jomauricio/abgthe
config/urls.py
Python
bsd-3-clause
1,607
[ "VisIt" ]
7a3614bb75f7bff3206ec13544ea985a2f49248b1dd2843cd9313107f61ba812
from __future__ import print_function from pymatch import * import pymatch.functions as uf class Matcher: """ Matcher Class -- Match data for an observational study. Parameters ---------- test : pd.DataFrame Data representing the test group control : (pd.DataFrame) Data represe...
benmiroglio/pymatch
build/lib/pymatch/Matcher.py
Python
mit
21,931
[ "xTB" ]
47c1b4584a8dee172c79f35a5051f566977225225837451bead4aae47c4b99e2
""" System time configuration ========================= This is a collection of parsers that all deal with the system's configuration of its time setting resources. """ import re from .. import Parser, parser, get_active_lines, CommandParser from insights.specs import Specs class NTPConfParser(Parser): """ ...
RedHatInsights/insights-core
insights/parsers/system_time.py
Python
apache-2.0
10,809
[ "TINKER" ]
609b740551457b7b110a9c43e765c908fc3f8f74fe218eec659f755c41303f95
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 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 #...
CDSherrill/psi4
psi4/driver/p4util/fcidump.py
Python
lgpl-3.0
17,523
[ "Psi4" ]
ce8169401f55f82b97b4a1d3b9daf17d02b2609ab7da736740399cbe01c17789
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' :py:mod:`Namaste.py` - Single transit fitting code ------------------------------------- ''' import autograd.numpy as np2 import matplotlib #matplotlib.use('Agg') import pylab as plt plt.ioff() import scipy.optimize as optimize from os import sys, path import datetime i...
hposborn/Namaste
namaste/namaste.py
Python
mit
85,233
[ "Gaussian" ]
837ea23f0f5bfdff6097030ee09c862661a611d3b37c35b35b05d157f30af692
from __future__ import print_function, absolute_import, division from mdtraj.utils.six.moves import xrange import numpy as np from numpy import dot import logging logger = logging.getLogger(__name__) def construct_right_eigenvectors(left_eigenvectors, populations, num_macrostates): """Calculate normalized right...
msmbuilder/msmbuilder-legacy
MSMBuilder/lumping/utils.py
Python
gpl-2.0
3,104
[ "MDTraj" ]
b0e88cdd2a0bff9ebb80356bb4dcce4083f7fa10bcdba44793e28eab177d4e88
# -*- coding: utf-8 -*- """ LiveSource tests. """ from mock import MagicMock, patch import unittest from livesource import LiveSource class LiveSourceTestCase(unittest.TestCase): @patch('livesource.livesource.LSTree', MagicMock()) def setUp(self): self.source = LiveSource('test_code') self.s...
macie/livesource
livesource/tests/unit/test_LiveSource.py
Python
mit
1,430
[ "VisIt" ]
5ecae44e2d3792fde369d60dcbdb265c71e8196185d7844266d4d01ef4f4bfb8
import yaml from twisted.internet.defer import inlineCallbacks, Deferred from juju.environment.tests.test_config import ( EnvironmentsConfigTestBase, SAMPLE_ENV) from juju.machine.tests.test_constraints import dummy_cs from juju.state.errors import EnvironmentStateNotFound from juju.state.environment import ( ...
anbangr/trusted-juju
juju/state/tests/test_environment.py
Python
agpl-3.0
9,145
[ "MOOSE" ]
ec9bc2316d888bafd34e00b26c4311313cb14ca2c3ede6432e13841bd2a4fa4a
#!/usr/bin/env python """MediaWiki Bot Update script. This script is supposed to accept some commandline details about a project and then use the MediaWiki API to update the RL-Library wiki page.""" __author__ = 'brian@tannerpages.com (Brian Tanner)' import httplib import os.path import optparse import getpass imp...
litlpoet/rl-library
system/common/scripts/wiki_update.py
Python
apache-2.0
3,188
[ "Brian" ]
0d4f72023cb0e2c5797378b37da2aef778c60946aadf7339963aba8bf58a4748
from sympy.polys.polytools import Poly from sympy.polys.agca.extensions import FiniteExtension from sympy.abc import x, t def test_FiniteExtension(): # Gaussian integers A = FiniteExtension(Poly(x**2 + 1, x)) assert A.rank == 2 assert str(A) == 'ZZ[x]/(x**2 + 1)' i = A.generator assert A.basis ...
wxgeo/geophar
wxgeometrie/sympy/polys/agca/tests/test_extensions.py
Python
gpl-2.0
1,161
[ "Gaussian" ]
51382329d084f50723d089b51cef88521c66007ee1c2b32a51671488f9ee0558
#! /usr/bin/env python # # connections.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 ...
gewaltig/cython-neuron
topology/doc/user_manual_scripts/connections.py
Python
gpl-2.0
17,051
[ "Gaussian" ]
a46581421cb3a2714a8bd3c193540e89fc3af16a5c965f32edd88d59ec375be9
# Copyright 2009 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """SeqFeature related tests for SeqRecord objects from Bio.SeqIO. Initially this takes matched t...
updownlife/multipleK
dependencies/biopython-1.65/Tests/test_SeqRecord.py
Python
gpl-2.0
11,103
[ "Biopython" ]
90d1a82e69e08ce516cfb565fdb4b27e1887869f63b3f4806afa6978323b9b2e
""" A generic client for creating transformations """ from __future__ import print_function import types import json from DIRAC import gLogger, gConfig, S_OK, S_ERROR from DIRAC.Core.Utilities.PromptUser import promptUser from DIRAC.Core.Base.API import API from DIRAC.TransformationSystem.Client.TransformationClient ...
petricm/DIRAC
TransformationSystem/Client/Transformation.py
Python
gpl-3.0
25,770
[ "DIRAC" ]
37a3aa2aa47fdd9d830f7fe48cacb94e61a1a477b790f1f9dce83c614123b539
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['architectures', 'name','version','moduleid','descripti...
shota/TitaniumHttpClient
iphone/build.py
Python
mit
8,511
[ "VisIt" ]
e806d2009142cd0ece991754e7763fdf42bcc05dc88cd62b1482e257b4da79c4
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.desired_capabilities import DesiredCapabilities import time user_agent = ( "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Safari/602.1.50'" ) steps = [] ...
ideaworld/FHIR_Tester
FHIR_Tester_backend/h.py
Python
mit
1,225
[ "VisIt" ]
da803c98a0ad8b3246eca87ca179aa578f9485cc7a3dd10ab6a12a218f8f60b3
#!/usr/bin/python # # Copyright 2009 Canonical Ltd. This software is licensed under the # GNU Affero General Public License version 3 (see the file LICENSE). """ FindImports is a script that processes Python module dependencies. Currently it can be used for finding unused imports and graphing module dependencies (wi...
abramhindle/UnnaturalCodeFork
python/testdata/launchpad/utilities/findimports.py
Python
agpl-3.0
12,315
[ "VisIt" ]
b79151cc87d069da0b26631f091a37c6eb5ec13ea9c184ea6bb496bc44b04a7e
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Brian Coca <bcoca@ansible.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 Licen...
dagwieers/ansible-modules-extras
notification/jabber.py
Python
gpl-3.0
4,488
[ "Brian" ]
82a355ec8cb80308ea19eaab4d5f15466b15e4b27dfce1edbe42975f85309d1c
""" Copyright (C) 2014, Jaguar Land Rover This program is licensed under the terms and conditions of the Mozilla Public License, version 2.0. The full text of the Mozilla Public License is at https://www.mozilla.org/MPL/2.0/ Rudolf Streif (rstreif@jaguarlandrover.com) """ from django.conf import settings from dja...
bharmon/rvibackend
web/rvi/urls.py
Python
mpl-2.0
926
[ "Jaguar" ]
d04e992d1f2442e64e5966d4b027f6d989c0f9d5bbfbdda28196ec3f24349985
""" GPS Training GUI The GPS Training GUI is used to interact with the GPS algorithm during training. It contains the below seven functionalities: Action Panel contains buttons for stop, reset, go, fail Action Status Textbox displays action status Algorithm Status Textbox displays algorithm st...
vmayoral/basic_reinforcement_learning
tutorial10/gps/gui/gps_training_gui.py
Python
gpl-3.0
18,871
[ "Gaussian", "VisIt" ]
42130d48846b93e8fe790de56257fca22d12ef07cb8fa8fe8126648071504589
#!/usr/bin/python ## $LicenseInfo:firstyear=2011&license=viewerlgpl$ ## Second Life Viewer Source Code ## Copyright (C) 2011, Linden Research, Inc. ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Softw...
gabeharms/firestorm
indra/lib/python/indra/ipc/siesta_test.py
Python
lgpl-2.1
8,683
[ "SIESTA" ]
b2c3deb6a8d0028973ef8e90dd9f57371bc2dc2828ae5490d470a52e80e64622
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement __author__ = 'Chengwei Luo (luo.chengwei@gatech.edu)' __version__ = '0.1.0' __date__ = '09-03-2013' import numpy as np import sys import os import re import argparse as ap import subprocess as subp import tempfile as tf import matpl...
luo-chengwei/utilitomics
16S/MG16S.py
Python
gpl-3.0
11,594
[ "BLAST" ]
918927e00bfe5099c7e8c4e112c673ec66df4ae8485d31114de851e9b8459ed0
#!/usr/bin/env python ''' To seperate Gaussian log file with with multistep calculation Userage : seperate_log.py logfile1 logfile2 ... Created by Chang Liu @ Apr.29.2015 ''' import sys def seperate_file(filename): try: logfile=open(filename, 'r') inputTemp=logfile.read().splitlines() logfile.close() except: ...
chliu1990/plotMO
tools/seperate_log.py
Python
mit
724
[ "Gaussian" ]
c7cc8837ac944d409165ba15ce3526749e4ac932159e1604a2526f07831126b9
# -*- coding: utf-8 -*- """Converted from the neuron modl file by Zach Mainen 1994. - Subhasis Ray 2014-06-04 Original comment: COMMENT 26 Ago 2002 Modification of original channel to allow variable time step and to correct an initialization error. Done by Michael Hines(michael.hines@yale.e) and Ruggero Scorcion...
dharmasam9/moose-core
tests/python/mus/nachannel.py
Python
gpl-3.0
3,341
[ "MOOSE", "NEURON" ]
e1f30602d835f8bfe2486bfa9d82234c38098e43a3504ff3ea4e2916a098bc9e
# -*- coding: utf-8 -*- """ This file contains the Qudi dummy module for the confocal scanner. Qudi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later v...
tobiasgehring/qudi
hardware/confocal_scanner_dummy.py
Python
gpl-3.0
15,610
[ "Gaussian" ]
6dfe52f21b1d81fbed2f52337f1a7f1205686dc1495ebf8cbd14c2a156277f6e
""" 利用数值优化算法实现的 SVM,在 toysvm.py 中有对应的 SMO 算法实现。 """ import numpy as np import math import scipy.optimize as opt from functools import partial from numba import jit class LinearSVC(object): def __init__(self, C: float = 1.0): """ :param C: float. Penalty parameters. """ self.C = C ...
WiseDoge/plume
plume/svm.py
Python
mit
4,173
[ "Gaussian" ]
45ab123eb8895c3dc0f0d3716adacd1644dd3633a5ec72d5d249232f55fd165a
#!/usr/bin/env python # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the ...
FluidityProject/multifluids
python/fluidity/diagnostics/calc.py
Python
lgpl-2.1
40,490
[ "VTK" ]
236591fff43b06ff46524e97181846bfd4a93c9be816c6795d0e66dd67a1237e
import cgi import logging import os import os.path import re from PIL import Image from lxml import etree from lxml.etree import XMLSyntaxError from collections import namedtuple, defaultdict from zipfile import ZipFile, BadZipfile from docx2html.exceptions import ( ConversionFailed, FileNotDocx, Malforme...
PolicyStat/docx2html
docx2html/core.py
Python
bsd-3-clause
48,167
[ "VisIt" ]
bc9cbad4ed2cb972e797375eb242e64de08d77248ce943d2b58f82b5a753e268
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class implicitToVolume(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) # setup config self._c...
nagyistoce/devide
modules/misc/implicitToVolume.py
Python
bsd-3-clause
3,680
[ "VTK" ]
c4e6ab5fac98f795d6ea794456fbe2776818029b747a1be2a69b278cf70b2ad9
# Copyright 2016 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...
pcm17/tensorflow
tensorflow/contrib/distributions/python/ops/mvn_diag_plus_low_rank.py
Python
apache-2.0
9,697
[ "Gaussian" ]
2b5e9aeb8c1644a39db729cb5df8cb809478c8d64e18b725f70e3bf5106c0bf5
#!/usr/bin/env python # -*- coding: utf-8 -*- ######################################################################## # File : dirac-create-distribution-tarball # Author : Adria Casajus ######################################################################## """ Create tarballs for a given DIRAC release """ impo...
fstagni/DIRAC
Core/scripts/dirac-create-distribution-tarball.py
Python
gpl-3.0
24,020
[ "DIRAC" ]
55b1858010478d5b6017aa2ea4a9c548ee13507847b13fdad6d07947f5ae56c7
""" Courseware views functions """ import logging import urllib import json import cgi from datetime import datetime from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from django.conf import setti...
eestay/edx-platform
lms/djangoapps/courseware/views.py
Python
agpl-3.0
56,196
[ "VisIt" ]
99293b69dbe1635b6737baea8d7e158ce8723cacfd79cdfa053567c39770d8e4
# -*- coding: utf-8 -*- """ solace.tests.validation ~~~~~~~~~~~~~~~~~~~~~~~ A unittest that validates the pages using the validator.nu HTML5 validator. :copyright: (c) 2009 by Plurk Inc., see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ import re import sys import...
Plurk/Solace
solace/tests/validation.py
Python
bsd-3-clause
2,955
[ "VisIt" ]
b583128d940e2ffafb5e8eb7c44d7136c721cda7190eef399134dc523643e68d
""" Graph is a class providing layouts for the complete plot images including titles multiple plots and a legend The DIRAC Graphs package is derived from the GraphTool plotting package of the CMS/Phedex Project by ... <to be added> """ from __future__ import print_function __RCSID__ = "$Id$" import datet...
chaen/DIRAC
Core/Utilities/Graphs/Graph.py
Python
gpl-3.0
11,717
[ "DIRAC" ]
048e9e2bccbcf9254f7b284073e3e7e6fe636801a2c4b2552304ae9ae7bba0e2
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Copyright (C) 2011-2015 German Aerospace Center DLR (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.), Institute of System Dynamics and Control All rights reserved. This file is part of PySimulator. PySimulator is free software: you can redistribute it and/or modify...
PySimulator/PySimulator
PySimulator/PySimulator.py
Python
lgpl-3.0
31,662
[ "MOE" ]
b533e0c3ac5f9f76ca4057e0303457500e28cdfc5d6df87b5f1971aa2872b170
import os from setuptools import setup, find_packages setup(name='pyribotools', version='0.0.1', #packages=find_packages(), description='pyribotools is a Python module to analyze RIBO-seq NGS data', author='Patrick Lombard', author_email='ptk.lmb55@gmail.com', packages=['pyribotools...
pdl30/pyribotools
setup.py
Python
gpl-2.0
1,041
[ "pysam" ]
c1749ca9126867fe9ad220fcf8c3316c440222e0f6d7e92bb5c95d556f559f4a
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO parser for HMMER domain table output format.""" from itertools import cha...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SearchIO/HmmerIO/hmmer3_domtab.py
Python
gpl-2.0
12,556
[ "Biopython" ]
b5fd6d026ce00ebafec93c0633f0581fa227ccf1c9847c365c28783e2bcfae3a
# -*- coding: utf-8 -*- # # Synctity documentation build configuration file, created by # sphinx-quickstart on Thu Aug 5 14:05:09 2010. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
beastwood/synctity
doc/sphinx/conf.py
Python
gpl-3.0
6,401
[ "Brian" ]
5f17ae3ce34d1bf6c782a9136644a1fa53c9dc3fdd94eb85facd6541fbb20519
""" Olfaction specification for NeuroKernel """ from random import uniform import numpy as np from collections import OrderedDict from lxml import etree from abc import ABCMeta, abstractmethod, abstractproperty import gzip from neuron import * from synapse import * Odor_databas = {'Acetone':[ 1, -10, 29, 0, -...
neurokernel/antennal_lobe
examples/data/antennallobe.py
Python
bsd-3-clause
13,753
[ "NEURON" ]
561f25b349fa70bca5ee9a4c42bbbd330f5f085ba298b1c81359d3ec1acb831c
#!/usr/bin/python -u import os, sys, fnmatch # do a basic check to see if pylint is even installed try: from pylint.__pkginfo__ import version as pylint_version except ImportError: print "Unable to import pylint, it may need to be installed" sys.exit(1) # Classes of errors we ignore on quiet runs IGNORED...
ColinIanKing/autotest
utils/run_pylint.py
Python
gpl-2.0
4,224
[ "VisIt" ]
5e833df48710e32324ea3ab9269a59af91563013db78e19c7ba880f661abd595
import math from numba import cuda, float32, float64, uint32, int64, uint64, from_dtype,\ jit import numpy as np # This implementation is based upon the xoroshiro128+ and splitmix64 algorithms # described at: # # http://xoroshiro.di.unimi.it/ # # and originally implemented by David Blackman and...
sklam/numba
numba/cuda/random.py
Python
bsd-2-clause
9,154
[ "Gaussian" ]
f34264e97da30af0a002676f86631fcd36e0141b2b66cd780d98db8d7fcce720
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/cc/_ccsd.py
Python
apache-2.0
949
[ "PySCF" ]
7e58a7581d6c505ea577b05504c5d2223e014f4f36f44cd01416b83f7a83a4bb
# -*- coding: utf-8 -*- # # gif_cond_exp_multisynapse.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 t...
weidel-p/nest-simulator
pynest/examples/gif_cond_exp_multisynapse.py
Python
gpl-2.0
1,427
[ "NEURON" ]
c521083e31cd6f8905a27a0f8a4198b275b40a99a437440a58ad387e34d0142f
#!/usr/bin/env python # # Copyright 2013 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. """Convert Android xml resources to API 14 compatible. There are two reasons that we cannot just use API 17 attributes, so we are ge...
s20121035/rk3288_android5.1_repo
external/chromium_org/build/android/gyp/generate_v14_compatible_resources.py
Python
gpl-3.0
13,761
[ "Galaxy" ]
0a8cfc6387787167b72eca7a8d839490aa4c53510dcb9d2be5be71ad3e4936aa
"""Scraper for Supreme Court of Maine CourtID: me Court Short Name: Me. Author: Brian W. Carver Date created: June 20, 2014 History: 2014-06-25 (est): Added code for additional date formats. 2014-07-02: Was receiving InsanityException and tweaked date code to get some missing dates. 2014-12-15: Fix...
brianwc/juriscraper
opinions/united_states/state/me.py
Python
bsd-2-clause
1,717
[ "Brian" ]
c338d1586fc1992634f1f9c4b7a361c060987acc35a18ce788274d5c486069dd
# # Copyright 2001 - 2016 Ludek Smid [http://www.ospace.net/] # # This file is part of Outer Space. # # Outer Space 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 # (...
ospaceteam/outerspace
server/lib/ige/ospace/IPlayer.py
Python
gpl-2.0
60,285
[ "Galaxy" ]
7cb1412bb1b419bc39ae43fa697b01e92d62690fd5e575dda8b86d5dae552403
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as error_views urlpatterns = [ url(r'^adm...
MauricioDinki/cookiecutter-django-template
{{cookiecutter.repo_name}}/config/urls.py
Python
mit
1,151
[ "VisIt" ]
02d691684c77f8a567e5b6dcb7882b3f6df521adc875e8b1b048683217273572
# -*- coding: utf-8 -*- # # connections.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...
obreitwi/nest-simulator
topology/doc/user_manual_scripts/connections.py
Python
gpl-2.0
18,232
[ "Gaussian" ]
3d7a8baf42d34e93fead8047a8be878ad624843ba9c3ce5293b77960e92def12
#!/usr/bin/env python import os import sys import time import logging import itertools import argparse from multiprocessing import Pool, cpu_count, Process import pychemia from pychemia.utils.periodic import atomic_symbol try: from qmpy import Entry except ImportError: Entry = None print("Could not import...
MaterialsDiscovery/PyChemia
scripts/OQMD2PyChemia.py
Python
mit
10,452
[ "CRYSTAL" ]
a6098e870bb280923068eba705bf185e251cd30e78345d52ec219ed012de1ae1
"""A spectral transforms engine using pyspharm.""" # (c) Copyright 2016 Andrew Dawson. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
ajdawson/python_for_climate_scientists
course_content/barotropic-model/barotropic/pyspharm_transforms.py
Python
gpl-3.0
4,234
[ "Gaussian" ]
2b9dafa65778c5d9c5effbecdc00fa7e9241d906563d1ad9cc7fa35d53412437
# GromacsWrapper: top.py # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. from __future__ import division, absolute_import, print_function import os import numpy as np import numpy.matlib from numpy.testi...
pslacerda/GromacsWrapper
gromacs/tests/test_fileformats/test_top/top.py
Python
gpl-3.0
5,409
[ "Gromacs" ]
9ee8ace79f69f2329b8127fc60b3af881fa8a73aefb82ad48fdc264d95884822
import ocl import camvtk import time import vtk import datetime import math def drawFiber_clpts(myscreen, f, fibercolor=camvtk.red): inter = f.getInts() #print "fiber has ", len(inter) , " intervals" for i in inter: if not i.empty(): ip1 = f.point( i.lower ) ip2 = f.point( i...
AlanZatarain/opencamlib
scripts/fiber_14_z-levels_cc-colors.py
Python
gpl-3.0
3,780
[ "VTK" ]
1a3949591140ff2e509799ab4179a19eaa0b6252f0d6f7468cfa48c0827e451a
############################################################################## # Copyright (c) 2013-2018, 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...
mfherbst/spack
var/spack/repos/builtin/packages/lulesh/package.py
Python
lgpl-2.1
3,558
[ "BLAST" ]
5253f546162b540d5c360d32e21aad0d76d85e6e88f6a822a7f01e0663c80b23
''' evaluates the exact (no finite sample issues considered) bias of the Triple Correlation error variance \hat{sigma_x}^2 under the assumptions that the three data sets have been matched by CDF-matching and that all distributions are Gaussians The stochastic signal model (zero mean) is assumed to be X=\alpha_x T + \...
szwieback/nlscaling
CDFAnalyticalBias/evaluateCDFBiasLinearGaussian.py
Python
gpl-3.0
942
[ "Gaussian" ]
79e3e8c9d76818a83337ee762a992be7eb094150b05812b98dcb3bb40bdbaf31
""" Filter VCF and output only SNP calls in a sequence context where there is a different homopolymer either side of the site, one of which is the same base as the ALT allele, and one is the ref e.g. ref sequence is AAAAATTTTT and SNP is T-->A or A --> A. """ import sys import pysam a = pysam.Fastafile(sys.argv[1]) t...
andyrimmer/Platypus
scripts/printLRHpCounts.py
Python
gpl-3.0
2,731
[ "pysam" ]
e054591eb325bd61cc2ed1a32ba68bc134336cb592a53c73d6cd886702fae886
""" Genotype a set of SV calls in a given set of BAMs. """ import argparse from collections import defaultdict import logging import numpy as np import pysam from scipy.stats import sem from get_best_alignment import get_best_alignments, get_depth_by_reference_and_position np.random.seed(1) # create logger logger = l...
EichlerLab/pacbio_variant_caller
scripts/genotype.py
Python
mit
7,731
[ "pysam" ]
4ef71116d1873ac1a246bc75ee040d4574bbae3df888155b68adb25678ea9d4c
# Copyright 2017-2021 TensorHub, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
guildai/guild
guild/plugins/skopt.py
Python
apache-2.0
7,961
[ "Gaussian" ]
c0d69460281dcb044f050d647de16476ca7f215235611458b4d9fef1928d02b4
# -*- coding: utf-8 -*- # # balancedneuron.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,...
obreitwi/nest-simulator
pynest/examples/balancedneuron.py
Python
gpl-2.0
6,749
[ "NEURON" ]
ad6cf6aac3d3950fc31c41d7883e7caff2ba62a8e1bf2a2d2f2efe66131ef5c1
#!/usr/bin/env python """ Run this test like so: $ vtkpython TestGL2PSExporter.py -D $VTK_DATA_ROOT \ -B $VTK_DATA_ROOT/Baseline/Rendering/ $ vtkpython TestGL2PSExporter.py --help provides more details on other options. Please note that this test requires that you have PIL (the Python Imaging Library) module insta...
b3c/VTK-5.8
Rendering/Testing/Python/TestGL2PSExporter.py
Python
bsd-3-clause
5,096
[ "VTK" ]
bdc45c5eb2e8b313febfe5416cc6f2bb7bc90914d0d661205bf89d201c6bfd4a
# overall python packages import glob import h5py import os import time import numpy as n import sys # specific functions from scipy.stats import norm from scipy.integrate import quad from scipy.interpolate import interp1d # dedicated packages #import ClusterScalingRelations #cl = ClusterScalingRelations.ClusterScali...
JohanComparat/pyEmerge
bin/add_Xray_AGN.py
Python
unlicense
8,441
[ "Galaxy" ]
afcda799e7d14aba7a63e7d659197423faa3b3c5b96abefac8cff9b1ddf49d9d
# ============================================================================ # # Copyright (C) 2007-2012 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...
jeroendierckx/Camelot
camelot/view/controls/delegates/currencydelegate.py
Python
gpl-2.0
1,210
[ "VisIt" ]
b12ccc4aa4c2defb3a1236f971743b342b9fe7cb737866fc26b4a4ab76b95df9
# -*- coding: utf-8 -*- """ Created on Thursday April 20 @author: Brian L. Dorney """ import sys, os import numpy as np from scipy import interpolate from Utilities import * from ROOT import gROOT, TCanvas, TDirectory, TFile, TGraph2D #The amount of charge collected on the readout of a GEM detector #wh...
bdorney/CMS_GEM_Analysis_Framework
python/AnalysisSuiteClusterCharge.py
Python
gpl-3.0
18,831
[ "Brian" ]
97e24dbc67b799be6f480e0fba4abe20c7b833f2e750eb8a5da363edd78be472
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
le9i0nx/ansible
lib/ansible/modules/network/avi/avi_tenant.py
Python
gpl-3.0
4,512
[ "VisIt" ]
2bd0531a8d8408661d95df7d5ae90522932fcd31f28d124a4021d31364df360b
#!/usr/bin/env python """ Calculate displacements and strains for line loading in an elastic half-space of a isotropic, homogeneous body undergoing small strain. See Johnson, K.L. Contact Mechanics. 2.2 Line Loading of an Elastic Half-Space: Concentrated Normal Force. Cambridge University Press. 1985. Fearing, Ron...
KitwareMedical/ITKStrain
test/Input/ConcentratedNormalLineForce.py
Python
apache-2.0
5,117
[ "VTK" ]
ab49358aa8c080ad3a73c4ba4db84ab6574bdbe0e5e17e5367ac39a230756eb9
from __future__ import division, print_function, absolute_import from scipy.lib.six import xrange from numpy import (logical_and, asarray, pi, zeros_like, piecewise, array, arctan2, tan, zeros, arange, floor) from numpy.core.umath import (sqrt, exp, greater, less, cos, add, sin, ...
maciejkula/scipy
scipy/signal/bsplines.py
Python
bsd-3-clause
11,582
[ "Gaussian" ]
a185688131ef980d6f638ea475bb44079194b77814836c31d15cea0b842c1399
""" This transform implements time management functions (delay_mu/now_mu/at_mu) using an accumulator 'now' and simple replacement rules: delay_mu(t) -> now += t now_mu() -> now at_mu(t) -> now = t The function delay(), that uses seconds, must be lowered to delay_mu() before invoking this transfor...
fallen/artiq
artiq/transforms/lower_time.py
Python
gpl-3.0
2,100
[ "VisIt" ]
c0afb67c99f198899bc88287aabfdf3b28d2e966f999f25a3e2fd5bc778f165c
''' |pypi version| |pypi license| |travis ci| Generate PAC file from gfwlist, custom rules supported. For more information, please visit `project page`_. .. |pypi version| image:: https://img.shields.io/pypi/v/genpac.svg :target: https://pypi.python.org/pypi/genpac .. |pypi license| image:: https://img.shields.i...
JinnLynn/genpac
setup.py
Python
mit
1,816
[ "VisIt" ]
779bc19a83a1d2b7c6c017d8489875c9717bebba3ba01a1b7c40976852381341