text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. # # Use of this source code is governed by a BSD-style license # that can be found in the LICENSE file in the root of the source # tree. An additional intellectual property rights grant can be found # in the file PATENTS. All contributing project au...
WymanLyu/WYDemo
FXAudio/FXAudio/FXAudio/webRTC/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/test_data_generation.py
Python
apache-2.0
18,421
[ "Gaussian" ]
4b557d39e88c2a762a57fca398a2d7f351b5ad59d650f9e5d3c015c81c18a383
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models SECTION_LIST = [ ("Physical Environment", 'physical-environment'), ("Indigenous State", 'indigenous-state'), ("Supernatural Practices", 'supernatural-practices'), ("Social Env...
shh-dlce/pulotu
website/apps/core/migrations/0006_add_section_data.py
Python
apache-2.0
8,618
[ "VisIt" ]
214672ece36eca560e5d95e94fb217fa950b724187863408f26afa93c2bcd56a
"""This demo program uses the interface to SNES solver for variational inequalities to solve a contact mechanics problems in FEniCS. The example considers a heavy hyperelastic circle in a box of the same size""" # Copyright (C) 2012 Corrado Maurini # # This file is part of DOLFIN. # # DOLFIN is free software: you ...
MiroK/dolfin
demo/undocumented/contact-vi-snes/python/demo_contact-vi-snes.py
Python
gpl-3.0
3,899
[ "VTK" ]
8bf46fbbad3d8ddf0ee4cebf34d98f44534b7071504adb8f799649eff9e76186
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the G...
espressopp/espressopp
src/ParallelTempering.py
Python
gpl-3.0
7,506
[ "ESPResSo" ]
ea62077ee35ad7779ebe5d6666a85de4a4703eb1c9012964effc64b76bf6329d
# -*- coding: utf-8 -*- # 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 tha...
michel-slm/bodhi
bodhi/tests/functional/test_updates.py
Python
gpl-2.0
70,861
[ "VisIt" ]
f94fb5e8f495811ff54273e9e2291df29b364cb91f693b84a5c800eb1b97c239
import re import string import sys import Atom def readAtoms(file, fmt=None): fmts={'coord' : readCoord, 'xyz' : readXYZ} try: func=fmts[fmt] except KeyError, x: print "Unknown format", x sys.exit() return func(file) def readCoord(file): "Read TURBOMOLE coord file, return list of Atoms" atoms=[Atom.At...
juselius/gimic
tools/QCTools/QCTools.py
Python
gpl-2.0
2,589
[ "TURBOMOLE" ]
0aa6ec5eceb0e508698ef01e812c5bbd8407c55560b280288e9d1a7bd5cfcf1c
from distutils.core import setup, Extension from os.path import join, dirname, abspath current_dir = dirname(abspath(__file__)) default_lib_dir = abspath(join(current_dir, 'build', 'lib')) compile_args = [ '-std=c++11', '-Wwrite-strings', '-Wsign-compare', '-fPIC', '-pedantic', '-Wall', '...
galaxy-team/galaxpy
setup.py
Python
lgpl-3.0
2,363
[ "Galaxy" ]
8496fa45616f094f6461a0d45ffce83cb35191b66e572538deb9d4368231ea99
#!/usr/bin/env python # -*- coding: utf-8 -*- # r""" A JSON data encoder and decoder. This Python module implements the JSON (http://json.org/) data encoding format; a subset of ECMAScript (aka JavaScript) for encoding primitive data types (numbers, strings, booleans, lists, and associative arrays) in a la...
seppius-xbmc-repo/ru
plugin.video.shura.tv/resources/lib/demjson.py
Python
gpl-2.0
90,082
[ "CDK" ]
3f74d5feb785927c15c67eddee56c6243535d454dcea95276f901358d6159734
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import json import os from pymatgen.electronic_structure.cohp import CompleteCohp, Cohp, IcohpValue, IcohpCollection from pymatgen.electronic_structure.core import Spin, Orbital from pymatgen.u...
dongsenfo/pymatgen
pymatgen/electronic_structure/tests/test_cohp.py
Python
mit
36,290
[ "pymatgen" ]
27cc8c6efa6b19c65f37d5a788d3d27c5d903285df4aed055b6f1dc8060d3a8d
#!/usr/bin/env python # # This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # A...
Frodox/buildbot
worker/setup.py
Python
gpl-2.0
5,594
[ "Brian" ]
53e030ec49e8c67111c7464fdfbab6da470f7c086e7ef3b72756338915215767
######################################################################## # # (C) 2013, James Cammarata <jcammarata@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 ...
napkindrawing/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
31,822
[ "Galaxy" ]
55e3a3bb0e76b5fd270752f8cd06d42dc3dbb8c4d3464ce902059f906eea730c
""" Notifications for Android TV notification service. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/notify.nfandroidtv/ """ import logging import io import base64 import requests import voluptuous as vol from homeassistant.components.notify import ( ...
ewandor/home-assistant
homeassistant/components/notify/nfandroidtv.py
Python
apache-2.0
6,561
[ "Amber" ]
a430ae3301d716be4fad837539337c3b17869a7e09262bcfd9555b0b27612fae
#!/usr/bin/python2.6 # -*- coding: utf8 -*- from __future__ import with_statement """ """ __author__ = "Jerome Samson" __copyright__ = "Copyright 2013, Mikros Image" from fabric.api import * from fabric.colors import green, blue env.timeout = 5 env.disable_known_hosts = True env.source_path = '' env.target_path = ''...
mikrosimage/OpenRenderManagement
fabfile.py
Python
bsd-3-clause
10,636
[ "Octopus" ]
b995afff2e97b06fda93a8e4a75cad835b2d9bda6e69d9f0e64f1a2f66d28a8d
import unittest, random, sys, time sys.path.extend(['.','..','py']) import h2o, h2o_cmd, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_glm, h2o_util class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): global localhost ...
janezhango/BigDataMachineLearning
py/testdir_hosts/test_GLM_mnist_s3n_fvec.py
Python
apache-2.0
3,635
[ "Gaussian" ]
4e5a32d6deec7bc9f2350afe6224a0b4d6527033293d9f25230f6a2290a50420
import math from psi4 import core from ..diis import DIIS, StoragePolicy, RemovalPolicy def _RHF_orbital_gradient(self, save_fock: bool, max_diis_vectors: int) -> float: gradient = self.form_FDSmSDF(self.Fa(), self.Da()) if save_fock: if not self.initialized_diis_manager_: storage_policy ...
susilehtola/psi4
psi4/driver/procrouting/scf_proc/subclass_methods.py
Python
lgpl-3.0
3,657
[ "Psi4" ]
84d66b5fc0cae9ca3ce476706de0d51785a366a1a3f3f3cd53c603f7da3432ea
''' Module of classes used to test M-LOOP. ''' from __future__ import absolute_import, division, print_function __metaclass__ = type import numpy as np import threading import mloop.utilities as mlu import numpy.random as nr import logging import os import time class TestLandscape(): ''' Produces fake landsca...
michaelhush/M-LOOP
mloop/testing.py
Python
mit
9,789
[ "Gaussian" ]
d8c2fc3fdecebbe9600ec05c250f2500c16d6bf7bc3b3077a5b93d830d7c820a
# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg---------- ''' This module provides basic signal processing for seismic traces. ''' from __future__ import division, absolute_import import time import math import copy import logging import numpy as num from scipy impor...
pyrocko/pyrocko
src/trace.py
Python
gpl-3.0
117,846
[ "Gaussian" ]
e90313fb82e78c59b5632c4d6c2df88d03c790e7f12fe48d0ba3f306dddbadd6
# -*- coding: utf-8 -*- # module pyparsing.py # # Copyright (c) 2003-2019 Paul T. McGuire # # 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 limitatio...
RalfBarkow/Zettelkasten
venv/lib/python3.9/site-packages/pip/_vendor/pyparsing.py
Python
gpl-3.0
273,394
[ "VisIt" ]
2756f8cf74bf2b0c895bb84a1a7a0dfa15d6f6980c23320fe904e1c98e7226ae
"""Tasks for generating random gain fluctuations in the data and stacking them.""" import numpy as np from caput import config, mpiarray, pipeline from ..core import containers, task, io class BaseGains(task.SingleTask): """Rudimentary class to generate gain timestreams. The gains are drawn for times whi...
radiocosmology/draco
draco/synthesis/gain.py
Python
mit
18,572
[ "Gaussian" ]
3f359a866d63e7786ed03202e1b22b0945c4cc961fe5808bc65ae6d82c72e9fa
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
modules/porous_flow/doc/content/modules/porous_flow/tests/heat_advection/heat_advection.py
Python
lgpl-2.1
2,263
[ "MOOSE" ]
732dfdafac2fe06dd94419e3a019a796b544188466ccb41d2d8fb31a3aae5cdf
import numpy as np from scipy import ndimage from .._shared.utils import assert_nD __all__ = ['gabor_kernel', 'gabor_filter'] def _sigma_prefactor(bandwidth): b = bandwidth # See http://www.cs.rug.nl/~imaging/simplecell.html return 1.0 / np.pi * np.sqrt(np.log(2) / 2.0) * \ (2.0 ** b + 1) / (2.0...
bennlich/scikit-image
skimage/filters/_gabor.py
Python
bsd-3-clause
6,929
[ "Gaussian" ]
0a147c94805c6caa79f91321254ce33416f648fb5ce12f525f290e183c1d2d62
#!/usr/bin/env python #-*- coding: utf-8 -*- import numpy as np from scipy.special import erfc ############ SIMPLE MATHEMATICAL FUNCTIONS ########### def gaussian(x,amp,freq,HWHM): # for spectral fit """compute a Gaussian peak Inputs ------ x : ndarray the positions at which the signal should ...
charlesll/RamPy
rampy/functions.py
Python
gpl-2.0
9,677
[ "Gaussian" ]
3aec98002a10f0561c201b2c54b983e20f0af161ebba1b35364cac7579b41066
# Copyright (C) 2011-2012 CRS4. # # This file is part of Seal. # # Seal 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. # # Seal is dis...
crs4/seal
seal/seqal/seqal_config.py
Python
gpl-3.0
6,596
[ "BWA" ]
44cc1ea1e412f931484714e967d97f1be65291dcd4d5a0b521c082753d7aeb55
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2015, 2016 Adam.Dybbroe # Author(s): # Adam.Dybbroe <a000680@c20671.ad.smhi.se> # 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...
pytroll/mpop
mpop/satin/nc_osisaf_l2.py
Python
gpl-3.0
12,853
[ "NetCDF" ]
36640ef6a227cd2ac8af803b003bac9db757688396f676a04ece43b95d01087b
import hashlib import os import traceback from fsgamesys.amiga.adffile import ADFFile from fsgamesys.amiga.workbenchdata import ( wb_204_files, wb_204_floppies, wb_204_startup_sequence, wb_300_files, wb_300_floppies, wb_300_startup_sequence, ) class WorkbenchExtractor(object): def __init_...
FrodeSolheim/fs-uae-launcher
fsgamesys/amiga/workbenchextractor.py
Python
gpl-2.0
3,309
[ "ADF" ]
a7348ded477c7ff774f1e769ee8bf296609450fa122ebca46e32f8d6490bd7e2
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> from pandas import * import os, os.path import sys sys.path.append('/home/will/HIVReportGen/AnalysisCode/') # <codecell> store = HDFStore('/home/will/HIVReportGen/Data/SplitRedcap/2013-01-16/EntireCohort.hdf') # <codecell> redcap_data = store['redc...
JudoWill/ResearchNotebooks
PrioritizingPatients.py
Python
mit
8,991
[ "VisIt" ]
53b668afb22f0b9e70ef0bdada1eb31d1b6d58f86ffdf5d6e68c38b1120c53c7
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
testsuite/python/elc_vs_mmm2d_nonneutral.py
Python
gpl-3.0
5,370
[ "ESPResSo" ]
6133cb97f87d81c8db9acfbf1c9a1e3670d7bb7a8ba75bd28f6a273ee75ad530
import mock import unittest import stat from types import ListType from DIRAC import S_OK, S_ERROR import DIRAC.DataManagementSystem.DB.FileCatalogComponents.SecurityPolicies.VOMSPolicy # This just defines a few groups with their VOMSRole diracGrps = {'grp_admin' : None, 'grp_data' : 'vomsProd', ...
marcelovilaca/DIRAC
DataManagementSystem/DB/FileCatalogComponents/SecurityPolicies/test/testVOMSPolicy.py
Python
gpl-3.0
63,684
[ "DIRAC" ]
b8746eeb743575723e459be75ec77c1c11fed195a64f314b4c6f822b835969fc
######################################################################## # $HeadURL$ # File : DownloadInputData.py # Author : Stuart Paterson ######################################################################## """ The Download Input Data module wraps around the Replica Management components to provide acc...
Sbalbp/DIRAC
WorkloadManagementSystem/Client/DownloadInputData.py
Python
gpl-3.0
13,992
[ "DIRAC" ]
c2d6cb817b650afb7cb76a8da76eed8aabf78c74ba211bac830ebd7aaf3960e4
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string, optparse, subprocess 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','desc...
mcongrove/TitaniumPebble
iphone/build.py
Python
apache-2.0
8,779
[ "VisIt" ]
aa45e2292fd4f00c39eb7ac5f778a99719b1ad3102be603afba1a406f3103b56
#!/usr/bin/python import Renascence producer = Renascence.init(["./libAbstract_learning.xml"]) print producer.listAllFunctions() print producer.listAllTypes() x0 = producer.load('ALFloatMatrix', '../../machine_exam/handset/train.txt') x1 = producer.load('ALFloatMatrix', '../../machine_exam/handset/test.txt') #formula ...
jxt1234/Abstract_Learning
rf_train.py
Python
apache-2.0
518
[ "ADF" ]
af08cdaa39c03c3d4c0a8287dc31be060d8e8cf38483a08ad1e99264eded0c8e
# Copyright 2014-2018 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 # # Unless required by appl...
sunqm/pyscf
pyscf/pbc/df/test/test_rsdf.py
Python
apache-2.0
4,942
[ "PySCF" ]
8736cf3e844e22b175d05a1d5eccdfa89daad5e30b724b19a30de842d77a9678
from __future__ import absolute_import from __future__ import print_function import os import sys import atexit import signal import logging from pprint import pformat from tornado.options import options from tornado.options import parse_command_line, parse_config_file from tornado.log import enable_pretty_logging f...
pygeek/flower
flower/command.py
Python
bsd-3-clause
4,098
[ "VisIt" ]
50baadab70c835800e3e0dc3a9b8f81d640a2a3ab547a4f7100385ce97c066b5
import logging import textwrap from copy import deepcopy import numpy as np import networkx as nx from indra.explanation.pathfinding import get_path_iter, find_sources try: import paths_graph as pg has_pg = True except ImportError: has_pg = False logger = logging.getLogger(__name__) class PathMetric(...
bgyori/indra
indra/explanation/model_checker/model_checker.py
Python
bsd-2-clause
26,507
[ "Pybel" ]
4ea1ac2e9a67532643c7da3f11f72260b157fcccb5ba5c3889f90b4f5c6ab5d8
# -*- coding: utf-8 -*- # # csa_spatial_example.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 Lic...
sdiazpier/nest-simulator
pynest/examples/csa_spatial_example.py
Python
gpl-2.0
4,452
[ "Gaussian", "NEURON" ]
f67fa2e413130ae2b56085aae5d2d06d559f74592990e5f599fadf91d15897f5
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007-2012 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2009-2010 Craig J. Anderson # Copyright (C) 2014 Paul Franklin # # This program is free software; you can redistr...
beernarrd/gramps
gramps/plugins/drawreport/descendtree.py
Python
gpl-2.0
68,557
[ "Brian" ]
1944b2e4647c03b0a094be003f0e7a3c66abbef0903e3d4e1a0933a7d4fed465
#!/usr/bin/env python ''' Mean field with k-points sampling The 2-electron integrals are computed using Poisson solver with FFT by default. In most scenario, it should be used with pseudo potential. ''' from pyscf.pbc import gto, scf, dft import numpy cell = gto.M( a = numpy.eye(3)*3.5668, atom = '''C 0...
sunqm/pyscf
examples/pbc/20-k_points_scf.py
Python
apache-2.0
1,319
[ "PySCF" ]
ccc8907fa6dda68e10ded5598e7473374ebcec8b9c0933458d3933e18285db8c
from __future__ import print_function from django.test import LiveServerTestCase from selenium import webdriver import os from django.contrib.auth.models import User # from imager_images.models import Photo, Album import factory import time SCREEN_DUMP_LOCATION = os.path.join( os.path.dirname(os.path.abspath(__fi...
nbeck90/game-chat
gamechat/gamechat/test_selenium.py
Python
mit
8,720
[ "VisIt" ]
8f6968fd3d4e7ced16939bf3aeaff9dd72e4812f8fff20b35d21a81057447131
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Iris' data model representation of CF UGrid's Mesh and its constituent parts. Eventual destination: dedicated module in :...
rcomer/iris
lib/iris/experimental/ugrid/mesh.py
Python
lgpl-3.0
105,605
[ "NetCDF" ]
da593fdcadd0173c61ed4ba5480f91ced844b172963883ec9de52b7e63621e28
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('let_me_app', '0010_auto_20160121_0831'), ] operations = [ migrations.CreateModel( name='CoachRecommendation', ...
oleg-chubin/let_me_play
let_me_app/migrations/0011_coachrecommendation_indexparametr_visitindex.py
Python
apache-2.0
1,910
[ "VisIt" ]
a9c9a7c1c96013965327852b4f77753d5fee505c9e54e05a1251c744438aabcc
# (c) 2012-2014, Michael DeHaan <michael.dehaan@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 License, or # (at your option) an...
wshallum/ansible
lib/ansible/constants.py
Python
gpl-3.0
28,088
[ "Galaxy", "MOOSE" ]
013d25f0b6dafb6bb889706e1ffdb7f16f01640b048411ad720d8b3aa8ea8f82
#!/usr/bin/env python ############################################################################### # # SageMathCloud: A collaborative web-based interface to Sage, IPython, LaTeX and the Terminal. # # Copyright (C) 2014, William Stein # # This program is free software: you can redistribute it and/or modify # ...
pabryan/smc
src/scripts/build_sage.py
Python
gpl-3.0
2,199
[ "Biopython", "Brian" ]
e9536ba46472e90e001180155e86d01717e6701dcf700dd96934a90aaa8d4fcb
import sys import base64 import dis import inspect import numpy as np if sys.version_info >= (3, ): base64decode = base64.decodebytes ordornot = lambda x:x else: base64decode = base64.decodestring ordornot = ord from . import _marching_cubes_lewiner_luts as mcluts from . import _marching_cubes_lewine...
paalge/scikit-image
skimage/measure/_marching_cubes_lewiner.py
Python
bsd-3-clause
12,009
[ "Mayavi" ]
c1ef1b5f9b364be6ab0fb970ef5406bfc033c4be2910ac9ed6c07cdfa79718e9
# Copyright 2010 Google Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # trib...
FATruden/boto
boto/gs/key.py
Python
mit
42,318
[ "VisIt" ]
dd6a0e7f0f19bed5a5af01e95031c4539b9396279269020032c9b1cf0381e17b
""" This file contains defines parameters for nipy that we use to fill settings in setup.py, the nipy top-level docstring, and for building the docs. In setup.py in particular, we exec this file, so it cannot import nipy """ from __future__ import print_function, division, unicode_literals, absolute_import # nipype ...
carolFrohlich/nipype
nipype/info.py
Python
bsd-3-clause
6,233
[ "Mayavi" ]
31f217957639273ca4e01ba42b2e4485b9598879f5b9e6aa9d174889297b4a80
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
mkuron/espresso
testsuite/python/oif_volume_conservation.py
Python
gpl-3.0
2,820
[ "ESPResSo", "VTK" ]
77d279032cd23a9d363364229e878f1e5c7d6aec885b9ae2d9ff92fe8a01f3dd
""" Simple script to test the impact of centroiding on PSF ellipticity and size. :requires: PyFITS :requires: NumPy :requires: SciPy :requires: matplotlib :requires: VISsim-Python :version: 0.1 :author: Sami-Matias Niemi :contact: s.niemi@ucl.ac.uk """ import matplotlib matplotlib.rc('text', usetex=True) matplotlib....
sniemi/EuclidVisibleInstrument
analysis/PSFcentroidingEffects.py
Python
bsd-2-clause
15,429
[ "Gaussian" ]
3c01c10c6c596c100cb98e23ffe16ef893a852c6469db143c6a600cb8622de9b
## INFO ######################################################################## ## ## ## pypp ## ## ==== ...
petervaro/pypp
public_pypp.py
Python
gpl-3.0
3,424
[ "VisIt" ]
eb3ce75d07c5fa88198ece7b6aff808adaf5570be1289e3324a66154c7a94b7c
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
jdrudolph/scikit-bio
skbio/sequence/_sequence.py
Python
bsd-3-clause
80,464
[ "scikit-bio" ]
566864169c2985dd72e5b6aba6897154924fd6b9b30572242d8aebdbfacff2cc
#!/usr/bin/env python2 desc="""Fold sequences from BED file and report visual representation. CHANGELOG: """ epilog="""Author: l.p.pryszcz+git@gmail.com Warsaw, 1/09/2015 """ import argparse, os, re, sys, pysam from datetime import datetime import subprocess import numpy as np # https://github.com/pkerpedjiev/forg...
lpryszcz/bin
bed2RNALfold.py
Python
gpl-3.0
6,621
[ "pysam" ]
972b8e1c80339f834549c775cc9fa2ea463473031a07fc48eeb2557527c8a334
from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities import ThreadScheduler from DIRAC.Core.Base.ExecutorMindHandler import ExecutorMindHandler from DIRAC.WorkloadManagementSystem.Client.JobState.JobState import JobState from DIRAC.WorkloadManagementSystem.Client.JobState.CachedJobState import CachedJobSt...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Service/OptimizationMindHandler.py
Python
gpl-3.0
8,746
[ "DIRAC" ]
19553409235a3e04376d7a9b4e00415846366537e12dac00a3e4f8fb4f7a0b23
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests for the Popularity Contest (popcontest) parser.""" import unittest from plaso.lib import definitions from plaso.parsers import popcontest from tests.parsers import test_lib class PopularityContestUnitTest(test_lib.ParserTestCase): """Tests for the popcontes...
log2timeline/plaso
tests/parsers/popcontest.py
Python
apache-2.0
5,388
[ "ORCA" ]
dfa75d209d957de8485846b73e1f0492dcfb5e0d6760bc6259f828c87bb97226
# # Copyright (c) 2014, Novartis Institutes for BioMedical Research Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyri...
AlexanderSavelyev/rdkit
rdkit/Chem/SimpleEnum/Enumerator.py
Python
bsd-3-clause
8,769
[ "RDKit" ]
f811fd5d32721850fe6033040325b88623b06951b31342a3e3aac35db09c0933
# Licensed under a 3-clause BSD style license - see LICENSE.rst """Mathematical models.""" # pylint: disable=line-too-long, too-many-lines, too-many-arguments, invalid-name import numpy as np from astropy import units as u from astropy.units import Quantity, UnitsError from .core import (Fittable1DModel, Fittable2DMo...
pllim/astropy
astropy/modeling/functional_models.py
Python
bsd-3-clause
104,897
[ "Gaussian" ]
58c5581842a29d765307c0976dd589195ffc47b6af4532797a4357d2fe77b0d6
# Be sure to install boilerpipe (pip install boilerpipe) """ Extract main article content from HTML with Boilerpipe In this script, we define a function that takes a single HTML news article as input and returns the primary textual content of the article. We create an SFrame from a sample of HTML articles, and then we...
dato-code/how-to
extract_article_content_from_HTML.py
Python
cc0-1.0
4,688
[ "VisIt" ]
b8798798fe01e953cca21143ac3213d9032627a45a7c0a10653a307a7625d24b
import numpy as np class Prior: def __init__(self, layer_sizes, var_targets): # We refine the factor for the prior variance on the weights n_samples = 3.0 v_observed = 1.0 self.a_w = 2.0 * n_samples self.b_w = 2.0 * n_samples * v_observed # We refine the factor ...
lenovor/Probabilistic-Backpropagation
theano/PBP_net/prior.py
Python
gpl-2.0
5,467
[ "Gaussian" ]
053d07f254f00fd2b6843c907925e3cc8789a3346781df0ed4eec151b8e99396
#! /usr/bin/env python # # hl_api.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at...
gewaltig/cython-neuron
cynest/nest/hl_api.py
Python
gpl-2.0
32,772
[ "NEURON", "VisIt" ]
5933f20c033802833855c7b4ed54db32ecca878f03cda6451651327ca591ac3b
# Copyright (C) 2006-2007 Aren Olson # 2011 Brian Parma # # 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, or (at your option) # any later version. # # This p...
sjohannes/exaile
plugins/daapclient/__init__.py
Python
gpl-2.0
26,029
[ "Brian" ]
563a37054256fd6ccbdfb0413b497a632571fd0efc07d6a2fb3ba0daba0ccf63
# # Parse tree nodes for expressions # from __future__ import absolute_import import cython cython.declare(error=object, warning=object, warn_once=object, InternalError=object, CompileError=object, UtilityCode=object, TempitaUtilityCode=object, StringEncoding=object, operator=object, l...
ryfeus/lambda-packs
HDF4_H5_NETCDF/source2.7/Cython/Compiler/ExprNodes.py
Python
mit
538,989
[ "VisIt" ]
d67b3010a9ac9edee264e93569e3c107fa73809366d95091e3168d096d7ef02f
# Copyright 2014-2019 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 # # Unless required by appl...
sunqm/pyscf
pyscf/adc/test/test_uadc/test_P_uadc_ea.py
Python
apache-2.0
3,086
[ "PySCF" ]
32f0113b5353d63d2d32dc7e2a74fbf46a1084e28e28ed7c43fceac3845c1e65
from enum import Enum import fann2.libfann class net_type(Enum): ''' Definition of network types used by fann_get_network_type ''' ''' Each layer only has connections to the next layer ''' LAYER = fann2.libfann.LAYER ''' Each layer has connections to all following layers '...
kaz-fujii/pyfann
pyfann/enums.py
Python
lgpl-2.1
5,461
[ "Gaussian", "NEURON" ]
f1e7f96dbf0544d0aedcef0987991654ccab9a9e631dfe90d05c69749195e455
import argparse import pysam import re import sys from typing import Iterable, Iterator from lhc.binf.genomic_coordinate import GenomicInterval from lhc.io.locus import open_locus_file def query(query_loci: Iterable[GenomicInterval], loci: pysam.TabixFile, *, direction: str = 'left', tolerance=0) -> Iterator[Genomic...
childsish/lhc-python
lhc/binf/loci/tools/query.py
Python
gpl-2.0
3,579
[ "pysam" ]
0a2218fcb5c019f3cabb107dcbdd493ccc9a1064f363603e119b1b44d4c0e203
from datetime import datetime from attr import attrib, attrs from firefed.feature import Feature, formatter from firefed.output import out from firefed.util import moz_to_unix_timestamp @attrs class Visit: id = attrib() from_visit = attrib() visit_date = attrib(converter=moz_to_unix_timestamp) url ...
numirias/firefed
firefed/feature/visits.py
Python
mit
1,311
[ "VisIt" ]
8bee9aeaf575525f3eab3a072f5f92e7662816557013afda6dc85db7d4d78ffa
import fnmatch import os import posixpath import re import sys from ast import AST, Attribute, iter_fields, Name if sys.version_info[0] == 3: string_types = (str,) else: string_types = (basestring,) # noqa IGNORED_DIRS = [ '*.egg-info', '.bzr', '.cache', '.git', '.hg', '.idea', '....
akx/shoop
_misc/sanity_utils.py
Python
agpl-3.0
5,083
[ "VisIt" ]
9a529e9eb316ebb29e7cc5805eeb1776b4db911523c95ae76457ac71e26e0de5
# -*- coding: utf-8 -*- import numpy as np import sklearn.mixture from sklearn.mixture._gaussian_mixture import _compute_precision_cholesky class BlockDiagonalGaussianMixture(sklearn.mixture.GaussianMixture): """GMM with block diagonal covariance matrix This class offers the training of GMM with block diagon...
k2kobayashi/sprocket
sprocket/model/diagGMM.py
Python
mit
6,368
[ "Gaussian" ]
a3b350ee3d251036183a26bda248e5abf4560af9b2081475ee0118b4353006d8
#!/usr/bin/python # Simple script which convert the FITS headers associated to Brian McLean DSS images into simplified JSON files # Fabien Chereau fchereau@eso.org import sys import os import subprocess def all(): for i in range(1,895): str = "/home/fab1/prog/stellarium/util/dssheaderToJSON.py" + " S %i %i" % (i,i...
EvilTosha/Stellarium-GSoC12
util/runAllDSS.py
Python
gpl-2.0
639
[ "Brian" ]
4fd9a55e5ff85feea9f9b9a549dc7de9a0505b2788695471dbb39f41ea54a3aa
# Orca # # Copyright 2010 Joanmarie Diggs. # # 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 i...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/scripts/apps/Eclipse/script_utilities.py
Python
gpl-3.0
2,724
[ "ORCA" ]
63e09f64075f96999b18f833e2a9da322911557ebe0ac1d68788cdbf82add2bd
# -*- coding: utf-8 -*- # # Copyright 2015 Pascual Martinez-Gomez # # 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 ...
masashi-y/depccg
depccg/semantics/ccg2lambda/ccg2lambda_tools.py
Python
mit
8,052
[ "VisIt" ]
1838ffd962e0761468ea5d34818bec8c644db1dc3952f71c328cd8ebf43a6885
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ Module: basic_observables ========================= """ from __future__ import print_function import numpy as np from scipy import stats from MDAnalysis.core.groups import Atom, AtomGr...
Marcello-Sega/pytim
pytim/observables/basic_observables.py
Python
gpl-3.0
11,310
[ "MDAnalysis" ]
d3e21599a1922850e7234a3f44498f943f541d974a71b28463681440257780a2
# Programmer: Brian Elliott, Taylor Boyd # Started DATE, Last Updated 4/29/15 # Language: Python 3.4, PyCharm Editor # Importing various modules and packages needed for the program import math import DecayClass import time as time import matplotlib.pyplot as plt import sys def main(): # defining the main function o...
L-E-iT/ISAT252Decay
DecayMain.py
Python
gpl-2.0
8,396
[ "Brian" ]
592796d10307d30b5f967cbaa87d5539957441c0dda1af2eb14d78590006de38
# Copyright (C) 2010-2014 CEA/DEN, EDF R&D # # 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 ...
FedoraScientific/salome-paravis
test/VisuPrs/SWIG_scripts/C3.py
Python
lgpl-2.1
2,843
[ "ParaView", "VTK" ]
e28bf339fc222b9ca809d1ed9d84a39fdebfac00ef1f57357d4ece411ef89534
# -*- coding: utf-8 -*- """ Created on Wed Aug 3 11:31:57 2016 @author: cpkmanchee beam_profile.py contains methods for dealing with beam profile images. All definitions, usages, and calculations are consisten with ISO standard 11146 (generally dealing with D4sigma beamwidths). """ import numpy as np import scipy.op...
kikimaroca/beamtools
build/lib/beamtools/beam_profile.py
Python
mit
9,793
[ "Gaussian" ]
b0d603730e4135eb7526eb14fc0dd5ced5d842495807787710a53eaacdb12e19
# -*- coding: utf-8 -*- ############################################################################### # # This source file is part of the tomviz project. # # Copyright Kitware, Inc. # # This source code is released under the New BSD License, (the "License"). # # Unless required by applicable law or agreed to in ...
cjh1/tomviz
tomviz/python/tomviz/itkutils.py
Python
bsd-3-clause
13,929
[ "VTK" ]
29f7ecef21a6dd147c30ef32ce4575f1b9a921c858ba7fe401b8f82105cfb647
import re from lxml import html try: from pyokc import helpers from pyokc import magicnumbers from pyokc.objects import MessageThread, Question, Session from pyokc.settings import USERNAME, PASSWORD except ImportError: import helpers import magicnumbers from objects import MessageThread, Que...
tfmorris/pyokc
pyokc/pyokc.py
Python
mit
27,507
[ "VisIt" ]
c1ea2e8dc3335e7f1ca10a3ba17223986861f6eae37c164f219c6eaa4abae624
# -*- coding: utf-8 -*- """Mayavi/traits GUI for setting MRI fiducials.""" # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD (3-clause) import os from ..externals.six.moves import map from mayavi.core.ui.mayavi_scene import MayaviScene from mayavi.tools.mlab_scene_model import MlabSceneModel...
teonlamont/mne-python
mne/gui/_fiducials_gui.py
Python
bsd-3-clause
19,853
[ "Mayavi" ]
f350f20f44f7ae6afb3d7233e293e79822173bb9d8ee22df3f730db17a9da660
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Parsplice(CMakePackage): """ParSplice code implements the Parallel Trajectory Splicing al...
iulian787/spack
var/spack/repos/builtin/packages/parsplice/package.py
Python
lgpl-2.1
1,281
[ "LAMMPS" ]
27d933db306fae12e37e04c73a9e2b67da3fff937c63068040124a8c76d895ea
#!/usr/bin/env python import image,numpy as np,auger,plot,dump from scipy.ndimage.filters import gaussian_filter ########################################################################################################### volume_offset=-149#waterbox sources pgsrc_ct = image.image('stage2/data/source-139.mhd') pgsrc_c...
brenthuisman/phd_tools
analysis.pgevo.waterbox.py
Python
lgpl-3.0
7,688
[ "Gaussian" ]
497b1bbb24a31bb865550babbbb28c164decb85543ab1b03e4ea13b7f061c86f
#!/usr/bin/env python from __future__ import print_function import os import sys import argparse import markdown import pygments from pygments.lexers import CppLexer, JavaLexer, CLexer, PythonLexer from pygments.formatters import HtmlFormatter, TerminalFormatter, NullFormatter start_delimiter = "/* START SOLUTION *...
BudgieInWA/notebook-gen
notebook-gen.py
Python
mit
6,501
[ "VisIt" ]
889d966fc660c95fc7d06f21740515524837c7867af5fd9ad1611584bc7ce928
""" Ported by Massimo Vassalli [http://mv.nanoscopy.eu massimo.vassalli@gmail.com] """ import numpy as np from numpy.matlib import repmat from numpy.random import randint def randsample(y,K): return y[randint(0,len(y)-1,K)] def pwc_cluster(y,K=None,soft=False,beta=0,biased=False,display=True,stoptol=1e-5,maxiter...
waynegm/OpendTect-External-Attributes
Python_3/Jupyter/pwc_cluster.py
Python
mit
5,300
[ "Gaussian" ]
7fb1e1d7e6bc68a07fb15cb167ea414750754f21bdbbac2232acafe05e2bedd9
# # Copyright (c) 2008--2015 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
davidhrbac/spacewalk
backend/server/rhnChannel.py
Python
gpl-2.0
71,335
[ "VisIt" ]
54f2192d42d26e35e88564ce1135a95fc5a34d548046e30bf2470d6d95928059
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2010 Async Open Source ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ##...
tiagocardosos/stoq
stoqlib/domain/payment/comment.py
Python
gpl-2.0
1,683
[ "VisIt" ]
a5b0e23769ba8fa953e6fb2419d24fd639b03fa2d07944da44fc3308078626a9
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ from nose.plugins.attrib import attr from unittest import skipIf, skip from ..helpers import UniqueCourseTest, is_youtube_available, YouTubeStubConfig from ...pages.lms.video.video import VideoPage from ...pages.lms.tab_nav import TabNavPage from ...pages.lms...
mtlchun/edx
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
36,557
[ "VisIt" ]
e4311cf3193642f4499ebd3a653436f7af11b5f21f3c5447a6cbc4650fc9358d
from __future__ import division, print_function, absolute_import from dipy.viz.utils import set_input # Conditional import machinery for vtk from dipy.utils.optpkg import optional_package # Allow import, but disable doctests if we don't have vtk vtk, have_vtk, setup_module = optional_package('vtk') colors, have_vtk_...
villalonreina/dipy
dipy/io/vtk.py
Python
bsd-3-clause
2,859
[ "VTK" ]
f47063938cb3fd9f65cd465077879bc37cd52b31697b227f7d03cf8d76988a95
############################################################################################## # HEADER # # cappylib/date_time - defines useful date and time functions for python scripts # # Copyright (C) 2008-2013 Chris Pappalardo <cpappala@yahoo.com> # # Permission is hereby granted, free of charge, to any person ob...
ChrisPappalardo/cappylib
cappylib/date_time.py
Python
mit
11,921
[ "COLUMBUS" ]
37d433b8f066df52c6566819eadc47b83e82f0aa980372a0bad25d9aa4f1ae24
import logging, urllib2, time, json, os, math import pymongo, bson import numpy as np import StringIO, gzip import csv import pandas as pd from astropy.io import fits from astropy import wcs, coordinates as coord, units as u from astropy.cosmology import Planck13 as cosmo from scipy.optimize import brentq, curve_fit, l...
willettk/rgz-analysis
python/bending_analysis.py
Python
mit
126,005
[ "Galaxy" ]
b8f9deb011768ca8ae98d4907532be2fecf745bd1f9b59cc7f58b3165ac07621
# Copyright (C) 2016 # Max Planck Institute for Polymer Research & JGU Mainz # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of th...
acfogarty/espressopp
testsuite/FileIOTests/dump_gromacs/test_dump_gromacs.py
Python
gpl-3.0
3,757
[ "ESPResSo" ]
38221a4e7f386320583fd597601f562112409ae0c6d03553e60b75d1eecbe902
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkFLUENTReader(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk.v...
nagyistoce/devide
modules/vtk_basic/vtkFLUENTReader.py
Python
bsd-3-clause
476
[ "VTK" ]
0b37a3129266166d8743675fd02bf955272ca0bc026fd30ecba312b7c5b1793b
#!/usr/bin/env python3 import argparse import glob import math import multiprocessing import re from collections import namedtuple from pathlib import Path import matplotlib.pyplot as plt # import numexpr as ne import numpy as np import pandas as pd from astropy import constants as const # from astropy import units as...
lukeshingles/artistools
artistools/transitions.py
Python
mit
20,099
[ "Gaussian" ]
98c42cc225e74949ff59d81e78844b80ed40b0d334f2a6cc69dc2267782120a1
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Isescan(Package): """A python pipeline to identify IS (Insertion Sequence) elements in ...
iulian787/spack
var/spack/repos/builtin/packages/isescan/package.py
Python
lgpl-2.1
2,864
[ "BLAST", "Biopython" ]
723b9cff5c2bd73973f816fb89e8ee25b402ba664b5739d733f9eabcb1b83be7
#!/usr/bin/python # -*- coding: utf-8 -*- """ Script to upload images to wikipedia. The following parameters are supported: -keep Keep the filename as is -filename: Target filename without the namespace prefix -prefix: Add specified prefix to every filename. -noverify Do not ask for verifi...
PersianWikipedia/pywikibot-core
scripts/upload.py
Python
mit
7,971
[ "VisIt" ]
dcbbc2a43580142af3cad8b05aa96458674388e3ea96f3b5261bde4bea537322
""" `cirrina` - Opinionated web framework Simple cirrina server example. :license: LGPL, see LICENSE for details """ import logging import asyncio from aiohttp import web import cirrina #: Holds the login html template LOGIN_HTML = '''<!DOCTYPE HTML> <html> <body> <form method="post" action="/login"> ...
michaelimfeld/cirrina
examples/basic/server.py
Python
lgpl-3.0
3,518
[ "VisIt" ]
42c3031b65a4288747aa4f36a6ba658cc0104c99eb51426d528d835a0c65778a
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net> # (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 #...
andreaso/ansible
lib/ansible/modules/files/find.py
Python
gpl-3.0
13,478
[ "Brian" ]
94cca1d7fa88a6f39e1a06a7c7fbf723930e55e037af1caa8f56e3f0c166b956
import os import UWG import math class TestBase(object): """ Test base class. This is inherited by all other tests. """ DIR_CURR = os.path.abspath(os.path.dirname(__file__)) DIR_EPW_PATH = os.path.join(DIR_CURR,"..","resources","epw") DIR_UWGPARAM_PATH = os.path.join(DIR_CURR,"..","resources",...
saeranv/UWG_Python
tests/test_base.py
Python
gpl-3.0
1,800
[ "EPW" ]
2f49168634a5dda8ced371797ecdd6c178bfe3924f08758c1529849cb68ef5aa
# -*- coding: utf-8 -*- # # Copyright 2017 - 2019 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, e...
dursobr/Pythics
pythics/opengl.py
Python
gpl-3.0
13,535
[ "Brian" ]
44f82403080fcede51ab1885127f8fe592b90730987862e50d44c914aa7fb6f2
'''------------------------------------------------------------------------------- Tool Name: CreateInflowFileFromECMWFRunoff Source Name: CreateInflowFileFromECMWFRunoff.py Version: ArcGIS 10.3 Author: Environmental Systems Research Institute Inc. Updated by: Environmental Systems Research Instit...
CI-WATER/erfp_data_process_ubuntu
CreateInflowFileFromECMWFRunoff.py
Python
mit
11,496
[ "NetCDF" ]
ec626e0dc7beda0867c8511071f16d11f059d5e38ba37c594941212468385901
# Create the expert sample for Radio Galaxy Zoo. # We'll see how this compares to the user classifications done so far. # Kyle Willett, 10 Jun 2014 import rgz from numpy.random import random from random import shuffle # Paths rgz_dir = '/Users/willettk/Astronomy/Research/GalaxyZoo/rgz-analysis' # Curated subjects f...
willettk/rgz-analysis
python/expert_sample.py
Python
mit
2,047
[ "Galaxy" ]
ba0d102eb4db5a30cebb56c94b168b828932dd36b6d272fe423ab5dd2229a022
# $Id$ # # Copyright (C) 2001-2008 greg Landrum and Rational Discovery LLC # All Rights Reserved # """ """ import numpy import random from rdkit.ML.DecTree import QuantTree, ID3 from rdkit.ML.InfoTheory import entropy from rdkit.ML.Data import Quantize def FindBest(resCodes, examples, nBoundsPerVar, nPossibleRes...
ptosco/rdkit
rdkit/ML/DecTree/BuildQuantTree.py
Python
bsd-3-clause
13,414
[ "RDKit" ]
0b62f38002c92613d6cee42f290ef4725334dc21feadd54ae9bf20c1b819298e
"""Code to interact with various Primer-related programs from EMBOSS. """ # standard library import string from xml.sax import handler # Martel import Martel from Martel import RecordReader # biopython stuff from Bio.ParserSupport import AbstractConsumer from Bio.ParserSupport import EventGenerator import primersear...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/Emboss/Primer.py
Python
apache-2.0
8,654
[ "Biopython" ]
102b3380b0f23945ef989f95698bc03756b1ce79bd0a8fe977888463314f74a0
# -*- coding: utf-8 -*- # Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
jat255/hyperspy
hyperspy/_components/skew_normal.py
Python
gpl-3.0
9,956
[ "Gaussian" ]
84dd44477fa28c0af2e4e82714b9adb1e3f8d61187b8acf87af794e78f87c595
# # CPM modulation and demodulation. # # # Copyright 2005-2007,2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # # See gnuradio-examples/python/digital for examples from math import pi import numpy from gnuradio import gr, filter from gnuradio ...
dl1ksv/gnuradio
gr-digital/python/digital/cpm.py
Python
gpl-3.0
8,295
[ "Gaussian" ]
ba22a77ff11cf0a39d93193c94b7ece40626fbb22957ad44a693d79d4fbd75d7