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
""" Agent to extend the number of tasks given the Transformation definition The following options can be set for the MCExtensionAgent. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN MCExtensionAgent :end-before: ##END :dedent: 2 :caption: MCExtensionAgent options """ from DIRAC import S_OK, g...
andresailer/DIRAC
TransformationSystem/Agent/MCExtensionAgent.py
Python
gpl-3.0
4,990
[ "DIRAC" ]
2ca06342bbe190e649a189d13415bd3063599a5fc3784c3ecf960f23b32e861d
# -*- coding: utf-8 -*- """core -- core behaviors for Owyl. Copyright 2008 David Eyk. All rights reserved. $Author$\n $Rev$\n $Date$ """ __author__ = "$Author$"[9:-2] __revision__ = "$Rev$"[6:-2] __date__ = "$Date$"[7:-2] import logging from collections import OrderedDict from functools import wraps try: from ...
Gaboose/owyl
src/owyl/core.py
Python
bsd-3-clause
12,547
[ "VisIt" ]
be6813f7d7d53f5cdd6a1cd1109ba147d6de3b53ba1c2a6a1b6f780f09f88fc9
from nbodykit import CurrentMPIComm from nbodykit.source.catalog import ArrayCatalog from nbodykit.transform import SkyToUnitSphere import numpy import logging class FiberCollisions(object): """ Run an angular FOF algorithm to determine fiber collision groups from an input catalog, and then assign fibers ...
nickhand/nbodykit
nbodykit/algorithms/fibercollisions.py
Python
gpl-3.0
11,057
[ "Galaxy" ]
086f3cd171ba372da0976700f0cc40a2d7132c44d15ab1070c6015429acae919
#!/usr/bin/env python import os import sys import subprocess as sp import argparse if sys.version_info.major == 3: PY3 = True from urllib.request import urlretrieve else: PY3 = True from urllib import urlretrieve usage = """ The easy way to test recipes is by using `circleci build`. However this doe...
saketkc/bioconda-recipes
bootstrap.py
Python
mit
4,381
[ "Bioconda" ]
3cf20a50c831aa14b7111827c194e0d46f0048d0d425086b8ec6657123c6ddd8
from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand from codecs import open import os from Cython.Build import cythonize import numpy as np from uga import __version__ import subprocess with open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.rst')) as ...
rmkoesterer/uga
setup.py
Python
gpl-3.0
1,476
[ "Biopython", "pysam" ]
63c4525389a726b1520f8c0a407e04e25ac45ed75f2397c4b158c66fd26635bd
#!/usr/bin/env python # coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import sys import glob import shutil import subprocess from monty.serialization import loadfn, dumpfn from pymatgen import SETTINGS_FILE from urllib.request import urlretrieve ...
montoyjh/pymatgen
pymatgen/cli/pmg_config.py
Python
mit
6,650
[ "VASP", "pymatgen" ]
c2d858d8f361f4124ddeb43dbf934b35faba7d61ab7f22b7bddaf3d05070a36d
# Copyright (c) Facebook, Inc. and its affiliates. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2. # context: context needed to annotate a file from __future__ import absolute_import import collections import contextlib import hashlib import os fro...
facebookexperimental/eden
eden/hg-server/edenscm/hgext/fastannotate/context.py
Python
gpl-2.0
31,499
[ "VisIt" ]
faacdf904fed56fa6f0afb2a325e9227c2de23251a341877e5a5eb8029676e83
#!/usr/bin/python # -*- coding: utf-8 -*- """ Script to upload images to wikipedia. Arguments: -keep Keep the filename as is -filename Target filename without the namespace prefix -noverify Do not ask for verification of the upload description if one is given -abortonwarn: Abor...
smalyshev/pywikibot-core
scripts/upload.py
Python
mit
25,163
[ "VisIt" ]
c83b5c4434c7dd101498b42985070bfbcfd3260d83ef529000961a7369be387e
#!/usr/bin/env python # -*- coding: utf-8 -*- # # This scipt grabs a cell or point array from the first input dataset, which in our case would # be an ATP map where the data is associated with cell centre vertices (cell data), or the points # at those vertices (point data), and converts them to cell data associated wit...
BlueFern/DBiharMesher
util/EcCellCentreDataToSurface.py
Python
gpl-2.0
3,429
[ "VTK" ]
89905b1227f3096d04a8fada5059bf1930142c9633456badd2e5aad7ecf3315d
tutorial_tests = """ Let's try a simple generator: >>> def f(): ... yield 1 ... yield 2 >>> for i in f(): ... print i 1 2 >>> g = f() >>> g.next() 1 >>> g.next() 2 "Falling off the end" stops the generator: >>> g.next() Traceback (most recent call la...
trivoldus28/pulsarch-verilog
tools/local/bas-release/bas,3.9/lib/python/lib/python2.3/test/test_generators.py
Python
gpl-2.0
39,349
[ "VisIt" ]
ea3fd0e4d458b0f3139fa950858d4712aafaf54f8fdd2462e209f5fb3c5a5486
"""MPF plugin which uses lights to represent Game functions. Typically in an EM machine""" # info_lights.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf im...
jabdoa2/mpf
mpf/plugins/info_lights.py
Python
mit
5,219
[ "Brian" ]
bd7d41df87b3953b1d1a0a2756fe0844a5cb164c38bbea233b2ca36871c90542
import os import random import time import unittest import numpy as np from laserchicken import compute_neighbors, keys, load, utils from laserchicken.feature_extractor.base_feature_extractor import FeatureExtractor from laserchicken.feature_extractor.feature_extraction import compute_features from laserchicken.test_...
eEcoLiDAR/eEcoLiDAR
laserchicken/feature_extractor/test_eigenvals_feature_extractor.py
Python
apache-2.0
11,643
[ "Gaussian" ]
cabc428cc740ef919de0d64a60e83698425dc7f04deef62035dd38cfa6359ac2
import numpy as np from math import sqrt import time from rpl.tools.geometry.surface_io import open_geom from bsp_tree_poly import BSP_Tree import logging ## Get rid of any existing handlers (e.g. if running interactively in ipython) logging.getLogger().handlers = [] ## Main logging goes to a file logging....
pombredanne/metamorphosys-desktop
metamorphosys/META/analysis_tools/PYTHON_RICARDO/rpl/tools/ray_tracing/test_bsp.py
Python
mit
2,256
[ "Mayavi" ]
ec9a16dbd57d193631a6f6cec534eb805492d895f0e9adf9d21eb87441172df7
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
xuleiboy1234/autoTitle
tensorflow/tensorflow/contrib/factorization/python/ops/gmm.py
Python
mit
7,114
[ "Gaussian" ]
8aa6e46274ffb4d64053d2e58b371a80e8281d1312135bed108dded52ab2192f
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Bayesian Blocks for Time Series Analysis ======================================== Dynamic programming algorithm for solving a piecewise-constant model for various datasets. This is based on the algorithm presented in Scargle et al 2012 [1]_. This cod...
dhomeier/astropy
astropy/stats/bayesian_blocks.py
Python
bsd-3-clause
17,968
[ "Gaussian" ]
720cd4428af15bcec7e42d753aa40c75e45aa994443c7130804dc53e67ec3052
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkExtractVectorComponents(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
chrisidefix/devide
modules/vtk_basic/vtkExtractVectorComponents.py
Python
bsd-3-clause
532
[ "VTK" ]
ae262a5257fcce70be754b5fd8b96ee91ba4f8ddedfc10c50d3a04105ac1ec60
# Hidden Markov Model Implementation import pylab as pyl import numpy as np import matplotlib.pyplot as pp #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.mayavi2_util as mu import hrl_lib.viz ...
tapomayukh/projects_in_python
classification/Classification_with_HMM/Single_Contact_Classification/force_codes/number_of_states/hmm_crossvalidation_force_30_states.py
Python
mit
21,114
[ "Gaussian", "Mayavi" ]
4928162dff8ba1b1808c17fcbe5d710f446dcb888e8161c49fd4d91463f3ddc7
#!/usr/bin/env python # Created by John Travers, Robert Hetland, 2007 """ Test functions for rbf module """ import numpy as np from numpy.testing import assert_array_almost_equal, assert_almost_equal from numpy import linspace, sin, random, exp, log10, allclose from scipy.interpolate.rbf import Rbf FUNCTIONS = ('mult...
stefanv/scipy3
scipy/interpolate/tests/test_rbf.py
Python
bsd-3-clause
2,519
[ "Gaussian" ]
673edfa3ddb85d165b2c965d7fde17700084eb4a64a9007b310c91c4e42b2f21
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
nouiz/fredericbastien-ipaddr-py-speed-up
ipaddr_test.py
Python
apache-2.0
50,407
[ "FEFF" ]
dd7aef296899e2c753ce3052e49ad3ddbf64249209f93834e54d72c0fa8cd876
#!/usr/bin/env python import sys, os from numpy import * def print_scores(scores, words): for i in range(len(scores)): print "[%d]: (%.03f) %s" % (i, scores[i], words[i]) def part_a(clf, num_to_word, verbose=True): """ Code for 1.1 part (a): Hidden Layer, Center Word clf: instance of Wi...
PDFangeltop1/cs224d
assignment2/assignment2/part11probing.py
Python
mit
4,234
[ "NEURON" ]
ba37ac31060e75af060a02f79170b91f75f2d7075e7d497243e8f3c59fb0510d
""" This module contains functions and classes related to file input and output. It primarily provides two high-level functions for reading and writing external files: * :py:func:`import_file` * :py:func:`export_file` In addition, it contains the :py:class:`FileSource` class, which is a data source object th...
srinath-chakravarthy/ovito
src/plugins/pyscript/python/ovito/io/__init__.py
Python
gpl-3.0
15,931
[ "CRYSTAL", "FHI-aims", "LAMMPS", "OVITO", "VASP" ]
4329aad0dc2146481bd22f2633a13750324d6541e36b41da9177fa6c86118e1c
# coding=utf-8 #********************************************************************* # PROGRAM NAME: ToRun.py * # * #********************************************************************* # AUTHOR: David Aleja...
davofis/Optical_Coherence_Wavelets
ToRun.py
Python
gpl-3.0
10,065
[ "Gaussian" ]
7b5a16ce7537fd68149e4db160f9cf52d640150f6441dd8f668ff5c09bece681
################################################################### # ABOUT: # This Python script gets data from the Pipeline-database and # produces plots and can calculates correlations of selected # variables. # The purpose is to study how ALFOSC telescope focus is # related to various variables e.g....
sniemi/SamPy
sandbox/src2/src/al_focpyr_test.py
Python
bsd-2-clause
15,805
[ "Gaussian" ]
87e60e9dc8e9edc183e639e5fe5c8ce43fb7de055fa745ac7aa89307c75af05d
"""Examine callable regions following genome mapping of short reads. Identifies callable analysis regions surrounded by larger regions lacking aligned bases. This allows parallelization of smaller chromosome chunks through post-processing and variant calling, with each sub-section mapping handled separately. Regions ...
mjafin/bcbio-nextgen
bcbio/bam/callable.py
Python
mit
24,636
[ "pysam" ]
9cbde799c08004ef8b79702bc90cdfa2a9915fa623da8e370fddf36b9ad6e9c1
from vtk import * graph = vtkMutableDirectedGraph() a = graph.AddVertex() b = graph.AddChild(a) c = graph.AddChild(a) d = graph.AddChild(b) e = graph.AddChild(c) f = graph.AddChild(c) tree = vtkTree() tree.CheckedShallowCopy(graph) view = vtkGraphLayoutView() view.AddRepresentationFromInput(tree) view.GetRenderWind...
b3c/VTK-5.8
Examples/Infovis/Python/create_tree.py
Python
bsd-3-clause
407
[ "VTK" ]
92520d5f2073303ac7f22501cbffedfb7445664c3a3c7ec4495012f613be4e0b
from __future__ import absolute_import, division, print_function import inspect import os import numpy as np import tensorflow as tf from six import string_types from tensorflow_probability.python.bijectors import FillScaleTriL from tensorflow_probability.python.distributions import (Categorical, ...
imito/odin
odin/bay/distributions/mixture.py
Python
mit
12,103
[ "Gaussian" ]
b1bf63642e2194bdae70a9cea1be0be6988b82e1ebc5936075078b26317f23de
""" Linear exponential smoothing models Author: Chad Fulton License: BSD-3 """ import numpy as np import pandas as pd from statsmodels.base.data import PandasData from statsmodels.genmod.generalized_linear_model import GLM from statsmodels.tools.validation import (array_like, bool_like, float_like, ...
jseabold/statsmodels
statsmodels/tsa/statespace/exponential_smoothing.py
Python
bsd-3-clause
27,211
[ "Gaussian" ]
0da4bad14ec47921b0efdd3ddef2b37ee107b8c377e6311a17c082b3fbedfa89
# $Id: __init__.py 1212 2007-10-24 20:23:03Z oliver$ # vmd remote control --- client/server scripts to run VMD from python # Copyright (c) 2007-2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Lesser Public License, version 3 or later. # See COPYING and COPYING.LESSER. """ ============= VMD control ...
pslacerda/GromacsWrapper
vmd/__init__.py
Python
gpl-3.0
1,214
[ "VMD" ]
0a1765241f13efef2a3097668765d84ca423129907fc47b1ee78efa3c03f26a2
# -*- coding: utf-8 -*- # # This file is part of EventGhost. # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/> # # EventGhost 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 versio...
EventGhost/EventGhost
_build/Build.py
Python
gpl-2.0
5,538
[ "VTK" ]
b3b7c2b7db33258ab0868ab844615d616474d3ee7260423be6fdc879bac024e1
# -*- coding: utf-8 -*- """This module wraps conversion between :class:`pybel.BELGraph` and the Cyberinfrastructure Exchange (CX) JSON. CX is an aspect-oriented network interchange format encoded in JSON with a format inspired by the JSON-LD encoding of Resource Description Framework (RDF). It is primarily used by th...
pybel/pybel
src/pybel/io/cx.py
Python
mit
19,791
[ "Cytoscape", "Pybel" ]
d24e2f456eae20d14ff690fb2c972bcd0cb7d404c7b69fce078bc5b0a60c2e8f
#!/usr/bin/python """ This code uses .strip formatting once to remove the \n and another time to remove the \t from the below lists. For readability, the script uses a print("\n") to add a new line between the two lists """ island_list = ['Armstrong Island', 'Atchafalaya Island', 'Immokalee Island', 'Moultrie Island'...
sketchyfish/ypp-price-calculator
strip_automation.py
Python
gpl-2.0
5,368
[ "Amber" ]
40071ea84320ff5f12c437a9e4414e2760190b7880ad031608b9d5a731146b4c
""" Contains the ShotGroup base class.""" # shot_group.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf from collections import deque from mpf.system.devic...
spierepf/mpf
mpf/devices/shot_group.py
Python
mit
15,842
[ "Brian" ]
88968d9fce6a09aa15115a1b7548a8194aa32ec022954d32e466997061ff7feb
from __future__ import absolute_import, division, print_function # ---------------------------------------------------------------------------- # 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 ...
Kleptobismol/scikit-bio
skbio/tree/tests/test_nj.py
Python
bsd-3-clause
8,946
[ "scikit-bio" ]
a1d6457ce22ad1f04583d200219f0007ce0bfd73ddcaeca41673991320cee86e
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
skosukhin/spack
var/spack/repos/builtin/packages/hoomd-blue/package.py
Python
lgpl-2.1
4,857
[ "HOOMD-blue" ]
63ad267c8eda7640e260868641529a9c55c0c8e97aa83eb0c67227b8f9f0538f
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class Bowtie2(MakefilePackage): """Bowtie 2 is an ultrafast and memory-efficient tool for aligning sequencing ...
LLNL/spack
var/spack/repos/builtin/packages/bowtie2/package.py
Python
lgpl-2.1
3,479
[ "Bowtie" ]
430c491ffdf97c47d258b11fef97703e98ef448fe69cefa36591c2f953495d82
import numpy as np import matplotlib.pyplot as plt import os from scipy.optimize import curve_fit from scipy.ndimage.filters import gaussian_filter import scipy.signal as signal import sys sys.path.append("/users/aman/desktop/PHYS211") from PythonLibrary import * try: %pylab inline except SyntaxError: pass ...
bzcheeseman/phys211
Rel_Electrons/data_processing.py
Python
lgpl-3.0
13,569
[ "Gaussian" ]
db23c5c75d6169d88afab42464d3a6a202ca3520645055d27972dcad2b3145dc
# Author: Travis Oliphant # 1999 -- 2002 import types import sigtools from scipy import special, linalg from scipy.fftpack import fft, ifft, ifftshift, fft2, ifft2, fftn, ifftn from numpy import polyadd, polymul, polydiv, polysub, \ roots, poly, polyval, polyder, cast, asarray, isscalar, atleast_1d, \ ones, ...
huard/scipy-work
scipy/signal/signaltools.py
Python
bsd-3-clause
48,348
[ "Gaussian" ]
866a814bbbcfaab477173a5165320b45e3297a6aa494b8102feb925382331f28
#!/usr/bin/python # # Copyright 2015 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 by...
jtk54/spinnaker
pylib/spinnaker/spinnaker_runner.py
Python
apache-2.0
22,654
[ "ORCA" ]
19f830b866974fea26fdcebe3fbd7b19bb6f3677e4d6b4e567eb6f3d33c05466
## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2012 Raik Gruenberg & Johan Leckner ## ## 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 v...
ostrokach/biskit
Biskit/Dock/Intervor.py
Python
gpl-3.0
17,469
[ "CRYSTAL", "PyMOL" ]
57754ef0a01f9d922b349710544b3799cb068ff56d996a047ae8a1ac5b449e71
# Import underlying basic modules from kerr.basics import * # import dill ''' Method to load tabulated QNM data, interpolate and then output for input final spin ''' def leaver( jf, # Dimensionless BH Spin l, # Polar Index m, # Azim...
llondon6/kerr_public
kerr/core.py
Python
mit
113,382
[ "Psi4" ]
26cc26cfe1bf53c00d062066a473cf2f403cecc9751bff6acc781a8aedf6ef45
#!/usr/bin/env python3 import torch from torch.distributions.kl import kl_divergence from ..distributions import Delta, MultivariateNormal from ..lazy import MatmulLazyTensor, SumLazyTensor from ..utils.errors import CachingError from ..utils.memoize import pop_from_cache_ignore_args from .delta_variational_distribut...
jrg365/gpytorch
gpytorch/variational/batch_decoupled_variational_strategy.py
Python
mit
11,612
[ "Gaussian" ]
b68ea56642deec5c0d95c29ac304672a8e658ace55e5a51ab1727dfc14fe22eb
# Task 分解变量 p = (4, 5) num1, num2 = p print(num1) print(num2) strTest = 'I am allen' str1, *str2, str3 = strTest print(str1) print(str2) print(str3) records = [ ('foo', '1', '2'), ('bar', 'hello'), ('foo', 4, 5), ] def do_foo(x, y): print('foo', x, y) def do_bar(x): print('bar', x) for tag, ...
LittleBirdLiu/python_practice
Python_CookBook/Data_Structure.py
Python
mit
8,570
[ "Brian" ]
d343d05f4295a028e87775fa1d26e12016e7d1bf3b3b6d1acbbfd832979ae4b3
# Copyright (c) 2015, 2014 Computational Molecular Biology Group, Free University # Berlin, 14195 Berlin, Germany. # 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 ...
trendelkampschroer/PyEMMA
pyemma/coordinates/tests/test_discretizer.py
Python
bsd-2-clause
5,383
[ "MDTraj" ]
d9bce56bf4033877cc012cf47a686110956ba213564a8213cb0c35cc528f1563
# -*- coding: utf-8 -*- # Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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 y...
jat255/hyperspy
hyperspy/io_plugins/__init__.py
Python
gpl-3.0
2,415
[ "NetCDF" ]
2dbcfd092f7a3989f76fa9283b58d942dcebe8bafb8d7cd2f0f5a0460d3fdd60
"""Tests for flattening module. """ import ast import unittest import astunparse from sspam import pre_processing from sspam.tools.asttools import Comparator from sspam.tools.flattening import Flattening, Unflattening class TestFlattening(unittest.TestCase): """ Test that flattening produce expected ast. ...
quarkslab/sspam
tests/test_flattening.py
Python
bsd-3-clause
11,915
[ "VisIt" ]
bfe646b918fef016646283502c35ecfda17b953de2f13adaa1c34aa85a6ca2e9
# # Copyright 2001 - 2016 Ludek Smid [http://www.ospace.net/] # # This file is part of Outer Space. # # Outer Space 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 # (...
dahaic/outerspace
client/osci/dialog/MainGameDlg.py
Python
gpl-2.0
19,872
[ "Galaxy" ]
125b5cafe4b557dd9008f627521af3c46c912e11bb9852b877e58f4ce9c06232
# # Copyright (C) 2013,2014 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 l...
mgusenbauer/espresso
samples/python/hello_parallel_world.py
Python
gpl-3.0
1,767
[ "ESPResSo", "VTK" ]
c22ce499f44c750e15f63a3bd48c97c50020bfebe93d65a86d4c2ca1ee0d1630
import os from library.grab_bag import o base_url = os.environ.get('FAXROBOT_URL') email_support = os.environ.get('EMAIL_SUPPORT') email_feedback = os.environ.get('EMAIL_FEEDBACK') project = os.environ.get('PROJECT_NAME') email_headers = { "Authorization": os.environ.get('SPARKPOST_API_KEY'), "Content...
lyonbros/faxrobot
library/mailer.py
Python
gpl-3.0
15,360
[ "VisIt" ]
3461d72a3f10530e814b2a5ac688961ff325731542e6f665fa6a95a112c73580
import os import sys import shutil import tempfile from contextlib import contextmanager from rdkit.Chem import AllChem as Chem from nose.tools import eq_ from .. import Calculator, __version__, descriptors from ..__main__ import main as mordred Nd2D = len(Calculator(descriptors, ignore_3D=True).descriptors) Nd3D =...
mordred-descriptor/mordred
mordred/tests/test_mordred_main.py
Python
bsd-3-clause
4,754
[ "RDKit" ]
c42391cee8603e988793fc7437715444d2f53d44406f5f37d414d01ecbb3151d
# -*- coding: utf-8 -*- # # Copyright (c) 2016, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Unit tests for parser data module.""" import unittest import numpy import cclib class ccDataTest(unittest.TestCase...
Schamnad/cclib
test/parser/testdata.py
Python
bsd-3-clause
2,785
[ "cclib" ]
77b2721edb5489bc28ca57fe10f086584ad5c1757339d2e0ec883b9e402caf56
import os import sys import glob import vtk from PyQt5 import QtCore, QtWidgets import peacock from ExodusPlugin import ExodusPlugin from peacock.ExodusViewer.plugins.ExodusFilterProxyModel import ExodusFilterProxyModel class ExodusComboBox(QtWidgets.QComboBox): """ A ComboBox that disables filenames if they d...
backmari/moose
python/peacock/ExodusViewer/plugins/FilePlugin.py
Python
lgpl-2.1
6,543
[ "VTK" ]
6c84f81c6be03bcd0e378608da08ac77a7f8d6be04e54ca56ee45365aed8b963
from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import messages from crystal_dashboard.api import metrics as api from crystal_dashboard.dashboards.crystal import exceptions as sdsexception class...
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/metrics/forms.py
Python
gpl-3.0
4,982
[ "CRYSTAL" ]
f9e6a602fec59fa454fb14a5f812ab8762ddb253cd9e8d362675f02d435d9d44
r""" :mod:`~matplotlib.mathtext` is a module for parsing a subset of the TeX math syntax and drawing them to a matplotlib backend. For a tutorial of its usage see :ref:`mathtext-tutorial`. This document is primarily concerned with implementation details. The module uses pyparsing_ to parse the TeX expression. .. _p...
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/matplotlib/mathtext.py
Python
mit
110,766
[ "Bowtie" ]
695e05a1eb98eacb7de251704530cddcaf89e323ca59dec31dd28ac574dd97aa
# Natural Language Toolkit: Probability and Statistics # # Copyright (C) 2001-2006 University of Pennsylvania # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # Steven Bird <sb@csse.unimelb.edu.au> (additions) # Trevor Cohn <tacohn@cs.mu.oz.au> (additions) # URL: <http://nltk.sf.net> # For licens...
RensaProject/nodebox_linguistics_extended
nodebox_linguistics_extended/parser/nltk_lite/probability.py
Python
gpl-2.0
59,364
[ "Gaussian" ]
2711fdf7d3e361ec3377a0974b42cc17e7b85e71fcc255bdef8a4a17bd8db579
""" Tests if ReleaseData works. When ReleaseData is set on an algorithm, its output is supposed to be cleared by the consumer algorithm once it is done processing it. The following test verifies this. """ import vtk from vtk.test import Testing class TestReleaseData(Testing.vtkTest): def test(self): sphere...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Common/ExecutionModel/Testing/Python/TestReleaseData.py
Python
gpl-3.0
936
[ "VTK" ]
afb72677639631186c8c6c042f5204354e5c66b6db907dc915a9d167122e81a0
""" Constructs a data source for the ga4gh server by downloading data from authoritative remote servers. """ # TODO # - would be nice to have some kind of checkpoint functionality to resume # process where it left off since getting a clean run is uncertain... from __future__ import division from __future__ import pri...
pansapiens/server
scripts/download_data.py
Python
apache-2.0
11,737
[ "BWA", "pysam" ]
1218afabe5ca4a8df70383de40371d0a328761cffacc6ecb6f5413497b622e38
# GromacsWrapper plugin: cysaccessibility.py # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ CysAccessibility plugin ======================= Cysteine accessibility is analyzed by histogramming the dis...
jandom/GromacsWrapper
gromacs/analysis/plugins/cysaccessibility.py
Python
gpl-3.0
9,048
[ "Gromacs" ]
268cdbfeb8c87f30feda01da8fdcaf10f2e240e4e323adf4f07342bd0eef60a2
""" The Job Sanity Agent accepts all jobs from the Job receiver and screens them for the following problems: - Output data already exists - Problematic JDL - Jobs with too much input data e.g. > 100 files - Jobs with input data incorrectly specified e.g. castor:/ - Input sandbox not correc...
andresailer/DIRAC
WorkloadManagementSystem/Executor/JobSanity.py
Python
gpl-3.0
5,257
[ "DIRAC" ]
9c39996d3df9a3816396016b49c8687a825fdf68d4f12dcb13064489eeda6f3a
#!/usr/bin/env python import os import numpy as np import pandas as pd from itertools import product def naive_cubic_grid(alat,grid_shape,func): """ put 3D function 'func' on grid, one point at a time """ orb_grid = np.zeros(grid_shape) dx,dy,dz = alat/grid_shape for ix in range(grid_shape[0]): for iy ...
Paul-St-Young/QMC
get_gaussian_h5.py
Python
mit
3,889
[ "Gaussian", "PySCF", "QMCPACK" ]
a34c9c077ef2fbc39bb7a79b09c7d18893b3f15461af8fa9dbe83f2f002f35d4
# Copyright (C) 2016 Collin Capano # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is distributed in t...
hagabbar/pycbc_copy
pycbc/inference/likelihood.py
Python
gpl-3.0
38,090
[ "Gaussian" ]
f1f9725a1492dfb131273a74046ae4058b8c74b19b76a84075ebcd9282342a58
# coding=utf-8 # Copyright 2022 The ML Fairness Gym 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 applicab...
google/ml-fairness-gym
environments/lending_params.py
Python
apache-2.0
10,396
[ "Gaussian" ]
0118dc6aeb1c2c92a356d461fff7940ce46898b152367d10d91a30d65e7542f2
from rdkit import RDConfig import unittest from rdkit import Chem from rdkit.Chem import Draw, AllChem, rdDepictor from rdkit.Chem.Draw import rdMolDraw2DQt import sys try: from PyQt5.Qt import * except ImportError: # If we can't find Qt, there's nothing we can do sip = None else: try: # Prefer the PyQt5-b...
ptosco/rdkit
Code/GraphMol/MolDraw2D/Qt/Wrap/testMolDraw2DQt.py
Python
bsd-3-clause
2,168
[ "RDKit" ]
422427197ea069fb081f7e59db37a2326451a4c36b8cc88029b2d04354ec70b3
# Created: Wed May 29 08:07:18 2002 # thomas@cbs.dtu.dk, Cecilia.Alsmark@ebc.uu.se # Copyright 2001 by Thomas Sicheritz-Ponten and Cecilia Alsmark. # 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 pa...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/SeqUtils/__init__.py
Python
apache-2.0
13,382
[ "Biopython" ]
28aaeeec2668a0fd2920a56cb0ee17abca1af09fc8603d73e1024cdc7fcbd239
"""This demo program solves an elastodynamics problem.""" # Copyright (C) 2010 Garth N. Wells # # This file is part of DOLFIN. # # DOLFIN 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 ...
MiroK/dolfin
demo/undocumented/elastodynamics/python/demo_elastodynamics.py
Python
gpl-3.0
4,816
[ "VTK" ]
9d392ccbe616c382c6756ca8b4cffb6f3614eb6e1a5676dd46a28dd46b133a82
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
QingChenmsft/azure-cli
src/command_modules/azure-cli-appservice/azure/cli/command_modules/appservice/tests/test_webapp_commands_thru_mock.py
Python
mit
14,741
[ "ASE" ]
8ab482f4cabd23d9481c306d8d339c97aab3a13da62998044e6aa7cfa51ccdce
# Sample module in the public domain. Feel free to use this as a template # for your modules (and you can remove this header and take complete credit # and liability) # # Contact: Brian Carrier [carrier <at> sleuthkit [dot] org] # # This is free and unencumbered software released into the public domain. # # Anyone is f...
sleuthkit/autopsy
pythonExamples/Aug2015DataSourceTutorial/FindContactsDb.py
Python
apache-2.0
8,736
[ "Brian" ]
4c4b334ce51cffaceb6097476ba66e7040c23c9e4b6d384080f300879304ad60
# proxy module from __future__ import absolute_import from mayavi.components.optional import *
enthought/etsproxy
enthought/mayavi/components/optional.py
Python
bsd-3-clause
95
[ "Mayavi" ]
46d128bb05e72bcc7145eb562ce756fe40c62efa2e75e0094908279259d6eb3b
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # testzip - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of t...
heromod/migrid
mig/unittest/testzip.py
Python
gpl-2.0
2,818
[ "Brian" ]
6f4615457252e90cc8d93694613555e7bcaa0b14e66fe4ae87f5cd83ca48241a
#!/usr/bin/env python """This is to show a _raw_ way of traversing messages.""" import sys sys.path.append('../../python') import moose connectionProbability = 0.5 net = moose.IntFire('/net1', 10) syn = moose.SimpleSynHandler( '/net1/sh', 10 ) moose.connect( syn, 'activationOut', net, 'activation', 'OneToOne' ) synap...
dilawar/moose-full
moose-examples/snippets/showmsg.py
Python
gpl-2.0
818
[ "MOOSE" ]
2d88724c20b2e709045defc890afa5db1f26771fcfc3944af90e1187467b5270
""" A script to generate the Mayavi logo: a Boy surface. The boy surface is a mathematical parametric surface, see http://en.wikipedia.org/wiki/Boy%27s_surface . We display it by sampling the two parameters of the surface on a grid and using the mlab's mesh function: :func:`mayavi.mlab.mesh`. """ # Author: Gael Varoq...
dmsurti/mayavi
examples/mayavi/mlab/boy.py
Python
bsd-3-clause
1,075
[ "Mayavi" ]
5491c18fb3a31b143e5bfcfc343953346b6065f9e598d3c87be9947c3b10ffa3
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
framework/scripts/mooseExamplesLateX/gen_tex.py
Python
lgpl-2.1
2,948
[ "MOOSE" ]
52d74f9880b048190db4d9ad054d493b596898a151c658834ee950b46b45b9ab
# ----------------------------------------------------------------------------- # Milky Way - Turn based strategy game from Milky Way galaxy # # URL: https://github.com/FedericoRessi/milkyway/ # License: GPL3 # # pylint: disable=protected-access,redefined-outer-name,invalid-name, # pylint: disable=missing-doc...
FedericoRessi/milkyway
bin/tests/test_touched_files.py
Python
gpl-3.0
4,965
[ "Galaxy" ]
499a17d3fc4bafdcd6c1878350b0a461a79fd4cbbde0ca6b582dd0c64e4f69f5
from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData import CogHQLoader, MintInterior from toontown.toonbase import ToontownGlobals from direct.gui import DirectGui from toontown.toonbase import TTLocalizer from toontown.toon import Toon from direct.fsm import State import CashbotHQExteri...
ToonTownInfiniteRepo/ToontownInfinite
toontown/coghq/CashbotCogHQLoader.py
Python
mit
3,395
[ "VisIt" ]
5c31144b24f4870d919a96da5d9c2c575f79ddae4af90dfd7c64f7425b5009c2
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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...
NervanaSystems/neon
examples/gan/network_gan.py
Python
apache-2.0
13,571
[ "Gaussian" ]
bcec3b40393647e3fcada5260885efe75699f968742b512fb666e3b67aec3cc7
"""Test Vapix network API main class. pytest --cov-report term-missing --cov=axis.vapix tests/test_vapix.py """ import pytest import httpx import respx from axis.errors import MethodNotAllowed, PathNotFound, RequestError, Unauthorized from axis.applications import APPLICATION_STATE_RUNNING, APPLICATION_STATE_STOPPE...
Kane610/axis
tests/test_vapix.py
Python
mit
17,529
[ "VMD" ]
d55b804f9fb221e049349c1d033e465fdb7dd5504d8f8c2db723f632cdbc73a6
# -*- coding: utf-8 -*- # Copyright (C) 2008-2020 Samuele Carcagno <sam.carcagno@gmail.com> # This file is part of pychoacoustics # pychoacoustics 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, ...
sam81/pychoacoustics
pychoacoustics/PSI_method_est_guess.py
Python
gpl-3.0
12,368
[ "Gaussian" ]
98a3efbe6f691d3e248259757c02dd551d65bb6581175e0124d82e60d77a5cc2
"""Run IPython widget javascript tests run with `gulp tests; python -m jstest` """ # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import os try: from unittest.mock import patch except ImportError: from mock import patch # py2 from notebook import jstest...
ArcherSys/ArcherSys
Lib/site-packages/ipywidgets/jstest.py
Python
mit
1,616
[ "GULP" ]
9282da6d96549f58671616743d58974a49b275ab575486b3ab0c71a0a10dc61d
# coding: utf-8 # # Your first neural network # # In this project, you'll build your first neural network and use it to predict daily bike rental ridership. We've provided some of the code, but left the implementation of the neural network up to you (for the most part). After you've submitted this project, feel free...
tkurfurst/deep-learning
first-neural-network/dlnd-your-first-neural-network.py (old).py
Python
mit
17,588
[ "NEURON" ]
55c290b365772ebd97b220730816fb70bdd27637c65c91a66b61ce644fda8140
#!/usr/bin/env python3 import random def kill(con, sjBot, commands, trigger, host, channel, person, *weapon): """Kills a person with a random or specified weapon.""" weapons = ['a small lion.', 'a dictionary', 'an angry mountain.', 'the power of 3.', 'a honey badger.', 'a Hyper beam.', ...
ahkscript/sjBot
commands/!##monsterhunter/kill.py
Python
gpl-3.0
712
[ "Bowtie" ]
ef164b8fe3b2669cbfa19379bd8942855ada3cd38e25770e08495e410a6439f3
from __future__ import absolute_import, division, print_function import numpy as np import pandas as pd import gsd.hoomd import sklearn import scipy.optimize as opt import os import os.path import pdb from sklearn.neighbors import BallTree from sklearn.neighbors import radius_neighbors_graph from scipy.spatial.distanc...
ramansbach/cluster_analysis
clustering/scripts/old-scripts/clustering_temp.py
Python
mit
73,255
[ "Gromacs" ]
e783bf95ce3dfd29bbe9cac92ebabbcf939c41fa3792d0353acba732dd514f81
# $Id$ # # Copyright (C) 2003 Rational Discovery LLC # All Rights Reserved # import sys, types from rdkit import Chem from rdkit import six from rdkit.VLib.Output import OutputNode as BaseOutputNode class OutputNode(BaseOutputNode): """ dumps smiles output Assumptions: - destination supports a write(...
jandom/rdkit
rdkit/VLib/NodeLib/SmilesOutput.py
Python
bsd-3-clause
1,925
[ "RDKit" ]
03ea2a92f247dae19412fd37bfc05c9306cd5747f25edec7273976eb67a0a001
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # Copyright 2010-2013 The Orca Team. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at you...
chrys87/orca-beep
src/orca/scripts/apps/soffice/script.py
Python
lgpl-2.1
32,885
[ "ORCA" ]
0b53371469c7ca872b7296f0a1e9011bc7d7159f9e4048e487dc1474a0f252d6
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Abinit Post Process Application author: Martin Alexandre last edited: May 2013 """ import sys,os import string, math from PyQt4 import Qt,QtGui,QtCore from numpy import pi class Conversion(QtGui.QWidget): def __init__(self, parent = None): self.i...
SamKChang/abinit-7.10.5_multipole
scripts/post_processing/appa/gui/conv.py
Python
gpl-3.0
9,987
[ "ABINIT" ]
da1ca2911dcbf73a11462e4577b44ad8bdf5eb530ad94d91020c609659836def
import numpy as np from ase.lattice import bulk from gpaw import GPAW, FermiDirac from gpaw.wavefunctions.pw import PW from gpaw.response.gw import GW a = 5.431 atoms = bulk('Si', 'diamond', a=a) for k in [3,5,7,9]: kpts = (k,k,k) for ecut in [50,100,150,200]: calc = GPAW( mode=...
robwarm/gpaw-symm
doc/tutorials/gw_tutorial/exx_convergence.py
Python
gpl-3.0
1,185
[ "ASE", "GPAW" ]
a106d01dd685f0689d9726f22b04d3c52cfad09f61c06c89ea5daa1ad3395b0f
# -*- coding: utf-8 -*- """ A real simple app for using webapp2 with auth and session. It just covers the basics. Creating a user, login, logout and a decorator for protecting certain handlers. Routes are setup in routes.py and added in main.py """ # standard library imports import logging import ran...
rchaber/moolatoo
boilerplate/handlers.py
Python
lgpl-3.0
65,137
[ "VisIt" ]
b5f0fd58e95859b7ad3acd36e8bfd2481742ad5609549e0a6c0fa6dc19400175
# -*- coding: utf-8 -*- # This file is part of Argos. # # Argos is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Argos is distribut...
titusjan/argos
argos/repo/rtiplugins/exdir.py
Python
gpl-3.0
19,874
[ "NetCDF" ]
f2fa3fa1a747bf64842e071e2a889638cbdddfc8b2b34bdb4cae6e44181fc75c
from setuptools import setup setup( name='cat', version='2.0', packages=['cat', 'tools'], python_requires='>=3.7.0', install_requires=[ 'pyfasta>=0.5.2', 'toil==5.0', 'luigi>=2.5', 'seaborn>=0.7', 'pandas==1.1.0', 'frozendict', 'configobj>=5.0...
ComparativeGenomicsToolkit/Comparative-Annotation-Toolkit
setup.py
Python
apache-2.0
1,238
[ "Biopython", "pysam" ]
e431bc4e37a0557f847d4341ab66799278c21f056eb4f532ffdc18d7b4ee40f2
#!/usr/bin/env python #-*- coding: utf-8 -*- ## Import common moduli import numpy as np from scipy.constants import c, hbar, pi import matplotlib, os, sys, argparse import matplotlib.pyplot as plt parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter) parser.add_arg...
FilipDominec/python-meep-utils
example_frequency-position_plot/fxplot.py
Python
gpl-2.0
10,440
[ "Gaussian" ]
e72a7c7cfde2d24d76ddafc81c340a2037f5462ce443a90b81cbb626b5696fda
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2015 Jan Decaluwe # # The myhdl 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 t...
jmgc/myhdl-numeric
myhdl/conversion/_toVHDL.py
Python
lgpl-2.1
162,113
[ "VisIt" ]
86124051479728eb04b3d210c19b48f63560a9a32b2c84307a0a00027af9b148
''' FTSStorageBanAction ''' import json import fts3.rest.client.easy as fts3 from DIRAC import S_ERROR, S_OK from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction import BaseAction from DIRAC.Core.Security.ProxyInfo import ge...
vmendez/DIRAC
ResourceStatusSystem/PolicySystem/Actions/FTSStorageBanAction.py
Python
gpl-3.0
2,893
[ "DIRAC" ]
54859a0f6acca1c8cb8f3d6918f288c3c27b404f08a20468e65d086beaff1099
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2011 thomasv@gitorious # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including witho...
vialectrum/vialectrum
electrum_ltc/old_mnemonic.py
Python
mit
17,857
[ "CRYSTAL", "VisIt" ]
c976be1a99a2eaa4c63630253eccdbe926f571512d3c0b2681531114ce52272f
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2015-2018 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
ubuntu-core/snapcraft
tests/integration/plugins_nodejs/test_gulp_plugin.py
Python
gpl-3.0
1,105
[ "GULP" ]
6053421be386de6face9b8f4256180e19c8db253a199760cbe38af3586ed9d44
#!/usr/bin/env python # \author Hans J. Johnson # The following python script was used to make the ITK code consistent. # This program is designed to replace the use of "class" with # the more expressive "typename" keyword for defining template # parameters # Usage: python ReplaceClassWithTypenameKeyword.py *.hxx *.h...
richardbeare/ITK
Utilities/ITKv5Preparation/replaceClassWithTypename.py
Python
apache-2.0
2,289
[ "VTK" ]
d2bd2c26d5760d052e386964847109492eff49667a2988e949466607eca32484
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Access simulation state data directly.""" from abc import ABC, abstractmethod from hoomd import Box from hoomd import _hoomd class _LocalAccess(ABC): _...
joaander/hoomd-blue
hoomd/data/local_access.py
Python
bsd-3-clause
16,793
[ "HOOMD-blue" ]
6fea6702ae248db855e0aae8e489dfbb246dde1cf7dadcd02a26405efafaffb8
from distutils.core import setup, Extension import numpy as np setup(name='mockgallib', version='0.0.1', description='Mock galaxy library', author='Jun Koda', url='https://github.com/junkoda/mockgallib', py_modules=['mockgallib.power', 'mockgallib.const', 'mockgallib.sigma', ...
junkoda/mockgallib
py/setup.py
Python
gpl-3.0
2,034
[ "Galaxy" ]
ee1b8405c495972aa22855e06b8c81dd1a1e8e968bfb94d713c17e865172299e
# coding: utf-8 # create_word_lists.py written by Duncan Murray 3/2/2014 # creates a simple list of verbs, nouns and adjectives for # simple 'bag of words' parsing. # First implementation uses the following dataset: # WordNet 3.1 Copyright 2011 by Princeton University. import os import sys from xml.dom.minidom ...
acutesoftware/AIKIF
aikif/.z_prototype/create_word_lists.py
Python
gpl-3.0
5,833
[ "VisIt" ]
2c5bc070cfaf70578d2243cb49486370c9756133fd5f69089dd00fb38c1323fd
import json import os import sys from collections import defaultdict import copy import logging import traceback from twisted.internet import threads import numpy as np import webbrowser from PyQt5 import QtCore from PyQt5 import QtGui from PyQt5 import QtWidgets from sasmodels import generate from sasmodels import ...
SasView/sasview
src/sas/qtgui/Perspectives/Fitting/FittingWidget.py
Python
bsd-3-clause
175,859
[ "Gaussian" ]
05d27bccfc6d313616ca492e0b019002654086a3bb63a4d8af85ea1b0901adc9
# -*- coding: utf-8 -*- # author: degoldschmidt # date: 25/8/2017 import logging import os from pytrack_analysis.profile import * from pytrack_analysis.database import * from pytrack_analysis.logger import Logger import pytrack_analysis.preprocessing as prp from pytrack_analysis import Kinematics from pytrack_analysis ...
degoldschmidt/pytrack-analysis
examples/oldstuff/eLife2016_figure2.py
Python
gpl-3.0
4,423
[ "VisIt" ]
b25075cdaad23435fb1f0fb8d75f3058d5a6d58b7ec334d1ce52971b765a0271
#!/usr/bin/env python3 """ Copyright 2020 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester 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 ...
pwillworth/galaxyharvester
html/user.py
Python
gpl-3.0
8,202
[ "Galaxy" ]
211da55ee4462de3940f704f6afc5deb453920212cd2459cc2bfa17b214ca080
##!/usr/bin/env python import vtk def main(): fileName = get_program_parameters() colors = vtk.vtkNamedColors() # Set the background color. colors.SetColor("BkgColor", [60, 93, 144, 255]) # Read in an image and compute a luminance value. The image is extracted # as a set of polygons (vtkIm...
lorensen/VTKExamples
src/Python/Images/ImageWarp.py
Python
apache-2.0
2,853
[ "VTK" ]
8d0eabf772e67c950cc2483a162621ca9d52e43d323f4495a8c227b3cf0a3250