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
import Bio import os from Bio.Seq import Seq from Bio import motifs from Bio.Alphabet import IUPAC ''' Script uses BioPython to generate position weight matrices from a directory containing Fasta files for each modules phospho-peptides. Note: Duplicate amino acid sequences should be removed from the Fasta files before...
mmacgilvray18/Phospho_Network
python/Create_PWMs_From_Module_Fasta.py
Python
gpl-3.0
1,540
[ "Biopython" ]
e564006e8a135fbc7da0b7ac2c0a8958a8bb827ee45eac0ade2cf6826890b21d
import numpy as np from scipy import ndimage from skimage.morphology import remove_small_objects from skimage.measure import regionprops from skimage.io import imread from collections import defaultdict import matplotlib.pyplot as plt from matplotlib import cm from Bio import Phylo ####################################...
qbio2014/cellTracking
src/segmentation_tools.py
Python
gpl-2.0
24,884
[ "Biopython" ]
5e8b9dfccb61261deb070ae0802bb3197b6f8d2915910a4ebddb8ef0a24e4b12
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import os import sys import unittest import mock import nikola import nikola.plugins.command.import_wordpress from .base import BaseTestCase class BasicCommandImportWordpress(BaseTestCase): def setUp(self): self.module = ...
immanetize/nikola
tests/test_command_import_wordpress.py
Python
mit
20,899
[ "VisIt" ]
bbb8a8220b1323590bb19d18833aaf66660cdfc3a907d7585309fe01e7f8771c
# Orca # Copyright (C) 2016 UrbanSim Inc. # See full license in LICENSE. import os import tempfile import pandas as pd import pandas.testing as pdt import pytest from .. import orca from ..utils.testing import assert_frames_equal def setup_function(func): orca.clear_all() orca.enable_cache() def teardown...
UDST/orca
orca/tests/test_orca.py
Python
bsd-3-clause
36,982
[ "ORCA" ]
3ff2c29c9f897b1f212679e6d53a9bef0652d8b160525c8a856ce1b895f14b74
""":mod:`news.reporters.url` --- URL reporters ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Provide a concrete URL news reporter. """ from bs4 import BeautifulSoup from extraction import Extractor from ..models.abstract import Readable from .generics import TraversingReporter from .mixins import ( BatchTraversi...
kuc2477/news
news/reporters/url.py
Python
mit
3,069
[ "VisIt" ]
502768ff20c1928b55ac2afd519540f2d72894b4abcbb3d37a34ce1fed48a841
#!/usr/bin/env python # Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com> # Copyright: (c) 2018-2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # PYTHON_ARGCOMPLETE_OK from __future__ import (absolute_import, division, print_function) __met...
jborean93/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
81,162
[ "Galaxy" ]
31969a935bf228adf0fe2b7f01b9c9b7c06ab4dc1cfab8f1a2bd48a9f768bf40
#!/usr/bin/env python from __future__ import print_function import argparse import glob import sys import numpy as np import pysam MISSING_QUAL_CHAR = '"' # got from calling 'samtools bam2fq' on bam w/o qualities def parse_args(): parser = argparse.ArgumentParser("Produce FASTQ file from soft-clipped reads") ...
benedictpaten/marginPhase
toil/src/toil_marginphase/scripts/fastq_from_bam.py
Python
mit
1,808
[ "pysam" ]
1b4b01e861358be196aaa4a193286b6332318f0f4fea5bed02662c417fe3e587
#!/usr/bin/env python # coding: utf-8 from __future__ import absolute_import """ """ from puliclient.server.renderNodeHandler import RenderNodeHandler from octopus.core import enums rnHandler = RenderNodeHandler() (allRnList, summary) = rnHandler.getAllRenderNodes() print "All render nodes" if allRnList: for rn...
mikrosimage/OpenRenderManagement
scripts/examples/request-edit/01_request_rendernodes.py
Python
bsd-3-clause
1,206
[ "Octopus" ]
266c152f2b2988e857813fe5feffa84ea98dd81414e8ceb18b7eb0dfe31eb724
""" Tests the forum notification views. """ import json import logging from datetime import datetime import ddt import pytest import six from django.http import Http404 from django.test.client import Client, RequestFactory from django.test.utils import override_settings from django.urls import reverse from django.ut...
msegado/edx-platform
lms/djangoapps/discussion/tests/test_views.py
Python
agpl-3.0
91,039
[ "VisIt" ]
fbe6c8c31e6cc820823ec97fe222e2ed74f8b86e545ee6b47a03816f72e0068f
from resp_base import Obligation, Deadline, ResourceDelta, ResponsibilityEffect, Act, mean, BullshitAgent from resp_base import CourseworkWorkflow, IncompetentCourseworkWorkflow, HedonisticAgent, StudiousAgent, Lecturer from theatre_ag.theatre_ag import SynchronizingClock import matplotlib.pyplot as plt from random imp...
probablytom/msci-model
tests/test_new_behaviour_graphs.py
Python
mit
7,344
[ "VisIt" ]
a553a603cbaf30bb51cd9a17f5a0f580ac81a23aebbfb70ebde7e50fd431d92e
import random import numpy as np from operator import itemgetter from ase.ga.offspring_creator import OffspringCreator from ase.ga.utilities import get_distance_matrix, get_nndist from ase import Atoms class Mutation(OffspringCreator): """Base class for all particle mutation type operators. Do not call this ...
suttond/MODOI
ase/ga/particle_mutations.py
Python
lgpl-3.0
18,411
[ "ASE" ]
3598272a38d948016f7d781f81e98e6a38759df7ac32c290ddd701fe17c1385d
#!/usr/bin/env python # Standard packages import os import sys import argparse # Third-party packages from toil.job import Job # Package methods from ddb import configuration from ddb_ngsflow import gatk from ddb_ngsflow import annotation from ddb_ngsflow import pipeline from ddb_ngsflow.align import bwa from ddb_ng...
dgaston/ddb-scripts
workflow-somatic_amplicon_nofreebayes_pindel.py
Python
mit
9,674
[ "BWA" ]
acac01ddb6e15661ca0d27bd350e62d112fae2518ccfed486ff3b21decf26cfd
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views from w...
Eraldo/eraldoenergy
config/urls.py
Python
bsd-3-clause
2,433
[ "VisIt" ]
ac9b91b1dce86176065cbcd58c3dc4716476f1b922af91f71b59ef4398ef10a9
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## 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 Foundati...
tiagocardosos/stoq
stoqlib/gui/test/test_sellablesearch.py
Python
gpl-2.0
4,990
[ "VisIt" ]
2a150cc53f59930b080d0033c8baffe4e3479dec5e4c2cdf0636d8a33f1cf7ce
import codecs import inspect import json import logging import math import pickle import os.path import numpy as np from . import objects from . import connections from . import simulator logger = logging.getLogger(__name__) class Model(object): """A model contains a single network and the ability to run sim...
jaberg/nengo
nengo/model.py
Python
mit
29,418
[ "NEURON" ]
ae5c41fb6179f14a75538171cfdd8c5a10e8fc6f54849bcb9131ce08fe738947
#!/usr/bin/env python # File created on 13 Jul 2012 from __future__ import division __author__ = "Greg Caporaso" __copyright__ = "Copyright 2011, The QIIME project" __credits__ = ["Greg Caporaso"] __license__ = "GPL" __version__ = "1.8.0-dev" __maintainer__ = "Greg Caporaso" __email__ = "gregcaporaso@gmail.com" from ...
wasade/qiime
qiime/map_reads_to_reference.py
Python
gpl-2.0
14,828
[ "BWA" ]
afedb6d2b51f9ec053ec44cd0a25d567e650d87a5ab5a63d03ec85bb840dc6dd
# -*- coding: utf-8 -*- import numpy as np from shapely.geometry.polygon import Polygon import datetime import netCDF4 as nc import itertools import geojson from shapely.ops import cascaded_union #from openclimategis.util.helpers import get_temp_path #from openclimategis.util.toshp import OpenClimateShp from shapely.ge...
OpenSource-/OpenClimateGIS
src/openclimategis/util/ncconv/OLD_ncconv/in_memory_oo_multi_core.py
Python
bsd-3-clause
48,807
[ "NetCDF" ]
def69ee51aa85b63d439d8c150a32862969e482a7eb0407a11ea7bb4238fb02c
#!/usr/bin/env python3 # coding: utf-8 from __future__ import unicode_literals import os import re import molbiox import molbiox.kb import molbiox.lib from molbiox.settings import all_templates mbx_root = os.path.dirname(molbiox.__file__) def locate_template(tplname, new=False): """ Locate a template by na...
frozflame/molbiox
molbiox/frame/locate.py
Python
gpl-2.0
1,801
[ "BLAST" ]
d295f70865c4f794ff89eb6683fb543dc453d60d18568d2d022f2c508529141f
#-*- coding: iso-8859-15 -*- # SADR METEOLLSKY # http://www.sadr.fr # SEBASTIEN LECLERC 2017 # Inspired by : # NACHO MAS 2013 # http://induino.wordpress.com # Config file ##### INDI RELATED ##### #To start indiserver use 'localhost' #otherwise not start and connect remote #indiserver #INDISERVER="localhost" INDISERVE...
broadcastyourseb/SADR
raspberry/allskySCRIPT/meteollskyconfig.py
Python
apache-2.0
1,549
[ "VisIt" ]
a07912dbdcf7e40b5c95a17d69b68cab3e2d1242465f9369aba214c204a4e05b
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, cosh, sinc, hyperexpand, exp, simplify, sqrt, pi, erf, erfc, sin, cos, exp_polar, polygamma, hyper, log, expand_func, Rational) from sympy.integrals.meijerint import (_rewrite_single, _rewrite1, meijerint_ind...
kaushik94/sympy
sympy/integrals/tests/test_meijerint.py
Python
bsd-3-clause
30,251
[ "Gaussian" ]
633c90c87d2dfd813230c53ceb72f5659224eafb914b539d8fde804e1a6f49b9
#!/usr/bin/env python """ Copyright (c) 2006-2017 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import binascii import cookielib import glob import inspect import logging import httplib import os import random import re import socket import string import sys import tempf...
zhinaonet/sqlmap-z
lib/core/option.py
Python
gpl-3.0
93,578
[ "VisIt" ]
5fc9d8ac2ad24331ec712e04884de0b684c2ea2ae81b586cef2d9466f64cccd9
""" Inference model with Gaussian process for sampling isoform proportions. """ import numpy as np def erf(x): """error function approximation, with maximum error 1.5e-7. """ # save the sign of x if x >= 0: sign = 1 else: sign = -1 x = abs(x) # constants a1 = 0.254829592 a2 = -0.2...
huangyh09/diceseq
diceseq/models/model_GP.py
Python
apache-2.0
13,423
[ "Gaussian" ]
60faa053924527989091a0f52971df4b6487274708c9f7557b9e4f8662f97b53
""" Augmenters that apply affine transformations or other similar augmentations. Do not import directly from this file, as the categorization is not final. Use instead `from imgaug import augmenters as iaa` and then e.g. :: seq = iaa.Sequential([ iaa.Affine(...), iaa.PerspectiveTransform(...) ...
nektor211/imgaug
imgaug/augmenters/geometric.py
Python
mit
60,930
[ "Gaussian" ]
52b4106ccf356e7ba001d4d2892b707e8f8c514905fecaf824ba6e0cc7bf074a
''' __author__ = 'Brian Chow' __date__ = '2013-07-29' 4 degree and rare event feature engineering, fit to logistic regression model ''' from numpy import array, hstack from sklearn import linear_model from scipy import sparse, stats from kaggle import * import numpy as np import pandas as pd SEED = 42 ...
bachow/kaggle-amazon-contest
cutoffs.py
Python
mit
5,055
[ "Brian" ]
acfca9c0ab8e3b8b54b07874db80ad508b665a3064612332522ceb9d1a983850
""" ====================================== Sparse inverse covariance estimation ====================================== Using the GraphicalLasso estimator to learn a covariance and sparse precision from a small number of samples. To estimate a probabilistic model (e.g. a Gaussian model), estimating the precision matri...
manhhomienbienthuy/scikit-learn
examples/covariance/plot_sparse_cov.py
Python
bsd-3-clause
5,149
[ "Gaussian" ]
4c2f7c00691ad663733a591fb48cbff40b1a9c0f9e6b32473bf6b459cfdc9fcf
# Copyright 2017 Andrey Sobolev, Tilde Materials Informatics (Berlin) # This file is a part of quantum_esperanto project. The project is licensed under the MIT license. # See the LICENSE file in the project root for license terms. from setuptools import setup, Extension from quantum_esperanto import __version__ # ch...
tilde-lab/DFTXMLParser
setup.py
Python
mit
2,067
[ "VASP" ]
47948053db39853cb61bbf0afc022cc85286b576e6cc3dd223a1e6ec220478d9
########################################################### # Demo WPS service for testing and debugging. # # See the werkzeug documentation on how to use the debugger: # http://werkzeug.pocoo.org/docs/0.12/debug/ ########################################################### import os import psutil import click from jin...
bird-house/flyingpigeon
flyingpigeon/cli.py
Python
apache-2.0
6,165
[ "VisIt" ]
7404a0899c464a638f8984a70cd1c0b31290ad7da2f7841f169de2e787d35618
#!/usr/bin/python import computefarm as cf from computefarm.farm import depth_first, breadth_first import random import logging import numpy as np HOUR = 60 * 60 default_queue_properties = { 'grid': { 'num': 0, 'mem': 750, 'avg': HOUR, 'std': 0.6 * HOUR}, 'prod': { 'num': 0, 'avg': 8 * HOUR, 'std...
fubarwrangler/atlassim
simulation.py
Python
gpl-2.0
6,264
[ "Gaussian" ]
4945da02f5956d923e33e9203a93a635eea72da8aa4adc950a506e4e64214aa4
from __future__ import print_function, division INPUT_LAYERS = ['Data', 'ImageData', 'Input'] # Layers that only support elwise ELWISE_LAYERS = ['Deconvolution'] # Layers that support parameters PARAMETER_LAYERS = ['Convolution', 'InnerProduct']+ELWISE_LAYERS # All supported layers SUPPORTED_LAYERS = ['ReLU', 'Sigmoid...
philkr/magic_init
magic_init.py
Python
bsd-2-clause
17,395
[ "Gaussian" ]
e675c6ca91ec19690804270e2c5c7d5272747719c62b66004fbca1d46b32c569
# Merge active and previous version's generated next major version candidate # shadow. This involve simultaneously traversing both FileDescriptorProtos and: # 1. Recovering hidden_envoy_depreacted_* fields and enum values in active proto. # 2. Recovering deprecated (sub)message types. # 3. Misc. fixups for oneof metada...
lizan/envoy
tools/protoxform/merge_active_shadow.py
Python
apache-2.0
10,444
[ "VisIt" ]
b711c4f88628dd4286844fd0b1b84b4f07034ee81aaa74828eb49798110f4667
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap 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....
brianmay/python-tldap
docs/settings.py
Python
gpl-3.0
828
[ "Brian" ]
513d8142f2d22ab3a6fc0df484710b0b0d96b28c64406391d0ec4a0e59fe11e6
#!/usr/bin/env python # Copyright 2015 The Kubernetes 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 appli...
girishkalele/test-infra
verify/verify-boilerplate.py
Python
apache-2.0
5,549
[ "VisIt" ]
63423875b8eafdec0d4061304dc5a5ef3e9e28e8cfef26afc70652d19f087a12
import numpy as np from ase.atoms import Atom, Atoms from ase.calculators.singlepoint import SinglePointDFTCalculator from ase.calculators.singlepoint import SinglePointKPoint def read_gpaw_text(fileobj, index=-1): if isinstance(fileobj, str): fileobj = open(fileobj, 'rU') notfound = [] def inde...
grhawk/ASE
tools/ase/io/gpawtext.py
Python
gpl-2.0
6,114
[ "ASE", "GPAW" ]
6c8454043c3e2574faa6ec097aaf2456f51d02d0db1337f6eff625f7d3d8cbaa
# -*- coding: utf-8 -*- """This module tests various ways how to set up the provisioning using the provisioning dialog.""" from datetime import datetime, timedelta import fauxfactory import pytest import re from widgetastic.utils import partial_match from cfme import test_requirements from cfme.base.login import Base...
quarckster/cfme_tests
cfme/tests/infrastructure/test_provisioning_dialog.py
Python
gpl-2.0
11,178
[ "VisIt" ]
d7ae754cd3577758b25ef3f4887795284e40f671da4d470bf601e7b247ada866
# Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.SearchIO parser for BLAST+ tab output format, with or without comments.""" import ...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/SearchIO/BlastIO/blast_tab.py
Python
gpl-2.0
33,684
[ "BLAST", "Biopython" ]
ee0a236d39182344f2bf5280d5b38bc1ec5134abd23e2f7928bf86be1e282871
from itertools import chain, islice from visitor import Visitor from expr import ExpresionOut from stmt import StatementOut from op import OperatorOut from slice import SliceOut class ExcepthandlerOut(Visitor): @classmethod def visit_ExceptHandler(self, ast, *a, **k): type = (ExpresionOut.visit(ast.type, *a, *...
Neppord/py2py
py2py_lib/out/__init__.py
Python
mit
858
[ "VisIt" ]
ef2771f4b23416be29f2ae1c4595a9c170a1a640b5b7fa0b050b0b07c220e52d
# -*- coding: utf-8 -*- """ Acceptance tests for studio related to the outline page. """ import itertools import json from datetime import datetime, timedelta from unittest import skip from pytz import UTC from base_studio_test import StudioCourseTest from common.test.acceptance.fixtures.config import ConfigModelFixt...
jolyonb/edx-platform
common/test/acceptance/tests/studio/test_studio_outline.py
Python
agpl-3.0
87,380
[ "VisIt" ]
ead79505df725d3f9686e36b62e254bf0939b00c72971d57c37ef7a8193044db
import os import numpy as np from ase import Atom, Atoms from ase.structure import bulk from ase.units import Hartree, Bohr from gpaw import GPAW, FermiDirac from gpaw.response.bse import BSE from ase.dft import monkhorst_pack from gpaw.mpi import rank GS = 1 bse = 1 check = 1 if GS: kpts = (4,4,4) a = 5.43...
ajylee/gpaw-rtxs
gpaw/test/bse_silicon.py
Python
gpl-3.0
1,554
[ "ASE", "GPAW" ]
48a6e78bd14bfbeb56e2b9f5449715166b7696c655ab6aefa234ca2b56d5593c
# # # Copyright (C) 2001-2005 Ichiro Fujinaga, Michael Droettboom, and Karl MacMillan # # 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 (at your option) any...
DDMAL/Gamera
gamera/plugins/convolution.py
Python
gpl-2.0
16,256
[ "Gaussian" ]
d3b41b37a1210a9bf553941b146265f6a9935115854bffa640d828f9dcebe08e
#pylint: disable=C0111 #pylint: disable=W0621 # Disable the "wildcard import" warning so we can bring in all methods from # course helpers and ui helpers #pylint: disable=W0401 # Disable the "Unused import %s from wildcard import" warning #pylint: disable=W0614 # Disable the "unused argument" warning because lettuce...
pelikanchik/edx-platform
common/djangoapps/terrain/steps.py
Python
agpl-3.0
6,704
[ "VisIt" ]
6b6b8a30716592b3bf6f3f3a860d9bd5907127049bb645f0e98eb4a6fd464861
""" CloudEndpoint is a base class for the clients used to connect to different cloud providers """ import os import ssl import time from libcloud import security from libcloud.compute.types import Provider from libcloud.compute.providers import get_driver from libcloud.common.exceptions import BaseHTTPError # ...
DIRACGrid/DIRAC
src/DIRAC/Resources/Cloud/CloudEndpoint.py
Python
gpl-3.0
18,088
[ "DIRAC" ]
7bcdb0d4e7f270a7be03b329caf78063347e0d275296e1f962d4cb2801050d68
__author__ = 'Daan Wierstra and Tom Schaul' from itertools import chain from scipy import zeros from pybrain.structure.networks.feedforward import FeedForwardNetwork from pybrain.structure.networks.recurrent import RecurrentNetwork from pybrain.structure.modules.neuronlayer import NeuronLayer from pybrain.structure....
Ryanglambert/pybrain
pybrain/structure/networks/neurondecomposable.py
Python
bsd-3-clause
4,341
[ "NEURON" ]
adbd4a70f33da7a9753355fa0c9018ec0ba6a73c18af1e3a4f831c14b9b9e809
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi4/psi4
psi4/driver/diatomic.py
Python
lgpl-3.0
11,346
[ "Psi4" ]
fdf6072018ea616ab13276b9feff55310bd684c2a7016a82fb6bc2edeebc1f28
#! /usr/bin/env python # ========================================================================== # This scripts performs unit tests for the csmodelsois tool. # # Copyright (C) 2017-2020 Josh Cardenzana # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
ctools/ctools
test/test_csmodelsois.py
Python
gpl-3.0
8,410
[ "Gaussian" ]
d110ccf521516698e70a5c4a8731b5db84adfd941014a50495b6b0214d11de8d
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Methods for selecting the bin width of histograms Ported from the astroML project: http://astroml.org/ """ import numpy as np from . import bayesian_blocks __all__ = ['histogram', 'scott_bin_width', 'freedman_bin_width', 'knuth_bin_width...
MSeifert04/astropy
astropy/stats/histogram.py
Python
bsd-3-clause
12,617
[ "Gaussian" ]
efd01eb34d6bcab87872359642cd345141795ea76b6d037aad8885f1e86d4a60
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforgecontrib/tags/__init__.py
Python
bsd-2-clause
3,265
[ "NEURON" ]
fade114507d2f44f96c84918bd102ec984782fb1e64a11e12a7ddfad06c0a359
# Copyright 2008-2014 Nokia Solutions and Networks # # 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 l...
eric-stanley/robotframework
src/robot/model/visitor.py
Python
apache-2.0
1,995
[ "VisIt" ]
793a28e3cf8a3de4fb67499d3a63c4f3a0e8e0bb8c731b9933aafd40d3f3f1da
def load_parameters(): """ Loads the defined hyperparameters :return parameters: Dictionary of loaded parameters """ # Input data params TASK_NAME = 'infreq' #out-domain' # Task name DATASET_NAME = '10' # Dataset name SRC_LAN = 'en' ...
Sasanita/nmt-keras
config.py
Python
mit
17,209
[ "Gaussian" ]
50945715e80ee3b44879b3d1295267085f1cdd3deeea44f3bae8a235ef11b615
from __future__ import print_function, division import unittest, numpy as np from pyscf import gto, scf from pyscf.nao import gw class KnowValues(unittest.TestCase): def test_gw_h2_ae_spin_rf0_speed(self): """ This is GW """ mol = gto.M( verbose = 1, atom = '''H 0 0 0; H 0 0 0.5; H 0 0 1.0; H 0 0 1....
gkc1000/pyscf
pyscf/nao/test/test_0064_gw_h_chain.py
Python
apache-2.0
972
[ "PySCF" ]
e1cfc749c3fa4f32a9eeefb9b4241ca4b12270e3421b254e3064dfb6ec4a171b
""" Course Outline page in Studio. """ import datetime from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise from selenium.webdriver import ActionChains from selenium.webdriver.support.ui import Select from selenium.webdriver.common.keys import Keys from common.test.acceptance.pages.c...
longmen21/edx-platform
common/test/acceptance/pages/studio/overview.py
Python
agpl-3.0
38,374
[ "VisIt" ]
79c99b93a86024f8b2631464b7101baf1461486cba09c315cdb923234bf39658
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jH0ward/psi4
psi4/driver/procrouting/dft_funcs/__init__.py
Python
lgpl-3.0
940
[ "Psi4" ]
84908789daef5de80d3e1424dc09a07e6a1ea005a0ab7fb87bc5aa995d5a4dcd
''' ------------------------------------- ''' ''' Plot DTW for joint angles ''' for i_key,key in enumerate(skels_subactivity_angles): figure(key) print "{} iterations of {}".format(len(skels_subactivity_angles[key]), key) for i_iter in range(len(skels_subactivity_angles[key])): print 'iter', i_iter for i,ang ...
colincsl/pyKinectTools
pyKinectTools/dataset_readers/CAD_Repr.py
Python
bsd-2-clause
12,563
[ "Gaussian" ]
8de62bb299e318af731b92343367436ca805acaadb1e9e065ac3baa35a0653cc
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2013 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Softw...
andrebellafronte/stoq
stoqlib/gui/editors/sellableeditor.py
Python
gpl-2.0
22,084
[ "VisIt" ]
c16912036f160f264603ca234ed5d80814e279404284046a97b58cfe02098dac
######################################################################## # File: File.py # Date: 2012/08/03 15:02:53 ######################################################################## """ :mod: File .. module: File :synopsis: RMS operation file operation file """ from __future__ import absolute_import from __...
yujikato/DIRAC
src/DIRAC/RequestManagementSystem/Client/File.py
Python
gpl-3.0
5,634
[ "DIRAC" ]
aea55f9ac843c2ec4e2955e0cfd267f985276e2a6bc0c6ebb1e63db0fd23f0ca
import tensorflow as tf import matplotlib.pyplot as plt from random import uniform import numpy as np ## Placeholders for x and y variables x = tf.placeholder("float", None) y = tf.placeholder("float", None) ## Output = (x^3)*(y^2) - 7(x^2)*y + x - 12 output = (x ** 3) * (y ** 2) - 7 * (x **2) * y + x - 12 ## Number...
mewturn/Python
50.021 Artificial Intelligence/tensorFDPractice.py
Python
mit
1,380
[ "Gaussian" ]
80c5c0d5a51a1e7505585e415d642ca250f30084a0250b378e1723bed798ae90
# coding: utf-8 from __future__ import unicode_literals, division, print_function import unittest from pymatgen.io.abinitio.launcher import ScriptEditor class ScriptEditorTest(unittest.TestCase): def test_base(self): "base test" se = ScriptEditor() se.shebang() se.declare_var("F...
Dioptas/pymatgen
pymatgen/io/abinitio/tests/test_launcher.py
Python
mit
578
[ "pymatgen" ]
703bd6c6c173b2c740a0de87c636cceac71893cfc40a3821e1bdf6c12d3aeea3
import typing import symtab def signature(ret_type, param_types): def inside_decorator(function): function._ret_type = ret_type function._param_types = param_types return function return inside_decorator @signature(typing.Pointer(typing.Int8), [typing.Int32, typing.Int32]) def Placed...
Jokymon/hpcs
hpcs_builtins.py
Python
gpl-3.0
968
[ "VisIt" ]
93c913a4905615097509edca10eebea80aeaf80379ad7efca85d786351606dd7
# Copyright (c) 2012 OpenStack Foundation # 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 ...
yatinkumbhare/openstack-nova
nova/tests/unit/compute/test_resource_tracker.py
Python
apache-2.0
61,016
[ "exciting" ]
dc6a22b3fdbf9fc6204cb93e163e24123358165f0955d37806d58d984ec26ebb
# -*- coding: utf-8 -*- from gettext import gettext as _ NAME = _('North America') STATES = [ (_('United States'), 254, 388, 540, 0), (_('Canada'), 253, 320, 283, 0), (_('Alaska'), 252, 133, 144, 0), (_('México'), 251, 398, 791, 0), (_('Cuba'), 250, 681, 728, 0), (_('Guatemala'), 249, 554, 84...
AlanJAS/iknowAmerica
recursos/0adelnorte/datos/0adelnorte.py
Python
gpl-3.0
6,543
[ "COLUMBUS" ]
e39c5c94396e5f38c53f96e38c087d6141b549b435ba45a8cfbe6eb125d06d46
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CueProc setup. Copyright (c) 2006-2008 by Nyaochi 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 (at y...
rinrinne/cueproc-alternative
src/setup.py
Python
gpl-2.0
1,590
[ "VisIt" ]
216a3212c3546f6b49b19337b642a5775c4ce0e085eb863e421592e4ce2bca64
#!/usr/bin/env python import MySQLdb as mysql import velvet_assembler_notrimmer import velvet_optimize import abyss_assembler import clc_assembler import wgs_assembler import supersembler import spades_assembler #import masurca_assembler import mira_assembler import worst_assembler #import idba_assembler import mix...
crashfrog/Dispatch
assembly_dispatch.py
Python
unlicense
13,877
[ "Bowtie" ]
4814b3c0c23ff553a63013b96c24f7bc0754fdb1c43e1241434b87550787f086
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import re import warnings from operator import itemgetter from six import string_types from tabulate import tabulate from monty.io import zopen from monty.jso...
aykol/pymatgen
pymatgen/io/feff/inputs.py
Python
mit
30,411
[ "FEFF", "pymatgen" ]
58bc906aba8d2087f13feb54df54c9bd4a381e3e343d1127df2fa493bc4eea22
""" Storage Factory Class - creates instances of various Storage plugins from the Core DIRAC or extensions This Class has three public methods: getStorageName(): Resolves links in the CS to the target SE name. getStorage(): This creates a single storage stub based on the parameters passed in a dict...
vmendez/DIRAC
Resources/Storage/StorageFactory.py
Python
gpl-3.0
14,518
[ "DIRAC" ]
3718f4b80c077d2b71bcd49e7d4069cece10f57fe6404fb2e3e6515610d8a05a
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage 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...
brianmay/karaage
karaage/institutes/models.py
Python
gpl-3.0
5,691
[ "Brian" ]
2b5cdef5e2e584e7876c78543763e8341bf859df3435164bd74e357bb57a2636
import deepchem as dc import numpy as np import tensorflow as tf import unittest from deepchem.models.tensorgraph import layers from flaky import flaky def generate_batch(batch_size): """Draw training data from a Gaussian distribution, where the mean is a conditional input.""" means = 10 * np.random.random([batc...
ktaneishi/deepchem
deepchem/models/tensorgraph/tests/test_gan.py
Python
mit
3,900
[ "Gaussian" ]
16cf5084cb866a887e4384604d0c08afd3866dffbe4cb0ac2212d286cfc89567
# -*- coding: iso-8859-1 -*- # Copyright (C) 2007-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any la...
FedoraScientific/salome-paravis
src/Plugins/MEDReader/Test/testMEDReader8.py
Python
lgpl-2.1
4,484
[ "ParaView" ]
e8e8681cec027aae843ec54cd816527eff9853c4b5b24490bc537eb7f6ba941c
from pygraph.classes.digraph import digraph from pygraph.algorithms.searching import depth_first_search import sys import re RHETORICAL_RELATIONS = [ "continuation", "narration", "result", "contrast", "parallel", "precondition", "consequence", "conditional", "alternation", "back...
Remper/learningbyreading
src/unboxer/drg.py
Python
gpl-2.0
5,123
[ "VisIt" ]
33534cb04dfbdbc616c1cd2c641aadd7ddf66fddac4c8fb6675587b22e64bc8e
#! /usr/bin/env python3 # -*- coding: UTF-8 -*- """ Data literal storing emoji names and unicode code points Copy of https://github.com/carpedm20/emoji/blob/master/emoji/unicode_codes.py Attributes: EMOJI_ALIAS_UNICODE (dict): Emoji alias to unicode mapping EMOJI_UNICODE (dict): Emoji name to unicode mapping...
janesolomon/twitter_search
twitter_search/unicode_codes.py
Python
mit
306,254
[ "FLEUR", "Octopus" ]
7ed3d005c905f8e4258ffe4269f5809848ab12170254c6a32a0c019dbaee47ea
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. UA_TYPE_MAPPING = { 'desktop': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) ' 'AppleWebKit/535.19 (KHTML, like Gecko) ' 'Chrome/18...
leighpauls/k2cro4
tools/telemetry/telemetry/user_agent.py
Python
bsd-3-clause
1,023
[ "Galaxy" ]
f171f32ce641e46be86834fa418b882510c0d0584139c5123ce77cb1400e51e1
# -*- coding: utf-8 -*- # # test_connect_array_fixed_outdegree.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versi...
hakonsbm/nest-simulator
pynest/nest/tests/test_connect_array_fixed_outdegree.py
Python
gpl-2.0
3,336
[ "NEURON" ]
f97d311440df882d3d68030b886946530606fcb49fe686505076d40d1b096e57
# -*- coding: utf-8 -*- import moose print( 'Using moose from %s. VERSION=%s' % (moose.__file__, moose.__version__) ) import numpy as np import chan_proto import param_chan t_stop = 10 dend_diameter = 2.2627398e-6 dend_length = 1.131369936e-6 Cm = 4.021231698e-12 Rm = 1865100032 Em = -0.07100000232 Vm_0 = -0.0705 dt...
BhallaLab/moose
moose-core/tests/python/test_difshells.py
Python
gpl-3.0
6,706
[ "MOOSE" ]
a24d7fbfb7280e339a233e0396e00ec31a04d72e6c1d5894cf86f2f178b0803c
#!/usr/bin/env python import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() readme = open('README.rst').read() doclink = """ Documentation ------------- The full...
tripiti/beammaster
setup.py
Python
mit
1,486
[ "Gaussian" ]
be8b7172c4529d3b8ad8d110cc8c3beb18d9b2f0b0957f3930658d1fd2c86343
try: from collections.abc import Iterable except ImportError: from collections import Iterable import numpy as np from menpo.base import MenpoMissingDependencyError class Menpo3dMissingError(MenpoMissingDependencyError): r""" Exception that is thrown when an attempt is made to import a 3D visuali...
patricksnape/menpo
menpo/visualize/base.py
Python
bsd-3-clause
57,597
[ "Gaussian" ]
442ad4f1c04e661dd209dc74aa78fbdc49b0e9047c42fcabca51658a77856c3f
from pylab import * from math import exp, sqrt from utils import * # This module contains implementations of gaussian and bilateral kernels, # as well as generic filtering functions # The implementations work for d-dimensional grayscale images. # applies a gaussian filter with standard deviation sigma to image im. # ...
facundoq/ipim
tp1/py/filters.py
Python
gpl-3.0
4,987
[ "Gaussian" ]
1e0487104d19995e1c16c41c616209c709b772ccfa5b86c7fb7e563009db3701
from Classes import * from Buttons import * from Fuctions import * ALL_DEVICES_LIST = [] ZONECONTROLLER_LIST = [] class DEVICE: def Image(self,image): self.image = image ALL_DEVICES_LIST.append(image) def GetImage(self): return self.image def ItsButton(self): itsbutton = s...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/elan/__OLD_SCRIPTS/Devices.py
Python
gpl-3.0
67,734
[ "Elk" ]
8b22c8b8be3697d73602877e955a1749d736229c3964aae35716c663b6ccb12e
""" LineGraph represents line graphs both simple and stacked. It includes also cumulative graph functionality. The DIRAC Graphs package is derived from the GraphTool plotting package of the CMS/Phedex Project by ... <to be added> """ from __future__ import absolute_import from __future__ import division fr...
yujikato/DIRAC
src/DIRAC/Core/Utilities/Graphs/LineGraph.py
Python
gpl-3.0
4,298
[ "DIRAC" ]
5b31a2f8d250341db9828c543ac181131986650fb853fe768b9022da1c219dba
# -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*- # vim: set tabstop=8 shiftwidth=4 softtabstop=4 expandtab: """Models used by ncharts django web app. 2014 Copyright University Corporation for Atmospheric Research This file is part of the "django-ncharts" package. The license and distribut...
nguyenduchien1994/django-ncharts
ncharts/models.py
Python
bsd-2-clause
23,771
[ "NetCDF" ]
f2c32db1ad51fbae0c0266e02ee15c04f7ecbce7a139c5787fa3e963fe2cb441
# # 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...
jdegraaf/espresso
testsuite/python/ewald_gpu.py
Python
gpl-3.0
2,129
[ "ESPResSo" ]
4bee92ad729d9778411a549acd51fb76f2e5d2f38bdd451966db932cd9a11d77
# -*- coding: utf-8 -*- # This file is part of QuTiP: Quantum Toolbox in Python. # # Copyright (c) 2014 and later, Alexander J G Pitchford # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # ...
anubhavvardhan/qutip
qutip/tests/test_control_pulseoptim.py
Python
bsd-3-clause
38,320
[ "Gaussian" ]
f1466548d1f1e3777af90d148ee003b449657302ae9c3cfb504e8e5dcfb1e2ca
############################################################################## # 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...
mfherbst/spack
var/spack/repos/builtin/packages/nek5000/package.py
Python
lgpl-2.1
11,092
[ "VisIt" ]
3b45a2007ffbf0bc50801968be9d0374b661c3dfe045d974a7a53b86c908f8e5
# et.po val = {"" : "Project-Id-Version: sheltermanager\nReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\nPOT-Creation-Date: 2013-01-24 10:55+0000\nPO-Revision-Date: 2010-08-23 10:57+0000\nLast-Translator: lyyser <Unknown>\nLanguage-Team: Estonian <et@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8...
aubzen/sheltermanager
src/locale/locale_et.py
Python
gpl-3.0
90,001
[ "Amber", "VisIt" ]
b5911bd8ae96fd0bbf42377914d94f1a74e26b31523a030a36b90c3c92d350c4
"""Processing of implementation manifests. A manifest is a string representing a directory tree, with the property that two trees will generate identical manifest strings if and only if: - They have extactly the same set of files, directories and symlinks. - For each pair of corresponding directories in the two se...
dabrahams/zeroinstall
zeroinstall/zerostore/manifest.py
Python
lgpl-2.1
18,586
[ "VisIt" ]
beb67ff9acf394dbaf0138cff304e0865ce7e07e1dfac0ddddba63b6606d1b63
from __future__ import print_function, division from sympy.core.add import Add from sympy.core.compatibility import as_int, is_sequence, range from sympy.core.exprtools import factor_terms from sympy.core.function import _mexpand from sympy.core.mul import Mul from sympy.core.numbers import Rational from sympy.core.nu...
NikNitro/Python-iBeacon-Scan
sympy/solvers/diophantine.py
Python
gpl-3.0
98,058
[ "Gaussian" ]
f712424347cf982406ab6a29006de2920e658837f99abd5ccf48bf3b4ac2c4bc
## INFO ######################################################################## ## ## ## pypp ## ## ==== ...
petervaro/pypp
pypp.py
Python
gpl-3.0
6,571
[ "VisIt" ]
a9a1d16acce2e0e9ae3cbd552ef8e623194c7e8c54f9b04ea300474efba3d5c8
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2008 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software F...
andrebellafronte/stoq
stoqlib/gui/editors/purchaseeditor.py
Python
gpl-2.0
6,195
[ "VisIt" ]
682ddaded32e5218eadd9985ced91e10e1d0c2e446be92d488d7fdd4857f5b31
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os import numpy as np #------------------------------ def setrun(claw_pkg='amrclaw'): #------------------------------ ""...
clawpack/adjoint
paper2_examples/acoustics_2d_ex4/adjoint/setrun.py
Python
bsd-2-clause
11,357
[ "NetCDF" ]
d5d5849e53f24e9fb67a0c255c5f18a9ede9b8acc8bf85ed171b3173f5d23ec4
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # Copyright (C) 2008 Evan Martin <martine@danga.com> """A git-command for integrating reviews on Rietveld.""" from distutils.vers...
smikes/depot_tools
git_cl.py
Python
bsd-3-clause
94,998
[ "VisIt" ]
122f6102eef0cd2c8a28211dc75eeda7abba381c819d344dc5e98da32c21b9d9
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # __init__ - [insert a few words of module description on this line] # Copyright (C) 2003-2011 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 o...
heromod/migrid
mig/grsfs-fuse/fs/core/__init__.py
Python
gpl-2.0
988
[ "Brian" ]
bac3396f3c51561e70d0c633b401016bba02e6c86175ab39b6cb36c02289d67f
from lettuce import step, world from lettuce.django import django_url from nose.tools import assert_equal from splinter.exceptions import ElementDoesNotExist from django.contrib.auth.models import User from storybase_user.models import Organization from storybase_user.utils import format_user_name @step(u'Given an adm...
denverfoundation/storybase
apps/storybase_user/features/organization-steps.py
Python
mit
9,242
[ "VisIt" ]
49d3d59a1dab94c1a317a546ad9deb40790710d55b76ca90def70e62a3769718
import sys import ast import pprint from numba import error def iter_fields(node): """ Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields`` that is present on *node*. """ for field in node._fields: try: yield field, getattr(node, field) except Attr...
shiquanwang/numba
numba/astsix.py
Python
bsd-2-clause
3,391
[ "VisIt" ]
42f7c345ab1da7d20b662758c203f28e4d5b8b210495fd09ffaa69eb530b3eb9
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
fedepad/espressopp
src/io/DumpGROAdress.py
Python
gpl-3.0
4,356
[ "ESPResSo" ]
a8822513f181d8f99185ecb798251a1092681c3feef2abbfc166864f4425279e
#!/usr/bin/env python # # $Id$ # --------------------------------------------------------------------------- """ Calculate a cryptohash on a file or standard input. Usage: **digest** *algorithm* [file] ... The *digest* utility calculates message digests of files or, if no file is specified, standard input. The ...
bmc/digest
digest/__init__.py
Python
bsd-3-clause
3,604
[ "Brian" ]
d6e37cd02622ab2b747fb35a9ebaa67f9565e7e7506578efc54c91fe447453bb
#!/usr/bin/env python3 #Inne Lemstra and Michiel Merkx """Benchmark a short sequence aligner by calling on different subscripts These subscripts are stored as libraries in the same directory ScriptFlow: This python pipeline consist of the following steps: Get hardware info (using bash commands) Run and time the preA...
MWJMerkx/pcfb_project
client/pipeline.py
Python
gpl-3.0
1,977
[ "BWA" ]
143455c05ec2879cf9d6c96a9b6bb2a7d44e841315acf609f8ec273b38d40e97
# -*- coding: utf-8 -*- """ End-to-end tests for the gating feature. """ from textwrap import dedent from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.common.logout import LogoutPa...
ahmedaljazzar/edx-platform
common/test/acceptance/tests/lms/test_lms_gating.py
Python
agpl-3.0
9,099
[ "VisIt" ]
1e1b5d9853eff26a752e782746c106d7d3301d1196927c9e922fc465a88764c1
from django import template from django.core.urlresolvers import reverse from django.conf import settings from pylmth.dom import * from profiles.models import (DataDomain, Time, GeoRecord, GeoLevel, Value, DataPoint, Indicator, IndicatorPart) from profiles.utils import format_number as u...
ProvidencePlan/Profiles
communityprofiles/profiles/templatetags/profiles_tags.py
Python
mit
28,156
[ "MOE" ]
4e7a1ef44b389d81aaeacb0472c2cfc74e4491930c1789d5d2ff2301121bc764
# -*- coding: utf-8 -*- """ @file @brief Defines a sphinx extension which proposes a new version of ``.. toctree::`` which takes into account titles dynamically added. """ import os import re from docutils import nodes from docutils.parsers.rst import Directive, directives from sphinx.util import logging from sphinx.er...
sdpython/pyquickhelper
src/pyquickhelper/sphinxext/sphinx_tocdelay_extension.py
Python
mit
12,678
[ "VisIt" ]
530479ade605d516ac931287f0e1a10313e2da1e0eed5090f4d3ba025b9fc738
''' Script to test the simulator. ''' import os import tables as tb import numpy as np import unittest import pylandau from scipy.optimize import curve_fit import matplotlib.pyplot as plt from testbeam_analysis.tools import simulate_data, geometry_utils, analysis_utils, test_tools testing_path = os.path.dirname(__fi...
YannickDieter/testbeam_analysis
testbeam_analysis/testing/test_simulation.py
Python
mit
25,154
[ "Gaussian" ]
1d29aa793a611daae7f5262e0ca2bc696064a12b61dc0cf9328cb80390cb25f8
# -*- coding: utf-8 -*- """ .. _plot_source_alignment: Source alignment and coordinate frames ====================================== The aim of this tutorial is to show how to visually assess that the data are well aligned in space for computing the forward solution, and understand the different coordinate frames inv...
adykstra/mne-python
tutorials/source-modeling/plot_source_alignment.py
Python
bsd-3-clause
9,208
[ "Mayavi" ]
bfcbd735a9ec9ddcf20216590c58b9cbaae900577943390b9a34022f121af924
#!/usr/bin/env python """ Delete a given production """ import DIRAC from DIRAC.Core.Base.Script import Script @Script() def main(): # Registering arguments will automatically add their description to the help menu Script.registerArgument("prodID: Production ID") _, args = Script.parseCommandLine() ...
DIRACGrid/DIRAC
src/DIRAC/ProductionSystem/scripts/dirac_prod_delete.py
Python
gpl-3.0
751
[ "DIRAC" ]
65922a226ab46f03af139a0cfd85c44da0c14a00a0b2d9713cd8e363e48196ee
#!/usr/bin/env python '''uditransfer module: ''' from __future__ import generators import sys sys.path.append(".") try: from . import util except: import util __version__ = "0.4" __author__ = [ "Desheng Xu <dxu@ptc.com>" ] __license__ = "PTC Only" __contributors__ = "Neil, Brian " #logFormatter = logg...
xudesheng/uditransfer
uditransfer/__init__.py
Python
apache-2.0
745
[ "Brian" ]
86d9d5e96f0a4cb581e3303a0ff70953fb3bbf3b3900eb958f409b4c399cb9a9