text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Marc Tschapek <marc.tschapek@itelligence.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supp...
alxgu/ansible
lib/ansible/modules/windows/win_disk_facts.py
Python
gpl-3.0
29,552
[ "VisIt" ]
4ebf98f3abdf103cd23e10369136547e0fd7eaa4df299dae755ecd6f7098474b
""" This module is generally for estimating the latest detectable spectral type. For now, it has a function to get the expected vsini PDF of a given companion, given the age of the system. """ import os import logging from collections import defaultdict import multiprocessing from astropy import units as u, constants ...
kgullikson88/General
EstimateDetection.py
Python
gpl-3.0
14,838
[ "Gaussian" ]
e51a5e6e17d3cc2e825c47e2ef21592a106936cc1977da32e6f455ecb08ac3fd
# -*- coding: utf-8 -*- """ Sahana Eden Common Alerting Protocol (CAP) Model @copyright: 2009-2012 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to dea...
vgupta6/Project-2
modules/eden/cap_back.py
Python
mit
44,477
[ "VisIt" ]
e44e0a94eaa85db396fdb8d63e84d10806a4057f5c471a2bae269c5f9b488c73
#!/usr/bin/env python # # Copyright 2008,2009,2011,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # GNU Radio 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, or (at ...
scalable-networks/gnuradio-3.7.0.1
gr-uhd/apps/uhd_siggen_base.py
Python
gpl-3.0
17,172
[ "Gaussian" ]
06646a7a5666a29c193a0874e880e7285b6efcb5749fb905ffc4025811f675ae
import collections import functools import re import sys from ndmake import debug from ndmake import depgraph from ndmake import space from ndmake import template dprint = debug.dprint_factory(__name__) # A static representation of a computational pipeline. # A depgraph.Graph is generated from a Pipeline. # Impleme...
marktsuchida/NDMake
ndmake/pipeline.py
Python
mit
22,158
[ "VisIt" ]
fe052ea64194e202eb893c6a8ff26806b668b25c1dd746bd8b9c13cbb16cc24c
#* This file is part of Zapdos, an open-source #* application for the simulation of plasmas #* https://github.com/shannon-lab/zapdos #* #* Zapdos is powered by the MOOSE Framework #* https://www.mooseframework.org #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.htm...
lindsayad/zapdos
problems/analyze_matrix.py
Python
lgpl-2.1
849
[ "MOOSE" ]
8d327e0c47d90b8e01e2a77b8c40a3fb9f4f56c655beccea88dc5b0ec30ce96a
# -*- coding: utf-8 -*- """ Created on Sat Jan 17 20:17:14 2015 @author: rlabbe """ from scipy.stats import t, norm import matplotlib.pyplot as plt import numpy as np import math import random df =4 mu = 10 std = 2 x = np.linspace(-5, 20, 100) plt.plot(x, t.pdf(x, df=df, loc=mu, scale=std), 'r-', l...
zaqwes8811/micro-apps
self_driving/deps/Kalman_and_Bayesian_Filters_in_Python_master/experiments/distributions.py
Python
mit
865
[ "Gaussian" ]
5e8777074fbf8894fa69f5a4fcfd6e896f858b6c011eedab20934e19c05189ef
""" Schemas for resonant scanners.""" import datajoint as dj from datajoint.jobs import key_hash import matplotlib.pyplot as plt import numpy as np import scanreader from . import experiment, injection, notify, shared from .utils import galvo_corrections, signal, quality, mask_classification, performance from .excepti...
dimitri-yatsenko/pipeline
python/pipeline/reso.py
Python
lgpl-3.0
80,726
[ "Gaussian" ]
6f0b2046c4007a29969d750bb19af305d8068d73f2eed6bb88ff05705b6cf3f4
"""The sequential SOMs.""" import json import logging from functools import reduce from typing import Callable, List, Optional, Tuple import numpy as np from tqdm import tqdm from somber.components.utilities import shuffle from somber.components.initializers import range_initialization from somber.ng import Ng from s...
stephantul/somber
somber/sequential.py
Python
mit
9,994
[ "NEURON" ]
1bd0955dafc20217b25a351b3e0904a57a3089153a359703c1289c0700a89f2e
import logging import sys import pytest import rasterio from rasterio.profiles import default_gtiff_profile from rasterio.vfs import parse_path, vsi_path logging.basicConfig(stream=sys.stderr, level=logging.DEBUG) def test_parse_path_with_vfs(): """Correctly parse path with legacy vfs parameter""" assert ...
kapadia/rasterio
tests/test_vfs.py
Python
bsd-3-clause
2,683
[ "NetCDF" ]
633d46e9267dd305f743e46b179b6536c38de71f2a6fc500f8eb52b0681289aa
#!/usr/bin/env python from enthought.mayavi import mlab import h5py import numpy as np import time from enthought.traits.api import * from enthought.traits.ui.api import View, Item, ButtonEditor """ README: to run the training or the visualization only, just type: import training training.run(file1,file2) It is a...
chaubold/hytra
empryonic/training.py
Python
mit
16,141
[ "Mayavi" ]
b00219d2c8548f56d44fe65250a76b9d19cdf8fe311f568bdf8fb0d6d36cfc10
#!/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...
bradtopol/kubernetes
cluster/juju/layers/kubernetes-worker/reactive/kubernetes_worker.py
Python
apache-2.0
38,392
[ "CDK" ]
764d6cb0a691d3a55d15632543d29b873b04d0a784ed24e29b6f54184021e395
from base import BaseBot from scraping import fleet, general, hangar from copy import copy class TransporterBot(BaseBot): """Logging functions for the bot""" def __init__(self, browser, config, planets): self.fleet_client = fleet.Fleet(browser, config) self.hangar_client = hangar.Hangar(brows...
winiciuscota/OG-Bot
ogbot/core/transporter.py
Python
mit
2,020
[ "CRYSTAL" ]
5f625ce4bee622da8a3c860fe7c06095c7593e9178f296e8ba94013406f50a5a
""" Common utilities for translation, massaging data, etc., that don't fit elsewhere in owmeta """ import re __all__ = ['normalize_cell_name'] # to normalize certain neuron and muscle names SEARCH_STRING = re.compile(r'\w+0+[1-9]+') REPLACE_STRING = re.compile(r'0+') SEARCH_STRING_MUSCLE = re.compile(r'\w+BWM\w+') REP...
openworm/PyOpenWorm
owmeta/utils.py
Python
mit
951
[ "NEURON" ]
2665f8f4b1c72d0fd4c27088a456523494ef672dac1b5efb896e1445f5af24bb
from .dataset import DataSet from .helpers import to_one_of_n from scipy.stats import norm from . import positions import numpy as np def sine(freq, nchannels, duration, sample_rate): ''' Generate a fake dataset containing sine waves. Example: >>> import psychic >>> print psychic.fake.sine(10, 4,...
wmvanvliet/psychic
psychic/fake.py
Python
bsd-3-clause
3,768
[ "Gaussian" ]
15b996671f7c2c7a9832977f51812cff84ef8cd0d9f8453a545595697df02ef5
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.core.lattice import Lattice from pymatgen.core.structure import Structure from pymatgen.symmetry.kpath import KPathSeek from pymatgen.util.testing import PymatgenTest try: from seekpath imp...
vorwerkc/pymatgen
pymatgen/symmetry/tests/test_kpath_hin.py
Python
mit
5,728
[ "pymatgen" ]
250de879cd00b78d6b1ccdfdf24c8a1d4d57fa0e96c2867438ee3ac02f5e225b
#!/usr/bin/env python # Copyright (C) 2012 Tianyang Li # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progr...
tianyang-li/meta-transcriptome
uniform-test/contig_bowtie2_uniform_test_rao_spacing.py
Python
gpl-3.0
3,068
[ "HTSeq" ]
5e293f1599dd1f4d13ae2eef5fe602411f5d717603bd90fe9e7866bfcba81167
from time import time from gpaw.transformers import Transformer from gpaw.grid_descriptor import GridDescriptor from gpaw.mpi import world ngpts = 80 N_c = (ngpts, ngpts, ngpts) a = 10.0 gd = GridDescriptor(N_c, (a, a, a)) gdcoarse = gd.coarsen() restrict = Transformer(gd, gdcoarse, 2).apply a1 = gd.empty() a1[:] = 1....
qsnake/gpaw
oldtest/parallel/restrict.py
Python
gpl-3.0
534
[ "GPAW" ]
68ef14939ff6bd3f0070168b8bb50c6f72d7a6da43f096e12028785d599f7de6
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.community.OpenSolaris
ZenPacks/community/OpenSolaris/modeler/plugins/zenoss/cmd/solaris/netstat_an.py
Python
gpl-2.0
3,483
[ "VisIt" ]
5fefcec2000e64886c74215e0295605808372d8de57b0a071b0d5b7db922427b
import os import shutil import numpy as np from os.path import join as pjoin from distutils.core import setup, Command from distutils.extension import Extension from Cython.Distutils import build_ext extensions = [ Extension( "numpush.posix_io.iothread", ["numpush/posix_io/iothread.pyx"], ...
sdiehl/numpush
setup.py
Python
mit
3,346
[ "MOOSE" ]
1f354039466679f2c8676c90b9709bfdbef8aa50e673ba8e4f42faa572a818a0
import os import logging import time import matplotlib.pyplot as plt import numpy as np import seaborn as sns import mbuild as mb import metamds as mds import mdtraj as md from simgen.project import Project OFFLINE = True def build_monolayer(chain_length, n_molecules, **kwargs): from mbuild.examples import Al...
iModels/demos
demos/monolayer/monolayer_simgen.py
Python
mit
3,102
[ "MDTraj" ]
4e2f451e0e08e0ca62bb1dcce2d244578bdb844fa11507b8ceedf68717364dd8
# 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...
kkreis/espressopp
src/tools/povwrite.py
Python
gpl-3.0
9,556
[ "ESPResSo", "VMD" ]
b967fc965d68a554f1931d4fead8d24f778fdb9716f20895c65c1e07bfc2ba80
import os import sys import numpy as np from google.protobuf import text_format from .layers import * from .core import print_stderr try: import caffe PYCAFFE_AVAILABLE = True except ImportError: import caffepb PYCAFFE_AVAILABLE = False print_stderr('WARNING: PyCaffe not found!') print_stderr(...
polltooh/FineGrainedAction
nn/kaffe/core.py
Python
mit
15,245
[ "VisIt" ]
c5fe93d490b0554e57face0c4531f4c0313c6229ae351ed08b9a5d47cd2146e8
# # Copyright (c) 2010-2011 Brian E. Granger & Min Ragan-Kelley # # This file is part of pyzmq. # # pyzmq is free software; you can redistribute it and/or modify it under # the terms of the Lesser GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, ...
felipecruz/zmqpy
zmqpy/tests/pyzmq_tests/test_pair.py
Python
bsd-2-clause
2,028
[ "Brian" ]
daf98a7d7d0c857d475cb45829bd59dbbf63c0d9e73b75692cea0628d1ec4307
#!/usr/bin/env python from __future__ import division, absolute_import, print_function import os import sys import argparse import redmapper if __name__ == '__main__': parser = argparse.ArgumentParser(description='Calibrate the redMaGiC red galaxy selection') parser.add_argument('-c', '--configfile', action...
erykoff/redmapper
bin/redmagic_calibrate.py
Python
apache-2.0
520
[ "Galaxy" ]
b27f7aa20e0ec488041e5f483ba9839dcfb7226d740e1a404c1185c7e4af12a8
from datetime import datetime, timedelta from django.test import TestCase from django.contrib.auth.models import User from rest_framework.test import APIClient from app.models.profile import Profile from app.models.gym import Gym from app.models.gym_item import GymItem from app.models.raid_item import RaidItem import p...
Gimpneek/exclusive-raid-gym-tracker
app/tests/api/api_common.py
Python
gpl-3.0
2,024
[ "VisIt" ]
1f00e59b85f076fb7cf0f50591a35ba802850ce5d2e16b9ce3256e382ce8e56a
from math import sqrt import numpy as np __all__ = ['FixCartesian', 'FixBondLength', 'FixedMode', 'FixConstraintSingle', 'FixAtoms', 'UnitCellFilter', 'FixScaled', 'StrainFilter', 'FixedPlane', 'Filter', 'FixConstraint', 'FixedLine', 'FixBondLengths', 'FixInternals'] def slice2enlis...
conwayje/ase-python
ase/constraints.py
Python
gpl-2.0
44,293
[ "ASE" ]
d090b0219b357faff8175f51f59d2249554e4ea46ff471a95bb4429b718a3f2d
from __future__ import division, unicode_literals, absolute_import, print_function import copy, sys, os import numpy as np from operator import itemgetter import shutil from tabulate import tabulate from siman import header from siman.header import print_and_log, printlog, runBash from siman.calc_manage import add_lo...
dimonaks/siman
siman/neb.py
Python
gpl-2.0
30,224
[ "VASP" ]
0ff7156fa903af4eee082b7f628b3191aaca94bb3375326b4b41d41150047197
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2017 Esteban Tovagliari, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a c...
aytekaman/appleseed
src/appleseed.studio/python/studio/plugins.py
Python
mit
2,929
[ "VisIt" ]
6d496e9b901ff90249af6ea5bd9a7d5c03c9b9a3f9c977acfce089a938c4215c
import logging,itertools,ptypes from ptypes import pstruct,parray,dyn,ptype,pstr,pint from ..headers import * class IMAGE_SYM(pint.enum, uint16): _values_ = [ ('UNDEFINED', 0), ('ABSOLUTE', 0xffff), #-1), ('DEBUG', 0xfffe) #-2) ] def Index(self): '''Returns the phys...
arizvisa/syringe
lib/pecoff/portable/symbols.py
Python
bsd-2-clause
12,910
[ "MOE" ]
8e1f65695a84aa4ddf3c8eadef0767718e2c72ac499c1a2e00b32ed71376c6bc
import os from arrow.arrow import Arrow from datetime import datetime from dateutil.relativedelta import relativedelta from django.apps import apps as django_apps from django.conf import settings from django.test import TestCase, tag from django.test.utils import override_settings from edc_base.utils import get_utcnow...
botswana-harvard/edc-appointment
edc_appointment/tests/test_appointment_creator.py
Python
gpl-2.0
7,012
[ "VisIt" ]
58fab213b46f3736ead99ffcd2584624eafa0eb9974276c95418ea42a80bfcfe
# -*- coding: utf-8 -*- # (c) 2017-2019, ETH Zurich, Institut fuer Theoretische Physik # Author: Dominik Gresch <greschd@gmx.ch> """ Defines a crystal lattice class. """ import numpy as np import scipy.linalg as la from fsc.export import export # TODO: move to a separate module # pylint: disable=fixme,useless-suppr...
Z2PackDev/bands_inspect
bands_inspect/lattice.py
Python
apache-2.0
1,413
[ "CRYSTAL" ]
b29972fa0c1acae783ddd6ea71d178df626b27138577db46134e999e4c670e07
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import codecs import contextlib import cookielib import copy import getpass import hashlib import httplib import inspect import json import locale import logging import ntpath...
JeyZeta/Dangerous
Dangerous/sqlmap/lib/core/common.py
Python
mit
133,014
[ "VisIt" ]
e56070d825783d754ac224533123cbef700336341286236b7f245d4fc0afe073
#!/usr/bin/python import optparse, sys, os from statgps_pipeline_variables import * from statgps_functions import blast_xml_to_gff3 #------------------------------------------------------------------------------------------- #----------------------------Command line parser and arguments------------------------------ ...
mdeletto/STAT-GPS
ncRNA_Prediction.py
Python
unlicense
6,573
[ "BLAST" ]
d6c8d8924cdecbd65e18c7e60c78187b355ed3ec1f34c44ffa4719ed85154f01
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
sameerparekh/pants
tests/python/pants_test/targets/test_wiki_page.py
Python
apache-2.0
3,058
[ "exciting" ]
c83a0d7e2a74ec89d15865c6ab5be5654f635d44285dcbf79191f1505e4fd122
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/google-research
symbolic_functionals/syfes/xc/mgga_test.py
Python
apache-2.0
5,291
[ "PySCF" ]
b859ff7d5616810cf1a2707689f1a3eb5ec5a1560010a789f478f367678263f6
# -*- coding: utf-8 -*- """ These tests focus on testing collection of data from the NHL via screen scraping. Note that this site: http://www.timeanddate.com/worldclock/converter.html Can be useful for sanity checking times. """ import datetime import unittest from nhlstats import collect class TestCollection(uni...
fancystats/nhlstats
tests/integration/collect_tests.py
Python
mit
11,306
[ "COLUMBUS" ]
51e97d5cdc94161844e0f780e64661793a5591d88fa02c132d99af2f3e145fe7
#!/usr/bin/env python import sys sys.path.append("../") import numpy as np import pandas as pd import scipy.io from functions import * from sklearn.decomposition import PCA import _pickle as cPickle import neuroseries as nts import sys import scipy.ndimage.filters as filters from sklearn.mixture import GaussianMixtu...
gviejo/ThalamusPhysio
python/figure_article_v2/main_article_v2_fig_1.py
Python
gpl-3.0
33,608
[ "Gaussian", "NEURON" ]
ae4f772e75209a72cfebbf9e5dea6fe24e252363526b30b1fbb8830fb02f14fd
""" .. _tut_compute_covariance: Computing a covariance matrix ============================= Many methods in MNE, including source estimation and some classification algorithms, require covariance estimations from the recordings. In this tutorial we cover the basics of sensor covariance computations and construct a no...
kambysese/mne-python
tutorials/source-modeling/plot_compute_covariance.py
Python
bsd-3-clause
8,732
[ "Gaussian" ]
92e34af22ff47f33b882271da08e316200cf081b42425fed168123419d3e1e95
# Simple data fitting by a given function # inputs: x,y: usual numpy arrays with coordinates for single curve # p0: initial values of parameters # fitf(): function to be fitted with: a Gaussian by default, but edit it to your needs # outputs: popt: parameters of the ...
FilipDominec/plotcommander
my_snippets/analysis/curve_fit.py
Python
mit
1,103
[ "Gaussian" ]
120dcbb6887f9ac8b893d4a9807a1cca2ac2194758b3abb00a09a71159f5fe2c
from __future__ import absolute_import import os from openpathsampling.storage import Storage import openpathsampling.engines.openmm as peng try: import mdtraj as md except ImportError: md = None from .test_helpers import data_filename def setup_package(): if not md: return # this should ge...
choderalab/openpathsampling
openpathsampling/tests/__init__.py
Python
lgpl-2.1
1,006
[ "MDTraj", "OpenMM" ]
22af1b666940d90b6ee4a2e0902100a5e7f7256aa1833e35eb67f47bf024c2d3
# Orca # # Copyright 2004-2009 Sun Microsystems Inc. # Copyright 2010-2013 The Orca Team # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/object_properties.py
Python
gpl-3.0
8,090
[ "ORCA" ]
37229198ba288e946b980476b1ae4200d40c7553db32dc039955b914e3e305d4
# Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
mkuron/espresso
testsuite/scripts/tutorials/test_06-active_matter__flow_field.py
Python
gpl-3.0
1,394
[ "ESPResSo", "VTK" ]
142b34aea455e970ed1463c8592a990bd1e7a92812c25e72902d2569b239fb09
from .nodes import NodeVisitor, NodeTransformer from .compat import PY3 class Extractor(NodeVisitor): def __init__(self): self._messages = set([]) @classmethod def extract(cls, node): self = cls() self.visit(node) return list(self._messages) def visit_string(self, no...
vmagamedov/kinko
kinko/i18n.py
Python
bsd-3-clause
733
[ "VisIt" ]
f62267b13c544abb69c6c305e46f83bddfc386b444ae14e7cc02c23492c1560d
# # Copyright 2014-2015, 2017, 2020-2021 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GN...
libAtoms/matscipy
tests/test_ring_statistics.py
Python
lgpl-2.1
3,893
[ "ASE", "Matscipy" ]
c82bf2600a45d161b973b30838f2bb7e461af41c4c674087652c94db4e8e2a46
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Classes for reading/manipulating/writing VASP ouput files. """ import json import glob import itertools import logging import math import os import re import warnings from pathlib import Path import xml.et...
mbkumar/pymatgen
pymatgen/io/vasp/outputs.py
Python
mit
212,097
[ "CRYSTAL", "VASP", "VisIt", "Wannier90", "pymatgen" ]
4977cd77419f81af37e4f7a64eb05b7f50cdc0e8c50821d3bfb6f460a9ae9adb
import numpy as np import numpy.random as ra from gpaw.setup import create_setup from gpaw.xc.noncollinear import NonCollinearFunctional from gpaw.xc import XC from gpaw.test import equal from gpaw.utilities import pack x = 0.0000001 ra.seed(8) for xc in ['LDA']:#, 'PBE']: print xc xc = XC(xc) s = create_...
robwarm/gpaw-symm
gpaw/test/noncollinear/xccorr.py
Python
gpl-3.0
1,350
[ "GPAW" ]
539a530365fb98c8bdcc899fd007ffbe256cdf3cf1b7ef32b319f7101c25f08e
import re input_ = 'R4, R3, R5, L3, L5, R2, L2, R5, L2, R5, R5, R5, R1, R3, L2, L2, L1, R5, L3, R1, L2, R1, L3, L5, L1, R3, L4, R2, R4, L3, L1, R4, L4, R3, L5, L3, R188, R4, L1, R48, L5, R4, R71, R3, L2, R188, L3, R2, L3, R3, L5, L1, R1, L2, L4, L2, R5, L3, R3, R3, R4, L3, L4, R5, L4, L4, R3, R4, L4, R1, L3, L1, L1, R...
swistaq/aoc2016
src/day1.py
Python
gpl-3.0
2,479
[ "VisIt" ]
441705aa707a7f08116fa1ac500fde6e5cd5109874825c9db47be052fb0b31de
import sys from time import time, ctime import numpy as np from math import sqrt, pi from ase.units import Hartree, Bohr from gpaw import GPAW, extra_parameters from gpaw.utilities import unpack, devnull from gpaw.utilities.blas import gemmdot, gemv, scal, axpy from gpaw.mpi import world, rank, size, serial_comm from g...
qsnake/gpaw
gpaw/response/base.py
Python
gpl-3.0
12,166
[ "ASE", "GPAW" ]
08211fb77b08e8432ff6a1b6bfae842bc756a0bdbdea1638d922a93ac55eb5d1
""" Tests for the Geckoboard decorators. """ import simplejson from django.http import HttpRequest, HttpResponseForbidden from django.utils.datastructures import SortedDict from django_geckoboard.decorators import widget, number_widget, rag_widget, \ text_widget, pie_chart, line_chart, geck_o_meter, TEXT_NONE...
CashStar/django-geckoboard
django_geckoboard/tests/test_decorators.py
Python
mit
14,444
[ "Amber" ]
cfdbc36abea6801df298a1eed0508a4b7260eff79278325273ff29642ac8bed6
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publi...
thica/ORCA-Remote
src/ORCA/utils/Platform/android/android_GetUserDataPath.py
Python
gpl-3.0
4,620
[ "ORCA" ]
c1d683b613c2b34613b040ede7c794258ed80c06aac9f66c038d286111a8ddb1
#!/usr/bin/env python # Helper for the getprocaddress.c test. import sys, getopt, re, os argc = len(sys.argv) if (argc): glapi_xml_path = sys.argv[1] else: glapi_xml_path = "../../src/mapi/glapi/gen/" sys.path.append(glapi_xml_path) import gl_XML import license def FindTestFunctions(): """Scan getprocaddress...
execunix/vinos
xsrc/external/mit/mesa-demos/dist/src/tests/getprocaddress.py
Python
apache-2.0
2,088
[ "Brian" ]
15e46ca3356ee6ad5256821f7697b3fa515124a8c1bbf58b640ee64a7afd790b
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 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 Software F...
andrebellafronte/stoq
plugins/optical/tests/test_optical_report.py
Python
gpl-2.0
3,323
[ "VisIt" ]
26afafeaaeb9f14dde041ee8f054d66413b2971ce31090bff892c8f9f174a684
__author__ = 'AT' from GPy.util.linalg import mdot import numpy as np class MoG: """ A generic class for representing posterior distribution. MoG stands for mixture of Gaussians, and this class is suitable when posterior is a mixture of Gaussians. The posterior distribution is as follows: q(u) = \su...
adezfouli/savigp
GP/mog.py
Python
apache-2.0
7,239
[ "Gaussian" ]
d9ba53ee3c8469f414a09eb4735df11f7f036964ae32326e6447e79e00b4c256
''''Classes to define abstractions on parameter exploration data. Classes ------- .. autosummary:: DataSpace TrialSet DummyTrialSet JobTrialSpace2D JobTrialSpace1D ''' from __future__ import absolute_import from collections import Sequence from os.path import exists, basename import sub...
MattNolanLab/ei-attractor
grid_cell_model/parameters/param_space.py
Python
gpl-3.0
24,893
[ "VisIt" ]
8443ecf170237e4964a508c02e015890113c99d4994402afffb9bfbd789d4d61
""" @name: Modules/House/Entertainment/pioneer/pioneer.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2016-2019 by D. Brian Kimmel @note: Created on Jul 10, 2016 @license: MIT License @summary: Control of pioneer home entertainment devices'. First is an A/V receiver VSX-...
DBrianKimmel/PyHouse
Project/src/Modules/House/Entertainment/Pioneer/pioneer.py
Python
mit
20,415
[ "Brian" ]
6ba745ebc55c4d183aa742ee69e73685e5de9740bd1685ab4b4901c35d3af09f
#!/usr/bin/env python """ Clean a given production Usage: dirac-prod-clean prodID Arguments: prodID: Production ID (mandatory) """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import DIRAC from DIRAC.Core.Base import Script from ...
yujikato/DIRAC
src/DIRAC/ProductionSystem/scripts/dirac_prod_clean.py
Python
gpl-3.0
904
[ "DIRAC" ]
c7877a478270cb1015933a51c9b2c143e0ba276280d1914d85f8075a9dc73c8d
from collections import OrderedDict import numpy as np import robosuite.utils.transform_utils as T from robosuite.environments.manipulation.two_arm_env import TwoArmEnv from robosuite.models.arenas import TableArena from robosuite.models.objects import PotWithHandlesObject from robosuite.models.tasks import Manipulat...
ARISE-Initiative/robosuite
robosuite/environments/manipulation/two_arm_lift.py
Python
mit
23,586
[ "Gaussian" ]
5202a7215fc6a519310381a901e95ed53c197e6f6adcd3fa5898c98e7452b4ea
# Copyright (c) 2015 Ansible, Inc. # All Rights Reserved. # Python import inspect import logging import time import six import urllib # Django from django.conf import settings from django.db import connection from django.db.models.fields import FieldDoesNotExist from django.db.models.fields.related import OneToOneRel...
wwitzel3/awx
awx/api/generics.py
Python
apache-2.0
41,873
[ "VisIt" ]
b9abcf39a0777cc777f0e1fe8bedacceebb03fad872fafa749d9d7555543198d
# Authors : Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License : BSD 3-clause from copy import deepcopy import math import numpy as np from scipy import fftpack # XXX explore cuda optimization at some point. from ..io.pick import _pick_data_channels, ...
Teekuningas/mne-python
mne/time_frequency/_stockwell.py
Python
bsd-3-clause
10,167
[ "Gaussian" ]
7121eda591b73af43c24b59d256f5396011c53c6c686e739ace8df82084b977b
#!/usr/bin/python # # 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...
apoorva-sharma/deep-frame-interpolation
msssim.py
Python
mit
7,955
[ "Gaussian" ]
30d5ae6865c896153ec6646d922b241a1dce6525b0655ece29430a73eaebc60c
# Version: 0.13+dev """ The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/warner/python-versioneer * Brian Warner * License: Public Domain * Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy * [![Latest Version] (https://pypip.in/version/versioneer/badge.svg?style=flat) ...
isislovecruft/txrecaptcha
versioneer.py
Python
bsd-3-clause
40,002
[ "Brian" ]
1a557242cab430630647a46c21e08942d94f35da03b1aafa50751bb7da6f9a53
######################################################################## # File : IdProviderFactory.py # Author : A.T. ######################################################################## """ The Identity Provider Factory instantiates IdProvider objects according to their configuration """ import jwt from...
DIRACGrid/DIRAC
src/DIRAC/Resources/IdProvider/IdProviderFactory.py
Python
gpl-3.0
4,086
[ "DIRAC" ]
7efdedb367d52c93b86b028505faed2a9d5e02030deed5349b546930977e60e6
import contextlib, unittest from loady import whitelist WHITELIST = [ ['github.com', 'rec', 'swirly'], ['github.com', 'rec2'], ['github.com', ''], # Should have no effect. ['gitlab.com', 'rec3', 'forbidden'], ['gitlab.com', 'rec', 'swirly', '', ''], # Extra fields should be OK. ] BAD_WHITELIST =...
timedata-org/gitty
test/loady/whitelist_test.py
Python
mit
2,946
[ "ASE" ]
8075bd79d1c854dcb0933ecc3a14c09871746b65074d56d74bfae2024a312dcf
# Copyright 2008-2015 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...
fingeronthebutton/RIDE
src/robotide/lib/robot/result/executionresult.py
Python
apache-2.0
4,981
[ "VisIt" ]
f4b85c2d300ecf8487f036ecfc5be12e7a61423884a8901e3e73386968055d5f
# -*- coding: utf-8 -*- # MD-Tracks is a trajectory analysis toolkit for molecular dynamics # and monte carlo simulations. # Copyright (C) 2007 - 2012 Toon Verstraelen <Toon.Verstraelen@UGent.be>, Center # for Molecular Modeling (CMM), Ghent University, Ghent, Belgium; all rights # reserved unless otherwise stated. # #...
molmod/md-tracks
test/test_commands.py
Python
gpl-3.0
90,036
[ "CP2K", "CPMD", "DL_POLY", "Gromacs", "LAMMPS" ]
f1f24d88f982a8dc69d1ae590e7b5724f73bb86b38ce39d2be2402d17521b1c3
#!/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...
harterj/moose
modules/porous_flow/examples/multiapp_fracture_flow/diffusion_multiapp/plot_results.py
Python
lgpl-2.1
6,940
[ "MOOSE" ]
b7ea9ff657e8f92a39e3392bd479d868356bf656f77c47829ad014e0223b87a3
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2015, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or later. You s...
ghutchis/cclib
test/data/skip.py
Python
lgpl-2.1
1,306
[ "cclib" ]
cb579046bc10c1809e347344b7f64539b1a5a59e754aedcb909c8368a1b7eae4
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2013 The Plaso Project Authors. # Please see the AUTHORS file for details on individual authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the L...
iwm911/plaso
plaso/parsers/opera.py
Python
apache-2.0
9,368
[ "VisIt" ]
6f408cdf3afda493cf3e5179b975f602d90afd7cfdb194e80d7236419b5a1049
#!/usr/bin/env python import matplotlib.pyplot as plt import numpy as np # Use fonts that match LaTeX from matplotlib import rcParams rcParams['font.family'] = 'serif' rcParams['font.size'] = 17 rcParams['font.serif'] = ['Computer Modern Roman'] rcParams['text.usetex'] = True # Small font size for the legend from mat...
mellis13/moose
test/tests/time_integrators/convergence/implicit_plot.py
Python
lgpl-2.1
5,535
[ "MOOSE" ]
161160e4856d2350354599ea345116e4bd6a33df187c73d90ba994f417d0a4c3
# -*- coding: utf-8 -*- #@author: ilyass.tabiai@polymtl.ca #@author: rolland.delorme@polymtl.ca #@author: patrick.diehl@polymtl.ca import yaml import os.path from . import geometry import sys from . import output from ..util import condition from . import vis from . import dic import numpy as np ## Class handeling the...
lm2-poly/peridynamics_1D
peripydic/IO/deck.py
Python
mit
25,213
[ "VTK" ]
00f2ebab12b40aa88ce0c6bdb54686e94dca450f76b618d3afd665b776c64f9d
# # @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/qcdb/basislist.py
Python
lgpl-3.0
8,527
[ "Psi4" ]
cc076dc80162a6f2665c6e652675aca12585c1c18621edc873d07ed8703ff491
# Copyright (c) 2018 PaddlePaddle 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 app...
Canpio/Paddle
python/paddle/fluid/layers/nn.py
Python
apache-2.0
155,394
[ "NEURON" ]
3d662cb154cd564021e0c0bdde01101aeddc0741f3210d1cdbbdbafdf7d44ace
# -*- coding: UTF-8 -*- __revision__ = '$Id$' # Copyright (c) 2005-2013 Vasco Nunes, Piotr Ożarowski # # 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...
marcin1j/griffith
lib/plugins/movie/PluginMovieIMDB.py
Python
gpl-2.0
16,086
[ "Amber", "Desmond" ]
3500b6f25fdbf8ebae40c38a5ba0c95a0ff27f74961b6d1cdc975b27adcc5cdf
import astropy.io.fits as fits import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as p import numpy as n import os import sys from scipy.stats import scoreatpercentile as sc survey = sys.argv[1] z_min, z_max = 0., 1.6 imfs = ["Chabrier_ELODIE_", "Chabrier_MILES_", "Chabrier_STELIB_", "Kroupa_ELODIE_", ...
JohanComparat/pySU
spm/bin_SMF/create_table_completeness.py
Python
cc0-1.0
9,615
[ "Firefly", "Galaxy" ]
13d202c7077551a8b5a193ebc7680e627e3afa4c3a09edc07afabd29301a9d68
# -*- coding: utf-8 -*- """Utilities for serializing to BEL namespace and BEL annotation files.""" import logging import os from typing import Iterable, Mapping, Optional from bel_resources import get_bel_resource, write_namespace from pybel import BELGraph from pybel.struct.summary.node_summary import get_names_by_...
pybel/pybel-tools
src/pybel_tools/definition_utils.py
Python
mit
8,672
[ "Pybel" ]
17b6690e94e55cd84bd217032e0a610db0882234969557531d62214ae8789de6
# 1d Kalman filter from math import * def gaussian(mu, sigma2, x): return (1/sqrt(2*pi*sigma2))*exp(-0.5*(x-mu)**2/sigma2) def measureUpdate(mu1, sigma12,mu2, sigma22): #prior and measurement mu = (mu1*sigma22+mu2*sigma12)/(sigma12+sigma22) sigma2 = (sigma12*sigma22)/(sigma12+sigma22) return [mu, si...
hongliuuuu/AutomobilePy
pythonC/GaussianK.py
Python
bsd-2-clause
798
[ "Gaussian" ]
5cf554eda526de30d0851bdb8c16426e750568cd115f0b8309915a7138e7475a
import unittest import os from stevedore.extension import ExtensionManager ENGINES = [ 'lammps', 'openfoam_file_io', 'openfoam_internal', 'kratos', 'jyulb_fileio_isothermal', 'jyulb_internal_isothermal', 'liggghts'] if os.getenv("HAVE_NUMERRIN", "no") == "yes": ENGINES.append("numerr...
simphony/simphony-framework
tests/test_engine_import.py
Python
bsd-2-clause
629
[ "LAMMPS" ]
413375360801c512014361f6f9ddb3f54394c28b3f4d86c06dd92a83ac425664
# coding: utf-8 from __future__ import division, unicode_literals """ Created on Mar 18, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyue Ping Ong" __email__ = "shyue@mit.edu" __date__ = "Mar 18, 2012" import unittest import ...
Dioptas/pymatgen
pymatgen/apps/borg/tests/test_hive.py
Python
mit
4,690
[ "pymatgen" ]
1ab349e28edffc3e3cb89c19bdd7190de1a4ae8125d2653dbf41f1e44f8e2769
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainWindowBA.ui' # # Created: Fri May 8 09:14:50 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except A...
geckoblu/kang
kang/gui/mainWindowBA.py
Python
gpl-2.0
34,710
[ "VisIt" ]
7148ec6551063e827a20b22c97ea90e7c54a6c9204b65e68128d23d99aeb4551
#!/usr/bin/env python # Copyright 2014-2016 OpenMarket Ltd # # 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 applicabl...
TribeMedia/synapse
contrib/cmdclient/console.py
Python
apache-2.0
28,986
[ "VisIt" ]
f8614c412498d557cbba926ce334be005d98aa52aaed73575d33b1d559a4b7f1
#!/home/paulk/software/bin/python from __future__ import division from sys import argv,exit,stderr from key_functions import * import pysam from cPickle import load def count_incl2excl(jreads,exon,sd,exon_st,exon_sp,pexon_st,pexon_sp,nexon_st,nexon_sp,tally,read_reads): for read in jreads: if read.qname not in read...
polarise/RP-python
calcExonInclRate.py
Python
gpl-2.0
3,775
[ "pysam" ]
1c3e25d9318d74152a8ee326575632540ac33b03b2f2edc0d0b5a691a47ea85e
# # Copyright (c) 2000 Autonomous Zone Industries # This file is licensed under the # GNU Lesser General Public License v2.1. # See the file COPYING or visit http://www.gnu.org/ for details. # import tripledescbc x = tripledescbc.new("hegonugetonugetorgcronig") iv = "oeugoteg" plaintext = "this is a plaintext ...
zooko/egtp
common/crypto/Python/tripledescbctest.py
Python
agpl-3.0
721
[ "VisIt" ]
969813250dbc6b24b7251d8fe74bf8e1de5c07a76b9214291716c59077a78253
import requests from bs4 import BeautifulSoup import dryscrape import urllib import logging from config import App from profile_abc import ProfileABC logging.basicConfig(format='%(message)s',level=logging.INFO) #,level=logging.DEBUG / WARNING , etc. class SPB_Hotspot(ProfileABC): def do_initial_login_page(s...
pmdscully/HHWAutoLogon
src/hotspot_profiles/spb_hotspot.py
Python
gpl-3.0
3,638
[ "VisIt" ]
560cf1236a267a56cc0c66981ba57fbfe38ef2791267a5517af585eee92c5d5e
""" Kernel SVM Classification of photometry --------------------------------------- Figure 9.11 Kernel SVM applied to the RR Lyrae data (see caption of figure 9.3 for details). This example uses a Gaussian kernel with gamma = 20. With all four colors, kernel SVM achieves a completeness of 1.0 and a contamination of 0....
eramirem/astroML
book_figures/chapter9/fig_rrlyrae_kernelsvm.py
Python
bsd-2-clause
4,615
[ "Gaussian" ]
b69d9edec09bf763afbf568cafd59ad1dd4c2ec6a383500eeec65b7b426aec8e
import numpy as np from math import pi, sqrt import os, fitsio def skyAngle(ra, dec, ra_ref, dec_ref): # CAUTION: this needs to be a pseudo-Cartesian coordinate frame # (not pure RA/DEC), otherwise angles are skewed return np.arctan2(dec-dec_ref, (ra-ra_ref)*np.cos(dec*pi/180)) def skyDistance(ra, dec, ra...
pmelchior/shear-stacking
shear_stacking.py
Python
mit
16,172
[ "Gaussian" ]
20bf68c73ff78de50286e989ead6bcaf2443b6b067183594b3ab9aa5122e9a06
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
holdenk/spark
python/pyspark/ml/classification.py
Python
apache-2.0
127,312
[ "Gaussian" ]
fedb5db49f9c9c38d616c43eefad909be03338b24f0ec2f0e187ca34dd0907d1
../../../../share/pyshared/orca/structural_navigation.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/structural_navigation.py
Python
gpl-3.0
56
[ "ORCA" ]
df0a73a3b0bc6fb858c929f5e7286227655f576786ff0a13a227715b877d5d80
# coding: utf-8 """ MINDBODY Public API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 impor...
mindbody/API-Examples
SDKs/Python/swagger_client/models/model_class.py
Python
bsd-2-clause
27,776
[ "VisIt" ]
947005e76a4f8a3f1ed01e4931eb9eb2b8da91a7379821a4917188cc51e3c2c5
__author__ = 'Tina' from pymatgen.core.structure import Structure import connectivity_from_structure as connectivity import unittest class TestConnectivity(unittest.TestCase): def setUp(self): """Loading structures before tests""" #print "TestConnectivityMethods:setUp_" print "Loading st...
tchen0965/structural_descriptors_repo
examples/connectivity_test.py
Python
mit
11,683
[ "pymatgen" ]
2a63876bbd864e59c1ae522001e162ac6895f9bea9b78e65bd1dbda049daf9c3
#-*- coding: utf-8 -*- #! /usr/bin/env python ''' #------------------------------------------------------------ filename: lab6_runTFMultiANN_MNIST.py A 2-Hidden Layers Fully Connected Neural Network implementation with TensorFlow. This example is using the MNIST database of handwritten digits (http://y...
jwkanggist/EveryBodyTensorFlow
lab6_runTFMultiANN_MNIST.py
Python
unlicense
3,775
[ "NEURON" ]
a2742034cf20f862d7342f20b284e37f0c1133d135a5cc87a793b0cc6e50651f
#!/usr/bin/env python import Pyro5 import threading import time as timeT import sys import os sys.path.extend(['..', '../..']) from mupif import * import logging log = logging.getLogger() start = timeT.time() log.info('Timer started') import mupif as mp class Example08(workflow.Workflow): def __init__(self, ...
mupif/mupif
examples/Example08-transiTM-JobMan-distrib/Example08.py
Python
lgpl-3.0
6,037
[ "VTK" ]
00fdc8a87ac0e4e26ea7c3ab3c65865f2be0cadf4444ce31b05ff5e8a7aa8d95
#!/usr/bin/env python from peacock.utils import Testing class TestChangeInputFile(Testing.PeacockAppImageTestCase): """ Tests that if the input file changes the VTKWindow is reset. """ def testInputReset(self): """ Test that changing the input file resets the VTK window correctly. ...
backmari/moose
python/peacock/tests/peacock_app/check_change_input_file/test_ChangeInputFile.py
Python
lgpl-2.1
2,262
[ "VTK" ]
ac1fac1034fe423247742c88d240683da73f277d97674e8187b2862ed03006bc
#! /usr/bin/env python """ PySCeS MDL Parser ================= The PySCeS parser is used to import a model written in the MDL of PySCeS. Further, all required input do to stochastic simulations is build. Written by T.R. Maarleveld, Amsterdam, The Netherlands E-mail: tmd200@users.sourceforge.net Last Change: August 06,...
SystemsBioinformatics/stochpy
stochpy/modules/PyscesMiniModel.py
Python
gpl-3.0
50,473
[ "PySCeS" ]
29d37fe95ab1a985b92338baaa76659647d7514c6ad8ac3b946459d1215e2237
#!/usr/bin/env python """ Calculate ejection velocity distribution Use Wiegert (2014) Formalism Citation: https://arxiv.org/pdf/1404.2159.pdf """ import numpy as np from scipy.stats import norm as gaussian ############################################################# #MACROS AND BEHAVIOR ##########################...
seap-udea/interstellar
ejection-many.py
Python
gpl-3.0
5,903
[ "Gaussian" ]
afa0612891714bddf5fcc5727216c825e7c48d931ac10971909dcf6dfd603f03
#this python script first creates a neighborlist of atoms using Periodic CKDTree search #next one can get the Qn distribution of a Si-O-Al network or Si-O-Si network using this script #Author: Mohammad Rafat Sadat, Dept. of CEEM University of Arizona #Date: 3.31.17 from periodic_kdtree import PeriodicCKDTree import nu...
msadat/python-scripts
Qn_distrib_periodic_kdtree_V1.0.py
Python
gpl-3.0
9,117
[ "LAMMPS" ]
5c3dca1546754caa15f2c3ceadbd08e7827b07caad7bcc88235674bcaea5c208
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
KaiSzuttor/espresso
testsuite/python/icc.py
Python
gpl-3.0
3,720
[ "ESPResSo" ]
1d987b5c02e21feb99e51ac239676f0ae58a7f7452c8340daccb66f15c9d47ef
from paraview.servermanager import vtkProcessModule pvoptions = vtkProcessModule.GetProcessModule().GetOptions() if pvoptions.GetSymmetricMPIMode() == False: print "ERROR: Please run ParaView in SymmetricMPI mode." import sys sys.exit(1) from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() ...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/TestMPI4PY.py
Python
gpl-3.0
479
[ "ParaView" ]
5da0c4a68c6a81918e86be781524deb885cef0687291a9eacc84829e3e0f4f51
## # Copyright 2013-2021 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
hpcugent/easybuild-easyblocks
easybuild/easyblocks/g/gromacs.py
Python
gpl-2.0
34,321
[ "Gromacs" ]
c7dff395a41fa6779e8303ca0edd98cb0f2ac038ff408a36fc579c92e3d5ffcd
import numpy as np import pandas as pd import math import random as r import astropy.units as u from astropy.stats import LombScargle from scipy.signal import lombscargle from scipy.interpolate import interp1d from scipy.fftpack import fft, fftfreq, fftshift from scipy.stats import chisquare from scipy.optimize impo...
tboudreaux/astroSynth
astroSynth/SDM.py
Python
mit
17,999
[ "VisIt" ]
d2fe0d1233c867123ffc78ee6add66d62c42e85763e8685b63a77ec3a31d6cc3