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
from textwrap import dedent import py, pytest from _pytest.config import PytestPluginManager @pytest.fixture(scope="module", params=["global", "inpackage"]) def basedir(request): from _pytest.tmpdir import tmpdir tmpdir = tmpdir(request) tmpdir.ensure("adir/conftest.py").write("a=1 ; Directory = 3") t...
nicoddemus/repo-test
testing/test_conftest.py
Python
mit
12,208
[ "VisIt" ]
33cc3dbcc56d8dbf292fd664a740729533ce5cde1690b9596a7ec4152d8e666a
import tensorflow as tf from neupy.utils import asfloat from neupy.exceptions import LayerConnectionError from neupy.core.properties import ( ProperFractionProperty, NumberProperty, TypedListProperty, ) from .base import Identity __all__ = ('Dropout', 'GaussianNoise', 'DropBlock') def bernoulli_sample(...
itdxer/neupy
neupy/layers/stochastic.py
Python
mit
7,334
[ "Gaussian" ]
651abfe74f7f12a416452af10b055d975cfa410ae030bc109b4efcc7796d4394
#!/usr/bin/env python # coding: utf-8 from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import range import numpy as np from future import standard_library from .kernel_tools import kernel_delta_norm, kernel_gaussian standard_library.install_...
suecharo/pyHSICLasso
pyHSICLasso/hsic_lasso.py
Python
mit
1,489
[ "Gaussian" ]
8605592edd14654fc381e9e7fad4bb3eb853cd313cda1b4ded4f71f955db6e4c
####################################### # Copyright 2019 PMP SA. # # SPDX-License-Identifier: Apache-2.0 # ####################################### import argparse import logging import time from ..providers.bioconductor import Bioconductor # logging.basicConfig(format='[%(levelname)s] %(message)s', leve...
sgubianpm/RPackUtils
rpackutils/cli/cliBioc.py
Python
gpl-2.0
815
[ "Bioconductor" ]
4bc3c6a6b4933229dae3d392d290718c9a107e789b8fdfa18f55111db8c9716a
import sys sys.path.append('../..') import unittest from mupif import * import math import os class VtkReader2_TestCase(unittest.TestCase): # Testing getIntegrationPoints @unittest.skipIf(True,'deprecated') def test_ReadMesh(self): from mupif import vtkreader2 m = vtkreader2.readMesh(8, ...
mupif/mupif
mupif/tests/test_VtkReader2.py
Python
lgpl-3.0
1,627
[ "VTK" ]
0c8d40d6af90eaecddeb30855b1d8413a510e3740627f60ae04e6858f1bc8ca2
import wx import wx.html2 import wx.lib.agw.aui as aui from wx.lib.newevent import NewEvent from LowerPanelView import ViewLowerPanel from gui.controller.CanvasCtrl import CanvasCtrl from gui.controller.ToolboxCtrl import ToolboxCtrl from gui.controller.ModelCtrl import ModelDetailsCtrl # create custom events wxCreate...
Castronova/EMIT
gui/views/EMITView.py
Python
gpl-2.0
5,874
[ "NetCDF" ]
43f2c005d863158ed02bab8e2ec37c4cfccb5531f5ec6b7fc1ba1feb1d5dace6
#!/usr/bin/python3 # # WORK IN PROGRESS # # Classes already created; # -app pannels # pi_link_pnl - top-left connection box with ip, username, pass # view_pnl - allows you to select which options to view # # -main pannels # system_info_pnl - for setting up the raspberry pi system and pig...
Pragmatismo/Pigrow
scripts/gui/pigrow_remote.py
Python
gpl-3.0
785,193
[ "exciting" ]
24a380d9ed2be02116a3e57dc0ddaf9a87d012eb06b7b91b491b0d7e94a6d6d0
# Placeholder because units moved # Remove this in version 1.0 import warnings with warnings.catch_warnings(): warnings.simplefilter('always', DeprecationWarning) warnings.warn(("units has moved to MDAnalysis.units " "and will be removed from here in release 1.0"), Deprecat...
alejob/mdanalysis
package/MDAnalysis/core/units.py
Python
gpl-2.0
355
[ "MDAnalysis" ]
fdcc06e7c97cc6171acfc87785e977166d87b1f9e97b02b3f0f1778144e5ee95
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------- # Name: sfp_accounts # Purpose: Identify the existence of a given acount on various sites. # # Author: Steve Micallef <steve@binarypool.com> # # Created: 18/02/2015 # Copyright: (c) ...
agilemobiledev/spiderfoot
modules/sfp_accounts.py
Python
gpl-2.0
31,496
[ "VisIt" ]
3c865e6c39906f2a829d4ae2091a895f28bcd930299c43a9639b105f12c2b464
from future import standard_library standard_library.install_aliases() from builtins import str import logging import pycurl import io import re import os import datetime from biomaj.utils import Utils from biomaj.download.interface import DownloadInterface class LocalDownload(DownloadInterface): ''' Base cla...
markiskander/biomaj
biomaj/download/localcopy.py
Python
agpl-3.0
2,318
[ "BLAST" ]
ac11dbc1cdb7f2e2b06a6e7f3276e528d50c8ccc5446f4f4c454b97d5519ce92
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,.pct.py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python # name: python3...
GPflow/GPflow
doc/source/notebooks/tailor/external-mean-function.pct.py
Python
apache-2.0
10,704
[ "Gaussian" ]
c3609e3085e103bb2e34ee555b040fbdd113e78513698da1af026389d68ab133
# -*- coding: utf-8 -*- # # gif_population.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/gif_population.py
Python
gpl-2.0
5,050
[ "NEURON" ]
f64e513da6a25d64c2fc13a4024cfa32afb989ac409ab0fb7de37324da609a0b
import sys import numpy import gaussian import gram_schmidt import conf def vibrational_analysis(file_name): nr_atoms = gaussian.get_nr_atoms(file_name) atom_xyz = gaussian.get_atom_coordinates(file_name, nr_atoms) atom_mass = gaussian.get_atom_masses(file_name, nr_atoms) # construct inertia ten...
bast/vibrant
ir.py
Python
lgpl-3.0
4,085
[ "Gaussian" ]
14026df2d0fad2603ee9649f4cc38d5de922cbe7722aad7e73f45ce61d9d951b
""" Search for configuration files to include in the blueprint. """ import base64 from collections import defaultdict import errno import glob import grp import hashlib import logging import os.path import pwd import re import stat import subprocess from blueprint import util # An extra list of pathnames and MD5 su...
devstructure/blueprint
blueprint/backend/files.py
Python
bsd-2-clause
50,408
[ "VisIt" ]
66ec41037b9cc7a03dad05587f7ec72b2804bf00361650403efb4048b0d74b3b
import unittest from registry.humangenome.exon import * class TestExonVariation(unittest.TestCase): def test_fail_deletion(self): self.assertRaises(Variation.Malformed, lambda: ExonVariation("42delA")) def test_fail_duplication(self): self.assertRaises(Variation.Malformed, lambda: ExonVariati...
muccg/rdrf
rdrf/registry/humangenome/tests/test_exon.py
Python
agpl-3.0
8,065
[ "NEURON" ]
1622f62121cf6a25926120a2a20944141d828118490e955eb93200c368a1230a
''' ####################################################################################################### AUTHOR: Adam Dynamic CONTACT: helloadamdynamic@gmail.com / www.adamdynamic.com LAST REVISION: 11 January 2014 PROJECT: Tube Challenge Route Creation DESCRIPTION: C...
AdamDynamic/LondonUnderground
RouteCalculation.py
Python
gpl-2.0
12,036
[ "VisIt" ]
d89393d6dcec73daa16a186ec8a545208665cc1e47a50c41ba075d7d26ead60f
#!/usr/bin/env python3 """Script to create a source/binary RPM. """ # $Id: make_rpm.py 496124 2016-03-23 20:34:27Z camacho $ from __future__ import print_function import sys, os, shutil from optparse import OptionParser import subprocess import tarfile SCRIPT_DIR = os.path.dirname(os.path.abspath(sys.argv[0])) sys.pat...
kyungtaekLIM/PSI-BLASTexB
src/ncbi-blast-2.5.0+/c++/scripts/projects/igblast/post_build/rpm/make_rpm.py
Python
lgpl-3.0
5,630
[ "BLAST" ]
900b0debcd0fa3f4ea5ce8203fe73bb449096d02d2035e5ea64dadae3d559f1b
import numpy as np from astropy.table import Table from astropy.io import fits import matplotlib.pyplot as plt import matplotlib import pickle from matplotlib import cm from numpy.random import randn # table path path = "/Users/caojunzhi/Downloads/upload_20170322/red_clump_dr13.fits" star = fits.open(path) table =...
peraktong/Cannon-Experiment
DR13_red_clump/0323_read_table_plot_rc_dr13.py
Python
mit
11,205
[ "VisIt" ]
18f18fd779933c3ec0b6cb47a16ebe02aa7083b3c7a4b3319e6734c0cb7da9f7
# -*- coding: utf-8 -*- # Copyright: (c) 2020-2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """Dependency structs.""" # FIXME: add caching all over the place from __future__ import (absolute_import, division, print_function) __metaclass__ = type imp...
s-hertel/ansible
lib/ansible/galaxy/dependency_resolution/dataclasses.py
Python
gpl-3.0
15,080
[ "Galaxy" ]
68fa5930fafce419a32e616ab59877037320677e0d60ebdf343ed19a0f306877
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2011 Doug Blank <doug.blank@gmail.com> # # This program is free software; you can redistribute it and/or modify ...
jralls/gramps
gramps/gen/filters/rules/person/__init__.py
Python
gpl-2.0
6,905
[ "Brian" ]
f5e871a98a8d74869508220260c615910424d87b26a60c6435ea7c9942f39786
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ from textwrap import dedent from unittest import skip from nose.plugins.attrib import attr from bok_choy.web_app_test import WebAppTest from ..helpers import UniqueCourseTest, load_data_str from ...pages.lms.auto_auth import AutoAuthPage from ...pages.comm...
UQ-UQx/edx-platform_lti
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
25,892
[ "VisIt" ]
7ca820f1e86d01356f25f6d61be9a41fa11fc89735ed10e55a9e9a67bac6c85c
""" @name: PyHouse/src/Modules/Drivers/USB/_test/test_USB_driver.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com> @copyright: (c) 2014-2017 by briank @license: MIT License @note: Created on Jul 22, 2014 @Summary: Passed all 2 tests - DBK - 2018-02-13 """ __updated__ = '2019-10-06' # I...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Drivers/Usb/_test/test_Usb_driver.py
Python
mit
2,011
[ "Brian" ]
6e8abb76f06d4ead46040faec9e0c446c63906cc2fb7f5fcf1d07d4e6389d1c5
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Implements ThreadPoolExecutor.""" from __future__ import with_statement import atexit import threading import weakref import sys from concurrent.futures import _base try: import queue except ImportError: ...
LockScreen/Backend
venv/lib/python2.7/site-packages/concurrent/futures/thread.py
Python
mit
4,605
[ "Brian" ]
829d134fac30cdbafc5070c2e18ee4a0c10e85643f0ad4b3aecf57616aea89a4
#!/usr/bin/python # # (C) 2013, Markus Wildi # # # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is dis...
xyficu/rts2
scripts/rts2saf/rts2saf/createdevices.py
Python
gpl-2.0
26,362
[ "VisIt" ]
afe7d11cc1ac49e5e4f22119fec099b96d29aeecf4a428f380b2d9f4d738058a
""" Tools for alignment files """ from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import pysam import ga4gh.common.utils as utils class AlignmentFileConstants(object): """ A container class for constants dealing with alignment fil...
saupchurch/server
scripts/alignment_file.py
Python
apache-2.0
3,056
[ "pysam" ]
0fc90f0baf0269f8b3f41de5ea9b54172983d11b440b1816cb0a7e3f8edf80db
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2018-2019 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this s...
dictoon/blenderseed
properties/nodes.py
Python
mit
15,034
[ "VisIt" ]
8a550d369904780beb4d45195c7467c7e4e091f4a6154c560c26f2f1e52d8b80
# 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...
jbedorf/tensorflow
tensorflow/python/autograph/converters/continue_statements.py
Python
apache-2.0
5,804
[ "VisIt" ]
948d84ccd206d59d119592579069ee066eee3002ace40a3d893ccdad8371d0e8
""" Creates augmented and size-normalized versions of the datasets (baubles, christmas trees, snowy landscapes). """ from __future__ import print_function, division import os import random import re import numpy as np from scipy import misc from scipy import ndimage from ImageAugmenter import create_aug_matrices from s...
aleju/christmas-generator
dataset/preprocess_images.py
Python
mit
13,051
[ "Gaussian" ]
b1f7a3781be80967ae178897f2dc0965e34d9fcb3906ea11df9996be17b6ac11
""" @name: Modules/Core/Utilities/extract_tools.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2018-2019 by D. Brian Kimmel @note: Created on Oct 3, 2018 @license: MIT License @summary: """ __updated__ = '2019-08-20' # Import system type stuff def extract_quoted(p_st...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Utilities/extract_tools.py
Python
mit
1,417
[ "Brian" ]
a4deb52a89daa4dfdad7dacf1c9f2fc9dcde20a6aa256aa6bf90a825539baba8
# Copyright (c) 2014,2016, Teemu Murtola """Classes to parse, store, and interpret `gerrit query` results.""" import datetime import json import os.path import re import subprocess def _convert_time(timestamp): """Convert Gerrit timestamps to Python objects.""" if not timestamp: return None retur...
teemumurtola/gerrit-scripts
gerrit/query.py
Python
bsd-3-clause
10,044
[ "Gromacs" ]
1955cf5ad0a3be9c46444201235c316127af0faf93d2d47d18d4948bdb2c581c
""" InaSAFE Disaster risk assessment tool developed by AusAid - **IS Utilitles implementation.** Contact : ole.moller.nielsen@gmail.com .. note:: 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 Foun...
gvallarelli/inasafe
safe_qgis/utilities.py
Python
gpl-3.0
38,129
[ "VisIt" ]
228db7ed1c8b9c5a6a2b78af90a10c4532228c4816f9a641c7f5e8fc52285a1d
# Orca # # Copyright 2005-2008 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
pvagner/orca
src/orca/scripts/web/bookmarks.py
Python
lgpl-2.1
5,074
[ "ORCA" ]
a5095e3d98f379ba0c371012a9aa41c88a9c18336c1fb291ff6792ea3a2f52e5
#!/usr/bin/env python import os import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # The current directory must be writeable. # try: channel = open("mni-surface-mesh-binary.obj", "wb") channel.close() ren1 = vtk.vtkRenderer() ...
timkrentz/SunTracker
IMU/VTK-6.2.0/IO/MINC/Testing/Python/TestMNIObjects.py
Python
mit
4,808
[ "VTK" ]
d803f754245f315211aaa8c6b74b4c5178fcf70c7db08b24ad57396fda6c6057
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
tests/licensedcode/test_index.py
Python
apache-2.0
27,735
[ "VisIt" ]
1acde7e89b0092da55902d5438c17c5b23ff2fdb6427612d3c1f0746eae7302e
class Solution(object): def canFinish(self, numCourses, prerequisites): """ :type numCourses: int :type prerequisites: List[List[int]] :rtype: bool """ def dfs(i): if visit[i] == -1: return False if visit[i] == 1: ...
Mlieou/lXXtcode
leetcode/python/ex_207.py
Python
mit
771
[ "VisIt" ]
b697032a5900bb2d4e7f2eff2f312ec6bf72543f9c9676e1a7cca9a73334c2f6
######################################################################## # $HeadURL$ # File : DiracSiteAgent.py # Author : Andrei Tsaregorodtsev ######################################################################## """ Agent to manage a DIRAC site, it submits and monitors pilots to a local cluster """ __RCSID_...
avedaee/DIRAC
WorkloadManagementSystem/Agent/DiracSiteAgent.py
Python
gpl-3.0
10,189
[ "DIRAC" ]
3434f35d3663094cb5026c054e52f08f4a4dea5315a169cd1c6195f1dbd7ff34
#!/usr/bin/env python # # This code was copied from the data generation program of Tencent Alchemy # project (https://github.com/tencent-alchemy). # # # Copyright 2019 Tencent America LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
sunqm/pyscf
pyscf/df/hessian/rhf.py
Python
apache-2.0
22,239
[ "PySCF" ]
95c2efd34da24faa370b416ac6095c15bb09742a5a804beda2f5571bda6a1c2e
#! /usr/bin/python import sys; import url_errors DONE = False DONE_string = "[-- DONE --]" ''' Assumes that we are at the current line where that starts with '*'. The format is follows the following example: -------------------------- * 1:2009-09-09:12:56:19 http://physics.nist.gov e796febb7593fde042a7511a9761da...
JoeDurrant/pysearch
readwg.py
Python
gpl-2.0
4,059
[ "VisIt" ]
e834e6e123aa2046848504d4e812208091aaa9ab1df371f840948ac5e9dfbb51
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LICE...
nouiz/fredericbastien-ipaddr-py-speed-up
tags/1.1.1/ipaddr_test.py
Python
apache-2.0
26,806
[ "FEFF" ]
ad7c77548935f289b0017fb29e5ec5d3cb3f3b9ecd5ea168e9baef0091e26a0b
import copy import numpy as np import datetime import lms_code.lib.rep2 as rep2 from lms_code.plots.plot_map import base, topo, gps_opts,\ even_grid, fault_trace, get_topo, labels from lms_code.plots import plot_all as lms_plot import matplotlib.pyplot as plt from scipy.stats.kde import gaussian_kde def throw_out(...
tbenthompson/LMS_public
lms_code/plots/plot_qi.py
Python
mit
4,040
[ "Gaussian" ]
bcb624eb5ccc5a1d3644a891b520c3b6c1e0320e20d301511f246443604df6f5
import numpy as np from ase import Atoms from ase.units import Bohr from gpaw.density import RealSpaceDensity from gpaw.lfc import BasisFunctions from gpaw.mixer import Mixer from gpaw.setup import Setups from gpaw.xc import XC from gpaw.utilities.tools import coordinates from gpaw.mpi import rank class HirshfeldDen...
robwarm/gpaw-symm
gpaw/analyse/hirshfeld.py
Python
gpl-3.0
6,333
[ "ASE", "GPAW" ]
4c38d88c7e260c67c86045c8a97f4241fcdad257ed7412b3c75a5ad5bd0c810e
# 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" é uma expressão opcional como "campo1...
reingart/erplibre.app
languages/pt-br.py
Python
agpl-3.0
15,377
[ "VisIt" ]
5f04da9acbac757b0c7f449361e06d83d8c024a797d7f2debd07c7db8d2a0626
# # NAME # problem_set1.py # # DESCRIPTION # Open, view, and analyze raw extracellular data # In Problem Set 1, you will write create and test your own spike detector. # import numpy as np import matplotlib.pylab as plt def load_data(filename): """ load_data takes the file name and reads in the dat...
ngr/sandbox
neuraldata/problem_set1/Results/problem_set1.py
Python
mit
9,815
[ "NEURON" ]
7b4c3d4154f48daace67f7fd2017f798b2a6cc8e970f02bd916478f2bbdb251a
# -*- coding: utf-8 -*- # # This file is part of the OpenHandWrite project software. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
isolver/OpenHandWrite
distribution/getwrite/wintabtest/constants.py
Python
gpl-3.0
3,045
[ "Gaussian" ]
68d4ecb7cb513b702a5a08b5c5dfcf2d55eec4a6b4c613fd89cc4f3571b88094
#!/usr/bin/env python """ MagPy-General: Standard pymag package containing the following classes: Written by Roman Leonhardt, Rachel Bailey 2011/2012/2013/2014 Written by Roman Leonhardt, Rachel Bailey, Mojca Miklavec 2015/2016 Version 0.3 (starting May 2016) License: https://creativecommons.org/licenses/by-nc-sa/4.0/l...
hschovanec-usgs/magpy
magpy/stream.py
Python
gpl-3.0
493,526
[ "Gaussian", "NetCDF" ]
d2249a646cebd665830743de90a98ad12136a750498422dd583c7f04b419a6b7
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/core/ui/generaltab.py
Python
gpl-2.0
21,257
[ "Brian" ]
c044b19917901afa0d2aff08bea5811ea56ec7c10600b48d1667635cf72ff7dd
# # Copyright 2015 The AMP HTML 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 applic...
nexxtv/amphtml
validator/validator_gen_js.py
Python
apache-2.0
37,674
[ "VisIt" ]
d6ddf89da718f02d20a87955048af3a9b2e601a25d094684bb062f2e054f207a
# -*- coding: utf-8 -*- # import os # import json def meta_file(): tmp = {} """ Daily Meteorology - Livneh et al., 2013 """ tmp['dailymet_livneh2013'] = {} tmp['dailymet_livneh2013']['spatial_resolution'] = '1/16-degree' tmp['dailymet_livneh2013']['web_protocol'] = 'ftp' tmp['dai...
ChristinaB/Observatory
tutorials/ogh_meta.py
Python
mit
28,614
[ "NetCDF" ]
f006da6d16e9ec8b105003e86b85225e120389318210fd1274c2475b0239c04c
import numpy as np class Point(): """ represent a point as a gaussian distribution that can be placed anywhere on the line of N units. position is in the normalized range (0.0, 1.0) """ def __init__(self, pos, N, width=0.1): """ pos is in range (0,1) """ self.x = np.linspace(0,1,...
jsheedy/neopixel-framebuffer
point.py
Python
mit
611
[ "Gaussian" ]
81409bb174b499679988900c12611fe7af26c335bb2f11a01d8ab74de3907176
# PYTHON script to set up free energy simulation by creating mdp files from a template (genericmdp.mdp) import optparse import sys import string # User inputted values and options parser = optparse.OptionParser(description="Create .#.mdp files for running GROMACS simulations to determine free energy of solvation.") p...
choderalab/open-forcefield-group
reweighting_optimization/scripts/fep_mdp_setup.py
Python
gpl-2.0
1,408
[ "Gromacs" ]
75212598e9378c03bc69964850f0790877830bea99fceed6652cd5b382a32435
#!/usr/bin/env python # coding=utf-8 # """ Create a movie of a 2D variable Requires: ffmpeg """ #- Modules # import sys, os import xarray as xr import time, calendar import matplotlib.pyplot as plt from mpl_toolkits.basemap import Basemap, pyproj sys.path.append("../../../oocgcm/") from oocgcm.oceanmodels.nemo ...
lesommer/oocgcm
examples/scripts/make_movie_ffmpeg.py
Python
apache-2.0
5,060
[ "NetCDF" ]
887b6aa2a39dd8e9778b1df27610648a2de9ad089b3db7041fbc14eba31b5942
import os import sys import vtkAll as vtk import math import time import types import functools import numpy as np from ddapp import transformUtils from ddapp import lcmUtils from ddapp.timercallback import TimerCallback from ddapp.asynctaskqueue import AsyncTaskQueue from ddapp import objectmodel as om from ddapp imp...
edowson/director
src/python/ddapp/walkingtestdemo.py
Python
bsd-3-clause
8,566
[ "VTK" ]
6881d534c5eed90820107e286359e1ac700d9d76dc87e17da3adcd94aeb5f0bf
""" 1D Gaussian Mixture Example --------------------------- Figure 4.2. Example of a one-dimensional Gaussian mixture model with three components. The left panel shows a histogram of the data, along with the best-fit model for a mixture with three components. The center panel shows the model selection criteria AIC (se...
nhuntwalker/astroML
book_figures/chapter4/fig_GMM_1D.py
Python
bsd-2-clause
4,324
[ "Gaussian" ]
59b907feb999a49075366f9cff659345910660df65f629896f3a76571b99173d
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """Module contains classes presenting Element and Specie (Element + oxidation state) and PeriodicTable.""" import re import json import warnings from io import open from pathlib import Path from enum import En...
gVallverdu/pymatgen
pymatgen/core/periodic_table.py
Python
mit
49,721
[ "CRYSTAL", "pymatgen" ]
d8c4fcbf8cc92461859bc1cfea78a8c3061ba6e8ad63b479b2f1debcaedae969
# -*- coding: utf-8 -*- """Parser for the Google Chrome History files. The Chrome History is stored in SQLite database files named History and Archived History. Where the Archived History does not contain the downloads table. """ from plaso.containers import time_events from plaso.lib import timelib from pla...
dc3-plaso/plaso
plaso/parsers/sqlite_plugins/chrome.py
Python
apache-2.0
11,357
[ "VisIt" ]
787cf830b330ddd62686f2dbe9c14225d3d6bf4fd6b89000fc451465c180ba1c
""" Exoplanet related equatio. Each equation is a class which takes input of every variable bar one and will output the variable left out. They therefore implement all permutations of the equation with respect to the variables. As an example we choose the equation Kepler's Third Law (KeplersThirdLaw) and by defining t...
ryanvarley/ExoData
exodata/equations.py
Python
mit
24,480
[ "VisIt" ]
ad61679a8d44606b2b717dbfaa1a25b37464069b85dbf51e300fe38b3b522056
#!/usr/bin/python2.6 # # Copyright 2009 Google Inc. 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 require...
danieldc/pyfakefs
fake_filesystem_test.py
Python
apache-2.0
110,176
[ "VisIt" ]
c71a19703d7580db959bb8188855da5aca0ccdddfae40f7c8a07c212e664d68d
""" test_tflintrans.py: Test suite for the linear estimator :class:`TFLinTrans` """ from __future__ import print_function, division import unittest import numpy as np # Add the path to the vampyre package and import it import env env.add_vp_path() import vampyre as vp def vamp_gauss_test(nz=100,ny=200,...
GAMPTeam/vampyre
test/test_solver/test_vamp.py
Python
mit
12,495
[ "Gaussian" ]
52bdd7f9954aa5708189b39283bc1de568365c33d00fb46b54a6c8b3fff381c4
# -*- coding: utf-8 -*- # # conncomp.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # ...
HBPNeurorobotics/nest-simulator
topology/examples/conncomp.py
Python
gpl-2.0
4,297
[ "NEURON" ]
4653996577d517c4e8c94c08de6ef1330a1256fce0c1c31a5e2d054bbf0ad256
""" Maintain access to the schemas (input- and output file descriptions) used by the CEA. These are stored in the ``schemas.yml`` file. Reading it is supposed to be done through the :py:func:`cea.schemas.schemas`. The plugins parameter allows reading in schemas from ``schemas.yml`` files defined in plugins. """ import...
architecture-building-systems/CEAforArcGIS
cea/schemas.py
Python
mit
15,167
[ "EPW" ]
71f38347f00acfeabbf395032ac21512989986505971d868597a9f633d9e3049
#!/usr/bin/env ipython from pylab import * from numpy import * from scipy.io.netcdf import netcdf_file from datetime import datetime, time, timedelta #------------ shared libraries: """ --- antes de modificar cosas, tener en cuenta los bugs en: '../../shared_lib/COMENTARIOS.txt' """ import sys sys.path.append('../../...
jimsrc/seatos
mcs/src/c_rebineo_group_Vmc.py
Python
mit
4,422
[ "NetCDF" ]
dc63124e4b20ff5b2b66a95f331fb34a645d2b33a8bfe62d362777050e7d1f77
""" Tests for discussion pages """ from .helpers import UniqueCourseTest from ..pages.studio.auto_auth import AutoAuthPage from ..pages.lms.discussion_single_thread import DiscussionSingleThreadPage from ..fixtures.course import CourseFixture from ..fixtures.discussion import SingleThreadViewFixture, Thread, Response,...
XiaodunServerGroup/xiaodun-platform
common/test/acceptance/tests/test_discussion.py
Python
agpl-3.0
6,237
[ "VisIt" ]
a56f650f94b57813a89ef9efbb4c8bcb7f79f226b590570658c40ecbb01e8583
"""@package generate_data Script that generates Monte Carlo sim output for many cases at once, for specified initial distributions, sample rates, & other variables """ import sys sys.path.append('../') import cp_dynamics import numpy as np import matplotlib.pyplot as plt import time def etaCalc(k,kmax,dt): dtest...
fatadama/estimation
challenge_problem/sim_data/generate_data.py
Python
gpl-2.0
5,753
[ "Gaussian" ]
522641880e3da8512c43b8b5255312d0374f1851f57358beb16fe980997c1927
# encoding: utf-8 """ A lightweight Traits like module. This is designed to provide a lightweight, simple, pure Python version of many of the capabilities of enthought.traits. This includes: * Validation * Type specification with defaults * Static and dynamic notification * Basic predefined types * An API that is si...
noslenfa/tdjangorest
uw/lib/python2.7/site-packages/IPython/utils/traitlets.py
Python
apache-2.0
47,142
[ "Brian" ]
6094d136b624fb1b823df8b8a7b1e9092f081e4303212a971190fd0894f1e851
#!/usr/bin/env python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # Plumber - Tunnels traffic between two sockets # # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General...
heromod/migrid
mig/vm-proxy/deprecated/proxy/plumber.py
Python
gpl-2.0
7,699
[ "Brian" ]
3c666e311a5117682cedecb96b44d265c5f7f4f1af8550d8e848d6e71f398316
""" Base class for all tests in studio """ from bok_choy.web_app_test import WebAppTest from regression.tests.helpers import LoginHelper, get_course_info from regression.pages.studio.login_studio import StudioLogin from regression.pages.studio.pages_page_studio import PagesPageExtended from regression.pages.studio.gra...
raeeschachar/edx-e2e-mirror
regression/tests/studio/studio_base_test.py
Python
agpl-3.0
3,488
[ "VisIt" ]
86fd41504e2b63a19693a836442d649dfe81f4b3c10f9378c9be3b4508c480c6
import re import os import math import itertools import random import logging from sklearn.svm import SVR from .. import __DEBUG__ __DFACTOR__ = .85 import sys sys.path.append('..') sys.path.append('/usr/lib/graphviz/python/') sys.path.append('/usr/lib64/graphviz/python/') #import gv from pygraph.classes.graph imp...
vighneshbirodkar/summarize
summarize/Base/DocumentClass.py
Python
mit
14,288
[ "Gaussian" ]
31fa81770ce7f0ad299911d8f06329527d413044f75c82009a204129f0856f7b
# -*- coding: utf-8 -*- """ Tests for the text processor. """ from __future__ import unicode_literals import json from unittest import TestCase, main from datetime import datetime import mock from nose.tools import * # noqa (PEP8 asserts) from nose.plugins.attrib import attr import nltk from textblob.compat import P...
jcalbert/TextBlob
tests/test_blob.py
Python
mit
39,803
[ "Octopus" ]
19ef3eb17c07cbc9a8b059c9d4215df8217dda7d61e3994fd505d1bbb8c650aa
#!/usr/bin/env python import argparse import json from cpt_gffParser import gffParse, gffWrite from gff3 import feature_lambda, feature_test_type from guanine_report import auth, post_result, student_id # from guanine import GuanineClient GUANINE_URL = "https://cpt.tamu.edu/guanine-backend/" def validate(gff3): ...
TAMU-CPT/galaxy-tools
tools/464/assessment1-admin.py
Python
gpl-3.0
2,161
[ "Galaxy" ]
4bb9921ac4dd8ab929b1a7d8e5ccc80fc742efe2c0fa32017c64b21187e9849a
"""Builds the CIFAR-10 network. Summary of available functions: # Compute input images and labels for training. If you would like to run # evaluations, use input() instead. inputs, labels = distorted_inputs() # Compute inference on the model inputs to make a prediction. predictions = inference(inputs) # Compu...
rickyHong/Tensorflow_modi
tensorflow/models/image/cifar10/cifar10.py
Python
apache-2.0
17,758
[ "Gaussian" ]
19c05b25aefccfa9544daea1f86b477c454fbdd73595a5947dce35de8ac2124b
# 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...
tensorflow/tensorflow
tensorflow/python/autograph/converters/break_statements.py
Python
apache-2.0
5,755
[ "VisIt" ]
c60c53989e9addd7bb40d748b7b0058b1dd4b15ae56326dcda11e13076864c8c
# $Id$ # # Copyright (c) 2011, Novartis Institutes for BioMedical Research Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above...
soerendip42/rdkit
rdkit/Chem/UnitTestInchi.py
Python
bsd-3-clause
12,593
[ "RDKit" ]
8e87dab8d4bf5820f2f2ad075972a906a073a586e870020a5c34bd84bf9e9dff
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/admin/action/form_action.py
Python
gpl-2.0
10,679
[ "VisIt" ]
36a0393b7768ed82e6ba798a3f2ad2833cf6652c0d5d4bdea7a0a8a72f589a96
""" Distance matrices and distance-based statistics (:mod:`skbio.stats.distance`) ============================================================================= .. currentmodule:: skbio.stats.distance This subpackage provides functionality for serializing, deserializing, and manipulating dissimilarity and distance mat...
SamStudio8/scikit-bio
skbio/stats/distance/__init__.py
Python
bsd-3-clause
5,771
[ "scikit-bio" ]
2262eae3e7dadcc490bfbf269ce07b6cf7b17473049ae9d471508c97a81eb4cd
from __future__ import print_function, division import unittest, numpy as np from pyscf import gto, scf from pyscf.nao import bse_iter class KnowValues(unittest.TestCase): def test_gw(self): """ This is GW """ mol = gto.M( verbose = 1, atom = '''H 0 0 0; H 0.17 0.7 0.587''', basis = 'cc-pvdz',) #mol = ...
gkc1000/pyscf
pyscf/nao/test/test_0083_gw_bse_h2_ae.py
Python
apache-2.0
1,314
[ "PySCF" ]
8f8696ff1ad3cfb35442037181f1491597195b195c6b14718ec7fcfe4467f0f3
"""Options manager for :class:`~diofant.polys.polytools.Poly` and public API functions.""" from __future__ import annotations import re import typing from ..core import Basic, I from ..core.sympify import sympify from ..utilities import has_dups, numbered_symbols, topological_sort from .polyerrors import FlagError, ...
diofant/diofant
diofant/polys/polyoptions.py
Python
bsd-3-clause
19,551
[ "Gaussian" ]
e5b75aeaebbaafa7ca2ec848a64feb45971603c936799cba1be8b38175f3b0f7
import numpy import pickle from chainer.functions.connection import linear from chainer import link class Linear(link.Link): """Linear layer (a.k.a. fully-connected layer). This is a link that wraps the :func:`~chainer.functions.linear` function, and holds a weight matrix ``W`` and optionally a bias vec...
truongdq/chainer
chainer/links/connection/linear.py
Python
mit
2,710
[ "Gaussian" ]
9dd1a34e4333135d74f557da32d7b26e5e3675cf388be3abc097d0970cd01a38
""" Self Organizing maps neural networks. """ import random import math class Map(object): #Class Constructor #@param dimensions: Number of input dimensions #@param length: Length of the output grid #@param filePath: The file path with the input data. def __init__(self,dimensi...
jgabriellima/self_organization_map
som.py
Python
apache-2.0
6,152
[ "Gaussian", "NEURON" ]
39e97d56c8c1cc50e92363d40aa71445605ead34b662dda19522d29d2eebafe5
# # Copyright 2014, 2021 Lars Pastewka (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software...
libAtoms/matscipy
matscipy/contact_mechanics/DMT.py
Python
lgpl-2.1
2,003
[ "Matscipy" ]
150d8ed5380c346334f9c318dda268db174649b9c1984176b52792fcf82b04cb
# pylint: disable=C0111 from lettuce import step from lettuce import world from lettuce import before from pymongo import MongoClient from nose.tools import assert_equals from nose.tools import assert_in REQUIRED_EVENT_FIELDS = [ 'agent', 'event', 'event_source', 'event_type', 'host', 'ip', ...
carsongee/edx-platform
lms/djangoapps/courseware/features/events.py
Python
agpl-3.0
2,004
[ "VisIt" ]
df3b4e22c2e02f29a0be464db3ba8ae9aa9f421a83ac808b548c4f02e8df448c
# Issue 34 on github. import moose import moose.utils as mu compt = moose.CubeMesh('/compt') compt.volume = 1e-20 molecules = [ "ca", "S", "S1", "Sp" ] pools = {} tables = {} for m in molecules: pools[m] = moose.Pool('/compt/%s' % m) t = moose.Table2("/table%s" % m) tables[m] = t moose.connect(t, 'req...
subhacom/moose-core
tests/issues/issue_34.py
Python
gpl-3.0
1,143
[ "MOOSE" ]
c556e0c63c6070b264b5727e960d5fbb9ebe5cd2de6bbff2817441647afbcac8
#!/usr/bin/env python import warnings from CisRegModels import MYUTILS from CisRegModels import MYMATH import numpy as np import subprocess import sys import argparse parser = argparse.ArgumentParser(description='Provided a file of sequences and priorities (sorted), uses Bowtie to merge similar sequences.') parser.ad...
Carldeboer/CisRegModels
mergeSeqsByBowtie.py
Python
gpl-3.0
5,977
[ "Bowtie" ]
5c0fc9cf7aa271e0ec42395ccb7c6ffe1ff305f51619fe5b527540aff4daf61e
# encoding: utf-8 from __future__ import unicode_literals import mimetypes import os import re import sys from tempfile import NamedTemporaryFile from unicodedata import normalize try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse import requests from twitter import Twit...
eleonrk/SickRage
lib/twitter/twitter_utils.py
Python
gpl-3.0
15,915
[ "CASINO", "MOE" ]
6adab559a1358ee85fd6e1ebe3746c0354c7852c60da1b0d4f6e01f082d6f40b
""" This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well as testing instructions are located at http://amzn.to/1LzFrj6 For additional samples, visit the Alexa Skills Kit Getting Started guide at http://amzn.to/1LG...
praddc/alexa-theCaptain
theCaptain/lambda_function.py
Python
mit
6,603
[ "VisIt" ]
a2e4a1a557b8da799beaa67567370e0edc2f929ba580ff4f1d330449f38d73ff
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import pickle import re import sys import warnings import numpy import numpy as np import scipy.stats as stats import scipy.stats.distributions from nose import SkipTest from numpy import typecodes, array from nu...
DailyActie/Surrogate-Model
01-codes/scipy-master/scipy/stats/tests/test_distributions.py
Python
mit
111,217
[ "Gaussian" ]
09c049eacd4d745dd848d030605a299deb2bbbe6f6ece9532360a48c3229f47b
#!/usr/bin/env python """Creates a class file highlighting Usage: esom_tracer.py [--coverage] <BAM file> <NAMES file> <OUT file> Synopsis: Creates a CLASS file so that ESOM BestMatches points colored by whether or not they are found in the BAM file. By using SAM tools with the "-F 4" flag to filter...
Brazelton-Lab/lab_scripts
esom_tracer.py
Python
gpl-2.0
7,226
[ "pysam" ]
f2ed1aeb68187e671bf5da3805f9b538e208fa1760a6831f92fde2187b06bc89
from galaxy.test.base.twilltestcase import TwillTestCase # the numbering of the tests is essential as they # will be executed in order, sorted by name class Operations(TwillTestCase): def test_00_first(self): # must be first "Uploading data" self.clear_history() self.upload_file('1.bed', d...
jmchilton/galaxy-central
galaxy/test/functional/test_operations.py
Python
mit
4,542
[ "Galaxy" ]
5dc430e235817d79eddb23a9f0454c951bc284906e7989b99ea012e27d99646a
##################################################################### # File: ReqManagerHandler.py ######################################################################## """ :mod: ReqManagerHandler .. module: ReqManagerHandler :synopsis: Implementation of the RequestDB service in the DISET framework """ __RCSID__...
vmendez/DIRAC
RequestManagementSystem/Service/ReqManagerHandler.py
Python
gpl-3.0
12,229
[ "DIRAC" ]
80b4df50502d278500deb74619bf165158f573b7e19b23333e66a1b443f9391b
#!/usr/bin/env python """ Terminates a DRMAA job if given a job id and (appropriate) user id. """ import errno import json import os import pwd import sys #import drmaa new_path = [ os.path.join( os.getcwd(), "lib" ) ] new_path.extend( sys.path[1:] ) # remove scripts/ from the path sys.path = new_path from galaxy im...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/scripts/drmaa_external_killer.py
Python
gpl-3.0
1,522
[ "Galaxy" ]
327d31096d74c076d41d5184b76de23c6e99f7693c0c0a552f110c5ec3d3f8c7
"""feedfinder: Find the Web feed for a Web page http://www.aaronsw.com/2002/feedfinder/ Usage: feed(uri) - returns feed found for a URI feeds(uri) - returns all feeds found for a URI >>> import feedfinder >>> feedfinder.feed('scripting.com') 'http://scripting.com/rss.xml' >>> >>> feedfinder.fe...
samuelclay/NewsBlur
utils/feedfinder_pilgrim.py
Python
mit
13,662
[ "Brian" ]
76f071942433054b8669244e0c0ccd2f037ec8b85cbeffabea720dfec4683c52
#!/usr/bin/env python import unittest, sciunittest from PyQuante.NumWrap import arange from PyQuante.dft import dft from PyQuante.Molecule import Molecule energy = -7.811516 # changed 9/28/09 to reflect nwchem name = "LiH/DFT" def dissoc(**opts): rmin = opts.get('rmin',0.65) rmax = opts.get('rmax',1.01) ...
berquist/PyQuante
Tests/lih_dft.py
Python
bsd-3-clause
1,567
[ "NWChem" ]
e3fefdf1b1ded100277d46e34673c91e257652df7616005b0a30e23521264496
# coding=utf-8 '''Define Schema''' from __future__ import absolute_import import hashlib from datetime import datetime from flask import url_for, current_app from mongoengine import fields, DENY from werkzeug import security from flask_babel import gettext as _ from flask_mail import Message from flask_login import lo...
ruitian/firefly
firefly/models/user.py
Python
mit
7,449
[ "Firefly" ]
f46d8683d185390bfa0c19fc01e2b2acda9082f7154278753f60fff7e2b763ba
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # Copyright (C) 2006-2007 Lukáš Lalinský # Copyright (C) 2007 Javier Kohen # Copyright (C) 2008 Philipp Wolfer # # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as...
samj1912/picard
picard/script.py
Python
gpl-2.0
26,706
[ "Brian" ]
347e5a8003bfd959615f29a2fd1191096161db1c6f1e594dc5f102d59f619491
#----------------------------------------------------------------- # _ast_gen.py # # Generates the AST Node classes from a specification given in # a .yaml file # # The design of this module was inspired by astgen.py from the # Python 2.5 code-base. # # Copyright (C) 2008-2011, Eli Bendersky # License: BSD #----------...
kk1987/pycparser
pycparser/_ast_gen.py
Python
bsd-3-clause
8,671
[ "VisIt" ]
9aa20423d8680e4fc11e6f87a1546833941d4ec99b1eadfee3dd89cb4f7ad997
#!/usr/bin/env python from __future__ import division from numpy import * from geode.random import * from geode import * import hashlib import numpy def test_sobol(filename=None): m,n = 128,128 box = Box(0,(m,n,m)) sobol = Sobol(box) print box im = tile(1,(m,n,3)).astype(uint8) count = m*n//100*10 for ...
mikest/geode
geode/random/test_random.py
Python
bsd-3-clause
7,111
[ "Gaussian" ]
f27481f9cfd4c6020283af5676f1c6d5cf5d2b3c2470468a939d2df0b4eb5b6e
#!/usr/bin/env python ''' Migrate old Galaxy tool shed to next gen Galaxy tool shed. Specifically, the tool archives stored as files in the old tool shed will be migrated to mercurial repositories in the next gen tool shed. This script can be run any number of times as it initially eliminates any current repositorie...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/scripts/tool_shed/migrate_tools_to_repositories.py
Python
gpl-3.0
15,667
[ "Galaxy", "VisIt" ]
a504ea5b6f5f287b21c7577f28c3a8682293ac535d0985393a9554c7a971be29
# -*- coding: utf-8 -*- # If you find this code useful for your research, please cite the following # article accordingly: # # Vogt, Owen et al., Advanced Data Visualization in Astrophysics: # the X3D Pathway, ApJ (2015). # # Copyright (C) 2015 Frédéric P.A. Vogt, Chris I. Owen # # This program is free softwar...
fpavogt/x3d-pathway
x3d_to_png/red_dice/red_dice_animation.py
Python
gpl-3.0
18,067
[ "Mayavi" ]
b8d85655caf43e6abc00ddea1828ce26c217d52892f163001cc587eb63aca96f
# -*- coding: utf-8 -*- # # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # import warnings from collections.abc import Iterable from functools import wraps import ctypes import numpy as np from scipy._lib.doccer import (extend_notes_in_docstring, ...
zerothi/scipy
scipy/stats/_continuous_distns.py
Python
bsd-3-clause
280,541
[ "CRYSTAL", "DIRAC", "Gaussian" ]
0acf6ee240483bd46fbd52b8ada12462876ed2c38b6ea95a552da12b11af6b1a
import logging import re from sqlalchemy.exc import IntegrityError # dicom refers to pydicom library import dicom from dicom.errors import InvalidDicomError from . import utils ####################################################################################################################### # GLOBAL VARIABLES...
LREN-CHUV/mri-meta-extract
data_tracking/dicom_import.py
Python
apache-2.0
21,335
[ "VisIt" ]
1de7d3a60ce5e093d72c221fb6b76511fde2288427cb9321398f346a9c7facb3
import theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams from theano.tensor.nnet.conv import conv2d from theano.tensor.signal.downsample import max_pool_2d from theano.tensor.shared_randomstreams import RandomStreams import numpy as np from toolbox import * from modelbase import * ...
mrgloom/Theano-Lights
models/ffn_bn.py
Python
mit
4,856
[ "Gaussian" ]
bfa4d8809cc6d8407fd112f3fb66b5d7b1dcdd56acb5bb9aaa88220ce19d08bf