text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# -*- coding: utf-8 -*- # Copyright 2019 The GraphicsFuzz Project 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
google/graphicsfuzz
gfauto/gfauto/fuzz_spirv_amber_test.py
Python
apache-2.0
20,676
[ "Amber" ]
ca70baa7b08581dc0bba562638187ed9a0261ea4b3ae72bbd8fbeabf67a97f49
# -*- coding:utf-8 -* import requests import json import Public_Base_Method as pbm import datetime #获取拜访列表 def getUserVisitPlanInfos(baseurl,cookie): print "获取默认拜访计划列表" url = "http://"+baseurl+"/app/visit/gaea/client/v2/getUserVisitPlanInfos.action" headers = { "Content-Type": "application/x-www...
NJ-zero/Android
requests_demo/visit/Web_Method_Visit.py
Python
mit
11,594
[ "VisIt" ]
68422e3c5664bfba897fd594d3e9e659938613420ba9ee964e38824d4353b981
#GLM bench import os, sys, time, csv, socket, string sys.path.append('../py/') sys.path.extend(['.','..']) import h2o_cmd, h2o, h2o_hosts, h2o_browse as h2b, h2o_import as h2i, h2o_rf, h2o_jobs csv_header = ('h2o_build','nMachines','nJVMs','Xmx/JVM','dataset','nTrainRows','nTestRows','nCols','trainParseWallTime','nfol...
rowhit/h2o-2
bench/BMscripts/glmBench.py
Python
apache-2.0
9,671
[ "Gaussian" ]
3235b8365473caa933d573af94de6c3e6b9dd24992ceb0d3eb1eb06cc96b76ed
try: paraview.simple except: from paraview.simple import * from paraview import coprocessing #-------------------------------------------------------------- # Code generated from cpstate.py to create the CoProcessor. # ----------------------- CoProcessor definition ----------------------- def CreateCoProcessor():...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/Applications/ParaView/Testing/XML/CatalystWaveletCoprocessing.py
Python
gpl-3.0
3,129
[ "ParaView" ]
812cc0f55b67b688257e45f4942e41b79f60b22615ca71faa48a3458e19a7fb0
from __future__ import absolute_import from __future__ import print_function import unittest2 as unittest import os import numpy as np from pymatgen.analysis.elasticity.elastic import ElasticTensor from pymatgen.analysis.elasticity.strain import Strain, IndependentStrain, Deformation from pymatgen.analysis.elasticity...
aykol/pymatgen
pymatgen/analysis/elasticity/tests/test_elastic.py
Python
mit
8,549
[ "pymatgen" ]
30ed242ed627802547d9bc45fb5b04de1475e08ac3bce8e23b14097384f5ca57
import numpy as np from matplotlib.testing.decorators import image_comparison, knownfailureif from matplotlib.delaunay.triangulate import Triangulation from matplotlib import pyplot as plt import matplotlib as mpl def constant(x, y): return np.ones(x.shape, x.dtype) constant.title = 'Constant' def xramp(x, y): ...
alephu5/Soundbyte
environment/lib/python3.3/site-packages/matplotlib/tests/test_delaunay.py
Python
gpl-3.0
6,676
[ "Gaussian" ]
e7503bb945b3684b2b728f6d0aae9cc1d9397ca7637ff1199892e8f2dbb7c80e
""" Connected components. """ import itertools import logging import networkx as nx import numpy as np from matplotlib.patches import Circle, FancyArrowPatch from monty.json import MSONable, jsanitize from networkx.algorithms.components import is_connected from networkx.algorithms.traversal import bfs_tree from pyma...
gmatteo/pymatgen
pymatgen/analysis/chemenv/connectivity/connected_components.py
Python
mit
42,541
[ "pymatgen" ]
0a3e8bc51f5f0811e61fd6df3809ddd1e918761b3efcdbcc2d3cd09c21677ada
from io import StringIO import os import unittest from antlr3.tree import (CommonTreeNodeStream, CommonTree, CommonTreeAdaptor, TreeParser, TreeVisitor, TreeIterator) from antlr3 import CommonToken, UP, DOWN, EOF from antlr3.treewizard import TreeWizard class TestTreeNodeStream(unittest.Test...
ekcs/congress
thirdparty/antlr3-antlr-3.5/runtime/Python3/unittests/testtree.py
Python
apache-2.0
44,438
[ "VisIt" ]
067ecf10c1a8f0c977ae7c4d761b0291fb6f4d51b9cee1b08444038e2e1f175e
# Recorded script from Mayavi2 from numpy import array try: engine = mayavi.engine except NameError: from mayavi.api import Engine engine = Engine() engine.start() if len(engine.scenes) == 0: engine.new_scene() # ------------------------------------------- from mayavi.modules.iso_surface import Is...
FreeON/spammpack
spammsand/stabilized_paper_1/plots/plot_z_7_tube_5.py
Python
bsd-3-clause
3,646
[ "Mayavi", "VTK" ]
14916c949a82e7e8eff9971fd832f19aca33350a2ac63615a376fb82aee55c50
#!/usr/bin/python # # Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Original Author: Brian Harring <ferringb@chromium.org> # Maintainer: Marc MERLIN <merlin@chromium.org> """Cheesy script that a...
windyuuy/opera
chromium/src/third_party/chromite/scripts/license-generation/process-pkg.py
Python
bsd-3-clause
10,115
[ "Brian" ]
d350de41a908e718f987cf9233b66bc2b7ff88cd0d235a51f53056852ee091f5
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Brian Coca <bcoca@ansible.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1...
t794104/ansible
lib/ansible/modules/system/systemd.py
Python
gpl-3.0
21,322
[ "Brian" ]
82edbacf271d4c43c20c7aefc402c15b19daa4ff17a5917158efee1053c23cb0
from cardboard import types from cardboard.ability import ( AbilityNotImplemented, spell, activated, triggered, static ) from cardboard.cards import card, common, keywords, match @card("Fight or Flight") def fight_or_flight(card, abilities): def fight_or_flight(): return AbilityNotImplemented re...
Julian/cardboard
cardboard/cards/sets/invasion.py
Python
mit
64,390
[ "CRYSTAL" ]
3cd4d9457509a829b8e3cf500a8a45c6b7bb61ac44483d3328fe659333baca06
# GromacsWrapper: top.py # Copyright (c) 2012 Oliver Beckstein <orbeckst@gmail.com> # Copyright (c) 2010 Tsjerk Wassenaar <tsjerkw@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ Gromacs TOP file format ======================= Classes ------- .. au...
Becksteinlab/GromacsWrapper
gromacs/fileformats/top.py
Python
gpl-3.0
52,189
[ "Gromacs" ]
a816f7d70e48e15691964edca99eb5e8890e37e9f277c96da42d829a9d38b8ac
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
ghchinoy/tensorflow
tensorflow/python/ops/distributions/normal.py
Python
apache-2.0
9,816
[ "Gaussian" ]
9cf7fbf0ee3524cc455d2202e8075ef3502ff87ae9999769021a69f288fa6d08
# -*- coding: utf-8 -*- # remoteghost """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public L...
thica/ORCA-Remote
src/interfaces/remoteghost/interface.py
Python
gpl-3.0
14,601
[ "ORCA" ]
ec76cf4ac4c99162a46c777996ee7b4ba302daa0f5dab5cab1d5f7ecfbb64958
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
Adnn/GTD_Tasks
main.py
Python
mit
4,687
[ "VisIt" ]
f338be266bc7fd350c7ed73c091775cef745e86373b9b1c011e46d54a68dad46
# 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 PyGriddataformats(PythonPackage): """The gridDataFormats package provides classes to unify...
iulian787/spack
var/spack/repos/builtin/packages/py-griddataformats/package.py
Python
lgpl-2.1
1,110
[ "MDAnalysis" ]
b4bbb545bfb3365cd4456a690168d41433ae3c57bd20b307339ecbd32c7526a6
# -*- coding:utf-8 -*- from cgi import escape from .response import Response """ http://www.w3schools.com/tags/ref_httpmessages.asp 1xx: Information Message: Description: 100 Continue The server has received the request headers, and the client should proceed to send the request body 101 Switc...
mapix/WebHello
WebHello/exception.py
Python
bsd-3-clause
6,809
[ "VisIt" ]
847e26d65357e71b4b1832fef3b64a0dd239d6395b4de3a9dfda67b36263a234
import numpy as np from sklearn import preprocessing from datetime import datetime def _corr(C): R=np.empty_like(C) #compute correlation from covariance for i,ci in enumerate(C): for j,cij in enumerate(ci): R[i,j] = cij / np.sqrt(C[i,i] * C[j,j]) return R def pcaFun(x, whiten=False,e=0, type='cov', method='s...
Chiroptera/QCThesis
MyML/cluster/Horn.py
Python
mit
8,889
[ "Gaussian" ]
5e6187451a3b7fc3dcd248a5777707a43b930af8c01f702877fa94b97ae8b5c7
"""annotate fusion outputs from STAR and Tophat Supported: oncofuse: http://www.unav.es/genetica/oncofuse.html github: https://github.com/mikessh/oncofuse """ from __future__ import print_function import os import pysam from bcbio.utils import file_exists from bcbio.distributed.transaction import file_transaction...
Cyberbio-Lab/bcbio-nextgen
bcbio/rnaseq/oncofuse.py
Python
mit
7,112
[ "pysam" ]
69553b23ae6ab1f6e50f33f83c410d333eccbb30433026de43710419d4d45be7
#!/usr/bin/env python # Copyright 2014 the V8 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. # This script retrieves the history of all V8 branches and # their corresponding Chromium revisions. # Requires a chromium checkout ...
thurt/arangodb
3rdParty/V8-4.3.61/tools/release/releases.py
Python
apache-2.0
17,625
[ "VisIt" ]
1d2deaa1b3447785659239bd77bebf23c3236fd4bc60fc47701934e15c3afb91
import tensorflow as tf import awesome_gans.modules as t tf.set_random_seed(777) # reproducibility class InfoGAN: def __init__( self, s, batch_size=16, height=32, width=32, channel=3, sample_num=10 * 10, sample_size=10, df_dim=64, ...
kozistr/Awesome-GANs
awesome_gans/infogan/infogan_model.py
Python
mit
7,757
[ "Gaussian" ]
afcd5c69dc92264d022b1a8fe892d10e90f60b3bd76666cb5b0c90fb5fb43146
import argparse from coalib.misc import Constants from coalib.collecting.Collectors import get_all_bears_names class CustomFormatter(argparse.RawDescriptionHelpFormatter): """ A Custom Formatter that will keep the metavars in the usage but remove them in the more detailed arguments section. """ ...
meetmangukiya/coala
coalib/parsing/DefaultArgParser.py
Python
agpl-3.0
8,821
[ "VisIt" ]
6afb4d9d8a5d6e8f660c1481c924b4e1bb9e6428aad8649352ff269310795cb3
#!/usr/bin/env python """ .. py:currentmodule:: FileFormat.Results.test_DetectorParameters .. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca> Tests for module `DetectorParameters`. """ # Script information for the file. __author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)" __version__ ...
drix00/pymcxray
pymcxray/FileFormat/Results/test_DetectorParameters.py
Python
apache-2.0
7,029
[ "CRYSTAL" ]
7ba06d24a2018024fd8988f94451d2f932f7559fcb0156fd24f179f883ae5bff
import json import re from corehq.apps.data_interfaces.forms import CaseRuleCriteriaForm, validate_case_property_name from corehq.apps.data_interfaces.models import CreateScheduleInstanceActionDefinition from corehq.apps.groups.models import Group from crispy_forms import layout as crispy from crispy_forms import boots...
dimagi/commcare-hq
corehq/messaging/scheduling/forms.py
Python
bsd-3-clause
145,922
[ "VisIt" ]
a43b5b33c8b973fa63a5c95ff2439ddf820d53003cc23a1186a7aa86de17ddc2
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 # # Unle...
vulpecula/kubernetes
hack/verify-flags-underscore.py
Python
apache-2.0
8,826
[ "VisIt" ]
8a6e89a49d580c24db6cca81b93497283c6a79fb7b6776345a5f7f5d287f839d
"""Contains the Tilt mode code""" # tilt.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf from collections import OrderedDict from mpf.system.mode import M...
qcapen/mpf
mpf/modes/tilt/code/tilt.py
Python
mit
7,381
[ "Brian" ]
35f6e0158f93cc275e0d1fd14fc96b19e967c571497815fccf638129db95c115
# Copyright (C) 2010, Jesper Friis # (see accompanying license files for details). """Utility tools for convenient creation of slabs and interfaces of different orientations.""" import numpy as np def get_layers(atoms, miller, tolerance=0.001): """Returns two arrays describing which layer each atom belongs ...
grhawk/ASE
tools/ase/utils/geometry.py
Python
gpl-2.0
19,223
[ "ASE", "CRYSTAL" ]
44a1a83527e8010b97611e96170d39847283bf24eb4c011862bd022c3d1238c2
#!/usr/bin/python """2d tuning model """ import matplotlib as mpl # we do this because sometimes we run this without an X-server, and this backend doesn't need # one. We set warn=False because the notebook uses a different backend and will spout out a big # warning to that effect; that's unnecessarily alarming, so we h...
billbrod/spatial-frequency-preferences
sfp/model.py
Python
mit
66,846
[ "Gaussian" ]
06de2e3815e6df522b9dd4b2d0a812f437134fc05e13016479cc76b3b86c2e4e
#!/usr/bin/env python # -*- coding: utf-8 -*- # (c) 2012-2014 Michal Kalewski <mkalewski at cs.put.poznan.pl> # # This file is a part of the Simple Network Simulator (sim2net) project. # USE, MODIFICATION, COPYING AND DISTRIBUTION OF THIS SOFTWARE IS SUBJECT TO # THE TERMS AND CONDITIONS OF THE MIT LICENSE. YOU SHO...
mkalewski/sim2net
sim2net/_version.py
Python
mit
2,043
[ "VisIt" ]
260476525d2bf0f5b416540d6c08d59571bada85154eaf786663663482164ca1
# ---------------------------------------------------------------------------- # Copyright (c) 2015, The WGS-HGT Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # -------------------------------------------------...
ekopylova/WGS-HGT
distance-method/test_distance_method.py
Python
bsd-3-clause
34,895
[ "BLAST", "scikit-bio" ]
cbdaad324a386f13aa5f52a41181c3e6c9baf46c41e5b4e120c3d7d0dc3544db
# # Copyright 2016 The BigDL 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 to in ...
intel-analytics/BigDL
python/orca/example/ray_on_spark/rllib/multi_agent_two_trainers.py
Python
apache-2.0
9,249
[ "ORCA" ]
0aa2f1dcbe1d7adf11e838057ede16d392e01fe8dbd7a8c46a9fe30e41c77c4d
''' Some tests for filters ''' from __future__ import division, print_function, absolute_import import sys import numpy as np from numpy.testing import (assert_equal, assert_allclose, assert_array_equal, assert_almost_equal) from pytest import raises as assert_raises import scipy.ndimage a...
lhilt/scipy
scipy/ndimage/tests/test_filters.py
Python
bsd-3-clause
16,614
[ "Gaussian" ]
c8195fb4c0f01757a4a65d49169125c786097f8957e7bb767edd6b54524ebc00
import numpy as np class Nonlinearity(object): """Base class for layer nonlinearities. :param boolean stateful: True if this nonlinearity has internal state (in which case it needs to return ``d_input``, ``d_state``, and ``d_output`` in :meth:`d_activation`; see :class:`Continuous` for an ...
drasmuss/hessianfree
hessianfree/nonlinearities.py
Python
bsd-2-clause
8,892
[ "Gaussian" ]
a4c631df5785a089e310b2968089334b53f088446c40daba567d8eaf0bb7e080
"""Germline and somatic calling with Strelka2: https://github.com/illumina/strelka """ import collections import os import six import sys import numpy as np from bcbio import utils from bcbio.log import logger from bcbio.distributed.transaction import file_transaction from bcbio.heterogeneity import chromhacks from bc...
a113n/bcbio-nextgen
bcbio/variation/strelka2.py
Python
mit
21,105
[ "ADF" ]
6e2b0b77c97097c7145f91eaecf575bc1a4e46bd7e633b5de978d79791a7bbfb
#!/usr/bin/env python """ Add or Modify a Group info in DIRAC Usage: dirac-admin-add-group [options] ... Property=<Value> ... Arguments: Property=<Value>: Other properties to be added to the Group like (VOMSRole=XXXX) Example: $ dirac-admin-add-group -G dirac_test """ from __future__ import absolute_import fro...
yujikato/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_add_group.py
Python
gpl-3.0
2,785
[ "DIRAC" ]
893cc19156d61c6b28c7c58e9aa99786f103b45c9e36d5d931aeca5245ef23b5
import numpy as np def hello(name='no name'): """ name is welcome by saying hello input: name - the welcome name """ print('Hello {name}!'.format(**locals())) print('2015-3-2, 2:45pm') def check_mol_similarity(): from rdkit import Chem from rdkit import DataStructs from rdkit.Ch...
jskDr/jamespy_py3
jlib.py
Python
mit
5,307
[ "RDKit" ]
92083169aba2a3d3ad5b33764bebe8b8aeeb2b0155dc63887f11ad063ed445ca
#!/usr/bin/env python # -*- coding: utf-8 -*- try: from setuptools import setup except ImportError: from distutils.core import setup readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') requirements = [ 'transaction', ] test_requirements = [ # TODO:...
petrilli/pyramid_transactional_celery
setup.py
Python
bsd-3-clause
1,492
[ "Amber" ]
bd100a06d38611565081b46ecce9981c367a73ac2993de7213e5feedf4745252
#!/usr/bin/env python """ refguide_check.py [OPTIONS] [-- ARGS] Check for a Scipy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. Example of usage:: $ python refguide_check.py optimize Note that this is a helper script to be able to check if things ar...
jamestwebber/scipy
tools/refguide_check.py
Python
bsd-3-clause
31,511
[ "Gaussian" ]
bcb5fce4522ef1c44f559c91bdd3f87e7501df790b153de081ecd18f12e0837c
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.rename_column(u'clinics_visit', 'survey_sent', 'old_survey_sent') db.a...
myvoice-nigeria/myvoice
myvoice/clinics/migrations/0022_auto__add_field_visit_welcome_sent__add_field_visit_old_survey_sent__c.py
Python
bsd-2-clause
14,393
[ "VisIt" ]
0fb68913c8ec0b7994a7c04be1539891af99bec38cb018f825c456e1106f6a83
# # File : mkdir.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # 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 th...
weety/rt-thread
tools/mkdist.py
Python
apache-2.0
15,207
[ "CDK" ]
01d1cc2c99e2b48f1a85383bf23d5ec89deea4db78365de5986e5cb86733ddb3
#!/usr/bin/env python ######################################################################## # $HeadURL$ ######################################################################## __RCSID__ = "$Id$" import sys import DIRAC from DIRAC.Core.Base import Script Script.parseCommandLine( ignoreErrors = True ) args = Script....
vmendez/DIRAC
FrameworkSystem/scripts/dirac-monitoring-get-components-status.py
Python
gpl-3.0
1,586
[ "DIRAC" ]
a32e3272dc49e4f59bb481ae004d7263340d29126d01ce479bd96198190e63f1
"""Ensemble square-root filters for the 1-d Kuramoto-Sivashinsky eqn""" import numpy as np import sys from KS import KS from enkf import serial_ensrf, bulk_ensrf, etkf, letkf, etkf_modens,\ serial_ensrf_modens, bulk_enkf, getkf, getkf_modens np.seterr(all='raise') # raise error when overflow occurs if...
jswhit/pyks
KSensrf.py
Python
mit
12,224
[ "Gaussian" ]
72e23a138d1b1f1f85ec4fb7b268eada5af726b8bd51b383305d280a495ee8be
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2013 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...
andrebellafronte/stoq
stoqlib/lib/threadutils.py
Python
gpl-2.0
1,955
[ "VisIt" ]
54b37cebf19487ca7f1a68b8b9c3148ae91441fe6da0dc5753b0e2f4a6acc5ac
# # handlers.py # Handling for actual web server bits # import socket, sys, json, os, time from BaseHTTPServer import BaseHTTPRequestHandler from sendfile import sendfile # When moving data ourselves, how much to move at a time Bufsize = 64*1024 # Tell if this pathname looks questionable def sketchy(fn): # No ch...
vandys/chore
handlers.py
Python
unlicense
16,814
[ "GULP" ]
7e62079c37f068512bfbdc34f5acd05ec5ffccf3faf4bcbe06c04e36ce954116
#! /usr/bin/env python3 import os import sys import stat import math from SWEET import * p = JobGeneration() # # Run simulation on plane or sphere # #Edit parameters using existing test setup p = CompileSWEPlane(p) # # Activate Fortran source # #p.compile.fortran_source = 'enable' # # MPI? # #p.compile.sweet_mpi ...
schreiberx/sweet
benchmarks_plane/normal_mode_analysis_modewise/jobs_create.py
Python
mit
5,978
[ "Gaussian" ]
2d3a9937d887f727e14614fb28ce54e73402f3fdcb63e421128605bef956b6c7
## Copyright (c) 2001-2014, Scott D. Peckham ## January 2013 (Removed "get_port_data" calls, etc.) ## January 2009 (converted from IDL) ## May, August 2009 ## May 2010 (changes to initialize() and read_cfg_file() #----------------------------------------------------------------------- # Notes: This file defines ...
mperignon/component_creator
topoflow_creator/topoflow/infil_base.py
Python
gpl-2.0
61,082
[ "NetCDF" ]
0a7d868e316c11341f8ab48fcc81cfb14825eec323e39a6c1319f68d32d7e29d
from __future__ import absolute_import import astropy.units as _u from . import simulations as _ps import numpy as _np import scipy as _scipy from scipy import special as _sp from astropy import constants as _const from astropy.cosmology import Planck15 as _cosmo from astropy.convolution import convolve as _convolve fr...
pmyates/plutokore
plutokore/radio.py
Python
gpl-3.0
19,004
[ "Gaussian" ]
990fc919882276a1ba662ccc82af0ebbc448958257c90ef76a29dfc1bca6817f
"""utils.py: Utility functions for moose. Last modified: Mon Feb 23, 2015 08:34PM """ from __future__ import print_function __author__ = 'Subhasis Ray, Aditya Gilra, Dilawar Singh' __copyright__ = "Copyright 2013, NCBS Bangalore" __credits__ = ["NCBS Bangalore", "Bhalla Lab"] __li...
subhacom/moose-core
python/moose/utils.py
Python
gpl-3.0
46,375
[ "MOOSE", "NEURON" ]
668a28a16c6c46f426c65ccc2a7944269f04439121a4dda14c65147d3e28a9b0
# Copyright 2011 The scales 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 to in w...
Cue/scales
src/greplin/scales/samplestats_test.py
Python
apache-2.0
2,240
[ "Gaussian" ]
8b500721f638348d4ef58ac874a71ee34a7c5f2edaca14da702d4c6fc35b92b8
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforge/simulationanalysis/summaries_new/__init__.py
Python
bsd-2-clause
25,130
[ "NEURON" ]
6da115ed269e10e1240350cacce994618b3db2c1eda4b63703b4141bfd23da9a
# -*- coding: utf-8 -*- """This module contains functions to summarize the provenance (citations, evidences, and authors) in a BEL graph.""" import itertools as itt import logging import typing from collections import Counter, defaultdict from datetime import datetime from typing import Iterable, List, Mapping, Optio...
pybel/pybel-tools
src/pybel_tools/summary/provenance.py
Python
mit
9,593
[ "Pybel" ]
1f296c7a77478be5ff1d0e8c4fd642267a45f18bf8f6726d1a9d654399acd67e
'''Module with classes and methods to analyse and process exported geomodel grids Created on 21/03/2014 @author: Florian Wellmann (some parts originally developed by Erik Schaeffer) ''' import numpy as np import matplotlib.pyplot as plt # import mpl_toolkits # from matplotlib.ticker import MultipleLocator, FormatStrF...
flohorovicic/pygeomod
build/lib.linux-x86_64-2.7/pygeomod/geogrid.py
Python
mit
26,339
[ "VTK" ]
ea071853908ae002f1b1101434368ac9ef66ed70ab4ed3bcdd8609b14aa12f79
"""The WiderFace dataset. """ # standard imports import os import logging # third party imports import numpy as np # toolbox imports from dltb.base.data import Data from dltb.base.image import BoundingBox, Region, Landmarks from dltb.tool.classifier import ClassScheme from dltb.datasource import Imagesource, Section...
Petr-By/qtpyvis
dltb/thirdparty/datasource/widerface.py
Python
mit
9,539
[ "VisIt" ]
04c9d467a8aba5744ff63e5a8b8eb453e4558c6a7e4c8c70a1f61f980a4ac4ae
""" Command Line Parameters for creating the Replication transformations Script """ from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Security.ProxyInfo import getProxyInfo from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getVOMSVOForGroup class Params(object): """Parameter Object""" def __i...
fstagni/DIRAC
TransformationSystem/Utilities/ReplicationCLIParameters.py
Python
gpl-3.0
5,563
[ "DIRAC" ]
d27d4e50e5af27fa97885969e47526b7f1c428c7d22dfcb2cbf5efadc60beee5
""" Distance based spatial weights """ __author__ = "Sergio J. Rey <srey@asu.edu> " import pysal import scipy.spatial from pysal.common import * from pysal.weights import W from scipy import sparse __all__ = ["knnW", "Kernel", "DistanceBand"] def knnW(data, k=2, p=2, ids=None): """ Creates nearest neighbo...
AlanZatarain/pysal
pysal/weights/Distance.py
Python
bsd-3-clause
14,395
[ "Gaussian" ]
02ec5570cbd63b64a853e9b75be42e25dbb343a379f12e6f2c5bef0b6b42cff3
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
kain88-de/mdanalysis
testsuite/MDAnalysisTests/topology/test_xyz.py
Python
gpl-2.0
1,659
[ "MDAnalysis" ]
e7d0ec5b5d9fa53a9eefc3c4b482981e780154143dfaf8b5e6b7202d683479c4
# (c) 2014, Brian Coca, Josh Drake, et al # # 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) any later version. ...
wulczer/ansible
v2/ansible/plugins/cache/memory.py
Python
gpl-3.0
1,260
[ "Brian" ]
940a0224d67978f8b32a38e332ca0a77490d8ec1289e4cf901d09b69693f2ea3
# -*- coding: utf-8 -*- """ End-to-end tests for LibraryContent block in LMS """ import ddt import textwrap from nose.plugins.attrib import attr from ..helpers import UniqueCourseTest, TestWithSearchIndexMixin from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage fro...
solashirai/edx-platform
common/test/acceptance/tests/lms/test_library.py
Python
agpl-3.0
13,509
[ "VisIt" ]
3e47bf46f7c4a0644c2736b30d70a05e7d6c4d97a7be2465b88e2a8ca080117a
# coding: utf8 { ' (leave empty to detach account)': ' (leave empty to detach account)', ' Module is the main communications hub of the Sahana system. It is used to send alerts and/or messages using SMS & Email to various groups and individuals before, during and after a disaster.': 'モジュールでは、Sahanaに登録された様々な組織がお互いに連絡をとり...
dotskapes/dotSkapes
languages/ja.py
Python
mit
280,403
[ "VisIt" ]
1113054bd6db47cbe37a1b7985f59f911a75b4f8e0be116422bc035f6b372851
#!env/python3 # coding: utf-8 try: import ipdb except ImportError: pass import os import datetime import sqlalchemy import subprocess import reprlib import gzip from pysam import VariantFile import json from core.managers.imports.abstract_import_manager import AbstractImportManager, AbstractTranscriptDataIm...
REGOVAR/Regovar
regovar/core/managers/imports/vcf_manager.py
Python
agpl-3.0
32,501
[ "pysam" ]
9d403779524325d1b3fd271768c3b71068796c4ea30552173b9d97227f764af2
import dialogue import adonthell # -- pygettext support def _(message): return message class orloth_start (dialogue.base): text = [None,\ _("This appears to be the Innkeeper and owner of the place. He seems lost in thought and it looks as if he hasn't slept much lately. His worried face brightens up as you approac...
ksterker/wastesedge
scripts/dialogues/orloth_start.py
Python
gpl-2.0
25,550
[ "VisIt" ]
f7c594fedf06c2ea89792fc18ea316691b279f2852465e410e6ebe293567a09d
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. import logging import threading import time from concurrent.futures._compat import reraise try: from collections import namedtuple except ImportError: from concurrent.futures._compat import namedtuple __au...
rembo10/headphones
lib/concurrent/futures/_base.py
Python
gpl-3.0
20,793
[ "Brian" ]
177edf7fe468d7fa60ebf9240cff1fdd8c5752bf00a68ffefb05f8f2ee9b026d
import numpy as np # Although reimporting * is not generally recommended # we have to do it here so that it has all the mathematical # functions ready to use when evaluating the equations. # An alternative is to check for all the maths functions, such # as exp, log, trigonometric etc.. and convert them to sympy from s...
PublicHealthEngland/pygom
pygom/model/_model_verification.py
Python
gpl-2.0
4,787
[ "Avogadro" ]
9e97a6bc1059cccb8a1b8198cc908d53297635c92e36d53417b16d7d9fe5b13f
# -*- coding: utf-8 -*- import pygame import random import os import classes.board import classes.extras as ex import classes.game_driver as gd import classes.level_controller as lc import classes.drw.img class Board(gd.BoardGame): def __init__(self, mainloop, speaker, config, screen_w, screen_h): self....
imiolek-ireneusz/eduActiv8
game_boards/game092.py
Python
gpl-3.0
20,058
[ "Jaguar", "MOOSE" ]
4ec28fca430702b68353822b1216206ca3af01458eded99ab51658f7f9a9480d
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** # ...
SKIRT/PTS
magic/tests/Sources/test.py
Python
agpl-3.0
16,743
[ "Galaxy" ]
3e92c6ce7c802baa3d1f247487ab84e4ee735fc288ea1796fec4d08a1409ae17
'''Yo! Let's start Helloworld of TF = MNIST! xD ''' softmax (multinomial logistic) regression The actual code for this tutorial is very short, and all the interesting stuff happens in just three lines. However, it is very important to understand the ideas behind it: both how TensorFlow works and the core machine ...
iitjee/SteppinsMachineLearning
Tensorflow/01 TF Fundamentals/05 MNIST 01.py
Python
apache-2.0
3,077
[ "NEURON" ]
408fe298657ff12628a6dcdd912161a0b99edc36e4452d09e3261ea35568d6ad
#!/usr/bin/python # -*- coding: utf-8 -*- import wx import wx.lib.filebrowsebutton as filebrowse import os, sys # For Image Processing import numpy from osgeo import gdalnumeric from osgeo import gdal import gdal_merge as g_m from GDAL_functions import * # For icons, pngs, etc coming from images.py from wx import Im...
YannChemin/wxGIPE
proc_layer_stack.py
Python
unlicense
7,647
[ "NetCDF" ]
4944c5f877a5940b9ee47226a4d75d8124ee5dd2504bb11724a488203dbe6b52
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=2> # Investigate incorrect bounding box for CDIP data # <markdowncell> # The ISO metadata records generated by `ncISO` are incorrect for many CDIP time series, because `ncISO` is computing the bounds from the first variables it finds with `stan...
rsignell-usgs/notebook
cdip_missing_values.py
Python
mit
1,720
[ "NetCDF" ]
607ac347199d0880309790672c8da6adb36bad86cb2ebe1b6954279229e6f386
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals """ This module defines useful physical constants and conversion factors. All units are in SI units except for conversion factors. .. attribute:: ELECTRON_CHARGE or e ...
migueldiascosta/pymatgen
pymatgen/core/physical_constants.py
Python
mit
1,635
[ "pymatgen" ]
6c1fad952bed5e71f2202a3faf7df35962dc07b70ed378e6d47fd4cc782015f4
from __future__ import absolute_import import numpy as np from mdtraj.testing import eq from numpy.testing import assert_approx_equal from numpy.testing import assert_array_almost_equal from sklearn.pipeline import Pipeline from sklearn.decomposition import PCA as PCAr from msmbuilder.example_datasets import AlanineD...
msultan/msmbuilder
msmbuilder/tests/test_decomposition.py
Python
lgpl-2.1
6,992
[ "MDTraj" ]
6cf34f4ff2bb8d62557ad879ae70e28e3bec659c4f0c1dae6130d283dae5c43d
''' Deep Q-learning approach to the cartpole problem using OpenAI's gym environment. As part of the basic series on reinforcement learning @ https://github.com/vmayoral/basic_reinforcement_learning Inspired by https://github.com/VinF/deer @author: Victor Mayoral Vilches <victor@erlerobotics.com> ''' import ...
vmayoral/basic_reinforcement_learning
tutorial5/tests/dqn-cartpole-rework.py
Python
gpl-3.0
9,465
[ "NEURON" ]
fcdb3cc6137795644906b2a8cdb6b77694a29fe0a03313b696aedfe1053c9b7f
# # QAPI types generator # # Copyright IBM, Corp. 2011 # # Authors: # Anthony Liguori <aliguori@us.ibm.com> # # This work is licensed under the terms of the GNU GPLv2. # See the COPYING.LIB file in the top-level directory. from ordereddict import OrderedDict from qapi import * import sys import os import getopt impor...
xatier/qemu
scripts/qapi-types.py
Python
gpl-2.0
7,089
[ "VisIt" ]
0fb5696784030e9e846ffa50a69abc866dd6ee428939cb0dc4790609fa814b2a
######################################################################## # $HeadURL $ # File: CleanReqDBAgent.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/05/17 08:31:26 ######################################################################## """ :mod: CleanReqDBAgent ===================== .. modul...
Sbalbp/DIRAC
RequestManagementSystem/Agent/CleanReqDBAgent.py
Python
gpl-3.0
6,032
[ "DIRAC" ]
29c16736be6b6a7c4606486dd7ec815861e6d6346399b49b5266622a5d44c4b6
""" Class for outlier detection. This class provides a framework for outlier detection. It consists in several methods that can be added to a covariance estimator in order to assess the outlying-ness of the observations of a data set. Such a "outlier detector" object is proposed constructed from a robust covariance es...
chaluemwut/fbserver
venv/lib/python2.7/site-packages/sklearn/covariance/outlier_detection.py
Python
apache-2.0
6,632
[ "Gaussian" ]
802fa3a886d81d302eb1e1a76a09f03c65483c7d2d4f8b6e6756c241c6039517
""" ResourceManagementDB: This module provides definition of the DB tables, and methods to access them. Written using sqlalchemy declarative_base For extending the ResourceStatusDB tables: 1) In the extended module, call: from DIRAC.ResourceStatusSystem.DB.ResourceManagementDB import rmsBase, ...
yujikato/DIRAC
src/DIRAC/ResourceStatusSystem/DB/ResourceManagementDB.py
Python
gpl-3.0
18,859
[ "DIRAC" ]
99099e1f5991a7e2f96ce29a9d8db04529c21958d31d2568955900380cbd0331
from datetime import datetime, timedelta from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import logging import math from os import path import re import random import smtplib import socket import string import uuid from peewee import fn import peewee import tornado.web import tornad...
NBISweden/swefreq
backend/application.py
Python
gpl-3.0
26,441
[ "VisIt" ]
39b19e27bce988be1b5f7db9d1b2ca4055139fff2494ee005b3c15f4c865fb8b
import os import pprint import sys import shutil import qcengine as qcng import psi4 import pytest pp = pprint.PrettyPrinter(width=120) __all__ = [ 'a2a', 'compare', 'compare_integers', 'compare_strings', 'compare_values', 'compare_arrays', 'compare_recursive', 'compare_molrecs', ...
jgonthier/psi4
tests/pytests/utils.py
Python
lgpl-3.0
2,967
[ "Psi4" ]
c898d8591243d5313e68ce263482ee5556a5abfb76cb22372a2677697fa71a1b
from collections import defaultdict import random from sympy.core import Basic, C from sympy.core.compatibility import is_sequence, iterable #logically, these belong here from sympy.core.compatibility import product as cartes, combinations, combinations_with_replacement from sympy.utilities.exceptions import SymPyDepr...
ichuang/sympy
sympy/utilities/iterables.py
Python
bsd-3-clause
35,569
[ "VisIt" ]
62daa889c3093900ee08796f104f5951e3fc3c47a73b3e5168de45c9e7a62203
__author__ = 'Kris & Christian' from django.utils import unittest from django.test.client import Client from django.test.client import RequestFactory from django.test import TestCase from app.models import * from app.views import * from django.contrib.auth.models import User import json #class MyFuncTestCase(unittest....
topched/CMPUT410W14-Group-Project
mynode/app/tests.py
Python
apache-2.0
12,699
[ "MOE" ]
575818f66a052b9d9944d6f9223c241938395dd0adfa60be0dc8cd14010ac0dd
""" potentialAGB_Brazil_app_v4.py ================================================================================ Produce layers for restoration opportunity cross-comparison against other data layers (e.g. WRI world of opportunity maps) """ # Import general libraries import os import sys import numpy as np import xarr...
DTMilodowski/EOlab
src/potentialAGB_Brazil_app_v4.py
Python
gpl-3.0
7,366
[ "NetCDF" ]
18e2f22d84de6329cfb0def1bfa5c4a43195fd443800f3d672f0b3f11afb608f
# Copyright 2013 University of Maryland. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE.TXT file. import os import re import selenium.common.exceptions import framework class Exploit (framework.Exploit): attributes = {'Name' : "OSVD...
UMD-SEAM/bugbox
framework/Exploits/OSVDB_63552_MSF.py
Python
bsd-3-clause
2,076
[ "VisIt" ]
e2a5d5d6f472a1392d7372b67e7b128103daca405bb1fe88806429fecf6bcf60
#!/usr/bin/python # -*- coding: utf8 -*- # # bullseye - ccd laser beam profilers (pydc1394 + chaco) # Copyright (C) 2012 Robert Jordens <robert@joerdens.org> # # 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 Fr...
jordens/bullseye
setup.py
Python
gpl-3.0
2,943
[ "Gaussian" ]
c26ad8ffbd46fc9549176119dab51b3323e236697bf6a393ff3cd3f4933f1eaf
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import os from unittest import skipIf from ddt import data, ddt, unpack from mock import patch from six.moves import range from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_au...
cpennington/edx-platform
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
45,837
[ "VisIt" ]
5658220868570c5814d27265e16b4d42c3efcc4accd562bca24334589e3bbe76
from tool_shed.base.twilltestcase import ShedTwillTestCase, common, os import logging log = logging.getLogger( __name__ ) column_repository_name = 'column_maker_0150' column_repository_description = "Add column" column_repository_long_description = "Compute an expression on every row" convert_repository_name = 'conv...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/test/tool_shed/functional/test_1150_prior_installation_required.py
Python
gpl-3.0
9,164
[ "Galaxy" ]
bf9dd812f1fe9eaabd9268bf2fa1d226179955e05dd4094929c2d30c3ac56af1
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines classes to represent the density of states, etc. """ import functools import warnings from typing import Dict import numpy as np from monty.json import MSONable from scipy.constants.co...
gmatteo/pymatgen
pymatgen/electronic_structure/dos.py
Python
mit
39,367
[ "DIRAC", "Gaussian", "VASP", "pymatgen" ]
0eef8a644a6eb89d4cd1e2cc9d7028f19845f3e854a824c3fe383f1a4e0ffe49
import json from DIRAC import gLogger from DIRAC.Core.Utilities import Time from DIRAC.RequestManagementSystem.Client.ReqClient import ReqClient from WebAppDIRAC.Lib.WebHandler import WebHandler, asyncGen class RequestMonitorHandler(WebHandler): AUTH_PROPS = "authenticated" @asyncGen def web_getReques...
DIRACGrid/WebAppDIRAC
src/WebAppDIRAC/WebApp/handler/RequestMonitorHandler.py
Python
gpl-3.0
7,647
[ "DIRAC" ]
f9af2aeb75ea37b6eb9a72bb96134f04b0e92dc4cc3fcbe6a0638b6f5f5b1b70
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkUnstructuredGridReader(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
chrisidefix/devide
modules/vtk_basic/vtkUnstructuredGridReader.py
Python
bsd-3-clause
516
[ "VTK" ]
710925a509a09edf7da8da354ac8473f54e1149d47ec7d3d21e497660b251b9a
""" Views for the verification flow """ import datetime import decimal import json import logging from pytz import UTC from ipware.ip import get_ip from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.mail import send_mail from django.core.urlresolvers import rev...
martynovp/edx-platform
lms/djangoapps/verify_student/views.py
Python
agpl-3.0
50,765
[ "VisIt" ]
dd9bc923fe05e79871860435e366a499f81bee3ec1cc5fe5afb547a7a28e1c40
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
thica/ORCA-Remote
src/ORCA/interfaces/InterfaceConfigDiscover.py
Python
gpl-3.0
8,796
[ "ORCA" ]
725af58c991d3347adde5cf606821108aeadad79b738be916b916729525ca3ce
#!/usr/bin/env python import RPi.GPIO as GPIO import time # Using physical pin locations GPIO.setmode(GPIO.BOARD) # Pin header IDs for LEDs and button YellowLed = 35 RedLed = 33 GreenLed = 37 safeCrossing = 38 button = 11 # Set up LEDs GPIO.setup(RedLed, GPIO.OUT) GPIO.setup(YellowLed, GPIO.OUT) GPIO.setup(GreenLed,...
SimonDevon/pi-simple-trafficlights
trafficlights.py
Python
mit
2,778
[ "Amber" ]
cb16b58e8935ccafe6d71a5abda6ffbe81fdde08c3695588ce4f2c1f28c103ae
# Orca # # Copyright 2010 Consorcio Fernando de los Rios. # Author: Javier Hernandez Antunez <jhernandez@emergya.es> # Author: Alejandro Leiva <aleiva@emergya.es> # # 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 ...
pvagner/orca
src/orca/settings_manager.py
Python
lgpl-2.1
21,040
[ "ORCA" ]
9470892fefd395cb4c45df42b5c6efd5ae12fea8fef2bb43196bc49ae35d564e
import numpy as np from scipy.spatial.distance import cdist class gaussian_kde(object): """Representation of a kernel-density estimate using Gaussian kernels. Kernel density estimation is a way to estimate the probability density function (PDF) of a random variable in a non-parametric way. `gaussian_k...
cbonnett/Photo_z_validation
weighted_kde.py
Python
mit
11,254
[ "Gaussian" ]
5169572aee65fd7ce0902ec086d348c4ca6965978be53b6cf23e15350eeb29d8
import vtk, qt, ctk, slicer import numpy import time from slicer.ScriptedLoadableModule import * class PickAndPaint(ScriptedLoadableModule): def __init__(self, parent): ScriptedLoadableModule.__init__(self, parent) parent.title = "Pick 'n Paint " parent.categories = ["Shape Analysis"] ...
luciemac/PickAndPaintExtension
PickAndPaint/PickAndPaint.py
Python
apache-2.0
46,043
[ "VTK" ]
2b0b436c73507ba6fc02e091f97864d9a00f74c3a074fe0db984574cef1c5f73
# -*- coding: utf-8 -*- # Copyright 2014-2015 VPAC # # Karaage documentation build configuration file, created by # sphinx-quickstart on Thu Jan 16 14:28:57 2014. # # This file is execfile()d with the current directory set to its containing # dir. # # Note that not all possible configuration values are present in this ...
monash-merc/karaage
docs/programmer/conf.py
Python
gpl-3.0
9,322
[ "Brian" ]
114b7549f92497107f458069f622d90c3ffa1a4be5872ffab6aacfbd6c6ba4c9
# # # Copyright 2009-2016 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (...
wpoely86/easybuild-framework
easybuild/tools/filetools.py
Python
gpl-2.0
52,731
[ "NetCDF" ]
ca530ffa17d9dc64fe7d52007fb9b8de02598b7202dda6a728968917623e8b24
""" A number of functions that enhance IDLE on Mac OSX. """ import sys import tkinter from os import path import warnings def runningAsOSXApp(): warnings.warn("runningAsOSXApp() is deprecated, use isAquaTk()", DeprecationWarning, stacklevel=2) return isAquaTk() def isCarbonAquaTk(root)...
FireWRT/OpenWrt-Firefly-Libraries
staging_dir/target-mipsel_1004kc+dsp_uClibc-0.9.33.2/usr/lib/python3.4/idlelib/macosxSupport.py
Python
gpl-2.0
8,544
[ "VisIt" ]
4f2852eb98166970ded55306694480cf92f21fa5097deed48b182a92dd3b050f
<<TableOfContents>> = OTRS HOW TO= http://wiki.otterhub.org/index.php?title=Installation_on_Debian_6_with_Postgres http://hirantha.wikidot.com/setting-up-nginx-for-otrs == install == * emerge -av otrs yaml dev-perl/Crypt-SSLeay dev-perl/GD dev-perl/GDGraph dev-perl/Archive-Zip dev-perl/Net-DNS {{{ $ pwd /var/lib/otrs...
loolwv7/scripts
Linux_Tricks/OTRS_how_to.py
Python
gpl-3.0
5,993
[ "VisIt" ]
8e94ef65646ed11831ac6ae4e1defcebae8efe3e51947cdcf53975d14ba72946
#!/usr/bin/env python import numpy as np import argparse import json import os import random import ray from ray import tune from ray.tune.schedulers import PopulationBasedTraining def pbt_function(config, checkpoint_dir=None): """Toy PBT problem for benchmarking adaptive learning rate. The goal is to opti...
ray-project/ray
python/ray/tune/examples/pbt_function.py
Python
apache-2.0
4,326
[ "Gaussian" ]
be4e1b1ff63592a139261bb613243097d042d657504a03fcdc370926b6de841f
""" Processes for Weather Classification Author: Nils Hempelmann (nils.hempelmann@lsce.ipsl.fr) Author: Cathy Nangini """ from pywps.Process import WPSProcess import logging logger = logging.getLogger(__name__) class WClassProcess(WPSProcess): def __init__(self): WPSProcess.__init__( self...
sradanov/flyingpigeon
flyingpigeon/processes/wps_weather_classification.py
Python
apache-2.0
9,393
[ "NetCDF" ]
6cba381f5c3dd14e07ebd6cc0f752938b3abe554d918ba207fd7e5bcc3f308dc