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
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Parmmg(CMakePackage): """ParMMG is a parallel remesher based on MMG""" homepage = "ht...
LLNL/spack
var/spack/repos/builtin/packages/parmmg/package.py
Python
lgpl-2.1
1,193
[ "VTK" ]
31450c3c42a83030e337f1335df3fffcd1d02a16e24d4f9e52df514afba0f16e
import numpy as np import scipy import math import matplotlib.pyplot as plt # N points on the surface in d dimensions def generatePoints(n,d): points = [] # Points on the surface pointsG = [] # Gaussian points mean = 0 var = 1 for i in range(0,n): point = np.random.normal(0,1,d); # see this is just...
fossdevil/Assignments
Machine Learning/Assignment3Final/ML13.py
Python
mit
8,250
[ "Gaussian" ]
b9f32b7040acced60ae8b1acda1d8619fa961a32dc312b5fc07e04a060bcf075
# Copyright 2018 The TensorFlow Probability 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 o...
tensorflow/probability
tensorflow_probability/python/distributions/normal.py
Python
apache-2.0
9,453
[ "Gaussian" ]
9fbd6786bd6a9514772e68b613e6adfd416a676abbc40bcce9f61c9920f2b84f
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2016 Matt Keenan <matt.keenan@gmail.com> # # 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 Softw...
jralls/gramps
gramps/gen/proxy/living.py
Python
gpl-2.0
14,053
[ "Brian" ]
b69334b4eaadf498dd7ca84f24259611f790737fbf699126de0e6f55ec744897
""" Make trees visualizable in an IPython notebook """ import json try: from PIL import ImageFont font = ImageFont.core.getfont("/Library/Fonts/Georgia.ttf", 15) def text_size(text): return max(4, font.getsize(text)[0][0]) except Exception: def text_size(text): # TODO(contributors): mak...
JonathanRaiman/pytreebank
pytreebank/labeled_trees.py
Python
mit
6,676
[ "DIRAC" ]
28e1880dd14a3cbbdf88c7b8895c8b740aa3e1751ae6ddb3445d212e35294ef3
try: from django.urls import reverse except ImportError: from django.core.urlresolvers import reverse from tastypie import authorization from tastypie.authentication import MultiAuthentication from crits.raw_data.raw_data import RawData from crits.raw_data.handlers import handle_raw_data_file from crits.core.a...
Magicked/crits
crits/raw_data/api.py
Python
mit
4,846
[ "Amber" ]
15d50d6cd4e87d3b0c6f49a7cd51b09c5a98b54922f429ea1914d218adce295b
# Copyright (c) 2016-present, Facebook, 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 applicable law or agreed...
Yangqing/caffe2
caffe2/experiments/python/SparseTransformer.py
Python
apache-2.0
7,033
[ "VisIt" ]
707d7a4c8a0f10a85ab1d8c843b9cd873e3cc3876542797259832dfe4b2bc524
"""This script computes the frequency of professions in the FHS. The script considers only the jobseekers that are unemployed to date (well to the date of the FHS) and get the # of jobseekers in each job. It outputs a simple JSON file with a mapping from the OGR codes to the # of jobseekers in the corresponding job. ...
bayesimpact/bob-emploi
data_analysis/importer/fhs_job_frequency.py
Python
gpl-3.0
2,946
[ "Gaussian" ]
aba6590fc446a14f4f7c4eb8240a5af2832a463cca0a0f973c28de4606cac0b8
import ast import random from collections import namedtuple from ..core.node_types import ( AssignmentCallNode, BBorBInode, BreakNode, ControlFlowNode, RestoreNode ) CALL_IDENTIFIER = '~' ConnectStatements = namedtuple( 'ConnectStatements', ( 'first_statement', 'last_state...
python-security/pyt
pyt/cfg/stmt_visitor_helper.py
Python
gpl-2.0
4,829
[ "VisIt" ]
d4aa4d5b481c1484a17cdd293713e7e9a82e274aa0eab98080d612b6f269e401
# -*- coding: utf-8 -*- '''reduce test mixins''' from inspect import ismodule from twoq.support import port class MMathQMixin(object): def test_max(self): self._false_true_false( self.qclass(1, 2, 4).max(), self.assertEqual, 4, ) from stuf import stuf stooges = [ ...
lcrees/callchain
callchain/tests/mixins/man/reducing.py
Python
mit
6,118
[ "MOE" ]
72d447ca6f4eb45ec2049958d9760f637478131383a372ea52b99680460c4f03
from sqlobject import * from sqlobject.converters import sqlrepr from sqlobject.sqlbuilder import RLIKE, AND, OR, INNERJOINOn from turbogears import identity, config from datetime import datetime import time from string import strip import IPy from mirrormanager.lib import uniqueify, append_value_to_cache from mirrorma...
squallsama/mirrormanager-rfr-fixed
server/mirrormanager/model.py
Python
gpl-2.0
38,490
[ "VisIt" ]
c7ad9d4e561f2e3ef15b74d875da6e4a057af7335b2aebe47e61327f0e027075
# Copyright 2007 by Tiago Antao <tiagoantao@gmail.com>. 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. """ This module provides code to work with FDist. See http://www.rubic....
Ambuj-UF/ConCat-1.0
src/Utils/Bio/PopGen/FDist/__init__.py
Python
gpl-2.0
2,813
[ "Biopython" ]
f72936cbfb3d68058001ae51011f7eac9a9191866c3495f992182ac96ba60890
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import numpy as np from scipy.ndimage.filters import uniform_filter1d from scipy.ndimage.fourier import fourier_gaussian from .utils import print_update, validate_tuple # When loading module, try t...
daniorerio/trackpy
trackpy/preprocessing.py
Python
bsd-3-clause
3,100
[ "Gaussian" ]
8ea269051b05a2b4e1bfb5ffd6a60817d7df136cd9affcc35b5c5d50c8f33c33
"""This module provides classes that allow Numpy-type access to VTK datasets and arrays. This is best described with some examples. To normalize a VTK array: import vtk import vtk.numpy_interface.dataset_adapter as dsa import vtk.numpy_interface.algorithms as algs rt = vtk.vtkRTAnalyticSource() rt.Update() image = d...
berendkleinhaneveld/VTK
Wrapping/Python/vtk/numpy_interface/dataset_adapter.py
Python
bsd-3-clause
33,091
[ "VTK" ]
0be2e9116c1324258baac5907880fcaaf993d7e0254d91262043ad5d482d23f3
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, 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.Imas.SmsFunctions/ZenPacks/Imas/SmsFunctions/__init__.py
Python
gpl-2.0
1,180
[ "VisIt" ]
ba2445356949c6d3fe31da1999fc3e96a2d9eb46f11b2f6ea42f76785f071ab6
#!/usr/bin/python -tt list = ['larry', 'curly', 'moe'] print "code: list = ['larry', 'curly', 'moe']" print list print '----------------------------------------------------' list.append('shemp') ## append elem at end print "code: list.append('shemp')" ## append elem at end print list print '-----------------------...
davislg/Google-s-Python-Class
basic/davis_solution/stooge_list.py
Python
apache-2.0
1,539
[ "MOE" ]
90a485e7aae59d89ccabc192365760afeb92e7ca89f1328ab6c0d1642f8a5847
# gridDataFormats --- python modules to read and write gridded data # Copyright (c) 2009-2014 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Lesser General Public License, version 3 or later. """ :mod:`gridData.core` --- Core functionality for storing n-D grids =========================================...
holocronweaver/GridDataFormats
gridData/core.py
Python
gpl-3.0
22,824
[ "PyMOL", "VMD" ]
adf9e89fa8e919e6953c0fc02b8661f83c113f085d7b3a99c67d9ec2f4ef6abd
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from django.views.generic import TemplateView from re...
D3vSt0rm/sahem
config/urls.py
Python
mit
3,329
[ "VisIt" ]
31dc8d5e1c65b5eb88504972baed841859333815e3b6a13b82371fd59b9d87ee
import tensorflow as tf class VariationalAutoencoder(object): """ Variation Autoencoder (VAE) with an sklearn-like interface implemented using TensorFlow. This implementation uses probabilistic encoders and decoders using Gaussian distributions and realized by multi-layer perceptrons. The VAE can b...
TheCamusean/DLRCev3
unsupervised_sorting/variational_autoencoder.py
Python
mit
9,505
[ "Gaussian" ]
bd9977a56cf6d91ea4f6b754493b96e39bf9bd0b1133f79b13c3c110b0c3ddd9
#!/usr/bin/python import sys import os import unittest from pyuppaal.ulp import lexer, parser, expressionParser, node from pyuppaal.ulp.systemdec_parser import SystemDeclarationParser class TestBasicParsing(unittest.TestCase): def test_comment_last_line(self): lex = lexer.lexer declaration = '// c...
yzh89/pyuppaal
tests/ulp/test_basic.py
Python
gpl-3.0
60,054
[ "VisIt" ]
15a070b4059912424db0a8d9e5f6006152af7cc7c7f3e80ee6f3276ea9aa19cf
# THIS FILE IS PART OF THE CYLC WORKFLOW ENGINE. # Copyright (C) NIWA & British Crown (Met Office) & Contributors. # # 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 Licen...
cylc/cylc
cylc/flow/scheduler.py
Python
gpl-3.0
78,792
[ "BLAST" ]
0ee41bd32b3295f67840c4415578d625cf1ecd57d8af213d9dd360d803f1f952
""" Default Django settings. Override these with settings in the module pointed to by the DJANGO_SETTINGS_MODULE environment variable. """ # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. def gettext_noop(s): return s ####...
fenginx/django
django/conf/global_settings.py
Python
bsd-3-clause
21,996
[ "VisIt" ]
23983060bbb5d33d72f580ba15ac168e5d553a49b716f5590b3da2c12dc31fea
# -*- coding: utf-8 -*- """Support code for writing BGZF files Shamelessly taken from Biopython """ # Biopython License Agreement # # Permission to use, copy, modify, and distribute this software and its # documentation with or without modifications and for any purpose and # without fee is hereby gran...
bihealth/vcfpy
vcfpy/bgzf.py
Python
mit
7,222
[ "Biopython" ]
cbc0a7e5bf4af1bbe9f0bf8249e99f69a57c3644c56e07795173769bf02b1c8f
from contextlib import contextmanager from parso._compatibility import use_metaclass class _NormalizerMeta(type): def __new__(cls, name, bases, dct): new_cls = type.__new__(cls, name, bases, dct) new_cls.rule_value_classes = {} new_cls.rule_type_classes = {} return new_cls class...
NixaSoftware/CVis
venv/lib/python2.7/site-packages/parso/normalizer.py
Python
apache-2.0
5,169
[ "VisIt" ]
94edc2058e16d15fadfdbf09e006ed2a20ddfee83eea96c59d2513e6e39bced6
""" Test_RSS_Policy_PilotEfficiencyPolicy """ import unittest import DIRAC.ResourceStatusSystem.Policy.PilotEfficiencyPolicy as moduleTested ################################################################################ class PilotEfficiencyPolicy_TestCase(unittest.TestCase): def setUp(self): """ ...
DIRACGrid/DIRAC
src/DIRAC/ResourceStatusSystem/Policy/test/Test_RSS_Policy_PilotEfficiencyPolicy.py
Python
gpl-3.0
4,346
[ "DIRAC" ]
2452195f9600d312e05ff5491d9f2edaba79fc3db2aa4cac54c23d959807c9e3
#!/usr/bin/python import numpy as np from molmod.io.xyz import XYZFile import argparse import os def main(file1_name, file2_name, start_step, end_step, trim, unitcell_name): """ Takes a xyz trajectory and can combine it with the ptcv trajectory, trim it and add unit cell parameters in the title lines so t...
ccaratelli/insertion_deletion
merge-traj.py
Python
gpl-3.0
3,485
[ "CP2K" ]
993e2aa1fd7565b7dcdf10830fe856a45bb28bd8146c6506459f28515ac01b93
# # Wavelet decompose GIMP plugin # # wavelet-decompose.py # Copyright 2016 by Rubik Andrey # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2+ # as published by the Free Software Foundation. # # Version 1.0 #!/usr/bin/env ...
larodar/wavelet_decompose_ng
wavelet-decompose.py
Python
gpl-2.0
6,825
[ "Gaussian" ]
6bc0b360bc282b39f52e7d84539d6d8bc3e9cc4ba66d580bdf1bf48fb4f3bcd9
#!/usr/bin/env python ######################################################################## # File : dirac-admin-sort-cs-sites # Author : Matvey Sapunov ######################################################################## """ Sort site names at CS in "/Resources" section. Sort can be alphabetic or by country...
ic-hep/DIRAC
src/DIRAC/ConfigurationSystem/scripts/dirac_admin_sort_cs_sites.py
Python
gpl-3.0
4,374
[ "DIRAC" ]
2a6f9a81858c0dffd0efbdea13be701fba4d6828a5271e5be622bb1ebfad8926
""" Collection of user jobs for testing purposes """ # pylint: disable=wrong-import-position, invalid-name from __future__ import print_function, absolute_import from __future__ import division __RCSID__ = "$Id$" import unittest import time from DIRAC.Core.Base.Script import parseCommandLine parseCommandLine() f...
yujikato/DIRAC
tests/System/unitTestUserCloudJobs.py
Python
gpl-3.0
1,674
[ "DIRAC" ]
c19a0b7d49a090bf046135614b002ecb9db847bc345b7b8725ffa4bd1219bc63
# Tilde API demo # calculates molecular weight for organic molecules # Author: Evgeny Blokhin import os, sys # deps third-party code and common routines # here are already available: from ase.data import chemical_symbols, atomic_masses from tilde.core.common import ModuleError class Example_app(): '''# this de...
ansobolev/tilde
tilde/apps/example_app/example_app.py
Python
mit
1,070
[ "ASE" ]
7028df2c5b806e2b773a51d43072ca10927220f5ce7c69c5129b1ed4d09bfb94
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Douglas S. Blank # Copyright (C) 2010 Jakim Friant # # This program is free software; you can redistribute it and/or modify # it under the term...
arunkgupta/gramps
gramps/plugins/gramplet/descendgramplet.py
Python
gpl-2.0
6,272
[ "Brian" ]
42f102d2c73d242bb806e56439c45ac4c9439297178700d9ad1e40e66438ba4b
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
ened/scancode-toolkit
tests/textcode/test_analysis.py
Python
apache-2.0
79,130
[ "VisIt" ]
efb40212b17ce70c85cdc4bc4834cae821452da4199f3e4a2680ce0ec97b7bcb
#!/usr/bin/env python """ toggle between two images by pressing "t" The basic idea is to load two images (they can be different shapes) and plot them to the same axes with hold "on". Then, toggle the visible property of them using keypress event handling If you want two images with sifferent shapes to be plotted wit...
sniemi/SamPy
sandbox/src1/examples/toggle_images.py
Python
bsd-2-clause
1,302
[ "exciting" ]
939852c396ef391c68b0e52a298c072cf892dc4fe1110293c9713d10c6288803
""" Module mplutil ============== .. author:: Hans Terlouw <gipsy@astro.rug.nl> .. highlight:: python :linenothreshold: 5 Utilities for use with matplotlib. Classes :class:`AxesCallback`, :class:`CanvasCallback`, :class:`TimeCallback` and :class:`VariableColormap` and module-internal function :func:`KeyPressFilter...
kapteyn-astro/kapteyn
kapteyn/mplutil.py
Python
bsd-3-clause
34,470
[ "Gaussian" ]
fdca19edf3e7ac959eea49d152e0e6b8cbfd87f457cf48ba9dfaeb490ed11083
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2005-2007 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/gui/templates/companytemplate.py
Python
gpl-2.0
3,075
[ "VisIt" ]
6487a9d4d17f3a11056ec86eb0ac76c9bc8dc6500d2877b132dd03a04b5aaf5d
''' Create moment maps compatible with DiskFit, run DiskFit, and create useful outputs. ''' from astropy.io import fits from astropy import log import numpy as np import os from galaxies import Galaxy from cube_analysis.rotation_curves import run_diskfit from paths import (iram_co21_data_path, iram_co21_analysispat...
e-koch/VLA_Lband
ancillary_data/IRAM30m_CO21/rotation_curves/fit_rotation_curves.py
Python
mit
2,194
[ "Galaxy" ]
72acdbd3d01b8c2e39d8bf5cab05c6a67720e959bd6d137aa6d6cf1a3f879509
#!/usr/bin/env python # -*- coding: UTF-8 -*- import logging logging.basicConfig(level=logging.INFO) # dev_appserver.py --log_level debug . log = logging.getLogger(__name__) import os import re import webapp2 import jinja2 import logging import StringIO import json import rdflib #from rdflib.namespace import RDFS, RD...
gkellogg/schemaorg
sdoapp.py
Python
apache-2.0
108,271
[ "VisIt" ]
2297fd550a8f1d5e77ef26f4c2140971859af030658a7c9ac7f554b687bd14fd
import optparse from math import sqrt, pi import numpy as np from ase.dft.kpoints import monkhorst_pack def str2dict(s, namespace={}, sep='='): """Convert comma-separated key=value string to dictionary. Examples: >>> str2dict('xc=PBE,nbands=200,parallel={band:4}') {'xc': 'PBE', 'nbands': 200, 'par...
conwayje/ase-python
ase/tasks/calcfactory.py
Python
gpl-2.0
6,672
[ "ABINIT", "ASE", "CASTEP", "Elk", "FLEUR", "GPAW", "Gaussian", "LAMMPS", "MOPAC", "NWChem", "SIESTA", "TURBOMOLE", "VASP", "exciting" ]
c5d33407e00e02a0c1733b8667dd42e019f0e0437fca3a2c291cd940375e8f46
# -*- coding: utf-8 -*- # Copyright 2012-2013 Michael Haggerty <mhagger@alum.mit.edu> # # This file is part of git-imerge. # # git-imerge 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 th...
mhagger/git-imerge
gitimerge.py
Python
gpl-2.0
145,733
[ "Octopus", "VisIt" ]
7dbc0743dedc41ebcd5d5041d25342d733d445f26e2992d8e2da1608e1d6ef6a
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software F...
andrebellafronte/stoq
stoqlib/gui/dialogs/manufacturerdialog.py
Python
gpl-2.0
2,040
[ "VisIt" ]
2d26b8ea4acfbd98bd32f3b0501f9983d60f2530f98ed81e5de74e2577f94517
from .parser import Parser import pysam from ..exceptions import InvalidParsingFormat class BamParser(Parser): __annot_type__ = "bam" def __init__(self, handle): self.__closed = False try: self._handle = pysam.AlignmentFile(handle, "rb", check_sq=False) except KeyboardIn...
lucventurini/mikado
Mikado/parsers/bam_parser.py
Python
lgpl-3.0
663
[ "pysam" ]
58c9664491acda7c447e67e74da50865ed2e185cd7ff42c8a1d1e92c823f8672
# this contains imports plugins that configure py.test for astropy tests. # by importing them here in conftest.py they are discoverable by py.test # no matter how it is invoked within the source tree. from astropy.tests.pytest_plugins import * import matplotlib matplotlib.use('Agg') ## Uncomment the following line t...
Alex-Ian-Hamilton/solarbextrapolation
solarbextrapolation/conftest.py
Python
mit
1,307
[ "Mayavi" ]
2fab6414d27e10f68bedae5253b30cd6466eebfabcf1ef5735775673b06235d3
# ========================== Start Copyright Notice ========================== # # # # Copyright 2014 F.D.I.S. # # This file is part of Kinetic Gunner: Gunner of Angst ...
CertainlyUncertain/Kinetic-Gunner-Gunner-of-Angst
main.py
Python
gpl-3.0
2,078
[ "VisIt" ]
984110e69ab5648fc4a0b555c4b419622e2a439420b06d27cf94bf7e654b3490
""" Implements Monte Carlo inference for Gaussian hierarchical linear models: Y[i·]|(X, Z, tau2) ~ Mv-Normal(Z[i·] * X, tau2[i] * I) Z[i·]|(mu, Sig) ~ Mv-Normal(mu, Sig) where Z is latent and I is the identity matrix. Data ---- Y : np.ndarray in R^(ntar, nobs) X : np.ndarray in R^(nfac, nobs) Latent -----...
timsf/bayeslib
backends/blocked_gibbs/hlm.py
Python
gpl-3.0
4,684
[ "Gaussian" ]
5765389976788f43a280618ba2a3033d0be8385c6ef12388893bd6dbbc3de01e
__author__ = 'dalton' class Enemy: def __init__(self, name, hp, damage): self.name = name self.hp = hp self.damage = damage def is_alive(self): return self.hp > 0 class GiantSpider(Enemy): def __init__(self): super().__init__(name="Giant Spider", ...
dalrrard/text-adventure-tut
adventuretutorial/enemies.py
Python
mit
525
[ "Dalton" ]
bf16dcf9b440d603efa561457a994477ed73a38432984365b9c6e5e10925897b
# store.py - repository store handling for Mercurial # # Copyright 2008 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from __future__ import absolute_import import errno import os import stat fro...
seewindcn/tortoisehg
src/mercurial/store.py
Python
gpl-2.0
17,034
[ "VisIt" ]
d8093c8f6aa256075acf2bd50679db09bf4748a3996c2cc8fcee918e30abbab1
# -*- coding: utf-8 -*- # parts of pygchem (Python interface for GEOS-Chem Chemistry Transport Model) # # Copyright (C) 2014 Benoît Bovy # see license.txt for more details # """ Interface to the Harvard-NASA Emissions Component (HEMCO). """ import os from pygchem import config from pygchem import datasets from pyg...
benbovy/PyGChem
pygchem/emissions.py
Python
gpl-3.0
16,772
[ "NetCDF" ]
bc28614a003cb1cbeb63e787af1f9490bf45bf1fb22aaa721150ea9a4cb2ecce
# -*- coding: utf8 """Random Projection transformers Random Projections are a simple and computationally efficient way to reduce the dimensionality of the data by trading a controlled amount of accuracy (as additional variance) for faster processing times and smaller model sizes. The dimensions and distribution of Ra...
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/random_projection.py
Python
mit
22,128
[ "Gaussian" ]
3f71a56c946218c696b362ca88709115d807a13279cabf6b3f8f3f63faf91c55
# 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 https://mozilla.org/MPL/2.0/. import pytest import os.path as osp import sisl import numpy as np pytestmark = [pytest.mark.io, pytest.mark.siesta] _d...
zerothi/sisl
sisl/io/siesta/tests/test_grid.py
Python
mpl-2.0
1,190
[ "SIESTA" ]
326badb83479734bcfa88d8f2a1c3f399806a73efdb12d8b4643af657976002e
# (c) 2013-2016, Michael DeHaan <michael.dehaan@gmail.com> # Stephen Fromm <sfromm@gmail.com> # Brian Coca <briancoca+dev@gmail.com> # Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under t...
camradal/ansible
lib/ansible/plugins/action/assemble.py
Python
gpl-3.0
6,400
[ "Brian" ]
1595872062673e162243d1abbb3f2b043e9a2305559d3361fdc8c871c7ad6d2b
# Copyright 2014-2020 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
sunqm/pyscf
pyscf/agf2/test/test_dfragf2_h2o.py
Python
apache-2.0
2,969
[ "PySCF" ]
73cebeb87cbd35363801743e7b3e6a7c713d0c794c72bd8448972c33373631a7
"""Scraper for the Rhode Island Supreme Court CourtID: ri Court Short Name: R.I. Author: Brian W. Carver Date created: 2013-08-10 """ from juriscraper.opinions.united_states.state import ri_p class Site(ri_p.Site): def __init__(self): super(Site, self).__init__() self.court_id = self.__module__ ...
brianwc/juriscraper
opinions/united_states/state/ri_u.py
Python
bsd-2-clause
733
[ "Brian" ]
3f2f696378e4ff005645c56443584b163b9eb74978e75432b2c33038562c03b9
import pytest import numpy as np from scipy import sparse from scipy.stats import kstest import io from sklearn.utils._testing import assert_allclose from sklearn.utils._testing import assert_allclose_dense_sparse from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_array_a...
manhhomienbienthuy/scikit-learn
sklearn/impute/tests/test_impute.py
Python
bsd-3-clause
54,306
[ "Gaussian" ]
f082c76593977c3884b882b773362bb128317ebf89771abdb79c22a4914c0d72
# Copyright 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 law or agreed to in writing, s...
google/pyctr
transformers/virtualization/variables.py
Python
apache-2.0
6,229
[ "VisIt" ]
d2465d392207a3a7b64b684f5620c80d3f28819466585c02722cf9dc16bc089d
""" ast ~~~ The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and allows modifications of it. ...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.5.0/Lib/ast.py
Python
mit
12,052
[ "VisIt" ]
6e5a13def1ffced5e7a515bdc2edeb3c835bb6f65aa48daa3fcc7ee6446957ad
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Simulate an XY stage and other associated hardware for testing in the context of the rest of the library. Use the var.tests.virtual test to setup an XY stage with a view of the Andromeda galaxy; This can be used to take overview pictures as well as micro...
sourtin/igem15-sw
hw/virtual.py
Python
gpl-2.0
9,474
[ "Galaxy" ]
ab08f3a4c9b51b1c689c93203037181636c24a523d3ced2bef931852ac1c5b9b
# Authors: # Martin Kosek <mkosek@redhat.com> # Pavel Zuna <pzuna@redhat.com> # # Copyright (C) 2010 Red Hat # see file 'COPYING' for use and warranty information # # 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 Fr...
cluck/freeipa
ipalib/plugins/dns.py
Python
gpl-3.0
162,767
[ "VisIt" ]
67a6d2f958ad387592682afd18c1830ea21989cd88d89603155ec1ecae672b3c
"Generates TCastTo source files for constexpr-enabled CEntity casts" class Namespace: def __init__(self, name): self.name = name class EndNamespace: pass CENTITY_TYPES = ( # Class, Header ('CActor', 'World/CActor.hpp'), ('CBallCamera', 'Camera/CBallCamera.hpp'), ('CBomb', 'Weapon/CBom...
AxioDL/PathShagged
Runtime/MkCastTo.py
Python
mit
7,279
[ "VisIt" ]
cadf25b162180a0af6cb609260bdfd2fe69e657fbb325f3a0fd1e9616d97c1c7
import numpy as np import PIL from PIL import Image # Needed even though we choose to acces via PIL.Image import netCDF4 from giss import runlength """Create a NetCDF file encoding the "Greenland Mask", an area covering more than the Greenland island, but not any other land.""" ifname = 'focean1m_gmask_0.png' ofname...
citibeth/twoway
topo/make_gmask1m_0.py
Python
gpl-3.0
1,126
[ "NetCDF" ]
6cde8da206cff083c4cd664b74d2b57a62bc352bfcbdc1054aa21d5ca32a4562
# Copyright (c) 2012, Cloudscaling # 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...
silenceli/nova
nova/hacking/checks.py
Python
apache-2.0
19,105
[ "VisIt" ]
96ce8bd5c476a520f6b941c54437808633df39121ddd2e93b0ef7c808db28e64
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import import ast import llvm import llvm.core as lc import llvm.core from numba.llvm_types import _int1, _int32, _LLVMCaster from numba.multiarray_api import MultiarrayAPI # not used from numba import typesystem from numba import * f...
shiquanwang/numba
numba/codegen/translate.py
Python
bsd-2-clause
67,592
[ "VisIt" ]
bba84234d57240c87792535834357a3da7ff817ebda2988adfd4dfd2133448fb
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD-3-Clause from copy import deepcopy import itertools as itt from math import log import numpy as np from .defaults import _EXTRAPOL...
wmvanvliet/mne-python
mne/cov.py
Python
bsd-3-clause
79,073
[ "Gaussian" ]
242159e364042ed3fccbe76399511f9306a6ccb3f2882b80c3a66547cd4b6d0b
# -*- coding: utf-8 -*- from ase.neb import NEBtools def NudgedElasticBand(images): nebtools = NEBtools(images) fig = nebtools.plot_band() fig.show()
suttond/MODOI
ase/gui/neb.py
Python
lgpl-3.0
165
[ "ASE" ]
65c184c9b31aa798128f43a5e6c0008d352afb3ab1d246d2bcfce18f77facd07
# Copyright (C) 2004-2008 Paul Cochrane # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distribut...
paultcochrane/pyvisi
pyvisi/renderers/vtk/camera.py
Python
gpl-2.0
5,821
[ "VTK" ]
19c6898c129930ca0c349e4236f1a1f656e94b497c9e477bcb49b2df8fc7ab86
#======================================================================= # verilog.py #======================================================================= from __future__ import print_function import sys import collections import tempfile from subprocess import check_output, STDOUT, CalledProcessError f...
cornell-brg/pymtl
pymtl/tools/translation/verilog.py
Python
bsd-3-clause
4,078
[ "VisIt" ]
dc8845abf80efa14e6569679e585dd881d7ee20bb9706345a5e72d776ba9d0b4
# Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Performance runner for d8. Call e.g. with tools/run-perf.py --arch ia32 some_suite.json The suite json format is expected to be: { "path": <relativ...
enclose-io/compiler
lts/deps/v8/tools/run_perf.py
Python
mit
40,436
[ "Gaussian" ]
9a6ccbf84af487dcb167f42c20d124932d81c5de051cf6b2029980cfa2bda58d
from __future__ import unicode_literals, division, absolute_import import logging import re from datetime import datetime, timedelta from dateutil.parser import parse as dateutil_parse from sqlalchemy import Table, Column, Integer, String, Unicode, Boolean, Date, DateTime, Time, or_, func from sqlalchemy.orm import re...
cvium/Flexget
flexget/plugins/api_trakt.py
Python
mit
36,610
[ "VisIt" ]
f937dbc956cd1fef0ad2d458a6d2cd0d0419c39d2f562caa25b40a6258af5e84
from lettuce import * from nose.tools import assert_equal, assert_greater from splinter.browser import Browser from django.test.utils import setup_test_environment, teardown_test_environment from django.core.management import call_command from django.db import connection from django.conf import settings from lettuce.dj...
coffenbacher/bjj
bjjweb/features/technique-steps.py
Python
agpl-3.0
644
[ "VisIt" ]
9898d07ee572e629a4c556e2c43cc8f13d98941ff4978568054da38171ccf8eb
## NIFTY (Numerical Information Field Theory) has been developed at the ## Max-Planck-Institute for Astrophysics. ## ## Copyright (C) 2013 Max-Planck-Society ## ## Author: Marco Selig ## Project homepage: <http://www.mpa-garching.mpg.de/ift/nifty/> ## ## This program is free software: you can redistribute it and/or mod...
ultimanet/nifty
smoothing.py
Python
gpl-3.0
10,498
[ "Gaussian" ]
46746c254ac7c186219394fb5219bbfaa40876eeee2cca837ea0a5970a33210b
import bitcoin import os import pytest from ethereum import tester, utils, abi import serpent from rlp.utils import decode_hex, encode_hex from ethereum.utils import safe_ord from ethereum.slogging import set_level # customize VM log output to your needs # hint: use 'py.test' with the '-s' option to dump logs to the c...
harlantwood/pyethereum
ethereum/tests/test_contracts.py
Python
mit
38,293
[ "MOOSE" ]
aa190bf2708038b78b0e6f4a7a5cc3ffa9083990807589a2768beb972ca3a97a
"""Utilities for testing nilearn. """ # Author: Alexandre Abrahame, Philippe Gervais # License: simplified BSD import os import sys import urllib2 import contextlib import warnings import numpy as np import scipy.signal from sklearn.utils import check_random_state import scipy.linalg from matplotlib.mlab import rec2cs...
ainafp/nilearn
nilearn/_utils/testing.py
Python
bsd-3-clause
16,190
[ "Gaussian" ]
f909170966a023017be74b90cb72eafda05aa20badd68fb940c1927ccd38175f
""" Objects which implement the kernel interface. """ # pylint: disable=wildcard-import from .gaussian import * from .probit import * from . import gaussian from . import probit __all__ = [] __all__ += gaussian.__all__ __all__ += probit.__all__
mwhoffman/reggie
reggie/likelihoods/__init__.py
Python
bsd-2-clause
249
[ "Gaussian" ]
64a524d0181a82e5044f9540101e2ffa2f43616807ef5e79c513ee18eb485a78
""" 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 abc import ABCMeta, abstractmethod import ddt from nose import SkipTest from nose.plugins.attrib import attr from selenium.webdriver ...
Lektorium-LLC/edx-platform
common/test/acceptance/tests/lms/test_problem_types.py
Python
agpl-3.0
44,373
[ "VisIt" ]
f97462df4630cc10e7558476e52be08d3a41ac48f9c42d1c0aa67fc52eadd929
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS Instructor Dashboard. """ from __future__ import absolute_import import ddt from bok_choy.promise import EmptyPromise from common.test.acceptance.fixtures.certificates import CertificateConfigFixture from common.test.acceptance.fixtures.course import CourseFixt...
jolyonb/edx-platform
common/test/acceptance/tests/lms/test_lms_instructor_dashboard.py
Python
agpl-3.0
68,750
[ "VisIt" ]
c4204f914298cddc6594a452a707af6f530670768681ddd84494b212a5dd2b87
#!/usr/bin/env python import askap.analysis.data from numpy import * import MySQLdb from optparse import OptionParser import os import askap.parset as parset import math S3SEX_host = "delphinus.atnf.csiro.au" S3SEX_user = "skads" S3SEX_pass = "skads" S3SEX_db = "S3SEX" SuperBrightSource = 67005861 #component number...
ATNF/askapsdp
Code/Components/Analysis/data/current/scripts/createSKADS.py
Python
gpl-2.0
9,916
[ "Galaxy" ]
7290333052fe1f1cd22f877a0bf4c0b75a0792bce6b41e6ad60fb1f9b9ad4f7f
''' Created on Nov 16, 2013 @author: pglauner ''' from math import * import random landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]] world_size = 100.0 class robot: def __init__(self): self.x = random.random() * world_size self.y = random.random() * world_size self.ori...
pglauner/misc
src/cs373/lesson3_particle_filter.py
Python
gpl-2.0
4,664
[ "Gaussian" ]
77ec6079cbdf0c4409f34eb823a35b94e0f137efdfc57d7afd2520469b7d6410
#!/usr/bin/env python ''' This example covers different ways to input basis 1. A universal basis set for all elements. 2. Different basis for different elements. 3. Different basis for same elements (different atoms). 4. Default basis for all elements, except the given basis of specific element. 5. gto.basis.parse and...
gkc1000/pyscf
examples/gto/04-input_basis.py
Python
apache-2.0
8,278
[ "Gaussian", "NWChem", "PySCF" ]
21e91790053976d924be95afef6ad3e52bfbc40be3655116e992acb8f4433a18
__all__ = ['fixed_quad','quadrature','romberg','trapz','simps','romb', 'cumtrapz','newton_cotes','composite'] from scipy.special.orthogonal import p_roots from scipy.special import gammaln from numpy import sum, ones, add, diff, isinf, isscalar, \ asarray, real, trapz, arange, empty import numpy as np...
huard/scipy-work
scipy/integrate/quadrature.py
Python
bsd-3-clause
21,870
[ "Gaussian" ]
0a47ca5700be5ece4b1aed92328cf2b03620ce29341553c3851749b63ca81f8b
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
Achuth17/scikit-bio
skbio/alignment/tests/test_alignment.py
Python
bsd-3-clause
29,655
[ "scikit-bio" ]
d12f40b15898a58eb4aefe7b64a9c559b39a1ceb5007141c9d18d1369570b24c
""" Acceptance tests for the Import and Export pages """ from datetime import datetime from abc import abstractmethod from bok_choy.promise import EmptyPromise from .base_studio_test import StudioLibraryTest, StudioCourseTest from ...fixtures.course import XBlockFixtureDesc from ...pages.studio.import_export import E...
inares/edx-platform
common/test/acceptance/tests/studio/test_import_export.py
Python
agpl-3.0
15,532
[ "VisIt" ]
0becb7b328933c57bbf5ffaeb3052a1d3febfc55bf9c335cf43df6744ff90ec8
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/solvent/test/test_pol_embed.py
Python
apache-2.0
9,433
[ "PySCF" ]
cb59ca0a0024578b105a9ecedb88d17b163e47046cac1ae172ef88a579029b0a
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Tst the OpenClose3D filter. # Image pipeline reader = vtk.vtkPNGReader() reader.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/fullhead15.png") thresh = vtk.vtkImageThreshold() thresh...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Imaging/Core/Testing/Python/TestOpenClose3D.py
Python
gpl-3.0
1,175
[ "VTK" ]
ca46b1b039e74a2b522b903034b1e62ef3c1762c68f028425ba4a8306bd40aa6
#!/usr/bin/env python # pygeo - a distribution of tools for managing geophysical data # Copyright (C) 2011, 2012 Brendan Smithyman # This file is part of pygeo. # pygeo 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 Sof...
bsmithyman/pygeo
util/stack2vtk.py
Python
gpl-3.0
4,638
[ "VTK" ]
3858d9d2e9a89433cb74fff3e41f1106e7fcd6d28cc80519b4bd1fb263779586
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) #...
MDAnalysis/mdanalysis
testsuite/MDAnalysisTests/topology/test_lammpsdata.py
Python
gpl-2.0
8,774
[ "LAMMPS", "MDAnalysis" ]
185f445b9f56885ded73b97f9cf233a495a27b9b729dfa09c6de5c485ebc9ae5
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # curlexample - [insert a few words of module description on this line] # Copyright (C) 2003-2009 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 ...
heromod/migrid
mig/server/curlexample.py
Python
gpl-2.0
4,636
[ "Brian" ]
cabfc8c9fbe5814f185b09a8aabd151d22ab53e9da56402fb62838065cd16f6b
import os import time import configparser from pathlib import Path import numpy as np from .dataio import DataIO from . catalogueconstructor import CatalogueConstructor, _dtype_peak from .autoparams import get_auto_params_for_catalogue try: import h5py HAVE_H5PY = True except: HAVE_H5PY = False try:...
tridesclous/tridesclous
tridesclous/importers.py
Python
mit
11,131
[ "VisIt" ]
0d8408985848f4d6fc4bbf0ff39dcac7861519d7b124a3507ab549cad058dc39
# 'Word': [Rank, Frequency, Dispersion, 'Part of speech'], WORDS = { 'the': [1, 22038615, 0.98, 'a'], 'be': [2, 12545825, 0.97, 'v'], 'and': [3, 10741073, 0.99, 'c'], 'of': [4, 10343885, 0.97, 'i'], 'a': [5, 10144200, 0.98, 'a'], 'in': [6, 6996437, 0.98, 'i'], 'to': [7, 6332195, ...
sernst/HelloLambda
src/hello_lambda/word_list.py
Python
apache-2.0
178,715
[ "BLAST", "CASINO", "CRYSTAL", "Galaxy", "VisIt", "exciting" ]
41a4b7687777ffa656a921cd3a05d58580ca08fd4e63916c1d73981185510dae
import numpy as np from collections import defaultdict import sys import os sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')) import util2 import json class ResultGenerator(object): def generate(self, tree_file, include_ssm_names): reader = util2.TreeReader(tree_file) first_tr...
morrislab/phylowgs
pwgsresults/result_generator.py
Python
gpl-3.0
4,314
[ "VisIt" ]
c4934b014d7d8c5a5df27e16f2f37b5b708ce6d1928c69b8cdb50e48397a324f
# Copyright (C) 2016 Alex Nitz # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is distributed in the ...
tjma12/pycbc
pycbc/events/stat.py
Python
gpl-3.0
21,225
[ "Gaussian" ]
8b452466811da2df0e087fcbf1fc6420d051f44de706461d606491a73d311d67
from common import Modules, data_strings, load_yara_rules, PEParseModule, ModuleMetadata import json class BlackShades(PEParseModule): first_value_table = None precomputed_list = None def __init__(self): md = ModuleMetadata( module_name="blackshades", bot_name="BlackShades...
bwall/bamfdetect
BAMF_Detect/modules/blackshades.py
Python
mit
3,476
[ "Brian" ]
de70acd8781750ecdd0a6ea757f26770b409816b31d099a765e2fa6b8c5c2759
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/tabs/campaign.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # not...
0x0mar/king-phisher
king_phisher/client/tabs/campaign.py
Python
bsd-3-clause
20,274
[ "VisIt" ]
2e2d82ec4e89af2c7d6b94095ad6897b22d3229b7f9325c2d9bf6ec3c23003fc
import numpy as np import pytest import mbuild as mb from mbuild.tests.base_test import BaseTest class TestLammpsData(BaseTest): def test_save(self, ethane): ethane.save(filename='ethane.lammps') def test_save_forcefield(self, ethane): ethane.save(filename='ethane-opls.lammps', forcefield_n...
ctk3b/mbuild
mbuild/tests/test_lammpsdata.py
Python
mit
513
[ "LAMMPS" ]
f81aa35d5fb3ab23a4aa0a85b618d032bf660059a4b3bfae0dc6c40d693d4e19
# -*- coding: utf-8 -*- """ Created on Thu Jun 26 17:33:15 2014 @author: Richard Bowman Edited January 2018 @author Charlie Readman to Works with Will's new particle tracking code. Just place in the same folder as hdf5 data and run - it will auto-detect files with names in "yyyy-mm-dd.h5" format. Output summary fi...
nanophotonics/nplab
nplab/analysis/NPoM_DF_Analysis/view_spectra_2018.py
Python
gpl-3.0
14,059
[ "Gaussian" ]
c9a2250e29a54cd1ef10c70cdf9388dd4679c901a04a494440cb4415fc0ae395
''' @author Akshay Choche @see LICENSE (MIT style license file). ''' import jpype import logging import warnings with warnings.catch_warnings(): warnings.simplefilter("ignore") import warnings import urllib2 import platform import os,sys ''' This scriot is responsible for calling the java code...
UGA-WSAG/wsextensions
WebServiceToolWorkflow_REST_SOAP/removeworkflowtool.py
Python
mit
1,421
[ "Galaxy" ]
21dd61031532b52c8f0b51d97efd9808d06b1094f4ae79116c3b2e183ae0dec0
#================================================== # tt_builtin.py - 2009-01-13 # The Builtin class for Turbo Turtle # Copyright (c) 2009 Richard Goedeken (Richard@fascinationsoftware.com) #-------------------------------------------------- # This program is free software: you can redistribute it and/or modify # ...
klchen/turboturtle
tt_builtin.py
Python
gpl-3.0
13,217
[ "Gaussian" ]
afbcd4d1fc9a43c9bbd3e90a2cbbf004c3a59abb62bc4e2998cdb879c1c510de
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/qcdb/psivarrosetta.py
Python
gpl-2.0
18,451
[ "Psi4" ]
c248f7138ba7710c854aea897ad9c29abc6bd91085506d7f41accf6cf875b7fb
# -*- coding: utf-8 -*- import numpy as np import os import collections import configparser import itertools from delight.utils import approx_DL from scipy.interpolate import interp1d def parseParamFile(fileName, verbose=True, catFilesNeeded=True): """ Parser for configuration inputtype parameter files, ...
ixkael/Delight
delight/io.py
Python
mit
15,858
[ "Galaxy", "Gaussian" ]
c63c716b61b66d1d7426e7c80bdffb5d1742668ac9abd2eaac34b26126fac7a0
# coding: utf-8 #!/usr/bin/env python ''' Example script that generates FEFF input files from a cif file Remove comment # on write line to actually write files to disk ''' from __future__ import division __author__ = "Alan Dozier" __credits__= "Anubhav Jain, Shyue Ping Ong" __copyright__ = "Copyright 2012, The Mater...
rousseab/pymatgen
scripts/feff_input_generation.py
Python
mit
1,810
[ "FEFF", "VASP", "pymatgen" ]
6e7b0902f1c52b6455ede1395ee912150277ec2e3ab318f0a32feec769f86a1a
from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4 import uic from vtk import * import sys # Create a PyQt window using a .ui file generated with Qt Designer ... application = QtGui.QApplication(sys.argv) window = uic.loadUi("gui.ui") vertex_slider = window.findChild(QtGui.QSlider, "vertexCount") edge_slider...
collects/VTK
Examples/Infovis/Python/gui.py
Python
bsd-3-clause
1,583
[ "VTK" ]
85482351a139bee50c1d12ffab55c412f773cebe829e86a2d808225f7f885f55
""" Interface to the GULP program ============================= This module defines common parameters that needs to be computed in the constant dictionary COMPUTE_PARAM_FUNCS, and the common results of interest in GCMC simulation in the GET_RES_FUNCS dictionary. """ import re import collections import periodic imp...
tschijnmo/GCMCbyGULP
GCMCbyGULP/gulpinter.py
Python
mit
7,730
[ "GULP" ]
1ab8a3caccbe2055402366cd0446a304bd5c267dd39292ee33c1f657384079b1