text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import os import sys from utils import * import operator from time import localtime, strftime import argparse import re from Bio import SeqIO from abifpy import Trace import pylab # using abifpy because it allows to change the cutoff value for quality trimming # Usage: python ~/scripts/python/sanger_seq_analysis.py -i...
richrr/scripts
python/sanger_seq_analysis.py
Python
gpl-3.0
11,354
[ "BLAST", "Biopython" ]
23c79f9764eca2a297cc702b4f7d486ffe0b2d99d14365bf75def60648905bed
#!/usr/bin/env python3 """ Copyright 2019 Paul Willworth <ioscode@gmail.com> This file is part of Galaxy Harvester. Galaxy Harvester is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 ...
pwillworth/galaxyharvester
html/verifyUser.py
Python
gpl-3.0
2,837
[ "Galaxy" ]
241eb87b880ce6f0c1e401665efcebfac1d0d7aca5839f5171cc8e882c121293
# -*- coding: utf-8 -*- { "'Cancel' will indicate an asset log entry did not occur": "' 취소 ' 자산 로그 항목을 표시합니다 발생하지 않았습니다.", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for the area.": "위치 이...
flavour/ifrc_qa
languages/ko.py
Python
mit
244,238
[ "VisIt" ]
dc706be937a9443254df8f4bb1f195f4921634afe8c62c6864a48834bb940292
#!/usr/bin/env python2 # encoding: utf-8 """ ImdbParser.py Created by Ichabond on 2012-07-01. Module for Pythonbits to provide proper and clean imdb parsing. """ import sys import json from attrdict import AttrDict try: import imdbpie except ImportError: print >> sys.stderr, "IMDbPie is required for Python...
Ichabond/Pythonbits
ImdbParser.py
Python
gpl-3.0
3,377
[ "TINKER" ]
2652a2930473f2f8630df1bbbfb10ace9fd3af0ad1d355406736471e6975d0fd
import ast import copy import _ast from nimoy.ast_tools.expression_transformer import ComparisonExpressionTransformer, MockAssertionTransformer, \ ThrownExpressionTransformer from nimoy.runner.exceptions import InvalidFeatureBlockException SETUP = 'setup' GIVEN = 'given' WHEN = 'when' THEN = 'then' EXPECT = 'expec...
Luftzig/nimoy
nimoy/ast_tools/feature_blocks.py
Python
apache-2.0
9,996
[ "VisIt" ]
7336283cd06447f33a293512c840a037040a5521673b4b6ed7fcff54e4e17175
#!/usr/bin/env python # # Copyright 2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import gr, gr_unittest, filter import sys class test_firdes(gr_unittest.TestCase): def setUp(self): pass def tearDown(self): ...
jdemel/gnuradio
gr-filter/python/filter/qa_firdes.py
Python
gpl-3.0
9,316
[ "Gaussian" ]
b439ff1cbb2d4220ed4728f10e2374c28e4a0072a7b848eb133d45ddf6146d3b
#!/usr/bin/env python # Run this test like so: # $ vtkpython TestTextureGlyph.py -D $VTK_DATA_ROOT \ # -B $VTK_DATA_ROOT/Baseline/Graphics/ # # $ vtkpython TestTextureGlyph.py --help # provides more details on other options. import os import os.path import vtk from vtk.test import Testing class TestTextureGlyph(T...
cjh1/VTK
Filters/Core/Testing/Python/TestTextureGlyph.py
Python
bsd-3-clause
2,760
[ "VTK" ]
5c46248aabca328461ac07830f0366870ca5ce350c74f0abefd29bb4b26ac71e
""" ========================================== Statistical functions (:mod:`scipy.stats`) ========================================== .. module:: scipy.stats This module contains a large number of probability distributions as well as a growing library of statistical functions. Each included distribution is an instanc...
kmspriyatham/symath
scipy/scipy/stats/__init__.py
Python
apache-2.0
8,828
[ "Gaussian" ]
b80589e0741ca088247fcae22d45d40f1b8cc82e2691e4940576d9f0ff95f2e1
""" Module simtk.unit.baseunit Contains BaseUnit class, which is a component of the Unit class. This is part of the OpenMM molecular simulation toolkit originating from Simbios, the NIH National Center for Physics-Based Simulation of Biological Structures at Stanford, funded under the NIH Roadmap for Medical Research...
casawa/mdtraj
mdtraj/utils/unit/baseunit.py
Python
lgpl-2.1
7,031
[ "OpenMM" ]
3b35373227a620f6b9a467d91a97f4da44d82ef96fe5310253d37246c81b07e8
# 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...
espressomd/espresso
samples/h5md.py
Python
gpl-3.0
1,847
[ "ESPResSo" ]
cc690bd0ff848b15ac70cccc06625b05c1edcdfaab6b7cfec0fa3f16b357bbe6
"""Generate self-contained HTML reports from MNE objects.""" # Authors: Alex Gramfort <alexandre.gramfort@telecom-paristech.fr> # Mainak Jas <mainak@neuro.hut.fi> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os import os.path as op import fnmatch import re import codecs i...
jaeilepp/mne-python
mne/report.py
Python
bsd-3-clause
68,089
[ "Mayavi" ]
6d0514b48b75ef2428feaf75228dbdcf863fdea5ee0cce236b4cb9bdd9f33e96
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. 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 # # U...
gkc1000/pyscf
pyscf/scf/uhf.py
Python
apache-2.0
34,590
[ "PySCF" ]
9c826e965772ebb6abdef06de4f2ef775e57ce8ea440f5ef2d01345e58a4f404
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import logging import numpy as np from abc import ABCMeta, abstractmethod from monty.json import MSONable, MontyDecoder from functools import lru_cache from pymatgen.core.structure import Structure, PeriodicS...
montoyjh/pymatgen
pymatgen/analysis/defects/core.py
Python
mit
24,675
[ "VASP", "pymatgen" ]
374e49bbd69c1b9be29d65fb62ac87e726a68aab16f198acf0292b5258177d4c
# Copyright 2013-2020 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 RAllelicimbalance(RPackage): """Investigates Allele Specific Expression. Provides ...
iulian787/spack
var/spack/repos/builtin/packages/r-allelicimbalance/package.py
Python
lgpl-2.1
2,834
[ "Bioconductor" ]
8a23dfc8df44618e3a08d9c751df5e05b49fb59475351fd92b5b1a5a0b69f890
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of c...
enochd/RMG-Py
rmgpy/data/transport.py
Python
mit
25,212
[ "VisIt" ]
4148a07a7d38757502c94d6a4d59c6bf6d1979a2b393a5566a64eb403cac1a23
import morb from morb import rbms, stats, updaters, trainers, monitors, units, parameters import theano import theano.tensor as T import numpy as np import gzip, cPickle import matplotlib.pyplot as plt plt.ion() from utils import generate_data, get_context import time # DEBUGGING from theano import ProfileMode #...
benanne/morb
examples/example_advparams.py
Python
gpl-3.0
6,204
[ "Gaussian" ]
ca1b2613b725df30f0cc585d537d592036773853096280f78dee2e23429c6d70
# Copyright (c) 2003-2013 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # 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, o...
godfryd/pylint
checkers/variables.py
Python
gpl-2.0
30,287
[ "VisIt" ]
9f94d5ab7045220b99cc1a9763113cfedcd09d0d8b8c4b86504fcfe034d040b7
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: dr-prodigy <maurizio....
ryanss/holidays.py
test/countries/test_honduras.py
Python
mit
1,659
[ "COLUMBUS" ]
b1d7e8ded8a46ddcbb3aae6ba5089b8d7a5f1f739d6ab16abdd60a4fa6ee26c0
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
Senseg/robotframework
src/robot/model/itemlist.py
Python
apache-2.0
2,357
[ "VisIt" ]
ddb2b2bec15765f3edbec64c91a3a2af38d9744603256ebf14cbea6ac4a4689b
__all__ = ['apply_transforms','apply_transforms_to_points'] import os from .. import core from ..core import ants_image as iio from .. import utils def apply_transforms(fixed, moving, transformlist, interpolator='linear', imagetype=0, whichtoinvert=None, compose=None, ...
ANTsX/ANTsPy
ants/registration/apply_transforms.py
Python
apache-2.0
12,151
[ "Gaussian" ]
74c792d38aa47e4c1f5d6eb21c13a365195610e42ad9ffb435b1b702372cfa00
import os import sys import logging from time import time import ujson as json import tornado.ioloop from tornado.web import gen from tornado.httpclient import AsyncHTTPClient, HTTPClient, HTTPRequest class AlertRunner(object): def __init__(self, conf): self.log = logging.getLogger("galaxy.alert_runner") self.c...
mcholste/galaxy
lib/alerts.py
Python
mit
2,881
[ "Galaxy" ]
9970661c0626654414ea32b5a5f7def655c9b629c48d518b654a366ab1e7a772
from PythonQt import QtCore, QtGui, QtUiTools import ddapp.applogic as app import math import numpy as np from ddapp.timercallback import TimerCallback from ddapp.simpletimer import SimpleTimer from ddapp.debugVis import DebugData from ddapp import robotstate import ddapp.visualization as vis import ddapp.vtkAll as vtk...
gizatt/director
src/python/ddapp/playbackpanel.py
Python
bsd-3-clause
14,010
[ "VTK" ]
40bdfec2d1dffce5d2401aef47ddea2eebea5014932e77ca4292379449023727
# -*- coding: utf-8 -*- from DeviceTemplate import Ui_Form import time, os, sys, gc from PyQt4 import QtCore, QtGui #from acq4.pyqtgraph.graphicsItems import ImageItem import acq4.Manager from acq4.util.imageAnalysis import * from acq4.util.debug import * import numpy as np import acq4.pyqtgraph as pg #import acq4.pyqt...
tropp/acq4
acq4/devices/Scanner/DeviceGui.py
Python
mit
20,304
[ "Gaussian" ]
b0af8bce4b75e608cb08aaf5040520d4127d69e8c6347e261590364c56f80989
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
magic/analysis/sources.py
Python
agpl-3.0
33,016
[ "Galaxy", "Gaussian" ]
dd893bbd7ea596f20cb50319bef026f2c3f1a5c0b8c56cd33c677f4fb11195be
import os import tempfile import shutil from django.test import TransactionTestCase from django.core.exceptions import ValidationError from django.core.files.uploadedfile import UploadedFile from django.contrib.auth.models import Group from django.db import IntegrityError from hs_core import hydroshare from hs_core.h...
ResearchSoftwareInstitute/MyHPOM
hs_app_netCDF/tests/test_netcdf_metadata.py
Python
bsd-3-clause
34,897
[ "NetCDF" ]
4fb1782e83fc301178ceffccd4448ebf2a8cf55f886c0c3b9fe9c4b5bd846ce4
# # Copyright 2016 The BigDL 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 applicable law or agreed to in ...
intel-analytics/BigDL
python/chronos/test/bigdl/chronos/data/test_tsdataset.py
Python
apache-2.0
48,695
[ "ORCA" ]
5e9a6a2276eb483b31a015d4e692af20cb9f5a1a9fcd92133b6fd6afc3a47ea0
# # Author: Henrique Pereira Coutada Miranda # Run a GW calculation using Yambo # from __future__ import print_function from yambopy import * from qepy import * from schedulerpy import * yambo = 'yambo' scheduler = Scheduler.factory #check if the nscf cycle is present if os.path.isdir('nscf/bn.save'): print('nsc...
alexmoratalla/yambopy
tutorial/bn/gw_bn.py
Python
bsd-3-clause
1,592
[ "Yambo" ]
9eb10b765d9a52c5c9f9764a4a794436d17be9af8dc5413786e990f955927042
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2011 Tim G L Lyons # Copyright (C) 2011 Doug Blank <doug.blank@gmail.com> # # This program is free software; you can redistribute it and/or modify ...
prculley/gramps
gramps/gen/filters/rules/person/__init__.py
Python
gpl-2.0
6,921
[ "Brian" ]
9674daca0a1769f4b9940be87e9a936af92cfb7f8d78112202d73951c3d2c2a8
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. 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 # # U...
sunqm/pyscf
pyscf/lib/diis.py
Python
apache-2.0
12,031
[ "PySCF" ]
a106b3b64a02b28409102a7704997b16b2356d6d409f2244aa99955b5e8c4f7f
""" This function saves all the mesh files as .hdf5 to be handled by the other modules and enable parallel computation Copyright 2017 Anna Wirbel 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 Softwa...
awirbel/debadvect
code/makeFiles.py
Python
gpl-3.0
2,586
[ "VTK" ]
e6b1cfbe9c46cf7bac033b638a7d07d3eebdf3e689677ddec1fef94aaa7134f0
from a_baharEntropy import * ## ## Biskit, a toolkit for the manipulation of macromolecular structures ## Copyright (C) 2004-2018 Raik Gruenberg & Johan Leckner ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free ...
graik/biskit
archive_biskit2/scripts/analysis/a_baharFluct.py
Python
gpl-3.0
2,090
[ "Amber" ]
95bdbf4229f29b93c238a75007f25a6d789b8c4ab52e5ffeca6659b993158567
from Components.Pixmap import MovingPixmap, MultiPixmap from Tools.Directories import resolveFilename, SCOPE_SKIN from xml.etree.ElementTree import ElementTree from Components.config import config, ConfigInteger from Components.RcModel import rc_model from boxbranding import getBoxType from enigma import ePoint config...
popazerty/beyonwiz-4.1
lib/python/Screens/Rc.py
Python
gpl-2.0
5,252
[ "VisIt" ]
275d940fb833a614f22ff1cbdb53c4631ef48c337e20ba7af2892f6fb6e6eef3
""" * Created by Zhenia Syryanyy (Yevgen Syryanyy) * e-mail: yuginboy@gmail.com * License: this code is under GPL license * Last modified: 2017-02-28 """ from feff.libs.class_Spectrum import Spectrum, GraphElement, TableData, BaseData from feff.libs.class_for_parallel_comparison import Model_for_spectra, FTR_gulp_to_fe...
yuginboy/from_GULP_to_FEFF
feff/libs/class_FTR_Spectrum_Compare_2_type_Models.py
Python
gpl-3.0
9,847
[ "FEFF" ]
b34970bb0be94f0d56fb3bbe19201054c09fba5ab795368359712800e3de21bf
from unittest import TestCase from nose import SkipTest from nose.tools import eq_, assert_raises, ok_ from parsimonious.exceptions import UndefinedLabel, BadGrammar from parsimonious.nodes import Node from parsimonious.grammar import rule_grammar, RuleVisitor, Grammar class BootstrapingGrammarTests(TestCase): ...
Zearin/python-parsimonious
parsimonious/tests/test_grammar.py
Python
mit
8,638
[ "VisIt" ]
728ec6cb712d5b5ae1bdc70233e70665c3de5bddfadefbcdda230faf2c58d553
# admin.py # This file controls the look and feel of the models within the Admin App # They appear in the admin app once they are registered at the bottom of # this code (same goes for the databrowse app) from django.conf import settings # needed if we use the GOOGLE_MAPS_API_KEY from settings # Import the admin si...
springmeyer/djmapnik
examples/geoadmin/world/admin.py
Python
bsd-3-clause
3,892
[ "VisIt" ]
136035af7c67857d1ab35b1c4082c5ef79d7db91f9bbb99fab446efe941f97d9
import numpy as np from pproc import DiscretizedPointProcess #from ess import elliptical_slice #from util import nd_grid_centers, whitened_mh, x_grid_centers #from kernel import MultiKronKernel #Kernel, SQEKernel #from kron_util import kron_mat_vec_prod #from mpl_toolkits.mplot3d.axes3d import Axes3D # # Spatio-tempor...
andymiller/flecks
models_modules/st_lgcp.py
Python
mit
8,337
[ "Gaussian" ]
c5c66f41c63ea49df7907681d79eff0353286c28ec49ab34ef6829ab34cf3096
# -*- encoding: utf-8 -*- # Yuuno - IPython + VapourSynth # Copyright (C) 2017 StuxCrystal (Roland Netzsch <stuxcrystal@encode.moe>) # # 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 Foundation, eit...
stuxcrystal/yuuno
yuuno_ipython/ipython/namespace.py
Python
lgpl-3.0
2,195
[ "MOE" ]
485c200446cd76471eaba024ed1869f6eb9aa99a3a9cb59323f15c3c74819fcd
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
liesbethvanherpe/NeuroM
neurom/fst/tests/test_get_features.py
Python
bsd-3-clause
35,643
[ "NEURON" ]
fdfdab585199aa92b1cec14a7d5de470dca86782d0423c00486a991272eb3869
import numpy as np def _make_gaussian(x_pts, y_pts, mfd, x_offset=0, y_offset=0): x0 = (x_pts[-1]+x_pts[0])/2 + x_offset y0 = (y_pts[-1]+y_pts[0])/2 + y_offset xx, yy = np.meshgrid(x_pts, y_pts) sigma = mfd * 0.707 / 2.355 sigma_x = sigma sigma_y = sigma gaus_2d = np.exp(-((xx-x0)**2/(2*s...
jtambasco/modesolverpy
modesolverpy/coupling_efficiency.py
Python
mit
2,678
[ "Gaussian" ]
09f7b139e8692ea4e4aa163ec8847160485ec9a5b4d9c5c8d244874acef15e49
import subprocess import os import json from scipy.optimize import linprog import sys import pickle import math import numpy #from pandas import * #this program will minimize cost per hour of distributed compute by utilizing Linear Programming to minimize cost/hour constrained by 1: minimum total cores desired at once...
kosticlab/aether
lp/lp.py
Python
mit
15,631
[ "VisIt" ]
ba2cdca469a3bc058d2c4b91d2ce0f843e54f9fe3081558dc62b2af71722ae20
# The MIT License (MIT) # # Copyright (c) 2015 Brian Wray (brian@wrocket.org) # # 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 # ...
wrocket/Tulip-Chess
tests/basic-tests/test_notation.py
Python
mit
13,407
[ "Brian" ]
4b2bcf53a545e3f56b2c8befc64ccbf730575a89c9f281680b41b08ea3796181
# 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
behavior_regularized_offline_rl/brac/configs/dcfg_gaussian1.py
Python
apache-2.0
1,490
[ "Gaussian" ]
c28d0ca6047d2de38b9efa790f4c5428bc1f00089fc66a98ce9f28e5b54fb129
r""" Nearly incompressible linear elasticity in mixed displacement-pressure formulation with comments. Find :math:`\ul{u}`, :math:`p` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) - \int_{\Omega} p\ \nabla \cdot \ul{v} = 0 \;, \quad \forall \ul{v} \;, - \int_{\Omega} ...
rc/sfepy
examples/linear_elasticity/linear_elastic_up.py
Python
bsd-3-clause
3,482
[ "VTK" ]
62c4261507ffd7dc180c31aab6abd91bde381482b3f158985512eae3aed00caf
import numpy,glob,os,struct,statistics,ctypes from multiprocessing import RawArray from . import blast class Score: def __init__(self): '''Create an object for storing scores.''' self.endNodesToEdgeD = {} self.numEdges = 0 # to start out self.strainPairScoreLocationD = {} ...
ecbush/xtrans
xenoGI/Score.py
Python
gpl-3.0
25,929
[ "BLAST" ]
6cbda79169fcfbe2b251926d6699169d6389db21899188a8e458b05a8e0167ce
# Copyright 2014 Google Inc. # 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 later # version. # # This program is distributed in the hope...
HackFisher/depot_tools
third_party/pylint/checkers/python3.py
Python
bsd-3-clause
19,887
[ "VisIt" ]
a5ff5360398c7485246879919a451d2730345ce03ffdbac531dc3c004d96e7d1
# -*- coding: utf-8 -*- import cv2 import numpy as np # import matplotlib.pyplot as plt from PIL import Image from difflib import SequenceMatcher from PIL import * from PIL import ImageEnhance import time from pytesseract import image_to_string, image_to_boxes import os def findcoordinateOfName(path): image = cv...
Hubert51/AutoGrading
learning/Ruijie/handwriting_recognization/test.py
Python
mit
7,393
[ "Gaussian" ]
fde7df03ccbf32a43076696690eb17095b06d2ec643e03fdf095048057442d9f
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/view/controls/exception.py
Python
gpl-2.0
3,572
[ "VisIt" ]
b1e5fa2c23bdc5897c1f258cb1e8235a5cd9d24666c8fa0e463fcfdd21a3c486
#!/usr/bin/env python # ============================================================================= # MODULE DOCSTRING # ============================================================================= """ Test State classes in mcmc.py. """ # ==========================================================================...
choderalab/openmmtools
openmmtools/tests/test_mcmc.py
Python
mit
23,342
[ "OpenMM" ]
648303ceb4ab7e8dea92a3d4694f61c46d70f8ee0975f051b027df358f8ffda2
# -*- coding: utf-8 -*- from datetime import datetime import gc from itertools import chain import logging import math import numpy import os import progressbar import re import subprocess from typing import Any, Dict, List, Tuple from django.db import connection from django.conf import settings from django.http impo...
tomka/CATMAID
django/applications/catmaid/control/nat/r.py
Python
gpl-3.0
73,199
[ "NEURON" ]
5e312290c7a54514522f5247c3cd764b165b2384cc21b061f01d6e77e1f00c94
# (C) British Crown Copyright 2010 - 2015, Met Office # # This file is part of Iris. # # Iris 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 3 of the License, or # (at your option) any l...
decvalts/iris
lib/iris/tests/test_plot.py
Python
gpl-3.0
32,069
[ "NetCDF" ]
82651d7c9c23472c88c687d59060afd6c022cf7216ea2b4212405b2a4ced8d06
#!/usr/bin/env python import sys import os try: from PyQt4 import QtCore, QtGui except ImportError: try: from PySide import QtCore, QtGui except ImportError: raise ImportError("Cannot load either PyQt or PySide") import vtk from vtk.qt4.QVTKRenderWindowInteractor import * from vtk.test im...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/GUISupport/Qt/Testing/Python/TestQVTKRenderWindowInteractor.py
Python
gpl-3.0
1,175
[ "VTK" ]
7ba2225934ba75d83afa820ce3e6d21dc7a2b2b8a35e18907713cf06d0439f9e
import os from ase import * from gpaw import GPAW, setup_paths from gpaw.vdw import FFTVDWFunctional from ase.parallel import rank, barrier from gpaw.atom.generator import Generator from gpaw.atom.configurations import parameters def test(): h=4.02 vdw = FFTVDWFunctional(verbose=1) ...
qsnake/gpaw
oldtest/vdw/gr.py
Python
gpl-3.0
1,774
[ "ASE", "GPAW" ]
560639d6622ca0c84dd5700f24595b40c33ca028f0492686935268ac4c711011
# -*- coding: utf-8 -*- # Copyright: (c) 2019, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type import json import os import pytest import ...
ghjm/ansible
test/units/galaxy/test_collection.py
Python
gpl-3.0
41,272
[ "Galaxy" ]
c9f83a9602d4451e57407c498ae8234e5cb22b9278a37af0d9a0490d9f2b0184
# 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.pkg.builtin.gromacs import Gromacs class GromacsSwaxs(Gromacs): """Modified Gromacs for small-angle scatt...
LLNL/spack
var/spack/repos/builtin/packages/gromacs-swaxs/package.py
Python
lgpl-2.1
4,763
[ "Gromacs" ]
99f8779474c4163178cb53dc180a7ad38989320670baa7f1312e349f9f903853
from collections import defaultdict from random import randrange, uniform import pytest from diofant import (E1, RR, Abs, Add, And, Chi, Ci, Ei, Heaviside, I, Integer, Integral, Mul, Piecewise, Rational, Shi, Si, Symbol, acosh, acoth, arg, asin, atan, besseli, besselj, cbrt, ...
skirpichev/omg
diofant/tests/integrals/test_meijerint.py
Python
bsd-3-clause
29,300
[ "Gaussian" ]
5781735978a734817533ad1660450307ee882949059050d8cd16fcdc869fe882
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # usercache - User state caching # Copyright (C) 2003-2010 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pu...
heromod/migrid
mig/shared/usercache.py
Python
gpl-2.0
9,630
[ "Brian" ]
130426dc1c0d4f16607c9c70f60ee34c8c1553f53351ddf6dfb3978aa34b2199
# # Copyright (C) 2001 greg Landrum # # unit testing code for the composite model COM server from __future__ import print_function from rdkit import RDConfig import unittest try: from win32com.client import Dispatch except ImportError: Dispatch = None @unittest.skipIf(Dispatch is None, 'Test for Windows only')...
rvianello/rdkit
rdkit/ML/Composite/UnitTestCOMServer.py
Python
bsd-3-clause
2,698
[ "RDKit" ]
9c4c7a9beb691c58f0d18a49107d3073edd0174e0b02b07ade558b340c09ea85
""" @name: Modules/Core/_test/test_Utilities.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2019 by D. Brian Kimmel @license: MIT License @note: Created on Jul 28, 2015 @Summary: """ __updated__ = '2019-09-07' # Import system type stuff from twisted.trial import u...
DBrianKimmel/PyHouse
Project/src/Modules/Core/_test/test_Utilities.py
Python
mit
816
[ "Brian" ]
8e53d4ab9ef04c39a0f18894885fc82ba7f4dc70fa5c3603bf25b8b010699c09
import re, os, sys from Tester import Tester from RunParallel import RunParallel # For TIMEOUT value class RunApp(Tester): @staticmethod def validParams(): params = Tester.validParams() params.addRequiredParam('input', "The input file to use for this test.") params.addParam('test_name', ...
danielru/moose
python/TestHarness/testers/RunApp.py
Python
lgpl-2.1
10,540
[ "MOOSE" ]
caacf42c3c6ed17bebb3f302e423aa8d3e3a05d91ec95fd818373d5542b2b5be
# Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
vidartf/hyperspy
hyperspy/tests/model/test_model_storing.py
Python
gpl-3.0
4,809
[ "Gaussian" ]
2a9a13f4f9659d3ef6ac03feae63d08492577cb10c2637b4907d08da43c868ae
import numpy as np from cryspy import const from cryspy import geo from cryspy import crystal from cryspy.fromstr import fromstr as fs from cryspy import tables def make_blender_script(atomset, metric, structurename, outfilename): assert isinstance(atomset, crystal.Atomset), \ "atomset must be of type cry...
cryspy-team/cryspy
cryspy/blender.py
Python
gpl-3.0
16,530
[ "CRYSTAL" ]
3162b766f341f2eb8b6a88befa051948abd11d5854369f5e47e6c3c9b814d843
import time from animation import * from asteroidField import * from background import * from loader import * from physics import * from player import * from powerup import * import pygame from pygame.locals import * from rotatingMenu_img import * from spacemenu import * from starField import * # teclas dos jogadore...
borgaster/SpaceWarsEvolved
main.app/Contents/Resources/main.py
Python
mit
16,811
[ "Galaxy" ]
f98d410133bbac1944da75410d8836cde24c2a63e73924020a223a8f44e92bd5
# Copyright (C) 2012, Christof Buchbender # BSD Licencse import math import sys import os import scipy from scipy.optimize import leastsq as least from numpy import asarray, mean, std, where, exp, log, sqrt, arange from copy import deepcopy as copy import random as rnd from generaltools import log_tools import astro...
buchbend/astrolyze
build/lib.linux-x86_64-2.7/astrolyze/functions/astro_functions.py
Python
bsd-3-clause
45,599
[ "Gaussian" ]
4e124ec7f4b8665e945d642b1f62f9122d25623d8ca01e0ce9fddf831a1ab734
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'IndicatorData.percent' db.alter_column('profiles_indicatordata', 'percent', self.gf('dja...
ProvidencePlan/Profiles
communityprofiles/profiles/oldmigrations/0027_auto__chg_field_indicatordata_percent.py
Python
mit
13,183
[ "MOE" ]
1c91ab54cff1b8f5a4321079a05556b425c5b9206ec9b6555ab902b04b808bf0
""" The :mod:`tslearn.metrics` module gathers time series similarity metrics. """ import warnings import numpy from joblib import Parallel, delayed from numba import njit, prange from scipy.spatial.distance import pdist, cdist from sklearn.metrics.pairwise import euclidean_distances from sklearn.utils import check_ra...
rtavenar/tslearn
tslearn/metrics.py
Python
bsd-2-clause
57,713
[ "Gaussian" ]
b38d61f44cdc8fbce755d6866924b8dcf86f7480b724a3673e04a04e64c56c26
# Copyright 2014-2018 The PySCF Developers. 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 appl...
gkc1000/pyscf
pyscf/nao/m_vxc_lil.py
Python
apache-2.0
2,160
[ "PySCF" ]
7ac905b072229aef61a408fc41f3f9356b1b9c3718ce069f9c5933407c4b9087
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-production-job-delete # Author : Stuart Paterson ######################################################################## """ Delete DIRAC job from WMS, if running it will be killed """ __RCSID__ = ...
Sbalbp/DIRAC
Interfaces/scripts/dirac-wms-job-delete.py
Python
gpl-3.0
2,211
[ "DIRAC" ]
9669b1299ab73e900423228d2d92eda9f39cd908ceb0b75600d00525418cd563
from bok_choy.promise import EmptyPromise from bok_choy.web_app_test import WebAppTest from a11y_tests.mixins import CoursePageTestsMixin from a11y_tests.pages import CourseEnrollmentDemographicsAgePage _multiprocess_can_split_ = True class CourseEnrollmentDemographicsAgeTests(CoursePageTestsMixin, WebAppTest): ...
edx/edx-analytics-dashboard
a11y_tests/test_course_enrollment_demographics_axs.py
Python
agpl-3.0
1,371
[ "VisIt" ]
96bc3295bd518c25b6e8954ace85724fdd9a12c424d675e13852b67e144f8c77
#Chien Kai Wang, Brian Wan, William Chen #TCP CHAT CLIENT #CITATION: #http://www.bogotobogo.com/python/python_network_programming_tcp_server_client_chat_server_chat_client_select.php #by K Hong import pyaudio import sys import socket import select import time import pickle from array import array from struct impor...
bmwanz/AudioMessenger
Trial Code/client_RSA.py
Python
apache-2.0
5,781
[ "Brian" ]
0377525ab4ccf2e18d6cf55c01cf71a3a46caab0837908e4672922cc7f244344
#usage: python copyrightify <base_dir> #apply copyright header block to all relevant files import argparse import os from datetime import date #extensions to apply copyright header block to default_extensions = [ "scala" ] year = date.today().year copyright = "/*\n" + " * Copyright (c) " + str(year) +" Oracle and/o...
TiarkRompf/Relite
utl/copyrightify.py
Python
agpl-3.0
2,527
[ "VisIt" ]
3be543752be71cc3bd0f8358113904a1651a956db3fe472a3cf7212435600f9b
# -*- coding: utf-8 -*- """ *************************************************************************** dataobject.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ****************************...
p0cisk/Quantum-GIS
python/plugins/processing/tools/dataobjects.py
Python
gpl-2.0
16,911
[ "NetCDF" ]
2265af93315382daade8a3eec86a448531a8c6f779d0d279cc890cd4fb0c546b
# Setup script for megaman: scalable manifold learning # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE import io import os import re import sys import subprocess def read(path, encoding='utf-8'): path = os.path.join(os.path.dirname(__file__), path) with io.open(path, encoding=en...
jakevdp/megaman
setup.py
Python
bsd-2-clause
3,827
[ "VisIt" ]
4cd9442ea6ddcecd9726197e5246678db1f4b6eb05a1b59bb976c0137107d37a
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Rp-Bp documentation build configuration file, created by # sphinx-quickstart on Sat Feb 3 15:02:40 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # auto...
dieterich-lab/rp-bp
docs/conf.py
Python
mit
5,837
[ "Biopython", "pysam" ]
a0a5968ca41573446c4eedf4fd7c09e4f9ec2bb012e6fa5c9b125ea387ad2d2b
"""\ Calculate density of cells in embeddings """ import numpy as np from anndata import AnnData from typing import Union, Optional, Sequence from .. import logging as logg from .._utils import sanitize_anndata def _calc_density(x: np.ndarray, y: np.ndarray): """\ Calculates the density of points in 2 dimen...
theislab/scanpy
scanpy/tools/_embedding_density.py
Python
bsd-3-clause
5,990
[ "Gaussian" ]
55e01054758f25ab555d3c888c94da7ec9f3031755bd5fc411017ec488072af9
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements input and output processing from Gaussian. """ import re import warnings import numpy as np import scipy.constants as cst from monty.io import zopen from pymatgen.core.composition ...
davidwaroquiers/pymatgen
pymatgen/io/gaussian.py
Python
mit
59,149
[ "Gaussian", "pymatgen" ]
d22ad28e067db3ad5ba0f82854e81c2d911d02b25bde198710423fd9785aeabb
# Copyright (C) 2014,2015 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
ishidawataru/gobgp
tools/pyang_plugins/bgpyang2golang.py
Python
apache-2.0
24,971
[ "VisIt" ]
4288eb5da48f95bca00d6dbdb5219d8ed5a2be4974f74ac4f4f5971e7b946be3
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import os import pyauto_functional # Must be imported before pyauto import pyauto import test_utils class NTPTest(p...
leighpauls/k2cro4
chrome/test/functional/ntp.py
Python
bsd-3-clause
19,947
[ "VisIt" ]
36355c9985d5f2255e0b8f8dc2955a60b240ee0f03eb141307e6ef84c130ce58
""" See test_cfsom(self) and ImagePoster for an example of how to use and call the PlotEngine system from a simulation. """ import unittest import random from pprint import pprint from math import pi import param import topo from topo.pattern import Gaussian from topo.plotting import plot from topo.plotting.bitmap i...
Tasignotas/topographica_mirror
topo/tests/unit/testcfsom.py
Python
bsd-3-clause
5,393
[ "Gaussian" ]
ed3ae798daf57cf391e615087517e7c23c260ae029173684f8edcf92353dac9f
import numpy as np from gpaw import debug from gpaw.io.tar import Reader, Writer from gpaw.utilities import is_contiguous from gpaw.analyse.observers import Observer from gpaw.transformers import Transformer from gpaw.tddft import attosec_to_autime, eV_to_aufrequency # -----------------------------------------------...
robwarm/gpaw-symm
gpaw/tddft/fourier.py
Python
gpl-3.0
11,330
[ "GPAW", "Gaussian", "NetCDF" ]
0f282c04a5eb1584b16d79537b65144716319b53a1fc52022cdcec6f01a319e8
"""Analyze python import statements.""" from __future__ import absolute_import, print_function import ast import os import uuid from lib.util import ( display, ApplicationError, ) VIRTUAL_PACKAGES = set([ 'ansible.module_utils.six', ]) def get_python_module_utils_imports(compile_targets): """Retur...
Sodki/ansible
test/runner/lib/import_analysis.py
Python
gpl-3.0
8,634
[ "VisIt" ]
5a308227b5fc2fc7771631305c851aa2ebd516cc2b46c25e40985fdc06f7c0d3
"""Testing for Gaussian process regression """ # Author: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # License: BSD 3 clause import numpy as np from scipy.optimize import approx_fprime from sklearn.gaussian_process import GaussianProcessRegressor from sklearn.gaussian_process.kernels \ import RBF, Constan...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/sklearn/gaussian_process/tests/test_gpr.py
Python
mit
13,070
[ "Gaussian" ]
1acad0cc4824bac1ac5fcc608f6353322e89a9db0a9fae57a1db0bfc8a6d7ef1
#! /usr/bin/env python2 ############################################################################ # Copyright (C) 2011 by Hans Robeers # # # # This program is free software; you can redistribute it and#...
hrobeers/finFoil_legacy
console.py
Python
gpl-3.0
2,046
[ "Mayavi" ]
491612d98081e7f0d42e7d667a7f37c3c0b93de72897ce08ed7d7a356b23d15b
# ANNarchy - EIF_cond_exp # # Network of EIF neurons with exponentially decreasing conductance-based synapses. # # This is a reimplementation of the Brian example: # # http://brian.readthedocs.org/en/1.4.1/examples-misc_expIF_network.html # # authors: Helge Uelo Dinkelbach, Julien Vitay from ANNarchy import...
vitay/ANNarchy
examples/pyNN/EIF_cond_exp.py
Python
gpl-2.0
2,251
[ "Brian", "NEURON" ]
bd8c89a1d10b328b48c3b3fa07d7d7e8add980eb417649dc701a3e82c15d01ca
import sys import codecs import gzip import argparse import cPickle import theano import numpy from theano import tensor as T from event_ae import EventAE from process_data import DataProcessor argparser = argparse.ArgumentParser(description="Score using Selectional Preference AutoencoDEr") argparser.add_argument('te...
pdasigi/spade
score.py
Python
gpl-2.0
10,654
[ "Gaussian" ]
2d514806059f17bd1ba4a16606467c2b956431a8b16309abfcbaae19e652d6f7
# Copyright (C) 2012 met.no # # 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 later version. # # This program is distributed in the ho...
metno/python-diana
python/metno/bdiana.py
Python
gpl-2.0
24,142
[ "NetCDF" ]
761ad4362aa47dca633cc022e63f36bab789d16a73372b83663c808a6282df09
#!/usr/bin/env python from __future__ import division __license__ = "GPL" __version__ = "1.9.1-dev" __maintainer__ = "Jenya Kopylov" __email__ = "jenya.kopylov@gmail.com" from qiime.util import (parse_command_line_parameters, get_options_lookup, make_option) from qiime....
ssorgatem/qiime
scripts/parallel_pick_otus_sortmerna.py
Python
gpl-2.0
5,196
[ "BLAST" ]
afd2b19ef54f1301521cd5f282d656cd6b8f6315e7b9ff515c0055efeeb540f2
# -*- coding: utf-8 -*- ''' Module for retrieving random information from Random.org .. versionadded:: 2015.5.0 :configuration: This module can be used by either passing an api key and version directly or by specifying both in a configuration profile in the salt master/minion config. For example: .....
smallyear/linuxLearn
salt/salt/modules/random_org.py
Python
apache-2.0
25,227
[ "Gaussian" ]
bee4f5e771fb18caa4a61f8bf05924bf7e851e5de70768c7c7e0692121f62a53
""" PureMVC Python Demo - wxPython Employee Admin By Toby de Havilland <toby.de.havilland@puremvc.org> Copyright(c) 2007-08 Toby de Havilland, Some rights reserved. """ import puremvc.patterns.proxy import enum, vo, main class UserProxy(puremvc.patterns.proxy.Proxy): NAME = "UserProxy" def __init__(s...
PureMVC/puremvc-python-demo-wxpython-employeeadmin
src/model.py
Python
bsd-3-clause
2,996
[ "MOE" ]
2a988d459e41479778b18b4230c74f14cd594727fba1f99e8cbfa64d2eb53c55
# GromacsWrapper: xpm.py # Copyright (c) 2012 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ :mod:`gromacs.fileformats.convert` --- converting entries of tables ============================================================...
Becksteinlab/GromacsWrapper
gromacs/fileformats/convert.py
Python
gpl-3.0
8,143
[ "Gromacs" ]
f0278d79a1ecdfd1d438dc8b98ca8e4cbe81ff876b7dca4d134ee6716a10275f
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt def curve_fitting(degree, num): x = np.linspace(0, 1) plt.plot(x, np.sin(2 * np.pi * x), 'g', linewidth=2, label='sin(2πx)') gaussian = np.random.normal(0, 0.1, num) rx = np.linspace(0, 1, num) ry = np.sin...
zlcnup/csmath
hw1_curve_fitting/curve_fitting.py
Python
mit
950
[ "Gaussian" ]
1e1334176a4f7bf3d567567c498a95b21eccb40d8a0ddc3f2a628d6c792dc93e
import unittest from test import test_support from itertools import * from weakref import proxy import sys import operator import random def onearg(x): 'Test function of one argument' return 2*x def errfunc(*args): 'Test function that raises an error' raise ValueError def gen3(): 'Non-restartable...
mancoast/CPythonPyc_test
cpython/251_test_itertools.py
Python
gpl-3.0
34,142
[ "GULP" ]
610e78e775c395ceef3454ce1f8d9f36f5a70cc55b084b5d1e6eb2ecefe3b847
# Sample module in the public domain. Feel free to use this as a template # for your modules (and you can remove this header and take complete credit # and liability) # # Contact: Brian Carrier [carrier <at> sleuthkit [dot] org] # # This is free and unencumbered software released into the public domain. # # Anyone is f...
mhmdfy/autopsy
pythonExamples/fileIngestModule.py
Python
apache-2.0
8,593
[ "Brian" ]
dee17800e19d3d4a6e9f58836935627e73a0395a97a689c243afc037cdf1434c
#!/usr/bin/env python2 ############################################################################### # ------------------------- Description --------------------------------------- ############################################################################### # This script will be used to generate daily met fields ...
stevenjoelbrey/PMFutures
Python/average6HourlyData.py
Python
mit
14,668
[ "NetCDF" ]
5c5bcfacc1111ccda44317c83774618e00157651416dcc2dbbd9f17bcb78318d
# This script is a modified implementation of an official NEST example # that is able to run as task on the Unified Portal, # see www.nest-simulator.org # # Contributors: # Johanna Senk (j.senk@fz-juelich.de) # Long Phan (l.phan@fz-juelich.de # # ###################################################################...
jakobj/UP-Tasks
NEST/tsodyks_depressing_task/tsodyks_depressing_task.py
Python
gpl-2.0
6,859
[ "NEURON" ]
708f54c5c32b9fd404db1e1c1d15f5334beaff3f786e0d0d6748a14f300e2ebf
""" This test verifies that vtk's Xdmf reader and writer work in general. It generates a variety of small data sets, writing each one to and reading it from an xdmf file and compares the read in generated result with the read in result and passes if each closely matches. """ import os import sys import vtk hasresource...
berendkleinhaneveld/VTK
IO/Xdmf3/Testing/Python/VToXLoop.py
Python
bsd-3-clause
11,902
[ "VTK" ]
8418cedf190212e45ccd678328ede5e72c7c2f7e6eb03703ea23396342b808f7
import os, sys, math, string, time import numpy as np m = 100; # grid size g = 9.8; # gravitational constant dt = 0.01; # hardwired timestep dx = 1.0; dy = 1.0; timesteps = 20; # drop interval def droplet(height, width): ''' DROPLET ...
songweijia/hdfsrs
experiments/waterwave/javaclient/newGenWaveData.py
Python
apache-2.0
4,123
[ "Gaussian" ]
a796cffad91d2e1089e54db61e5ea1274992f6aa4b5b5435cf20efc0bb82e418
import numpy as np def LU(A): r"""Factor a square matrix by Gaussian elimination. The argument A should be a square matrix (an m-by-m numpy array). The outputs L and U are also m-by-m. L is lower-triangular with unit diagonal entries and U is strictly upper-triangular. This impl...
ketch/rock-solid-code-demo
factor.py
Python
bsd-2-clause
1,469
[ "Gaussian" ]
a1c80f273aefdcc771e05ae6fdf4966a5f02eec66e526d8486309bef63af6746
''' Created on 9/02/2010 @author: brian ''' import unittest import os from Tkinter import Tk from parser import fill_tree # from scipysim.gui.codegroup import make_tree class CodeGroupTests(unittest.TestCase): # TODO def setUp( self ): src_dir = os.path.normpath( __file__ + '../../../' ) sel...
mm318/scipysim-nogui
scipysim_tests/test_core_parser.py
Python
gpl-3.0
893
[ "Brian" ]
31a6f4dae86724948f7542449c9161ea1c7d760ddd4e60b0ea86c7605b9be731
from PyQt4 import QtCore from PyQt4 import QtGui from Action import Behavior from Action import LED from Action import Motion from Action import ReplaceableSpeech from Action import Speech from Action import Stiffness from Action import Wait from EmpathyMotionList import EmpathyMotionList from EmpathyRandomButton impor...
mattBrzezinski/Hydrogen
robot-controller/Study/EmpathyGUI.py
Python
mit
51,980
[ "exciting" ]
52aada5494cf5529dea21b8f5893372550374b8a92b0f85e8bb37475884399d0
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
fedepad/espressopp
src/esutil/RNG.py
Python
gpl-3.0
1,753
[ "ESPResSo" ]
2f9da1f9c879048352c057f71fcefe6bb06e8be2d5a1937ecfeff57ed35d2208