text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#!/usr/bin/python # -*- coding: utf-8 -*- # Pedro Rodrigues - medecau.com - medecau@gmail.com from BeautifulSoup import BeautifulSoup from BeautifulSoup import BeautifulStoneSoup from csv import writer from urllib import urlopen ''' More info: http://www.pinkblue.com/nomes/desc.asp?id=449 http://babynamesworld.parents...
transparenciahackday/scraper-deputados
onomastica.py
Python
mit
1,790
[ "VisIt" ]
c944494f2943a88bdbc2c2f0157d6d88cc32f00c3cdf543135a81911256dbe4a
"""Kernel Tuner interface module This module contains the main functions that Kernel Tuner offers to its users. Author ------ Ben van Werkhoven <b.vanwerkhoven@esciencenter.nl> Copyright and License --------------------- * Copyright 2016 Netherlands eScience Center Licensed under the Apache License, Version 2.0 (th...
benvanwerkhoven/kernel_tuner
kernel_tuner/interface.py
Python
apache-2.0
31,740
[ "Firefly" ]
4c0e964865a70eaccc51724f06d1428b8b598bd36dae725276e2288017e7e56e
#!/usr/bin/python """ Example script to realise a mock galaxy catalogue. """ import numpy as np import pylab as P import scipy.integrate import sys sys.path.append('src/') import ghost MHALO_MIN = 1e13 # Min. halo mass NHALO = 100 # Number of halos to generate np.random.seed(10) # Load halo mass function (calculated...
philbull/ghost
realise_cat.py
Python
mit
1,976
[ "Galaxy" ]
fe25e7d93c7a166c9a264892d6a3b6c88856ea6d57a0d2adbe6d95eb9b4af085
# This file is part of the Fluggo Media Library for high-quality # video and audio processing. # # Copyright 2010 Brian J. Crowell <brian@fluggo.com> # # 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 Founda...
fluggo/Canvas
fluggo/editor/ui/canvas/thumbnails.py
Python
gpl-3.0
8,528
[ "Brian" ]
6bafc317346b46f2f3b2a3f1adf8bc57abb701feda7f771d5ef7ef2ed51c3645
from __future__ import absolute_import import math import copy import numpy import scipy.ndimage.measurements from . import lapjv import six from six.moves import range from six.moves import zip invalid_match = 1000000 # limiting the choices of the algorithms def euclidean_dist(point1, point2): """Compute the E...
CellProfiler/centrosome
centrosome/neighmovetrack.py
Python
bsd-3-clause
14,949
[ "Brian" ]
d3019361057174caf0175fd2cdbcf302f4a318c24fcb74da937416fad555c461
__author__ = 'sibirrer' from astrofunc.LensingProfiles.spep import SPEP from astrofunc.LensingProfiles.spp import SPP from astrofunc.LensingProfiles.sis import SIS import numpy as np import numpy.testing as npt import pytest class TestSPEP(object): """ tests the Gaussian methods """ def setup(self): ...
sibirrer/astrofunc
test/test_spp.py
Python
mit
4,841
[ "Gaussian" ]
45197e4e05a45659c8b854502ea92418a9d588dfd02cacdaad4c1b1475e72c6d
from paraview.simple import * from paraview.web.dataset_builder import * # Can.ex2 file path fileToLoad = '/Users/seb/Downloads/ParaViewData-3.10.1/Data/can.ex2' dataset_destination_path = '/tmp/can' # Initial ParaView scene setup can = OpenDataFile(fileToLoad) can.ElementVariables = ['EQPS'] can.PointVariables = ['D...
Kitware/arctic-viewer
scripts/examples/paraview/samples/time-management.py
Python
bsd-3-clause
1,511
[ "ParaView" ]
196d49c152121b6e24c62bb24b65dc071ac6049ddb4b82e6540367e1f1b36d09
#!/usr/bin/env python3 from __future__ import print_function import os, sys, errno from itertools import groupby # def faidx_load_all(faidx): # chrs = {} # for ref in faidx.references: # chrs[ref] = faidx.fetch(reference=ref) # return(chrs) # def load_fasta(path): # faidx = pysam.FastaFile(path) # chr...
mcveanlab/mccortex
scripts/python/mccortex.py
Python
mit
2,254
[ "pysam" ]
165d72409c2fa260165f72de33c79cd8dcad46c320f6063621482f925c135a28
#!/usr/bin/env python import roslib,rospy,sys,cv2,time import numpy as np roslib.load_manifest('lane_follower') # from __future__ import print_function from std_msgs.msg import Int32 from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError bridge = CvBridge() pub = rospy.Publisher('lane_detectio...
isarlab-department-engineering/ros_dt_lane_follower
deprecated_nodes/old/lane_detection.py
Python
bsd-3-clause
6,194
[ "Gaussian" ]
a9d0733a8f4d2356467feecf4587f169b76c804bf0286cdd8e029a80d033b77f
from django.db import models from django.contrib.auth.models import User from django.conf import settings class Visit(models.Model): student = models.ForeignKey(User, related_name='visits') submitter = models.ForeignKey(User, related_name='submitted_visits') campus = models.CharField(max_length=255, choice...
marklocklear/Online-Student-Profile
osp/visits/models.py
Python
lgpl-3.0
1,102
[ "VisIt" ]
f91e8d69b7e1a24254cd2c862c9a367e5525a72386787b6ea987f6c55dd83b4c
# -*- coding: utf-8 -*- ''' Describe test for Django @author: Laurent GAY @organization: sd-libre.fr @contact: info@sd-libre.fr @copyright: 2015 sd-libre.fr @license: This file is part of Lucterios. Lucterios is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as...
Diacamma2/financial
diacamma/accounting/tests_accounts.py
Python
gpl-3.0
57,816
[ "Dalton" ]
19207c01d4159d4beb0de495464635220ec9dcca7bf1a0cf853f4a4492502b1b
"""Generate html report from MNE database """ # Authors: Alex Gramfort <alexandre.gramfort@telecom-paristech.fr> # Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os import os.path as op import fnmatch import re import codecs import time from...
dimkal/mne-python
mne/report.py
Python
bsd-3-clause
61,251
[ "Mayavi" ]
2e1473dbea8541e39f04dc549804568f0b7e16359a49b39be084e08e0e599f17
# # Copyright (c) 2009, Novartis Institutes for BioMedical Research Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyri...
rvianello/rdkit
Contrib/LEF/DistancePlot.py
Python
bsd-3-clause
4,011
[ "RDKit" ]
242f2d5ddbe5a3c56a898619ded762b5e8d3cc6b178b2d0d060767d5ac79cb84
# coding: utf-8 from __future__ import unicode_literals import binascii import collections import email import getpass import io import optparse import os import re import shlex import shutil import socket import struct import subprocess import sys import itertools import xml.etree.ElementTree try: import urllib...
linglung/ytdl
youtube_dl/compat.py
Python
unlicense
88,573
[ "Bowtie" ]
fefa7a78a27158b717a6e6d1f45e88df1c73c8c5596d3978f31344ab76b4228b
""" GPoFM: Gaussian Process Training with Optimized Feature Maps for Shift-Invariant Kernels Github: https://github.com/MaxInGaussian/GPoFM Author: Max W. Y. Lam [maxingaussian@gmail.com] """ import numpy as np from scipy.stats import skew, norm, mstats from scipy.optimize import minimize __all__ = [ "Tran...
MaxInGaussian/GPoFM
GPoFM/utils/Transformer.py
Python
bsd-3-clause
6,332
[ "Gaussian" ]
4118c31370357d6e7f7d1ace624e88349f5507baf99afa528272910f87b64f69
from vtk import vtkGenericDataObjectReader, from vtk.util.numpy_support import vtk_to_numpy import sys def load_unstructured_vtu_data(input_file) """ Given path to unstructured grid file (vtu file format) returns tuple of numpy arrays (coordinate_points, scalar_data) """ reader =...
sohrabtowfighi/py_tri_calc
vtk_local_min_max/load_vtk_unstructured_mesh.py
Python
gpl-3.0
755
[ "VTK" ]
6f652b730c1beb4cc20ab046661dd0d11f9d1b28569f2b62a7d62b5b607a87ae
import json import os import time from SWParser import * from SWPlugin import SWPlugin import threading sources = { 1: 'Unknown Scroll', 2: 'Mystical Scroll', 3: 'Light & Dark Scroll', 4: 'Water Scroll', 5: 'Fire Scroll', 6: 'Wind Scroll', 7: 'Legendary Scroll', 8: 'Exclusive Summons', 9: "Legendary Pieces", ...
lstern/SWProxy-plugins
plugins/SummonLogger.py
Python
lgpl-3.0
3,115
[ "CRYSTAL" ]
2307d47d603db6e92edac5baf6ba10d175e02a208d56b6117dc338b6ffa7483e
# # Author: Jorg Bornschein <bornschein@fias.uni-frankfurt.de) # Lincense: Academic Free License (AFL) v3.0 # """ Provide simple bar-pattern generator. """ from __future__ import division __author__ = "Joerg Bornschein <bornschein@fias.uni-frankfurt.de>" import numpy as np def generate(num, size, p_bar):...
jbornschein/mca-genmodel
pulp/utils/bargen.py
Python
agpl-3.0
1,857
[ "Gaussian" ]
1b522cd2647201951d9d1f9df679d47a95179082422fb58a22310134a8bdc304
#!/usr/bin/python # file: formatter.py # author: Andrea Vedaldi # description: Utility to format MATLAB comments. # Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson. # All rights reserved. # # This file is part of the VLFeat library and is made available under # the terms of the BSD license (see th...
hustcalm/whatsprogrammer
computer-vision/SFMedu/SFMedu/lib/vlfeat/docsrc/formatter.py
Python
mit
17,497
[ "Brian" ]
ca5926921261081e16c7ea7ceacacfb18bd650f6b5c0788a206ef4d266db5f13
from __future__ import absolute_import, division, print_function from operator import add from itertools import chain def inc(x): return x + 1 def ishashable(x): """ Is x hashable? Example ------- >>> ishashable(1) True >>> ishashable([1]) False """ try: hash(x) ...
PeterDSteinberg/dask
dask/core.py
Python
bsd-3-clause
9,803
[ "VisIt" ]
5f67454967ae72eaa72f5c90a2c28f2e91f645080fa91899da2910779086acd8
#!/usr/bin/env python ''' Master loader for all Coordinated Canyon Experiment data from October 2015 through 2016 Mike McCann MBARI 26 January March 2016 ''' import os import sys parent_dir = os.path.join(os.path.dirname(__file__), "../") sys.path.insert(0, parent_dir) # So that CCE is found from CCE import CCELoad...
danellecline/stoqs
stoqs/loaders/CCE/loadCCE_2015.py
Python
gpl-3.0
29,595
[ "NetCDF" ]
89b6136d6760b013bc8e7af6e89558a750195bcd922fb42759b18decdb6160b8
# TODO: to be transformed into a real test ######################################################################## # File: ReplicateAndRegisterTests.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/05/13 18:38:55 ######################################################################## """ :mod: FullChainTest ...
DIRACGrid/DIRAC
tests/Integration/RequestManagementSystem/FIXME_IntegrationFCT.py
Python
gpl-3.0
6,376
[ "DIRAC" ]
6f983845d1d70dfe044a6bbaf7314b64bd36dec013b4eb65a8c53af0d53ae25c
''' Usage: This programme is to creating the netcdf file corresponding to the 24, 48...120 hr forcast and observed rainfall data of rainfall data. Written by: Dileepkumar R JRF- IIT DELHI Date: 23.06.2011; ''' import numpy.ma import ctgfunction import data_access import cdms2 import cdutil from regrid2 i...
arulalant/mmDiagnosis
diagnosis1/extra/pygrib_code/rainfall_regrid_generating_nc.py
Python
gpl-3.0
1,210
[ "NetCDF" ]
58ecd3b32bd1cb25c3f29c48dd2a7b13befa2980f14e5f8d99035886669ac5af
#!/usr/bin/env python # -*- coding: utf-8 -*- """Extract neural activity from a fluorescence trace using a constrained deconvolution approach Created on Tue Sep 1 16:11:25 2015 @author: Eftychios A. Pnevmatikakis, based on an implementation by T. Machado, Andrea Giovannucci & Ben Deverett """ from builtins import ...
simonsfoundation/CaImAn
caiman/source_extraction/cnmf/deconvolution.py
Python
gpl-2.0
39,506
[ "NEURON" ]
62b35dc5dff5b7f4aa999f67fbc31c9032c23f815325eefc460e04bf18e2d781
#import sys, os #sys.path.insert(0, '/media/nmsutton/Ext3Drive/General/NEST/NEST/lib64/python3.4/site-packages') #print (os.path.dirname(sys.executable)) #print (os.environ) import pylab import nest print ("test") neuron = nest.Create("iaf_neuron") neuron2 = nest.Create("iaf_neuron") neuron3 = nest.Create("iaf_neur...
nmsutton/MemoryModule
python_version/examples/nestTestSynapses3.py
Python
mit
1,457
[ "NEURON" ]
4ee823b883dee44ca832d6497e9d000ad765cb41158653a04799939c3c7c05b3
# try using distribute or setuptools or distutils. try: import distribute_setup distribute_setup.use_setuptools() except ImportError: pass try: from setuptools import setup except ImportError: from distutils.core import setup import sys import re # parse version from package/module without impor...
widdowquinn/THAPBI
Phy_ITS_ident_pipline_DRAFT/setup.py
Python
mit
1,969
[ "Biopython" ]
7f536b04b6cc91c97babd87ed4e20981ad61ae2eb83ca6f50167e33ab8461f20
# Copyright 2006-2007 by Peter Cock. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # #Nice link: # http://www.ebi.ac.uk/help/formats_frame.html """Sequence input/output design...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/SeqIO/__init__.py
Python
apache-2.0
76,925
[ "BioPerl", "Biopython" ]
bc2f02b5c80fc29a59afaaf537b7c096fddc599c3e06f39c94d952d28fa8904a
#!/usr/bin/env python """ Complete pipeline for motion correction, source extraction, and deconvolution of one photon microendoscopic calcium imaging data using the CaImAn package. The demo demonstrates how to use the params, MotionCorrect and cnmf objects for processing 1p microendoscopic data. The analysis pipeline ...
agiovann/Constrained_NMF
demos/general/demo_pipeline_cnmfE.py
Python
gpl-2.0
11,895
[ "Gaussian", "NEURON" ]
d46aea15093d7fc9d6adab57c5b8f9c6eda9db2f513c25089e925a29f3b7733a
#!/usr/bin/env python # generate Python Manifest for the OpenEmbedded build system # (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de> # (C) 2007 Jeremy Laine # licensed under MIT, see COPYING.MIT # # June 22, 2011 -- Mark Hatle <mark.hatle@windriver.com> # * Updated to no longer generate special -dbg pa...
PhiInnovations/mdp28-linux-bsp
scripts/contrib/python/generate-manifest-2.7.py
Python
mit
16,090
[ "VisIt" ]
c756c984238e9e78b9b1846ce6657aed3d993f3443434e8441375fa9f4ef0563
# # Copyright 2008, 2009 Brian R. D'Urso # # This file is part of Python Instrument Control System, also known as Pythics. # # Pythics is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
dursobr/Pythics
pythics/instruments/keithley_2000.py
Python
gpl-3.0
18,103
[ "Brian" ]
96fb61cd15ab4f52326bed69396ad6a8b79052d49d1b0e1f989177d3481e859c
""" Created on Mar 17, 2014 @author: tjoneslo """ import logging import math from wikistats import WikiStats from collections import OrderedDict, defaultdict from AllyGen import AllyGen from Star import UWPCodes class Populations(object): def __init__(self): self.code = "" self.homeworlds = [] ...
makhidkarun/traveller_pyroute
PyRoute/StatCalculation.py
Python
mit
14,360
[ "Galaxy" ]
79f20f325b7305c8a6f6862e14d2332d0b820edc9b8af48597a7273279500325
# -*- coding: utf-8 -*- # This file is part of Shuup. # # Copyright (c) 2012-2016, Shoop Ltd. All rights reserved. # # This source code is licensed under the AGPLv3 license found in the # LICENSE file in the root directory of this source tree. import os import pytest from django.core.urlresolvers import reverse from ...
shawnadelic/shuup
shuup_tests/browser/admin/test_order_list.py
Python
agpl-3.0
3,065
[ "VisIt" ]
efb41eff49bcde75a3b21146e977730482d0b4ffe5eeda5d8307d647ca9052c8
# Copyright (C) 2011-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
testsuite/python/ek_eof_one_species_x.py
Python
gpl-3.0
1,244
[ "ESPResSo" ]
414a03612f7e8372da82cbc00af7c59d2883d7e2c13c984202131d3ffce05ba0
"""Display a rotomap.""" import enum import functools import sys import cv2 import numpy import mel.lib.common import mel.lib.fullscreenui import mel.lib.image import mel.rotomap.detectmoles import mel.rotomap.mask import mel.rotomap.moles import mel.rotomap.relate import mel.rotomap.tricolour DEFAULT_MASKER_RADIUS...
aevri/mel
mel/rotomap/display.py
Python
apache-2.0
26,545
[ "VisIt" ]
84642d32cafce63a9ac5c986dde656fdd949be848bb067b3b51b5b4b828b3dcd
def vector_product3(a, b): """Computes and returns the vector product of vectors a and b.""" return [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]] def seq_mult_scalar(a, s): """Returns a list of the products of s with the values in list a.""" ...
Xorgon/Computing-Labs
lab5.py
Python
mit
787
[ "Amber" ]
38e5a6a7f41a6240440d88d209a130d28796157051b211f5f3f9143749ac215f
# -*- coding: utf-8 -*- # # inhibitory_network.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 Lice...
uahic/nest-simulator
examples/nest/gap_junction/inhibitory_network.py
Python
gpl-2.0
4,388
[ "NEURON" ]
9800c7201296116b8b8e8b70312ca556700d5706130e8391cca1223e5a94570f
# Author: Travis Oliphant # 2003 # # Feb. 2010: Updated by Warren Weckesser: # Rewrote much of chirp() # Added sweep_poly() from __future__ import division, print_function, absolute_import import numpy as np from numpy import asarray, zeros, place, nan, mod, pi, extract, log, sqrt, \ exp, cos, sin, polyval, po...
gfyoung/scipy
scipy/signal/waveforms.py
Python
bsd-3-clause
21,071
[ "Gaussian" ]
54ce0cc9a8db11d53911bca5897a3a81f1e129ae790faef488ce65781367c9bb
###################################################################### ## ## Copyright 2010-2011 Ondrej Certik <ondrej@certik.cz> ## Copyright 2010-2011 Mateusz Paprocki <mattpap@gmail.com> ## Copyright 2011 Christian Iversen <ci@sikkerhed.org> ## ## Permission is hereby granted, free of charge, to any person ## obtain...
buchuki/pyjaco
pyjaco/compiler/__init__.py
Python
mit
4,278
[ "VisIt" ]
99e3c21e7b3d23b75da05949a55bbd5b154753bbdb8adb7729d437f70703b821
import numpy as np from gpaw import GPAW from gpaw.dipole_correction import DipoleCorrection from gpaw.poisson import PoissonSolver from ase.structure import molecule from gpaw.mpi import rank from gpaw.utilities import h2gpts """ Test the dipole correction code by comparing this system: H z1 O z2 H (wh...
robwarm/gpaw-symm
gpaw/test/dipole.py
Python
gpl-3.0
2,744
[ "ASE", "GPAW" ]
cc1f72dc23f5891e606cf66cf629f49b98da44b636e18f17fb87017957c9c7be
# Copyright (c) 2012 ARM Limited # All rights reserved. # # The license below extends only to copyright in the software and shall # not be construed as granting a license to any other intellectual # property including but not limited to intellectual property relating # to a hardware implementation of the functionality ...
xiaoyuanW/gem5
src/python/m5/SimObject.py
Python
bsd-3-clause
47,683
[ "VisIt" ]
654829b31bbff99502bc1763c4acf2f60296d14e33e6b547570a31fabfc1517f
#!/usr/bin/env python # -*- coding: utf-8 -*- class Room(object): def __init__(self, name, description): self.name = name self.description = description self.paths = {} def go(self, direction): return self.paths.get(direction, None) def add_paths(self, paths): ...
renweizhukov/LearningPythonTheHardWay
projects/gothonweb/gothonweb/map.py
Python
lgpl-3.0
4,166
[ "BLAST" ]
b0e5758651b7abcb000a4d85871ea5bce7629ffcdf6c3dbdfec64bcea3dea41f
""" The SystemAdministratorClient is a class representing the client of the DIRAC SystemAdministrator service. It has also methods to update the Configuration Service with the DIRAC components options """ from __future__ import absolute_import from __future__ import division from __future__ import print_functio...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/Client/SystemAdministratorClient.py
Python
gpl-3.0
835
[ "DIRAC" ]
01b8916e42eaff16d3d1d51ee8f544a010b10aeda37bd5dc1429a018ea41b5bd
#!/usr/bin/python2 # # Copyright 2006 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 required b...
sdgdsffdsfff/google-mysql-tools
trickle_file_runner.py
Python
apache-2.0
11,334
[ "Brian" ]
fb7f3916251498f58aca531405c85d00f2f760b1f02aa93fc200856508e48a65
# -*- coding: utf-8 -*- # Code for Life # # Copyright (C) 2015, Ocado Innovation Limited # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your o...
mikebryant/rapid-router
game/messages.py
Python
agpl-3.0
72,358
[ "VisIt" ]
5e5b5bfcdc66ce2e0a6e36239a826f7f7501fdb82d33b7d261cc14aa9a1f01a2
# -*- coding: utf-8 -*- """ Regression tests for the Test Client, especially the customized assertions. """ from __future__ import unicode_literals import os import itertools from django.core.urlresolvers import reverse, NoReverseMatch from django.template import TemplateSyntaxError, Context, Template import django.t...
PolicyStat/django
tests/test_client_regress/tests.py
Python
bsd-3-clause
65,886
[ "VisIt" ]
0e7df31d209be5a92830ab7dbc5434ed921bbceb8c340ae6d57e0e9dcc6ab2b4
from models.sampler import BlockGibbsSampler from models.distribution import GaussianBinary from models.optimizer import SGD from models.rbm import RBM from data.mnist.path import * from utils.utils import prepare_batches from matplotlib import pyplot import sklearn.preprocessing as pre import pandas, numpy, time SIZE...
deprofundis/deprofundis
models/scripts/example_gaussian.py
Python
mit
1,682
[ "Gaussian" ]
6a02348e8641fb2d52192a9747d1805e270270a12c5741a1901c62c3fe749c44
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/core/lib/spelltextedit.py
Python
gpl-2.0
9,166
[ "Brian" ]
b95d1fe83779415534c0c2904d427fcf66ac5cf3f7241fcbc4ca7c97f85bebfa
# -*- coding: utf-8 -*- from __future__ import absolute_import import shutil import os import ansible.constants as C from ansible.galaxy import Galaxy from ansible.galaxy.role import GalaxyRole from ansible.playbook.role.requirement import RoleRequirement import ruamel.yaml from ruamel.yaml.comments import Commented...
chouseknecht/ansible-container
container/utils/galaxy.py
Python
lgpl-3.0
8,139
[ "Galaxy" ]
64f98b24f5b7304d10fa16afebb3930521075a5706be67169a88f61b65617141
# Maked by Mr. Have fun! Version 0.2 # Shadow Weapon Coupons contributed by BiTi for the Official L2J Datapack Project # Visit http://forum.l2jdp.com for more details import sys from com.l2scoria.gameserver.model.quest import State from com.l2scoria.gameserver.model.quest import QuestState from com.l2scoria.gameserver....
zenn1989/scoria-interlude
L2Jscoria-Game/data/scripts/quests/405_PathToCleric/__init__.py
Python
gpl-3.0
8,825
[ "VisIt" ]
ca4a001c43f18fb4479fff5c97ff105ca90fb887c04bfe6dd0f54946725d5cd2
""" AGNEXTRACT extract galaxy spectra from image or images and combine them """ import os, sys, glob, shutil import numpy as np from scipy.ndimage.filters import median_filter from astropy.io import fits from PySpectrograph.Spectra import findobj, Spectrum import argparse import pylab as pl def extract(dat...
saltastro/polsalt
scripts/pol_extract.py
Python
bsd-3-clause
4,155
[ "Galaxy" ]
de07c3edc1ea97c8973b2488d0b494a86cef41db364e4e3ff45e2fcc3ba81507
import matplotlib.pyplot as plt #%matplotlib inline import nengo import numpy as np import scipy.ndimage import matplotlib.animation as animation from matplotlib import pylab from PIL import Image import nengo.spa as spa import cPickle from nengo_extras.data import load_mnist from nengo_extras.vision import Gabor, Mas...
science-of-imagination/nengo-buffer
Project/mental_rotation_training_clockwise_noise.py
Python
gpl-3.0
6,433
[ "NEURON" ]
7e33fe5e3fac24d45092da3e349fe2b16716404d4faad2df456129f2de0bf56c
"""PyZMQ and 0MQ version functions.""" #----------------------------------------------------------------------------- # Copyright (C) 2013 Brian Granger, Min Ragan-Kelley # # This file is part of pyzmq # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD, distribut...
IsCoolEntertainment/debpkg_python-pyzmq
zmq/sugar/version.py
Python
lgpl-3.0
1,754
[ "Brian" ]
d2c362d128d6a23bb9cd1792a278622b964a046eccdf9dcf915c088e8e5301c3
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views from be...
frRoy/Benchmarklib
config/urls.py
Python
bsd-3-clause
1,489
[ "VisIt" ]
fb5949358fe931a0e2b88ed2110a6e7a6a6be020d45d1be63ed66aa0c23e60e9
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2011, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.zenoss.CloudStack
ZenPacks/zenoss/CloudStack/routers.py
Python
gpl-2.0
1,285
[ "VisIt" ]
3875998c7fde1dd4871f1bb06a5549f1a06a8f0c84d8da35266ff253b276d577
from datetime import date EVENTS = { "2017 Big Fun Run Liverpool": ("5k", date(2017, 8, 12)), "2017 Dog Jog Liverpool": ("5k", date(2017, 8, 12)), "2017 Big Fun Run Sheffield": ("5k", date(2017, 8, 13)), "2017 Dog Jog Sheffield": ("5k", date(2017, 8, 13)), "2017 Big Fun Run Derby": ("5k", date(2017...
benranderson/training-plan
app/main/events.py
Python
mit
2,809
[ "CRYSTAL" ]
0a50d698f6b02b9aae05f8d1f3e0b2a540840c261535897d2da97d286f4089d2
# Copyright 2007 by Tiago Antao <tiagoantao@gmail.com>. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """This module allows you to control fdist (DEPRECATED). This will allow...
zjuchenyuan/BioWeb
Lib/Bio/PopGen/FDist/Controller.py
Python
mit
10,699
[ "Biopython" ]
8fcd55bddb081a96051358feb8acf0fd7262fed61221000d1c80a8c1a5c8ecff
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The minc module provides classes for interfacing with the `MINC <http://www.bic.mni.mcgill.ca/ServicesSoftware/MINC>`_ command line tools. This module was written to work with MINC version 2.2.00. Auth...
FCP-INDI/nipype
nipype/interfaces/minc/base.py
Python
bsd-3-clause
3,938
[ "NetCDF" ]
dc79301eb57a9d0805b183647d66044a1a04ac48da2eb5ff06eacee81536b979
# GromacsWrapper: xpm.py # Copyright (c) 2012 Oliver Beckstein <orbeckst@gmail.com> # Copyright (c) 2010 Tsjerk Wassenaar <tsjerkw@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ Gromacs XPM file format ======================= Gromacs stores matrix ...
Becksteinlab/GromacsWrapper
gromacs/fileformats/xpm.py
Python
gpl-3.0
10,360
[ "Gromacs" ]
6c3368a69cbc889350b55a0a76501af6fb869522933c08f6367bcf721d1f6cda
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
espressomd/espresso
testsuite/python/elc.py
Python
gpl-3.0
2,980
[ "ESPResSo" ]
a87c37b4c24bee83ce38201bdf41e15682e18295f1b8ebbc77035b205e1a2a32
import pygrib import matplotlib.pyplot as plt import numpy as np from numpy import ma from mpl_toolkits.basemap import Basemap for grb in pygrib.open('../sampledata/ecmwf_tigge.grb'): if grb['parameterName'] == 'Soil moisture': fld = grb['values'] lats,lons = grb.latlons() break #from ncepg...
erdc-cm/pygrib
test/test_ectigge.py
Python
isc
1,094
[ "Gaussian" ]
6902524c46517b35aa702216a1b853d6f9b7e755753ae2cbd0c5f74b630b58ad
# Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda s: s #################...
weigj/django-multidb
django/conf/global_settings.py
Python
bsd-3-clause
14,671
[ "VisIt" ]
3ecf32cab0c367d604b8c98576ebc7f8a59be9f91786e33e76551f3ce4fadc31
# The OARN Relief Nursery Database # Copyright (C) 2015 Oregon Association of Relief Nurseries # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at...
wire-rabbit/oarn-database
oarndb/tests/test_home_visit_views.py
Python
agpl-3.0
18,444
[ "VisIt" ]
65c8dfd63ecd74f112f9980b5e0083e8416ee0f456a3cc786c24f6a9d5f6a684
import bisect from . import vmdutil from . import vmddef from . import pmxutil from . import pmxdef def get_global_transform(this_transform, this_bone_def, parent_transform, parent_bone_def, parent_global, additional_transform=None): """ Compute the global rotati...
Hashi4/vmdgadgets
vmdgadgets/vmdutil/vmdmotion.py
Python
apache-2.0
16,940
[ "VMD" ]
e4c0abf5c22f8ae9516cf321d0b8c1de914154cb904734703ac71b5fd1ee8de9
# Lint as: python3 # Copyright 2020 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 ...
davidzchen/tensorflow
tensorflow/python/eager/gradient_input_output_exclusions.py
Python
apache-2.0
12,833
[ "VisIt" ]
68cc7a7ce4dfaf63b477e94df55ec9261a5d89b7f6533697aa1ddbbd723599f8
# -*- coding: utf-8 -*- # # Copyright (c) 2014, Paweł Wodnicki # 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 copyright # notice, t...
32bitmicro/EDA
python/eda/designs/stm32dip40/stm32dip40_schematic.py
Python
bsd-3-clause
28,020
[ "CRYSTAL" ]
3811378b6cf40cd57a99304a568c72559d545929d29a42d06be31d7dfee6a238
#### # This sample is published as part of the blog article at www.toptal.com/blog # Visit www.toptal.com/blog and subscribe to our newsletter to read great posts #### import logging import os from queue import Queue from threading import Thread from time import time from download import setup_download_dir, get_links...
volker48/python-concurrency
threading_imgur.py
Python
mit
1,787
[ "VisIt" ]
dd6e194cd99a6774dd134e04376c22f486836b9b55276d3f89b3fcfd52374ff3
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
dgasmith/psi4
psi4/driver/procrouting/response/scf_response.py
Python
lgpl-3.0
28,511
[ "Psi4" ]
a09bf8b59f255aad801a97884fa71e4ea8a50ca6ee75dad59553ac9bf6998163
# -*- coding: utf-8 -*- ############################################################################ # # Copyright (C) 2008-2014 # Christian Kohlöffel # Vinzenz Schulz # # This file is part of DXF2GCODE. # # DXF2GCODE is free software: you can redistribute it and/or modify # it under the terms o...
oryxr/dxf2gcode
DxfImport/GeoentSpline.py
Python
gpl-3.0
7,416
[ "Gaussian" ]
22525c4062f5b4bec328f9c1bc06b1cb6d0624c842bebe0c5771f0c551c2466b
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # 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...
rogerthat-platform/rogerthat-backend
src/rogerthat/pages/unsubscribe_reminder_service.py
Python
apache-2.0
11,107
[ "VisIt" ]
e042052277e8404abffc7b11c263d2e654c0a42a64a5a2060fff7e6a68ff533a
#!/usr/bin/env python """ voice_nav.py allows controlling a mobile base using simple speech commands. Based on the voice_cmd_vel.py script by Michael Ferguson in the pocketsphinx ROS package. """ import roslib; #roslib.load_manifest('pi_speech_tutorial') import rospy from geometry_msgs.msg import Twist from std_...
jdekerautem/TurtleBot-Receptionist
pocketsphinx_files/talkative.py
Python
mit
8,719
[ "VisIt" ]
5fefe048e7d2edf7a695ed2b2aa990efa11cc99d83e964f971296aad35ebb23e
""" Sphinx plugins for Django documentation. """ import json import os import re from docutils import nodes from docutils.parsers.rst import directives from sphinx import addnodes, __version__ as sphinx_ver from sphinx.builders.html import StandaloneHTMLBuilder from sphinx.writers.html import SmartyPantsHTMLTranslato...
rogerhu/django
docs/_ext/djangodocs.py
Python
bsd-3-clause
11,809
[ "VisIt" ]
c0551fd5925f81303db0cbb869b3b8a7d24dda74b8f7c5d31cf1287fc4c003c7
# (C) British Crown Copyright 2010 - 2015, Met Office # # This file is part of Iris. # # Iris 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 3 of the License, or # (at your option) any l...
mo-g/iris
lib/iris/tests/test_plot.py
Python
gpl-3.0
32,082
[ "NetCDF" ]
7b7b3e62fc84eaa2e6b4ca603e651a0ecf7595a85d2eb04acb508fc04fb8a2bd
# Hidden Markov Model Implementation import math import pylab as pyl import numpy as np import matplotlib.pyplot as pp import matplotlib.cm as cm #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy #import hrl_lib...
tapomayukh/projects_in_python
rapid_categorization/fixed_length_training_data/hmm_force_10_states.py
Python
mit
8,710
[ "Gaussian", "Mayavi" ]
23649bdc5e49bcff44faf9d94b11b3574aeb1632c0d2188ccc8649dbead6e388
# kchannel.py --- # # Filename: kchannel.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Wed Jun 4 12:30:31 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This progr...
subhacom/moose-core
tests/python/mus/kchannel.py
Python
gpl-3.0
5,916
[ "MOOSE", "NEURON" ]
08e03cf85a446a700052bb36c513fdaefc5be2c2a7de41cfcf01f4c11c08d01a
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
intel-analytics/analytics-zoo
pyzoo/zoo/pipeline/api/keras/layers/noise.py
Python
apache-2.0
3,021
[ "Gaussian" ]
d13779a97d36836fd34635d22ebe9fdb6713ab41024cca8dc6fbbcc8f8a173fe
import ctypes from ..codeprinter import CodePrinter from .. import expression as e from .. import functions as f import expresso.visitor as visitor from mpmath import mp class c_complex(ctypes.Structure): _fields_ = [('real',ctypes.c_double),('imag',ctypes.c_double)] def __str__(self): return str(sel...
TheLartians/Expresso
expresso/pycas/compilers/c_compiler.py
Python
mit
17,186
[ "VisIt" ]
b5be8805a1e4ea7924ef1bcd431c3099101ab552c5611e9d9dee7e5c4eacd04d
# Author: Kyle A. Beauchamp <kyleabeauchamp@gmail.com> # Contributors: Robert McGibbon <rmcgibbo@gmail.com>, # Matthew Harrigan <matthew.p.harrigan@gmail.com> # Copyright (c) 2014, Stanford University and the Authors # All rights reserved. #----------------------------------------------------------------...
dotsdl/msmbuilder
msmbuilder/featurizer/featurizer.py
Python
lgpl-2.1
27,412
[ "Gaussian", "MDTraj" ]
77a46d17c09c3119754fd8819cdd220397f6321fb1834067d05cc05d370a6056
#* This file is part of Zapdos, an open-source #* application for the simulation of plasmas #* https://github.com/shannon-lab/zapdos #* #* Zapdos is powered by the MOOSE Framework #* https://www.mooseframework.org #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.htm...
lindsayad/zapdos
problems/PetscJacobians.py
Python
lgpl-2.1
4,310
[ "MOOSE" ]
5642969b821183807770e19b38f0b18ee100463384a1bcb882036c117a569fb5
#!/usr/bin/env python # -*- coding: utf-8 -*- # Find synonymous and non-synonymous SNP variants in fasta alignments __authors__ = "Eric Normandeau" __program_name__ = "synonym_storm" __version_info__ = ('0', '0', '3') __version__ = '.'.join(__version_info__) __revision_date__ = "2010-06-14" # Importing modules impor...
wkh124/wkh124
snp_synonymy_explorer.py
Python
gpl-3.0
10,895
[ "Biopython" ]
8faf2ccc957aded51d9abef58b4367b7449c9502d5920148816b723980666b8a
"""test_analysis.py - test the analysis server framework CellProfiler is distributed under the GNU General Public License. See the accompanying file LICENSE for details. Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2015 Broad Institute All rights reserved. Please see the AUTHORS f...
sstoma/CellProfiler
cellprofiler/tests/test_analysis.py
Python
gpl-2.0
60,855
[ "Gaussian" ]
8f908122a57969b0b46d2aedf9f8763cfe4c2b04450a977966095ecd76165a99
# -*- coding: utf-8 -*- """ Cython related magics. Author: * Brian Granger Parts of this code were taken from Cython.inline. """ #----------------------------------------------------------------------------- # Copyright (C) 2010-2011, IPython Development Team. # # Distributed under the terms of the Modified BSD Licen...
cloud9ers/gurumate
environment/lib/python2.7/site-packages/IPython/extensions/cythonmagic.py
Python
lgpl-3.0
7,191
[ "Brian" ]
4bd609ad02b57a25988e3e4031b55276e89c89feee2f4da7f4dcac528b893b7a
from __future__ import (absolute_import, division, print_function) import unittest from mantid.simpleapi import (DeleteWorkspace, CreateSampleWorkspace, AddSampleLog, EditInstrumentGeometry, CloneWorkspace, CompareWorkspaces, FindEPP) from testhelpers import ...
ScreamingUdder/mantid
Framework/PythonInterface/test/python/plugins/algorithms/ComputeCalibrationCoefVanTest.py
Python
gpl-3.0
7,519
[ "Gaussian" ]
c2323bc740a42eb71b96ba543db96eb93d1123e4e7dd7e3287ce0047e29a9a4f
# ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems 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.apa...
Jokeren/neon
tests/test_gru.py
Python
apache-2.0
16,734
[ "Gaussian" ]
a04b8fd81fdbe3586a64a11c1b855d81a314d779074704ecca9b3e1552961859
import numpy as np import h5py import matplotlib.pyplot as plt import os def input_layer(input_center, neuron_center, x_sigma, x_d_sigma): rj = np.exp((-(input_center[0] - neuron_center[0]) ** 2) / x_sigma - ((input_center[1] - neuron_center[1]) ** 2) / x_d_sigma) return rj e...
cigani/RL
naviMap.py
Python
mit
2,664
[ "NEURON" ]
1e799a2d37608a5fe7d49e57f5611125555152f1d40fe848614c01fc7b7534b4
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2013 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
cvandeplas/plaso
plaso/parsers/winjob_test.py
Python
apache-2.0
3,780
[ "Brian" ]
b1382034866f0294f8f7965bfd134cf20c6221ff53fbd8b15ca2c2fa77b05ce9
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. import numpy as np from sisl._internal import set_module from sisl import Geometry, SuperCell from ._common import geom...
zerothi/sisl
sisl/geom/basic.py
Python
mpl-2.0
5,139
[ "CRYSTAL" ]
cfb5c781c1c5a2f24d4926511e07f33e47a12f3d890c2dc4d8dcf3cfbadd9acd
import argparse import sys from ..utilities.log_utils import create_default_logger from ..configuration.daijin_configurator import create_daijin_config from .mikado import mikado_pipeline from .assemble import assemble_transcripts_pipeline from . import create_parser, create_config_parser def main(call_args=None): ...
lucventurini/mikado
Mikado/daijin/__main__.py
Python
lgpl-3.0
3,818
[ "BLAST" ]
089075338d5377ccf4c6f48350174390544fe90541bf06f79a0c8083d3a274d4
#!/usr/bin/env python # encoding: utf-8 """ Defines various nose unit tests """ import numpy as np from .mh import MHSampler from .ensemble import EnsembleSampler from .ptsampler import PTSampler logprecision = -4 def lnprob_gaussian(x, icov): return -np.dot(x, np.dot(icov, x)) / 2.0 def lnprob_gaussian_nan...
tbs1980/emcee
emcee/tests.py
Python
mit
8,459
[ "Gaussian" ]
222c64cff0cef89ab8e3816a988d8cffffc9a8957183adebe8ac895847ed5c62
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
kaarolch/ansible
lib/ansible/constants.py
Python
gpl-3.0
28,089
[ "Galaxy", "MOOSE" ]
dbf337f47b8303fa3207249bd1acbc8ff0890dd2a24734f34a2ce732b4578d3a
import shutil import sys import os import re import io import traceback from pybtex.plugin import find_plugin from pybtex.database import BibliographyData, parse_file from pybtex.database.input.bibtex import UndefinedMacro as undefined_macro_exception import MooseDocs from MooseCommonExtension import MooseCommonExtens...
paulthulstrup/moose
python/MooseDocs/extensions/MooseBibtex.py
Python
lgpl-2.1
5,982
[ "MOOSE" ]
4c48649e853e41979ba85d597e2792f11a8f674b0995d5ca8155c4fdcf9efe62
# Emacs: treat this as -*- python -*- import os import gtk import pango import tempfile from math import cos, sin, sqrt, atan, atan2 from os.path import basename import numpy as np from ase.data import chemical_symbols from ase.data.colors import jmol_colors from ase.gui.repeat import Repeat from ase.gui.rotate impo...
PHOTOX/fuase
ase/ase/gui/view.py
Python
gpl-2.0
34,755
[ "ASE", "Avogadro", "Jmol", "RasMol", "VMD" ]
562df89544b9be8c14b9ed0c27a262a973d673258597628017d9776518603f4a
# -*- coding: utf-8 -*- """ Library of functions for simulated data creation Created on 07/04/2016 @author: Anderson Brito da Silva & Jan Cimbalnik """ import numpy as np import scipy.signal as sig from scipy.stats import norm # %% Noise types def pinknoise(N): """ Create a pink noise (1/f) with N points. ...
HFO-detect/HFO-detect-python
pyhfo_detect/sim/create_simulated.py
Python
bsd-3-clause
6,496
[ "Gaussian" ]
fae9dfcd15754b40dc78346d3da7d804075928b4faa3dd94de279d81627cd01c
# Routines for reading and plotting to produce comparable figures to the SAGE paper from pylab import * from scipy import signal as ss def galdtype(): # Define the data-type for the public version of SAGE Galdesc_full = [ ('SnapNum' , np.int32), ('Type' , ...
darrencroton/sage
output/plot_read_routines.py
Python
mit
16,817
[ "Galaxy" ]
3f94e19663d856a31d5ab2cbe271928546abb4719c2d398f34b3323cb82013d3
#!/usr/bin/env python """ refguide_check.py [OPTIONS] [-- ARGS] Check for a Scipy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. Example of usage:: $ python refguide_check.py optimize Note that this is a helper script to be able to check if things ar...
arokem/scipy
tools/refguide_check.py
Python
bsd-3-clause
31,105
[ "Gaussian" ]
1791233b9c16cb791859f0258c7990312d1ed13061920df7026c10d4cb14d33b
# -*- coding: iso-8859-15 -*- import unittest from mycroft.util.parse import normalize from mycroft.util.parse import get_gender from mycroft.util.parse import extractnumber from mycroft.util.parse import extract_datetime from datetime import datetime class TestNormalize(unittest.TestCase): def test_articles(s...
JarbasAI/JarbasAI
test/unittests/util/test_parse.py
Python
gpl-3.0
31,587
[ "VisIt" ]
a7957734f114462809d704a554a0a46cb24e6f129a56557f34abb57214697f66
"""Script for building StarFusion indices using FusionFilter.""" import argparse import gzip import logging from pathlib import Path import shutil import subprocess FORMAT = "[%(asctime)-15s] %(message)s" logging.basicConfig(format=FORMAT, level=logging.INFO) def main(): """Main function.""" args = parse_a...
NKI-CCB/imfusion
scripts/starfusion_build_reference.py
Python
mit
4,048
[ "BLAST" ]
c46c7785ad43d8e0e45c76f4f2c596c5f8c3868238b8149967e9ee06c355dc4d
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kratman/psi4public
psi4/driver/procrouting/wrappers_cfour.py
Python
gpl-2.0
36,674
[ "CFOUR", "Psi4" ]
825f8e715125f0dcfb3031c0b8f3eae8f0d83a1cc561cb36964e1c33929670cd
#!/usr/bin/env python #=============================================================================== # Copyright 2017 Geoscience Australia # # 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...
alex-ip/geophys_utils
geophys_utils/netcdf_converter/csv2netcdf_converter.py
Python
apache-2.0
4,919
[ "NetCDF" ]
0bb6e7793f8428a23625f41bb5c003b807b2d941a2bdf6b54feeafc1db27e2a7
import click import logging from multiprocessing_logging import install_mp_handler import simtk.unit as unit # import all of the sim makers we have available from wepy_tools.sim_makers.openmm import * SYSTEM_SIM_MAKERS = { 'LennardJonesPair' : LennardJonesPairOpenMMSimMaker, 'LysozymeImplicit' : LysozymeImpl...
ADicksonLab/wepy
src/wepy_test_drive.py
Python
mit
3,930
[ "OpenMM" ]
f6f8dc4cc59dff1aae4aa8e60b44812892cd145ce5565b92c9b9bf04a60f9375
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This packages contains affiliated package tests. """ import os import shutil import time import tempfile import warnings # import urllib from astropy import log from astropy.utils.data import download_file from contextlib import contextmanager @cont...
matteobachetti/srt-single-dish-tools
srttools/tests/__init__.py
Python
bsd-3-clause
6,544
[ "Gaussian" ]
6ab6633fd0c7b546a486e6c1527cd6e4323480010af0df0b70eb61d309ccebf4