text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
# coding: utf-8 """ Acceptance tests for Studio's Setting pages """ from __future__ import unicode_literals import os import random import string import json from textwrap import dedent from bok_choy.promise import EmptyPromise from mock import patch from common.test.acceptance.tests.studio.base_studio_test import S...
jolyonb/edx-platform
common/test/acceptance/tests/studio/test_studio_settings.py
Python
agpl-3.0
48,807
[ "VisIt" ]
5e5ea32e17f2bc11a209b00dcce60d5d0eaad9619ccca8e8f7cd9d9f73251c03
# pt.po val = {" days." : " dias.", "(all)" : "(todos)", "(any)" : "(qualquer)", "(anyone)" : "(qualquer pessoa)", "(available)" : "(disponíveis)", "(blank)" : "(em branco)", "(both)" : "(ambos)", "(depleted)" : "(esgotados)", "(everyone)" : "(todas as pessoas)", "(master user, not editable)" : "(utilizador principal,...
bobintetley/asm3
src/asm3/locales/locale_pt.py
Python
gpl-3.0
229,844
[ "Amber", "VisIt" ]
08da536b7c3bd7f6d4a296d08571b55928c6df5bc26039609a7497735788b229
#!/usr/bin/env python """ # ============================================================================= Copyright Government of Canada 2015-2017 Written by: Eric Marinier, Public Health Agency of Canada, National Microbiology Laboratory Funded by the National Micriobiology Laboratory and the Genome Canada / A...
phac-nml/neptune
neptune/ConsolidateSignatures.py
Python
apache-2.0
11,504
[ "BLAST" ]
65f1e3f19bd10a1ca0d2c5857172f842316a1ef3c0c7e23bc7e9759bc2388028
from __future__ import print_function from __future__ import division try: from builtins import str except: print("Warning: No str in builtins") try: from builtins import range except: print("Warning: No range in builtins") # Requires: # - boututils # - NumPy try: from boututils.datafile import...
kevinpetersavage/BOUT-dev
tools/pylib/boutdata/collect.py
Python
gpl-3.0
12,834
[ "NetCDF" ]
c424ee8703f3a3a7b7e180290d20d03af08262ceb10c489364f23b0afb641f37
""" This sample simulates equal number of positively and negatively charged particles using the P3M solver. The system is maintained at a constant temperature by using a Langevin thermostat. """ # # Copyright (C) 2013-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can r...
hmenke/espresso
samples/minimal-charged-particles.py
Python
gpl-3.0
3,528
[ "ESPResSo" ]
3c772e11b059bb2a3142fbe5a2d436ffd19c8b2e0cff6051c56c263d710a738c
# This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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 # without limitation the rights to use, copy, ...
beetbox/beets
beetsplug/discogs.py
Python
mit
25,902
[ "VisIt" ]
502fb6fade8b7638af1d3e6141509d6556490fff55b7e9edda32d66df9c30873
#!/usr/bin/env python """ create rst files for documentation of DIRAC """ import os import shutil import socket import sys import logging import glob from diracdoctools.Utilities import writeLinesToFile, mkdir, makeLogger from diracdoctools.Config import Configuration, CLParser as clparser LOG = makeLogger('CodeRef...
fstagni/DIRAC
docs/diracdoctools/cmd/codeReference.py
Python
gpl-3.0
13,798
[ "DIRAC" ]
465e12f980a4528e430f5de4d6b61aacccea2922abf9b1c9232c90c309fed1e7
import sys import os.path #sys.path.insert(0, '/home/andy/theano/tool_examples/theano-lstm-0.0.15') from theano_lstm import Embedding, LSTM, RNN, StackedCells, Layer, create_optimization_updates, masked_loss from utilities import * import dill import argparse #import cPickle import pickle import numpy from collections...
darongliu/Lstm_Turing_LM
lstm-neural-turing-machines-lm/analysis/v1-one-weight-same/lm_v4.py
Python
mit
25,147
[ "NEURON" ]
8cc7ce15b6264b048d005d70364b8d053652abbadccb5dea6704b0065ca223b0
from apts.catalogs import Catalogs def test_messier_catalog(): c = Catalogs.MESSIER # Messier catalog contains 110 objects assert len(c) == 110 # M13 is Hercules Globular Cluster - NGC 6205 (index starts from 0) assert c.iloc[12]["NGC"] == "NGC 6205" # M45 is Pleiades (index starts from 0) assert c.iloc...
pozar87/apts
tests/catalogs_test.py
Python
apache-2.0
566
[ "Galaxy" ]
d1b9eebbf8c35eaa70ad24e9fa6323c11f77c81dffeb586fa359da620b228574
import copy import time,pdb import ephem import pandas as pd import numpy as np from astropy.io import ascii from itertools import product from .pdf import * # part of isoclassify package (to do make explicit import) from .priors import * # part of isoclassify package (to do make explicit import) from .plot import *...
danxhuber/isoclassify
isoclassify/grid/classify.py
Python
mit
42,118
[ "Gaussian" ]
82db6faa505856bb8623bfd211d001b249af4c0b668c0b486346c99e12f72674
#!/usr/local/epd/bin/python #------------------------------------------------------------------------------------------------------ # Dirac propagator based on: # Fillion-Gourdeau, Francois, Lorin, Emmanuel, Bandrauk, Andre D. # Numerical Solution of the Time-Dependent Dirac Equation in Coordinate Space without Ferm...
cabrer7/PyWignerCUDA
GPU_DiracDaviau2D.py
Python
mit
45,985
[ "DIRAC", "Gaussian", "Psi4" ]
ad6852dfd879727904846e03c415e80ff9081b5d0a152963b5066d72b8a7d93d
""" Container page in Studio """ from bok_choy.page_object import PageObject from bok_choy.promise import Promise, EmptyPromise from common.test.acceptance.pages.studio import BASE_URL from common.test.acceptance.pages.studio.utils import HelpMixin from common.test.acceptance.pages.common.utils import click_css, conf...
romain-li/edx-platform
common/test/acceptance/pages/studio/container.py
Python
agpl-3.0
23,626
[ "VisIt" ]
e2822eb0b94415a6b503fc2cb465377bea59f00d9c45494960581bc069aafc66
# -*- coding: utf-8 -*- """Tests for interchange with JGIF.""" import json import logging import sys import unittest from pybel import from_cbn_jgif, to_jgif from pybel.constants import ( ACTIVITY, ANNOTATIONS, CITATION, CITATION_TYPE_OTHER, CITATION_TYPE_PUBMED, DECREASES, DIRECTLY_INCRE...
pybel/pybel
tests/test_io/test_jgif.py
Python
mit
5,119
[ "NEURON", "Pybel" ]
730818c2e5310c92a750582ffc4e15542120722e6f419a389d747535cdde9e5d
############################################################################### # Copyright 2017-2021 - Climate Research Division # Environment and Climate Change Canada # # This file is part of the "fstd2nc" package. # # "fstd2nc" is free software: you can redistribute it and/or modify # it under...
neishm/fstd2nc
fstd2nc/mixins/compat.py
Python
lgpl-3.0
19,391
[ "NetCDF" ]
5b51267ac30da29c9b857ce4a36ec12f57d4a508a482e36505e9199ed5de159f
#!/usr/bin/env pythonw import tkinter as Tk from tkinter import ttk import matplotlib import numpy as np import numpy.ma as ma import new_cmaps import matplotlib.colors as mcolors import matplotlib.gridspec as gridspec import matplotlib.patheffects as PathEffects class EnergyPanel: # A dictionary of all of the par...
pcrumley/Iseult
src/energy_plots.py
Python
gpl-3.0
32,212
[ "Gaussian" ]
91e3dc5eefe8742c5d0fd2837da784fcd322e4472d706247b97212065515d610
from distutils.core import setup, Extension from glob import glob module1 = Extension('hashpumpy', sources = glob('*.cpp'), libraries = ['crypto']) setup (name = 'hashpumpy', version = '1.2', author = 'Zach Riggle (Python binding), Brian Wallace (HashPump), Y...
christophetd/HashPump
setup.py
Python
mit
524
[ "Brian" ]
99eb4c245b6c7b796d4d5e235e5d788a3de8a37994ad1d2847e0bc676aa6aeaf
""" This simply invokes DIRAC APIs for creating 2 jobDescription.xml files, one with an application that will end with status 0, and a second with status != 0 """ from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() from DIRAC.tests.Utilities.utils import find_all from DIRAC.Interfaces.API.Job i...
Andrew-McNab-UK/DIRAC
tests/Integration/WorkloadManagementSystem/createJobXMLDescriptions.py
Python
gpl-3.0
1,201
[ "DIRAC" ]
ff294a0e2ca21fb06c8ffe817ae5433f25954f2a3cef0f40c64685e120679f6c
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, 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...
anksp21/Community-Zenpacks
ZenPacks.AndreaConsadori.Funkwerk/setup.py
Python
gpl-2.0
3,300
[ "VisIt" ]
91f7f5a2645792e1688e1f317cc48a489d66217f60265eaf23674a884d9d5e31
""" Bok choy acceptance and a11y tests for problem types in the LMS See also lettuce tests in lms/djangoapps/courseware/features/problems.feature """ import random import textwrap from nose import SkipTest from abc import ABCMeta, abstractmethod from nose.plugins.attrib import attr from selenium.webdriver import Acti...
jjmiranda/edx-platform
common/test/acceptance/tests/lms/test_problem_types.py
Python
agpl-3.0
27,271
[ "VisIt" ]
847f33e36bbebe93b78aad156e36e995f2fc9ccebe9f6d5bb14e18bce6a4b199
from contextlib import contextmanager from taichi._lib import core as _ti_core from taichi.lang import impl from taichi.profiler.kernel_metrics import default_cupti_metrics class StatisticalResult: """Statistical result of records. Profiling records with the same kernel name will be counted in a ``Statistic...
yuanming-hu/taichi
python/taichi/profiler/kernel_profiler.py
Python
mit
22,549
[ "VisIt" ]
be5e0782a63b43b42ab69e2aa8bd3329a2cd0ac50a6ba220428bd37107f936ef
#!/usr/bin/env python ''' GAEUnit: Google App Engine Unit Test Framework Usage: 1. Put gaeunit.py into your application directory. Modify 'app.yaml' by adding the following mapping below the 'handlers:' section: - url: /test.* script: gaeunit.py 2. Write your own test cases by extending unittest.TestCas...
toomoresuch/pysonengine
parts/gaeunit/gaeunit.py
Python
mit
23,642
[ "VisIt" ]
0fc87ff942c4bb4a0adc452ab1b0541c8cd2e0a0ed5fdacceb93153464c7e736
""" Support for managing apps (as created with "0install add"). @since: 1.9 """ # Copyright (C) 2012, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _, SafeException, logger from zeroinstall.support import basedir, portable_rename from zeroinstall.injector impo...
michel-slm/0install
zeroinstall/apps.py
Python
lgpl-2.1
13,853
[ "VisIt" ]
28d2093566e5ddf94065a250c7c659d36019b1d190e3e0d58e63868f93444f60
""" Statistics. """ from functools import partial import math import numpy as np import matplotlib.pyplot as plt import scipy.special as spsp import scipy.stats as spst import scipy.optimize as spop """ Plot style settings. """ _figwidth = 10 plt.rc('figure', figsize=[_figwidth,_figwidth/1.618], facecolor='1.0...
jbernhard/ebe-analysis
lib/stats.py
Python
mit
9,576
[ "Gaussian" ]
65c951679b94fdd7d0ced9f5d57d1eb9aa7b27791f163250ec26727f588e7b9e
from Bio import SeqIO from Bio.Alphabet import IUPAC from Bio.Seq import Seq from Bio import motifs import gzip import numpy as np import random #import multiprocessing import itertools import os import sys """ A class for holding static methods that can serve as useful Bioinformatics tools. There are methods here f...
LarsDu/DeepNuc
deepnuc/dubiotools.py
Python
gpl-3.0
21,845
[ "Biopython" ]
d7da1324bfd1860a53e03fedabfb280c2056bf8a7296294852c9f414a5d055ee
#import matplotlib.pyplot as plt import numpy as np from collections import deque import numbers """ Created on Jun 29, 2016 @author: hans-werner """ def convert_to_array(x, dim=None, return_is_singleton=False): """ Convert point or list of points to a numpy array. Inputs: x: (list of)...
hvanwyk/quadmesh
src/mesh.py
Python
mit
263,904
[ "VisIt" ]
f994c6d04d02a07b541299532eb10bcd5f453419e2723ef56d342f152c0e8668
# -*- coding: utf-8 -*- ######################################################################### ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2018 Upinder S. Bhalla. and NCBS ## It is made available under the terms of the ## GNU General Public ...
dilawar/moose-core
tests/core/test_Xreacs6.py
Python
gpl-3.0
3,592
[ "MOOSE" ]
d7e6c11e1616f7218cab7b032f086f28664591afa8af71ade1d3687c6a94883f
'''This script will automate running blastx and blastn for putative viral sequences.''' import argparse import os from datetime import datetime from subprocess import Popen from shlex import split from multiprocessing import cpu_count from blastResults import sigHits, subsetSig from version import version def ublast...
icwells/Kiwi
bin/blastSeqs.py
Python
gpl-3.0
5,672
[ "BLAST" ]
1afdb302440a458dd9ecb9631bfeb0af7627a2afa77d7b9bfca24bc16c5a7475
"""Handle user related queries.""" import base64 import collections import logging import re import zlib from google.appengine.api import app_identity from google.appengine.api import mail from google.appengine.api import namespace_manager from google.appengine.api import oauth from google.appengine.api import users f...
tomwilkie/awesomation
src/appengine/user.py
Python
mit
9,492
[ "VisIt" ]
6602790979d2fd71b848e8ba19dfe0a5e998636b00c3eeb9968cb46898cdfe44
# -*- coding: utf-8 -*- """ Data conversion utilities for dataframe ===================================== Convert cytoscape.js style graphs from/to dataframe object. """ import pandas as pd from . import cytoscapejs as cyjs def from_dataframe(df, source_col='source', target_col='target', interaction_col='interact...
idekerlab/cyrest-examples
py2cytoscape_doc/py2cytoscape/util/dataframe.py
Python
mit
3,100
[ "Cytoscape" ]
3437a86434f22e994987024a6eed1c5849517c806bb13a521f3fc814b2da83bc
# encoding:utf-8 # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Benny Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
pmghalvorsen/gramps_branch
gramps/plugins/lib/libplugins.gpr.py
Python
gpl-2.0
8,402
[ "Brian" ]
c96cd5db64350545fb05ef59239b6538067cdf0a440f589d83b82ff3dd2410bc
# Draw a cone and write it out to sys.argv[1] in a few different ways. All # output files should be bit-for-bit reproducible, i.e., no embedded # timestamps, hostnames, floating point error, etc. from __future__ import print_function import os import platform import sys import mpi4py.MPI import paraview.simple as pv...
hpc/charliecloud
examples/paraview/cone.py
Python
apache-2.0
1,329
[ "ParaView", "VTK" ]
f5e0e13bef8eb95bc4d66891049f58a84e469fca84f37c7c10ccec22c4e9b37e
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageSpatialAlgorithm(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkImageSpatialAlgorithm.py
Python
bsd-3-clause
505
[ "VTK" ]
8c88793e28a2932bfe546d282b5fc5e7d15c614875ee6707294616a2309514c0
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, 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...
anksp21/Community-Zenpacks
ZenPacks.AndreaConsadori.Motorola/ZenPacks/AndreaConsadori/Motorola/modeler/plugins/CanopyDeviceMap.py
Python
gpl-2.0
1,326
[ "VisIt" ]
45a50bb54a059b37c3dc91a43994ef85d24f3e2479f026c95f777356b73d601a
""" Test the Studio help links. """ from unittest import skip from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.studio.asset_index import AssetIndexPage fro...
fintech-circle/edx-platform
common/test/acceptance/tests/studio/test_studio_help.py
Python
agpl-3.0
43,324
[ "VisIt" ]
ba6ae35172fba1d1d702e2413fb74697e10a5288e4afa7784ba00cff3310a319
import sys import numpy from python.src.data_processing.normalizer import Normalizer from python.src.neural_networks.neural_network import NeuralNetwork from python.src.neurons.receive_all_neuron import ReceiveAllNeuron from python.src.neurons.output_only_neuron import OutputOnlyNeuron from python.src.neurons.activati...
DomenicD/dom_ml_playground
python/src/neural_networks/feed_forward.py
Python
mit
3,406
[ "NEURON" ]
4ba0131741da363b410507c6de92ea0417aa2ae6dcd89868bf2cd2f15a056eb5
from __future__ import unicode_literals import os import bson import logging import pymongo import datetime import requests import functools from modularodm import fields, Q from modularodm.exceptions import NoResultsFound from dateutil.parser import parse as parse_date from framework.guid.model import Guid from fra...
samchrisinger/osf.io
website/files/models/base.py
Python
apache-2.0
31,875
[ "VisIt" ]
9fb0c6c981f103d314a44a0a7260dd11c34ebebae3ff378e47b64c59b9df496f
""" Write output files specific for xray data. -- CXIdb files """ import tables import numpy as np from mdtraj import io def write_cxidb(filename, shotset, sample_name='thorshotset'): """ Write a shotset to disk in CXIdb format. Parameters ---------- filename : str The name of the...
tjlane/thor
src/python/write.py
Python
gpl-2.0
2,737
[ "MDTraj" ]
ded483320de074c835e2dc63f0daad6b21150049d2870a1304d2ebdbb872abaf
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkQuadricClustering(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkQuadricClustering.py
Python
bsd-3-clause
495
[ "VTK" ]
798e7f70de9de5b24a1d6b2b3d432277495febd9518014d3a1c832d40f27436f
# coding: utf8 """ Core functions for - Uniform spanning trees * :func:`ust_sampler_wilson` * :func:`ust_sampler_aldous_broder`: - Descent procresses :class:`Descent`: * :func:`uniform_permutation` - :class:`PoissonizedPlancherel` measure * :func:`uniform_permutation` * :func:`RSK`: Robinson-S...
guilgautier/DPPy
dppy/exotic_dpps_core.py
Python
mit
8,692
[ "VisIt" ]
4de09c1b6a27e6b009ece94ac0e6bc0fe98f279c32ea513873714fa6e0b784ed
#!/usr/bin/env python import sys import numpy as np import nibabel as nib from scipy.signal import convolve from scipy.ndimage.morphology import grey_closing from scipy.ndimage.morphology import generate_binary_structure from mne import write_surface from mcubes import marching_cubes def mkoutersurf(image, radius, out...
aestrivex/ielu
ielu/mkoutersurf.py
Python
gpl-3.0
1,540
[ "Gaussian" ]
b1ff8734365a4bd674d5a6f3d798d5ba7c58e95cc8fb2ce63eb3249557fb38e4
#! usr/bin/env python import optparse, os, csv, glob, sys import MySQLdb import PEATSA.Core as Core import PEATSA.Core.Matrix import matplotlib.pyplot as plt import numpy as np class ProteinComplexTool: def __init__(self): return def DeltaStability(self,inputFile, mutationList, configurationFile, wo...
dmnfarrell/peat
sandbox/ProteinComplexTool.py
Python
mit
13,150
[ "MDAnalysis" ]
0b1e7edc8e65fdeb7addb0c3bcb79029a2e52fbe0adc63b57485f06aa07793d7
"""Algorithms for spectral clustering""" # Author: Gael Varoquaux gael.varoquaux@normalesup.org # License: BSD import warnings import numpy as np from ..base import BaseEstimator from ..utils import check_random_state from ..utils.graph import graph_laplacian from .k_means_ import k_means def spectral_embedding(a...
ominux/scikit-learn
sklearn/cluster/spectral.py
Python
bsd-3-clause
11,249
[ "Gaussian" ]
0c3ded1a17737f262356e0cd46a5b937df0946f3cfa78ac0089a70cf5cced0d0
""" Base class for MyProxy and VOMS """ import os import tempfile import DIRAC from DIRAC import gConfig, S_OK, S_ERROR from DIRAC.Core.Utilities import DErrno from DIRAC.Core.Security.X509Chain import X509Chain # pylint: disable=import-error from DIRAC.Core.Security import Locations class BaseSecurity(object): ...
DIRACGrid/DIRAC
src/DIRAC/Core/Security/BaseSecurity.py
Python
gpl-3.0
3,081
[ "DIRAC" ]
38c0f3bd1b4be97cb5d896e9a4c0c8d58cd5cb97bb889642ae3c4297011453dc
# Copyright (c) 2012, James Hensman # Licensed under the BSD 3-clause license (see LICENSE.txt) __doc__ = """ Inference over Gaussian process latent functions In all our GP models, the consistency propery means that we have a Gaussian prior over a finite set of points f. This prior is math:: N(f | 0, K) where K i...
TianpeiLuke/GPy
GPy/inference/latent_function_inference/__init__.py
Python
bsd-3-clause
3,383
[ "Gaussian" ]
083308155c65da2099613f6875b80d52c9f0b11310a0c6ded8646a8c9989409d
# -*- coding: utf-8 -*- import re from numbers import Integral from collections import namedtuple __all__ = ["countries"] try: basestring except NameError: basestring = str Country = namedtuple('Country', 'name alpha2 alpha3 numeric apolitical_name') _records = [ Country(u"Afghanis...
repotvsupertuga/tvsupertuga.repository
script.module.streamlink.base/resources/lib/streamlink/utils/iso3166/__init__.py
Python
gpl-2.0
18,795
[ "BWA" ]
2562343df29eaf5934602681a227db87060ac81b8582e9e6c8f502261a1aee55
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals if __name__ == '__main__': import argparse from Bio import AlignIO from Bio.Align import MultipleSeqAlignment from Bio.SeqRecord import SeqRecord from krpy import krio ...
karolisr/krpy
krpy/tools/remove-keep-given-seqs-in-alignment.py
Python
gpl-3.0
2,490
[ "Biopython" ]
03de2967d9b951435e96de61c5d05fe6f44632c668dcca4dcd01df7f259fc250
import os from ase import Atoms from ase.io import read, write from ase.calculators.exciting import Exciting from ase.units import Bohr, Hartree a = Atoms('N3O', [(0, 0, 0), (1, 0, 0), (0, 0, 1), (0.5, 0.5, 0.5)], pbc=True) write('geo.exi', a) b = read('geo.exi') print a print a.get_positions() ...
grhawk/ASE
tools/ase/test/exciting/exciting.py
Python
gpl-2.0
564
[ "ASE", "exciting" ]
79d9a4be31b20604ffce758e3af4c3a598f376632041b6f9857d16658337c0c0
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 16.3.8 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
0x46616c6b/ansible
lib/ansible/modules/network/avi/avi_sslprofile.py
Python
gpl-3.0
7,426
[ "VisIt" ]
89e9dd372040398ddda83e93a8b52b954c09f32a53f7062c0d4d4c312d1bb9bd
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ from datetime import datetime, timedelta from flaky import flaky from textwrap import dedent from unittest import skip from nose.plugins.attrib import attr import pytz import urllib from bok_choy.promise import EmptyPromise from ..helpers import ( Uniqu...
devs1991/test_edx_docmode
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
51,932
[ "VisIt" ]
a525f20472e6f55fa92fcbf4bc6856a755aa75f2d90bb405fcf4f91b30b43374
#!/usr/bin/python3 dicewords = {"11111":"a", "11112":"a&p", "11113":"a's", "11114":"aa", "11115":"aaa", "11116":"aaaa", "11121":"aaron", "11122":"ab", "11123":"aba", "11124":"ababa", "11125":"aback", "11126":"abase", "11131":"abash", "11132":"abate", "11133":"abbas", "11134":"abbe", "11135":"abbey", "11136":"abbot", "...
AdrianCohea/DicewareGen
diceware.py
Python
gpl-2.0
128,334
[ "Amber", "BLAST", "Brian", "DIRAC", "Elk", "GULP", "Galaxy", "MOE", "MOOSE", "NEURON", "VisIt" ]
ff635a36bdc6c4d445f6beae2571808edbeefb9c886798604518b7bd44ea3431
"""Interface to Sailthru API.""" import hashlib import itertools import socket import urllib import urllib2 try: # Prefer simplejson as it's usually faster import simplejson as json except ImportError: import json try: import settings except ImportError: class settings: class services: ...
oysterhotels/sailthru
sailthru.py
Python
mit
11,270
[ "BLAST" ]
79ef941c85f4c04bc9e85a44abf5663bae29c0a1deb1089de823b5c5d0a770b9
# coding=utf-8 """ Color Scheme information """ __author__ = 'Matt Eland' class ColorScheme(object): """ A color scheme :type background: tuple RGB values indicating the background :type foreground: tuple RGB values for most text and buttons :type highlight: tuple RGB values for highlighted text ...
IntegerMan/Pi-MFD
PiMFD/UI/ColorScheme.py
Python
gpl-2.0
8,532
[ "Amber" ]
3c8fc462af03601e5bc9ccb09b3210236decd80eedce687e49f3797e29254f86
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
googleapis/python-texttospeech
scripts/fixup_keywords.py
Python
apache-2.0
6,017
[ "VisIt" ]
179fce54595e6ab268b492cf7bd9c84ddbe41ac8a3fc54ebaed540fef668d577
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yasharmaster/scancode-toolkit
src/commoncode/hash.py
Python
apache-2.0
4,976
[ "VisIt" ]
b1aa3cba0f9c7c1ceed2c0a962159cbc8c90bb798bd00beac7b576fc5d0eaa6a
############################################################################## # Copyright (c) 2013-2018, 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...
EmreAtes/spack
var/spack/repos/builtin/packages/r-rvcheck/package.py
Python
lgpl-2.1
1,655
[ "Bioconductor" ]
ce499ef7f51de8f4fa626734409f30416c4edd9730ad18522982253ce1d54113
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016 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 the h...
ubuntu-core/snapcraft
snapcraft/storeapi/constants.py
Python
gpl-3.0
2,476
[ "VisIt" ]
c820e6514f32eb91fd660fdfbd43faaa4bfaa04eb831ddb1ae3ce7f7fc92d23b
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
mlperf/training_results_v0.7
Google/benchmarks/minigo/implementations/minigo-research-TF-tpu-v4-128/strategies.py
Python
apache-2.0
10,398
[ "VisIt" ]
97dc7224eaff22a9c61983de1744089f09fab46adbf4ab77c2c0694d5dea2f50
#import printStatWithName from AZutilities import dataUtilities from AZutilities import paramOptUtilities from trainingMethods import AZorngRF from trainingMethods import AZorngCvSVM import Orange import orange import math import copy import string """ Module for calculation of non conformity scores and the correspond...
JonnaStalring/AZOrange
azorange/AZutilities/LOOCPMondrian.py
Python
lgpl-3.0
27,986
[ "RDKit" ]
e26d668c685d9fcee3009acac51e566f429f5c9d40540a1b359aa70fa51933a7
"""Contains the parent class for the DMD MPFDisplay module as well as some module-level functions related to using DMD files.""" # dmd.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 htt...
spierepf/mpf
mpf/media_controller/display_modules/dmd.py
Python
mit
12,533
[ "Brian" ]
36a59b6156da63d5154671a695856fd430ebc2278b8e27fe485268044a7ba2dd
#!/usr/bin/env pvbatch from paraview.simple import * import pviz import sys oviz = pviz.viz(sys.argv) # instantiate viz object (and load data) part = pviz.makeContour(varName='T_s',isoValueArray=[0.01],ColorArrayName='u_s') ResetCamera() # auto-adapt camera to part extent oviz.writeImage('isoT_0p01') ...
ruizanthony/pviz
examples/simple/isosurface.py
Python
lgpl-3.0
333
[ "ParaView" ]
6056c7c22820c2e7c9670d952898ef353911cdd43c0de6149e655dbd20c16bbd
"""This module contains implementation of bolfire.""" __all__ = ['BOLFIRE'] import logging import numpy as np import elfi.methods.mcmc as mcmc from elfi.classifiers.classifier import Classifier, LogisticRegression from elfi.loader import get_sub_seed from elfi.methods.bo.acquisition import LCBSC, AcquisitionBase fr...
elfi-dev/elfi
elfi/methods/inference/bolfire.py
Python
bsd-3-clause
18,033
[ "Gaussian" ]
741f4deffcfdb0f68ce644fb1519eb1cf97448b9d6b5a7ae4012e79bb4a7beeb
from __future__ import unicode_literals from django.test import TestCase from django.utils import six from .models import (Building, Child, Device, Port, Item, Country, Connection, ClientStatus, State, Client, SpecialClient, TUser, Person, Student, Organizer, Class, Enrollment, Hen, Chick, Base, A, B, C) cl...
ericholscher/django
tests/select_related_regress/tests.py
Python
bsd-3-clause
9,055
[ "Brian" ]
e21f8ce8f792348cc847e7acfcd0cf38c33fb1cb5e9997d6bac61cc8b297cee3
# $Id$ # # Copyright (C) 2000-2008 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ command line util...
adalke/rdkit
rdkit/ML/BuildComposite.py
Python
bsd-3-clause
36,064
[ "RDKit" ]
8fa5f18c4d6ed88b6bc2d5f5b007eeef7108ce2f1ca37739239437014faa57a3
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
src/formattedcode/format_spdx.py
Python
apache-2.0
8,459
[ "VisIt" ]
0cc4c94776e345bd075593eb81b6b08c5b0f6fbf7b9d8f6d04d625839dc6d855
from __future__ import annotations class ParameterReporter: """ Keeps a record of all the ModelParameterisations and ScanVaryingModelParameterisations present and provides access to their Parameters and ScanVaryingParameterSets for reporting purposes. It is assumed that the provided model paramet...
dials/dials
algorithms/refinement/parameterisation/parameter_report.py
Python
bsd-3-clause
6,541
[ "CRYSTAL" ]
d4823aa3c9627b99a4512e34544d7c1262450b4e4dec0ae7605311f168867d8a
# GeneaCrystal Copyright (C) 2012-2013 # Christian Jaeckel, <christian.doe@gmail.com> # Frederic Kerber, <fkerber@gmail.com> # Pascal Lessel, <maverickthe6@gmail.com> # Michael Mauderer, <mail@michaelmauderer.de> # # GeneaCrystal is free software: you can redistribute it and/or modify # it under the ...
MichaelMauderer/GeneaCrystal
geneacrystal/gameElements/playerBases.py
Python
gpl-3.0
16,824
[ "CRYSTAL" ]
4e1cc7a3868f6a0ca0fc6f90e6833d8f6570d594bbeab756f7e3be1f0f78a567
# -*- coding: utf-8 -*- import logging from collections import OrderedDict import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * from CIP.logic.SlicerUtil import SlicerUtil from CIP.logic import Util from CIP.ui import CaseReportsWidget # # CIP_PAARatio # class CIP_PAARatio(ScriptedLoadableModule):...
acil-bwh/SlicerCIP
Scripted/CIP_PAARatio/CIP_PAARatio.py
Python
bsd-3-clause
48,544
[ "VTK" ]
7b8839119e661fd36cf8386eeafb7b2abd9942707bb65a56fc732cd987cdd5bf
# 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...
KaiSzuttor/espresso
testsuite/python/scafacos_dipoles_1d_2d.py
Python
gpl-3.0
5,495
[ "ESPResSo" ]
eed3ed3699ca758473d3d938d2c8ca989c3d4897a34c5f97bd885e3c3fef80e5
"""Generate Java code from an ASDL description.""" # TO DO # handle fields that have a type but no name import os, sys, traceback import asdl TABSIZE = 4 MAX_COL = 100 def reflow_lines(s, depth): """Reflow the line s indented depth tabs. Return a sequence of lines where no line extends beyond MAX_COL ...
fabioz/Pydev
plugins/org.python.pydev.parser/src/org/python/pydev/parser/jython/ast/asdl_java.py
Python
epl-1.0
20,265
[ "VisIt" ]
d4dcf3974f6c89304178839cfb74ed2e5558d322436bb6cde676f9bfc64533a2
#!/usr/bin/python # # Script para criar estrutura do banco de dados # # Por: Alisson Menezes # # from pymongo import * print "[+] Conectando com o banco de dados" client = MongoClient('localhost',27017) db = client["octopus"] print "[+] Conectado ..." print "[+] Criando estrutura do banco" db.nodes.update({ "_id":"de...
AlissonMMenezes/Octopus
inicia_db.py
Python
gpl-2.0
436
[ "Octopus" ]
2ede7ec334148029dd24c91b9212d1f0335dadd5697de5424a21f957d46ba0d5
r""" I/O Registry (:mod:`skbio.io.registry`) ======================================= .. currentmodule:: skbio.io.registry Classes ------- .. autosummary:: :toctree: generated/ IORegistry Format Functions --------- .. autosummary:: :toctree: generated/ create_format Exceptions ---------- .. autos...
demis001/scikit-bio
skbio/io/registry.py
Python
bsd-3-clause
42,113
[ "scikit-bio" ]
c71b3b46791e89c911e3684caeb7b5d99a28de07b6328d240dc1de7d7e0bba9a
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
inspyration/odoo
addons/project/project.py
Python
agpl-3.0
74,481
[ "VisIt" ]
f50a15db97f99d75bd5c821509f2f824d349ccf9fa247346bcd9d4229035eff7
#!/usr/bin/env python3 # coding: utf-8 """ E-VRP is a project about the routing of a fleet of electrical vehicles. E-VRP is a project developed for the Application of Operational Research exam at University of Modena and Reggio Emilia. Copyright (C) 2017 Serena Ziviani, Federico Motta This file is ...
sere/E-VRP
heuristic.py
Python
gpl-3.0
16,595
[ "VisIt" ]
3aac2c79b09c75e3c0b49a4f48ca27ba06b49c255dc9f4e8ec5b09aa8a83d063
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Laurawly/tvm-1
gallery/how_to/extend_tvm/use_pass_infra.py
Python
apache-2.0
11,740
[ "VisIt" ]
c7d67b3b9012b0517c74a8b45eabe7dc30157724dc3e4efa6f9d0278efc39f29
from random import random,randint import math def wineprice(rating,age): peak_age=rating-50 # Calculate price based on rating price=rating/2 if age>peak_age: # Past its peak, goes bad in 10 years price=price*(5-(age-peak_age)/2) else: # Increases to 5x original value as it # approaches its...
jefflyn/buddha
src/pci/chapter8/numpredict.py
Python
artistic-2.0
4,802
[ "Gaussian" ]
bf6b16c2973ead155c9ed0a453cd7106a44d20774ba0b2229838d8ed118c2ed6
# -*- coding: utf-8 -*- WHITE = 1 # node not visit GRAY = 2 # visited but has other nodes BLACK = 3 # visited and so have other class Graph(object): def __init__(self): self._edges = {} self._nodes = {} # ensure nodes are unique def insert_edge(self, index1, index2): if index1 n...
kern3020/incubator
unrooted/graph.py
Python
mit
2,830
[ "VisIt" ]
dc9e49c3ec16c21097beb341b59c28862571886759374da9008ce4e27811b4ad
# -*- coding: utf-8 -*- # Unit tests for cache framework # Uses whatever cache backend is set in the test settings file. from __future__ import unicode_literals import copy import os import re import shutil import tempfile import threading import time import unittest import warnings from django.conf import settings ...
MounirMesselmeni/django
tests/cache/tests.py
Python
bsd-3-clause
85,442
[ "Brian" ]
535f34ea543a58cab5ab5c4e52ee34a73e3e0db493288b33156666eae7d5acd0
""" Maximum likelihood covariance estimator. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux <gael.varoquaux@normalesup.org> # Virgile Fritsch <virgile.fritsch@inria.fr> # # License: BSD 3 clause # avoid division truncation from __future__ import division import warnin...
eickenberg/scikit-learn
sklearn/covariance/empirical_covariance_.py
Python
bsd-3-clause
9,099
[ "Gaussian" ]
48b0d060325f41746021ca6af3bbba058b74dc500b65631107e21e97f4eab858
""" CSAPI exposes update functionalities to the Configuration. Most of these functions can only be done by administrators """ from DIRAC import gLogger, gConfig, S_OK, S_ERROR from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.Core.Utilities import List, Time from DIRAC.Core.Security.X509Chain import X50...
fstagni/DIRAC
ConfigurationSystem/Client/CSAPI.py
Python
gpl-3.0
27,525
[ "DIRAC" ]
c8902cd5b2de3595e2830d2103447649ca2af2839bb54c2bf7ffe31a724e628b
# -*- coding: utf-8 -*- """Test sequences for graphiness. """ # Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import heapq import networkx as nx __author__ = "\n".join(['Aric Hagberg...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/networkx/algorithms/graphical.py
Python
gpl-3.0
13,009
[ "Brian" ]
844e37e5aa1c60a1ceefffc155407f45b2b482c63885aa386752208b8906c38a
# test driver for the second half of the SavePythonState test. it # sets up the testing environment, loads the state file (passed # on the command line), and verifys the resulting image import sys from paraview import smtesting print sys.argv smtesting.ProcessCommandLineArguments() execfile(sys.argv[1]) _view = Get...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/SavePythonState.py
Python
gpl-3.0
502
[ "ParaView", "VTK" ]
e89b6a4762c9dfc57de90a97da92888bbc5598ed4eb07671d579bf8e6959fe23
""" Test_RSS_Policy_DTPolicy """ from mock import MagicMock import unittest from DIRAC import gLogger import DIRAC.ResourceStatusSystem.Policy.DowntimePolicy as moduleTested ################################################################################ class DTPolicy_TestCase(unittest.TestCase): def setUp(se...
DIRACGrid/DIRAC
src/DIRAC/ResourceStatusSystem/Policy/test/Test_RSS_Policy_DTPolicy.py
Python
gpl-3.0
3,478
[ "DIRAC" ]
0dfbf7d49cdfe87b8d3060fd983e2505700035d932a4c6273fc86da3cf664e40
import uuid from django.db import models from django.utils.translation import ugettext_lazy as _ from core.models.mixins import AuditableMixin class Visit(AuditableMixin): id = models.UUIDField( default=uuid.uuid4, primary_key=True, editable=False, verbose_name=_("id") ) link = models.Fo...
ikcam/django-skeleton
core/models/visit.py
Python
bsd-3-clause
960
[ "VisIt" ]
696fd245493630a92823f79bf4d8e85dab4c5efdb5ab5461df16c0c32a6f0520
""" Defines how the GUI reads Abaqus files """ from __future__ import print_function from six import iteritems from six.moves import range import os import numpy as np import vtk from vtk import vtkLine, vtkTriangle, vtkQuad, vtkTetra from vtk.util.numpy_support import numpy_to_vtk from pyNastran.gui.gui_objects.gui...
saullocastro/pyNastran
pyNastran/converters/dev/abaqus/abaqus_io.py
Python
lgpl-3.0
13,782
[ "VTK" ]
c630138812e9173e2948889238357be23d7fddc8b3abc7bef67415a738be59c1
r""" This module is a ParaViewWeb server application. The following command line illustrate how to use it:: $ pvpython .../pv_web_catalyst.py --data-dir /.../path-to-your-data-directory --data-dir is used to list that directory on the server and let the client choose a file to load. Any P...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/Web/Python/paraview/web/pv_web_catalyst.py
Python
gpl-3.0
10,291
[ "ParaView", "VTK" ]
0319d8bc1da5ccfb921e06d15f6555d09fd01a5e47ae5e03337c478160b2669c
# # When publishing work that uses these basis sets, please use the following citation: # # K.G. Dyall, Theor. Chem. Acc. (1998) 99:366; addendum Theor. Chem. Acc. (2002) 108:365; # revision Theor. Chem. Acc. (2006) 115:441. Basis sets available from the Dirac web site, # http://dirac.chem.sdu.dk. Pt = [[0, -1, [623...
sunqm/pyscf
pyscf/gto/basis/dyall_qz.py
Python
apache-2.0
8,871
[ "DIRAC" ]
59265386df97b977ddbdeaa2161915e0dcbf381b88fe504bc1ca2e275b22e890
# Copyright (C) 2016-2019 The ESPResSo project # Copyright (C) 2014 Olaf Lenz # # 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...
KaiSzuttor/espresso
src/python/espressomd/gen_code_info.py
Python
gpl-3.0
1,849
[ "ESPResSo" ]
1dd781ab55f995124555d307781dc9643039d00005fa45780b8f632d549ec43f
#!/usr/bin/env python """Small script to test timing of loading records into a BioSQL database. """ from __future__ import print_function import time # set up the connection from Bio import GenBank from BioSQL import BioSeqDatabase server = BioSeqDatabase.open_database(host="192.168.0.192", user="root", ...
updownlife/multipleK
dependencies/biopython-1.65/Scripts/Performance/biosql_performance_load.py
Python
gpl-2.0
1,048
[ "Biopython" ]
cf737a084ab05c8508eaf571724cd3f0facfab7dbbf4558a0a046b03a003c4ce
#! /usr/bin/env python from openturns import * from math import * TESTPREAMBLE() RandomGenerator().SetSeed(0) try : # 1D tests distribution = Dirac(0.7) print "Distribution ", distribution # Is this distribution elliptical ? print "Elliptical = ", distribution.isElliptical() # Is this distr...
dbarbier/privot
python/test/t_Dirac_std.py
Python
lgpl-3.0
5,455
[ "DIRAC" ]
3f23ac4c55e270fb44405980df30ebe031f04a9deff422ed7481c18316ad5d68
#!/usr/bin/python # Copyright 2017 SuperDARN Canada # # brian.py # 2018-01-30 # Communicate with all processes to administrate the borealis software import sys import os import zmq import time from datetime import datetime, timedelta sys.path.append(os.environ["BOREALISPATH"]) if __debug__: # TODO need to get buil...
SuperDARNCanada/placeholderOS
tools/simulators/brian_testing/brian_test.py
Python
gpl-3.0
22,607
[ "Brian" ]
93d4572f9662fc8091608b00d64e5953b4305f11a39662127035be93bbfb1179
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/coordinates/INPCRD.py
Python
gpl-2.0
2,866
[ "Amber", "MDAnalysis" ]
86bae6566cc64d65f1109ead74f960068bcf6f8136b35979d6e9154e1f401ef6
from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import # pyeq2 is a collection of equations expressed as Python classes # # Copyright (C) 2013 James R. Phillips # 2548 Vera Cruz Drive # Birmingham, AL 35235 USA # # email: zunzun@zunzun.com # ...
burkesquires/pyeq2
Models_3D/Peak.py
Python
bsd-2-clause
22,451
[ "Gaussian" ]
9a31750d027472fac1340ff952fb70f909214c7b12e135866e66b1c73c895422
#!usr/bin/env python from pyspace.planet import PlanetArray from pyevtk.hl import pointsToVTK def dump_vtk(pa, filename, base = ".", **data): """Dumps vtk output to file 'base/filename'""" if not data: data = {'v_x': pa.v_x, 'v_y': pa.v_y, 'v_z': pa.v_z} pointsToVTK(base + "/" + filename, pa.x, pa....
adityapb/pyspace
pyspace/utils.py
Python
gpl-3.0
467
[ "VTK" ]
387f5a51268ea633292cdfcc43387a4b0743caad742572dd7aec31f8f810b15f
# -*- coding: utf-8 -*- """ Created on Fri Sep 5 12:26:40 2014 :module-author: steffen :filename: config.py This module provides a highlevel layer for reading and writing config files. There must be a file called "config.ini" in the root-folder of the project. The file has to be of the following structure to be imp...
oemof/oemof_pg
src/oemof/db/config.py
Python
gpl-3.0
3,939
[ "NetCDF" ]
a7811a7df492635313b42d9a669dcb90a6b80d8759f5030c6a3a110875746c31
''' This script demonstrates how to create a periodic Gaussian process using the *gpiso* function. ''' import numpy as np import matplotlib.pyplot as plt from sympy import sin, exp, pi from rbf.basis import get_r, get_eps, RBF from rbf.gproc import gpiso np.random.seed(1) period = 5.0 cls = 0.5 # characteristic le...
treverhines/RBF
docs/scripts/gproc.e.py
Python
mit
1,343
[ "Gaussian" ]
e3cdb541351bd51e9028a1c3d85af8769ded351ac77c7ee191ce8029b37bf82a
# Graph Algorithms using basic python Constructs. # Narayana Chikkam, Dec, 22, 2015. from collections import defaultdict from heapq import * import itertools import copy from lib.unionfind import ( UnionFind ) from lib.prioritydict import ( priorityDictionary ) class Vertex: def __init__(self, id): ...
NicovincX2/Python-3.5
Algorithmique/Algorithme/Algorithme de la théorie des graphes/graph_lib.py
Python
gpl-3.0
28,701
[ "VisIt" ]
4822b175bb2b8513f862c346ea5602e8dea083b5b74bd28f8a12a90d45691663
import ocl as cam import camvtk import time import vtk import datetime if __name__ == "__main__": myscreen = camvtk.VTKScreen() myscreen.setAmbient(20,20,20) myscreen.camera.SetPosition(20, 30, 50) myscreen.camera.SetFocalPoint(5, 5, 0) stl = camvtk.STLSurf(filename="stl/demo.stl") ...
tectronics/opencamlib
scripts/kdtree_movie2.py
Python
gpl-3.0
5,564
[ "VTK" ]
302de45d11850d7f2db06a336038d76d2e0bc4fdcffb7e597d3ec6bd50eb2d9d
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
Kami/libcloud
libcloud/compute/drivers/kubevirt.py
Python
apache-2.0
51,562
[ "VisIt" ]
ac1c2d26baaac818c7aecafe76303071ac01dea299126a873e762822aeed2ffe
""" The Script class provides a simple way for users to specify an executable or file to run (and is also a simple example of a workflow module). """ import os import sys import re import stat import shlex import distutils.spawn # pylint: disable=no-name-in-module,no-member,import-error from DIRAC import gLogger...
fstagni/DIRAC
Workflow/Modules/Script.py
Python
gpl-3.0
5,035
[ "DIRAC" ]
42abbd62ab388a5c698124303a03a3c371c22b6cef772a5920b7ba804eb8ca09
# coding: utf-8 from __future__ import unicode_literals, division, print_function import unittest import random from custodian.custodian import Job, ErrorHandler, Custodian, Validator import os import glob import shutil import subprocess import yaml """ Created on Jun 1, 2012 """ __author__ = "Shyue Ping Ong" __copy...
xhqu1981/custodian
custodian/tests/test_custodian.py
Python
mit
7,328
[ "VASP" ]
60fec0c6b64e714f46d6d56e7eca141df9b549797b70a3e966684b26cd7107ac