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 -*- import time import unittest import logging import functools from nose.tools import * # flake8: noqa (PEP8 asserts) import mock from modularodm import Q from framework.auth.core import Auth from website import settings import website.search.search as search from website.search import elastic_s...
haoyuchen1992/osf.io
tests/test_elastic.py
Python
apache-2.0
32,592
[ "Brian" ]
578c3ba2875b28e643fd91067d70a874aa213d664830006dea819b2746363a04
__author__ = 'aclapes' import numpy as np from os.path import join from os.path import isfile, exists from os import makedirs import cPickle from sklearn import preprocessing from sklearn.decomposition import PCA, IncrementalPCA from yael import ynumpy import time import sys from joblib import delayed, Parallel import...
aclapes/darwintree
tracklet_representation.py
Python
bsd-3-clause
29,414
[ "Gaussian" ]
d705b20c16f125834d31f1262b0da3d9bc94bc67a080d838a50542553172fba3
# // Copyright (c) <2014> <Brian Wheatman> import simulator as sim import os Task = sim.Task TaskCombo = sim.TaskCombo make_grid = sim.make_grid # to read the text document define a factory def read_input(doc): group = [] # the group of tasks text = open(doc, 'r') # open the document to read for i in r...
wheatman/Simulation
inputs.py
Python
mit
8,025
[ "Brian" ]
f5b1c49185fa35d8fab6a72beb5a632d4b5b9733cda4d697b8841317befd0dd9
""" SOM-based learning functions for CFProjections. $Id$ """ __version__ = "$Revision$" from math import ceil import param from topo.base.arrayutil import L2norm, array_argmax from topo.base.boundingregion import BoundingBox from topo.base.cf import CFPLearningFn from topo.base.patterngenerator import PatternGener...
ioam/svn-history
topo/learningfn/som.py
Python
bsd-3-clause
5,271
[ "Gaussian" ]
b1e22bfb693d8720a46c61151d8ba9dc363fe82a6f83004bcf03297771de8146
# -*- coding: utf-8 -*- """ baserawio ====== Classes ------- BaseRawIO abstract class which should be overridden to write a RawIO. RawIO is a new API in neo that is supposed to acces as fast as possible raw data. All IO with theses carractéristics should/could be rewritten: * internally use of memmap (or hdf5) *...
rgerkin/python-neo
neo/rawio/baserawio.py
Python
bsd-3-clause
26,300
[ "NEURON" ]
24f63f61e8c39274ec91c61d3ea1af2fa6b3a1bd568c0fe3565afd62def6fd48
# # PyOphidia - Python bindings for Ophidia # Copyright (C) 2015-2021 CMCC Foundation # # 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 # ...
OphidiaBigData/PyOphidia
PyOphidia/cube.py
Python
gpl-3.0
248,867
[ "NetCDF" ]
84e19c1c109103c4d710767317ea1f2805c41d58aa8b32bb245f683e19f2abbf
############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS I...
tempson-py/tempson
tempson/RestrictedPython/RCompile.py
Python
mit
9,077
[ "VisIt" ]
b0533dab6db3c6966b7da371d76cdcd6fb966fc46745c30451ec154f3f36de2a
# vi: ts=8 sts=4 sw=4 et # # visit.py: form visitor # # This file is part of Draco2. Draco2 is free software and is made available # under the MIT license. Consult the file "LICENSE" that is distributed # together with this file for the exact licensing terms. # # Draco2 is copyright (c) 1999-2007 by the Draco2 authors....
geertj/draco2
draco2/form/visit.py
Python
mit
776
[ "VisIt" ]
343f75cacaf58ffa4e4a668ca19f26c2f5493b147e1db6470910619a3b58831d
""" Given a formula in conjunctive normal form (2-CNF), finds a way to assign True/False values to all variables to satisfy all clauses, or reports there is no solution. https://en.wikipedia.org/wiki/2-satisfiability Format: - each clause is a pair of literals - each literal in the form (name, is_neg...
keon/algorithms
algorithms/graph/satisfiability.py
Python
mit
4,076
[ "VisIt" ]
48a63448e6dcd1ef2d0fada769c1c808664db1c5244bdbddffd76b26f00f34cc
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Peter Eastman, Robert McGibbon # Contributors: Kyle A. Beaucha...
rmcgibbo/mdtraj
mdtraj/core/topology.py
Python
lgpl-2.1
60,641
[ "MDTraj", "OpenMM", "VMD" ]
85c3fdd1c77e6697daf8b90278ebc2ddf1a5a7c6c56c1ab23cc1b01e62813f54
# pysam versioning information __version__ = "0.8.3" __samtools_version__ = "1.2" __htslib_version__ = "1.2.1"
nlhepler/pysam
pysam/version.py
Python
mit
114
[ "pysam" ]
1498ec4dce49b9eca4bb92dca74eec53ba2df41d40b7d0dd61fb9feb219a5b8a
from __future__ import (absolute_import, division, print_function) from mantid.api import (DataProcessorAlgorithm, mtd, AlgorithmFactory, FileProperty, FileAction, MultipleFileProperty, WorkspaceProperty, PropertyMode, Progress) from mantid.simple...
ScreamingUdder/mantid
Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/ConvertMultipleRunsToSingleCrystalMD.py
Python
gpl-3.0
9,743
[ "CRYSTAL" ]
7bd5dc7f1625f26785db9dacc09710c0ebff4d7457485cc257706fd10a2753e8
# DEVELOPMENT - local_settings.py # - This file should be copied to ~/hydroshare/hydroshare/local_settings.py # - The iRODS specific contents of this file contain username and password informaiton # that is used for an xDCIShare proxy user import redis import os from kombu import Queue, Exchange from kombu....
RENCI/xDCIShare
hydroshare/local_settings.py
Python
bsd-3-clause
5,851
[ "NetCDF" ]
9b97fdfa5606e81f2c62ee4b7ad257730a574cd42ad5e5b1d574988f9022e465
#!/usr/bin/python # -*- coding: utf-8 -*- # # This module is also sponsored by E.T.A.I. (www.etai.fr) # 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...
tumbl3w33d/ansible
lib/ansible/modules/cloud/vmware/vmware_guest.py
Python
gpl-3.0
148,470
[ "VisIt" ]
3283486b3efbbd088baaeff88c30ea6f38a2c8718a261d8aad6c19f0e9cd8575
#!/usr/bin/python # -*- coding: utf-8 -*- """NBody in N^2 complexity Note that we are unp.sing only Newtonian forces and do not consider relativity Neither do we consider collisions between stars Thus some of our stars will accelerate to speeds beyond c This is done to keep the simulation simple enough for teaching pu...
bh107/benchpress
benchpress/benchmarks/nbody_nice/python_numpy/dep/nbody_nice_old.py
Python
apache-2.0
6,857
[ "Galaxy" ]
624af20c0d2ca3f2546a52bd54247ad1c1e17aaf41115b230b6455e6b3e4e70c
# python standard library import sys # ensure Python 3.5 assert sys.version_info[0:2] == (3, 5), sys.version_info import os import operator import itertools import collections import functools import glob import csv import datetime import bisect import sqlite3 import subprocess import random import gc import shutil imp...
cggh/biipy
test.py
Python
mit
947
[ "pysam" ]
6b17da001d5b327fbca7530945f31ec10030524ec84c9fbde193ea9c394861b0
import pdb import numpy as np import math import time import chainer import chainer.functions as F import chainer.links as L from chainer import cuda from util import gaussian_logp0 from util import bernoulli_logp class VAE(chainer.Chain): def __init__(self, dim_in, dim_hidden, dim_latent, num_layers, num_trans...
ashwindcruz/dgm
planar_mnist/model.py
Python
mit
6,218
[ "Gaussian" ]
9663930065298024fd64b1ffde11737a4e8c0b3a654499f18f727b40208435bc
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 1998-2015 by Paweł T. Jochym <pawel.jochym@ifj.edu.pl> # # This file is part of Elastic. # Elastic 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 Softwar...
jochym/Elastic
elastic/cli/elastic.py
Python
gpl-3.0
5,903
[ "ABINIT", "ASE", "VASP" ]
c48f81aa0a99fb1b4e7c75da32af3a02dee4e1a54db3ae04381076ed6c203606
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
psci2195/espresso-ffans
testsuite/python/interactions_bonded.py
Python
gpl-3.0
7,258
[ "ESPResSo" ]
58fb9a04ebee0fdda09c3ccb4812fb8cddf27ad75c281fbfffc91ff077d00f31
from __future__ import print_function, division from trippy import psf, scamp, bgFinder, pill, psfStarChooser import numpy as np,scipy as sci,pylab as pyl from astropy.io import fits import pickle import unittest import os,sys class tester(unittest.TestCase): @classmethod def setUpClass(self): sel...
fraserw/PyMOP
trippy/tests/test.py
Python
gpl-2.0
11,282
[ "Gaussian" ]
5d379574c68432b4695685bbaca9a3593b6c91e6fafb2aacfb0d91649ae9e139
""" Maximum likelihood covariance estimator. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux <gael.varoquaux@normalesup.org> # Virgile Fritsch <virgile.fritsch@inria.fr> # # License: BSD Style. # avoid division truncation from __future__ import division import warnings...
seckcoder/lang-learn
python/sklearn/sklearn/covariance/empirical_covariance_.py
Python
unlicense
8,610
[ "Gaussian" ]
0031dbcee0d3c68d4b78065c60f7653fa0a5751bdc5c90f2b26a4ba5ce56480e
# Copyright (c) OpenMMLab. All rights reserved. import copy import inspect import math import warnings import cv2 import mmcv import numpy as np from numpy import random from mmdet.core import PolygonMasks, find_inside_bboxes from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from ..builder import PIPELINE...
open-mmlab/mmdetection
mmdet/datasets/pipelines/transforms.py
Python
apache-2.0
109,483
[ "VisIt" ]
cfde4be457f63d3d8bcd47c169cd37e656b1be2c2d89f16dd3249bc1151c1fc5
from __future__ import print_function import os, sys import unittest from pathlib import Path import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * import logging import csv from slicer.util import VTKObservationMixin import platform import time from RigidAlignmentModule import RigidAlignmentModuleLog...
NIRALUser/SPHARM-PDM
Modules/Scripted/ShapeAnalysisModule/ShapeAnalysisModule.py
Python
apache-2.0
91,183
[ "Gaussian", "VTK" ]
9ca29743fe813f32f8816f5007559b64680385a7e081d683621f0d1b3e85554b
import Galaxy import MathCalculator import SqlReader import XMLDomReader import math import os import string VEGA_LUMINOSITY=74.4731973982 NGC_4874_RA=194.898787 NGC_4874_DEC=27.959389 HUBBLE_CONSTANT=67.6 def galaxies_print(galaxies): file=open("data_used.csv","w+") title="objid,ra,dec,r-band,redshift" f...
chshibo/CosData_Tools
Pysics_Lab.py
Python
gpl-3.0
2,237
[ "Galaxy" ]
434d0f22a24f5df98cadeb7ee7804b13b1f1bffd1490d88c0f1888783a147c5d
import tensorflow as tf # neural network for function approximation import gym # environment import numpy as np # matrix operation and math functions from gym import wrappers import gym_morph # customized environment for cart-pole import matplotlib.pyplot as plt import time # Hyperparameters RANDOM_NUMBER_SEED = 2 EN...
GitYiheng/reinforcement_learning_test
test03_monte_carlo/t13_cartpole_mc_lr.py
Python
mit
5,445
[ "NEURON" ]
04c39761c48fc1a9a489e075a34bd25f4d9d83984cfebb05e4dbb073bf84159f
#!/usr/bin/env python3 """The influence of windowing of log. sweep signals when using a Kaiser Window by fixing beta (=2) and fade_out (=0). fstart = 1 Hz fstop = 22050 Hz """ import sys sys.path.append('..') import measurement_chain import plotting import calculation import ir_imitation import generation...
spatialaudio/sweep
log_sweep_kaiser_window_script1/log_sweep_kaiser_window_script1.py
Python
mit
2,121
[ "DIRAC" ]
f0e6360cefe6428ca3ed62112111a3442f8ad72c9d844bb6681f6339e1fb5211
# Copyright 2013 Mark Dickinson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
mdickinson/refcycle
refcycle/i_directed_graph.py
Python
apache-2.0
14,060
[ "VisIt" ]
116c190ba1a69660400abfde2c2d9eca615a4717f6e8fb157e3ea6115b8f2213
"""This file implements the gym environment of minitaur. """ import math import time import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0, parentdir) import gym from gym import spaces fr...
nrz/ylikuutio
external/bullet3/examples/pybullet/gym/pybullet_envs/minitaur/envs/minitaur_gym_env.py
Python
agpl-3.0
25,350
[ "Gaussian" ]
78cb44845ad5400d9b90895f305ec2819593092f5cbc26c0b70b969add03e1ac
import numpy as np from numpy.linalg import det from astropy.table import Table from astropy import units as u from astropy.coordinates import SkyCoord, search_around_sky from tqdm import tqdm, tnrange, tqdm_notebook from concurrent.futures import ProcessPoolExecutor, as_completed from sklearn.neighbors import KernelDe...
nudomarinero/mltier1
mltier1.py
Python
gpl-3.0
21,465
[ "Gaussian" ]
c947d63f30f2f24779296af0d121ddb333a0acc4518964bc761ff661fde024a6
# Copyright 2021 The Distla 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 applicable ...
google/distla_core
distla/distla_core/distla_core/chebyshev/test_chebyshev.py
Python
apache-2.0
11,028
[ "DIRAC" ]
87b8f0139af96d88e504d944a67ebc2c08226ee265b0f1f4b2ad813d4c50b440
# $HeadURL$ """ VirtualMachineHandler provides remote access to VirtualMachineDB The following methods are available in the Service interface: - insertInstance - declareInstanceSubmitted - declareInstanceRunning - instanceIDHeartBeat - declareInstanceHalting - getInstancesByStatus ...
vmendez/VMDIRAC
WorkloadManagementSystem/Service/VirtualMachineManagerHandler.py
Python
gpl-3.0
16,993
[ "DIRAC" ]
3bd9cb06d97d5f480594153ff9b1671edaea980abed52e2c2f7aae4075d4a924
import os import copy import math import functools import numpy as np from ddapp import transformUtils from ddapp.asynctaskqueue import AsyncTaskQueue from ddapp import objectmodel as om from ddapp import visualization as vis from ddapp import robotstate from ddapp import segmentation from ddapp import planplayback f...
rdeits/director
src/python/ddapp/tabledemo.py
Python
bsd-3-clause
58,028
[ "VTK" ]
b2d4c0309c15b46b6fccaa7d3a425c635493079166d0d02a8aad763d41cedc36
# Copyright (C) 2012,2013,2015,2016 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the term...
espressopp/espressopp
src/FixedTripleList.py
Python
gpl-3.0
3,576
[ "ESPResSo" ]
5f954f76d329829fa3d90c639f2d612ab5774c86fd33c8ee0a29f706216b7e55
from fitfunctionbase import FitFunctionBase from fitparameters import * from fithandles import * __all__ = [ 'FitFuncGaussian', 'FitFuncPseudoVoigt', 'FitFuncBoltzmann2', 'FitFuncConstant', 'FitFuncLine', 'FitFuncHeaviside', 'FitFuncRectangularWindow' ] class FitFuncGaussian(FitFunctionBase): name = 'gaus...
takumak/tuna
src/fitfunctions.py
Python
mit
8,012
[ "Gaussian" ]
c0a2f53677df75a27276c402b8ff04c39dff7af001a72b19aa1fd62ae126f228
# 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 RRsamtools(RPackage): """Binary alignment (BAM), FASTA, variant call (BCF), and tabix file...
iulian787/spack
var/spack/repos/builtin/packages/r-rsamtools/package.py
Python
lgpl-2.1
2,411
[ "Bioconductor" ]
a4b456d40c05e368d10a05f9b133e64ab7e09d83fafb6381330519c5e8729bc7
#!/usr/bin/env python # -*- coding: utf-8 -*- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, ...
bernard357/shellbot
examples/direct.py
Python
apache-2.0
8,139
[ "VisIt" ]
5ef782bac972f509daba92afe89bbce251af8d4c8849c177f7480e366c314e12
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-dialogflow-cx
tests/unit/gapic/dialogflowcx_v3/test_agents.py
Python
apache-2.0
124,793
[ "Octopus" ]
e88634f5b214d82f4e03e2578743d662d9fdb72efd45ec4b1cb2a59e26b26f20
# This file is part of ts_wep. # # Developed for the LSST Telescope and Site Systems. # This product includes software developed by the LSST Project # (https://www.lsst.org). # See the COPYRIGHT file at the top-level directory of this distribution # for details of code ownership. # # This program is free software: you ...
lsst-ts/ts_wep
tests/task/test_estimateZernikesBase.py
Python
gpl-3.0
13,756
[ "VisIt" ]
07663f764a26f57874d3d794688df521768dc08b2a08cb37df7ed8c59e6c11cd
#!/usr/bin/env python """ Utilities for using M2Crypto SSL with DIRAC. """ import os from M2Crypto import SSL, m2 from DIRAC.Core.Security import Locations from DIRAC.Core.Security.m2crypto.X509Chain import X509Chain # Default ciphers to use if unspecified # Cipher line should be as readable as possible, sorry pylin...
petricm/DIRAC
Core/DISET/private/Transports/SSL/M2Utils.py
Python
gpl-3.0
6,737
[ "DIRAC" ]
565d1ffbad439b773341892c747f48acc76340cee2ba22fb267ca2c6b82358c9
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals from __future__ import absolute_import, print_function """ This module provides classes used to enumerate surface sites and to find adsorption sites on slabs "...
johnson1228/pymatgen
pymatgen/analysis/adsorption.py
Python
mit
30,855
[ "Jmol", "pymatgen" ]
89c045a3128766f9df1d1274d0531aa95f63b1bce04c16da60f28a47ffd459ed
# (C) 2016, Markus Wildi, wildi.markus@bluewin.ch # # 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 distr...
RTS2/rts2
scripts/u_point/u_point/httpd_connection.py
Python
lgpl-3.0
3,250
[ "VisIt" ]
3f8cd8036a6a95e23c965751bb48e89e95951e7d9e2f6d3a5305496c65dd420f
import scipy as sp import numpy as np import pylab as plt from scipy.integrate import odeint class HodgkinHuxley(): """Full Hodgkin-Huxley Model implemented in Python""" C_m = 1.0 """membrane capacitance, in uF/cm^2""" g_Na = 120.0 """Sodium (Na) maximum conductances, in mS/cm^2""" g_K =...
openworm/hodgkin_huxley_tutorial
Tutorial/Source/HodgkinHuxley.py
Python
lgpl-3.0
4,594
[ "NEURON" ]
f9b420a9d4e498124cceaf5ad9896166651529cce948547a6e71a8685a2b9f62
#!/usr/bin/env python """ Remove the given file replica or a list of file replicas from the File Catalog This script should be used with great care as it may leave dark data in the storage! Use dirac-dms-remove-replicas instead """ import os from DIRAC import exit as dexit from DIRAC.Core.Base.Script import Script fro...
DIRACGrid/DIRAC
src/DIRAC/DataManagementSystem/scripts/dirac_dms_remove_catalog_replicas.py
Python
gpl-3.0
2,255
[ "DIRAC" ]
5a55a26d19dafaaa9985b512765582656df61e55c97df1cb50b8167462ec52be
""" Implementation of Harwell-Boeing read/write. At the moment not the full Harwell-Boeing format is supported. Supported features are: - assembled, non-symmetric, real matrices - integer for pointer/indices - exponential format for float values, and int format """ # TODO: # - Add more support (symmetr...
nmayorov/scipy
scipy/io/harwell_boeing/hb.py
Python
bsd-3-clause
19,254
[ "exciting" ]
60c55f2fdefce25a91e54a60a9881e27cac67addaac15fbdb11ed2a426451d86
#! /usr/bin/env python import os import sys import argparse import numpy as np import settings from optimize.gradient_optimizer import GradientOptimizer, FindParams from caffevis.caffevis_helper import check_force_backward_true, read_label_file LR_POLICY_CHOICES = ('constant', 'progress', 'progress01') def get_pa...
yosinski/deep-visualization-toolbox
optimize_image.py
Python
mit
13,238
[ "NEURON" ]
3c873e21ad0f2b5c51e74d9868b1c6fd1893f151baff83ddcd982ed47fa54dd5
# -*- encoding: utf-8 -*- # Copyright 2013 Red Hat, 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 re...
stackforge/watcher
watcher/api/controllers/v1/audit.py
Python
apache-2.0
27,964
[ "VisIt" ]
51896800536228bd0965f4e44f6ce880ae1a1514ee881bd92eaa35eda4d45fb6
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + #pylint: disable=no-init from __future__ impo...
mganeva/mantid
Testing/SystemTests/tests/analysis/ConvertToMDworkflow.py
Python
gpl-3.0
4,182
[ "CRYSTAL" ]
7d98829dc3b12ae9b1d4e9d6870d45289303ad17f6c1bfa6ea407c9ae0141d00
# Contributed by Eric E Monson import vtk def main(): colors = vtk.vtkNamedColors() colors.SetColor('bkg', [0.2, 0.3, 0.7, 1.0]) # create a rendering window and renderer ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) # create a renderwindowinteractor ...
lorensen/VTKExamples
src/Python/Widgets/OrientationMarkerWidget.py
Python
apache-2.0
1,724
[ "VTK" ]
e3206fa4245a7d4df278d5bab6faea8b87d006444ec90dec678e32781408ef9d
try: paraview.simple except: from paraview.simple import * def RequestDataDescription(datadescription): "Callback to populate the request for current timestep" if datadescription.GetForceOutput() == True: for i in range(datadescription.GetNumberOfInputDescriptions()): datadescription.GetIn...
openmichigan/PSNM
NavierStokes/Programs/NavierStokes3dFortranMPIParaView/node-based/pipeline_images.py
Python
bsd-2-clause
24,636
[ "ParaView" ]
f579e542030ed17153c4d277f21e5ea3644a1e41ad69e88c84566b2828e8fbb0
#By /u/TachyonNZ # Van Doorn by /u/net_goblin #TEXT-COM, V0.1 import random as rd import time as tm ######################################################################## # constants # ########################################################################...
voidref/textcom
textcom.py
Python
mit
52,947
[ "CASINO", "MOOSE" ]
257a35e6f93677a283ab2a22958a21464b24408757b1237a72ff4dec792c9205
# coding=utf8 # # Copyright 2013 Dreamlab Onet.pl # # 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; # version 3.0. # This library is distributed in the hope that it will be useful, # bu...
tikan/rmock
src/rmock/runners/pop3/server.py
Python
lgpl-3.0
7,734
[ "VisIt" ]
60949d0d553b314a1e781581a8bf802b3f572908baa1bb26044907df6d4a1b0b
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Makes sure that all files contain proper licensing information.""" import optparse import os.path import subprocess import sys...
mogoweb/chromium-crosswalk
tools/checklicenses/checklicenses.py
Python
bsd-3-clause
16,031
[ "Galaxy" ]
66fdca772868ce3fd44b74a695fd41bfd916ba6fb3ada2509f0d7123f32e1d7e
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2017, Shoop Commerce Ltd. All rights reserved. # # This source code is licensed under the OSL-3.0 license found in the # LICENSE file in the root directory of this source tree. import os import time import pytest from django.core.urlresolvers...
suutari-ai/shoop
shuup_tests/browser/admin/test_picotable.py
Python
agpl-3.0
6,128
[ "VisIt" ]
7561096832ea45d639cf524ffd87a5b70b74fa0dfbde1b0956f56be920b420db
# encoding: utf-8 """ DEPRECATED Instead use netCDF4.num2date. cf.py - classes around CF compliant files The cf module is made for reading CF-compliant datasets, knowing data, its structure, units and conversions between units afterwards. Dependencies: ============= numpy netcdftime (packaged in netcdf4-python) ""...
kthyng/octant
octant/cf.py
Python
bsd-3-clause
5,955
[ "NetCDF" ]
f442d53e77dae938bf18b53c4dab0cd68d280630fe1d87c43135268294c2f7a5
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Syntenic path assembly. """ import sys import logging from string import maketrans from itertools import groupby, combinations from jcvi.formats.blast import BlastSlow, Blast from jcvi.formats.sizes import Sizes from jcvi.utils.iter import pairwise from jcvi.utils.r...
sgordon007/jcvi_062915
assembly/syntenypath.py
Python
bsd-2-clause
13,323
[ "BLAST" ]
6e370bd51da2d78a720b92277cefd040f91ecae162b07ecc2b554aa5fda5c9f0
import common import string import os import re import test_db_util import shutil import logging import time import tempfile import tarfile import urllib import galaxy.webapps.tool_shed.util.hgweb_config import galaxy.model.tool_shed_install as galaxy_model import galaxy.util from base.tool_shed_util import repository...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/test/tool_shed/base/twilltestcase.py
Python
gpl-3.0
89,289
[ "Galaxy", "VisIt" ]
dee101fefc6cedd1a041250c2183f4e5181c09152ef0da26c60de9bf635f5c8b
"""The SOINN regressor.""" from . import isoinn2 from .kde import density from .__gaussian_custom import norm_pdf_multivariate from numpy import array,diag,matrix import time from pygraph.classes.graph import graph from pygraph.algorithms.accessibility import connected_components import itertools from copy import deepc...
sbxzy/pygks
pygks/reg_inn.py
Python
bsd-3-clause
6,646
[ "NEURON" ]
4c21dfcdebd25facdc03baca95d067e059f3b1e158183c10959cdb45a4372a5d
#!/usr/bin/env python # PyCal - Python web calendar # # Copyright (C) 2004 Ray Osborn # # 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 # (at your opt...
rayosborn/pycal
scripts/SendRequest.py
Python
lgpl-3.0
3,403
[ "VisIt" ]
9bffefb64fd37672b4a3b4444dc95de1b8df2461adda409934c8247857162114
import os import sys import argparse from itertools import groupby def fasta_iter(fasta_name): fh = open(fasta_name) faiter = (x[1] for x in groupby(fh, lambda line: line[0] == ">")) for header in faiter: header = next(header)[1:].strip() seq = "".join(s.strip() for s in next(faiter)) ...
shahnidhi/outlier_in_BLAST_hits
utils/split_merge.py
Python
mit
2,837
[ "BLAST" ]
4e309f471a2b95dc96c379457919d0d867da958b02a851b5c062941a053346ae
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create renderer stuff # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renW...
hlzz/dotfiles
graphics/VTK-7.0.0/Rendering/Core/Testing/Python/rotations.py
Python
bsd-3-clause
2,846
[ "VTK" ]
a87ae6e5f873063369a69c4fd02d8e25922cce38dced91cb83392852831efe4c
# -*- coding: utf-8 -*- """ *************************************************************************** translate.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *****************************...
dwadler/QGIS
python/plugins/processing/algs/gdal/gdaladdo.py
Python
gpl-2.0
5,646
[ "Gaussian" ]
b42c5aa5525064eea650c3c90b1935ebcf859d89212054dcc7eaa121fbdb07e4
"""This is a python library, extending [Mininet](http://mininet.org), in order to support emulation of (complex) IP networks. As such it provides new classes, such as Routers, auto-configures all properties not set by the user, such as IP addresses or router configuration files, ...""" # This module has a hard depende...
oliviertilmans/ipmininet
ipmininet/__init__.py
Python
gpl-2.0
892
[ "VisIt" ]
62ee95fbaaf50cac8a735367b1122bdd6e48bc65142b055773fcc942fd7859ff
import expr from itertools import repeat from context import Symbol, Scope from type_objects import List, Dict, Unknown, Function, NoneType, Instance from util import type_intersection from evaluate import UnknownValue def get_token(node): return node.__class__.__name__ class NullEvaluator(object): # for recur...
clark800/pystarch
backend/function.py
Python
mit
8,254
[ "VisIt" ]
b72d1649aea2782080f0403f1ac8ade88c0b1a2d093871b55383faa10fdc1d3d
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
pli3/e2-openwbif
plugin/controllers/views/web/timercleanup.py
Python
gpl-2.0
5,192
[ "VisIt" ]
6a6ac8ef263f4141786c585fda1b1ff5e6de42559dd493ec37cdd793f17e7721
# Copyright (c) 2015 Rackspace, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
obulpathi/poppy
poppy/transport/validators/root_domain_regexes.py
Python
apache-2.0
4,243
[ "CASINO" ]
491e3522aeb830961a4f238c88a8b7830355d33a21e565a1ee18312def2cfacb
import sys import argparse import time import random import cPickle import gzip import copy import codecs import operator import multiprocessing as mp from nltk.corpus import wordnet as wn import theano, numpy from theano import tensor as T from event_ae import EventAE from process_data import DataProcessor argpars...
pdasigi/spade
run_event_ae.py
Python
gpl-2.0
15,910
[ "Gaussian" ]
c7cd548b5597f1e0fd2d0d53f4090f3cdc5739c1ee5d32cb5a5428f30d8dace3
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
google/timecast
timecast/series/random.py
Python
apache-2.0
1,062
[ "Gaussian" ]
2a9cb8a10d79b3444ff7dd4a06f66946b6fe2200813b92225f43e7393e0406e3
# coding=utf8 # # Copyright 2013 Dreamlab Onet.pl # # 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; # version 3.0. # This library is distributed in the hope that it will be useful, # bu...
tikan/rmock
src/rmock/core/patch.py
Python
lgpl-3.0
5,184
[ "VisIt" ]
a3efccbf671ab25bee56b61015b9ccecf960d9c126783c15086eacc443722015
# Built-in import itertools as itt # Common import numpy as np from scipy.interpolate import BSpline import matplotlib.pyplot as plt import matplotlib.lines as mlines import matplotlib.patches as mpatches import matplotlib.colors as mplcol import matplotlib.gridspec as gridspec from matplotlib.axes._axes import Axes...
Didou09/tofu
tofu/geom/_plot_optics.py
Python
mit
45,222
[ "CRYSTAL" ]
79e5b8162cbea22937797b0d3db9f012295c7374b1a87f401ea2c82a21693c0a
# $Id$ # # Copyright (C) 2001-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """testing code inspi...
rvianello/rdkit
rdkit/Chem/UnitTestOldBugs.py
Python
bsd-3-clause
3,815
[ "RDKit" ]
d689a72185421b19449e67cf1547e46bff436733ca5365001078f903513844aa
# -*- coding: utf-8 -*- """Factories for the OSF models, including an abstract ModularOdmFactory. Example usage: :: >>> from tests.factories import UserFactory >>> user1 = UserFactory() >>> user1.username fred0@example.com >>> user2 = UserFactory() fred1@example.com Factory boy docs: http://f...
monikagrabowska/osf.io
tests/factories.py
Python
apache-2.0
30,109
[ "Brian" ]
a51379265e771aa1a71e7dae49a933ad31e6cce5ea42f3166469a2ab515af60c
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
Chuban/moose
python/chigger/tests/annotations/image_annotation.py
Python
lgpl-2.1
1,225
[ "MOOSE" ]
e2a80881446f1c46eacf45c95ed982ed6a65451a9a88ae317719ec1308bbafbe
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
Intel-Corporation/tensorflow
tensorflow/python/ops/nn_ops.py
Python
apache-2.0
262,706
[ "Gaussian" ]
8260d50589767c9ecb2bdd5bc19ed0cd09467cb039dbc97ecda4bbf79c89cc51
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, print_function """ This module implements plotter for DOS and band structure. """ __author__ = "Shyue Ping Ong, Geoffroy Hautier" __copyright__ = "Copyright ...
migueldiascosta/pymatgen
pymatgen/electronic_structure/plotter.py
Python
mit
42,465
[ "Gaussian", "pymatgen" ]
e14d4f46c83e14bd10ea34a01b9810f82df22b1b70e680f0902529f20b0ac082
# -*- coding: utf-8 -*- import numpy as np import pymoskito as pm import matplotlib as mpl import matplotlib.patches import matplotlib.transforms from . import settings as st HKS41K100 = '#0b2a51' HKS44K100 = '#0059a3' HKS44K80 = '#346FB2' HKS36K100 = '#512947' HKS33K100 = '#811a78' HKS57K100 = '#007a47' HKS65K100 ...
cklb/PyMoskito
pymoskito/examples/ballbeam/visualization.py
Python
bsd-3-clause
5,996
[ "VTK" ]
8fad5414703ab088973fc8351b9cf2b42a859f0418eafa0c19b0487772ffb52f
#!/usr/bin/env python import os import re import sys import numpy as np from chrom import * from ..util import util as u from ..util.elements import ELEMENTS # # NWChem output file # class NWChem(Chrom): '''A class to parse NWChem td logfiles.''' def __init__(self, outfile): # Inherit from Chrom ...
dpadula85/ExSPy
stable/QM_parser/parser/nwchem.py
Python
gpl-3.0
3,785
[ "NWChem" ]
9465e11c391b87af75748e92f26d0bda9687a4616263a7ab0640cc51bb5e406a
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
lberruti/ansible-modules-extras
system/svc.py
Python
gpl-3.0
9,616
[ "Brian" ]
8eb470e115185593ba3b304b5cd7a0c1bb4220def4d6ec549cf46b38c1b294f1
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
unnikrishnankgs/va
venv/lib/python3.5/site-packages/tensorflow/contrib/keras/python/keras/layers/noise.py
Python
bsd-2-clause
3,671
[ "Gaussian" ]
56614cfc48d79705e850735065b3c8c5b6db2e7aaaa28ca2d19dd8398aeec034
class VehicleInfo(object): def __init__(self): """ make_target: option passed to make to create binaries. Usually sitl, and "-debug" may be appended if -D is passed to sim_vehicle.py default_params_filename: filename of default parameters file. Taken to be relative to autotest dir. ...
peterbarker/ardupilot-1
Tools/autotest/pysim/vehicleinfo.py
Python
gpl-3.0
10,252
[ "Firefly" ]
79f23e0aedacda262ae05f6a577d860c3b4c8bd8c49be3593021e3758f10b4bc
#! /usr/bin/env python import random,sys import re import math import collections import numpy as np import time import operator from scipy.io import mmread, mmwrite from random import randint from sklearn import cross_validation from sklearn import linear_model from sklearn.grid_search import GridSearchCV from sklearn...
Goodideax/CS249
predict_ws.py
Python
bsd-3-clause
14,972
[ "Gaussian" ]
1708884fd4355f26d5e4bf3193d42d3ea0b5c7a98011e9d994d3dad42a846373
# 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) import os class Ioapi(MakefilePackage): """Models-3/EDSS Input/Output Applications Programming Interface.""" ho...
iulian787/spack
var/spack/repos/builtin/packages/ioapi/package.py
Python
lgpl-2.1
1,598
[ "NetCDF" ]
06ee3e9170cd00c4125fe99a7290a38bbe759c459345809bd866ab8b995babb1
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Robert Layton <robertlayton@gmail.com> # Andreas Mueller <amueller@ais.uni-bonn.de> # Philippe Gervais <philippe.gervais@inria.fr> # Lars Buitinck ...
DonBeo/scikit-learn
sklearn/metrics/pairwise.py
Python
bsd-3-clause
41,696
[ "Gaussian" ]
b611389f0d4d3f3e817d161e987c710b3c80df1d10ede4f219c26c95380de0b7
# # # File to test current configuration of CA1Pyramidal cell project. # # To execute this type of file, type '..\..\..\nC.bat -python XXX.py' (Windows) # or '../../../nC.sh -python XXX.py' (Linux/Mac). Note: you may have to update the # NC_HOME and NC_MAX_MEMORY variables in nC.bat/nC.sh # # Author:...
pgleeson/TestArea
models/LarkumEtAl2009/pythonScripts/RunTestsModelDB.py
Python
gpl-2.0
3,310
[ "NEURON" ]
0cb5ad6ef7e80713163ea4f74fc7a42c411f2fe72810b0649df050e057d6b624
# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # Copyright (c) 2009-2010 Arista Networks, Inc. # http://www.logilab.fr/ -- mailto:contact@logilab.fr # 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 # ...
tkaitchuck/nupic
external/common/lib/python2.6/site-packages/pylint/checkers/base.py
Python
gpl-3.0
34,609
[ "VisIt" ]
e6dc6e547d1e02bef1838e9be72177c1da48e67db9b32973aab703eba66594c6
import pygad as pg import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import numpy as np from scipy import stats import utils import glob import matplotlib.cm as cm import matplotlib.mlab as mlab from multiprocessing import Pool filename = __file__ n, start, end = 50, -6, -1 bins=np.logspace(start...
Migelo/mpa_garching
1/z_gal_vs_z_halo.py
Python
mit
3,868
[ "Galaxy" ]
3058496d2e5a52c154e2b8e80c61dc3752f38a9baee1bbf00df16072ee9718c8
#!/usr/bin/env python """ dirac-rss-query-dtcache Select/Add/Delete a new DownTime entry for a given Site or Service. Usage: dirac-rss-query-dtcache [option] <query> Queries: [select|add|delete] Options: --downtimeID= The ID of the downtime --element= ...
vmendez/DIRAC
ResourceStatusSystem/scripts/dirac-rss-query-dtcache.py
Python
gpl-3.0
12,482
[ "DIRAC" ]
19428c2d8f748128e1564e4f08ba2fad2146e89ec73a08b290654eb399744349
#!/usr/bin/env python # # Copyright 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Convert Android xml resources to API 14 compatible. There are two reasons that we cannot just use API 17 attributes, so we are ge...
Teamxrtc/webrtc-streaming-node
third_party/webrtc/src/chromium/src/build/android/gyp/generate_v14_compatible_resources.py
Python
mit
12,231
[ "Galaxy" ]
3bb4f5ac1b7b12927c56e94f23c8d0f6cd43f7d393a4843bbe9cc0e9720d8040
# BREADTH-FIRST-SEARCH # Visit an initial vertex, and then visit every one of its # neighbours. Only when every neighbour vertex has been # visited then move to a neighbour of a neighbour. Each time # the seach comes to a new vertex it visits all of its # neighbours before visiting any that are further from the # st...
melayev/algods
bfs.py
Python
mit
2,241
[ "VisIt" ]
e4a6e0b896a2119577596ecdcd21931b202f922ea505295b681a26567e6b9c31
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007 Douglas S. Blank # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2008 Raphael Ackerman # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2011 Tim G L Lyons # # This program is free software; you can redi...
arunkgupta/gramps
gramps/plugins/import/importcsv.py
Python
gpl-2.0
36,989
[ "Brian" ]
3b1f9b00e2eb78aa556da125db567e498eeae96ecba9629f2700ae4601c728d2
#!/usr/bin/env python import numpy as np import scipy.io as io import nengo import pyopencl as cl from nengo_ocl import sim_ocl from nengo.utils.numpy import rmse, norm import matplotlib.pyplot as plt from nengo.utils.logging import logger class _InputImage(object): """Structure of the input image to the mode ...
matallanas/smoothPursuit
code/Nengo/mt_model.py
Python
gpl-3.0
2,756
[ "NEURON" ]
01bbc63eeb740b9388240ff169eab06ad5a01cbaac33fbe15ccdded62ecec1f1
__author__ = "HarshaRani" __credits__ = ["Upi Lab"] __license__ = "GPL3" __version__ = "1.0.0" __maintainer__ = "HarshaRani" __email__ = "hrani@ncbs.res.in" __status__ = "Development" __updated__ = "Oct 26 2018" ''' 2018 Oct 26: xfer molecules are not put into screen Se...
BhallaLab/moose
moose-gui/plugins/kkitOrdinateUtil.py
Python
gpl-3.0
19,921
[ "MOOSE" ]
9a960ffe3e9a77241fbb1bbefdb59c091c5922b3ca7d9551cc93afab0732852f
# $HeadURL $ ''' ResourceManagementHandler Module that allows users to access the ResourceManagementDB remotely. ''' from DIRAC import gConfig, S_OK, gLogger from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.ResourceStatusSystem.Ut...
calancha/DIRAC
ResourceStatusSystem/Service/ResourceManagementHandler.py
Python
gpl-3.0
7,554
[ "DIRAC" ]
cf1051d090679ff363c0d21d83b2f43dff20f2b984645158f660de9c8fec2995
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/Version.py
Python
gpl-3.0
2,358
[ "ESPResSo" ]
199a641dbf7b58bd76f449a4647a743df87de6f3f6402975b2af25bcbe27def0
#!/usr/bin/python # -------------------------- IMPORTS -------------------------- # import numpy as np import random as rn import scipy import skimage.util import skimage.transform # -------------------------- CROP -------------------------- # # # image: image to be cropped, scale: scale factor, keep_original_size: k...
nmarceloromero/data_augment
augment.py
Python
mit
6,909
[ "Gaussian" ]
4a9ebf4a30b22de7fa2a8cf70eb8bd54654f46d1463da890f67a26c5726d5d9d
#!/usr/bin/env python # # Copyright 2007 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 applicable law o...
JerryXia/fastgoagent
goagent/server/uploader/google/appengine/tools/appcfg.py
Python
mit
127,429
[ "VisIt" ]
2eace6825a1e1d3b52f80da4da18d69dba608ffa222bedb3320d0d48721fb996
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2015, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later. You s...
jchodera/cclib
test/parser/testlogfileparser.py
Python
lgpl-2.1
3,707
[ "ADF", "cclib" ]
4921b9e564727d262e2e76798a8b9495ce93a455b41b96ef34bc18a00cbca59b
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
liuwenf/moose
python/chigger/tests/line_sample/line_sample.py
Python
lgpl-2.1
1,545
[ "MOOSE" ]
da244cc919943195d92daf87fdb1ee7e431e4b3c8f76e07952f22569018141d9
from scipy.ndimage import gaussian_filter def smooth_data(data, SD) : """Smooth data based on gaussian_filter Parameters ---------- data: numpy array unsmootheed fMRI data SD: the standard deviation for gaussian smoothing Returns ------- nparray of same shape as input but smoothed """ smoothed...
juanshishido/project-eta
code/utils/smoothing.py
Python
bsd-3-clause
391
[ "Gaussian" ]
e407e4afcbdf45385900e5546e074815bf3107089837b0d5489db92760b88951
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ---------------------...
JWDebelius/scikit-bio
skbio/alignment/tests/test_alignment.py
Python
bsd-3-clause
42,179
[ "scikit-bio" ]
e8ceccfa8cdd56921fc98cf1f35d7ce7b6c32e6990f028a99c5f7a884bf6801e
# -*- coding: utf-8 -*- # # connections.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or...
flinz/nest-simulator
topology/doc/user_manual_scripts/connections.py
Python
gpl-2.0
18,279
[ "Gaussian" ]
4d6ca28489343af62993d850eb1bb9a2e702b2ed43836b74247e20aad5105982