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
#!/usr/bin/python # # Copyright 2015 John Kendrick # # This file is part of PDielec # # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied wa...
JohnKendrick/PDielec
PDielec/CrystalOutputReader.py
Python
mit
14,704
[ "CRYSTAL" ]
6814bf8bc3fc907d56d36d37f949942bb5cea730c102b208bf2b0b9d14b52fe1
# Support for the Numato Galatea - PCI Express Spartan 6 Development Board # https://numato.com/product/galatea-pci-express-spartan-6-fpga-development-board from collections import OrderedDict from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform, iMPACT from third_party.litex.lite...
mithro/HDMI2USB-litex-firmware
platforms/galatea.py
Python
bsd-2-clause
8,108
[ "CRYSTAL" ]
dd9cd7fe9ea951287851dd7f3cbe785fcca02d335c37ff17dd7f2311dfa18676
# pylint: disable=bad-continuation """ Certificate HTML webview. """ import logging from datetime import datetime from uuid import uuid4 import six import pytz from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404, HttpResponse from django.templat...
appsembler/edx-platform
lms/djangoapps/certificates/views/webview.py
Python
agpl-3.0
33,078
[ "VisIt" ]
fe7fa2a55cb1bfb2db6b828bf51bfdd67e865d7bd99830bb1b0ed7c2861d4415
# Copyright 2017 Google LLC # # 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 writing, ...
google/decoupled_gaussian_process
exact_moment_matching_predictor.py
Python
apache-2.0
5,936
[ "ADF", "Gaussian" ]
205b840d36dda8b1accfbc7a6ff455b28f288a502ec9ed0321ece4d549afde58
# Copyright 2021, The TensorFlow Authors. # # 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 t...
tensorflow/privacy
tensorflow_privacy/privacy/dp_query/tree_aggregation_query.py
Python
apache-2.0
22,246
[ "Gaussian" ]
982d8609186c3ce1e783d929b2b46428da9c3da307e5deeba8eca627ecfa42cc
from rdkit.Chem import AllChem as Chem from rdkit import DataStructs from collections import OrderedDict import numpy class FP: def __init__(self, fp): self.fp = fp def __str__(self): return self.fp.__str__() def computeFP(x): # compute depth-2 morgan fingerprint hashed to 2048 bits f...
chembl/target_predictions
utils.py
Python
apache-2.0
858
[ "RDKit" ]
3b19623d41b4404da3e60abce7d55e8f0c4dbab486aa9c8d1b3a09f26ab8a358
#!/usr/bin/python ######################################################################## # 12 Jan 2015 # Patrick Lombard, Centre for Stem Stem Research # Core Bioinformatics Group # University of Cambridge # All right reserved. ######################################################################## import subproce...
pdl30/chipseq_misc
scatterplot_peaks.py
Python
gpl-2.0
3,620
[ "pysam" ]
e02691a50d8f88f0c6c3126652efd11f8171fd412c7ef87d4f41094c139e8dfb
# Copyright 2013-2021 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) class PyGpytorch(PythonPackage): """GPyTorch is a Gaussian process library implemented using PyTorch. GPyTorch is...
LLNL/spack
var/spack/repos/builtin/packages/py-gpytorch/package.py
Python
lgpl-2.1
1,184
[ "Gaussian" ]
2ac3b38b04a42b0b8d03d73f0ad884d884716d9b5eeec68fc84bf902b4ae3497
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ from __future__ import unicode_literals import os from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.core.urlresolvers import reverse from django.template import...
hellhovnd/django
tests/test_client_regress/tests.py
Python
bsd-3-clause
48,998
[ "VisIt" ]
e4f8c7ff6b3f3a63e28ad81d991de74f387ea88b1f42eeed3a27d11a2576d282
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
StackPointCloud/libcloud
libcloud/compute/drivers/azure.py
Python
apache-2.0
113,180
[ "VisIt" ]
7e22d193ab3bfe58d218c45eafb33e4b0fd4ddddcd7f645f72b145b8b64dbf82
# coding: utf-8 # Copyright (c) Materials Virtual Lab # Distributed under the terms of the BSD License. import warnings import logging import re from io import StringIO from veidt.kernel import get_kernel import pandas as pd from collections import OrderedDict, defaultdict from scipy.spatial.distance import pdist, squ...
materialsvirtuallab/veidt
veidt/potential/agni.py
Python
bsd-3-clause
19,583
[ "LAMMPS", "pymatgen" ]
304eaf47a52451c6e5073c504b7492abcc0b816327ea0b7533d1aae5ea4f947b
#!/usr/bin/env python ''' compliance_checker/protocols/netcdf.py Functions to assist in determining if the URL points to a netCDF file ''' def is_netcdf(url): ''' Returns True if the URL points to a valid local netCDF file :param str url: Location of file on the file system ''' # Try an obvious ...
petejan/compliance-checker
compliance_checker/protocols/netcdf.py
Python
apache-2.0
1,402
[ "NetCDF" ]
66933929c16753e72e3b53e8dfd66269fd648fb63c54a2f089dd3d4bca29692c
# -*- coding: utf-8 -*- # # rate_neuron_dm.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,...
weidel-p/nest-simulator
pynest/examples/rate_neuron_dm.py
Python
gpl-2.0
5,952
[ "NEURON" ]
b6c97726cebc22969f8fdeb43e242327acfabb46a5ef9e081b3ab67cea71470f
""" ################################################################################ # Copyright (c) 2003, Pfizer # Copyright (c) 2001, Cayce Ullman. # Copyright (c) 2001, Brian Matthews. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
cmsdaq/hltd
lib/SOAPpy-py3-0.52.24/src/SOAPpy/Types.py
Python
lgpl-3.0
52,492
[ "Brian" ]
0b60c28a7db93f49f3cc4ad60405f68d04ede7566c0ba93ddd9b4050334ff6f8
import json import os from django import template from django.conf import settings from django.templatetags.static import static register = template.Library() @register.simple_tag def bridge(filename): """ Add hash to filename for cache invalidation. Uses gulp-buster for cache invalidation. Adds current fil...
romantolkachyov/django-bridge
django_bridge/templatetags/bridge.py
Python
mit
992
[ "GULP" ]
2cd405288960eb1bc21295a71135cbabd14dca21d490380fd03acbbc747de976
#!/usr/bin/env python ######################################################################## # File : dirac-proxy-init.py # Author : Adrian Casajus ######################################################################## import os import sys import glob import time import datetime import DIRAC from DIRAC import...
fstagni/DIRAC
FrameworkSystem/scripts/dirac-proxy-init.py
Python
gpl-3.0
10,864
[ "DIRAC" ]
8e80ea5d6c3f10f3d11607b2cc52e7ee1d02b35db2f30702437f270cf051d534
# Copyright 2011 Rackspace # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2013 IBM Corp. # 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 # # ...
cloudbase/nova
nova/tests/unit/network/test_manager.py
Python
apache-2.0
172,055
[ "FEFF" ]
fa5ba6d426f3c68f4aaacbf2fcf724d683d88d2f1b92258758457e0dce4cf4ec
#!/usr/bin/python # -*- coding: utf-8 -* ############################################################################### # # # This file is part of 3d Brain Atlas Reconstructor # # ...
pmajka/3dbar
lib/pymodules/python2.6/bar/rec/formats.py
Python
gpl-3.0
5,278
[ "VTK" ]
a7431a677a322a8de647bbeb5dedd2659dcc57864c852de6d8d5576b233407fa
#!/usr/bin/env python # File created on 23 Nov 2011 from __future__ import division __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011-2013, The PICRUSt Project" __credits__ = ["Greg Caporaso","Morgan Langille"] __license__ = "GPL" __version__ = "1.0.0-dev" __maintainer__ = "Greg Caporaso" __email__ = "gregc...
wasade/picrust
picrust/util.py
Python
gpl-3.0
21,831
[ "VisIt" ]
cf1d2e9f08adc026acbb0aff2b9c29ef542b060875952772b11ae550c67548c7
from __future__ import print_function import sys import os import copy import random sys.path.insert(1, os.path.join("..","..")) import h2o from tests import pyunit_utils from h2o.grid.grid_search import H2OGridSearch from h2o.estimators.deeplearning import H2ODeepLearningEstimator def deeplearning_grid_cars(): ...
YzPaul3/h2o-3
h2o-py/tests/testdir_algos/deeplearning/pyunit_grid_cars_deeplearning.py
Python
apache-2.0
4,110
[ "Gaussian" ]
163367de4cbd0c323c9d199757f9941a2f65f83d0089709a9b3afd05f40d2209
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/plugins/kgsoftware/applications/tests/settings.py
Python
gpl-3.0
1,078
[ "Brian" ]
5f0076e8c10fec7f327b361634b2e41484091deb4a45ac6118899efbf0cc2f59
from SymbolTable import SymbolTable, VariableSymbol, FunctionSymbol import AST ttype = {} arithmetic_operators = ['+', '-', '*', '/', '%'] bitwise_operators = ['|', '&', '^', '<<', '>>'] logical_operators = ['&&', '||'] comparison_operators = ['==', '!=', '>', '<', '<=', '>='] assignment_operators = ['='] def all_o...
tmachows/kompilatory
lab04-interpreter/TypeChecker.py
Python
gpl-2.0
12,046
[ "VisIt" ]
9be0f7c2dbcc791334b62c1a9c5b647cd1e3b97fec6fc405a92c271357a26e61
import os import sys import argparse import pysam __author__ = 'Rob Edwards' """ Count the reads associated with one or more contigs. """ parser = argparse.ArgumentParser(description='Count reads to one or more contigs in a bam file') if __name__ == '__main__': parser = argparse.ArgumentParser(description='calcu...
linsalrob/EdwardsLab
JohnMolkili/count_reads_to_contigs.py
Python
mit
1,205
[ "pysam" ]
6d52b12827d2856b4910ca733b7c5865d1a5ce91105700f8c80e5611e84a6366
#-----------------------------------------------------------------------------# # Quarter Bot - A Twitter bot that flips a coin. # # emoji.py # # # ...
brainix/quarter-bot
emoji.py
Python
gpl-3.0
62,546
[ "CRYSTAL", "Octopus" ]
3d3a30cd61ae373b04263b162990881ab509688d92520a270918511916f00ab3
# coding: utf-8 # # Copyright 2012 NAMD-EMAP-FGV # # This file is part of PyPLN. You can get more information at: http://pypln.org/. # # PyPLN is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 o...
fccoelho/pypln.backend
tests/test_worker_extractor.py
Python
gpl-3.0
8,375
[ "NAMD" ]
b4401551e3c888650eca0c534ff960ec4924e6acdc33625dbc4a182a14d3dccc
import os, sys from collections import defaultdict import meta NO_ENTRY_NAME = 'no_db_entry_name' NO_ENTRY_RANK = 'no_db_entry_rank' ranks = { 'superkingdom' : 0, 'kingdom' : 1, 'subkingdom' : 2, 'superphylum' : 3, 'phylum' : 4,...
abulovic/pgnd-meta
meta/data/tax.py
Python
mit
12,071
[ "BLAST" ]
eb31435ebeaf290264aff519138f919939b2635b0733682321f141c9b55bb384
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
psci2195/espresso-ffans
testsuite/python/constraint_homogeneous_magnetic_field.py
Python
gpl-3.0
3,646
[ "ESPResSo" ]
8d8e30fca66c073b9bcc014aa8a769e7687a431d71bba76f3df2518868f02d6b
""" @name: PyHouse_Install/src/Install/test/win_pwd.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2015 by D. Brian Kimmel @license: MIT License @note: Created on Oct 27, 2015 @Summary: """ class pwd(object): """ """ def getpwnam(p_name): ...
DBrianKimmel/PyHouse_Install
src/Install/test/win_pwd.py
Python
mit
349
[ "Brian" ]
6242c8c6dfe984ee591c047d98862b32bcf559bdfa81a8c2847aa2bc8b090f3b
"""Dirty magic. Should never be used. Ever.""" # Answers SO questions # 54476645, 28244921 import ast import inspect from dapper.tools.colors import coloring def get_call(): """Get calling statement (even if it is multi-lined), 2 frames back. NB: returns full lines (may include junk before/after calls) ...
nansencenter/DAPPER
dapper/tools/magic.py
Python
mit
5,622
[ "VisIt" ]
24318a0d119c5e67adbf4226df3e7d7d10c752c951db92d03f94982b1546569f
from __future__ import print_function import time import numpy as np import sympy as sy from bokeh.objects import Plot, DataRange1d, LinearAxis, ColumnDataSource, Glyph, Grid, Legend from bokeh.widgetobjects import Slider, TextInput, HBox, VBox, Dialog from bokeh.glyphs import Patch, Line, Text from bokeh.document i...
the13fools/Bokeh_Examples
glyphs/taylor_server.py
Python
bsd-3-clause
3,532
[ "VisIt" ]
02589e819aba9473bca8464b38bcae820e97a0a98da198dd1e7dd2825014bdc8
#!/usr/bin/env python from distutils.core import setup setup(name='icolor', version='1.2', description='Interpolate ANSI colors in strings', author='Brian M Hunt', author_email='brianmhunt@gmail.com', url='https://github.com/brianmhunt/icolor', py_modules=['icolor'], classifi...
brianmhunt/icolor
setup.py
Python
mit
660
[ "Brian" ]
a4adba7b73a1373bceaae614023c04150a2ad9e923f61b890f7321e69e51d3ae
######################################################################## # # (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...
shawnsi/ansible
lib/ansible/galaxy/role.py
Python
gpl-3.0
11,993
[ "Brian", "Galaxy" ]
928d4d704f7618244b7f3de25946d8d14e39bb41803aab708edf0b978756f622
# pylint: disable=C0111 # pylint: disable=W0621 import time import os from lettuce import world, step from nose.tools import assert_true, assert_in # pylint: disable=no-name-in-module from django.conf import settings from student.roles import CourseRole, CourseStaffRole, CourseInstructorRole from student.models impo...
pku9104038/edx-platform
cms/djangoapps/contentstore/features/common.py
Python
agpl-3.0
12,528
[ "VisIt" ]
bc4a17bf5311b3c9801776d42bc3a878236469824fe85fd4dc0f2d84c78bb64e
symbols = [ ["Lower-case Greek", 5, r"""\alpha \beta \gamma \chi \delta \epsilon \eta \iota \kappa \lambda \mu \nu \omega \phi \pi \psi \rho \sigma \tau \theta \upsilon \xi \zeta \digamma \varepsilon \varkappa \varphi \varpi \varrho \varsigma \vartheta"""], ["Upper-case Gree...
bjornaa/gridmap
doc/sphinxext/math_symbol_table.py
Python
mit
6,887
[ "Bowtie" ]
54854650df9a77a29625c935619ce8a6bb77d909f076d0d74d07ae651c631656
""" Vector Autoregression (VAR) processes References ---------- Lutkepohl (2005) New Introduction to Multiple Time Series Analysis """ from __future__ import division from collections import defaultdict from cStringIO import StringIO import numpy as np import numpy.linalg as npl from numpy.linalg import cholesky as...
yarikoptic/pystatsmodels
statsmodels/tsa/vector_ar/var_model.py
Python
bsd-3-clause
50,782
[ "Gaussian" ]
f56534e61f6a7b7812fb27ac47b107425c9c51da1d946fdca2be8aa3010cbe0b
# coding: utf-8 from __future__ import division, unicode_literals """ This module defines classes representing non-periodic and periodic sites. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __email__ = "shyuep@gmail.co...
rousseab/pymatgen
pymatgen/core/sites.py
Python
mit
18,071
[ "pymatgen" ]
f2cc40977599d4af003564713d9b891d391b007011c6a5bc6fa5148dcf8cc69b
# coding: utf8 { '': '', ' Quotas: %(quotas)s x%(quota_amount).2f': ' Quotas: %(quotas)s x%(quota_amount).2f', ' Transaction number: %s': ' Transaction number: %s', '"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" is an optional expression lik...
reingart/gestionlibre
languages/es-es.py
Python
agpl-3.0
34,263
[ "VisIt" ]
400624179e0fb433f68a7b84804b93b1aeecd90a92cdb01ba402930a9cfbd4bf
#!/usr/bin/python2 #NOTE: Run this plot script from directory deft/papers/fuzzy-fmt with command # ./new-melting_anyplot_script.py [directory where data stored] --f[fixed quantity] [value of fixed quantity] --x[] --y[] #to create plots from plot.dat files already in the data directory #ie. ENTER ./new-melting_anyplot_s...
droundy/deft
papers/fuzzy-fmt/new-melting_anyplot_script.py
Python
gpl-2.0
6,245
[ "CRYSTAL", "Gaussian" ]
80deb16525c0ab60b6d5ff06a2592ab2a2e29c1572627a764b2aa722cf559723
import ast from .fixer import fix UNSUPPORTED_ASSIGNMENTS = ast.Subscript, ast.Attribute class AstProvider(object): def __init__(self): self.cache = {} def get(self, module): try: return self.cache[module.name] except KeyError: pass source = module.g...
baverman/supplement
supplement/tree.py
Python
mit
3,043
[ "VisIt" ]
308b9280b1a51ea822274d4c6c8f1b392dc4ed6f2f996a8dec6376f7837ccc0d
"""Imports and standardises data into crowdastro. Matthew Alger The Australian National University 2016 """ import argparse import csv import hashlib import logging import os from astropy.coordinates import SkyCoord import astropy.io.fits from astropy.io import ascii import astropy.utils.exceptions import astropy.wcs...
chengsoonong/crowdastro
crowdastro/import_data.py
Python
mit
34,208
[ "Galaxy" ]
3cf82b81d50d5fa2700f0d7ff999a8fedf0f68acb9d911cc6591d08aa43bec79
######################################################################## # File : SSHComputingElement.py # Author : Dumitru Laurentiu, A.T. ######################################################################## """ SSH (Virtual) Computing Element: For a given IP/host it will send jobs directly through ssh """ __R...
petricm/DIRAC
Resources/Computing/SSHComputingElement.py
Python
gpl-3.0
26,783
[ "DIRAC" ]
9494631d5be20c19fbb4096d9a15c7fc257f7f5e55fd4e449a4bf6d790c601cb
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html import sys ...
nuclear-wizard/moose
python/peacock/ExodusViewer/plugins/BackgroundPlugin.py
Python
lgpl-2.1
14,075
[ "MOOSE" ]
f1e7de7ff9f6c0296a880fd3a06529e3c6a31dce4b7787070dde0d281c2db85b
# Natural Language Toolkit: Corpus Reader Utilities # # Copyright (C) 2001-2016 NLTK Project # Author: Steven Bird <stevenbird1@gmail.com> # Edward Loper <edloper@gmail.com> # URL: <http://nltk.org/> # For license information, see LICENSE.TXT import os import bisect import re import tempfile from functools imp...
JFriel/honours_project
venv/lib/python2.7/site-packages/nltk/corpus/reader/util.py
Python
gpl-3.0
30,870
[ "VisIt" ]
b06721904f995197de52eb1eb35a6fb465cddd0380a4086cc80a4b13f123e861
######################################################################### # Ryuretic: A Modular Framework for RYU # # !/ryu/ryu/app/Ryuretic/Ryuretic_Intf.py # # Authors: # # Jacob Cox (jcox70@gatech.edu) ...
Ryuretic/RAP
ryu/ryu/app/Ryuretic/Ryuretic_Intf_v7.py
Python
apache-2.0
24,856
[ "VisIt" ]
eaee13e122cd7eeb3423c10cfcb5e39c0e40f01493b147b0ff3379ff48a0e826
import json import logging from edge.opensearch.isoresponse import IsoResponse from datetime import date, datetime class IsoResponseBySolr(IsoResponse): def __init__(self): super(IsoResponseBySolr, self).__init__() def generate(self, solrDatasetResponse, solrGranuleResponse = None, pretty=False): ...
dataplumber/edge
src/main/python/libraries/edge/opensearch/isoresponsebysolr.py
Python
apache-2.0
6,181
[ "NetCDF" ]
cb34ec6874db0f3a3f0fd88eebcfb85e6388b328f57fa79b20cdc9dd116028c8
#!/usr/bin/env python __author__ = "Jae Stutzman" __copyright__ = "Copyright 2012, Jae Stutzman" __license__ = "GPLv3" __version__ = "0.1.0" __email__ = "jaebird@gmail.com" __status__ = "Testing" """ Description: This script reads an XBee serial stream (config settings at the bottom of this script) being sent...
jaebird/mousewatcher
mousewatcher.py
Python
gpl-3.0
11,891
[ "Amber" ]
1a32af10cd58b78192f264c49f469a1f34fd1d6528d2eacd32ec04ad01a463f8
import itertools import matplotlib import numpy as np from scipy.optimize import curve_fit from scipy import interpolate from astropy import units from matplotlib import pyplot as plt # Imports for fast_running_median from collections import deque from itertools import islice from bisect import insort, bisect_lef...
PYPIT/PYPIT
pypeit/utils.py
Python
gpl-3.0
49,387
[ "Gaussian" ]
90e1095512054271c013ae38f046488ba50d7f5e14dd4b003a6ec8bacf62779f
# coding: utf-8 # # Copyright (C) 2014 Savoir-faire Linux Inc. (<www.savoirfairelinux.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, ...
sfl-drupal/docker-aegir-jenkins
deploy/fabfile.py
Python
gpl-2.0
25,241
[ "VisIt" ]
d5a80e6dab3ed6951f2af81e22068904a1d87911e9e18b89b51dc461589dc5c5
#! /usr/bin/env python # encoding: utf-8 # Thomas Nagy, 2010 (ita) """ This file is provided to enable compatibility with waf 1.5 It was enabled by default in waf 1.6, but it is not used in waf 1.7 """ import sys from waflib import ConfigSet, Logs, Options, Scripting, Task, Build, Configure, Node, Runner, TaskGen, Ut...
tommo/gii
support/waf/waflib/extras/compat15.py
Python
mit
9,285
[ "VisIt" ]
5d0ed5d264252d6c4c661c02b5e84a888b5ab250a04fc4ae5dbf039308066570
# MolMod is a collection of molecular modelling tools for python. # Copyright (C) 2007 - 2008 Toon Verstraelen <Toon.Verstraelen@UGent.be> # # This file is part of MolMod. # # MolMod 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...
woutersmet/Molmodsummer
lib/molmod/io/gaussian03/mkinput.py
Python
gpl-3.0
5,030
[ "Gaussian" ]
c597b71f252d5192e718c25632dbd9bb3c1c413fd775c6ded631801142ea6ebe
import glob import pandas as pd import numpy as np pd.set_option('display.max_columns', 50) # print all rows import os os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files") normalB = glob.glob("binary_position_RRBS_normal_B_cell*") mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27...
evanbiederstedt/RRBSfun
trees/chrom_scripts/normal_chr01.py
Python
mit
25,843
[ "MCell" ]
b8c7f1505618886aff4f551631472fe3219cabdb8838b3f0aeafcd2c1d05154a
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
dmlc/tvm
python/tvm/ir/base.py
Python
apache-2.0
7,780
[ "VisIt" ]
3a2a0d82e18720b25b7301c60093fd127ba5693d93a7620987ca7b370904e6c2
# -*- coding: utf-8 -*- from __future__ import division import numpy as np from scipy.stats import multivariate_normal from pgmpy.factors.distributions import BaseDistribution class GaussianDistribution(BaseDistribution): """ In its most common representation, a multivariate Gaussian distribution over ...
khalibartan/pgmpy
pgmpy/factors/distributions/GaussianDistribution.py
Python
mit
20,036
[ "Gaussian" ]
5ca9ea8c3fb0f2458eb7d640f880e604242850e54c0e78fb357320d3ef2d4382
#!/usr/bin/python # -*- coding: utf-8 -*- """ Ansible module to configure .deb packages. (c) 2014, Brian Coca <briancoca+ansible@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 Softwa...
camradal/ansible
lib/ansible/modules/system/debconf.py
Python
gpl-3.0
5,870
[ "Brian" ]
8170345569c56102025dc0ce3dc78261809cafe3738034deaff7df9326151d87
""" =============== GMM covariances =============== Demonstration of several covariances types for Gaussian mixture models. See :ref:`gmm` for more information on the estimator. Although GMM are often used for clustering, we can compare the obtained clusters with the actual classes from the dataset. We initialize th...
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/examples/mixture/plot_gmm_covariances.py
Python
mit
4,257
[ "Gaussian" ]
9c1d6f04025b97898cffd19ac6efbac2df9644350065193d26ae7452d76acff7
''' Created on Aug 5, 2014 @author: gearsad, alucard @change: Fixed GetOrientation(), Re-factored Code, added FK [Gears] @version: v0.5 ''' import vtk class SceneObject(object): ''' This is a basic superclass for any object that will be included in the 3D scene. ''' def __init__(self, renderers, paren...
GearsAD/semisorted_arnerve
arnerve/scene/SceneObject.py
Python
mit
2,944
[ "VTK" ]
33af763880dd8ba622fa1f2e5803e215312e42fdcda877e91a878ee7c37d7462
from __future__ import absolute_import import fluent.syntax.ast as FTL from fluent.migrate.helpers import transforms_from from fluent.migrate.helpers import VARIABLE_REFERENCE, TERM_REFERENCE from fluent.migrate import REPLACE, COPY index = "firefox/mobile/index.lang" mobile_2019 = "firefox/mobile-2019.lang" def migr...
hoosteeno/bedrock
lib/fluent_migrations/firefox/mobile/index.py
Python
mpl-2.0
7,671
[ "VisIt" ]
e307084dd721377ebe5335767c3c03a280c32e9b4af00d4254746fb940dba6f5
""" Tests for the memory estimators on JK objects """ import psi4 import pytest from .utils import * def _build_system(basis): mol = psi4.geometry(""" Ar 0 0 0 Ar 0 0 5 Ar 0 0 15 Ar 0 0 25 Ar 0 0 35 """) #psi4.set_options({"INTS_TOLERANCE": 0.0}) basis = psi4.core.B...
jturney/psi4
tests/pytests/test_jkmemory.py
Python
lgpl-3.0
1,305
[ "Psi4" ]
b91349a1de885da769aa9d73cfc096bbfaf9e8c991bc763046839713c6c5fa8e
""" wc_server v0.01 web client server Copyright 2011 Brian Monkaba This file is part of ga-bitbot. ga-bitbot 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 ...
stahn/ga-bitbot
wc_server.py
Python
gpl-3.0
5,063
[ "Brian" ]
1f0b691f8af14099384b5d6b488628d0c139691d517f3901fe48a2a49d51f0af
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
eadgarchen/tensorflow
tensorflow/contrib/timeseries/python/timeseries/ar_model.py
Python
apache-2.0
31,904
[ "Gaussian" ]
0aa9d187f70caa2b333a566a6e6283b5a01014cf7cb234be0cdb4f25fc20caf6
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005, 2006 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Soft...
andrebellafronte/stoq
stoqlib/gui/slaves/branchslave.py
Python
gpl-2.0
2,676
[ "VisIt" ]
d70f768b773c894405b80717d158eb24fd36f27f0bbc40b0e99cfdeba4a2c213
# -*- coding: utf-8 -*- u"""Shadow execution template. :copyright: Copyright (c) 2017 RadiaSoft LLC. All Rights Reserved. :license: http://www.apache.org/licenses/LICENSE-2.0.html """ from __future__ import absolute_import, division, print_function from pykern import pkio from pykern.pkcollections import PKDict from...
radiasoft/sirepo
sirepo/template/shadow.py
Python
apache-2.0
29,799
[ "CRYSTAL" ]
2f5c10696c849b6deab1d83accf31698f61490f6d66ba5fb1907b48a90548316
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2012-2013 Esteban Tovagliari, Jupiter Jazz Limited # Copyright (c) 2014-2016 Esteban Tovagliari, The appleseedhq Organization # # P...
docwhite/appleseed
src/appleseed.python/logging.py
Python
mit
2,551
[ "VisIt" ]
3d225da51c5a1bdbb6cf82bfdf94aff15947478df0c3bf0c5e8023bd047cfa7e
#!/usr/bin/env python # 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 # # U...
sunqm/pyscf
pyscf/tools/test/test_fcidump.py
Python
apache-2.0
2,967
[ "PySCF" ]
ec12c347a77ddb93c591d9d8fb85555f73df10b3c57bdcbf43e9687111690c7d
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com) # 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. """Classes corresponding to Newick trees, also used for Nexus trees. See classes in `Bi...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Phylo/Newick.py
Python
gpl-2.0
1,112
[ "Biopython" ]
7774ac0624eabe70ac18e9e320d489c5f5a5e92ff4fe8cb895508e5f558af8d0
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ btab format, used by BLAST and NUCMER, found spec here: <http://www.agcol.arizona.edu/~matthew/formats.html> btab format used by aat, found spec here: <http://ergatis.diagcomputing.org/cgi/documentation.cgi?article=components&page=aat_aa> """ import sys from jcvi.fo...
sgordon007/jcvi_062915
formats/btab.py
Python
bsd-2-clause
6,660
[ "BLAST" ]
4c58eed4694e7a11a8898d066d573972fe93d2b257cb46e173c20041ed76b2bf
# -*- coding: utf-8 -*- """ sphinx.writers.manpage ~~~~~~~~~~~~~~~~~~~~~~ Manual page writer, extended for Sphinx custom nodes. :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ from docutils import nodes try: from docutils.writers.ma...
devs1991/test_edx_docmode
venv/lib/python2.7/site-packages/sphinx/writers/manpage.py
Python
agpl-3.0
11,052
[ "VisIt" ]
bfea26110de611d572c3612825c3549370b6b8e3f5722117c330352d4d84e2b7
# -*- coding: utf-8 -*- # # String constants for the RHN Register TUI/GUI. # Copyright (c) 2000--2015 Red Hat, Inc. # # Author: # James Slagle <jslagle@redhat.com> import gettext t = gettext.translation('rhn-client-tools', fallback=True) _ = t.ugettext COPYRIGHT_TEXT = _(u"Copyright © 2006--2010 Red Hat...
davidhrbac/spacewalk
client/debian/packages-already-in-debian/rhn-client-tools/src/up2date_client/rhnreg_constants.py
Python
gpl-2.0
20,209
[ "VisIt" ]
d449611b88bf14d2415283630b99c685b13881f5f3312164427c6b97e3fb0e9e
""" ========================================= Segmenting the picture of Lena in regions ========================================= This example uses :ref:`spectral_clustering` on a graph created from voxel-to-voxel difference on an image to break this image into multiple partly-homogeneous regions. This procedure (spe...
JT5D/scikit-learn
examples/cluster/plot_lena_segmentation.py
Python
bsd-3-clause
2,421
[ "Brian" ]
facf65b980bc9891fa47ed027d22d6f1f7251cb7a149376d436389cd25915892
#!/usr/bin/env python2 # -*- coding: utf-8 -*- ################################################## # GNU Radio Python Flow Graph # Title: NOAA APT Satellite Receiver # Author: Brian McLaughlin # Generated: Thu Mar 31 13:26:49 2016 ################################################## import threading if __name__ == '__mai...
SpinStabilized/stem_station
grc_files/apt_rx.py
Python
gpl-3.0
27,999
[ "Brian" ]
bbd66f090d352ba80ab1d8565cc71972458ee9ae44e2e7163e1d5eb597bfe45b
# proxy module from __future__ import absolute_import from mayavi.scripts.util import *
enthought/etsproxy
enthought/mayavi/scripts/util.py
Python
bsd-3-clause
88
[ "Mayavi" ]
e8bf2234608071c274c1a59a0f15c660e1fc3aab715bf8c3e1e1eefe323a90d3
# Copyright 2004-2010 PyTom <pytom@bishoujo.us> # # 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, mer...
MSEMJEJME/ReAlistair
renpy/atl.py
Python
gpl-2.0
45,015
[ "VisIt" ]
bddf22d9d6557f6a42774978e9ea457cb2f8619bb24d884e29a609a392e944ff
"""View routing.""" import calendar import datetime import json import os import threading import flask from flask import (Blueprint, current_app, redirect, render_template, redirect, request, url_for) from sqlalchemy import func from app import global_stats, parse from app.helpers import add_mont...
gbasood/vgstation-statistics-viewer
app/public/views.py
Python
mit
8,987
[ "MOE" ]
34afb369b0129bf55c2b233b5d8d5e657b312aefb87b419f8c05be6dafac6be2
# shamelessly copied from pliExpertInfo (Vali, Mirakels, Littlesat) from enigma import iServiceInformation, iPlayableService from Components.Converter.Converter import Converter from Components.Element import cached from Components.config import config from Tools.Transponder import ConvertToHumanReadable from Tools.Ge...
Open-Plus/opgui
lib/python/Components/Converter/PliExtraInfo.py
Python
gpl-2.0
25,040
[ "Galaxy" ]
fff895bbdd4b707aef7e387a59a859be5d21527b55bd4745e9b2144264198271
#!/usr/bin/env python3 desc="""Calculate completeness of transcripts Assumes sense read orientation (as in direct RNA-seq ONT). Support spliced alignments and mapping quality filtering. By default ignores secondary alignments, duplicates and quality failed reads. Takes into account only the first read from pair. US...
lpryszcz/bin
bam2transcript_completeness.py
Python
gpl-3.0
8,163
[ "pysam" ]
093a04c1c9fcb94644c6893b1c4689ccbb72174167621b949db96507addfbdaf
#!/usr/bin/python import argparse import hashlib import sys import os import subprocess import signal import getpass import simplejson from termcolor import colored import ConfigParser import StringIO import functools import time import random import string from configobj import ConfigObj import tempfile import pwd, g...
live4thee/zstack-utility
zstackctl/zstackctl/ctl.py
Python
apache-2.0
375,657
[ "VisIt" ]
40230361ad8eeb302fa39de35c8ec5b86684b72706e19a942d726f2308c9b6f3
import numpy as np import subprocess as subp import matplotlib.pyplot as plt import matplotlib.cm as cm import mayavi.mlab as mlab from matplotlib.patches import Ellipse import ipdb, re import os.path import time from js.utils.plot.colors import colorScheme from js.utils.config import Config2String from vpCluster....
jstraub/dpMM
python/evalSphereMMsynthetic.py
Python
mit
14,704
[ "Mayavi" ]
52ad56d7f5611fd2a5ae0072f7a56d22723e14f1b6d6c03d61c40c32db20ba76
#!/usr/bin/env python3 # # Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
fweik/espresso
maintainer/CI/dox_warnings.py
Python
gpl-3.0
4,195
[ "ESPResSo" ]
141fd833f87d00ce33d036a7525c791fcbc3bdae5eebf33ba6f8d15b2d2ce60d
""" KeepNote MultiEditor widget in main window This editor contain multiple editors that can be switched based on the content-type of the node. """ # # KeepNote # Copyright (c) 2008-2009 Matt Rasmussen # Author: Matt Rasmussen <rasmus@mit.edu> # # This program is free software; you can redistrib...
reshadh/Keepnote-LaTeX
keepnote/gui/editor_multi.py
Python
gpl-2.0
6,682
[ "VisIt" ]
e2b848427dc4423727a1dd0cc2c31cffc90a62cdd3142ce3918f88bc9cac7146
import json def path_ID(start, end): out_arr = [start, end] out_arr.sort() return out_arr[0] + "-" + out_arr[1] with open("walked_paths.json") as f: paths = json.load(f) with open("../data/speeding_graph_data.json") as f: speeding_data = json.load(f) with open("../old/id_data.json", "r") as f...
SvenvDam/programmeerproject
Pre-processing/path_busyness.py
Python
unlicense
1,529
[ "VisIt" ]
9b30b02585c97dfdcedbff6a2563feaa7517bd15c98a6d5127af0d89bd0300ed
#!/usr/bin/env python # -*- coding: utf-8 -*- # conda execute # env: # - python >=3 revisados01 = [ ] revisados02 = [ ] revisados03 = [ ] revisados04 = [ ] #1305 últimos de primero revisados05 = [ 'Liga de la Justicia', 'Leyenda negra española', 'Tarzán', 'Dick Grayson', 'República Cromañón', 'María Díaz...
races1986/SafeLanguage
CEM/_s/revisados.py
Python
epl-1.0
23,672
[ "MOE" ]
10e9ac02a0efef46648b902058be870939a8b610e0bd0a26756f7729ba329c02
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import warnings from math import pi import numpy as np import pytest from monty.os.path import which from pymatgen.core.periodic_table import Element from pymatgen.core.lattice import...
davidwaroquiers/pymatgen
pymatgen/analysis/tests/test_local_env.py
Python
mit
53,478
[ "CRYSTAL", "Jmol", "pymatgen" ]
6a3440fb47fd02bea6b21aee49d90bbfcfaaa9c1080a5855e76760683797c248
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
annarev/tensorflow
tensorflow/python/ops/image_grad_test_base.py
Python
apache-2.0
25,063
[ "Gaussian" ]
c0f2c743135df020fd891ae4de5d4305fda265b66fde24e095a6d5efadfb5e72
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net> # Copyright: (c) 2015, Brian Coca <bcoca@ansible.com> # Copyright: (c) 2017, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ im...
tsdmgz/ansible
lib/ansible/modules/files/find.py
Python
gpl-3.0
12,572
[ "Brian" ]
5cb9a9c194f1565d6cc2cb094d735463bc977d33e4a43b87610643bac3a28bac
from functools import wraps import multiprocessing import numpy import logging import geodat.units logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) try: import pyferret PYFERRET_INSTALLED = True _IMPORT_PYFERRET_ERROR = None except ImportError: logger.warning("Failed to...
kitchoi/geodat
geodat/pyferret_func.py
Python
mit
11,096
[ "NetCDF" ]
366d309ebd5ae6dfc0abe68191dfc2678f52cda2dd1972236527a8530c4f6445
import collections import contextlib import heapq import inspect import traceback import weakref import six import chainer from chainer import _backprop_utils from chainer import backend from chainer.backends import cuda from chainer import configuration from chainer import function_hook from chainer.graph_optimizati...
okuta/chainer
chainer/function_node.py
Python
mit
53,362
[ "VisIt" ]
4fd92aaeffc782bcbd62c65e2758b472d233235578cee93459397fcc51165274
""" Tool for converting from a suntans to untrim netcdf formats """ from sunpy import Spatial, Grid import othertime from datetime import datetime from netCDF4 import Dataset import numpy as np from untrim_tools import untrim_ugrid as ugrid import pdb #Dictionary containing the suntans-untrim equivalent grid variabl...
UT-CWE/Hyospy
Hyospy_ensemble/lib/SUNTANS/UNTRIM/suntans2untrim.py
Python
mit
9,710
[ "NetCDF" ]
c540080792bd94e7e1b990e8dc9a4a3fcf00ca0ebb0bca47dddae6d55d9c12a8
#%pylab inline import matplotlib.pyplot as plt import numpy as np from scipy.optimize import curve_fit from scipy.special import cbrt import os import sys sys.path.append("..") from PythonLibrary.residuals import * from PythonLibrary.selectDomain import selectdomain from PythonLibrary.estError import est_error fro...
bzcheeseman/phys211
Neutron_Studies/data_processing.py
Python
lgpl-3.0
14,509
[ "Gaussian" ]
6837137b4bc79e81b76b9212e7ff0425d6ff8927fdecde5b983bbb45556c15e2
import os, sys, site, re, urllib site.addsitedir(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../core')) from db import SQLite3 from db.mapper import Pages from summary import * from classifier import get_words, FisherClassifier from pprint import pprint from datetime import datetime pages = [ ['htt...
after12am/expecto
machine_learning/feed_classifier/src/web/train.py
Python
mit
75,349
[ "Brian", "CRYSTAL" ]
fa9efdcc7857dcc5df0301c748e9e2a57b2c5277051dce94d347409306e86a09
#!/usr/bin/env python import os import vtk from vtk.util.misc import vtkGetDataRoot from vtk.util.misc import vtkGetTempDir VTK_DATA_ROOT = vtkGetDataRoot() VTK_TEMP_DIR = vtkGetTempDir() file0 = VTK_TEMP_DIR + '/ugFile0.vtu' file1 = VTK_TEMP_DIR + '/ugFile1.vtu' file2 = VTK_TEMP_DIR + '/ugFile2.vtu' # read in some...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/IO/XML/Testing/Python/TestXMLUnstructuredGridIO.py
Python
gpl-3.0
2,784
[ "VTK" ]
92cda563f1a1546cc0476c767421ccc2d7f49bb2e47f2bf24ef74b093f2a4e02
""" The Script class provides a simple way for users to specify an executable or file to run (and is also a simple example of a workflow module). """ import os import sys import re import stat import distutils.spawn from DIRAC.Core.Utilities.Subprocess import shellCall from DIRAC i...
vmendez/DIRAC
Workflow/Modules/Script.py
Python
gpl-3.0
4,256
[ "DIRAC" ]
75fd1ab2d38b04dd4d5ee9faf772029f21677fdf3a4c159e955945ee033da5d6
""" A buffered iterator for big arrays. This module solves the problem of iterating over a big file-based array without having to read it into memory. The ``Arrayterator`` class wraps an array object, and when iterated it will return subarrays with at most ``buf_size`` elements. The algorithm works by first finding a...
illume/numpy3k
numpy/lib/arrayterator.py
Python
bsd-3-clause
5,149
[ "NetCDF" ]
d9db88c3477ce47825a436f01437496b44209a7d163699428203ec353f424363
# 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/analysis/Autocorrelation.py
Python
gpl-3.0
2,306
[ "ESPResSo" ]
f22f9ab22b17831bd96f8078da3b4142b17cf260e43cd99fea3cb0cf6ae049b6
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
mistio/libcloud
libcloud/common/google.py
Python
apache-2.0
30,831
[ "VisIt" ]
98ade432fd6181605fd50ad306c7f9ad88fbb791e8721bd81681ed8c2741e585
import numpy as np import scipy.signal as signal from scipy.special import erf from scipy.interpolate import interp1d import matplotlib.mlab as ml from ..misc import nextpow2 from ..simulate import SimLightcurve from math import factorial def estimate_noise_ps(lightcurve, estfrac=0.5): """ Use the high frequen...
BayesFlare/bayesflare
bayesflare/noise/noise.py
Python
gpl-2.0
10,350
[ "Gaussian" ]
b4309b6d40570799fa0f42d775e470b81ce17d94d250b3c456154346211a69f5
# -*- coding: utf-8 -*- """ pbm_ImageAnalysis is an analysis module for ACQ4. This module provides: 1. Bleaching correction of image stacks 2. Normalization of image stacks 3. ROI's on Z-stacks (or T-stacks), including saving and retrieving the ROI files (the format is the same as in PyImageAnalysis...
mgraupe/acq4
acq4/analysis/modules/pbm_ImageAnalysis/pbm_ImageAnalysis.py
Python
mit
145,987
[ "Gaussian" ]
90af00e62c4584387710dbc988a5390f83eea96a376463488cede7f1ccfce3cf
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ========================================================================= Program: Visualization Toolkit Module: TestNamedColorsIntegration.py Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or ...
hlzz/dotfiles
graphics/VTK-7.0.0/IO/Core/Testing/Python/TestGlobFileNames.py
Python
bsd-3-clause
3,266
[ "VTK" ]
f58cb180b55d4a205696e28a75962cc4762c1870cedafd6786982688d4a175a1
""" sender - SimplE Neuron DEleteR Deletes the least significant neurons. Value of neuron is defined as sum of absolute values of weights outgoing from neuron divided by sum of absolute values of weights outgoing from entire layer. """ import numpy as np from athenet.layers import FullyConnectedLayer...
heurezjusz/Athenet
athenet/algorithm/simple_neuron_deleter.py
Python
bsd-2-clause
3,741
[ "NEURON" ]
5667a1960cd4ddce88b90441eefa169fcb560d0a2c7dec0202f9afade9d68d37
# -*- coding: utf-8 -*- """Utilities for PyBEL testing.""" from uuid import uuid4 from requests.compat import urlparse from ..manager import Manager from ..manager.models import Namespace, NamespaceEntry from ..struct import BELGraph from ..struct.summary import ( get_annotation_values_by_annotation, iter_a...
pybel/pybel
src/pybel/testing/utils.py
Python
mit
1,985
[ "Pybel" ]
81ddeca2c9e2a56a509eddec3787fbf19cba04abfc59f250cda0f0d7dd4c81f3
#! /usr/bin/env python if __name__ == '__main__': print "Importing..." from enthought.mayavi import mlab from enthought.mayavi.modules.surface import Surface import numpy import sys print " done." if(len(sys.argv) != 5): raise RuntimeError("Wrong number of arguments!\nUsage: grid_to_m.py sol.vtu var_nam...
cdiener/bar1_project
tasks/grid_to_m.py
Python
gpl-3.0
1,273
[ "Mayavi" ]
c474849d24406f32b2dd7bfe802bf876a36057e82e855a25459fa78d186e0a21