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 |
|---|---|---|---|---|---|---|---|
"""
The Tornado Framework
By Ali Pesaranghader
University of Ottawa, Ontario, Canada
E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com
"""
class Color:
"""This class provides one with pre-chosen colors."""
Red = ["#b71c1c", "#d32f2f", "#f44336", "#e57373", "#ef9a9a"]
Pink ... | alipsgh/tornado | graphic/hex_colors.py | Python | mit | 6,342 | [
"Amber"
] | 362f34f7e1f852ffe578c6c5b1d6d66a5608e15019e54afffaa9045cc8aac2dc |
"""
BUGS:
+ varying the limits (eg exclude a marker) only has effect on the scalar_bar (color_bar), but not on the display of the vtk
+ there is no good coming back from volumetric slicing atm
"""
from shutil import copyfile
import os
import signal
import sys
import pygimli as pg
from .drawer import drawMesh
from .ut... | gimli-org/gimli | pygimli/viewer/pv/show3d.py | Python | apache-2.0 | 17,965 | [
"VTK"
] | 810b6e8f44c26c172ba2f9882519b8704d8819d6a32942f1b97063a5baef7e90 |
#
# This program is free software you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation either version 3 of the License, or
# (at your option) any later version.
#
# Written (W) 2013 Roman Votyakov
#
from pylab import *
from numpy im... | abhiatgithub/shogun-toolbox | examples/undocumented/python_modular/graphical/classifier_gaussian_process_binary_classification.py | Python | gpl-3.0 | 3,731 | [
"Gaussian"
] | 18198dfc76a7cc197edf84f41501d08a33370e966d338ada2adc6cdb9b5aea22 |
# -*- coding: utf-8 -*-
"""
Simple Interface to read RAW/MHD files e.g. created by elastix
Todo: read subsets efficiently
Example:
>>> import os, numpy
>>> from ClearMap.Settings import ClearMapPath
>>> import ClearMap.IO.RAW as raw
>>> filename = os.path.join(ClearMapPath, 'Test/Data/Raw/test.mhd') ... | ChristophKirst/ClearMap | ClearMap/IO/RAW.py | Python | gpl-3.0 | 9,265 | [
"VTK"
] | d6d9e5bc751afb2a0c6bbbc46938b6222ce693fc674442010389275957ecae89 |
import os
from PyPtt import version
# A setuptools based setup module.
# See:
# https://packaging.python.org/en/latest/distributing.html
# https://github.com/pypa/sampleproject
# Always prefer setuptools over distlib_utils
from setuptools import setup
long_description = '''PyPtt (PTT Library) 是一套 Pure Python PTT API... | Truth0906/PTTCrawlerLibrary | setup.py | Python | lgpl-3.0 | 6,917 | [
"VisIt"
] | 8ede51bab5e2a8b75c27b44128676407b042364be40351e82f52a23e7fe545e6 |
import py
import pytest
import execnet
from _pytest.pytester import HookRecorder
from xdist import slavemanage, newhooks
from xdist.slavemanage import HostRSync, NodeManager
pytest_plugins = "pytester"
def pytest_funcarg__hookrecorder(request, config):
hookrecorder = HookRecorder(config.pluginmanager)
if hasa... | ohmu/pytest-xdist | testing/test_slavemanage.py | Python | mit | 9,551 | [
"VisIt"
] | 07d69012cf4ae622bbd60f75b6ac19b199ceb19fadfb3d2c62204b08e6d3b2b4 |
#!/usr/bin/env python
##
## @file translateMath.py
## @brief Translates infix formulas into MathML and vice-versa
## @author Sarah Keating
## @author Ben Bornstein
##
##
## This file is part of libSBML. Please visit http://sbml.org for more
## information about SBML, and the latest version of libSBML.
##
i... | dilawar/moose-full | dependencies/libsbml-5.9.0/examples/python/translateMath.py | Python | gpl-2.0 | 2,002 | [
"VisIt"
] | 6e59dcc1721f54869154fd809ffe26c803cf2d0d646a023b70c51de9cb955e7b |
"""@package gmm_clustering
loads data, runs the gaussian mixture model filter with clustering tacked on
"""
import numpy as np
import math
import matplotlib.pyplot as plt
import sys
import time
import scipy.stats as stats # for chi-sqaured functions
import scipy.linalg # for sqrtm() function
import cluster_processing
... | fatadama/estimation | challenge_problem/trials_clustering/gmm_clustering.py | Python | gpl-2.0 | 8,690 | [
"Gaussian"
] | 55f6b136a541d48f79e87f0ce71e31679aa5d8977fec2b5e6db87b7b9a5abb10 |
#objects.py
from buckPasser.sqlTable import SQLTable, StagedSqlTable
from buckPasser.inventory import PassiveInventory
from . import userInput
import os
from buckPasser.menus import ObjectMenu
def objectFactory(db, code, stage):
obj = Objects(db)
obj.setCode(code)
obj.readFromDB(stage)
obj.menu.title = obj.objNam... | snhobbs/DetectiveBuckPasser | buckPasser/objects.py | Python | unlicense | 3,863 | [
"VisIt"
] | 64ad3ad0cec7d556a85c2eae51189a8f3eed80dbc9a5a25f12491ab4590666be |
import re
from Bio import Entrez
def blast_config():
access_regex = re.compile("[A-Z]{2}_*[0-9]+[.][0-9]")
blast_db = "refseq_rna"
blast_type = "blastn"
e_value = 1
hitlist_size = 10
species = "Mus musculus"
species_regex = re.compile("Mus.+")
#align_min = 0 Setup a min and max align
#a... | julioscalves/pyblast | pyblast_config.py | Python | mit | 691 | [
"BLAST"
] | 0b3bfc19c9fed3650568427b82a270adb874b7abcc7b4c4014b27d6809884437 |
"""
Test the coordinates class that represents the plane of orbit of the Sgr dwarf galaxy.
"""
# Third-party
import astropy.coordinates as coord
import astropy.units as u
from astropy.utils.data import get_pkg_data_filename
import numpy as np
# This package
from ..sgr import SagittariusLaw10, Sagittarius
def te... | adrn/gary | gala/coordinates/tests/test_sgr.py | Python | mit | 2,422 | [
"Galaxy"
] | a500ae8d8f09fa74ab442f271dc005f90282566ba203c7231017545ff5249634 |
# ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | jakereps/q2-diversity | q2_diversity/_beta/_visualizer.py | Python | bsd-3-clause | 17,634 | [
"scikit-bio"
] | ad7c772beffede478f56a546a0d2a602d428e182c4ae865d423cea2a17afdfb1 |
from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import argparse
from AdaptivePELE.tests import testSpawning as tSpawning
from AdaptivePELE.tests import testAtomset as tAtomset
from AdaptivePELE.tests import testClustering as tClustering
from AdaptivePELE.tests import t... | AdaptivePELE/AdaptivePELE | AdaptivePELE/runAllTests.py | Python | mit | 3,226 | [
"OpenMM"
] | 8701b197defe5a3d5aa64fdd5e8f03f0f3cb83ad8ecd293ae2fc6691009fef29 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module for graph representations of crystals.
"""
import warnings
import subprocess
import numpy as np
import os.path
import copy
from itertools import combinations
from pymatgen.core import Structure, La... | fraricci/pymatgen | pymatgen/analysis/graphs.py | Python | mit | 114,612 | [
"CRYSTAL",
"Jmol",
"pymatgen"
] | b0f2b5d669e351abad7e5ab3a1461f0b26d183a50307c129504f3a99d034dba7 |
"""Test of PBLAS Level 2 & 3 : rk, r2k, gemv, gemm.
The test generates random matrices A0, B0, X0, etc. on a
1-by-1 BLACS grid. They are redistributed to a mprocs-by-nprocs
BLACS grid, BLAS operations are performed in parallel, and
results are compared against BLAS.
"""
import sys
import numpy as np
from gpaw.mpi ... | robwarm/gpaw-symm | gpaw/test/parallel/pblas.py | Python | gpl-3.0 | 5,362 | [
"GPAW"
] | 98e26530595bd46c2fb172a2d8b79b9f1abd2659e50c69d4c698cdff5c113304 |
#!/usr/bin/env python3
import itertools
from collections import defaultdict
import logging
from operator import mul
import networkx as nx
import numpy as np
import pandas as pd
from pgmpy.base import DirectedGraph
from pgmpy.factors.discrete import TabularCPD, JointProbabilityDistribution, DiscreteFactor
from pgmpy.... | jhonatanoliveira/pgmpy | pgmpy/models/BayesianModel.py | Python | mit | 36,892 | [
"VisIt"
] | cf4d34ecfc3beb8ababe6c23234f0aad5944e78b1db401e9a584c21d85090137 |
# -*- coding: utf-8 -*-
"""
=====================================================
OT for image color adaptation with mapping estimation
=====================================================
OT for domain adaptation with image color adaptation [6] with mapping
estimation [8].
[6] Ferradans, S., Papadakis, N., Peyre, G... | rflamary/POT | examples/plot_otda_mapping_colors_images.py | Python | mit | 4,180 | [
"Gaussian"
] | 6f9670ed103574a4c67d7fff9214009d4fc1316be382cf0e2e3773fdca6ae677 |
# -*- coding: utf-8 -*-
#
# plot_weight_matrices.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... | zifeo/nest-simulator | pynest/examples/plot_weight_matrices.py | Python | gpl-2.0 | 6,305 | [
"NEURON"
] | e213d598300b59c58a801f603f40cb756c35ccc78f7bf76552ea35e7d04f402f |
from zope.interface import Interface
from foolscap.api import StringConstraint, ListOf, TupleOf, SetOf, DictOf, \
ChoiceOf, IntegerConstraint, Any, RemoteInterface, Referenceable
HASH_SIZE=32
Hash = StringConstraint(maxLength=HASH_SIZE,
minLength=HASH_SIZE)# binary format 32-byte SHA256 ... | drewp/tahoe-lafs | src/allmydata/interfaces.py | Python | gpl-2.0 | 115,999 | [
"Brian",
"VisIt"
] | d28b908f7af5136c118e462d8777e3b719bd35237d481a7a40ab970f4183db03 |
# Copyright (C) Schrodinger, LLC.
# All Rights Reserved
#
# For more information, see LICENSE in PyMOL's home directory.
#
# justhttpd.py
#
# vanilla web server designed for testing multi-origin applications
# by serving up content on 127.0.0.1:xxxx instead of localhost:yyyy
import BaseHTTPServer, cgi, urlparse, socke... | gratefulfrog/lib | python/web/examples/justhttpd.py | Python | gpl-2.0 | 7,664 | [
"PyMOL"
] | 8fc4e6180363c456b2499a756225477d23406e2699aa581073a7e3aa97d5f6f6 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/datetimedelegate.py | Python | gpl-2.0 | 2,388 | [
"VisIt"
] | 844251d0755deb796cd8b44e75fcba8a73463bf42fb0966c319870adf189860c |
# encoding: utf-8
"""
The Base Application class for IPython.parallel apps
Authors:
* Brian Granger
* Min RK
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full lice... | WillisXChen/django-oscar | oscar/lib/python2.7/site-packages/IPython/parallel/apps/baseapp.py | Python | bsd-3-clause | 10,064 | [
"Brian"
] | 78f3b99b83ad61b83e08ba894773beb4ed9260f92f18b80af29fff8ae850ea72 |
import CogHQLoader
import LawbotHQBossBattle
import LawbotHQExterior
import LawbotOfficeExterior
import StageInterior
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import State
from direct.fsm import StateData
from direct.gui import DirectGui
from toontown.toon import Toon
from toontown.toonbase im... | ToontownUprising/src | toontown/coghq/LawbotCogHQLoader.py | Python | mit | 4,773 | [
"VisIt"
] | 20d051c67cb9a6ab7fdf80b69ef762e4cdec7b3cb70103f813edac89ef6b3a04 |
"""
Bok choy acceptance and a11y tests for problem types in the LMS
See also lettuce tests in lms/djangoapps/courseware/features/problems.feature
"""
import random
import textwrap
from nose import SkipTest
from abc import ABCMeta, abstractmethod
from nose.plugins.attrib import attr
from selenium.webdriver import Acti... | longmen21/edx-platform | common/test/acceptance/tests/lms/test_problem_types.py | Python | agpl-3.0 | 28,323 | [
"VisIt"
] | dee0f035812a7f77dfab4a3e7054613e0bf50319a78ac1551446c028733f2c35 |
"""
(This script is independent from lfc_dfc_copy)
This script is used to migrate the content of the LFC DB to the DFC DB when used with Stored procedure and Foreign keys.
It won't work with the other schema. It is the central component of the migration.
* Please read the doc of each method in this script, there are... | hgiemza/DIRAC | DataManagementSystem/Utilities/lfc_dfc_db_copy.py | Python | gpl-3.0 | 40,796 | [
"DIRAC"
] | abc238699f4be0e0973c969ab112c034b2220cb8bfed8b78cf0d8d35f3941c43 |
#!/usr/bin/env python
# Copyright 2001 by Brad Chapman. 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.
"""Test the creation of graphics of distribution information.
Provides te... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_GraphicsDistribution.py | Python | gpl-2.0 | 2,691 | [
"Biopython"
] | 4fe7c0aed78ad9ea776438a70a769a16d79b528b833c8eb2c6b6be53eacc2813 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import
import os
import click
import cookiecutter.main
import please_cli.config
impor... | lundjordan/services | lib/please_cli/please_cli/create.py | Python | mpl-2.0 | 2,344 | [
"VisIt"
] | dc408487d4a2d1a5d296d55ea47778492daacee8644386dacb6a263fb6cbdf6f |
# Sample module in the public domain. Feel free to use this as a template
# for your modules (and you can remove this header and take complete credit
# and liability)
#
# Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is f... | esaunders/autopsy | pythonExamples/fileIngestModuleWithGui.py | Python | apache-2.0 | 7,878 | [
"Brian"
] | af408653d56a12c239750b885b6e74d60125a1aef454140b6f18f983acabc9eb |
# coding: utf8
# Copyright 2014-2017 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Int... | blond-admin/BLonD | unittests/llrf/test_cavity_feedback.py | Python | gpl-3.0 | 27,352 | [
"Gaussian"
] | 82919d8f0acc27b60f881b6ffc65decc6492e98649aedd067cd1f6d4be4843f0 |
"""Classes related to preparing members for the next calibration iteration
"""
import os
import numpy as np
import esutil
from ..catalog import Entry, Catalog
from ..galaxy import GalaxyCatalog
from ..utilities import read_members
from ..configuration import Configuration
class PrepMembers(object):
"""
Class ... | erykoff/redmapper | redmapper/calibration/prepmembers.py | Python | apache-2.0 | 3,678 | [
"Galaxy"
] | 40b087b5c0054681fecb46e9af4b1033a8fd4ba8e61940cd7020b6dbf6b39bbb |
import os
import numpy as np
import matplotlib.pyplot as plt
import test_sersic_highn_basic
import test_gaussian_basic
# Now try a trick... import the sersic plotting script (this will run it, but it's quick) and
# use the Sersic n=.5 results from there directly
import plot_sersic_highn
print "Plotting the Gaussian r... | mardom/GalSim | devel/external/test_sersic_highn/plot_gaussian.py | Python | gpl-3.0 | 3,387 | [
"Gaussian"
] | 2b38e2d5fff0d80087922aaed7b715217604a86b4095fb4a9ffcbe0003d4c74a |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# --- BEGIN_HEADER ---
#
# resedit - Resource editor back end
# Copyright (C) 2003-2014 The MiG Project lead by Brian Vinter
#
# This file is part of MiG.
#
# MiG is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | heromod/migrid | mig/shared/functionality/resedit.py | Python | gpl-2.0 | 17,421 | [
"Brian"
] | 0e99e76650c00c90bae73d7c5fc5c79e304a5fbdb43cf582ec076195d3b3792b |
########################################################################
# $HeadURL$
# Author : Andrei Tsaregorodtsev
########################################################################
"""
Utilities for managing DIRAC configuration:
getCEsFromCS
getUnusedGridCEs
getUnusedGridSEs
getSiteUpdates
get... | rajanandakumar/DIRAC | ConfigurationSystem/Client/Utilities.py | Python | gpl-3.0 | 16,656 | [
"DIRAC"
] | 64dfbe62da2fe879664274bd36119a86e7e777912895a595cf8ba672d468d4be |
import datetime as dt
import numpy as np
def ncgettypecode(dtype):
''' purpose: netcdf-typecode from array-dtype
'''
if ((dtype == np.dtype('float32')) or (dtype == 'float32')):
return 'f'
elif ((dtype == np.dtype('float64')) or (dtype == 'float64')):
return 'd'
elif ((dtype == np.d... | hendrikwout/pynacolada | old/pynacolada/ncdfextract.py | Python | gpl-3.0 | 1,372 | [
"NetCDF"
] | 9a2843d42d83989bdee5b85b8b1c31f3fb149e5e54043053632ef10512563a93 |
# -*- coding: utf-8 -*-
{
"'Cancel' will indicate an asset log entry did not occur": "'cancelar' irá indicar que a entrada de log de ativo não ocorreu",
"A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a bou... | gnarula/eden_deployment | languages/pt-br.py | Python | mit | 271,535 | [
"VisIt"
] | 61782ddad1e94cc740ccc8d96facaefa030ce419a31197da64be36b52966f0fc |
# -*- coding: utf-8 -*-
# Copyright (C) 2019 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 ... | googleapis/python-recommendations-ai | scripts/fixup_keywords.py | Python | apache-2.0 | 6,999 | [
"VisIt"
] | 61b51e55d08a272f8290a206f18840fd379e292a21fe65fd1ba0d77de23c8ce0 |
#!/usr/bin/python
##############################
##
## MLTreeMap TSN v. 0.0
##
##############################
try:
import sys
import os
from os import path, _exit
import shutil
import re
import glob
import subprocess
from optparse import OptionParser
import time
except:
print ""... | wholebiome/MetaPathways_Python_Koonkie.3.0 | libs/python_scripts/MetaPathways_mltreemap.py | Python | mit | 111,054 | [
"BLAST"
] | 7555780831fa052b8b9f0012298a28d6d14be38bcecf9a40ecbcd7a035de39c0 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are m... | mikehulluk/morphforge | src/morphforgeexamples/exset2_singlecell_simulations/singlecell_simulation080.py | Python | bsd-2-clause | 5,791 | [
"NEURON"
] | 312727633ae59d6c28abb51e0c1a9621e5e21b64d123b7dbd58055fea5ec45d8 |
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2000-2005 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009 Benny Malengier
# Copyright (C) 2012 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of th... | sam-m888/gprime | gprime/plug/_manager.py | Python | gpl-2.0 | 23,952 | [
"Brian"
] | 53d297838643ef40a56f1b668d2a9f20dc9d30676a5a239a2d7ae0e95d232f93 |
##############################################################################
# adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD)
# Simulations on HPC Resources
# Copyright 2017 FU Berlin and the Authors
#
# Authors: Jan-Hendrik Prinz
# Contributors:
#
# `adaptiveMD` is free software: ... | thempel/adaptivemd | adaptivemd/engine/__init__.py | Python | lgpl-2.1 | 1,120 | [
"MDTraj"
] | 0e0d42e9753d0739863674572a52f64e8789ba2854ec560ab5baf58df4155600 |
# Copyright (C) 2010-2018 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... | hmenke/espresso | src/python/espressomd/io/writer/vtf.py | Python | gpl-3.0 | 3,331 | [
"ESPResSo",
"VMD"
] | 3324225107efccbd7474b6f6e82cab98b342ec64f7fbc3c604122cc929d7e450 |
# -*- coding: utf-8 -*-
#
# This file is part of cclib (http://cclib.github.io), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2008-2014, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser Gen... | ChemSem/cclib | src/cclib/parser/psiparser.py | Python | lgpl-2.1 | 45,115 | [
"NWChem",
"Psi4",
"cclib"
] | 54bbb2a577ed38fb9ee1e1aad7f328d58d3200f09b7f920e6488101e8ba21e8e |
from google.protobuf import text_format
from .caffe import get_caffe_resolver
from .errors import KaffeError, print_stderr
from .layers import LayerAdapter, LayerType, NodeKind, NodeDispatch
from .shapes import TensorShape
class Node(object):
def __init__(self, name, kind, layer=None):
self.name = name
... | lexionbear/mlmodels | tensorflow/libs/caffe-tensorflow/kaffe/graph.py | Python | mit | 11,653 | [
"VisIt"
] | c694be34f620ccb4bec88d85d41dc1b63d6166ca613412957bec66e901cf502f |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License versi... | anksp21/Community-Zenpacks | ZenPacks.AndreaConsadori.MRV/ZenPacks/AndreaConsadori/MRV/modeler/plugins/MrvL3DeviceMap.py | Python | gpl-2.0 | 1,374 | [
"VisIt"
] | fdcce548f7812f70de9ae1c53f9d9657752477c9a10bb9452e4c245cc898ecf3 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkMultiGroupDataGroupFilter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | chrisidefix/devide | modules/vtk_basic/vtkMultiGroupDataGroupFilter.py | Python | bsd-3-clause | 522 | [
"VTK"
] | 49559128602a7a70392920fb2f5b692ac8a6423524361a30a8ff8aa762b70164 |
"""
@name: Modules/House/Entertainment/_test/test_entertainment_utility.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2019-2019 by D. Brian Kimmel
@license: MIT License
@note: Created on Dec 25, 2019
@summary: Test
Passed all 13 tests - DBK - 2019-12-25
"""
__update... | DBrianKimmel/PyHouse | Project/src/Modules/House/Entertainment/_test/test_entertainment_utility.py | Python | mit | 2,632 | [
"Brian"
] | 8c60b61d9dfe9a7617879f5c893cb8a7cc4e0d70e88333fb42d430e93dc27022 |
#!/usr/bin/env python
"""Test plotting of various GoSubDag options."""
__copyright__ = "Copyright (C) 2016-2017, DV Klopfenstein, H Tang. All rights reserved."
__author__ = "DV Klopfenstein"
import os
import sys
from goatools.base import get_godag
from goatools.base import dnld_gaf
from goatools.associations import r... | tanghaibao/goatools | tests/test_gosubdag_tcntobj.py | Python | bsd-2-clause | 5,009 | [
"NEURON"
] | 7b1aa0e8f54374496d15fb6f8ed186c7aa764be11fea404e3b660e5e6528c4aa |
'''
Created on Feb 19, 2013
List of parsers. Each one is specific to the version of log.
@author: tcpan
'''
import re, pprint
class LogParserBase():
'''
this is the base class. all other parsers inherit from this
supports streaming so only parse one line at a time.
'''
pp = pprint.PrettyPrinter... | EmoryUniversity/PIAT | src/common/log-analysis/python-discard/LogParser/LogParsers.py | Python | lgpl-3.0 | 5,971 | [
"Jaguar"
] | 2434853c1a1ba57961b7012ad36acfd3ad1e1fd78d1fbc89e9afeb3b6fb2b1c3 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Softw... | andrebellafronte/stoq | stoqlib/database/tables.py | Python | gpl-2.0 | 6,846 | [
"VisIt"
] | 34d6fd58e2931e32a3014dc62cfb6b4bcd86537571c0d70a0866114f31a534f4 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module containing class to create an ion
"""
import re
from copy import deepcopy
import numpy as np
from monty.json import MSONable
from pymatgen.core.composition import Composition
from pymatgen.util.st... | gmatteo/pymatgen | pymatgen/core/ion.py | Python | mit | 6,688 | [
"pymatgen"
] | bd367eec457237b8d166ddddda83732a0a6c8f7e3cf78443c1f055f12fe8ada4 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from pymatgen.core.libxcfunc import LibxcFunc
from pymatgen.util.testing import PymatgenTest
class LibxcFuncTest(PymatgenTest):
def test_libxcfunc_api(self):
"""Testing libxcfunc_api."""
... | gmatteo/pymatgen | pymatgen/core/tests/test_libxcfunc.py | Python | mit | 875 | [
"pymatgen"
] | ba920ce6cb8eedc2b8e4ce70b79d66e17fd22c3cf66d5a5bbab4c5097b8c944d |
"""Jupyter Integration."""
import ast
import socket
from os.path import join as pjoin
from urllib.parse import urljoin
import json
import re
import sys
import types
import time
from multiprocessing import Process
from IPython import get_ipython
from IPython.display import display, HTML, clear_output
from IPython.core... | jwkvam/conex | bowtie/_magic.py | Python | mit | 4,773 | [
"Bowtie"
] | f5041255897a3e8fb5c446e4c001a601c1320c9e9037cfe1d05ba6b1f0ce5884 |
# The MIT License (MIT)
#
# Original work Copyright (c) 2016 Taehoon Kim
# Modified work Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#... | ethantang95/DIGITS | examples/gan/network-celebA-encoder.py | Python | bsd-3-clause | 16,138 | [
"Gaussian"
] | 0b9e75aeef2b10cdf920258bcf11c55cdf51a586c6c3193e5425a7984b8cfb4d |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# This software (including its Debian packaging) is available to you under the terms of the GPL-3,
# see "/usr/share/common-licenses/GPL-3".
# Software is created and maintained by Laboratory of Biomolecular Systems Simulation at University of Gdansk.
# Contributors:
# - ... | tomaszmakarewicz/Dynamics | tests/basic_simulation_test.py | Python | gpl-3.0 | 1,299 | [
"Gromacs"
] | 637d428c064d54adc01f83498f8a2c64bf9b35910f9f9e01679805902b886c12 |
""" This module loads all the classes from the VTK Charts library into
its namespace. This is an optional module."""
import os
if os.name == 'posix':
from libvtkChartsPython import *
else:
from vtkChartsPython import *
| jeffbaumes/jeffbaumes-vtk | Wrapping/Python/vtk/charts.py | Python | bsd-3-clause | 230 | [
"VTK"
] | e1b4d455a3ef95d62ef8d7a096c095b664064e3421b33d1b0e08ebf28a63ca06 |
import os
import subprocess
import jinja2
import json
import openchemistry as oc
def run_calculation(geometry_file, output_file, params, scratch_dir):
# Read in the geometry from the geometry file
# This container expects the geometry file to be in .xyz format
with open(geometry_file) as f:
xyz_s... | OpenChemistry/mongochemdeploy | docker/nwchem/src/run.py | Python | bsd-3-clause | 3,174 | [
"NWChem"
] | 9241c7b368b588164a69f921b1746c4aa6730def0d53bd387f37f19cfff11675 |
# 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)
import os
from spack import *
class Gaussian(Package):
"""Gaussian is a computer program for computational chemistry... | LLNL/spack | var/spack/repos/builtin/packages/gaussian/package.py | Python | lgpl-2.1 | 1,917 | [
"Gaussian"
] | a980caed2785f46c711104c618baca85361aecfa324fbc79a426923a2e4e1f5c |
import openmoltools
import mdtraj as md
from simtk.openmm import app
import simtk.openmm as mm
from simtk import unit as u
import openmmtools
temperature = 300. * u.kelvin
equil_friction = 5 / u.picoseconds
equil_timestep = 1 * u.femtoseconds
pressure = 1.0 * u.atmospheres
barostat_frequency = 25
discard_steps = 10000... | choderalab/LiquidBenchmark | src/test_stepsize/old/equilibrate_water.py | Python | gpl-2.0 | 2,170 | [
"MDTraj",
"OpenMM"
] | 54c134fff0c655cf1ef9d4f37382d287f483ec89c578d95fac02647a5dfb31c9 |
"""
Simple Gaussian Naive Bayes Classification
------------------------------------------
Figure 9.2
A decision boundary computed for a simple data set using Gaussian naive Bayes
classification. The line shows the decision boundary, which corresponds to the
curve where a new point has equal posterior probability of be... | kcavagnolo/astroML | book_figures/chapter9/fig_simple_naivebayes.py | Python | bsd-2-clause | 2,509 | [
"Gaussian"
] | 5681743cc0234bdf19497a47c4a391e6c100e660445e056ee4ebe592922407be |
from __future__ import absolute_import, division, print_function
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed ... | JWDebelius/scikit-bio | skbio/alignment/_exception.py | Python | bsd-3-clause | 711 | [
"scikit-bio"
] | 78aa499903b2e45ffd5b5ffa9b2797d463987ae6ee53edeae92582840ef4f1aa |
#!/usr/bin/python
#
# Copyright 2015 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... | jtk54/spinnaker | dev/build_release.py | Python | apache-2.0 | 37,041 | [
"ORCA"
] | e8facbbc97eba2f857f1f1520d1148ed1482903bd0531f0948954ffeae32f7f4 |
# Authors: Aaron Qiu <zqiu@ulg.ac.be>,
# Antonio Sutera <a.sutera@ulg.ac.be>,
# Arnaud Joly <a.joly@ulg.ac.be>,
# Gilles Louppe <g.louppe@ulg.ac.be>,
# Vincent Francois <v.francois@ulg.ac.be>
#
# License: BSD 3 clause
from __future__ import division, print_function, absolute_import
... | orlandi/connectomicsPerspectivesPaper | participants_codes/aaagv/directivity.py | Python | mit | 2,853 | [
"NEURON"
] | 93f4961c66dc4f184c288f4b85dc79a755619afd745bf43cb2f447235b8f1d54 |
ref = []
ref.append(['AMBER_apo','truncated.pdb','Crystal'])
ref.append(['AMBER_apo','Avg_structure/021.150.avg_structure.pdb','Average Structure 021 - 150'])
| rbdavid/RMSD_analyses | PCA_RMSD_Multi_Ref/ref_list.py | Python | gpl-3.0 | 163 | [
"CRYSTAL"
] | 67ddd114c0fa3b8a5345d29816e88ddcdbf4ec1e64cd9599ba5ddc248cadddcc |
'''
Feed-Foward Artificial Neural Network
-------------------------------------
Feed-foward nets are the simplest NN's to master. They are comprised of
an input layer, one or more hidden layers and an output layer. Since the
dimensionality of out data is 2 inputs to 1 output, there will be 2 input
... | lucasbrsa/MLANN-1 | src/feed_forward_net.py | Python | gpl-3.0 | 9,071 | [
"NEURON"
] | 677425804ef03920f6c4d30b9089fcab8b22f25bb63566b00bfaad7ddb82b159 |
""" TaskQueueDB class is a front-end to the task queues db
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
__RCSID__ = "$Id"
import six
import random
import string
from DIRAC import gConfig, S_OK, S_ERROR
from DIRAC.Core.Base.DB import DB
from DIRAC.Co... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/DB/TaskQueueDB.py | Python | gpl-3.0 | 54,572 | [
"DIRAC"
] | 910f1402c7a3bc7dce52949bf23a959a8be80d78208ff0e60a64bc841bef13b7 |
__author__ = 'Zero'
from django.utils.translation import ugettext_lazy as _
from horizon import tables
from django.utils.translation import pgettext_lazy
from django import template
from openstack_dashboard.dashboards.admin.systemlogs import trans
import logging
LOG = logging.getLogger(__name__)
class Downl... | xuweiliang/Codelibrary | openstack_dashboard/dashboards/admin/systemlogs/tables.py | Python | apache-2.0 | 2,304 | [
"VisIt"
] | b86e257d055a546d0bc12467de6c0a4f001266c1643e3d337b87b31cb462375b |
import sys
import numpy as np
import pyzed.sl as sl
import cv2
help_string = "[s] Save side by side image [d] Save Depth, [n] Change Depth format, [p] Save Point Cloud, [m] Change Point Cloud format, [q] Quit"
prefix_point_cloud = "Cloud_"
prefix_depth = "Depth_"
path = "./"
count_save = 0
mode_point_cloud = 0
mode_d... | stereolabs/zed-opencv | python/zed-opencv.py | Python | mit | 5,466 | [
"VTK"
] | 7325961b55baaabcbe4dff5236ab35eb9fbf424206bfc4d67015dfa9043c894c |
# (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | decvalts/iris | lib/iris/tests/test_trajectory.py | Python | gpl-3.0 | 9,235 | [
"NetCDF"
] | 6974de1172dacd031376721656036290095eaf2f91aacbb0e01c6026a19c4a22 |
# -*- coding: utf-8 -*-
###############################################################################
# lazyflow: data flow based lazy parallel computation framework
#
# Copyright (C) 2011-2014, the ilastik developers
# <team@ilastik.org>
#
# This program is free software; you c... | stuarteberg/lazyflow | lazyflow/operators/vigraOperators.py | Python | lgpl-3.0 | 76,465 | [
"Gaussian"
] | 63389160d5bef42e81be3ecf5d74a764e5babdff7eac64518b78eb02984fd242 |
'''
Module implementing the CUDA "standalone" device.
'''
import os
import inspect
from collections import defaultdict, Counter
import tempfile
from distutils import ccompiler
import re
from itertools import chain
import numpy as np
from brian2.codegen.cpp_prefs import get_compiler_and_args
from brian2.codegen.transl... | brian-team/brian2cuda | brian2cuda/device.py | Python | gpl-2.0 | 98,245 | [
"Brian"
] | 73d7ee1327b330814a0a6742d6b59b10c49aba97ee7cea64c186a2e1a55a7761 |
"""
Course catalog page
"""
import re
from bok_choy.page_object import PageObject
from common.test.acceptance.pages.lms import BASE_URL
class CacheProgramsPage(PageObject):
"""
Visit this page to call the cache_programs management command.
This page makes a GET request to a view which is only meant t... | edx/edx-platform | common/test/acceptance/pages/lms/catalog.py | Python | agpl-3.0 | 778 | [
"VisIt"
] | 37ac4e5e4579af16e6b9da175612b3df75a44c5764bdb9e976afe6bbaad54cfc |
# ======================================================================
# Given
# - a 3D unstructured grid (vtu file) representation of the MV segmentation
# (e.g. by CGAL meshing operator, followed by vtk2vtu-Converter), which
# only contains the connectivity information of 3D cells with four vertices
# (i.e. tet... | CognitionGuidedSurgery/msml | src/msml/ext/vtuToHf3inpIncMVmatIDsProducer.py | Python | gpl-3.0 | 10,077 | [
"VTK"
] | 2763609f740cea233d790624e500ec4c2b2e5e3f73fec75f37662c19cceba905 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-11-25 16:16
from django.conf import settings
import django.contrib.postgres.fields
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
replaces = [
('seqr', '0001_initial'), ('seqr', '00... | macarthur-lab/seqr | seqr/migrations/0001_squashed_0067_remove_project_custom_reference_populations.py | Python | agpl-3.0 | 40,222 | [
"ASE"
] | b4562f3c4b646d2115dc415b4138e140c01bd160b81da5c6b414dfdb00d1f664 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | gmarek/perf-tests | verify/boilerplate/boilerplate.py | Python | apache-2.0 | 4,740 | [
"VisIt"
] | adc08173258e6be06df613a53178055d5331357e2cd039456d9a8a3c517a6713 |
import json
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from dependency_management.requirements.NpmRequirement import NpmRequirement
from coala_utils.param_conversion import negate
def bool_or_str(value):
try:
return bool(value)
except:
... | vijeth-aradhya/coala-bears | bears/js/JSHintBear.py | Python | agpl-3.0 | 20,197 | [
"VisIt"
] | cedba6cb206d8a4c143451b11d5b45c1433505920d681b0788fc9ae33a5972eb |
#!/usr/bin/python2.7
# encoding: utf-8
from __future__ import division
from itertools import groupby
from operator import itemgetter
import datetime
# Parallel computing
import multiprocessing as mp
#Local import
from pyseidon.utilities.regioner import *
from pyseidon.utilities.miscellaneous import time_to_index
from ... | TheKingInYellow/PySeidon | pyseidon/fvcomClass/variablesFvcom.py | Python | agpl-3.0 | 28,664 | [
"NetCDF"
] | 4aacc854f99d26cacd2d2393097ddc75318c3b89e3e1dae5d0297a86f62da586 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/peacock/tests/exodus_tab/test_BackgroundPlugin.py | Python | lgpl-2.1 | 5,345 | [
"MOOSE"
] | dd9b8a48545c5c107f3f120f452d9d218e6df62bd5fb0b550277ffefd1eec443 |
###############################################################################
# This file is part of GALARIO: #
# Gpu Accelerated Library for Analysing Radio Interferometer Observations #
# #
... | mtazzari/galario | python/utils.py | Python | lgpl-3.0 | 17,223 | [
"Gaussian"
] | 44f8f819feeab42d6e9b6d942dcbeb9104a00d4b36425f83fdc9506a4f7ba947 |
# wfn.py -- Wavefunctions
#
# Copyright (c) 2016 Steven Vancoillie
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
... | steabert/molpy | molpy/wfn.py | Python | gpl-2.0 | 24,129 | [
"MOLCAS"
] | c42d62c6683d8c28372be4ce8a8d021939c939f39368e49352de94fdb8aaec92 |
# -*- coding: utf-8 -*-
# Copyright 2013 Mirantis, 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 requi... | zhaochao/fuel-web | nailgun/nailgun/rpc/receiver.py | Python | apache-2.0 | 39,053 | [
"VisIt"
] | bde255f0945b3f7d1ce566cb0f6d61f9701c6778f468f8d198e77b13179491d3 |
# Written by Lauri Lehtovaara, 2007
"""This module implements classes for time-dependent variables and
operators."""
import numpy as np
from gpaw.external_potential import ExternalPotential
from gpaw.utilities import pack2, unpack
from gpaw.mpi import run
from gpaw.fd_operators import Laplace, Gradient
from gpaw.tdd... | qsnake/gpaw | gpaw/tddft/tdopers.py | Python | gpl-3.0 | 17,684 | [
"GPAW"
] | 7df5e89b01f4d9d50f60741741be600b8813a68a44c17ada73842bdbd849ce06 |
import sys
import os
from PyQt5 import QtCore, QtWidgets
import vtk
from vtk.qt.QVTKRenderWindowInteractor import QVTKRenderWindowInteractor
import chigger
import mooseutils
from ExodusPlugin import ExodusPlugin
class RetinaQVTKRenderWindowInteractor(QVTKRenderWindowInteractor):
"""
Currently VTK7.1 and Qt5 do... | backmari/moose | python/peacock/ExodusViewer/plugins/VTKWindowPlugin.py | Python | lgpl-2.1 | 15,583 | [
"VTK"
] | a7c76e59dc6e704f5cca9590dca728dc39402f12dde5e8917eadfe2b4465d636 |
# Copyright 2009 Brian Quinlan. All Rights Reserved.
# Licensed to PSF under a Contributor Agreement.
"""Implements ProcessPoolExecutor.
The follow diagram and text describe the data-flow through the system:
|======================= In-process =====================|== Out-of-process ==|
+----------+ +----------... | mopemope/jega | jega/futures/_process.py | Python | bsd-3-clause | 14,903 | [
"Brian"
] | dfb5f791c476392b535c032000f7994d7a4e8a2f8811685f476bee2b1b685c60 |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/orca/src/bigdl/orca/tfpark/text/estimator/bert_base.py | Python | apache-2.0 | 5,661 | [
"ORCA"
] | 2e8f7dc44144ee639d5915b88bb76c3756b109cb6c1bfcec21b631c556bcbc3b |
#
# Copyright 2016 The BigDL Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | intel-analytics/BigDL | python/friesian/example/two_tower/train_2tower.py | Python | apache-2.0 | 12,147 | [
"ORCA"
] | a0d580bdfe282ba147947069bc7e3fac42429aa019ff0aa4517fddc1fb775ba8 |
#
# Copyright (C) 2004-2006 Rational Discovery LLC
#
# @@ 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.
#
class ExcludedVolume(object):
def __init__... | rvianello/rdkit | rdkit/Chem/Pharm3D/ExcludedVolume.py | Python | bsd-3-clause | 918 | [
"RDKit"
] | f6bb503205c6b20bea58001dc712cae4fdfeba2d79c2ebca5ce60142166be7ed |
""" Callback when a staging operation is finished """
from DIRAC import S_OK
from DIRAC.RequestManagementSystem.private.OperationHandlerBase import OperationHandlerBase
from DIRAC.WorkloadManagementSystem.Client.JobStateUpdateClient import JobStateUpdateClient
class StagingCallback(OperationHandlerBase):
"""
... | DIRACGrid/DIRAC | src/DIRAC/DataManagementSystem/Agent/RequestOperations/StagingCallback.py | Python | gpl-3.0 | 1,446 | [
"DIRAC"
] | b6a37eaba21fd616497114ed75f984bb5cb9c81bfe2c4f4192abb5a61e81342f |
# et.po
val = {" days." : " päeva.",
"(all)" : "(kõik)",
"(any)" : "(iga)",
"(anyone)" : "(puudub)",
"(available)" : "",
"(blank)" : "",
"(both)" : "(mõlemad)",
"(everyone)" : "",
"(master user, not editable)" : "",
"(no change)" : "",
"(no deduction)" : "",
"(none)" : "(puudub)",
"(unknown)" : "",
"(use system)" : ""... | bobintetley/asm3 | src/asm3/locales/locale_et.py | Python | gpl-3.0 | 122,322 | [
"Amber",
"VisIt"
] | 3501d3c3dabf55a3d63a30b1187c508ad1b8f3469d5b878af22685c64918f525 |
"""
surface - Grids table data using adjustable tension continuous curvature
splines.
"""
import xarray as xr
from pygmt.clib import Session
from pygmt.exceptions import GMTInvalidInput
from pygmt.helpers import (
GMTTempFile,
build_arg_string,
data_kind,
dummy_context,
fmt_docstring,
kwargs_to_... | GenericMappingTools/gmt-python | pygmt/src/surface.py | Python | bsd-3-clause | 3,304 | [
"NetCDF"
] | 7ab6290a7f8e1f3fff61e6ca503f8b127f642e999f20f25d41853d6ad04a65f8 |
#!/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/lo/test/test_vvo.py | Python | apache-2.0 | 2,957 | [
"PySCF"
] | b5a7aa4d2479eddd10ccd0e39b7829a913f413895a55a3664096fcf994811f78 |
import sys
import os
sys.path.insert(0, os.path.join(
os.path.dirname(os.path.realpath(__file__)), '..'))
import sympy as sp
from crnpy.crn import CRN, from_react_file
from crnpy.parsereaction import parse_expr
__author__ = "Elisa Tonello"
__copyright__ = "Copyright (c) 2016, Elisa Tonello"
__license__ = "BSD"
_... | etonello/crnpy | examples/concerted_coop.py | Python | bsd-3-clause | 1,379 | [
"Brian"
] | 29396b68a8d1bf1a2fdb192d567b6674185959ede0dea7a975fd9e816424d45b |
#!/usr/bin/env python
#
# @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 redistri... | psi-rking/psi4 | psi4/share/psi4/scripts/ixyz2database.py | Python | lgpl-3.0 | 17,782 | [
"Psi4"
] | 5ef0d5916fb343875d450642cc4f5f23e28a52091a4cb7485fd959b2d643a78e |
# -*- coding: utf-8 -*-
# Copyright (c) 2018, earthians and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
import datetime
from frappe import _
import math
from frappe.utils import time_diff_in_hours, rounded, getdate, add_days
from erpnext.healthca... | brownharryb/erpnext | erpnext/healthcare/utils.py | Python | gpl-3.0 | 20,066 | [
"VisIt"
] | 3e28c71f96aa203e5ce2b866efce28f0bdc545856ff296da86b9864bcd60a6ec |
#!/usr/bin/env python
# D. Jones - 2/13/14
"""This code is from the IDL Astronomy Users Library"""
import numpy as np
def mmm( sky_vector,
highbad = False,
debug = False,
readnoise = False,
nsky = False,
integer = "discrete",
mxiter = 50,
minsky = 20,
... | davidharvey1986/pyRRG | src/mmm.py | Python | mit | 14,106 | [
"Gaussian"
] | cb02c2a43749ae67f355911f84f43753f669a96b4fed09c007d3f2eb1bc41760 |
import numpy as np
from math import sqrt, exp
def tri2full(H_nn, UL='L'):
"""Fill in values of hermitian matrix.
Fill values in lower or upper triangle of H_nn based on the opposite
triangle, such that the resulting matrix is symmetric/hermitian.
UL='U' will copy (conjugated) values from upper triang... | JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/transport/tools.py | Python | gpl-2.0 | 14,415 | [
"Gaussian"
] | 053f578c1a6c61f376ffe6f585a003173e0cd0fcd9bce2ef822214b9677a6438 |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# prep cmip5 data downloaded using SYNDA for a re-do of the Relative Humidity with the CORRECT variable
# author: Michael Lindgren -- Sept. 2018
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ... | ua-snap/downscale | snap_scripts/downscaling_v2/prep_raw_cmip5_netcdf_hurs_tem.py | Python | mit | 3,571 | [
"NetCDF"
] | 52915b092597f0e8612da8a5a9941a1389b41d281510fac38535ff6c9ae3d0f1 |
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., University of Heidelberg, and University of
# of Connecticut School of Medicine.
# All rights reserved.
# Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual
# Properties, Inc., Universi... | jonasfoe/COPASI | copasi/bindings/python/examples/example6.py | Python | artistic-2.0 | 14,941 | [
"COPASI"
] | e39e260f700ec194667847f1691b09fd4169573063f27e66f7b1e79366251120 |
__all__ = ['threshold_adaptive',
'threshold_otsu',
'threshold_yen',
'threshold_isodata',
'threshold_li', ]
import numpy as np
from scipy import ndimage as ndi
from ..exposure import histogram
from .._shared.utils import assert_nD
def threshold_adaptive(image, block_size, m... | jwiggins/scikit-image | skimage/filters/thresholding.py | Python | bsd-3-clause | 13,792 | [
"Gaussian"
] | cbb61b108de7155ac9af9f1f9a170dea8d726ed37693c475401322d71c552af9 |
###############################
#
# (c) Vlad Zat 2017
# Student No: C14714071
# Course: DT228
# Date: 04-10-2017
#
# Title: Testing Feature Detection Algorithms
import numpy as np
import cv2
import easygui
# help(cv2.drawKeypoints)
# help(cv2.drawMatches)
imagesPath = 'images/'
outputPath = 'output/'
fileExt... | vzat/comparing_images | tests/featureDetectionTest.py | Python | mit | 3,914 | [
"Gaussian"
] | 007d54b489a2a40c0f9e80d04e6827543d2b32be91d70b708de2e9ed30b2fac7 |
"""Sensor that can display the current Home Assistant versions."""
import logging
from datetime import timedelta
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.components.sensor import PLATFORM_S... | molobrakos/home-assistant | homeassistant/components/version/sensor.py | Python | apache-2.0 | 3,583 | [
"TINKER"
] | a82e6ad339fa2054f55469b680f4dbf5fd2562410ac87fe2af5cc9401c3b84d1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.