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
""" ================================================== Automatic Relevance Determination Regression (ARD) ================================================== Fit regression model with :ref:`bayesian_ridge_regression`. Compared to the OLS (ordinary least squares) estimator, the coefficient weights are slightly shifted ...
florian-f/sklearn
examples/linear_model/plot_ard.py
Python
bsd-3-clause
2,517
[ "Gaussian" ]
c1f13fac55f633fdc2b155a1bfc2d744a56054291e0ee68675136b558ab99a2c
#------------------------------------------------------------------------------- """ ARCED IPOL demo app A Review of Classic Edge Detectors by Haldo Sponton and Juan Cardelino. June 27, 2013 """ #------------------------------------------------------------------------------- from lib import base_app, build, http, imag...
juan-cardelino/matlab_demos
ipol_demo-light-1025b85/app_available/35/app.py
Python
gpl-2.0
12,282
[ "Gaussian" ]
493d9cef33a865375212f90c7119f22c24142025614a6dc61b1bac8db1911cd7
#!/usr/bin/env python # -*- coding: utf-8 -*- import pytest @pytest.mark.skip(reason="This is a long test") def test_uccsd_2(): """Test projective UCCSD on Ne using RHF/cc-pVDZ orbitals""" import forte.proc.scc as scc import forte import psi4 ref_energy = -128.677999887 # from Evangelista, J. ...
evangelistalab/forte
tests/pytest/sparse_ci/srcc/test_uccsd_2.py
Python
lgpl-3.0
1,072
[ "Psi4" ]
a080076af843c783d0a5b3fdac0306acfbc91018ba1910aa7bde7aa43194a54e
""" Effect of measurement noise on accuracy of fit ============================================== Experimental noise often corrupts concentration profiles. When the diffusion matrix is determined from noisy concentration profiles, the accuracy of the estimation decreases when the intensity of the noise increases. Furt...
emmanuelle/multi-diffusion
examples/plot_effect_of_noise.py
Python
bsd-3-clause
3,046
[ "Gaussian" ]
58c7fba53409df501c85efb41a0ad199a5ed7d7fe8dec0294761ae8e0f8eede1
#!/usr/bin/env python from Tkinter import * import Pmw import AppShell import sys, os import string from plotAscii import xdisplayfile from tkSimpleDialog import Dialog from plotAscii import transposeA from readMDA import * from mdaAscii import * from pylab import * legends=['best','upper right','upper left', 'lower...
sniemi/SamPy
sandbox/src1/pviewer/plot2d.py
Python
bsd-2-clause
49,207
[ "Gaussian" ]
538acf47c12bba5015a911975b35e9bdea39b752239654619dde564072f79c2a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines tools to analyze surface and adsorption related quantities as well as related plots. If you use this module, please consider citing the following works:: R. Tran, Z. Xu, B. Radhakri...
davidwaroquiers/pymatgen
pymatgen/analysis/surface_analysis.py
Python
mit
82,171
[ "VASP", "pymatgen" ]
6739603ec450913c348418f719186c03d2f124ca176f01dd4848aa6cb3dfbdbc
""" Test functions for multivariate normal distributions. """ from __future__ import division, print_function, absolute_import import pickle from numpy.testing import (assert_allclose, assert_almost_equal, assert_array_almost_equal, assert_equal, assert_array_les...
Gillu13/scipy
scipy/stats/tests/test_multivariate.py
Python
bsd-3-clause
48,107
[ "Gaussian" ]
68569a93d897fb67bf66e89df7c07304d553e8bf56e5786e1291e62da7a8922e
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
alxgu/ansible
lib/ansible/modules/network/avi/avi_wafprofile.py
Python
gpl-3.0
3,819
[ "VisIt" ]
fc7642cdf7451016bea4d8cf0a6582e560dec935f22e1e22d149149a97878783
import re import BALL from parametrization import * class AmberParser: def __init__(self): self.LJLineParser = { 'RE' : self.__parseLennardJonesRE, 'AC' : self.__parseLennardJonesAC, 'SK' : self.__parseLennardJonesSK } def parse(self, input): self.params = Parametrization() inFile = open(input) ...
tkemmer/ball
data/Amber/converter/amberparser.py
Python
lgpl-2.1
6,046
[ "Amber" ]
00ee2dcdc409630900675e46fed5cc778eb1746027d373c06e217a177a18cad4
""" Acceptance tests for studio related to the outline page. """ import json from datetime import datetime, timedelta import itertools from pytz import UTC from unittest import skip from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from ...pages.studio.settings_advanced import AdvancedSett...
nttks/edx-platform
common/test/acceptance/tests/studio/test_studio_outline.py
Python
agpl-3.0
81,737
[ "VisIt" ]
c023fa6eb28e1b589623cc1c129d41bfe9657d77a5a536016d16c631511ee432
""" Acceptance tests for Studio related to the container page. The container page is used both for displaying units, and for displaying containers within units. """ from nose.plugins.attrib import attr from unittest import skip from ...fixtures.course import XBlockFixtureDesc from ...pages.studio.component_editor impo...
tiagochiavericosta/edx-platform
common/test/acceptance/tests/studio/test_studio_container.py
Python
agpl-3.0
52,539
[ "VisIt" ]
835ddf6a4e5c6531200abc699d0067e77d4b7521b20310171592ba9880cb2e7c
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove ...
gratefulfrog/lib
python/chempy/hetatm.py
Python
gpl-2.0
8,113
[ "ChemPy", "PyMOL" ]
bca6d2eb2e1488abeb48b1b3f690a3d6259acdbb7ce4e01973cbfb1c8626862e
"""Main entry point for distributed next-gen sequencing pipelines. Handles running the full pipeline based on instructions """ import abc from collections import defaultdict import copy import os import sys import resource import tempfile import yaml from bcbio import log, heterogeneity, structural, utils from bcbio...
elkingtonmcb/bcbio-nextgen
bcbio/pipeline/main.py
Python
mit
23,092
[ "Bowtie" ]
e373ee7ae7a43a3e48ab72603ce42df79eb3032541f853170384fada021e9453
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView def sendChangeEmail(object, event):##Object modified event will be passed in.... object that the object modified event occurs on will also be passed in ...
uwosh/uwosh.watchthis
uwosh/watchthis/browser/watchOrStopWatching.py
Python
gpl-2.0
4,770
[ "VisIt" ]
bd4a1263970484091081cfd689549b6ab71c00d89df6b736c8cff3e247436f31
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
ghchinoy/tensorflow
tensorflow/python/autograph/converters/arg_defaults.py
Python
apache-2.0
3,296
[ "VisIt" ]
042ff8e7048934b11f469841f0fc75e3ca4aba05b6e26cac9ae0d174db74a057
# coding: utf-8 # # Copyright 2012 NAMD-EMAP-FGV # # This file is part of PyPLN. You can get more information at: http://pypln.org/. # # PyPLN 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 o...
flavioamieiro/pypln.backend
pypln/backend/workers/__init__.py
Python
gpl-3.0
1,362
[ "NAMD" ]
e3a41eb04bdbe5bc5406cb900cdfd6a57d40a2ccf5a2131074db54377fea9982
# coding: utf-8 from __future__ import unicode_literals swears = """ shit fuck shitting fucking fucked shits fucks fuckers pussy bitch bitches asshole assholes cunt cunts pussies shitty gay """ swears = set([x for x in swears.splitlines() if len(x)]) bad_swears = """ faggot faggots nigger niggers """ bad_swears = s...
cmyr/poetryutils2
poetryutils2/wordsets.py
Python
mit
3,629
[ "exciting" ]
26ef6371ab0d29c3f9321a70f356bb70e6bda3679d7e34f6b9a53f360d7bc185
import numpy as np from ase import units import sys sys.path.append('.') from AdsorptionParameters import * #Changes: Added dictionary to include multiple objects. def getEnergies(species): p = adsorptionparameters(species) return p.get('Eads') #return np.array([-0.25,-0.25,-0.25,-0.25,...
auag92/n2dm
Asap-3.8.4/Python/asap3/nanoparticle_mc/langmuirExpression.py
Python
mit
1,446
[ "ASE" ]
d8087f480405851578c7577c612051c155dfc4c714f82e6af46cf0362ec35a6e
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
yongtang/tensorflow
tensorflow/python/util/nest.py
Python
apache-2.0
66,396
[ "VisIt" ]
13c2e7c35597429e889a037793f9d8d5552c9907ca43962a4e847e052a182c1d
#!/usr/bin/python #Author: Lori Glenwinkel # CREATE DATE: 2014 # DESCRIPTION: Main TargetOrtho script, controls execution of each module, calls threading script to process modules for each genome and each input motif in parrallel import os import sys import datetime from optparse import OptionParser import scipy.stats ...
loriglenwinkel/TargetOrtho
run/scripts/TargetOrtho.py
Python
mit
15,589
[ "Galaxy" ]
d7176e38f49a62966a3d46a0ea1c5106c7942c9036f8fa1872bde4dba4e0d9cc
# Copyright (c) 2009-2014 Upi Tamminen <desaster@gmail.com> # See the COPYRIGHT file for more information """ This module contains ... """ import json from os import path from random import randint from twisted.python import log class UserDB(object): """ By Walter de Jong <walter@sara.nl> """ def _...
gamma589/honeypot
cowrie/cowrie/core/auth.py
Python
gpl-2.0
6,973
[ "VisIt" ]
005bd9514eff3e574e291f99a2a4dc35d833fac318e8f12d6eaa00f93f635e31
from django.utils.timezone import get_default_timezone from django.conf import settings from tao.models import Job, GlobalParameter from tao.tests import helper from tao.tests.integration_tests.helper import LiveServerMGFTest from tao.tests.support.factories import UserFactory, JobFactory import os class ListJobsTe...
IntersectAustralia/asvo-tao
web/tao/tests/integration_tests/list_jobs_tests.py
Python
gpl-3.0
6,681
[ "VisIt" ]
025829b901db4aec4c0130dee9870b176faaef53dd801e0d5779c4a045f82908
# -*- coding: utf-8 -*- import uuid import json import pandas as pd from IPython.display import display_html from mpcontribs.io.core import mp_id_pattern from mpcontribs.io.core.utils import clean_value from mpcontribs.io.core.recdict import RecursiveDict from urllib.parse import urlparse class Table(pd.DataFrame): ...
materialsproject/MPContribs
mpcontribs-io/mpcontribs/io/core/components/tdata.py
Python
mit
7,834
[ "pymatgen" ]
02fdaac003944326db1456ec0d2fc8778e80af346b65bd4e26fc534569f6650f
#!/usr/bin/python # -*- coding: utf-8 -*- # copyright Julien TREBOSC 2012-2013 # check that variable PYTHONPATH points to the right folder for brukerIO.py library from __future__ import division Descript=""" OK so what is this program doing exactly ? Not much : it reads 2D SER file. Applies apodisation on the t2 time...
jtrebosc/JTutils
CpyBin/apod2D_.py
Python
bsd-3-clause
6,697
[ "Gaussian" ]
1fe98ecda28ce37bd767c7f0d8360b2a96f171c13287cc73a8a074ef9f460c51
../../../../../../../share/pyshared/orca/scripts/apps/Mozilla/script.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/Mozilla/script.py
Python
gpl-3.0
71
[ "ORCA" ]
a4206f887f9c4131ac9d71c914072602f85459e36fc4a00e60de062c3056ba05
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class P4est(AutotoolsPackage): """Dynamic management of a collection (a forest) of adaptive octr...
LLNL/spack
var/spack/repos/builtin/packages/p4est/package.py
Python
lgpl-2.1
3,336
[ "VTK" ]
bf19827cedf376b91ecd7da4c89f5627e06dc09228605457ee9b3aeb8d5fd9d0
""" Tests for folding at home generator suite in perses TODO: * Write tests """ import os from unittest import skipIf running_on_github_actions = os.environ.get('GITHUB_ACTIONS', None) == 'true' #default arguments for tests DEFAULT_PLATFORM_NAME='CPU' DEFAULT_PROJ_ID = {'complex': 1000, 'solvent': 1001, 'vacuum': 1...
choderalab/perses
perses/tests/test_fah.py
Python
mit
4,694
[ "Amber" ]
5965db7c76fb884ba7b294b92805bcb59ec9d1f6f9fe5c46fe3ff1bdeb4aad71
from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy import array from numpy.testing import (assert_array_almost_equal, assert_array_equal, run_module_suite, assert_raises, assert_allclose) from scipy import signal window_funcs = [ ...
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/scipy/signal/tests/test_windows.py
Python
gpl-2.0
9,476
[ "Gaussian" ]
5118c42cc97e41bda3f285751e73e7567c8561d2364d21295e4635d32229a0f6
#!/usr/bin/env python import os import vtk import math import numpy from paraview.simple import * import paraview.servermanager #RootFolder = '/Volumes/WAILERS/UCI/Collaborators/Marcos/Data/NoFoldExperiment-TimeVaryingData/18C/Control' #File = 'CA_9_18C_Ctrl_A1' FilePath = raw_input("prompt") S = ExtractSurface(Inp...
vianamp/Utils
ImaginalDisk/python/makeboxEctopic2.py
Python
gpl-3.0
676
[ "ParaView", "VTK" ]
40aa91f1b044b93f3bf5aa4293334cbcec71f8248b31e01023f8f73a14135192
import logging import pytest import mongomock from bripipetools import model as docs from bripipetools import dbification logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) @pytest.fixture(scope='function') def mock_db(): # GIVEN a mocked version of the TG3 Mongo database logger.i...
BenaroyaResearch/bripipetools
tests/test_dbify.py
Python
mit
24,454
[ "Galaxy" ]
f0165d82b14add9208b87c0c698090cc777e516bd2aa5a99470b0725ad0ea181
# -*- coding: utf8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2010-2012 Brian Granger, Min Ragan-Kelley # # This file is part of pyzmq # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD, distributed as part o...
IsCoolEntertainment/debpkg_python-pyzmq
zmq/tests/test_stopwatch.py
Python
lgpl-3.0
1,534
[ "Brian" ]
8da7d5ea3f340b82ceff95ac8c8b3ed7ab8fc6f786b118eafdef0865cb8b925c
# coding=utf-8 """ Unit tests for the packaging system """ # from octopus.modules.es.testindex import ESTestCase from unittest import TestCase from service import packages from octopus.modules.store import store from copy import deepcopy from service.tests import fixtures from octopus.core import app from lxml import...
JiscPER/jper
service/tests/unit/test_packager.py
Python
apache-2.0
31,184
[ "Brian", "Octopus" ]
2acf40aa48730a31bcf3a9cc32b9c85eb0d6832005d883a0f46451672eb9e43d
"""Utilities used in the Kadenze Academy Course on Deep Learning w/ Tensorflow. Creative Applications of Deep Learning w/ Tensorflow. Kadenze, Inc. Parag K. Mital Copyright Parag K. Mital, June 2016. """ import matplotlib.pyplot as plt import tensorflow as tf import urllib import numpy as np import zipfile import os ...
dariox2/CADL
test/libs/utils.py
Python
apache-2.0
9,994
[ "Gaussian" ]
c1e0e2604bd620a202045e5438673d110e2d76037a9fc452060374f033954b53
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
nonhermitian/scipy
scipy/special/add_newdocs.py
Python
bsd-3-clause
155,761
[ "Gaussian" ]
fb9a0d894368af70ed37196370fa42e403843d49e6bd603d47bd4ca6d958aaed
#!/usr/bin/env python from __future__ import print_function """ Monitoring tools. Author: Mateusz Malinowski Email: mmalinow@mpi-inf.mpg.de """ from .read_write import list2file def _dirac(pred, gt): return int(pred==gt) def print_qa(questions, answers_gt, answers_gt_original, answers_pred, era, sim...
mateuszmalinowski/visual_turing_test-tutorial
kraino/utils/monitor.py
Python
mit
1,591
[ "DIRAC" ]
9659dd5a0745e7f8beb577cbc38d8dd450598f6f884dbd923f95f57f701284a8
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
MapofLife/MOL
earthengine/google-api-python-client/samples/customsearch/main.py
Python
bsd-3-clause
1,303
[ "VisIt" ]
5cbd53db563be82e6be2f7af884d6f6a4d2458fb8961042efd421a76b9cea665
"""OVK learning, unit tests. The :mod:`sklearn.tests.test_KernelOVKRidge` tests OVK ridge regression estimator. """ from sklearn.utils.estimator_checks import check_estimator from numpy.random import rand, randn, seed from numpy import sort, pi, sin, cos, array, dot, arange, newaxis, cov from numpy.linalg import norm...
RomainBrault/operalib
operalib/tests/test_KernelRidge_dec.py
Python
bsd-3-clause
4,307
[ "Gaussian" ]
1ebc3b142e39450fbe5dbe5c95364618a2209d5a866a01be968e992906de9676
# $Id$ # # Copyright (C) 2007-2010 Greg Landrum # # @@ 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. # """ General descriptor testing code """ from __f...
AlexanderSavelyev/rdkit
rdkit/Chem/UnitTestDescriptors.py
Python
bsd-3-clause
3,710
[ "RDKit" ]
01130fb9132aff1c2b87a64e3c0d82d5b2edca4dbfe1eb0ac0e57bec62fec449
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
kbrebanov/ansible
lib/ansible/modules/network/avi/avi_applicationpersistenceprofile.py
Python
gpl-3.0
6,509
[ "VisIt" ]
3d836e6ee9d90a9fa1788a029f4f37e32ba50bff64027c17f4f2e7a80268998e
""" Add container iteration powers to wrapped C++ classes """ from typehandlers.base import ForwardWrapperBase from typehandlers import codesink from pytypeobject import PyTypeObject import utils class IterNextWrapper(ForwardWrapperBase): ''' tp_iternext wrapper ''' HAVE_RETURN_VALUE = True def...
JBonsink/GSOC-2013
tools/ns-allinone-3.14.1/pybindgen-0.15.0.809/pybindgen/cppclass_container.py
Python
gpl-3.0
10,151
[ "VisIt" ]
6d05f665f0de6b56addb45643fbae913c05a18014c1efbaea4e4131dba8c13e8
import ast program1 = 'a = 2\nb = a + 3' tree = ast.parse(program1) class RecursiveVisitor(ast.NodeVisitor): """ example recursive visitor """ def recursive(func): """ decorator to make visitor work recursive """ def wrapper(self,node): func(self,node) for child in a...
Betaboxguugi/P6
code/examples/ast_examples/example_1/example_1.py
Python
gpl-3.0
2,968
[ "VisIt" ]
103c208973ef88064cfa9606f3f8cac0908a81353a1bb17a81ce3f8c5cae2d50
# Copyright (c) 2007-2009 Pedro Matiello <pmatiello@gmail.com> # # 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,...
wdv4758h/ZipPy
edu.uci.python.benchmark/src/benchmarks/python-graph/core/pygraph/algorithms/accessibility.py
Python
bsd-3-clause
10,321
[ "VisIt" ]
22b665d9dc1dd2fd5d378ca3ba9f34a57861a28ada3a154241ea42b2b97d54bd
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A Beauchamp # # MDTraj is...
swails/mdtraj
mdtraj/tests/test_trajectory.py
Python
lgpl-2.1
26,198
[ "MDTraj" ]
3cb8736e9eb0c7a95b394df54f78549d44a8cddd6d0e7a7337d6faafdb6d0581
import unittest,types,time from DIRAC.RequestManagementSystem.DB.RequestDB import RequestDB from DIRAC.RequestManagementSystem.Client.DataManagementRequest import DataManagementRequest class RequestDBTestCase(unittest.TestCase): """ Base class for the JobDB test cases """ def setUp(self): self.requestDB = R...
sposs/DIRAC
RequestManagementSystem/DB/test/TestRequestDB.py
Python
gpl-3.0
2,149
[ "DIRAC" ]
fa32c526d0dc53bd79fb99dfcb00d331be35774357bcd6488320acdd37f5aed1
from datetime import datetime import pkg_resources pkg_resources.require("SQLObject>=0.8") pkg_resources.require("TurboGears>=1.0.4.4") import sys from os import getcwd from os.path import dirname, exists, join import cherrypy import turbogears cherrypy.lowercase_api = True from turbogears.database import...
pbarton666/buzz_bot
bot_project/buzzbot/model.py
Python
mit
11,359
[ "VisIt" ]
a08cb8b1755414d77efdc1afa1c3d50bbbec292cb6bb577e46d44870fba5bb62
""" Note: this class is directly adapted from the GPy package, and is changed to plot 1D Gaussian processes. """ import warnings from GPy.plotting.matplot_dep.base_plots import x_frame1D, gpplot, x_frame2D # Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.tx...
adezfouli/savigp
GP/plot.py
Python
apache-2.0
7,265
[ "Gaussian" ]
fb869c503a718a0e9cae9ef47f58e34b1a8bf49c1687c3b909717b64f00078cf
# -*- coding: utf-8 -*- """ Created on Tue Mar 11 11:38:10 2014 @author: kshmirko """ import time import numpy as np import matplotlib.pyplot as plt import scipy.ndimage import matplotlib.patches plt.figure(figsize=(10,10)) ax1 = plt.subplot(221) ax2 = plt.subplot(222) ax3 = plt.subplot(223) ax4 = plt.subplot(224) ...
kshmirko/find-jet-kernel
tmp.py
Python
gpl-2.0
2,952
[ "Gaussian" ]
6cc5eb93a93c567873538e218d703d9e375ec5438312e60d2f3b7cff581813e4
# opemm imports import simtk.openmm as mm # ParmEd imports from chemistry.charmm.parameters import CharmmParameterSet #import cProfile #import pstats #import StringIO import TorsionScanSet, TorsionFitModel import glob from pymc import MCMC #from memory_profiler import profile param = CharmmParameterSet('../../charmm_...
hainm/Torsions
examples/pyrrol/pyrrol_sampling.py
Python
gpl-2.0
1,143
[ "CHARMM", "OpenMM" ]
59d40dabdc92fb225868e01a071b0265c9db4809efe4250ecf0c174d8e743000
#!/usr/bin/env python __author__ = 'Mike McCann,Duane Edgington,Reiko Michisaki' __copyright__ = '2013' __license__ = 'GPL v3' __contact__ = 'duane at mbari.org' __doc__ = ''' Master loader for all CANON activities in September 2013 Mike McCann; Modified from Duane Edgington and Reiko Michisaki's work MBARI ...
google-code-export/stoqs
loaders/CANON/loadCANON_september2013.py
Python
gpl-3.0
21,367
[ "NetCDF" ]
221f5ec0430a7f75427bbe33aabf6a2a28b078ad3d4fd7e16d1cbb862a4315d3
#!/usr/bin/env python3 #pylint: disable=missing-docstring #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details ...
nuclear-wizard/moose
python/chigger/tests/field_data/field_data.py
Python
lgpl-2.1
503
[ "MOOSE" ]
61b67a88173ccb84f049fada43c304d0314af0a82ddc1ac3c746e035980c8f45
""" Processes for Weather Classification Author: Nils Hempelmann (nils.hempelmann@lsce.ipsl.fr) """ from flyingpigeon.datafetch import _PRESSUREDATA_ from flyingpigeon.weatherregimes import _TIMEREGIONS_ from flyingpigeon.log import init_process_logger from pywps.Process import WPSProcess import logging logger = logg...
KatiRG/flyingpigeon
flyingpigeon/processes/wps_weatherregimes_projection.py
Python
apache-2.0
11,891
[ "NetCDF" ]
c3b20f0c74ce3dff6e3e6dfb713e8a8e4b10a58b79214758a67381cbb498ea1d
#!/usr/bin/env python # -*- coding: utf-8 -*- import vtk def main(): titles = list() textMappers = list() textActors = list() uGrids = list() mappers = list() actors = list() renderers = list() uGrids.append(MakeUnstructuredGrid( vtk.vtkQuadraticEdge())) titles.append("V...
lorensen/VTKExamples
src/Python/GeometricObjects/IsoparametricCellsDemo.py
Python
apache-2.0
7,975
[ "VTK" ]
8af4f092ea581bba46e9b77b5ab7992499171f455fbe769ac948a37e0066c6e9
""" Courseware views functions """ import logging import urllib import json from collections import defaultdict from django.utils import translation from django.utils.translation import ugettext as _ from django.conf import settings from django.core.context_processors import csrf from django.core.exceptions import P...
sudheerchintala/LearnEraPlatForm
lms/djangoapps/courseware/views.py
Python
agpl-3.0
38,476
[ "VisIt" ]
39bc27967c58e1cc56b4558b1dca0082e24ccdf0155ba37f8d3e7c30643c76ea
# Thin convenience wrapper for BioPython's SeqIO code # Copyright (C) 2012 Kai Blin <kai.blin@biotech.uni-tuebingen.de> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the ...
kblin/bioinf-helperlibs
helperlibs/bio/seqio.py
Python
gpl-3.0
6,609
[ "Biopython" ]
164a373fe74d6eae0664a2b2ed14335c6c6801ce89b8f9fb5b8ff40df3912cb1
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/tests/input_tab/InputFile/test_InputFile.py
Python
lgpl-2.1
2,790
[ "MOOSE" ]
e2428cc07a63bc79d8b5a1e3cdb77caf2170781f433fa455fe381706c5ec2fee
""" This file is part of Giswater 3 The program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. """ # -*- coding: utf-8 -*- import os from q...
Giswater/giswater_qgis_plugin
core/ui/ui_manager.py
Python
gpl-3.0
12,453
[ "VisIt" ]
7e3e3d6ebd0567566f6dfdf64f10716d39c872c473bab6fbf0bbeede965f8ce0
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements representations of slabs and surfaces, as well as algorithms for generating them. If you use this module, please consider citing the following work:: R. Tran, Z. Xu, B. Radhakrishnan, D. Winston...
materialsproject/pymatgen
pymatgen/core/surface.py
Python
mit
86,389
[ "pymatgen" ]
88bdb4415b500fcf148efe3bf1d0a6b31130d9b34384b2880e7282a389da0f10
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2011 Mehmet Atakan Gürkan # # 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 i...
digitalvapor/PySkyAlmanac
sabanci/skyalmanac_biling.py
Python
gpl-3.0
16,535
[ "Galaxy" ]
d1db8488cbb22f45063c05f334083bafbaa57200913e6e8c02df14ef483b181f
#! /bin/usr/env python # D.J. Bennett # 24/03/2014 """ pglt alignment tools """ # PACKAGES import os import re import random import numpy as np from Bio import SeqIO from Bio import AlignIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Align import MultipleSeqAlignment from Bio.Blast.Application...
DomBennett/pG-lt
pglt/tools/alignment_tools.py
Python
gpl-2.0
22,838
[ "BLAST" ]
bdd910295c8d59f0f96b47842572e088fabbe40b86a6a5d41a29eb38f2c017e4
# demonstrate 3d postprocessing with yade # # 1. qt.SnapshotEngine saves images of the 3d view as it appears on the screen periodically # makeVideo is then used to make real movie from those images # 2. VTKRecorder saves data in files which can be opened with Paraview # see the User's manual for an intro to Parav...
bcharlas/mytrunk
doc/sphinx/tutorial/05-3d-postprocessing.py
Python
gpl-2.0
1,752
[ "ParaView", "VTK" ]
117ecad094af4e5edf8855d1b19d03b0f9e20b7b2ad704514dbd15121d4ef4e7
# -*- coding: utf-8 -*- # from __future__ import print_function import helpers import numpy as np import matplotlib.pyplot as plt import pytest def plot1(): # Make plot with vertical (default) colorbar fig = plt.figure() ax = fig.add_subplot(111) np.random.seed(123) data = np.clip(np.random.ran...
danielhkl/matplotlib2tikz
test/test_noise.py
Python
mit
1,577
[ "Gaussian" ]
dada23d60821f5b9eeb8777207874a12d4c3306228494ca1f49d9bf784585a7a
import logging import json import copy logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) matchingList = { #key: entry field. value: don't care value. 'srcMac': '00:00:00:00:00:00', \ 'dstMac': '00:00:00:00:00:00', \ 'dlType': '0x0', \ 'srcIP': '0.0.0.0', \ 'dstIP': '0.0.0.0', \ 'srcPort': '0', \ 'ds...
starbops/OpenADM
core/src/floodlight_modules/simulate.py
Python
gpl-2.0
7,817
[ "VisIt" ]
fb0548abe8a4387d53f9f4e5d9d4daddf36855e884c7d092bd8a45c0d9de0e6c
#!/usr/bin/env python ''' An efficient einsum function using BLAS or TBLIS (https://github.com/devinamatthews/tblis) as the tensor contraction engine. By default, pyscf.lib.einsum calls BLAS gemm functions for tensor contraction. If tblis is available (see the installation instruction http://pyscf.org/install.html#tbl...
sunqm/pyscf
examples/tools/12-einsum.py
Python
apache-2.0
923
[ "PySCF" ]
f2cc1e7719d3acdb8bfe642ee89cfc45bd85011d3dcb215322469c9e1edaab45
from __future__ import division, print_function, absolute_import import sys import subprocess MODULES = [ "scipy.cluster", "scipy.cluster.vq", "scipy.cluster.hierarchy", "scipy.constants", "scipy.fft", "scipy.fftpack", "scipy.integrate", "scipy.interpolate", "scipy.io", "scipy...
gertingold/scipy
scipy/_lib/tests/test_import_cycles.py
Python
bsd-3-clause
1,301
[ "NetCDF" ]
103b0ccc8deca1db00da69519eeb0b3edb053aa2933b8fe288064e28cb00d3d2
from django.db import models from django.core.mail import send_mail from django.core.urlresolvers import reverse import os import urllib import uuid # Create your models here. class Subscriber(models.Model): email = models.EmailField(max_length=254) active = models.BooleanField(default=False) confirm_key...
zrisher/webapp-public
webapp/apps/register/models.py
Python
mit
1,390
[ "VisIt" ]
365de4caa295fbe8a22232dd3fc92843b702b8db64cc59c0c22bf685a47b08d7
from __future__ import absolute_import from __future__ import division from __future__ import print_function from DIRAC.AccountingSystem.private.Policies.JobPolicy import JobPolicy as myJobPolicy gPoliciesList = { 'Job': myJobPolicy(), 'WMSHistory': myJobPolicy(), 'Pilot': myJobPolicy(), 'Null': False...
yujikato/DIRAC
src/DIRAC/AccountingSystem/private/Policies/__init__.py
Python
gpl-3.0
323
[ "DIRAC" ]
0dd9353facc33728c4fa8ea1945262c517ceb6db0ed947dc5c5f9307244463b4
''' Created on Mar 28, 2012 @author: jan ''' import random import numpy as np from scipy.stats import norm, expon, gamma from scipy.spatial.distance import squareform def gaussian_influence(mu, width): ''' creates a 2D-function for gaussian influence sphere''' return lambda x, y: np.exp(-width * ((x - mu[0])...
Huitzilo/FUImaging
regnmf/datamaker.py
Python
mit
6,851
[ "Gaussian" ]
67695402116e762bb4c12b144c12611bae2b2d76db357837cecb73b0bf8d6999
# coding: utf-8 """Parser for HTML fragments used on MDN. This is designed to be a foundation for more specific tasks, such as extracting compatibility data from MDN pages, or validating API data when an HTML subset is allowed. HTML is actually unparsable, according to smart people: http://trevorjim.com/a-grammar-for...
jwhitlock/web-platform-compat
mdn/html.py
Python
mpl-2.0
22,029
[ "VisIt" ]
d3da318e0ce2da8c294b64052342f56542b3531004ca4a59fb0b24e3f6bb7cd7
# Must be run with 'ipython --gui=wx --pylab=wx' and then 'run plot.py' import hf from matplotlib import pyplot as plt from scipy.interpolate import interp1d from mayavi import mlab import numpy as np import os """ # Run fortran code os.system("gfortran hf.F90 -o hf && ./hf") # Read results from fortran code data ...
sirmarcel/simple-hf
plot.py
Python
bsd-3-clause
2,494
[ "Mayavi" ]
cc14356efc2e7f1a02b27311d4a2909effc43fdee34488a49fca68a77f48198b
#!/usr/bin/python ########################################################################## RAD4SNPs:############################################################################## # A set of Python scripts to select and validate independent SNPs markers from a list of read files # #################################...
glassalle/Rad4Snps
RAD4SNPs_FinalSQLExtract.py
Python
gpl-3.0
4,571
[ "pysam" ]
770c92dd7c63671b4e4c7331a84da1a82459a381352aced4da9e464f39c32f50
# coding: utf-8 from __future__ import unicode_literals import unittest import os from pymatgen.analysis.ewald import EwaldSummation, EwaldMinimizer from pymatgen.io.vaspio.vasp_input import Poscar import numpy as np test_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", 'test_...
Dioptas/pymatgen
pymatgen/analysis/tests/test_ewald.py
Python
mit
4,268
[ "pymatgen" ]
9c7c197fcdea4352f86a772c143b06afda0ad9c4a218ddec7dfd9847a42ffc79
"""Physical constants of use in the sensitivity calculations.""" import units ### Avogadro constant Avogadro = 6.02214129E+23 * (1./units.mole) N_A = Avogadro ### Electron mass electron_mass = 0.510998928 * units.MeV m_e = electron_mass
jmalbos/pybbsens
pybbsens/constants.py
Python
mit
239
[ "Avogadro" ]
1bb5e485876d1c9ac841d6331cf9dc5e4e867481c789f02b62a842175c088f21
''' Nacker is a tool to circumvent 802.1x Network Access Control (NAC) on a wired LAN. Copyright (C) 2013 Carsten Maartmann-Moe This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
mehulsbhatt/nacker
caravan/dhcp.py
Python
gpl-2.0
2,161
[ "MOE" ]
59e1427267dfc9f6401459f9da052fb41d626da6fbd72f2e1549862c0c6f8148
#!/usr/bin/env python from __future__ import absolute_import, division, print_function # ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COP...
JWDebelius/scikit-bio
skbio/diversity/alpha/_chao1.py
Python
bsd-3-clause
6,351
[ "scikit-bio" ]
1550bc13c90be3a462a9fb2d3accfac24a717325d8ae8395ad3ae38013f70bde
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
Achuth17/scikit-bio
skbio/tree/_tree.py
Python
bsd-3-clause
90,475
[ "VisIt", "scikit-bio" ]
c164923594dadf5b32f675cb7c4bfbb0b3f56d1dc32166a39498c9c533e8246b
# -*- coding: utf-8 -*- """ =========================================================== 1D Wasserstein barycenter demo for Unbalanced distributions =========================================================== This example illustrates the computation of regularized Wassersyein Barycenter as proposed in [10] for Unbalanc...
rflamary/POT
examples/plot_UOT_barycenter_1D.py
Python
mit
3,848
[ "Gaussian" ]
912f4f03be54c025b674c562d224c99373f02fdb41a93d5996f479c2df0fe430
""" PDP PDP ( PolicyDecisionPoint ) is the back-end for the PolicySystem. It discovers the policies, finds the best match, evaluates them, merges their results taking the most penalizing one, computes the set of actions to be triggered and returns all the information to the PEP which will enforce the actions. ...
arrabito/DIRAC
ResourceStatusSystem/PolicySystem/PDP.py
Python
gpl-3.0
15,463
[ "DIRAC" ]
b1bdb6a1ba76aebda2068e811438ff0047fdf1d1ff7781a8639889500e1c46ea
#!/usr/bin/env python # Copyright (c) 2017-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
facebookresearch/Detectron
tools/convert_coco_model_to_cityscapes.py
Python
apache-2.0
4,289
[ "Gaussian" ]
a3d1acd204768bdef499df8ba3bca15bfbaaa64d1f7abae68289e914efd7e7e2
__author__ = "setten" import numpy from pymatgen.util.convergence import determine_convergence from pymatgen.util.testing import PymatgenTest class ConvergenceTest(PymatgenTest): def test_determine_convergence(self): self.maxDiff = None xs = [1, 2, 3, 4, 5, 6] # a converging example: ...
vorwerkc/pymatgen
pymatgen/util/tests/test_convergence.py
Python
mit
1,643
[ "pymatgen" ]
38a7dc0444cf1326a9b74b3d5f6ef6916bd0d54ae98b9584fd0df80e858cc372
import numpy as np import time import h5py from mayavi import mlab def drawVolumeWithoutReferenceCell(figure, cseg, reference, color=(0,0,1), opacity=0.3): """ Draw all cells in volume 'cseg' except the cell with label 'reference' into 'figure'. 'reference' is assumed to be a 1D np.array with size 1 ...
chaubold/hytra
empryonic/visCell.py
Python
mit
8,300
[ "Mayavi" ]
6581eee80809184042871456eceeb2852b3fa5ccb7ad1edd2e29094bcb509bef
#!/usr/bin/python # -*- coding: utf-8 -*- """ Dieses Script analysiert die Verteilung der Längen der Routen. Diese müssen durch "Entfernungen.txt" gegeben sein. """ print("Beginne alle Routen zu lesen.") f = open('/home/moose/mathe/Entfernungen.txt', 'r') lines = f.readlines() f.close() print("Alle Routen w...
MartinThoma/LaTeX-examples
documents/mathe-handlungsreisender/Handlungsreisender-in-Deutschland-analyse.py
Python
mit
1,696
[ "MOOSE" ]
849c4a2ce73cf576d2b4d3e8d58807bb2e7c2680b48f282f8f070523147d07f5
"""Core, non-language-specific features of DXR, implemented as a Plugin""" from base64 import b64encode from itertools import chain from os.path import relpath, splitext, realpath, basename import re from flask import url_for from funcy import identity from jinja2 import Markup from parsimonious import ParseError fr...
jay-z007/dxr
dxr/plugins/core.py
Python
mit
20,659
[ "VisIt" ]
68afc0542576300a33986e6c6e98fc11facfaceaa3dd90127278e0e4912dd934
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Image pipeline reader = vtk.vtkImageReader() reader.ReleaseDataFlagOff() reader.SetDataByteOrderToLittleEndian() reader.SetDataExtent(0,63,0,63,1,93) reader.SetDataSpacing(3.2,3.2,1...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Common/Transforms/Testing/Python/TestThinPlateWarp3D.py
Python
gpl-3.0
1,768
[ "VTK" ]
d753686b88de7fb361076e3794c7f19caabd302f5b75b3ee525466d521edf2b0
from brian import * import time, cPickle import numpy # ########################################### # Configuration # ########################################### numpy.random.seed(98765) set_global_preferences(useweave=True) set_global_preferences(usecodegen=True) set_global_preferences(openmp=True) # ###############...
vitay/ANNarchy
benchmarks/fini2015/Brian-COBA.py
Python
gpl-2.0
2,306
[ "Brian", "NEURON" ]
8c4000258304a7e7533e7d94fb07159b96b0b36c87a55557ce602e630cd67dde
############################################################################## # 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...
krafczyk/spack
lib/spack/spack/test/url_parse.py
Python
lgpl-2.1
20,835
[ "BLAST", "Gromacs", "HOOMD-blue", "Jmol", "Octopus", "VisIt" ]
9768ac243bf9891793a9defce55e24977a92b5c1cfa1c6830710d493bfe3ee21
######################################################################## # # (C) 2013, James Cammarata <jcammarata@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software ...
sudarkoff/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
20,292
[ "Galaxy" ]
9d0b555c94bf2b07c92cb94404de98025c4c52bf1370e525d300f1ebde901f28
import os import fnmatch try: from setuptools import setup, find_packages except ImportError: from distutils.core import setup def read_file(filename, *line): '''(str, [int]) -> str Reads filename file and returns contents at line. Returns entire file if line not supplied and ignores any more the...
brianclements/wikidpad-utils
setup.py
Python
mit
2,694
[ "Brian" ]
89f6be43c6d087eb5623b3acb9fdacbd4a056e1cee51e2fd919548d0d3e526f2
#!/usr/bin/env python # table.py by Zeth """This module creates reStructuredText tables from a basic Python datatype. One use is writing to a file, another is converting to HTML with Docutils; a third use is handing on to Django's markup module. You may be able to find other uses that I do not know about. The input...
DanielKeep/gb
src/gb/tools/HashTest/table.py
Python
bsd-3-clause
7,490
[ "Brian" ]
f5f96af4c85f7aad06239fbc52cbaf79c472ee143eeac77305e29aedb1f51e08
from __future__ import print_function from builtins import range import sys sys.path.insert(1,"../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator import random def getLambdaModel(): print("Read data") prostate = h2o.import_file(path=pyunit_utils...
nilbody/h2o-3
h2o-py/tests/testdir_algos/glm/pyunit_NOFEATURE_getLambdaModel_mediumGLM.py
Python
apache-2.0
1,910
[ "Gaussian" ]
2c8cff42752fc6767e573360341e68bf357569140f6d33d716f82aeeb91d44b4
# -*- coding: utf-8 -*- # 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 ...
Karaage-Cluster/karaage
karaage/conf/defaults.py
Python
gpl-3.0
18,446
[ "Brian" ]
0933728fd2fe6e61076a25a5705630c665f51bf934b744baa99483bf58497ed1
import numpy as np import scipy.linalg as npalg import scipy.stats as stats import math import pdb def sigmoid(x): return 1 / (1 + np.exp(-x)) def inverse_sigmoid(x): return np.log(x / (1 - x)) def make_batches(N_data, batch_size): return [slice(i, min(i + batch_size, N_data)) for i in range(0, N_data...
thangbui/geepee
geepee/tools.py
Python
mit
6,973
[ "Gaussian" ]
dfd46c27e0657f58ecdc0490be552893bb8113c0d120b7dc041757b67c555bd2
# (C) 2012, Michael DeHaan, <michael.dehaan@gmail.com> # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
simobasso/ansible
lib/ansible/plugins/callback/osx_say.py
Python
gpl-3.0
3,002
[ "exciting" ]
d346bba741e1dcf17bcd0e44b52e2dc47ab4231fafeb69deb18388906be2124c
# # Copyright (C) 2011 EADS France, Fabrice Desclaux <fabrice.desclaux@eads.net> # # 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 late...
amohanta/miasm
miasm2/expression/expression.py
Python
gpl-2.0
38,502
[ "VisIt" ]
2b02cda3300c2cf2d0945efd11502a5a8e007dece01c88e5611e465e8292864a
''' Key reference: https://dcc.ligo.org/DocDB/0123/T1500606/002/NRInjectionInfrastructure.pdf -- lionel.london@ligo.org 2016 -- ''' # Import useful things from os import system, remove, makedirs, path from os.path import dirname, basename, isdir, realpath from numpy import arccos as acos from numpy import array,one...
Cyberface/nrutils_dev
workflows/followup_nr2h5_workflow.py
Python
mit
7,894
[ "DIRAC" ]
9fbbd0c331800f23cf496731ab25af4ff3e6fa0bc8d574babbaeba31cb1bd8a4
""" Simple JavaScript/ECMAScript object literal reader Only supports object literals wrapped in `var x = ...;` statements, so you might want to do read_js_object('var x = %s;' % literal) if it's in another format. Requires the slimit <https://github.com/rspivak/slimit> library for parsing. Basic con...
ajduncan/downspout
jsobj.py
Python
mit
2,963
[ "VisIt" ]
599fc5ff368341744bed181937c373fe2d2ef20b619b75c1253fce582cb33c1f
""" handhRL Hulks and Horrors: The Roguelike Copyright 2014 by John S. Berry III This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later versio...
jarcane/handhRL
handhrl.py
Python
gpl-3.0
66,404
[ "BLAST" ]
c71361bf32188f239130889e6d039859c757aa9d92eccb452572a56501a4d4b7
#!/usr/bin/env python3 # Author: Brian Fiedler 29 June 2016 # Converts the CRUTEM text data files into a convenient Python dictionary. # Go to http://www.metoffice.gov.uk/hadobs/crutem4/data/download.html and you should see # a link to http://www.metoffice.gov.uk/hadobs/crutem4/data/station_files/CRUTEM.4.4.0.0.station...
ActiveState/code
recipes/Python/580687_convert_hierarchy_datfiles_inconvenient/recipe-580687.py
Python
mit
3,146
[ "Brian" ]
7b3ce04b069f66d7546089d4c8dd95cdd4257ca9c6727c10975e7e39b5e4668e
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS that utilize the progress page. """ from contextlib import contextmanager import ddt import pytest from ...fixtures.course import CourseFixture, XBlockFixtureDesc from ...pages.common.logout import LogoutPage from ...pages.lms.courseware import CoursewarePage f...
philanthropy-u/edx-platform
common/test/acceptance/tests/lms/test_progress_page.py
Python
agpl-3.0
17,271
[ "VisIt" ]
b679c4e42bcad997705befc0c4dfe202597af9dd24c83af9729e69aa509375bb
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' luvoir_demo.py |github| ----------------------- A demo simulation of Earth at 10 pc using a LUVOIR-like telescope setup. .. role:: raw-html(raw) :format: html .. |github| replace:: :raw-html:`<a href = "https://github.com/jlustigy/coronagraph/blob/master/scr...
jlustigy/coronagraph
scripts/luvoir_demo.py
Python
mit
5,564
[ "Gaussian" ]
78cd2e64a908164afce8ec56835eed3688f666041d5ce623e5dab07753690809
from __future__ import absolute_import input_name = '../examples/multi_physics/biot_short_syntax.py' output_name = 'test_biot_short_syntax.vtk' from tests_basic import TestInput class Test(TestInput): pass
rc/sfepy
tests/test_input_biot_short_syntax.py
Python
bsd-3-clause
212
[ "VTK" ]
2457b691927bd6fa538e7a9cac1bfd84a00558079d00efc2c3eeb983e52943d6