text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import (division, print_function, absolute_import, unicode_literals) import os import numpy as np from ._fsps import driver from .filters import FILTERS __all__ = ["StellarPopulation"] class StellarPopulation(object): """ ...
nell-byler/python-fsps
fsps/fsps.py
Python
mit
47,657
[ "Gaussian" ]
ab35a7620558ca13fa7359026508e671bef054e7c25ad9f4db8400430e7dc768
# basic dependencies import os import sys import subprocess from glob import glob import math # main dependencies: numpy, nibabel import numpy import nibabel # nighresjava and nighres functions import nighresjava from ..io import load_volume, save_volume from ..utils import _output_dir_4saving, _fname_4saving, \ ...
nighres/nighres
nighres/registration/embedded_antsreg.py
Python
apache-2.0
72,489
[ "Brian" ]
4de3102f49ba0e850ba286e68e7d49b13b5b17eb50bfbe6770532a298b825b6c
__author__ = 'Ryba' import glob import itertools import os import sys from collections import namedtuple import matplotlib.pyplot as plt import numpy as np import scipy.ndimage.filters as scindifil import scipy.ndimage.interpolation as scindiint import scipy.ndimage.measurements as scindimea impor...
mjirik/imtools
imtools/tools.py
Python
mit
82,418
[ "Gaussian" ]
b1684e3a1d6610379872fefacb5e037d8ff57b98fc9adc0bad5fc5e5fe8da7ef
#!/usr/bin/python # -*- coding: utf-8 -*- ################################################################################ # # RMG - Reaction Mechanism Generator # # Copyright (c) 2002-2010 Prof. William H. Green (whgreen@mit.edu) and the # RMG Team (rmg_dev@mit.edu) # # Permission is hereby granted, free of c...
enochd/RMG-Py
rmgpy/data/base.py
Python
mit
53,019
[ "RDKit" ]
f4d1cd3777cbbf06ae1b1efa2e3fbdd6c3129b6288343108cdf667a5fa46be37
""" Python test discovery, setup and run of test functions. """ import py import inspect import sys import pytest from _pytest.main import getfslineno from _pytest.monkeypatch import monkeypatch from py._code.code import TerminalRepr import _pytest cutdir = py.path.local(_pytest.__file__).dirpath() callable = py.buil...
c0710204/mirrorsBistu
pypi/bandersnatch/lib/python2.7/site-packages/_pytest/python.py
Python
mit
67,383
[ "VisIt" ]
a38699719e0304922d131d8bbc805225dfd2dc617b457aab42573012cc7ba7e0
# -*- coding: utf-8 -*- # # RDKit documentation build configuration file, created by # sphinx-quickstart on Sun Aug 7 18:51:45 2011. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
rvianello/rdkit
Docs/Book/conf.py
Python
bsd-3-clause
7,191
[ "RDKit" ]
3e0e7a46631279ae67eaac49a748aee0bcdbd5022a2fa09eb66e42959d3dc9e0
import os import pickle import datetime from rauth import OAuth2Service def save_data(data): pickle.dump(data, open('data.txt', 'w')) def get_data(): data = {} if os.path.isfile('data.txt'): data = pickle.load(open('data.txt', 'r')) if 'client_id' in data: client_id = data['client...
SpeedyTechie/zookeeper-ai
zookeeper-ai.py
Python
gpl-3.0
2,919
[ "VisIt" ]
438fc6b10db952eb868fae37da083474104d6eade4fdb49b4c5024951b6b4d98
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Autor: Flores Facundo # Año: 2016 # Licencia: GNU/GPL V3 http://www.gnu.org/copyleft/gpl.html # Estado: Produccion from mayavi.core.api import PipelineBase from mayavi.core.ui.api import SceneEditor from mayavi.core.ui.mayavi_scene import MayaviScene from mayavi.tools....
FacundoGFlores/golsoftv2
src/models/propagation_model.py
Python
gpl-3.0
1,937
[ "Mayavi" ]
e9caefe86cd2462a99d3b41505031525ea301f6dd14aebe1a72dbc04fd7842f8
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ import json import os import pytest from osbs.constants import DEFAULT_NAMESPACE from osbs.cli.capture import setup_json_capture from tests....
DBuildService/osbs-client
tests/cli/test_capture.py
Python
bsd-3-clause
1,598
[ "VisIt" ]
4174a2e0f3c149b127b615b097baf7d1f8ef83076a1f5f181a12b0209ed1d2b4
from __future__ import print_function, absolute_import, division import numpy as np from scipy import fftpack def VMD(signal, alpha, tau, K, DC, init, tol): """ Variational Mode Decomposition Authors: Konstantin Dragomiretskiy and Dominique Zosso zosso@math.ucla.edu --- http://www.math.ucla.edu/~zo...
nabobalis/pyvmd
VMD.py
Python
gpl-2.0
6,249
[ "VMD" ]
9825dcd82a5a8c048771ff39cf628f35a7fe6b4580e63093e1ab26ebd52a58a0
#__Author = 'Jongmin Yu' @ Ph.D Candidate @ GIST-MLV #__Laboratory of Machine Learning and Computer Vision # #--Title.Gaussian probability density function for image file #__data format = numpy # from math import sqrt from parser import st2list import matplotlib __author__ = 'Schmitz' from matplotlib import pyplot ...
jminyu/PatternRecognition_library
Gaussian_pdf.py
Python
gpl-3.0
1,890
[ "Gaussian" ]
4b0d3e53b32cce4b4b88f71edf86b50fbded89823ab58801802b08344e0df106
import ast from itertools import cycle, chain, islice from collections import namedtuple import operator def explain(code_string, important=None): """Parse a string containing a function-like call, return a namedtuple containing the results >>> explain('mymod.nestmod.func("arg1", "arg2", ...
ActiveState/code
recipes/Python/576671_Parse_call_functiPy26_Py27_/recipe-576671.py
Python
mit
10,454
[ "VisIt" ]
c7a913ac236138094e2a964258e692919a12bd4cbfade178140d690ec441c855
""" API operations on Quota objects. """ import logging from galaxy.web.base.controller import BaseAPIController, UsesQuotaMixin, url_for from galaxy.web.base.controllers.admin import Admin from galaxy import web, util from galaxy.web.params import QuotaParamParser from galaxy.actions.admin import AdminActions from p...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/webapps/galaxy/api/quotas.py
Python
gpl-3.0
5,327
[ "Galaxy" ]
afb5664a01d14ef9d59af88c18d7613ce192d61b6e7d02d4f30cb569bfe567b3
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
cpcloud/arrow
python/pyarrow/util.py
Python
apache-2.0
5,001
[ "VisIt" ]
b4c30f3b6004e87407e1927e0e8c0e0fa9eba9ce730a2770b59ec135b09cfdda
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
vericred_client/models/drug.py
Python
apache-2.0
15,271
[ "VisIt" ]
09ae630615508372b3f0de55f782d57b1620caf240d9a4f02197a8e5911f0aef
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
Nikea/VisTrails
vistrails/gui/shell.py
Python
bsd-3-clause
6,767
[ "VisIt" ]
6e609d7d53d96934237bd3b62a628780de3604d635fd1bdb76bd7d7a5b13c29b
import numpy as np import struct import re import collections import six def iterable(arg): return (isinstance(arg, collections.Iterable) and not isinstance(arg, six.string_types)) class WPSRecordError(Exception): pass class WPSFormatError(Exception): pass class WPSRecord(dict): def __init_...
openwfm/wrfxpy
src/wrf/wps_format.py
Python
mit
10,331
[ "Gaussian" ]
15a9e8a312ca89a021e8f39182a5440ea95217b7c07dd81c623a1877bf436920
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006 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/slaves/imageslaveslave.py
Python
gpl-2.0
7,371
[ "VisIt" ]
12ac93772d1b71f83aac8bd7497b62bc6dafa1f2c313543cbe4cc6cf00238923
from pylab import * import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm import matplotlib as mpl mpl.rcParams['interactive'] = True from matplotlib.colors import * from scipy import interpolate as inp from common import setVariable def cmapDiscretize(cmap, N): """ Return a discrete colorm...
zjonke/EImotif
eim/plot.py
Python
mit
7,250
[ "NEURON" ]
4eb01e76c1509bb8f9f9372d7ac34a19faec782f6f77d44d565d79663e8781b7
# 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...
Juniper/nova
nova/hacking/checks.py
Python
apache-2.0
30,074
[ "VisIt" ]
3e6014bfde9a03e05014e3b868c9623328180103bb523cd110eaf48bc1182bbf
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A Flow is a container for Works, and works consist of tasks. Flows are the final objects that can be dumped directly to a pickle file on disk Flows are executed using abirun (abipy). """ from __future__ impo...
czhengsci/pymatgen
pymatgen/io/abinit/flows.py
Python
mit
116,124
[ "ABINIT", "pymatgen" ]
5bebe3e80c2be0d05601b68b8fdb05dd1d495cfc0df6aecbd36eaa3325c59cf9
# coding: utf-8 from __future__ import unicode_literals """ This module provides classes to perform fitting of molecule with arbitrary atom orders. This module is supposed to perform exact comparisons without the atom order correspondence prerequisite, while molecule_structure_comparator is supposed to do rough compa...
rousseab/pymatgen
pymatgen/analysis/molecule_matcher.py
Python
mit
24,855
[ "pymatgen" ]
38c64be82dc01766bc4774c093a24465cc2dd6a963a9b4c46421519bc5edd544
# 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 RHypergraph(RPackage): """A package providing hypergraph data structures A package...
LLNL/spack
var/spack/repos/builtin/packages/r-hypergraph/package.py
Python
lgpl-2.1
1,091
[ "Bioconductor" ]
5d523a3d7b21d8eb9a16fc77543a5f0be039e233bac4bc0317ddf4e6cc370070
#Presence of Days in Social List ''' @file : Category.py @author (A) : Madhu Sai Ravada. @project : Social List function : returns 1 if the tag contains any day of the week else it will return 0 This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. To vie...
SummerProject16/project
CMUTweetTagger/testFile4.py
Python
cc0-1.0
601
[ "VisIt" ]
0377fc18d2cb182b3e4d3269aed746f7f2fd31b5fe090ca45c9dcf93c4085c83
import sys sys.path.append('./../bin') from filter import filter import numpy as np import scipy.optimize as op import matplotlib.pyplot as plt from matplotlib import rc import matplotlib as mpl def filterff(path_file, filter_method="butter", a=1, b=1): # load up some noisy data logf = open(pa...
cbosoft/pi_rheo_proj
etc/archive/plot_filt_compar.py
Python
gpl-3.0
4,532
[ "Gaussian" ]
af49075ce99a16277a83785fa24e73856c9cdd9d16e89f81c3675569f2e0bc29
#!/usr/bin/env python ################################################## ## DEPENDENCIES import sys import os import os.path try: import builtins as builtin except ImportError: import __builtin__ as builtin from os.path import getmtime, exists import time import types from Cheetah.Version import MinCompatib...
MOA-2011/enigma2-plugin-extensions-openwebif
plugin/controllers/views/mobile/timeradded.py
Python
gpl-2.0
9,163
[ "VisIt" ]
15af6655750bd6c91fe2bad44c620caf83cecbb5ac15dfd9abe0b41ae0867082
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
alexgorban/models
official/nlp/xlnet/xlnet_modeling.py
Python
apache-2.0
46,038
[ "Gaussian" ]
57d273eb08786e9129a0ea006f6c27ae0c5cd2337846c07b79d0fd27ad829215
from operator import itemgetter import numpy import re try: import psyco; pysco.full() except: pass def dag_array(dagf): recs = [] #collections.defaultdict(list) fh = open(dagf, 'r') qname_len = 0 sname_len = 0 qchr_len = 0 schr_len = 0 for line in fh: if line[0] == '#': continue ...
LyonsLab/coge
bin/dagchainer/dag_tools.py
Python
bsd-2-clause
5,046
[ "BLAST" ]
5d0786e084782299846b5ee82103b16e6207fe693cf549701c7bbc002f27cb0c
import catmap from catmap import ReactionModelWrapper from catmap.model import ReactionModel from catmap.functions import get_composition, add_dict_in_place try: from scipy.optimize import fmin_powell except ImportError: fmin_powell = None import warnings from mpmath import mpf from math import exp, log IdealG...
mhoffman/catmap
catmap/thermodynamics/enthalpy_entropy.py
Python
gpl-3.0
44,337
[ "ASE" ]
af034ab7933111205edeacf0b0885c0bee1a187c45762684e8dab2e3376c1136
import bluesky.plans as bp def detselect(detector_object, suffix="_stats1_total"): """Switch the active detector and set some internal state""" print("This does not work anymore. Instead, do:") print("dets = [YOUR_DETECTOR_HERE]") def xpcs_count(detectors, *, md=None): """ Similar to `count` ...
NSLS-II-CHX/ipython_ophyd
startup/99-bluesky.py
Python
bsd-2-clause
8,689
[ "CRYSTAL" ]
c71f9cb12726c1c9bb422c04f969e0701e42c2541e23858e43d03a8b5fad8b04
""" MUSE -- A Multi-algorithm-collaborative Universal Structure-prediction Environment Copyright (C) 2010-2017 by Zhong-Li Liu 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 version 2 of t...
zhongliliu/muse
muse/Similarity/Expand_Cell.py
Python
gpl-2.0
4,901
[ "VASP" ]
609efa2461db133e6dc9b0c4079c3ae78aa515af5735e713b2d1ef7dd6981ddc
import unittest as ut import numpy as np from .. import adjtools as adj from ... import weights from ... import io from ... import examples from ..util import lat2W from ...common import RTOL, ATOL from ... import io from ...examples import get_path try: import pandas import geopandas PANDAS_MISSING = Fals...
lixun910/pysal
pysal/lib/weights/tests/test_adjlist.py
Python
bsd-3-clause
3,719
[ "COLUMBUS" ]
7c03a9c283fa0e306dd5f8fe9df7192f746ce663599ee1a54e707886beb05ca8
""" Contains basic data structures used throughout the rest of Q2MM. """ from __future__ import print_function from __future__ import absolute_import from __future__ import division import copy import logging import numpy as np import os import re import sys import constants as co import filetypes logger = logging.g...
Q2MM/q2mm
q2mm/datatypes.py
Python
mit
63,270
[ "TINKER" ]
fdcae0b51662a7c07f8e9671a40dec406526edfb201cd7316df24dc0a9a133a5
''' synbiochem (c) University of Manchester 2016 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' def get_well(idx, rows=8, columns=12, col_ord=True): '''Map idx to well''' if idx < 0 or idx >= rows * colu...
synbiochem/synbiochem-py
synbiochem/utils/plate_utils.py
Python
mit
754
[ "VisIt" ]
2a08d72abd012aa4e7fcd833b9538b9d425dba99f6df60ea21395ca1fb3ec900
######################################################### # CS6690-Pattern recognition # Assignment - 1 # Author: Arulkumar S ######################################################### import numpy as np from numpy import size, reshape import random from numpy.core.numeric import arange import pr_helper ...
InnovArul/codesmart
Assignments/Jul-Nov-2015/PatternRecognition/Assignment1/src/linear_regression.py
Python
gpl-2.0
16,288
[ "MOOSE" ]
7dc02cee2bd76b4f2b50541a0e46dcd6b810b2b3d047eca12053c744998a19a2
"""This is the main file you run to start a pinball machine.""" # mpf.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging from datetime import da...
qcapen/mpf
mpf.py
Python
mit
5,475
[ "Brian" ]
8b88162a9e707020191c7b7a48f6583e72e1fe61b07d39d86493f5a5b71a2dde
# Copyright 2001 by Tarjei Mikkelsen. 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. """BioPython Pathway module. Bio.Pathway is a lightweight class library designed to suppor...
zjuchenyuan/BioWeb
Lib/Bio/Pathway/__init__.py
Python
mit
10,973
[ "Biopython" ]
f88afce360ba7f04d16e10156c9ad294aa56fc1e0e011c1eb001ff9821004339
# ============================================================================ # # 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/search.py
Python
gpl-2.0
6,015
[ "VisIt" ]
3329b3e0178ddcecb3aea4908074621db4c0d8ec7fb76585aa6c2f4176bfecc6
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004, 2005 # 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 in the Software without restriction, including without limitation # ...
zcbenz/cefode-chromium
third_party/mesa/MesaLib/src/mapi/glapi/gen/gl_apitemp.py
Python
bsd-3-clause
9,279
[ "Brian" ]
d49fa2bed755c0ef798b3429844f16d88acc8e9309bdc370953ec6f76033030c
# MIT License # # Copyright (c) 2017, Stefan Webb. 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 # in the Software without restriction, including without limitation the rights # to us...
stefanwebb/tensorflow-models
tensorflow_models/models/vae_expconcrete_made_made.py
Python
mit
14,601
[ "Gaussian" ]
f1b1f0ac201f51c6e5226bf9362dda8f371d2d5ed4d6854d33e56e2f646795cd
import re from django.urls import reverse from test.test_helpers import check_response """ Tests for built-in Django auth views -- change password flow and forgot password flow. """ def test_change_password(user, client): user.set_password('old_password') user.save() client.force_login(user) # ...
harvard-lil/h2o
web/main/test/test_auth.py
Python
agpl-3.0
2,370
[ "VisIt" ]
a306aa11e4e24c7c355b69af619448875427ff89e736b2d7ba5f607d6ee7110c
# -*- coding: utf-8 -*- # # Copyright 2015, Foxugly. All rights reserved. # # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or (at # your option) any late...
Foxugly/medagenda
settings.py
Python
gpl-3.0
5,721
[ "VisIt" ]
3db4b1201586b973ef984c8f5062deefb16d1cb62d9e34127cf371673304db8f
# Copyright (c) 2013-2015 University Corporation for Atmospheric Research/Unidata. # Distributed under the terms of the MIT License. # SPDX-License-Identifier: MIT """ ======================= TDS Radar Query Service ======================= Use Siphon to get NEXRAD Level 3 data from a TDS. """ from datetime import date...
dopplershift/siphon
examples/Radar_Server_Level_3.py
Python
mit
3,365
[ "NetCDF" ]
8f0c17b8b3bfa9f9202ca4b930b99268d7584b0bd186eb563efaca49376dd750
# -*- coding: utf-8 -*- from __future__ import absolute_import from ..engine import Layer from .. import backend as K import numpy as np from ..legacy import interfaces class GaussianNoise(Layer): """Apply additive zero-centered Gaussian noise. This is useful to mitigate overfitting (you could see it as...
parag2489/keras_superpixel_pooling
layers/noise.py
Python
mit
3,238
[ "Gaussian" ]
0314857dca985b59cfc7026c2cb28cad7c4ff7ff417e3826d8d9eb7aadb65beb
#!/usr/bin/env python import numpy import netCDF4 import argparse import math def parseCommandLine(): """ Parse the command line and invoke operations. """ parser = argparse.ArgumentParser(description= ''' Compares the data in two netcdf files and reports level-by-level stats. ''', epi...
adcroft/convert_WOA05
python/compare2netcdf.py
Python
mit
2,453
[ "NetCDF" ]
f61211d94f67412ea7d4278458ee584209797b10fab439b21a082f43c7e149b6
# -*- coding:utf-8 -*- from __future__ import unicode_literals from django.contrib.sites.managers import CurrentSiteManager from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.formats import date_format from django.utils.translation import ugettext_lazy as _ f...
samuelmaudo/yepes
yepes/contrib/metrics/abstract_models.py
Python
bsd-3-clause
9,505
[ "VisIt" ]
66f03d0976f6ca2946b71a068c9ef3c845cb3d73c7fe969f6710253fdffc5a9f
from __future__ import division, print_function, absolute_import import os import sys import contextlib from os.path import join as pjoin from hashlib import md5 from shutil import copyfileobj import numpy as np import nibabel as nib import tarfile import zipfile from dipy.core.gradients import gradient_table from ...
StongeEtienne/dipy
dipy/data/fetcher.py
Python
bsd-3-clause
27,964
[ "VisIt" ]
85da26ccfe36501531cd5400e5635b456096b21b0638a46622d5d59ed7a4dd10
#!/usr/bin/python2.4 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Tool to create a new, empty .grd file with all the basic sections. ''' from grit.tool import interface from grit import con...
Crystalnix/house-of-life-chromium
tools/grit/grit/tool/newgrd.py
Python
bsd-3-clause
2,728
[ "xTB" ]
9dfa3670ea0643a63a1df2a98ea7089ba227ed0c6a0c92bc999a1217786ad6e7
# Copyright 2014 Roberto Brian Sarrionandia # # 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 t...
sarrionandia/tournatrack
profile.py
Python
apache-2.0
3,756
[ "Brian" ]
7d02cb112d88f5a405053383c9173550f95067fb87b5cc67746733fd626111d4
# Copyright (c) 2012 OpenStack Foundation # 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 ...
redhat-openstack/nova
nova/tests/compute/test_resource_tracker.py
Python
apache-2.0
61,920
[ "exciting" ]
dfd82f297cbf213fa175c58c66d2f4b95ced3204d7a13c81fc9648844b53919a
# -*- coding: utf-8 -*- # Semantic vectorizer based on Roget's Thesaurus. # See: Mikhalkova, Elena, and Yuri Karyakin. "PunFields at SemEval-2017 Task 7: Employing Roget's Thesaurus in Automatic Pun Recognition and Interpretation." # arXiv preprint arXiv:1707.05479 (2017). https://arxiv.org/pdf/1707.05479.pdf """## I...
evrog/PunFields
twit_to_vec.py
Python
gpl-3.0
6,648
[ "COLUMBUS" ]
fb39b1b90f52864bc5299fde1a590538eb86830bffa9e81f799d43211c4f1523
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
anderspitman/scikit-bio
skbio/util/tests/test_decorator.py
Python
bsd-3-clause
11,870
[ "scikit-bio" ]
89785f78aef3e22962d5f268bc6b3340b928c803874a09ac031b004bb0746988
""" Test helper functions and base classes. """ import inspect import json import unittest import functools import operator import pprint import requests import os import urlparse from contextlib import contextmanager from datetime import datetime from path import Path as path from bok_choy.javascript import js_defined...
itsjeyd/edx-platform
common/test/acceptance/tests/helpers.py
Python
agpl-3.0
31,963
[ "VisIt" ]
ff8cfbc3e33e17bc31ede6e83b4ee88fe38b67889dd692d14cc2bb2d1d65bb81
#print("pyci matrix elements vs GAMESS matrix elements") #print("hii(2222200) = ",fullham[0,0] + mol.energy_nuc()) #print("GAMESS energy = -74.9420799538 ") #print("hii(2222020) = ",fullham[22,22] + mol.energy_nuc()) #print("GAMESS energy = -73.9922866074 ") badlist=[] goodlist=[] #ham-0: 15 ok (these are dets with no...
shivupa/pyci
methods/misc/h2o-ref/compare.py
Python
gpl-3.0
2,317
[ "GAMESS" ]
b58b4a22e2232d41946d561e5db5551fa838a54434bf6195f23cce68c0a4922f
"""Bayesian Gaussian Mixture Model.""" # Author: Wei Xue <xuewei4d@gmail.com> # Thierry Guillemot <thierry.guillemot.work@gmail.com> # License: BSD 3 clause import math import numpy as np from scipy.special import digamma, gammaln from .base import BaseMixture, _check_shape from .gaussian_mixture import _chec...
PatrickOReilly/scikit-learn
sklearn/mixture/bayesian_mixture.py
Python
bsd-3-clause
28,476
[ "Gaussian" ]
1535612ef515e79f740cea0cf8dce801479d32d788fdb48581391f1364426934
from __future__ import division import numpy as np import numpy.testing.decorators as dec import nose.tools as nt import statsmodels as sm import matplotlib.pyplot as plt from selection.algorithms.sqrt_lasso import (sqrt_lasso, choose_lambda, estimate_sigma, data_carving, split_model)...
stefanv/selective-inference
selection/algorithms/tests/test_sqrt_lasso.py
Python
bsd-3-clause
9,271
[ "Gaussian" ]
b86a8f5de23a19988845b003ecdd698e072f3ef35d4e0c3e94c71e932d8c39c8
from PythonQt import QtCore, QtGui from director import uipanel from director import pointpicker from director import applogic from director import objectmodel as om from director import vieweventfilter from director import visualization as vis from director import vtkAll as vtk from director.debugVis import DebugData...
manuelli/director
src/python/director/measurementpanel.py
Python
bsd-3-clause
6,051
[ "VTK" ]
ba3703038b6166cb15779b73628e7ae02d9cc968bce59e5981b37acaaf2a5a2f
''' All this code is from SRJOGLEKAR246. I'm using it to learn. The original can be found here: https://codesachin.wordpress.com/2015/11/28/self-organizing-maps-with-googles-tensorflow/ ''' import tensorflow as tf import numpy as np class SOM(object): """ 2-D Self-Organizing Map with Gaussian Neighbourhoo...
gganssle/organize-yaself
tutorials/som_tf_tutorial.py
Python
mit
9,345
[ "Gaussian", "NEURON" ]
4c21e6b8cd8d4012d7249950a679cd496d8ed7b6be2b723015acf6f70e4314cc
from typing import Any, Dict EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = { # seems like best emoji for happy '1f600': {'canonical_name': 'grinning', 'aliases': ['happy']}, '1f603': {'canonical_name': 'smiley', 'aliases': []}, # the google emoji for this is not great, so made People/9 'smile' and #...
brainwane/zulip
tools/setup/emoji/emoji_names.py
Python
apache-2.0
95,373
[ "CRYSTAL", "Octopus" ]
25772198de65eb8188da7e250e8fec18ca38b460528f3c1cd2c9a19b6adf95c7
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import requests from pymatgen.core import SETTINGS from pymatgen.ext.optimade import OptimadeRester from pymatgen.util.testing import PymatgenTest try: website_is_up = requests.get("https://www.materials...
materialsproject/pymatgen
pymatgen/ext/tests/test_optimade.py
Python
mit
3,388
[ "pymatgen" ]
ea810447c7559fb8e777d4e5606f220b9182e84e8717c27b2fbbffdc09bfccfd
""" A simple VTK widget for PyQt v4, the Qt v4 bindings for Python. See http://www.trolltech.com for Qt documentation, and http://www.riverbankcomputing.co.uk for PyQt. This class is based on the vtkGenericRenderWindowInteractor and is therefore fairly powerful. It should also play nicely with the vtk3DWidget code. ...
jmerkow/VTK
Wrapping/Python/vtk/qt4/QVTKRenderWindowInteractor.py
Python
bsd-3-clause
14,224
[ "CRYSTAL", "VTK" ]
77d54f5465b2c0a3e3ac13cd73ee40d3be1ad78073489455f939cc8e3f02b20f
import sys import time import unittest import wrappers from coordinator.engine import Coordinator from sprint import * import environment import stdlib class testNetcdfSimulation(unittest.TestCase): def setUp(self): self.engine = Coordinator() if sys.gettrace(): print 'Detected Deb...
Castronova/EMIT
tests/engine/test_netcdf.py
Python
gpl-2.0
2,771
[ "NetCDF" ]
2f103f7a4fcb34770c61f723133bdfb75985020799b6b29daf77269ee38dd4f1
#!/usr/bin/env python3 # -*- coding: utf-8; Mode: Python; indent-tabs-mode: nil; tab-width: 4 -*- # vim: set fileencoding=utf-8 filetype=python syntax=python.doxygen fileformat=unix tabstop=4 expandtab : # kate: encoding utf-8; bom off; syntax python; indent-mode python; eol unix; replace-tabs off; indent-width 4; tab-...
DevynCJohnson/Pybooster
accessory/machine_learning/Music/nn_funcs.py
Python
lgpl-3.0
17,260
[ "Gaussian" ]
592e78ddd585baf9667af54a30b647644a88ac9090999929010b9a0f7056bafa
import sys import subprocess,time sys.path.append(sys.path[0] + "/..") from src.MB import context,midi,music,players context=context.Context() melody_player=context.create_player(chan=1) echo_player=context.create_player(chan=2) melody_player.set_instrument('Piano') accent=music.NoteOn(61,100) weak=music.NoteOn(60...
pauljohnleonard/MusicBox
src/BROKEN/07_PlayerPhraseifierTest.py
Python
gpl-2.0
1,027
[ "VisIt" ]
368b4f172ef2a17cb39d1c6780cea5ae7dd0dd80a794e43eb6650114e63b052d
from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import re import socket import sys import time import math from ..compat import ( compat_cookiejar, compat_cookies, compat_etree_fromstring, compat_getpass, compat_http_client, ...
adazey/Muzez
libs/youtube_dl/extractor/common.py
Python
gpl-3.0
102,558
[ "VisIt" ]
f8c1a6d9cf7e5d601c9bc41fe29194f39e9e3654bc021238d1695a3418741ca1
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
eljefe6a/incubator-beam
sdks/python/apache_beam/transforms/ptransform.py
Python
apache-2.0
26,321
[ "VisIt" ]
33d436c689e17723ddd48365ce2935eba107d6b76fb75f15cbd85a73713cd14b
#!/usr/bin/env python # Copyright (C) 2009-2015 the PISM Authors # @package pism_python # \author the PISM authors # \brief Creates "from scratch" a boring dataset with the right format # to use as a PISM bootstrapping file. # \details Example use of Python for this purpose. # # Usage, including a minimal PISM call t...
talbrecht/pism_pik07
util/pism_python.py
Python
gpl-3.0
2,820
[ "NetCDF" ]
70acc6fd03d6830df15c0bd142f196371d103385ef3b25ea57b236f4ad3c83e3
""" DIRAC - Distributed Infrastructure with Remote Agent Control The distributed data production and analysis system of LHCb and other VOs. DIRAC is a software framework for distributed computing which allows to integrate various computing resources in a single system. At the same time it integrates al...
fstagni/DIRAC
__init__.py
Python
gpl-3.0
6,612
[ "DIRAC" ]
0917a122fe00ceafd28d8ce93df3c9bd80ffbea48da70c4f16f32bbf6a8e0e61
import ambgmin_ as GMIN import pele.potentials.gminpotential as gminpot from pele.optimize import fire import numpy as np from copy import copy from pele.potentials.potential import potential as BasePotential from simtk.openmm.app import * from simtk.openmm import * from simtk.unit import * import simtk.openmm.ap...
kjs73/pele
playground/amber/compare_with_ambgmin/OpenmmAmbPot.py
Python
gpl-3.0
5,213
[ "Amber", "OpenMM" ]
c75eeef3bbc44d93e8f36a81cbb9f3de0283edb74c7bb51a64ea94bb9ddd2b75
import realdata if __name__ == "__main__": """ Convert the data from the 0.87 prototype to a script """ text = 'regions={}\n\n' for regionName in sorted(realdata.regions): props = realdata.regions[regionName] label = props[0] text += "regions['%s'] = network.createRegion(name = '%s'...
JaneliaSciComp/Neuroptikon
Source/realdata/convert.py
Python
bsd-3-clause
1,546
[ "NEURON" ]
6d85c191ead26d5b099d4bab9284093691de1a2ae3db4f3a409b2161196dc434
#!/usr/bin/env python from collections import namedtuple from os.path import join, exists from os import makedirs#, chdir,getcwd,fchmod from glob import glob import shutil import numpy as np #import pandas as pd import re #import scipy as sc #from scipy.stats import norm #from scipy.stats import expon import scipy.inte...
zertan/Menace
menace/lib/Community.py
Python
gpl-2.0
13,338
[ "Biopython" ]
10b64f7d9acc331e1e896cc6a74bc1b6b74a619670896c739e11188d18d82da2
""" @author: Martin Kuemmel @organization: LMU / USM @license: Gnu Public Licence @contact: mkuemmel@usm.lmu.de @version: $Revision: $ @date: $Date: $ @changeDate: $LastChangedDate: $ Initialize the test library. """ import os.path import shutil import unittest # check tips version import tips if float(tips....
nfourmanoit/TIPS
test/test_tips/testaxesim/testaxesimDisp.py
Python
gpl-3.0
10,081
[ "Gaussian" ]
27dbe3b9805d84170c362503f0daba907f4285f0e2865ed3fcc0f6a6fb4de2b3
import sys import math, os, time, scipy.stats, numpy as np, pylab, Image, PIL.Image import matplotlib.pyplot as plt, matplotlib.cm as cm import numpy.random import theano, theano.tensor as T import anglepy as ap import anglepy.models as apmodels import anglepy.ndict as ndict import anglepy.paramgraphics as paramgraphi...
dpkingma/nips14-ssl
run_flying.py
Python
mit
4,244
[ "Gaussian" ]
9ba7c1be7d228d4d05b922413efd49991ea839408c263fc601f0b71d484ad9de
import urllib2 import json class GenRep(object): """Create an object to query a GenRep repository. GenRep is the in-house repository for sequence assemblies for the BBCF in Lausanne. This is an object that wraps its use in Python in an idiomatic way. Create a GenRep object with the base URL to t...
madhadron/rnaseq
rnaseq/genrep.py
Python
gpl-3.0
4,520
[ "Bowtie" ]
a25e4251c472c85926ceddb2bd0be21425905882b67fd8c341c90790f0fd6062
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
asimshankar/tensorflow
tensorflow/contrib/timeseries/python/timeseries/state_space_models/filtering_postprocessor.py
Python
apache-2.0
12,510
[ "Gaussian" ]
a1476af797ce22322c853364537223c981db6518ed57252b6854d5c6b94e43e2
#! /usr/bin/python import sys import os import re import argparse import subprocess as sp from shutil import copyfile import commandWriters as cw #This script is meant to automate the set up of Turbomole #calculations using a short list of input options. For #information on specifying these options see the accomp...
magee256/TurbomoleScripts
SetUp/autoDefine/autoDefine.py
Python
mit
11,310
[ "TURBOMOLE" ]
d492ca4b2801959b117da83c48b5c92a797f6e051007efb0297e8fe8def75bfa
import pytest from cfme import test_requirements @pytest.mark.manual @test_requirements.update @test_requirements.db_migration @pytest.mark.meta(coverage=[1478986, 1561075, 1590846, 1578957]) @pytest.mark.tier(2) def test_upgrade_dedicated_db_migration_local(): """ Test that you can locally migrate a dedicat...
nachandr/cfme_tests
cfme/tests/test_db_migrate_manual.py
Python
gpl-2.0
18,398
[ "VisIt" ]
9397c8e2aa9419529676223845e14d88987d4ccbad3bbf0d9cbff99af50d6194
#!/usr/bin/env python import os import cPickle as pickle import numpy as np import matplotlib.pyplot as pl import tempfile import smtplib try: from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart except ImportError: from email.MIMEMultipart import MIMEMultipart from email...
qsnake/gpaw
gpaw/test/big/analysis.py
Python
gpl-3.0
9,107
[ "GPAW" ]
81cca84eeb7ff0b49e92655834fe75ed87fc4b8a64af95e882b771dc132edf8e
''' Shared library for the Belkin contest. Author: Brian Chow Email: brian.a.chow@gmail.com Date: 2013-07-07 ''' from scipy import linspace, io from pylab import * from cmath import phase from math import * from matplotlib import pyplot from bisect import bisect_left import datetime class DataFile: ''' ...
bachow/kaggle-belkin-contest
belkin.py
Python
mit
12,543
[ "Brian" ]
a8d76e4a10f9841fac45ec279599b823f5d0e1b4c20646e5052d94870697c18c
from galaxy import exceptions from galaxy.managers import histories INPUT_STEP_TYPES = [ 'data_input', 'data_collection_input' ] class WorkflowRunConfig( object ): """ Wrapper around all the ways a workflow execution can be parameterized. :param target_history: History to execute workflow in. :type tar...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/workflow/run_request.py
Python
gpl-3.0
10,558
[ "Galaxy" ]
af263e53490140f421b6c3d7442f627d444fd196bc015c2f144bdfda34e0c832
from os import path as _p import time #---------------------------------------------------------- def merge(target, source): """ Copy target to a new dict, update using source and return result. >>> sorted(merge({"a": 12, "x":"foo"}, {"x":1, "y":12})) [("a", 12), ("x", 1), ("y", 12)] """ ...
spiralx/mypy
mypy/xmldir.py
Python
mit
3,213
[ "VisIt" ]
973c6252c31a18ed281c5cc7d1035b55fda28de9b17c88af21941842496a89aa
#!/bin/env python3 # AUTHOR: # Hakan Ozadam # Moore Laboratory # UMASS Medical School / HHMI # RNA Therapeutics Institute # Albert Sherman Center, ASC4-1009 # 368 Plantation Street # Worcester, MA 01605 # USA # ####################################################...
hakanozadam/bal
bal/umass_cluster/lsf/AlignBpJobGroup.py
Python
gpl-2.0
13,392
[ "pysam" ]
b67ff0881e40af3bb2e2ea7b220d90b38e5deee52402c5040ef03b44bc9d3700
# -*- coding: UTF-8 -*- # Copyright 2015-2020 Rumma & Ko Ltd # License: BSD (see file COPYING for details) from django.db import models from lino.api import dd class Person(dd.Model): name = models.CharField(max_length=50) def __str__(self): return self.name class Place(dd.Model): name = m...
lino-framework/book
lino_book/projects/nomti/app/models.py
Python
bsd-2-clause
2,482
[ "VisIt" ]
4bde643cc7f2f8d7e976b04d121de2c24e8b44149108e10ad960b4e63520db2f
# Copyright 2021 The Pigweed 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
google/pigweed
pw_console/py/log_store_test.py
Python
apache-2.0
4,655
[ "Galaxy" ]
1f6f5cfb33c07b940537baad7da3d892232f7d4f95247504667f50b07e8c8163
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Gregory Bowman # Contributors: Robert McGibbon # # MDTraj is f...
casawa/mdtraj
mdtraj/tests/test_io.py
Python
lgpl-2.1
5,261
[ "MDTraj" ]
b9f0916cb99f35d746961eebcba3a348c299b416c30d8c6698c51d524be34a6a
import random """ https://ftims.edu.p.lodz.pl/pluginfile.php/78898/mod_resource/content/2/zad_01_DELTA_en.pdf It solves following 1st task which generally is: Write a program which implements a single linear neuron trained with the delta rule with the use of (a) single and (b) multiple training patterns. """ class...
marcin-olejniczak/ipd
neuron.py
Python
mit
2,762
[ "NEURON" ]
e10a7de344ddfab33530088dc098d6f2a928eec9480cea1a56c339b735be87e6
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # LICENSE # # Copyright (c) 2010-2013, GEM Foundation, G. Weatherill, M. Pagani, # D. Monelli. # # The Hazard Modeller's Toolkit is free software: you can redistribute # it and/or modify it under the terms of the GNU Affero General Public # License ...
luisera/hmtk
hmtk/seismicity/utils.py
Python
agpl-3.0
14,715
[ "Gaussian" ]
3737387d5f2abdb15529db874c59b5a5acc6cc316ddb3a6be8c2822e82d3a89d
"""Merging functions for experiment lists and reflection tables.""" from __future__ import annotations import logging from io import StringIO from jinja2 import ChoiceLoader, Environment, PackageLoader from cctbx import uctbx from mmtbx.scaling import data_statistics from dials.algorithms.scaling.Ih_table import (...
dials/dials
algorithms/merging/merge.py
Python
bsd-3-clause
15,694
[ "CRYSTAL" ]
4e2141a2cd1a07917496ab284ece896e5df23b0cdeea477754c8d3f5084f15d2
# # Copyright 2001 - 2006 Ludek Smid [http://www.ospace.net/] # # This file is part of IGE - Outer Space. # # IGE - Outer Space 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 Lice...
OuterDeepSpace/OuterDeepSpace
libs/server/ige/ospace/GalaxyGenerator.py
Python
gpl-2.0
22,614
[ "Galaxy" ]
9aadcbc62ce43ff283b6c0bd6b726ce2c1f338bdbf53dcfba36ca91179107619
from nanopore.analyses.abstractAnalysis import AbstractAnalysis from nanopore.analyses.utils import getFastqDictionary, samIterator import os import pysam import xml.etree.cElementTree as ET from jobTree.src.bioio import reverseComplement, prettyXml, system from collections import Counter import re class ChannelMappa...
mitenjain/nanopore
nanopore/analyses/channelMappability.py
Python
mit
1,887
[ "pysam" ]
0a083413d3dcd606fc4fe468ff67b1a56d9b16ec95589852273d49590e0166c9
# coding: utf-8 """ ConfigParserAdvanced, developer by David Trillo Montero write me at manejandodatos@gmail.com Visit my website: http://www.manejandodatos.es # Version 0.8.0 - 20150120 Mejora de escritura PEP 8 # Version 0.8.0 - 20140704 self.get() modificado para que se ajuste al tipo de dato # Version 0.7.0 ...
Paco1994/sportbot
sportbot/sportbot/ConfigParserAdvanced.py
Python
gpl-3.0
5,260
[ "VisIt" ]
981b64a6ac737ac68f808bb6dcb3314d0de31f428dd98002448da73cc9e0c51d
# -*- coding: utf-8 -*- # # Schematic Eye documentation build configuration file, created by # sphinx-quickstart on Sat Nov 24 13:20:29 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. #...
bps10/emmetrop
doc/source/conf.py
Python
mit
8,456
[ "Brian" ]
6bc3771f4eebec2da67a6cd35efdc39707f6da1f804cc73f5e643cdc927e33e6
import datetime import email import functools import hashlib import json import logging import logging.handlers import os import re import requests import shutil import smtplib import socket import subprocess import sys import tempfile import time import urllib import random import string from flask import current_app...
jaboyles/CFTD_Senior_Project
CTFd/utils.py
Python
apache-2.0
21,094
[ "VisIt" ]
0195d0fb071b355d5366b6bd769176ce4c7cf9fe8624d63a8e00726d4271b1d8
# Author: Samuel Genheden samuel.genheden@gmail.com """ Program to replace the coordinates in a datafile with those of a PDB The default output is the input data file with a "_repxyz" string appended Example: lmp_replace_dataxyz.py -f data.200popc_b2 -p 200popc_b2_pushed.pdb """ import os import sys import argpar...
SGenheden/Scripts
Lammps/lmp_replace_dataxyz.py
Python
mit
1,259
[ "LAMMPS" ]
7a5a7efa71da3889ea0534c8a1489753d92f6b4b78572657b66779410964007a
#!/usr/bin/env python ########################################################################### # # # This Python script may be used to simulate a monatomic LJ fluid in the # # NVE or NVT ensemble. The starting configuration may be taken from ...
junghans/espressopp
bench/lennard_jones/espressopp/espressopp_lennard_jones.py
Python
gpl-3.0
5,213
[ "LAMMPS" ]
282297ddb9a3f2a450c833f568aef8cbce269aa61735e64fad93a545d42f7afa
#!/usr/bin/env pvbatch from paraview.simple import * import pviz import sys oviz=pviz.viz(sys.argv) # instantiate viz object (and load data) part=GetActiveSource() # select active part ResetCamera() # auto-adapt camera to part extent for var in part.PointData: # loop ...
ruizanthony/pviz
examples/simple/load2D_saveImage.py
Python
lgpl-3.0
509
[ "ParaView" ]
06b3a88d231effc683eb284436047402726ae2f559fe79c348f7ebf122ca2560
# Orca # Copyright (C) 2014-2015 Synthicity, LLC # Copyright (C) 2015 Autodesk # See full license in LICENSE. import os import tempfile import pandas as pd import pytest from pandas.util import testing as pdt from .. import orca from ..utils.testing import assert_frames_equal def setup_function(func): orca.cle...
SANDAG/orca
orca/tests/test_orca.py
Python
bsd-3-clause
32,420
[ "ORCA" ]
31dba8684454692729b458ef2f9d5b9266e136b40fde41a5d84ffce6d8b40210
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes to perform fitting of structures. """ from __future__ import division, unicode_literals import six from six.moves import filter from six.moves import zip import numpy as np i...
matk86/pymatgen
pymatgen/analysis/structure_matcher.py
Python
mit
42,579
[ "pymatgen" ]
7f1d3a3a743aaceabecefa922f8abe40684f1de8d3965d37a2e8afbdf9c8ab74
from urllib2 import urlopen import lxml.html import requests import json import csv # dataYears = ['2008', '2009', '2010', '2011', '2012', '2013', '2014', '2015'] # dataAgencies = ['USDA','DOC','DoD','ED','DOE','HHS','DHS','HUD','DOI','DOJ','U.S. DOL','State','DOT','Treasury','VA','ACUS','USAID','ABMC','NRPC','AFRH','...
sunlightlabs/foia-data
data/foia.gov/scrape-request-pending.py
Python
gpl-3.0
3,711
[ "ADF" ]
1a3bf5a573c5ac4f3ab36d48430e8bb03154be0720a9847c58a4aa00b7adf5ff
# particlesim # Copyright (C) 2017 Mark Niehues, Stefaan Hessmann, Jaap Pedersen, # Simon Treu, Hanna Wulkow, Thomas Hadler # # 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 ...
maqnius/compscie-mc
particlesim/total_potential.py
Python
gpl-3.0
6,463
[ "Gaussian" ]
88d9572802021c814e1541b09344fdc0cbe3899f99b2b4a97733662a1c0499a6