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
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module is used to estimate the Herfindahl-Hirschman Index, or HHI, of chemical compounds. The HHI is a measure of how geographically confined or dispersed the elements comprising a compound are. A low ...
gVallverdu/pymatgen
pymatgen/analysis/hhi.py
Python
mit
3,863
[ "pymatgen" ]
d4bb73d02d34cd57944238eacfed1a85865da09b23c5851fe3d8a4baef463758
#!/usr/bin/env python ################################################################################ # This program is part of the Zenpack.community.Memcached Zenpack for Zenoss. # Copyright (C) 2011 B Maqueira # # This program can be used under the GNU General Public License version 2 # For complete information ple...
zenoss/ZenPacks.community.Memcached
ZenPacks/community/Memcached/libexec/check_memcached.py
Python
gpl-2.0
3,797
[ "VisIt" ]
522dbd01797b3e6a97d5ea7e67b323506d82a41be6cf9c0087e29d6748ee9d68
# $Id$ # # Copyright (C) 2006 greg Landrum # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # import unittest from rdkit.Chem.FeatMaps import Feat...
rvianello/rdkit
rdkit/Chem/FeatMaps/UnitTestFeatMapUtils.py
Python
bsd-3-clause
10,562
[ "RDKit" ]
f329bbee462d82098805ad5487fce86aff7271e0e97e50c9392f7ce900cc8ae3
"""Utilty functions for converting between MIDI data and human-readable/usable values """ import numpy as np import re from .constants import DRUM_MAP, INSTRUMENT_MAP, INSTRUMENT_CLASSES def key_number_to_key_name(key_number): """Convert a key number to a key string. Parameters ---------- key_numb...
douglaseck/pretty-midi
pretty_midi/utilities.py
Python
mit
17,897
[ "Brian" ]
7425c34a8fb8682e04799ec3ca44081aec40ee1b7cda13ad9b6f4a1ec12ed52f
from coyote_framework.testing.coyote_test import CoyoteTest from example.example_app.config.example_config import ExampleConfig from coyote_framework.drivers.coyote_driverfactory import driver_context from example.example_app.page_objects.example_home_page import ExampleHomePage __author__ = 'matt' class TestSubmitF...
Shapeways/coyote_framework
example/example_tests/TestSubmitForm_ConfirmValues.py
Python
mit
1,576
[ "VisIt" ]
da53f54da16dbddc50483b9002428ead147681c968a1d77eb8051255c0924821
# -*- coding: utf-8 -*- """ *************************************************************************** QGIS Server Plugin Filters: add OGC Web Processing Service capabilities --------------------- Date : August 2015 copyright : (C) 2015 by DHONT René-Luc - 3Liz email ...
3liz/qgis-wps4server
filters/wpsFilter.py
Python
gpl-3.0
71,786
[ "NetCDF" ]
52ce5cf3ff26f1c24aa9a11ae82be84c50aa57a1cb715b9e72132076be15dd5b
#!/usr/bin/python2.7 # encoding: utf-8 # Copyright 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
ominux/personfinder
tests/server_test_cases/person_note_tests.py
Python
apache-2.0
228,980
[ "VisIt" ]
67a967ec57121196ac2539346a3394f790696ca5b56d2a46c61815c2f49a2984
#!/usr/bin/env python """ Commands related to syncing copytext from Google Docs. """ import app_config import os from fabric.api import task from oauth import get_document, get_credentials from termcolor import colored @task(default=True) def update(): """ Downloads a Google Doc as an Excel file. """ ...
PostDispatchInteractive/app-template
fabfile/text.py
Python
mit
890
[ "VisIt" ]
cf1605dbd063d4d368c76cc955d0ec9c10bd5298a9710497f66d26afca81bd26
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
2gis/ansible
lib/ansible/utils/__init__.py
Python
gpl-3.0
58,610
[ "Galaxy", "VisIt" ]
5dd7355ff11db945d8cb3ad2292a302266de8442cea6cbd92ea346b72fb89b78
"""Guess the MIME type of a file. This module defines two useful functions: guess_type(url, strict=True) -- guess the MIME type and encoding of a URL. guess_extension(type, strict=True) -- guess the extension for a given MIME type. It also contains the following, for tuning the behavior: Data: knownfiles -- list ...
ruibarreira/linuxtrail
usr/lib/python3.4/mimetypes.py
Python
gpl-3.0
20,735
[ "NetCDF" ]
6e2ee434e34da8692f1db8e62b463c3be96d1aa17b340becc72a8dc0bca562ba
# -*- coding: utf-8 -*- __author__ = 'mroohian' from lettuce import step, world from salad.logger import logger from salad.tests.util import wait_for_completion, assert_with_negate from leaf import leaf_world def open_page(page_url): if leaf_world.base_url is None: raise ValueError('leaf_world.base_url i...
mroohian/Leaf
src/leaf/steps/browser/navigation.py
Python
bsd-3-clause
2,694
[ "VisIt" ]
70c2c85ee4819b5ec9714f3b8d35e8eef4b4074ceba7af4720989b1ba29aa550
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in> # Copyright (c) 2009, Enthought, Inc. # License: BSD Style. # Standard library imports. import unittest #Local Imports from common import get_example_data # Enthought library imports from mayavi.core.null_engine import NullEngine from mayavi.core.registry impor...
liulion/mayavi
mayavi/tests/test_registry.py
Python
bsd-3-clause
5,919
[ "Mayavi" ]
87f9812c757fc9555da29b22d7514b89ef0320aa6a0485e385fbeeb359257d65
# MolMod is a collection of molecular modelling tools for python. # Copyright (C) 2007 - 2008 Toon Verstraelen <Toon.Verstraelen@UGent.be> # # This file is part of MolMod. # # MolMod 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...
woutersmet/Molmodsummer
test/io/cp2k.py
Python
gpl-3.0
4,644
[ "CP2K" ]
3d81e24fd9856cc3d337ff3f087d6bba796938d9066b2b541647e0550c53995b
#!/usr/bin/env python # 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 # # U...
gkc1000/pyscf
pyscf/scf/__init__.py
Python
apache-2.0
6,904
[ "DIRAC", "PySCF" ]
e784aee655841750710b2df54baa008146abda087324673f126c08e0b85dedf7
#!/bin/env python # # Copyright 2013-2014 Graham McVicker and Bryce van de Geijn # # 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 ...
cdeboever3/WASP
CHT/bam2h5.py
Python
apache-2.0
25,039
[ "pysam" ]
62a794daf8bf99c70c065d19fd3b54c24f06b2a61ce8ec4fdd938e36f04bb9fb
""" ================================================== Automatic Relevance Determination Regression (ARD) ================================================== Fit regression model with :ref:`bayesian_ridge_regression`. Compared to the OLS (ordinary least squares) estimator, the coefficient weights are slightly shifted ...
seckcoder/lang-learn
python/sklearn/examples/linear_model/plot_ard.py
Python
unlicense
2,517
[ "Gaussian" ]
4e5aefbaecb75597e6a2ffb467e161310816e7da982a4d14b8b453cb6dd4192c
import importlib import io import os import csv import math import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.path as path import matplotlib.dates as mdates from dateutil.parser import parse from datetime import datetime from datetime import timedelta # Python 2 ...
bearing/dosenet-analysis
D3S_analysis/radon_variation_analysis.py
Python
mit
19,367
[ "Gaussian" ]
18086607ee83887c9e0f931e2ac333f0dd7547bad77b693dd1e8a5b8549bae5c
import httplib2 import os import sys import traceback import time import datetime import apiclient from apiclient import discovery from oauth2client import file from oauth2client import client from oauth2client import tools from sqlalchemy import engine_from_config from sqlalchemy.exc import IntegrityError from con...
GuardedRisk/Google-Apps-Auditing
acctwatch/acctwatch.py
Python
isc
5,596
[ "VisIt" ]
266ca063ee36750a9711730b0af1bb4dd5beac3f0ef6b2b7db9ee3ed23c83053
"""Contain the AskViewTests class""" import unittest import os import tempfile import datetime from shutil import copyfile from pyramid import testing from pyramid.paster import get_appsettings from askomics.libaskomics.TripleStoreExplorer import TripleStoreExplorer from askomics.libaskomics.rdfdb.SparqlQueryBuilder...
ofilangi/askomics
askomics/test/askView_test.py
Python
agpl-3.0
35,927
[ "Galaxy" ]
16b3ae15cb6c8481ca6cdcf0727a901ae3f9c4068d336ba375ddf226765e64d6
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
ashutoshvt/psi4
psi4/share/psi4/databases/NHTBH.py
Python
lgpl-3.0
36,605
[ "Psi4" ]
0ea0628ca75a23387da313771bc4df768ed64f9e4127125338d7568537f7f457
#!/usr/bin/env python # Generates a phantom from an atlas of tracts # Saves the phantom to a niftii image afterwards ## Import common Python libraries # import os # import getopt # import sys # import time import glob # import re #Modif outside toolobx import sct_utils as sct #import sct_utilsc as sct import numpy as...
3324fr/spinalcordtoolbox
dev/atlas/validate_atlas/generate_phantom.py
Python
mit
6,966
[ "Gaussian" ]
2ae75fab4473a9a9d5501a4ec51857f4dd45e7ce2b2298622c2346ad3c5cdb20
""" ======================================= Signal processing (:mod:`scipy.signal`) ======================================= Convolution =========== .. autosummary:: :toctree: generated/ convolve -- N-dimensional convolution. correlate -- N-dimensional correlation. fftconvolve -- N-dimensional convol...
niknow/scipy
scipy/signal/__init__.py
Python
bsd-3-clause
11,556
[ "Gaussian" ]
7cf36070e6642f1fef71a026de0d0719d8444c58e4165ca5424055e772a6f177
# Copyright 2017 Google Inc. 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 applicable law or ag...
Sorsly/subtle
google-cloud-sdk/lib/googlecloudsdk/command_lib/search_help/table.py
Python
mit
3,038
[ "VisIt" ]
5db67b074b30d6b582aee69ba84b3fffb60754d2dd632649ea016b175e0580b9
""" Collection of physical constants and conversion factors. Most constants are in SI units, so you can do print '10 mile per minute is', 10*mile/minute, 'm/s or', 10*mile/(minute*knot), 'knots' The list is not meant to be comprehensive, but just convenient for everyday use. """ from __future__ import annotations i...
scipy/scipy
scipy/constants/_constants.py
Python
bsd-3-clause
10,194
[ "Avogadro" ]
23d636f9fea74c889a806d76fdbb75f1de9ab3eccb6b125bedc5f089cde06359
import os import shutil from tempfile import mkdtemp import numpy from trefoil.netcdf.crs import set_crs from trefoil.netcdf.variable import SpatialCoordinateVariables from django.conf import settings from django.core.management.base import BaseCommand from ncdjango.models import Service from netCDF4 import Dataset S...
consbio/seedsource-core
seedsource_core/django/seedsource/management/commands/convert_services_to_min_type.py
Python
bsd-3-clause
3,677
[ "NetCDF" ]
170b99558edeb5431835440acbb2f27dbf7dfceb1659bd2c87d40245161d8051
import six from json import dumps from unittest import TestCase try: from unittest.mock import patch except ImportError: from mock import patch from six.moves import builtins from ..mocking import mockOpen, File from .sample_data import PARAMS, RECORD0, RECORD1, RECORD2, RECORD3, RECORD4 from dark.reads imp...
bamueh/dark-matter
test/blast/test_titles.py
Python
mit
39,957
[ "BLAST" ]
ec34ca7050cc06b57173758de97f8a46dad5d2407af909b16c3ee2e6ce5460ab
# -*- coding: utf-8 -*- """ Created on Wed Jan 13 09:41:53 2016 @author: Radu """ # -*- coding: utf-8 -*- """ Created on Tue Jan 12 10:34:07 2016 @author: Radu """ import sys sys.path.insert(0, '../ClarkesNetwork') from cell import Cell from neuron import h class Motoneuron(Cell): #### Inherits from Cell """...
penguinscontrol/Spinal-Cord-Modeling
CPG/motoneuron.py
Python
gpl-2.0
2,930
[ "NEURON" ]
8f29473867997f3b88079702bded446b741eeb556fbd05262aaed36a4b8c054e
import openvoronoi as ovd import ovdvtk import time import vtk import math import offset2vtk if __name__ == "__main__": # w=2500 # screen resolution for big screens # h=1500 # w=1920 # h=1080 w = 1024 h = 1024 myscreen = ovdvtk.VTKScreen(width=w, height=h) # a VTK window for drawing ...
aewallin/openvoronoi
python_examples/offset/offset_1.py
Python
lgpl-2.1
3,285
[ "VTK" ]
e0abb829525cf74ca4d64b345cbf44614a0f0b7832e5dfbd3aac10829936a366
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import json import os import unittest import warnings from monty.os.path import which from monty.serialization import loadfn from pymatgen.electronic_structure.bandstructure import BandStructure from pymatge...
gmatteo/pymatgen
pymatgen/electronic_structure/tests/test_boltztrap.py
Python
mit
15,695
[ "ASE", "BoltzTrap", "pymatgen" ]
e37a0e6a79d37375f6b15c27af5a16bc37c7c1dafacc3893eb91579772e161a6
""" The Matcher service provides an XMLRPC interface for matching jobs to pilots It uses a Matcher and a Limiter object that encapsulated the matching logic. It connects to JobDB, TaskQueueDB, and PilotAgentsDB. """ __RCSID__ = "$Id$" from DIRAC import gLogger, S...
Andrew-McNab-UK/DIRAC
WorkloadManagementSystem/Service/MatcherHandler.py
Python
gpl-3.0
5,131
[ "DIRAC" ]
a85b011167fcf170e4ea16f5c0015fb9360fa905154891194fabea96d22aeb28
""" End-to-end test for cohorted courseware. This uses both Studio and LMS. """ from bok_choy.page_object import XSS_INJECTION from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.te...
Stanford-Online/edx-platform
common/test/acceptance/tests/test_cohorted_courseware.py
Python
agpl-3.0
12,136
[ "VisIt" ]
d57777328bb80d2719e438cc22b5096dea33e489207c995c79481a698e477ec8
import contextlib import itertools import math import os.path import pickle import shutil import sys import tempfile import warnings from contextlib import ExitStack from io import BytesIO from pathlib import Path from typing import Optional import numpy as np import pandas as pd import pytest from pandas.errors impor...
shoyer/xarray
xarray/tests/test_backends.py
Python
apache-2.0
179,902
[ "NetCDF" ]
da8079c50bd40affa8bcfa65d2012fdbd1757da34959beb94352fbe09a407f29
#!/usr/bin/env python import argparse import csv import os import pysam def break_count(bam, chrom, poslist, minpad=5, flex=1, minmapq=10): ''' ref = number of reads spanning TSD, alt = number of reads clipped at breakpoint in poslist ''' altcount = 0 refcount = 0 discards = 0 poslist = list(po...
adamewing/tebreak
scripts/misc/genotype_nonref.py
Python
mit
3,952
[ "pysam" ]
217225705c7085f2548bfbcb1bcc696aca5553194ce977bab21ec1c44f97584a
# 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...
fweik/espresso
testsuite/python/dipolar_mdlc_p3m_scafacos_p2nfft.py
Python
gpl-3.0
7,562
[ "ESPResSo" ]
5adccf77eb65830106ed8589504f2032bd7272f7e2d5fccfab07051fe67714df
#!/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. # # This script can be used to convert messages.json to grd translations. import codecs import json import optparse import os impor...
plxaye/chromium
src/remoting/tools/json_to_grd.py
Python
apache-2.0
6,744
[ "xTB" ]
39b0a8c11858db1e4776ef664a222e8a0ddefd31ccb91fd7770b6ddda0b67365
# ---------------------------------------------------------------------------- # 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/_base.py
Python
bsd-3-clause
17,384
[ "scikit-bio" ]
c2e618e9682fd474ee9c4ea076cf7b744ba88bf2f544f7457577c1b0ba172efe
""" SandboxMetadataDB class is a front-end to the metadata for sandboxes """ __RCSID__ = "$Id$" from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.Core.Utilities import List from DIRAC.Core.Security import Properties, CS class SandboxMetadataDB( DB ): def __init__( self ): ...
petricm/DIRAC
WorkloadManagementSystem/DB/SandboxMetadataDB.py
Python
gpl-3.0
16,400
[ "DIRAC" ]
e667782f3231ce874699d5fdf9f51a1943302f44f1f56cbcf7f24287e704c995
# -*- coding: utf-8 -*- # Copyright: (c) 2020-2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """A facade for interfacing with multiple Galaxy instances.""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import...
mattclay/ansible
lib/ansible/galaxy/collection/galaxy_api_proxy.py
Python
gpl-3.0
7,409
[ "Galaxy" ]
b59e4021dbc7d851e58b829499c593805070267235e2b02033ac02dc8bf74431
from warnings import warn warn("pytesmo grids are deprecated and will be removed in the future." " Use pygeogrids instead!") from pygeogrids.netcdf import *
christophreimer/pytesmo
pytesmo/grid/netcdf.py
Python
bsd-3-clause
162
[ "NetCDF" ]
80e51c49a3a929bf1b8bb28cfaf747e61006c70206bd7f331c8e77d644e0daa6
################################################################ # Code for managing and training a generator/inferencer pair. # ################################################################ # basic python import numpy as np import numpy.random as npr from collections import OrderedDict # theano business import t...
Philip-Bachman/Sequential-Generation
OneStageModel.py
Python
mit
15,725
[ "Gaussian" ]
848ef09a04ae7f9dd1f01d606ed7457e4291a73f9e7a6dd90017e0543daf263b
# Same filtering task using a Programmable Python Filter in Paraview. aneurysm = self.GetInputDataObject(0,0) vessel = self.GetInputDataObject(0,1) output = self.GetOutputDataObject(0) distanceFilter = vtk.vtkDistancePolyDataFilter() distanceFilter.SetInputConnection( 0, vessel.GetProducerPort()) distanceFilter.SetIn...
rcorredorj/VTK_Sandbox
BoundarySurfaceByDistance/lib/BoundarySurfaceExtraction.py
Python
apache-2.0
927
[ "ParaView", "VTK" ]
5c69f7847f1b280b790bca8da87996f9e91f2699a663306450cae063b880df9b
################################################################# # $HeadURL$ ################################################################# """ .. module:: Pfn :synopsis: ProcessPool and related classes ProcessPool ProcessPool creates a pool of worker subprocesses to handle a queue of tasks much like the produ...
sposs/DIRAC
Core/Utilities/ProcessPool.py
Python
gpl-3.0
31,113
[ "DIRAC" ]
3f1a86ee7816d060e7163fae5bc34f9b2a0b57dbfaf01a4049e42ae284931a87
# -*- coding: utf-8 -*- # # test_clopath_synapse.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the Li...
heplesser/nest-simulator
testsuite/pytests/test_clopath_synapse.py
Python
gpl-2.0
9,418
[ "NEURON" ]
9d03f05b8ecfc72cba28f47dc9fbdded173b9c0d3dd9fe0406d31cc5f77ff77d
from subprocess import call #interface to command LangevinNoisePositive import scipy.optimize as spo import scipy.io as sio import numpy as np import matplotlib.pyplot as plt plt.ion() #interactive plotting fig = plt.figure() ax1 = fig.add_subplot(111) # ax1.set_title('001 loading') # ax1.set_ylim([0,35]) # ax2 = f...
jhektor/Puffin
inputfiles/HWRcrypla/calibration_main.py
Python
lgpl-2.1
6,620
[ "CRYSTAL", "MOOSE" ]
ae98c1784c683322db88ead4787a7eaa458704fde26d9cac3ff87ccbe8c025bf
import urllib,urllib2,re,sys,xbmcplugin,xbmcgui import cookielib,os,string,cookielib,StringIO,gzip import os,time,base64,logging import xbmcaddon import urlresolver import datetime try: import json except ImportError: import simplejson as json #Dramacrazy ADDON=dc=xbmcaddon.Addon(id='plugin.video.dramacra...
dknlght/dkodi
src/plugin.video.dramacrazy/default.py
Python
gpl-2.0
90,631
[ "VisIt" ]
7e6060c18fc7bd4c37a6ef3639c3563d9a07f375b0b73b6464377c0b85e0e0f4
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = import numpy as np import os import sys import astropy.io.fits as afits import matplotlib as mpl mpl.use('Agg') # prevent pyplot from opening window; enables closing ssh session with detached screen running TDO...
kasperschmidt/TDOSE
tdose_build_mock_cube.py
Python
mit
15,475
[ "Gaussian" ]
1ed449a62cef5e96294b093f863af42a820dacb349639fc78b86a96c691e143c
""" Create and send a combined request for any pending operations at the end of a job: * fileReport (for the transformation) * jobReport (for jobs) * accounting * request (for failover) """ from DIRAC import gLogger from DIRAC.TransformationSystem.Client import TransformationFilesStatus fro...
DIRACGrid/DIRAC
src/DIRAC/Workflow/Modules/FailoverRequest.py
Python
gpl-3.0
4,031
[ "DIRAC" ]
4160a258faa30c797d08473b7881fa9cc8d21c6481e58dc0fb320a7db3a94799
from ovito import * from ovito.io import * from ovito.modifiers import * from ovito.data import * import numpy as np node = import_file("../../files/CFG/shear.void.120.cfg") modifier = CommonNeighborAnalysisModifier() node.modifiers.append(modifier) node.compute() print("Number of FCC atoms: {}".format(node.output.at...
srinath-chakravarthy/ovito
tests/scripts/test_suite/mutable_particle_property.py
Python
gpl-3.0
575
[ "OVITO" ]
fce2b29f2a62cc37f24c5eae8c498e0fa63f92164bd90e46ea424faa1d860854
import pytest from capybara.exceptions import ElementNotFound class SelectorTestCase: @pytest.fixture(autouse=True) def setup_session(self, session): session.visit("/form") class TestLabelSelector(SelectorTestCase): def test_finds_a_label_by_text(self, session): assert session.find("lab...
elliterate/capybara.py
capybara/tests/session/test_selectors.py
Python
mit
1,736
[ "VisIt" ]
6777a14f35e4a9af0b09dc53bb851d5e4586aca412cbc68dad92a06618de9645
""" Acceptance tests for Studio related to the acid xblock. """ from unittest import skip from bok_choy.web_app_test import WebAppTest from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage from ...pages.xblock.acid import AcidView from ...fixtures.course import Cours...
LearnEra/LearnEraPlaftform
common/test/acceptance/tests/studio/test_studio_acid_xblock.py
Python
agpl-3.0
7,198
[ "VisIt" ]
1722c12c9590af2a09c836a3ee43d5442b737c45b39253cd4107dff77b8449e6
# -*- coding: utf-8 -*- """ Global defaults and various utility functions usable by the general GUI """ import os import re import sys import imp import warnings import webbrowser import urllib.parse import json import types import numpy from io import BytesIO import numpy as np warnings.simplefilter("ignore") impor...
SasView/sasview
src/sas/qtgui/Utilities/GuiUtils.py
Python
bsd-3-clause
53,145
[ "Gaussian" ]
49f52ea007585bce58ed41e344dc4cba6cca631a4599a20f0d71a27dfc5a364b
""" UnshadowParameters prevents the shadow parameter phenomenon """ from pythran.analyses import Identifiers from pythran.passmanager import Transformation import gast as ast class UnshadowParameters(Transformation): ''' Prevents parameter shadowing by creating new variable. >>> import gast as ast ...
serge-sans-paille/pythran
pythran/transformations/unshadow_parameters.py
Python
bsd-3-clause
2,100
[ "VisIt" ]
a1a2cd92974f428eb5e9377209d11671f62d415b9a0f4ebf0c07d20a22f95199
# -*- coding: utf-8 -*- # 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...
sem-geologist/hyperspy
hyperspy/_components/pes_see.py
Python
gpl-3.0
5,307
[ "Gaussian" ]
03a36b99d2b9ad135bccc731238a9f816d546aad8e8dfd9efb7b38261ff228c4
""" API operations on Group objects. """ import logging from galaxy.web.base.controller import BaseAPIController, url_for from galaxy import web log = logging.getLogger( __name__ ) class GroupRolesAPIController( BaseAPIController ): @web.expose_api @web.require_admin def index( self, trans, group_id, **k...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/galaxy/api/group_roles.py
Python
gpl-3.0
5,199
[ "Galaxy" ]
0596aa07e74356576319d9b8072ff8a71c2942032a97d91c77a7366584d04c07
import os from setuptools import setup __version__ = '0.3.0' with open(os.path.join(os.path.dirname(__file__), 'CHANGES.rst')) as fp: LONG_DESCRIPTION = fp.read() setup( name='compactor', version=__version__, description='Pure python implementation of libprocess actors', long_description=LONG_DESCRIPTION...
wickman/compactor
setup.py
Python
apache-2.0
655
[ "Brian" ]
40ef705329ee329072979522cd82e0ba7aba9b3478914473dcb83fee3105dca4
# # import numpy as np from GPy.core import SparseGP, Param from GPy import likelihoods from GPy import kern from GPy.core.parameterization.variational import NormalPosterior, NormalPrior, VariationalPosterior from GPy.core.parameterization.transformations import Logexp from .variational import NormalEntropy,NormalPr...
zhenwendai/RGP
autoreg/layers.py
Python
bsd-3-clause
79,869
[ "Gaussian" ]
c02abb92534029ab8162667527125c041e41015b7c52640c4808be6397acb76a
# Copyright 2009 by Cymon J. Cox. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Command line wrapper for the multiple alignment program PROBCONS. """ from __future__ import...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Align/Applications/_Probcons.py
Python
gpl-2.0
5,220
[ "Biopython" ]
eee8d74906f19ec827cca90fca23bae5573be26698a2ac00f413fc93f40497e9
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ==================================== specEditor.py - Specification Editor ==================================== A development environment for specifications written in structured English, allowing for editing, compilation, and execution/simulation """ ...
VerifiableRobotics/LTLMoP
src/specEditor.py
Python
gpl-3.0
76,297
[ "VisIt" ]
2707db32611f14d82b780658aadc8b4f61e857e622290b18336223b26eb62fff
# ====================================================================================================================== # Libraries and Modules # Core modules import numpy as np import matplotlib.pyplot as plt import illustris_python as ilpy import translate_coordinates as tc #renato's code for camera projectio...
gsnyder206/mock-surveys
mocks_from_publicdata/summer2020/tng_lightcone_catalogs1.0.py
Python
mit
28,299
[ "Galaxy" ]
d667a427941ea8349e932ef5b93f42c1d13cbff09bddce093420bb25371278e6
# Copyright 2015 gRPC 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 writing...
muxi/grpc
src/python/grpcio/grpc_core_dependencies.py
Python
apache-2.0
42,221
[ "ORCA" ]
f0810f5bfec05e624810b13da6243535079b4e2f6aba7ffbb78e9e9c78eac2db
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ========================================================================= Program: Visualization Toolkit Module: TestNamedColorsIntegration.py Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or ...
hlzz/dotfiles
graphics/VTK-7.0.0/Filters/Core/Testing/Python/financialField.py
Python
bsd-3-clause
7,028
[ "VTK" ]
498e8dda6473174a16ea5b836a6b7a34e62ebc9ebb7753d4339805aabdaa4c73
#!/usr/bin/env python # # This file is part of Buildbot. Buildbot 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # A...
jammerful/buildbot
master/setup.py
Python
gpl-2.0
20,057
[ "Brian" ]
33ee676d66ab1007ffef6ec3872b599e95b06cbcd1446afcd4fc69809195f3b6
#!/usr/bin/env python # Copyright (C) 2013-2019 The ESPResSo project # Copyright (C) 2012 Olaf Lenz # # 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 versio...
psci2195/espresso-ffans
src/config/featuredefs.py
Python
gpl-3.0
6,791
[ "ESPResSo" ]
383a6b986d122f4a9d5ac1b837eab9a1ac4da41398d47393e02d4e0bf4fd9127
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2018-09-03 18:56:38 # @Last modified by: Brian Cherinka # @Last Modified time: 2018-11-20 12:06:47 from __future__ import absolute_import, division, print_function from brain.utils.general...
sdss/marvin
python/marvin/api/query.py
Python
bsd-3-clause
23,766
[ "Brian" ]
311f6fa14baed68ba35f9929de5ef632cf6d0f21344c18f3291c6d3129a4ee83
#!/usr/bin/python """ # Created on July 24, 2017 # # @author: Vilian Atmadzhov (vilian.atmadzhov@paddypowerbetfair.com) GitHub ID: vivobg # # module_check: not supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # Vilian Atmadzhov, <vilian.atmadzhov@paddypowerbetfair.com> # ...
valentin-krasontovitsch/ansible
lib/ansible/modules/network/avi/avi_api_version.py
Python
gpl-3.0
2,559
[ "VisIt" ]
17ac0bac7d3a79d51b2707a8f75595a6df095abd29a15867d1d73a29cdc2d21d
''' DIRAC.ResourceStatusSystem.PolicySystem.Actions package ''' from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = '$Id$'
yujikato/DIRAC
src/DIRAC/ResourceStatusSystem/PolicySystem/Actions/__init__.py
Python
gpl-3.0
193
[ "DIRAC" ]
a428f1f2694b99470087f8d68a1fb9b69be9c3c738f83503b60ce442447e4b4a
from pybrain.structure import FeedForwardNetwork from pybrain.tools.validation import ModuleValidator,Validator from pybrain.utilities import percentError from pybrain.tools.customxml import NetworkReader from pybrain.datasets import SupervisedDataSet import numpy import pylab import os def...
fxsjy/pybrain
examples/supervised/test_network_read_write/jpq2layersReader.py
Python
bsd-3-clause
1,994
[ "NEURON" ]
54e6a1e49531989000161284fc0e46534bfb96b75a782427a7122412118855fe
# MIT License # # Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, ...
mapnik/mapnik
scons/scons-local-4.1.0/SCons/Taskmaster.py
Python
lgpl-2.1
41,096
[ "VisIt" ]
d30084a60a46bdac85ff592cca8af54c18d5154c560fcd94822bf0bfbc4adb0b
""" ======================================================================== Illustration of Gaussian process classification (GPC) on the XOR dataset ======================================================================== This example illustrates GPC on XOR data. Compared are a stationary, isotropic kernel (RBF) and ...
manhhomienbienthuy/scikit-learn
examples/gaussian_process/plot_gpc_xor.py
Python
bsd-3-clause
2,106
[ "Gaussian" ]
6c994eed53934205c70270c9c56a238554c5f51611af7f00687bf4c5f1bcb3f7
# # Created by DraX on 2005.09.08 # import sys from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest #### CONSTANTS #### #rewards ADENA_ID = 57 DEMONS_TUN...
Barrog/C4-Datapack
data/jscript/quests/334_TheWishingPotion/__init__.py
Python
gpl-2.0
20,536
[ "Amber" ]
391156fc456f5f413aa7ff18025b1ef0e186ddbe813b537240033b0519d6a934
# -*- coding: utf-8 -*- # # Slave, (c) 2012-2014, see AUTHORS. Licensed under the GNU GPL. from __future__ import (absolute_import, division, print_function, unicode_literals) from future.builtins import * from slave.driver import Command, Driver from slave.types import Boolean, Enum, Integer...
therealpyro/slave
slave/signal_recovery/sr7225.py
Python
gpl-3.0
27,674
[ "ADF" ]
ac4ad9baf34046f450dc6a27374f9c6b417853bc0ff464b58f3b28fca8933019
#!/usr/bin/python # -*- coding: utf-8 -*- dimensions= 1 size1d = 60 halfSize1 = [size1d,0.2,0.1] halfSize2 = halfSize1 GRIDSIZE = 128 # wavepacket parameters k0_x = 0 k0_y = 0 gaussWidth_x = 1.0 gaussWidth_y = 0.0 potentialCoefficient= [2.0,0.5,0.5] O.engines=[ StateDispatcher([ St1_QMPacketGa...
cosurgi/trunk
examples/qm/1d-harmonic-interaction.py
Python
gpl-2.0
7,816
[ "Gaussian" ]
565e3c33beab12570bcd202b1f15b9f86547b184aa59cd54e9b5eb33bfef6850
""" Implementation of gaussian filter algorithm """ from itertools import product from cv2 import COLOR_BGR2GRAY, cvtColor, imread, imshow, waitKey from numpy import dot, exp, mgrid, pi, ravel, square, uint8, zeros def gen_gaussian_kernel(k_size, sigma): center = k_size // 2 x, y = mgrid[0 - center : k_size ...
TheAlgorithms/Python
digital_image_processing/filters/gaussian_filter.py
Python
mit
1,758
[ "Gaussian" ]
6d3a2c66ca9f3df63b369487e16584de438be562a1221778431179c8493a246b
from utils import get_file # Dictionary of ship types and sizes, 0 being smallest, 3 being largest ship_types = { "argosy": 1, "barque": 3, "barquentine": 2, "bergantina": 2, "bilander": 0, "brig": 2, "brigantine": 2, "carrack": 3, "cog": 2, "corvette": 0, "Dutch clipper": ...
eoinnoble/captains-log
data.py
Python
unlicense
10,874
[ "VisIt" ]
af8e482d0d37541677dbcaa65d3d43baaeba08a09cbab78ad9952ac41057f09a
#!/usr/bin/env python # By Jason Ladner from __future__ import division import sys, optparse, os, pysam #For plotting import matplotlib matplotlib.use('PDF') import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties as fp fontP = fp() #Numpy for stdev import numpy as np import scipy import sc...
jtladner/Scripts
strand_specific_coverage/plot_stranded_coverage_multinorm/plot_stranded_coverage_multinorm_v4.py
Python
gpl-3.0
8,059
[ "pysam" ]
427210b85a39e0f54604c791a5fe24c55adb1eee0d9dd7576b6f2e2f845cd5e7
from flask import Flask, render_template, request, g, Response, redirect, session, abort, send_file, url_for from flask.ext.login import LoginManager, current_user from jinja2 import FileSystemLoader, ChoiceLoader from werkzeug.utils import secure_filename from datetime import datetime, timedelta from shutil import rmt...
SirCmpwn/listed
listed/app.py
Python
mit
3,528
[ "MOE" ]
1233e2496e0125f7dc37b32e092a9fa2b06ef737b3c651082322948e83b93db3
#!/usr/bin/env python import numpy as np import cv2 import os import glob def findLaneLines(image): #Define Parameters #------------------------------------ #Region mask Parameters lowery=1 upppery=0.6 dx=0.04 gap=0.07 #Color mask parameters white_threshold=np.array([180]...
duc43836/FindingLanes
FindingLanes.py
Python
mit
7,170
[ "Gaussian" ]
5a290f8cd530e31c7358fd2992543acf900e409fd51b0cbd8f493faa377edbef
""" provide a generic structure to support window functions, similar to how we have a Groupby object """ from __future__ import division import warnings import numpy as np from collections import defaultdict from pandas.types.generic import (ABCSeries, ABCDataFrame, ...
andyraib/data-storage
python_scripts/env/lib/python3.6/site-packages/pandas/core/window.py
Python
apache-2.0
60,756
[ "Gaussian" ]
2e47ec1f431e684daf21b5dfb08c94677a8681caee115689edb01c336a20a413
import RPi.GPIO as GPIO import time import signal import sys # Setup GPIO.setmode(GPIO.BCM) GPIO.setup(9, GPIO.OUT) GPIO.setup(10, GPIO.OUT) GPIO.setup(11, GPIO.OUT) # Turn off all lights when user ends demo def allLightsOff(signal, frame): GPIO.output(9, False) GPIO.output(10, False) GPIO.output(11, False) GPIO....
simonprickett/pitrafficlights
basicdemo.py
Python
mit
753
[ "Amber" ]
f07a56470edf68b916ed60ae483e5dde4a48df222bdb0c18430d06440833ef95
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # jona-sassenhagen <jona.sassenhagen@gmail.com> # Joan Massich <mailsik@gmail.com> #...
wmvanvliet/mne-python
mne/viz/_brain/_brain.py
Python
bsd-3-clause
154,690
[ "VTK" ]
3791ca6b8fc8522b1646f083d95fff353c429ed10c37b7230f09b357de3871aa
# -*- coding: utf-8 -*- """ Created on Sun Jun 18 21:13:49 2017 @author: asadm2 """ ### DESCRIPTION #This script checks if the RA and DEC of the galaxy are in the image from astropy.wcs import WCS from astropy.io import fits from pathlib2 import Path from glob import glob import os path_to_interim = '/fs1/masad/Res...
MehnaazAsad/ECO_Globular_Clusters
src/data/mods_prelim_checks_2/Obj_in_Img.py
Python
mit
1,868
[ "Galaxy" ]
0b9bc9d1cf54756b74e238a7867091ee7a1964ed409b3f43a779be7899b43216
import py from xdist.looponfail import RemoteControl from xdist.looponfail import StatRecorder class TestStatRecorder: def test_filechange(self, tmpdir): tmp = tmpdir hello = tmp.ensure("hello.py") sd = StatRecorder([tmp]) changed = sd.check() assert not changed hel...
ohmu/pytest-xdist
testing/test_looponfail.py
Python
mit
8,439
[ "VisIt" ]
bedaeb368b3b05ea0477ab9af982de813d4af4737e2bbc392ee395b276daa463
# # GridCoordinates.py # # @author Alain Rinder # @date 2017.06.02 # @version 0.1 # import math from src.Settings import * from src.action.PawnMove import * class Path: """ Find path for pawn """ def __init__(self, moves): self.moves = moves def...
alainrinder/quoridor.py
src/Path.py
Python
mit
6,596
[ "VisIt" ]
95b4a26c12e1f436ab9aaebb15c61345bdbd1c622b13ddb74754c8c2556d2a70
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """rna_tools_lib.py - main lib file, many tools in this lib is using this file.""" import os import sys from collections import OrderedDict import re import string import time import gzip import tempfile import shutil import subprocess from rna_tools.tools.extra_function...
m4rx9/rna-pdb-tools
rna_tools/rna_tools_lib.py
Python
mit
82,236
[ "Amber", "Biopython", "PyMOL", "Pybel" ]
9c348f4e6b63c0f06fa9f6e50fb1c0bebe9d3843314a318c6aa84b2865662f41
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.utils.encoding import smart_str # from django.core.servers.basehttp import FileWrapper from tethys_sdk.gizmos import SelectInput, JobsTable, ToggleSwitch from app im...
CI-WATER/tethysapp-netcdf_to_gssha
tethysapp/netcdf_to_gssha/controllers.py
Python
bsd-2-clause
5,643
[ "NetCDF" ]
d8419b366a3bb5d4591b6068dd9e6046681a4d8eef87f8c9feec4efb881e3985
""" Classes of taxonomy data """ import os import sys class TaxonNode: def __init__(self, t=None, p=None, r=None, e=None, d=None, i=None, gc=None, igc=False, mgc=None, imgc=False, gh=False, hs=False, c=None, *others): self.parent = p self.taxid = t self.rank = r ...
linsalrob/PhageHosts
code/taxon/taxonomy/taxonomy.py
Python
mit
3,396
[ "BLAST" ]
358fc92662b9acb9f155024c63816f0a9500073be013bf43a0fb1990b600ba2f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ TODO: Modify unittest doc. """ __author__ = "Shyam Dwaraknath" __copyright__ = "Copyright 2016, The Materials Project" __version__ = "0.1" __maintainer__ = "Shyam Dwaraknath" __email__ = "shyamd@lbl.gov" ...
gVallverdu/pymatgen
pymatgen/analysis/tests/test_substrate_analyzer.py
Python
mit
2,893
[ "pymatgen" ]
4e013427e124891a27e4876871ff4343698b68effecd48c435e73249786fa369
import time from threading import Thread from Box2D import * from Box2D.b2 import * import pygame, sys, math, random from pygame.locals import * running = True colors = { staticBody : (255,255,255,255), dynamicBody : (127,127,127,255), } def my_draw_polygon(polygon, body, fixture, height, winSurf): PPM=...
Lucas001/Reinforcement-Learning-Models
Q-Learning/RL-PathPlanning.py
Python
gpl-3.0
12,255
[ "VisIt" ]
877a47290d3d584d7c62db644a6c0e3dd8b407462466d7fd90459647315922bf
import ast import unittest from pyt.core.transformer import PytTransformer class TransformerTest(unittest.TestCase): """Tests for the AsyncTransformer.""" def test_async_removed_by_transformer(self): self.maxDiff = 99999 async_tree = ast.parse("\n".join([ "async def a():", ...
python-security/pyt
tests/core/transformer_test.py
Python
gpl-2.0
2,336
[ "VisIt" ]
318dd76a390dc22abd66958c722d5d2ef053c63f42eef0cf886eec515efa738e
from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.exc import * from migrate import * from migrate.changeset import * import datetime now = datetime.datetime.utcnow import sys, logging # Need our custom types, but don't import anything else from model from galaxy.model.custom_types import * log = lo...
volpino/Yeps-EURAC
lib/galaxy/model/migrate/versions/0019_request_library_folder.py
Python
mit
3,432
[ "Galaxy" ]
ffe3e6eb5cee774563faa2da6e38e1b4c07f2495e1238278c2a8d392a97c68de
""" Tests for geography support in PostGIS """ from __future__ import unicode_literals import os from unittest import skipUnless from django.contrib.gis.db.models.functions import Area, Distance from django.contrib.gis.gdal import HAS_GDAL from django.contrib.gis.measure import D from django.test import TestCase, ign...
oinopion/django
tests/gis_tests/geogapp/tests.py
Python
bsd-3-clause
5,944
[ "VisIt" ]
64e504c01b7253e02f4b6b1b8315dbebab6fcbf187578fbb29c163347fcf2ccc
# Copyright 2007-2020 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...
dnjohnstone/hyperspy
hyperspy/tests/component/test_component_set_parameters.py
Python
gpl-3.0
1,914
[ "Gaussian" ]
6ceac12217b57e1660d21d3f0fe805d9f6045b4a5de4b1af7c39c7348f6aaf94
# Warning - contains lots of spoilers import random import sys from level import sign def seekGoal(mob, target, radius, openDoors = False): from pathfind import Pathfinder, infinity import math pf = Pathfinder(cost = lambda tile : infinity if tile.cannotEnterBecause( mob ) and not target(tile) and not (op...
svk/harmless7drl
ai.py
Python
mit
21,665
[ "BLAST" ]
e93e945e01c44e165e3d9973e8517bd431a7137214ca8950f5317d4529516531
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # do alpha-blending of two images, but also clip with stencil reader1 = vtk.vtkBMPReader() reader1.SetFileName(VTK_DATA_ROOT + "/Data/masonry.bmp") reader2 = vtk.vtkPNMReader() reade...
sumedhasingla/VTK
Imaging/Core/Testing/Python/TestBlendStencil.py
Python
bsd-3-clause
1,430
[ "VTK" ]
ba0d5bd98e78b999033bc13ff9911876c0db49499a528f25e652f012534ec2aa
r""" Finite difference solution of the 2D wave equation for isotropic media. * :func:`~fatiando.seismic.wavefd.elastic_psv`: Simulates the coupled P and SV elastic waves using the Parsimonious Staggered Grid method of Luo and Schuster (1990) * :func:`~fatiando.seismic.wavefd.elastic_sh`: Simulates SH elastic waves...
mtb-za/fatiando
fatiando/seismic/wavefd.py
Python
bsd-3-clause
32,983
[ "BLAST", "Gaussian" ]
1b31437eef66aa8995c6bbd121fb72c062ce7daf282bfcc7c17169c351397560
"""Test that atoms.get_center_of_mass(scaled=True) works""" import numpy as np from ase import Atoms d = 1.142 a = Atoms('CO', positions=[(2, 0, 0), (2, -d, 0)], pbc=True) a.set_cell(np.array(((4, -4, 0), (0, 5.657, 0), (0, 0, 10)))) def array_almost_equal(a1, a2, tol=np.finfo(type(1.0)).eps): return (np.abs(a1 ...
grhawk/ASE
tools/ase/test/com.py
Python
gpl-2.0
466
[ "ASE" ]
38ed2fed6fccf7d5ad5d9955acd6d53ac875583e0818fbb744ece6a14010825e
#-*- coding: utf-8 -*- # module pyparsing.py # # Copyright (c) 2003-2019 Paul T. McGuire # # 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...
flavour/eden
modules/pyparsing.py
Python
mit
253,545
[ "VisIt" ]
8de2eeb148d1ad0ecc97fc7fc6ba0bed253a3fde6dfd2d5b73e9652bf730edd7
# 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...
ppwwyyxx/tensorflow
tensorflow/python/ops/image_ops_test.py
Python
apache-2.0
203,043
[ "Gaussian" ]
8a7e2f842f55ffc1d9c36942a851beb1d7070fa6c10001c68c469a86f5d2def0
#!/usr/bin/env python __author__ = 'waroquiers' import unittest from pymatgen.analysis.chemenv.utils.coordination_geometry_utils import Plane import numpy as np import itertools from pymatgen.util.testing import PymatgenTest class PlanesUtilsTest(PymatgenTest): def setUp(self): #Test of plane 4x + 2y -...
matk86/pymatgen
pymatgen/analysis/chemenv/utils/tests/test_coordination_geometry_utils.py
Python
mit
15,097
[ "pymatgen" ]
b0ff6c40ea7aa369daa56f1783d707b4bb623426c894bb36a80dce1e9bc5cc4b
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
SNoiraud/gramps
gramps/plugins/tool/rebuild.py
Python
gpl-2.0
3,428
[ "Brian" ]
9ec8bb21359c8b035473b2afafffdcd150abf8815fd62d786f7cefe2f3cfec39