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/env python from __future__ import print_function # python3-style print from flask import Flask, render_template, request import examples.e0 as e0 import examples.e1 as e1 import examples.e2 as e2 import examples.e3 as e3 import examples.e4 as e4 import examples.e5 as e5 import examples.e6 as e6 impor...
grubbcode/minplot
application.py
Python
mit
7,912
[ "VisIt" ]
39c7fb6f75c5675039ff20198e9c54b274a7bd6bd1c1b0546f4d58bbb7be6c0d
from __future__ import division from iotbx.pdb.multimer_reconstruction import multimer from scitbx.array_family import flex from libtbx import group_args import mmtbx.f_model import scitbx.lbfgs from iotbx import pdb from cctbx import xray import sys,os class minimizer(object): def __init__(self, fmodel, ...
youdar/work
work/NCS/refinement_strict_ncs.py
Python
mit
6,121
[ "CRYSTAL" ]
6515ea602431d95eaa54770d5509f0634fba77be092f4e8ed1defdcecbe40a91
__author__ = "Just van den Broecke" __date__ = "Dec 21, 2011 3:46:27 PM$" """ Naam: BAGObject.py Omschrijving: Classes voor BAG-objecten Per BAG-objecttype (woonplaats, openbareruimte, nummeraanduiding, ligplaats, standplaats, verblijfsobject, pand) is er een aparte class. De BAGObject classes zijn pure ...
opengeogroep/NLExtract
bag/src/bagobject.py
Python
gpl-3.0
30,138
[ "Elk" ]
73c41f5726b500a36eff20dfa99ddf4c721ca4cbb325d5c36640eb46d4a61292
"""Creates a 2D hyperspectrum consisting of two gaussians and plots it. This example can serve as starting point to test other functionalities on the simulated hyperspectrum. """ # Create an empty spectrum s = signals.Spectrum(np.zeros((32, 32, 1024))) # Generate some simple data: two Gaussians with random centers...
sillvan/hyperspy
examples/simple_simulations/two_gaussians.py
Python
gpl-3.0
1,406
[ "Gaussian" ]
7bb63bcea112750faf640eac4cb45b7c93d18917f23fdd0aece92e896bb22f67
""" ReportCLI class implementing command line interface to DIRAC Accounting ReportGenerator Service. It is not complete yet """ from __future__ import print_function __RCSID__ = "$Id$" import sys import datetime from DIRAC.Core.Base.CLI import CLI, colorize from DIRAC.Core.Utilities import ExitCallback from DIRAC.Ac...
petricm/DIRAC
AccountingSystem/Client/ReportCLI.py
Python
gpl-3.0
2,081
[ "DIRAC" ]
a053dd9ddf3090d1e9bf7d440d33ea56fd50073be0eb1e83f51443d4c6efd574
from math import pi from time import sleep from euclid import Vector2 from imutils.video import VideoStream from approxeng.holochassis.chassis import Motion from approxeng.picamera import find_lines from approxeng.viridia import IntervalCheck from approxeng.viridia.task import Task class LineFollowerTask(Task): ...
ApproxEng/viridia
src/python/approxeng/viridia/tasks/camera.py
Python
apache-2.0
7,092
[ "Gaussian" ]
e1f1c255ccbb5e2b85f1da9ababf04ee3694b39f2e4befc0ee3944848916a615
import sys import antlr class Visitor(antlr.ASTVisitor): def __init__(self,*args): super(Visitor,self).__init__(*args) self.level = 0 if not args: self.cout = sys.stdout return if isinstance(args[0],file): self.cout = args[0] return assert 0 ...
rmartinho/boo
lib/antlr-2.7.5/examples/python/heteroAST/hetero.py
Python
bsd-3-clause
3,610
[ "VisIt" ]
ef902228eace828d73dd43b85050bbf2cec10370270b63904c0c3b595681ce45
########################################################################## # this script was generated by openmm-builder. to customize it further, # you can save the file to disk and edit it with your favorite editor. ########################################################################## from __future__ import pri...
machristie/airavata
sandbox/simstream/example/openmm_example/application/alanine_dipeptide.py
Python
apache-2.0
1,902
[ "OpenMM" ]
4cf54bdfb1442fce23813f4e3461e96ef0560c7b439837b3b7d8db34aa5d7502
from __future__ import absolute_import from __future__ import print_function import six # {{{ logic that preserves NotImplemented def not_ni(a): if a == NotImplemented: return NotImplemented else: return not a def and_ni(a, b): if a == NotImplemented or b == NotImplemented: retu...
inducer/synoptic
synoptic/query.py
Python
mit
15,386
[ "VisIt" ]
5117a09965247d1607db36b5450322fdb888fde7713119076a4afa1616e42252
# -*- coding: utf-8 -*- """ End-to-end tests for the Account Settings page. """ from unittest import skip from nose.plugins.attrib import attr from bok_choy.web_app_test import WebAppTest from bok_choy.page_object import XSS_INJECTION from ...pages.lms.account_settings import AccountSettingsPage from ...pages.lms.aut...
waheedahmed/edx-platform
common/test/acceptance/tests/lms/test_account_settings.py
Python
agpl-3.0
18,554
[ "VisIt" ]
1ad4d64495e0118b0e96b9de58d9c34cea2f4ec127d20dc1a86d82df8124ecc2
#!/usr/bin/python # -*- coding: utf8 -*- """ wget http://people.duke.edu/~ccc14/pcfb/_downloads/ls_orchid.fasta wget ftp://ftp.expasy.org/databases/uniprot/current_release/knowledgebase/complete/uniprot_sprot.dat.gz """ from Bio import Entrez from Bio import Medline from Bio import SeqIO from Bio.Alphabet import IUPAC ...
quchunguang/test
testpy/testbiopython.py
Python
mit
9,390
[ "Biopython" ]
f695bce8835966d9f4be37111bace1ff12f2414cce331490a9d5dbbb510544aa
from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData import CogHQLoader from toontown.toonbase import ToontownGlobals from direct.gui import DirectGui from toontown.toonbase import TTLocalizer from toontown.toon import Toon from direct.fsm import State from toontown.coghq import BossbotHQ...
silly-wacky-3-town-toon/SOURCE-COD
toontown/coghq/BossbotCogHQLoader.py
Python
apache-2.0
6,920
[ "VisIt" ]
5b19d962c28ffbaaf7ab23894c617c1562dda60a79926c2bc55d35a611b0bd48
import re import pytz import datetime as dt from collections import defaultdict import lxml.html from openstates.scrape import Scraper, Bill, VoteEvent from utils import LXMLMixin from .utils import clean_text, house_get_actor_from_action, senate_get_actor_from_action bill_types = { "HB ": "bill", "HJR": "j...
hiteshgarg14/openstates
scrapers/mo/bills.py
Python
gpl-3.0
26,867
[ "VisIt" ]
7632fe8292a037ce06615a6ebe12dc13c4aaf020d3fb75d21e84c08c896dceb6
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import click import datetime from os import path from lib.common.config import DATA_DIR from lib.common.utils import Echo as echo from lib.services.api import KcwikiApi as Api from lib.services.subtitle import SubtitleService, EnglishSubtitleParser @click.grou...
kcwikizh/kcwiki-scripts
lib/commands/update.py
Python
mit
2,098
[ "MOE" ]
001161cceb036e64f3d03f26d6208963254a5f4c7e65d5ea4eba26c60d131f7f
# # Copyright (C) 2013,2014,2015,2016 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)...
KonradBreitsprecher/espresso
testsuite/interactions_bond_angle.py
Python
gpl-3.0
3,560
[ "ESPResSo" ]
8832786c2ba4355d1f4a4b67ce90cb2f9474e5c21b7095706f4534333c8c5b9b
# -*- coding: UTF-8 -*- # # Copyright (c) 2008, Yung-Yu Chen <yyc@solvcon.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyrigh...
yungyuc/solvcon
solvcon/io/__init__.py
Python
bsd-3-clause
1,782
[ "NetCDF", "VTK" ]
73fc499e5f9a4225423b2d6691993bea12309c755fe1ede446e9a1150d377065
# -*- coding: UTF-8 -*- # # Copyright (c) 2008, Yung-Yu Chen <yyc@solvcon.net> # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of source code must retain the above copyrigh...
yungyuc/solvcon
solvcon/solver_legacy.py
Python
bsd-3-clause
24,796
[ "VTK" ]
9a851408d9d51b079694026af15513bcdd01c5d3648bb041100609187e2f6118
from __future__ import print_function import unittest import os import io from rdkit.six.moves import cPickle as pickle from rdkit import Chem from rdkit.Chem import rdPartialCharges from rdkit import RDConfig def feq(v1,v2,tol2=1e-4): return abs(v1-v2)<=tol2 class TestCase(unittest.TestCase): def setUp(sel...
adalke/rdkit
Code/GraphMol/PartialCharges/Wrap/testPartialCharges.py
Python
bsd-3-clause
4,705
[ "RDKit" ]
c069257a47f57f6700874caf26762c6b9bd2c35fe0b00cdfeb7024a5233e6e9d
''' ========================================= Inference for Non-Linear Gaussian Systems ========================================= This module contains the Unscented Kalman Filter (Wan, van der Merwe 2000) for state estimation in systems with non-Gaussian noise and non-linear dynamics ''' from collections import namedt...
PierrotLC/pykalman
pykalman/unscented.py
Python
bsd-3-clause
51,819
[ "Gaussian" ]
fb77e2f377674defb77771246ef174c386c64382df3fd87b5459aec6d9266e85
#!/usr/bin/env python ######################################## #Globale Karte fuer tests # from Rabea Amther ######################################## # http://gfesuite.noaa.gov/developer/netCDFPythonInterface.html import os import netCDF4 import pylab as pl import numpy as np import matplotlib as mpl from netCDF4 imp...
CopyChat/Plotting
Python/ssr_summary.meteofrance.py
Python
gpl-3.0
3,351
[ "NetCDF" ]
581c0d70325067ba26a6508ba5d0000c073707caa607965fedcbbccf91e2ecf9
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, cosh, sinc, hyperexpand, exp, simplify, sqrt, pi, erf, erfc, sin, cos, exp_polar, polygamma, hyper, log, expand_func) from sympy.integrals.meijerint import (_rewrite_single, _rewrite1, meijerint_indefinite, _...
NikNitro/Python-iBeacon-Scan
sympy/integrals/tests/test_meijerint.py
Python
gpl-3.0
28,412
[ "Gaussian" ]
9bc663a17fbec2d7d126643c53f78314e37f1d01ab427b3544573b88d00e2b25
""" Acceptance tests for studio related to the outline page. """ import json from datetime import datetime, timedelta import itertools from pytz import UTC from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from ...pages.studio.settings_advanced import AdvancedSettingsPage from ...pages.stu...
simbs/edx-platform
common/test/acceptance/tests/studio/test_studio_outline.py
Python
agpl-3.0
81,777
[ "VisIt" ]
46f1db0da32edcd0f120df29c91840299f8e5a5e3846ac5b44fde205b38efeae
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # # fractal.py # # A script who display a fractal based on a tuple. # # This program is free software licensed under the Creative Commons # Attribution-NonCommercial-ShareAlike 3.0 France License. # To view a copy of this license, visit # http://creativecommo...
Meier-Link/fractaliser
fractaliser.py
Python
unlicense
5,370
[ "VisIt" ]
2a12a5e2b7421cf869c72a7ba324c86b9472ba5c28867c6190079f728ec1c8c2
# -*- coding: utf-8 -*- def do_hello(): print(u"ciao RASPA !") tot = 1 + 1 print(tot) def fib_from_string(x): s = "0112358" if x < 0 or x > 6: raise ValueError("Valore non ammesso {}".format(x)) else: return int(s[x]) def fib_from_list(x): l = [0,1,1,2,3,5,8] if x...
feroda/lessons-python4beginners
students/2016-09-04/raspa77/fibonacci.py
Python
agpl-3.0
1,129
[ "RASPA" ]
27eb4b893cf99e150a881699d0e434a0ec2c96aae416c4bb292b64fa68814a7c
# -*- coding: utf-8 -*- ############################################################################## # Filename: libExtractStar.py # Version: $Revision$ # Description: Extract_star utilities module # Modified at: $Date$ # Author: $Author$ # $Id$ ##################################################...
snfactory/extract-star
extract_star/libExtractStar.py
Python
mit
75,122
[ "Gaussian" ]
68ee06ddc75c1f2a6b820cc2d44f7350aace63fedd2d8657635d5b1bfcc99d31
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2009 Gary Burton # Copyright (C) 2010 Jakim Friant # Copyright (C) 2020 Jan Sparreboom # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU G...
gramps-project/addons-source
ToDoReport/TodoReport.py
Python
gpl-2.0
22,009
[ "Brian" ]
1885bb73e85b2a595dc50abcab4e57c151c9bc487c644e02e98bfc1971242bfd
#!/usr/bin/env python # encoding: utf-8 # ====================================================================== # Package: pyclaw.io # File: __init__.py # Created: Feb 10, 2008 # Author: Kyle Mandli # ====================================================================== """Output package for...
clawpack/clawpack-4.x
python/pyclaw/io/__init__.py
Python
bsd-3-clause
1,375
[ "NetCDF" ]
700c56a24afcde795b6cfcd08ccbadb7e2f16c14c1e9d8cdb3cec604639eb267
""" # Copyright Nick Cheng, Brian Harrington, Danny Heap, Venkat Korapaty, # 2013, 2014, 2015 # Distributed under the terms of the GNU General Public License. # # This file is part of Assignment 2, CSCA48, Winter 2015 # # This is free software: you can redistribute it and/or modify # it under the terms of the GNU Gener...
venkatkorapaty/Regex
regex_functions.py
Python
gpl-2.0
12,678
[ "Brian" ]
776134c43a9cf782f8c219f9199fd8f2bfd996a804f7f0d6d668a03e4dd2a704
import pytest from capybara.exceptions import ExpectationNotMet @pytest.mark.requires("css") class TestAssertStyle: def test_is_true_if_the_elements_style_contains_the_given_properties(self, session): session.visit("/with_html") assert session.find("css", "#first").assert_style({"display": "block...
elliterate/capybara.py
capybara/tests/session/test_assert_style.py
Python
mit
1,035
[ "VisIt" ]
97af117c499d6fb7c416c85522e7a24b615bb66e7bab4dcba77c5e08fadbb640
#!/usr/bin/env python from __future__ import division __author__ = "Jai Ram Rideout" __copyright__ = "Copyright 2012, The QIIME project" __credits__ = ["Jai Ram Rideout"] __license__ = "GPL" __version__ = "1.8.0-dev" __maintainer__ = "Jai Ram Rideout" __email__ = "jai.rideout@gmail.com" from os.path import split from...
wasade/qiime
qiime/parallel/identify_chimeric_seqs.py
Python
gpl-2.0
9,174
[ "BLAST" ]
20febf13053b39960b465b7329b633cb9bcac5bec1162d6b634ba10d95de801d
""" Functional tests ~~~~~~~~~~~~~~~~ A functional test suite for running through the key actions in the admin UI. Note that the best way to run this is by running ``make functional-test`` from the project's root directory. If run directly (e.g., via ``nosetests example``, the example app should already be running in ...
kadams54/switchboard
example/tests.py
Python
apache-2.0
7,503
[ "VisIt" ]
832412f3f710e1e7147fe6d7fe3457f9d2f13eae7398930192e764bbdabd3340
from toee import * from utilities import * from combat_standard_routines import * def san_dialog( attachee, triggerer ): game.global_flags[70] = 1 if (attachee.leader_get() != OBJ_HANDLE_NULL): triggerer.begin_dialog( attachee, 350 ) ## otis in party elif (game.global_vars[903] == 32 and attachee.map != 5051 a...
GrognardsFromHell/TemplePlus
tpdatasrc/co8fixes/scr/py00097otis.py
Python
mit
8,857
[ "Amber" ]
aea5d95d26c280a01a87027956e287a8c7a0f930dfe5cd60dddb5461fd1022ce
"""A grid plane component. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005-2006, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance, Enum, Int, Range from traitsui.api import View, Group, Item from tvtk.api import tvtk from apptools.persis...
liulion/mayavi
mayavi/components/grid_plane.py
Python
bsd-3-clause
6,556
[ "Mayavi" ]
8eecbb26a55a3416fb01ee8f1c06a23da012f9eec068cb767b2ae3dd4784e20f
# coding: utf-8 from __future__ import unicode_literals import unittest import os import numpy as np import shutil from pymatgen.io.vaspio_set import MITVaspInputSet, MITHSEVaspInputSet, \ MPVaspInputSet, MITGGAVaspInputSet, MITNEBVaspInputSet,\ MPStaticVaspInputSet, MPNonSCFVaspInputSet, MITMDVaspInputSet,\...
Dioptas/pymatgen
pymatgen/io/tests/test_vaspio_set.py
Python
mit
16,493
[ "pymatgen" ]
9ca90a755e867ebae8c4b4336629e62ef19f0b7227d10720031ba4b371fea60d
#!flask/bin/python from app import app, models, db from flask.ext.sqlalchemy import SQLAlchemy import datetime import os, json from app.models import User from app.models import Visits from app.models import Beacon import random beacon1 = Beacon(beacon_identifier="Fake1", location="Google X Labs", picture='/static/ima...
SohKai/ChronoLogger
web/db_populate.py
Python
mit
7,015
[ "VisIt" ]
b66d4e84b217f12de7da6d05a94628d811ab7954f7d5598368e21b811dc5fba8
# -*- coding: utf-8 -*- """ Tests for bandwidth selection and calculation. Author: Padarn Wilson """ import numpy as np from scipy import stats from statsmodels.sandbox.nonparametric import kernels from statsmodels.distributions.mixture_rvs import mixture_rvs from statsmodels.nonparametric.bandwidths import select_...
statsmodels/statsmodels
statsmodels/nonparametric/tests/test_bandwidths.py
Python
bsd-3-clause
2,495
[ "Gaussian" ]
f4fbd3c7a0346c20662fc3d13dfe98661f23bb0ff03f050b87c7835310933654
#!/usr/bin/python # -*- coding: utf-8 -*- # # Converts query results from SpaceCurve System into strict GeoJSON. # # for Python 2.7 # # # For help: # # python sc-to-geojson.py --help # # and visit: https://github.com/SpaceCurve/schema-discovery # # @copyright (C) SpaceCurve, Inc. 2015 import os import re import sys im...
SpaceCurve/schema-discovery
sc-to-geojson.py
Python
apache-2.0
1,373
[ "VisIt" ]
d06bed7586eacddfaf5f7109c99e5a2fb256bf03c5c47fdd82342939faf448cc
# -*- coding: utf-8 -*- """ Created on Thu Jan 07 11:09:10 2016 @author: Radu """ from neuron import h from math import sin, cos class BallAndStick(object): """Two-section cell: A soma with active channels and a dendrite with passive properties.""" def __init__(self): self.x = self.y = self.z = 0...
penguinscontrol/Spinal-Cord-Modeling
ClarkesNetwork/ballandstick_passive.py
Python
gpl-2.0
4,811
[ "NEURON" ]
4a61baafae40e72944278c713082f5e8cd18eef2d0cb64cc1b16a95eadf2a4ae
from math import * import numpy as np import matplotlib import matplotlib.pyplot as plt # 20cm translation distance dx=0.2 dy=0.35 trans = sqrt(dx*dx + dy*dy) # rotation1 = 30 degree theta1 = 30.0*pi/180.0 # rotation2 = 45 degree theta2 = 10.0*pi/180.0 rot1 = atan2(dy, dx) - theta1 rot2 = theta2-theta1-rot1 a1 = 0.05...
CARMinesDouai/MultiRobotExplorationPackages
noisy_odometry/scripts/view_distribution.py
Python
mit
933
[ "Gaussian" ]
aaaf3c0a91fd1609f18523f83f64c7ccd5e88f8bc9462f95181c30022bc5b225
#!/usr/bin/env python # The glassbrain class copied from The NeuroImaging Analysis Framework (NAF) repositories # The code is covered under GNU GPL v2. # Usage example. ''' brain = ConnecBrain("fsaverage", "lh", "inflated") coords = np.array([[-27., 23., 48.], [-41.,-60., 29.], [-64., -20., -9.], ...
fboers/jumeg
jumeg/glassbrain.py
Python
bsd-3-clause
8,626
[ "Mayavi" ]
8e21e8e4c09b096f35392644d798a2b4472c0bf049665e616343f7d9c67278e1
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
SamStudio8/scikit-bio
skbio/sequence/_sequence.py
Python
bsd-3-clause
78,197
[ "scikit-bio" ]
aee386de63e7fe9f7e3635462eef48e6c494d0b2eeaab1b87662c6337ba6cd92
"""The data models used in ARL: .. note:: There are two visibility formats: :class:`BlockVisibility` is conceived as an ingest and calibration format. The visibility data are kept in a block of shape (number antennas, number antennas, number channels, number polarisation). One block is kept per integr...
SKA-ScienceDataProcessor/algorithm-reference-library
data_models/memory_data_models.py
Python
apache-2.0
35,339
[ "Gaussian" ]
a1b25c8edfafd76f3573353645a6e5b902c9c0e0ebc60317b095289d06adfc97
import pytest import numpy as np from math import floor from conftest import opts_tiling from devito import (Grid, Function, TimeFunction, Eq, solve, Operator, SubDomain, SubDomainSet, Dimension) from devito.ir import FindNodes, Expression from devito.tools import timed_region class TestSubdomain...
opesci/devito
tests/test_subdomains.py
Python
mit
14,942
[ "VisIt" ]
77ce1574c699b199c1d6cae89112d13250af34c806a670284b5bcb06ca1db6d9
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in> # Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2008-2015, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import abspath from io import BytesIO import copy import unittest import numpy # Enthought library im...
dmsurti/mayavi
mayavi/tests/test_vtk_xml_reader.py
Python
bsd-3-clause
4,728
[ "Mayavi", "VTK" ]
2de86b7f5cf0ac41873192016dac02c4738dd74b8d53a729bb1459125e44615e
''' Useful for: * users learning xray * building tutorials in the documentation. ''' import os as _os from .backends.api import open_dataset as _open_dataset from .core.pycompat import urlretrieve as _urlretrieve _default_cache_dir = _os.sep.join(('~', '.xray_tutorial_data')) # idea borrowed from Seaborn def lo...
petercable/xray
xray/tutorial.py
Python
apache-2.0
1,638
[ "NetCDF" ]
d9ed929161180e5a3c203bc5b82b51fee0e3b39e9eb2f0a82895ca043ce4cbba
import unittest from mjhmc.samplers.algebraic_hmc import (StateGroup, AlgebraicDiscrete, AlgebraicContinuous, AlgebraicReducedFlip, AlgebraicHMC) import itertools import numpy as np from mjhmc.misc.utils import overrides n_seed = 1 # error toleran...
rueberger/MJHMC
mjhmc/tests/test_algebraic_samplers.py
Python
gpl-2.0
4,765
[ "Gaussian" ]
717a1e12960bdc11ccc9033864653ca7f8936ed7d933b01433a2cd6218a1e47d
""" This module contain solvers for all kinds of equations: - algebraic or transcendental, use solve() - recurrence, use rsolve() - differential, use dsolve() - nonlinear (numerically), use nsolve() (you will need a good starting point) """ from __future__ import print_function, division f...
sahilshekhawat/sympy
sympy/solvers/solvers.py
Python
bsd-3-clause
120,569
[ "Gaussian" ]
5b6a2a982acd6e2258d22ac88b4acb69cd238e6dfe600a960e62a6daed27a86a
import os try: HOME = os.environ['HOME'] except KeyError: raise Exception("Please add an HOME environment variable corresponding\ to the location of the user's home directory.") try: NC_HOME = os.environ['NC_HOME'] except KeyError: raise Exception("Please add an NC_HOME environment vari...
rgerkin/neuroConstruct
pythonnC/utils/constants.py
Python
gpl-2.0
1,335
[ "NEURON" ]
14c2b8a416f1fc4c516316b50f9b9f9a45fe43078f71e942950ec5e12374cc95
#!/usr/bin/env python # -*- coding: ascii -*- """signal_processing.py - a class for signal processing""" import numpy as np import datetime import settings import serial_interface from defines import * class SignalProcessor: """This class provides the essential signal processing algorithms""" def __init__(...
nspi/vbcg
src/signal_processing.py
Python
gpl-3.0
10,773
[ "Gaussian" ]
718cffdc2f5b78fff938882f5ea3bb1ee7d577780f6d6bb81d556544d5608484
import sys from netCDF4 import Dataset def main(): copy_gridded_ioapi_to_empty(sys.argv[1], sys.argv[2]) def copy_gridded_ioapi_to_empty(input_path, output_path): '''Copy a GRIDDED IOAPI NetCDF file (NETCDF3_CLASSIC) to an empty NetCDF file that has the same structure, but the variables are empty o...
theJollySin/python_for_scientists
classes/14_netcdf/make_gridded_ioapi_template.py
Python
gpl-3.0
1,964
[ "NetCDF" ]
19b7e7a856bdc1b98f1d164cb585e0cf2f0e146032b5c946e56fbc67544ba373
# !/usr/local/bin/python3.4.2 # ----Copyright (c) 2017 Carnegie Hall | The MIT License (MIT)---- # ----For the full license terms, please visit https://github.com/CarnegieHall/quality-control/blob/master/LICENSE---- # run script with 3 or more arguments: # argument 0 is the script name # argument 1 is the path to the L...
CarnegieHall/quality-control
matchvaluesfromlists_2.py
Python
mit
1,680
[ "VisIt" ]
a3cc8fa13b52eccf394b90b222849b8b50446ed23240594556263f412d007314
#!/usr/bin/env python """ Converts an atom selection string from psf/resid to corresponding AMBER residues Author: Robin Betz Copyright (C) 2015 Robin Betz 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 Softwar...
Eigenstate/dabble
get_restraint_mask.py
Python
gpl-2.0
4,191
[ "Amber", "VMD" ]
bc8fdd9156844d2309647be978e5913219d6ee70ce1655f1090ca1763683ba2f
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2012 Async Open Source ## ## 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; either version 2 ## of the Licens...
tiagocardosos/stoq
stoqlib/gui/editors/baseeditor.py
Python
gpl-2.0
24,863
[ "VisIt" ]
d235ce649b93ced0af96ccdd9682ef227893f30a00df03ae23d25e04334c6492
#!/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. """Makes sure files have the right permissions. Some developers have broken SCM configurations that flip the executable permission...
ric2b/Vivaldi-browser
chromium/tools/checkperms/checkperms.py
Python
bsd-3-clause
14,907
[ "xTB" ]
fc7abe75c672f15dece7e7ae4c4729aaf297551d9fc3c7389dbad9d39d8f167c
#!/usr/bin/env python """ Script converts the user certificate in the p12 format into a standard .globus usercert.pem and userkey.pem files. Creates the necessary directory, $HOME/.globus, if needed. Backs-up old pem files if any are found. """ import os import sys import shutil from datetime import datetime from DIRA...
DIRACGrid/DIRAC
src/DIRAC/Core/scripts/dirac_cert_convert.py
Python
gpl-3.0
2,285
[ "DIRAC" ]
56a17d30e0af4975fb325097035458d96550ffbec88d1192408af485392c0b96
""" Functions to operate on polynomials. """ from __future__ import division, absolute_import, print_function __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core....
Eric89GXL/numpy
numpy/lib/polynomial.py
Python
bsd-3-clause
38,469
[ "Gaussian" ]
44ac9e359158cfe72ccd8c8c57d0bbee679f646fcb056d2aa042b29a2d8679b7
""" Views for the verification flow """ import decimal import json import logging import urllib from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.staticfiles.storage import staticfiles_storage from django.db import transaction from django.http import Http40...
arbrandes/edx-platform
lms/djangoapps/verify_student/views.py
Python
agpl-3.0
53,468
[ "VisIt" ]
115813f6acdc9d009cc02534e011631bf22ae714338d01692eae8e51123a0f49
__author__ = "Xiang-Guo Li" __copyright__ = "Copyright 2018, The Materials Virtual Lab" __email__ = "xil110@eng.ucsd.edu" __date__ = "07/30/18" import os import unittest import warnings import numpy as np from pymatgen.analysis.gb.grain import GrainBoundary, GrainBoundaryGenerator from pymatgen.core.structure import...
materialsproject/pymatgen
pymatgen/analysis/gb/tests/test_grain.py
Python
mit
16,955
[ "pymatgen" ]
c64abea1d536f1c82ae65690fa7c2f3c165f9a390e81b5cf9d5155acd7faeccf
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-workflows
tests/unit/gapic/workflows_v1/test_workflows.py
Python
apache-2.0
94,924
[ "Octopus" ]
6373d93214c179e0cf0da444b8082c3c744ff029a6d9e136793ce02ef85d0d69
# $HeadURL $ ''' ResourceStatusHandler Module that allows users to access the ResourceStatusDB remotely. ''' from DIRAC import gLogger, S_OK from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC.ResourceStatusSystem.DB.ResourceStatusDB...
avedaee/DIRAC
ResourceStatusSystem/Service/ResourceStatusHandler.py
Python
gpl-3.0
7,929
[ "DIRAC" ]
7f2ba0b8346b25733ddb1732be14ae7126eed19d81d2274ee3e0a8102cc0273c
# 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/tools/units.py
Python
gpl-3.0
3,518
[ "ESPResSo" ]
2b5b8027b123a0c2edfc895a7d99d9b2276e47ba4f1798c5ea15fd4595969514
# Copyright (c) 2010, 2014, 2015, 2020, 2021 Smithsonian Astrophysical Observatory # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copy...
anetasie/sherpa
sherpa/astro/datastack/__init__.py
Python
gpl-3.0
12,731
[ "Gaussian" ]
94a5c2db8b1266928257b368b66f695dc76e36b44e00bfe574c99af838e2f09c
# benchmark.py --- # # Filename: benchmark.py # Description: Script for performance benchmarking # Author: # Maintainer: # Created: Thu Jan 23 16:06:25 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log:...
dilawar/moose-full
moose-core/tests/python/mpi/benchmark.py
Python
gpl-2.0
4,953
[ "MOOSE" ]
ab8ed6bdd28eedc1b1ffa611d34bc2a68f348e5c9fd30f3c7ea14fcc306e19b8
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Description Tool for finding duplicates in an SDFile ## ## Authors: Inés Martínez (mmartinez4@imim.es) ## Manuel Pastor (manuel.pastor@upf.edu) ## ## Copyright 2015 Manuel Pastor ## ## This file is part of PhiToo...
manuelpastor/phitools
phitools/findDuplicates.py
Python
gpl-3.0
4,810
[ "RDKit" ]
1db3d7505532415404ebc3aa1650f9a2fa020e912d52e62ba920ae0f4b9f0e26
# Copyright (C) 2013 by Yanbo Ye (yeyanbo289@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Classes and methods for tree construction""" __docformat__ = "restructuredtext en" import s...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Phylo/TreeConstruction.py
Python
gpl-2.0
39,491
[ "BLAST", "Biopython" ]
3b7ffd5406c1236b6f67d4467a401d95988453129ec2d14975706d41702e283b
# -*- coding: utf-8 -*- import os import sys from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) README = open(os.path.join(here, 'README.rst')).read() requires_core = [ 'Twisted[tls]==18.9.0', 'pyOpenSSL>=16.2.0', ] if sys.platform == 'darwin': requires_core = [...
zerotired/kotori
setup.py
Python
agpl-3.0
7,419
[ "NetCDF" ]
998e8b214784b4bfe5b8b8a98875b17f470392f6dd99508d9eb757a33e64de2a
#!/usr/bin/env python """ load mWGS Raw Seq Set into OSDF using info from data file """ import os import re from cutlass.HostTranscriptomicsRawSeqSet import HostTranscriptomicsRawSeqSet import settings from cutlass_utils import \ load_data, get_parent_node_id, list_tags, format_query, \ write_csv_hea...
JAX-GM/osdf_submit
nodes/host_TranscriptomicsRawSeqSet.py
Python
gpl-3.0
5,813
[ "VisIt" ]
9251c8a5b65f755f8cd3d7d97f7dc7a59f30162081bd9e1393e7c6e405b06c40
"""Configuration data for the "activation maximization" (am) module. """ from base import Config as BaseConfig from dltb.base.observer import change class Config(BaseConfig, changes={'network_changed', 'layer_changed', 'unit_changed', 'config_changed'}): """Configuration data fo...
Petr-By/qtpyvis
tools/am/config.py
Python
mit
6,307
[ "Gaussian" ]
3e064d0c021c402cbf721438917541b4d5f46272925416c51b07b2e021ba175e
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permiss...
bgoli/pysces
pysces/kraken/startup.py
Python
bsd-3-clause
3,491
[ "PySCeS" ]
082e794fa44e543ad85ca7282cde91c7addb271343b483277af122395fea7e86
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
npuichigo/ttsflow
third_party/tensorflow/tensorflow/tools/common/traverse.py
Python
apache-2.0
3,484
[ "VisIt" ]
2e19636b7d0eabc7ab0fac5813a048095eaa7d626e3e9f51bb287d73ddf18b50
#!/usr/bin/python # -*- coding: utf-8 -*- """Misura Language or Mini Language. Secure minimal Python language subset for conditional evaluation of numerical datasets.""" import ast from traceback import print_exc, format_exc from time import time from .env import BaseEnvironment, ExitException from .objenv import Int...
tainstr/misura.canon
misura/canon/milang/milang.py
Python
mit
6,787
[ "VisIt" ]
99c7b8054c8d07c76da4b7711802756f6eba5ebafb11e8669e3c4697be7b2108
""" RemoveLambdas turns lambda into regular functions. """ from pythran.analyses import GlobalDeclarations, ImportedIds from pythran.passmanager import Transformation from pythran.tables import MODULES from copy import copy import ast class _LambdaRemover(Transformation): def __init__(self, pm, name, ctx, lam...
artas360/pythran
pythran/transformations/remove_lambdas.py
Python
bsd-3-clause
2,969
[ "VisIt" ]
4c9f21e77d3e0a1ead003af103e81b42658bae66094324fa7af7c9c36fb423a6
# 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_set_parameter_state.py
Python
gpl-3.0
4,277
[ "Gaussian" ]
462ac76563990fc1f8e7c10ec937c696c77fdc9b188408b1722a1072b60580cb
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import warnings import numpy as np from math import pi import unittest import os from monty.os.path import which from pymatgen.analysis.local_env import ValenceIonicRadiusEvaluator, \ VoronoiNN, JmolNN, M...
blondegeek/pymatgen
pymatgen/analysis/tests/test_local_env.py
Python
mit
50,916
[ "CRYSTAL", "Jmol", "Pybel", "pymatgen" ]
18089fea593597846ca96c816da185a6153eff0b2407862b73e48ee31c5cc4dc
import sys, os from ShapeAnalysisModule import ShapeAnalysisModuleWrapper from ConfigParser import SafeConfigParser if len(sys.argv) != 2: print("\n\nUsage: ./SlicerSALT --no-main-window --python-script " + sys.argv[0] + " path/to/SPHARM-PDM/parameters/file\n\n") sys.exit(1) if not os.path.exists(sys.argv[1]): ...
bpaniagua/SPHARM-PDM
CommandLineTool/SPHARM-PDM.py
Python
apache-2.0
7,907
[ "VTK" ]
fe1f09fd6c2cdadf73c76a0ca705b5d9786e2a36b88f74e2df6054b8fc6ad4f6
"""Define search indexes for hs_core module.""" # NOTE: this has been optimized for the current and future discovery pages. # Features that are not used have been commented out temporarily from haystack import indexes from hs_core.models import BaseResource from datetime import datetime from nameparser import HumanNa...
hydroshare/hydroshare
hs_core/search_indexes.py
Python
bsd-3-clause
38,075
[ "NetCDF" ]
17123efc2c139c83d35a377f876785be07a34777f0c7516d4e8b9163405ff7e1
"""Small library for working with MinION data """ from __future__ import print_function, division import sys import os import pysam import h5py import subprocess import re import numpy as np from itertools import islice, izip from random import shuffle from motif import getMotif from serviceCourse.sequenceTools import ...
mitenjain/signalAlign
scripts/signalAlignLib.py
Python
mit
77,140
[ "BWA", "pysam" ]
af7c56a02e977c424279f091ffd20714c21eda4023cd1decfba0e630f6840c51
# 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/interaction/LennardJonesExpand.py
Python
gpl-3.0
6,647
[ "ESPResSo" ]
82febc32f6b51f7a48eb6cde60b705788fbd5ec034b3af668def0f1a5be527a5
#! /usr/bin/python import numpy as np import cv2 import time import sys from debug_utils import * show_imgs = False def grayscale(img): return cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Or use RGB2GRAY if you read an image with mpimg def gaussian_blur(img, kernel_size): """Applies a Gaussian Noise kernel""" ...
RockRaidersInc/ROS-Main
vision/lane_detection_test.py
Python
gpl-3.0
14,400
[ "Gaussian" ]
ca030e469974505426269349128ed1dc4f0f986bb96dfec1f77a305277653051
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RGenefilter(RPackage): """genefilter: methods for filtering genes from high-throughput exp...
LLNL/spack
var/spack/repos/builtin/packages/r-genefilter/package.py
Python
lgpl-2.1
1,396
[ "Bioconductor" ]
428e4f3e7482b83b8bab6d1d7204374e2536ced07d9f94472cda8d8ceb3fd69c
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2017 Malcolm Ramsay <malramsay64@gmail.com> # # Distributed under terms of the MIT license. """Parameters for passing between functions.""" import logging from copy import deepcopy from pathlib import Path from typing import Any, Dict, Tu...
malramsay64/MD-Molecules-Hoomd
statdyn/simulation/params.py
Python
mit
6,319
[ "CRYSTAL" ]
559d13fe763d088069598bebe43ac1562d23771712c6a719708cee1eced28958
''' Module of classes used to test M-LOOP. ''' from __future__ import absolute_import, division, print_function __metaclass__ = type import numpy as np import threading import mloop.utilities as mlu import numpy.random as nr import logging import os import time class TestLandscape(): ''' Produces fake landsca...
charmasaur/M-LOOP
mloop/testing.py
Python
mit
9,788
[ "Gaussian" ]
a25581e893fe99d6c9ab8f288689f14cb5049853e7637108c565031bd9df4a50
#import urllib2 import urllib import subprocess import time import os.path import sys import getopt from Bio.PDB import * import openbabel import pybel import yaml from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Draw import re import os from collections import Counter import numpy as n...
cmunk/protwis
interaction/legacy_functions.py
Python
apache-2.0
61,900
[ "Open Babel", "Pybel", "RDKit" ]
7725aaf2411b7177c3cf824d107ff389e46b6732f9a1f898411606a4be74cf77
#=============================================================================== # LICENSE XOT-Framework - CC BY-NC-ND #=============================================================================== # This work is licenced under the Creative Commons # Attribution-Non-Commercial-No Derivative Works 3.0 Unported Li...
SMALLplayer/smallplayer-image-creator
storage/.xbmc/addons/net.rieter.xot.smallplayer/resources/libs/algorithms.py
Python
gpl-2.0
9,251
[ "VisIt" ]
8dd77dc387aab60091ab77681340ae01593c443342b4d1bdbb8c8da72e0ba6c9
""" A module for generic classification purpose. Funtionality include: normalize_l2norm: Normalize each row has unit l_2 norm. normalize_col_scale01: Normalize each feature (column) to scale [0,1]. normalize_row_scale01: Normalize each sample (row) to scale [0,1]. normalize_mean0std1: Normalize each feature to hav...
yifeng-li/DECRES
classification.py
Python
bsd-3-clause
98,929
[ "Gaussian" ]
59d6d557a004309735616532d400e56b9793ffdb6b7b9adc9d1537ae064c37a8
import os import sys from pyspark import SparkContext, SparkConf, SparkFiles from pyspark.sql import SQLContext, Row from pbox_description import pbox_description from subprocess import Popen, PIPE from os_utils import check_file_exists, download_file from vina_utils import get_value_from_box_center, get_value_f...
rodrigofaccioli/drugdesign
virtualscreening/vina/spark/prepare_box.py
Python
apache-2.0
7,824
[ "Gromacs" ]
27c6d7a8092d267a013a4f8ae11f4ad182e4841e2d496da1a18a70b26d998cc4
from urlparse import urlparse import tarfile import pytest import os from ..automation import TaskManager import utilities TEST_SITES = [ 'http://google.com', 'http://facebook.com', 'http://youtube.com', 'http://yahoo.com', 'http://baidu.com', 'http://wikipedia.org', 'http://qq.com', '...
Jasonmk47/OpenWPM
test/test_crawl.py
Python
gpl-3.0
5,398
[ "VisIt" ]
9cf77d0adc65899d0c7a07ff07354518681a8031e6c1b268b064d855abc65458
# -*- coding: utf-8 -*- # Copyright 2013 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. from __future__ import with_statement import __builtin__ import unittest from splinter.exceptions import DriverNotFoundError from fak...
bubenkoff/splinter
tests/test_browser.py
Python
bsd-3-clause
2,373
[ "VisIt" ]
7d6121e6a407707f7c86c2341c9e0568043ad2690bf5df434d374d4399e281ef
# proxy module from __future__ import absolute_import from mayavi.tools.modules import *
enthought/etsproxy
enthought/mayavi/tools/modules.py
Python
bsd-3-clause
89
[ "Mayavi" ]
ca21a3dcb224e6b53d1574674db0040ef3b741ad2df90e3e905f1048b0478da5
# -*- coding: utf-8 -*- # # Pyplis is a Python library for the analysis of UV SO2 camera data # Copyright (C) 2017 Jonas Gliss (jonasgliss@gmail.com) # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License a # published by the Free Software Foundat...
jgliss/pyplis
scripts/more_scripts/ex001_save_all_calib_imgs.py
Python
gpl-3.0
3,637
[ "Gaussian" ]
c83b4966150e6df9de2b572d49c759ffcc4641b45867129644c8a215b9f543ad
"""Unfinished code for ZMQ/HTTP bridging. We use WebSockets instead. Authors: * Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the...
cloud9ers/gurumate
environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/zmqhttp.py
Python
lgpl-3.0
2,824
[ "Brian" ]
71b1c6ff7ab6dfe06229362a83a7952307ee09bffc98a4f448a1273afceab7e9
# coding=utf-8 """List lesson feature tests.""" import pytest from django.contrib.auth.models import User from model_mommy import mommy from pytest_bdd import ( given, scenario, then, when, ) from quiz.models import Unity, Lesson, Result @pytest.mark.django_db @scenario('features/list_lessons.feature...
jesuejunior/golingo
quiz/tests/functional/test_list_lessons.py
Python
bsd-3-clause
2,945
[ "VisIt" ]
e98ea518268ed515200c4eb59a3afc4055c28008cda60c246b42535902e20d68
# A collection of tools to remotely access a CATMAID server via its API # # Copyright (C) 2017 Philipp Schlegel # # 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...
schlegelp/pymaid
pymaid/fetch.py
Python
gpl-3.0
183,875
[ "NEURON" ]
1381ecec4c0caa885779d462850eb903d0101dca9c3eaeab0c1ce8d9c2a01740
''' |marx| offers several different source shapes. Tests in this module exercise those sources (except ``SAOSAC``, which is heavily used in :ref:`sect-tests.PSF` already). ''' import shutil import subprocess import os from collections import OrderedDict from marxtest import base title = 'Sources in |marx|' tests = ...
Chandra-MARX/marx-test
tests/source.py
Python
gpl-2.0
10,336
[ "Gaussian" ]
ea8c13b97a32dd76207cd0c2060cdd6e41499bffa6bc12d93a37605f0ec97c1b
#!/usr/bin/env python # Tsung-Yi Lin <tl483@cornell.edu> # Ramakrishna Vedantam <vrama91@vt.edu> import copy import math from collections import defaultdict import numpy as np def precook(s, n=4, out=False): """ Takes a string as input and returns an object that can be given to either cook_refs or cook_...
MeteorKepler/RICGA
ricga/eval_tools/pycocoevalcap/cider/cider_scorer.py
Python
apache-2.0
7,727
[ "Gaussian" ]
6837a736c27f1029acb2a5ea8f723165bfa0f945dfb6e7f156038b7d2cf3d317
# -*- coding: utf-8 -*- """ Util functions """ import os, re, sys, traceback import logging logging.basicConfig(format='%(asctime)s: %(message)s', datefmt = "%H:%M:%S") from glob import glob from codecs import open as decode_open import nltk import nltk.data import lxml from pyquery import PyQuery as pq from zipf...
xiaohan2012/capitalization-restoration-train
util.py
Python
mit
12,853
[ "CRYSTAL" ]
1e97d92d56e9ac170e763aa31d6a409b9ea545ae46760f189eaee776d01794f8
# -*- coding: utf-8 -*- """ Created on Fri Apr 05 16:19:42 2013 package contains standard x-ray related functions. Needs to be linked to database!!! @author: lwiegart version 0.1: included help function in all macros [12/01/2014] version 0.1.1: added get_gap & get_Es version 0.1.2: added get_EBragg version 0.1....
sameera2004/chxtools
chxtools/xfuncs.py
Python
bsd-3-clause
25,731
[ "CRYSTAL" ]
8b37ea98e8b9329e13f2d0eb6bc2c07dfe471f395002a31b84cfb7ce13df4cd4
import mango.utils from .Gaussian import * import copy import re import sys import scipy as sp import numpy as np import scipy.stats from mango import mpi try: from mango.fmm._PwGaussianMixelMixtureModel import csvParsePgmmm except: csvParsePgmmm = None logger, rootLogger = mpi.getLoggers(__name__) class Mi...
pymango/pymango
misc/python/mango/fmm/MixtureModel.py
Python
bsd-2-clause
8,154
[ "Gaussian" ]
d3f5824dd9c87b311b853d869bff14075bcf3b16f5213c94c9ab9a57ae2a45ce
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2009-2010 Benny Malengier <benny.malengier@gramps-project.org> # Copyright (C) 2010 Peter Landgren # Copyright (C) 2010 Tim Lyons # Copyright (C) 2...
arunkgupta/gramps
gramps/plugins/docgen/htmldoc.py
Python
gpl-2.0
22,637
[ "Brian" ]
964c2c61c369afa2f298b0b1932fd1232cd62f48d04974e1ea63a611fcf8ca59
# Copyright 2020 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
tensorflow/io
tensorflow_io/python/api/experimental/filter.py
Python
apache-2.0
888
[ "Gaussian" ]
58a25ef3d756d5bd14fbf4d5b685f87a85df8f1d97351bd35cba54134915b11d