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
"""Installation script.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import os import os.path as op import re import numpy import sys import platform try: from setuptools import setup ...
benvermaercke/klustakwik2
setup.py
Python
bsd-3-clause
3,480
[ "Brian" ]
d8f6bca4865896f6d946a854ecfe4e370b045ab2bece37bdc9453ee01d3f02b3
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkTreeMapLayout(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, vtk....
nagyistoce/devide
modules/vtk_basic/vtkTreeMapLayout.py
Python
bsd-3-clause
479
[ "VTK" ]
481fadb2626ea58635df9134c3e2f2e6e48a966fd30a60407feb06366188a13b
# -*- coding: UTF-8 -*- import datetime import os import os.path import subprocess from collections import defaultdict from django.conf import settings as dsettings from django.core import exceptions from django.core.cache import cache from django.db import connection from django.db import models from django.db import...
yakky/conference
conference/models.py
Python
bsd-2-clause
46,395
[ "ESPResSo" ]
34593daf6bfedd64deb315b3807bf450fa70fda044d783bb989fac10d71c409e
#!/usr/bin/env pythonw #!/usr/bin/env ffmpeg ################################# # NPR Leveler # NPR Labs, Copyright 2015 # Provides a platform-agnostic user interface for analyzing and # adjusting audio files to enforce compliance with EBU Loudness # standards. # # This version is for DEBUGGING PURPOSE...
goldfarb/LVLR
LVLR.py
Python
gpl-2.0
75,067
[ "VisIt" ]
15750b92071731a4849215b31ef9a22ffe96b3b9623f44a4ca435d739cbc64de
import logging import os from galaxy.util import listify from galaxy.web.form_builder import SelectField from tool_shed.util import hg_util from tool_shed.util import metadata_util from tool_shed.util import shed_util_common as suc log = logging.getLogger( __name__ ) def build_approved_select_field( trans, name, se...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/tool_shed/grids/util.py
Python
gpl-3.0
15,264
[ "Galaxy" ]
86c9dd7fd8a7c1877053ed8a161aad453b7af06f885359586a9ce98ed53aa5b0
""" Principal Component Analysis """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # License: BSD Style. import numpy as np from scipy import linalg from math import log from ..base import BaseEstimator,...
florian-f/sklearn
sklearn/decomposition/pca.py
Python
bsd-3-clause
18,072
[ "Gaussian" ]
778aac2d3ee443a1f2af167f0850f8577f5f1852a053f011608137b0f6c75701
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-biocgenerics/package.py
Python
lgpl-2.1
1,833
[ "Bioconductor" ]
8f42e9b374d589cc255a4ec541fe84b2395df83260de67d4d15247ccdb5d59b0
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-dirichletmultinomial/package.py
Python
lgpl-2.1
2,008
[ "Bioconductor" ]
4fb062bb8a9464c844020e3c571b4c07744bcbe6ac9a14e8b50c11519d2c4171
'''bwaAlign.py Usage: bwaAlign.py <prefix> <indir> <index> <threads> <outbam> <modules> [--unpaired] [--namesort] [--samplename=<sn>] [--libraryid=<li>] [--readgroup=<rg>] [--platform=<pl>] [--trim=<tm>] Options: --unpaired Input reads are unpaired. --namesort ...
adam-rabinowitz/ngs_python
scripts/Fastq/bwaAlign.py
Python
gpl-2.0
5,903
[ "BWA" ]
18e78cec7fec4083b9f686efffa652be836d1c103705c2e9238c99baac862be2
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2013-2017 GEM Foundation # # OpenQuake 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 Licen...
gem/oq-hazardlib
openquake/hazardlib/geo/surface/multi.py
Python
agpl-3.0
25,335
[ "Brian" ]
afc4856d69e444adb606eccc252fd67dbb0afbfcbbb6b04cb3be3ee2246a124a
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 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 ...
andysim/psi4
psi4/driver/p4util/inpsight.py
Python
gpl-2.0
23,238
[ "Jmol", "Psi4" ]
3375b832685e63421091e5997d1a1efefc766bb30cfb585f553b159e30b9823c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements a FloatWithUnit, which is a subclass of float. It also defines supported units for some commonly used units for energy, length, temperature, time and charge. FloatWithUnit also suppor...
fraricci/pymatgen
pymatgen/core/units.py
Python
mit
27,807
[ "pymatgen" ]
8ebf4e2af22e965c70a3c888332e6dce192b46d8e1a502e169ddd1b3fda5d7bf
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
mattgiguere/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
33,984
[ "Brian" ]
759a2cadfb06f45444317bc5dda69e7d3875cb6a3d8cfdadffd7e0609a1106a7
# (c) Crown Owned Copyright, 2016. Dstl. import os import unittest from splinter import Browser class TestLoginPage (unittest.TestCase): def setUp(self): self.browser = Browser('phantomjs') def test_login_page_appears(self): # This needs to come from an environment variable at some point ...
dstl/lighthouse
acceptancetests/tests/acc_test_login_page.py
Python
mit
758
[ "VisIt" ]
2c4bb4793649a0de67b9504a4792757417c1b99d883ac8ef8ec693bdfcce24da
import MDAnalysis as mda import numpy as np from numpy.testing import (assert_equal, assert_array_equal, assert_raises) from unittest import TestCase from MDAnalysis.lib.mdamath import triclinic_vectors from MDAnalysisTests.datafiles import (DMS) from MDAnalysisTests.coordinates.base import BaseTimestepTest class T...
alejob/mdanalysis
testsuite/MDAnalysisTests/coordinates/test_dms.py
Python
gpl-2.0
2,807
[ "MDAnalysis", "VMD" ]
427b708cf606917de18d0396ca6f93e28766c2c05a50a919968a4f43feadfc54
""" Calculates a crystal diffraction. Except for energy all units are in SI. Energy is in eV. """ from math import isnan from numpy import pi import scipy.constants.codata from crystalpy.diffraction.GeometryType import BraggDiffraction, BraggTransmission, LaueDiffraction, LaueTransmission from crystalpy.diffraction....
edocappelli/crystalpy
crystalpy/diffraction/Diffraction.py
Python
mit
21,304
[ "CRYSTAL" ]
6ec766ce2969b0d2e15f3c3c1ed865a7efa77901b2f5006f058174dcff4ca9b1
from numpy import * from pylab import * from PyOFTK.utilities import * import PyOFTK T = 16.0 nt = pow(2,10) dt = T/nt z = 20.0 nz = 1000 nplot = 2 n1 = round(nz/nplot) nz = n1*nplot dz = z/nz t = linspace(-T/2.0, T/2.0, nt) s = 0.01 zv = (z/nplot)*(0:nplot); u = zeros(length(t),length(zv)) u_ini_y =...
mlaprise/PyOFTK
PyOFTK/examples/agrawal_fig4_16.py
Python
gpl-2.0
740
[ "Gaussian" ]
f6638dca349e7ef1bc840f4bca049bfd3091cdd920a7688fba4f1b054febcf3c
# Copyright 2014 The Oppia 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 applicable ...
AllanYangZhou/oppia
core/domain/email_manager_test.py
Python
apache-2.0
78,772
[ "VisIt" ]
1cb5abb2d9f1e92b80789107620f9e689d3bc5cceea32422d8557d64218cb466
../../../../../../../share/pyshared/orca/scripts/apps/soffice/script.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/soffice/script.py
Python
gpl-3.0
71
[ "ORCA" ]
caacad5509385abe49a8df7c9a2258f8d71b18dd7997da20c98433e6e440a8be
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from translate.lang import data as langdata ...
pavels/pootle
pootle/i18n/gettext.py
Python
gpl-3.0
2,683
[ "ADF" ]
14a5117eac185854ad235d4bf8cbd4fab22d51a98b110fd19c3fb4f4337254e8
#!/usr/bin/env python ## ## @file readSBML.py ## @brief Similar to validateSBML, but without the validation ## @author Sarah Keating ## @author Ben Bornstein ## ## ## This file is part of libSBML. Please visit http://sbml.org for more ## information about SBML, and the latest version of libSBML. ## import ...
dilawar/moose-full
dependencies/libsbml-5.9.0/examples/python/readSBML.py
Python
gpl-2.0
992
[ "VisIt" ]
0134d467e20da59b3a3cfdb0d260dd92ea0de7ba8381156f39768e760cd41a4f
# -*- coding: utf-8 -*- # @Author: YangZhou # @Date: 2017-06-12 22:01:42 # @Last Modified by: YangZhou # @Last Modified time: 2017-06-19 13:16:20 from aces.materials import Material from .atomic import get_unique_atoms, swap, wrap from ase import Atoms, Atom from math import pi, sqrt from ase.dft.kpoints import ibz...
vanceeasleaf/aces
aces/materials/graphene.py
Python
gpl-2.0
2,739
[ "ASE" ]
459f72ee64072071153b08c78fe63d6de840ee4024f9b40ba1eadbb01bf1bd56
#! PYTHONEXE import sys sys.path = ["REPLACEPATH"]+sys.path import numpy as nm import clik import clik.hpy as hpy def main(argv): if len(sys.argv)!=2: print "usage : %s lkl_file" sys.exit(1) if clik.try_lensing(argv[1]): main_lensing(argv) return main_CMB(argv) def main_CMB(argv): clikl = cl...
ClaudioNahmad/Servicio-Social
Parametros/CosmoMC/prerrequisitos/plc-2.0/src/python/tools/clik_print.py
Python
gpl-3.0
3,666
[ "Gaussian" ]
443cc35041a5c9e3a69a5182196d5d9b1c9de44fb9867f7f0eb91e616d944386
#!/usr/local/bin/python # generates data drawn from a gaussian distribution # useful for testing a variety of processes """ Copyright (c) 2013 Josh Attenberg 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...
jattenberg/datascience-utilities
datascience_utilities/normal.py
Python
mit
3,590
[ "Gaussian" ]
d853add6b07ce9b9f1ae79d36e3af32c21b7276b259a9635a7e2433fd5038ada
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
do/modeling/cache_images.py
Python
agpl-3.0
7,505
[ "Galaxy" ]
6638199c9e552eaff675d0ecc5679145b4759cedbd75866c310af836e16bf595
""" DIRAC.StorageManagementSystem.DB package """
DIRACGrid/DIRAC
src/DIRAC/StorageManagementSystem/DB/__init__.py
Python
gpl-3.0
52
[ "DIRAC" ]
2ab42f18965d3b8da596fe20968c1e24d318db33bc88bc2469a6657c3fd6b03f
aa_dict = { 'A' : 'ala', 'C' : 'cys', 'D' : 'asp', 'E' : 'glu', 'F' : 'phe', 'G' : 'gly', 'H' : 'his', 'I' : 'ile', 'K' : 'lys', 'L' : 'leu', 'M' : 'met', 'N' : 'asn', 'P' : 'pro', 'Q' : 'gln', 'R' : 'arg', 'S' : 'ser', 'T' : 'thr', 'V' : 'val', 'W' : 'trp', ...
gratefulfrog/lib
python/pymol/pymol_path/examples/cookbook/build_peptide.py
Python
gpl-2.0
805
[ "PyMOL" ]
f1d1bf33be2dcc85e246f101f26e486e95484684c473a81aaa8529e0690b6eaf
########################################################################### # # 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.vaibhav.brocadeswitches/setup.py
Python
gpl-2.0
3,280
[ "VisIt" ]
8e1c60118e5e05272bf3f7c8ba32775e7f32877806e16e6d1fb7e57488cd1b8e
import warnings from numpy import * import scipy from scipy.linalg import eig as geneig from scipy.signal import lfilter from scipy.stats import norm as gaussian import time def fit_ellipse(xy): '''fit an ellipse to the points. INPUT: xy -- N x 2 -- points in 2D OUTPUT: A,B,C,D,E,F -- real numbe...
MMaus/mutils
fmalibs/util.py
Python
gpl-2.0
47,363
[ "Gaussian" ]
6848a8f306f415e4f1bfc59732aa8aa557302c76846e7853e779630311800e8e
import numpy as np import math import sys sys.path.insert(0,'../..') import os import classifier_eval_simplified from sklearn import tree from sklearn.ensemble import AdaBoostClassifier from sklearn.svm import SVC for dim in range(2,11): comp_file_list=[] ######################################################...
weissercn/MLTools
Dalitz_simplified/evaluation_of_optimised_classifiers/svm_sin/svm_Sin_evaluation_of_optimised_classifiers.py
Python
mit
1,573
[ "Gaussian" ]
b0abc13f33d5383f52824bdb142932e2ff31a1522654bfbe9ed3124bd12a315b
""" Implementation of Harwell-Boeing read/write. At the moment not the full Harwell-Boeing format is supported. Supported features are: - assembled, non-symmetric, real matrices - integer for pointer/indices - exponential format for float values, and int format """ from __future__ import division, print_...
chaluemwut/fbserver
venv/lib/python2.7/site-packages/scipy/io/harwell_boeing/hb.py
Python
apache-2.0
18,471
[ "exciting" ]
a33db21cc95180815b6efc39e42ea49f97989f9b08da5d6b9c396a29d408e54a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements plotter for DOS and band structure. """ import copy import itertools import logging import math import warnings from collections import Counter, OrderedDict import matplotlib.lines a...
gmatteo/pymatgen
pymatgen/electronic_structure/plotter.py
Python
mit
184,870
[ "BoltzTrap", "CRYSTAL", "Gaussian", "Mayavi", "VASP", "pymatgen" ]
98f181ddd52566eea4a37199c0f26c47214385005eb4695c9ddd00f7a20863f6
"""Setup script for Bokeh.""" #----------------------------------------------------------------------------- # Copyright (c) 2012 - 2014, Continuum Analytics, Inc. All rights reserved. # # Powered by the Bokeh Development Team. # # The full license is in the file LICENCE.txt, distributed with this software. #---------...
daodaoliang/bokeh
setup.py
Python
bsd-3-clause
19,751
[ "GULP" ]
e8168e10f298ef9d87fb7e437f048c19432e6aa1d6f98aec95e221387fd27a4d
# Copyright 2018 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...
manipopopo/tensorflow
tensorflow/contrib/autograph/pyct/static_analysis/reaching_definitions.py
Python
apache-2.0
9,891
[ "VisIt" ]
d880660183da2f6e2aaecdbce0404c42a7de426a0bf5d73a859447e6a8477bf3
''' SYNBIOCHEM-DB (c) University of Manchester 2015 SYNBIOCHEM-DB is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' import multiprocessing import sys from sbcdb import chebi_utils, chemical_utils, mnxref_utils, \ ncbi_taxo...
synbiochem/biochem4j
sbcdb/build.py
Python
mit
1,832
[ "VisIt" ]
cd714f5138b3e3e66b7c5f5b8c983d8cb4834849b5adc4d6c77af98fdbcc4745
import re from corehq.apps.app_manager.const import USERCASE_TYPE from corehq.apps.app_manager.exceptions import LocationXpathValidationError from django.utils.translation import ugettext as _ def dot_interpolate(string, replacement): """ Replaces non-decimal dots in `string` with `replacement` """ pa...
puttarajubr/commcare-hq
corehq/apps/app_manager/xpath.py
Python
bsd-3-clause
8,813
[ "VisIt" ]
2df7d914cf8094803ca0bf2378aed559c5e44b031cdec949940440c304b9c085
__doc__ = """ macromdelmin.py is a convenience script that wraps Schrodinger's macromodel bmin executable. For each structure in the input file, generate a MacroModel com file and run the job. Copyright Schrodinger, LLC. All rights reserved. macromodelmin.py was written by Chris Higgs of Schrodinger, LLC. and was a...
chemalot/chemalot
bin/macromodelmin.py
Python
apache-2.0
18,287
[ "Amber", "MacroModel" ]
5a42941a3da42d9ada2c3c569045ac6b306a230e475cf19b9c2188a817c38dcb
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe, erpnext import unittest from frappe.utils import nowdate from erpnext.hr.doctype.employee_advance.employee_advance import make_bank_entry from erpnext.hr...
saurabh6790/erpnext
erpnext/hr/doctype/employee_advance/test_employee_advance.py
Python
gpl-3.0
1,636
[ "VisIt" ]
7038b54fcb7cfa3c5b2966cf335c6d5070c39f076443b5301885940ac4b579d8
from pymatgen.optimization.neighbors import find_points_in_spheres # type: ignore from pymatgen.core.lattice import Lattice import numpy as np from pymatgen.util.testing import PymatgenTest class NeighborsTestCase(PymatgenTest): def setUp(self): self.lattice = Lattice.cubic(10.0) self.cubic = se...
gVallverdu/pymatgen
pymatgen/optimization/tests/test_neighbors.py
Python
mit
1,982
[ "pymatgen" ]
d8081c3fcbde3d437014653479150f2162af55520ba04b5a739d294385e0f280
""" The B{0install download} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. import sys from zeroinstall import _ from zeroinstall.cmd import UsageError, select from zeroinstall.injector import model from zeroinstall.support import tas...
dabrahams/0install
zeroinstall/cmd/download.py
Python
lgpl-2.1
1,377
[ "VisIt" ]
b6211205a8b2c45b1dec693f5ff186970a7d8451cf9acfa4734d4813bee9a356
import unittest import numpy as np from pymatgen import Structure from pymatgen.analysis.eos import EOS from pymatgen.analysis.quasiharmonic import QuasiharmonicDebyeApprox __author__ = 'Kiran Mathew' class TestQuasiharmociDebyeApprox(unittest.TestCase): def setUp(self): struct = Structure.from_dict({ ...
gVallverdu/pymatgen
pymatgen/analysis/tests/test_quasiharmonic_debye_approx.py
Python
mit
5,782
[ "pymatgen" ]
6697bf7a636e5f6318cedbc7f670c8869150b17d532b3be36716bdc6bfc17595
# coding=utf-8 # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
aisk/grumpy
compiler/block.py
Python
apache-2.0
14,219
[ "VisIt" ]
3f723e2648d67784e7c6a4b47a398ad62506927afb07e9555185016452cc9111
""" ==================================================================== Linear and Quadratic Discriminant Analysis with confidence ellipsoid ==================================================================== Plot the confidence ellipsoids of each class and decision boundary """ print __doc__ from scipy import lina...
lucidfrontier45/scikit-learn
examples/plot_lda_qda.py
Python
bsd-3-clause
4,757
[ "Gaussian" ]
5525f2245c284609fe5bca5707791ed836b58a9449a3ff12ec0b9c73cbf3fbb9
import numpy as np import mdtraj as md from unittest import skipIf import logging from mdtraj.testing import eq from openmoltools import utils from openmoltools import amber import simtk.unit as u from simtk.openmm import app import simtk.openmm as mm import simtk.openmm.openmm as mmmm from distutils.spawn import find_...
Clyde-fare/openmoltools
openmoltools/tests/test_utils.py
Python
gpl-2.0
5,934
[ "Amber", "Gromacs", "MDTraj", "OpenMM", "RDKit" ]
42d839279c8947577091f761f0ebf7927bc820f26ef9b28f3682b2a6b62fc813
import argparse import re import requests from constants import POST_URL_REGEX, SEARCHPAGES_REGEX, FIND_OLDER_REGEX, PAGENAV_CLASS, base_url def collect_post_ids(session, data, username, searchurl, visited=[], godeeper=False, fetcholder=False): """Builds a list of a given user's posts. Depending on the p...
nukeop/codexscripts
scripts/users.py
Python
gpl-3.0
4,261
[ "VisIt" ]
ea66d55054e58a0a4ec0f3edc5018b10620c3e48a1748379c170b6c11c1e07f0
#!/usr/bin/env python # -*- coding: utf-8 # Copyright (C) 2010 - 2012, A. Murat Eren # # 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...
jooolia/oligotyping
Oligotyping/lib/decomposer.py
Python
gpl-2.0
66,381
[ "BLAST" ]
6b670dc2c0618f916d900dbbfe190b94382d07b01a0bf7f946faaf34a37af630
#!/usr/bin/env python import sys import os import re from lib2to3.pgen2.driver import Driver from lib2to3 import pygram, pytree from lib2to3.pytree import Node, Leaf, type_repr from lib2to3.pygram import python_symbols def sym_type(name): return getattr(python_symbols, name) def new_node(name): return Node(...
spaceone/pyjs
pyjs/translator_dict.py
Python
apache-2.0
116,954
[ "VisIt" ]
6e5d56b364413cbe2bf221308f4202f8ab803571c56b2efcf09fa26345ec5e43
# # Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
fweik/espresso
doc/tutorials/active_matter/exercises/rectification_geometry.py
Python
gpl-3.0
3,519
[ "ESPResSo", "ParaView", "VTK" ]
d0358596c5177c18c708c6f58f8cf1ea0a234ef3f69e8cd34d05ead012c83188
#! /usr/bin/env python # # Copyright (C) 2016 Jing Lu <ajingnk@gmail.com> # License: Apache # -*- coding: utf-8 -*- # pylint: disable=too-few-public-methods from distutils.core import setup, Extension from setuptools.command.install import install from distutils import log # needed for outputting information messag...
ajing/ChemTree
backend/setup.py
Python
apache-2.0
1,868
[ "RDKit" ]
49918ab001f1005a8e48853a16c22a86be036394a1772d73cf30dfcdfde8ba68
"""Effective medium theory potential.""" from math import sqrt, exp, log, pi import numpy as np import sys from ase.data import atomic_numbers, chemical_symbols from ase.units import Bohr parameters = { # E0 s0 V0 eta2 kappa lambda n0 # eV bohr eV bohr^-1 bohr^-1 bohr^-1...
freephys/python_ase
ase/calculators/emt.py
Python
gpl-3.0
11,158
[ "ASE" ]
7a8ff93e1398de876b573d745da913f24021693b2d683230edaf736b80df0ec9
# -*- coding: UTF-8 -*- from unittest import TestCase class TestVtk(TestCase): def test_ust_from_blk(self): from nose.plugins.skip import SkipTest try: import vtk except ImportError: raise SkipTest from ..testing import get_blk_from_sample_neu from ...
yungyuc/solvcon
solvcon/tests/test_visual.py
Python
bsd-3-clause
1,185
[ "VTK" ]
30b14e1953ef799a77f7aa765f93e63af36b8169457a6b36ffdc710fece840d9
from ase.calculators.jacapo.pw91_psp import defaultpseudopotentials as psp from ase.tasks.calcfactory import calculator_factory from ase.test.tasks.dcdft import DeltaCodesDFTTask as Task xc = 'PBE' fit = (5, 0.02) w = 0.06 pw = 700 dw = 1000 kd = 8.0 tag = 'dcdft_%s_jacapo' % xc.lower() calcfactory = calculator...
robwarm/gpaw-symm
gpaw/test/big/dcdft/pbe_jacapo.py
Python
gpl-3.0
1,673
[ "ASE" ]
c910cd5f0c2a4bc81d7c974d0395dff6bd8c0ac9eb7c2072b2c9e7788d1751e5
#!/usr/bin/env python # -*- coding: utf-8 -*- import vtk def main(): colors = vtk.vtkNamedColors() colors.SetColor("BkgColor", [26, 51, 102, 255]) surface = vtk.vtkParametricKuen() source = vtk.vtkParametricFunctionSource() renderer = vtk.vtkRenderer() mapper = vtk.vtkPolyDataMapper() ...
lorensen/VTKExamples
src/Python/GeometricObjects/ParametricKuenDemo.py
Python
apache-2.0
8,040
[ "VTK" ]
c952f29e79090dada2263dcd9fc2c83a8647dca859ee17f3738b664d65766911
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('visit', '0024_auto_20150521_0211'), ] operations = [ migrations.AddField( model_name='caregiver', na...
koebbe/homeworks
visit/migrations/0025_auto_20150614_1727.py
Python
mit
660
[ "VisIt" ]
342932e34f34c91bf6769aec1580343413bd78e79915b36503b2bd92cf8839ff
import os import logging import socket from dessn.framework.fitter import Fitter from dessn.framework.models.approx_model import ApproximateModel, ApproximateModelOl, ApproximateModelW from dessn.framework.simulations.simple import SimpleSimulation if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG...
dessn/sn-bhm
dessn/configurations/simple_w_shift.py
Python
mit
4,684
[ "Gaussian" ]
9d79d90f1c1dc9f255f1ca9343c4eed85e88a208297202b9725d9ebf1a05f37a
import os import shutil import stat from pymatgen.io.vasp.inputs import Kpoints # points k kx, ky, kz = 4, 4, 4 # job name : # * doit finir par .job # ou # * doit commencer par j job = "test.job" basename = "test" lancer = "#!/bin/bash\n\n" for U in [0, 2, 4, 6, 8, 10]: print("U = %f" % U) # make...
gVallverdu/myScripts
VASP/runU.py
Python
gpl-2.0
1,278
[ "VASP", "pymatgen" ]
b7127a9ab35d277aae5cd3f717f40e3f842fe75fcdc0d11e4f10505f9dff711f
import numpy as np from numpy.random import multivariate_normal as multi_norm from scipy.spatial import cKDTree as ckdt from collections import defaultdict from scipy.stats import norm import warnings class GMM: # gaussian mixture model def __init__(self, pis, params): self.params = params # [[mu1, sig1...
mathnathan/notebooks
dissertation/experiments/2019-07-31-05.43/Brain.py
Python
mit
6,598
[ "Gaussian", "NEURON" ]
76fcc2f7be370420e8e5e33d00cd4481cdea777cb7da25b26816440c40e1fe48
# Copyright 2000 by Jeffrey Chang. 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 provides code for a general Naive Bayes learner. Naive Bayes is a supervised classifi...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/NaiveBayes.py
Python
apache-2.0
7,693
[ "Biopython" ]
92847e1d27a823baf1e4ef29a151f32d41763940d3c32629df883a98b229b34e
# -*- coding: utf-8 -*- # Copyright(C) 2012-2014 Laurent Bachelier # # This file is part of weboob. # # weboob 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 ...
frankrousseau/weboob
weboob/browser/browsers.py
Python
agpl-3.0
25,017
[ "VisIt" ]
75503b9600f6e2bbb1737cfbfdf49c300680405b3d57214fab08be232609f482
# Copyright (C) 2012 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...
soumide1102/pycbc
pycbc/waveform/waveform.py
Python
gpl-3.0
43,575
[ "Gaussian" ]
9528e90e224974f9c51f31869e22c074d214835ca8ed56a414dfce7996eab3ab
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
ilpianista/ansible
lib/ansible/modules/packaging/os/dpkg_selections.py
Python
gpl-3.0
2,169
[ "Brian" ]
6d684bb79878b6fa8e160c16012c4490ff67f73dcd74999c601dec36d81a3c49
from datetime import datetime, date import types import tempfile import tarfile import ocgis from ocgis import RequestDataset import datetime as dt import os from flyingpigeon import analogs from pywps.Process import WPSProcess import logging class AnalogsProcess(WPSProcess): def __init__(self): # defini...
sradanov/flyingpigeon
flyingpigeon/processes/wps_analogs.py
Python
apache-2.0
8,822
[ "NetCDF" ]
75df6e0c24087ce01946059556b0f2a2e51cde865053fe8ee5a09a9d9a0dfbf4
#!/usr/bin/env python # # This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # A...
anish/buildbot
worker/setup.py
Python
gpl-2.0
4,807
[ "Brian" ]
98ab8e1c5833e3dbb4ce0373aa3b4d75ad4a2929d05e321c493d92a35cabc41d
import json import sys from collections import OrderedDict from pathlib import Path from pytput import print_red, tput_print from rtfm.model import Filter, Item, Properties from rtfm.tagger import EyeD3ApiTagger class Library: def __init__(self): self.items = {} def load(self, file: Path): wi...
essembeh/RegexTagForMusic
src/rtfm/core.py
Python
gpl-3.0
4,759
[ "VisIt" ]
0a43471abaf3708b725126fdb5ca80fca050f6b5d684c81d53635bf3fef257aa
from math import sqrt,log import numpy as np from matplotlib import pyplot import rft1d def here_cca_single_node(y, x): N = y.shape[0] X,Y = np.matrix(x.T).T, np.matrix(y) Z = np.matrix(np.ones(N)).T Rz = np.eye(N) - Z*np.linalg.inv(Z.T*Z)*Z.T XStar = Rz * X YStar = R...
0todd0000/rft1d
rft1d/examples/val_max_7_cca_1d.py
Python
gpl-3.0
2,425
[ "Gaussian" ]
7c50f20810e0c49f0a345f58200e5b15935047931866234f5840ee0d5449347f
# # Copyright (c) 2009, Novartis Institutes for BioMedical Research Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyri...
rdkit/rdkit-orig
Contrib/LEF/CreateFps.py
Python
bsd-3-clause
4,644
[ "RDKit" ]
0ff44d9bb298a7feed6088e2edc316d652c7c8ff09407b5f36cec6ae53e704ec
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
jH0ward/psi4
psi4/driver/molutil.py
Python
lgpl-3.0
10,050
[ "Psi4" ]
83eb0e3d86e2e59dc2ec3012b18fc3ae9d7bc99bc00c5e8214945aa76ad330da
#pylint: disable=C0111 #pylint: disable=W0621 from lettuce import world, step from common import create_studio_user from django.contrib.auth.models import Group from auth.authz import get_course_groupname_for_role, get_user_by_email from nose.tools import assert_true # pylint: disable=E0611 PASSWORD = 'test' EMAIL_E...
praveen-pal/edx-platform
cms/djangoapps/contentstore/features/course-team.py
Python
agpl-3.0
5,961
[ "VisIt" ]
0ccb6277beb7040aecf8064bede0a440cebfc6eb722eddbd7338e6fda348d48b
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-compile-externals # Author : Adria Casajus ######################################################################## """ Compile DIRAC externals (does not require DIRAC code) """ __RCSID__ = "$Id$"...
Sbalbp/DIRAC
Core/scripts/dirac-compile-externals.py
Python
gpl-3.0
9,972
[ "DIRAC" ]
106d120f3c2153f8e61e8845ea290568ae6e5ee0c2afc694caf86a213a774a18
#!/usr/bin/env python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 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 #...
andysim/psi4
psi4/share/psi4/fsapt/fsapt.py
Python
gpl-2.0
24,551
[ "Psi4" ]
de424eee84d4540a1b3b494b5f580a72720a647515eb6e03c8c57680902fecc8
from PIL import Image from io import BytesIO from django.test import TestCase, RequestFactory, Client from django.contrib.auth.models import AnonymousUser, User from .views import uploadImageToSite, renderDataBaseImage from .models import ImageModel from django.core.files.uploadedfile import InMemoryUploadedFile fro...
BDague/generic-image-server
genericImageServer/imageViewer/tests.py
Python
mit
3,109
[ "Brian" ]
ff274ad9fc4fc57ebf19bea26f06f1c8d5c36077bc4d100f537cc55e6976d730
#!/usr/bin/env python import sys, os try: from setuptools import setup except ImportError: from distutils.core import setup setup_args = {} install_requires = ['param>=1.3.2', 'numpy>=1.0'] extras_require={} # Notebook dependencies of IPython 3 extras_require['notebook-dependencies'] = ['ipython', 'pyzmq', ...
vascotenner/holoviews
setup.py
Python
bsd-3-clause
4,882
[ "VisIt" ]
34cdcb7a164f0cbd127784b5977af4dcd9da25bf27c84a7d8444ed6ee23c1840
# 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
test/test_plan_medicare.py
Python
apache-2.0
10,005
[ "VisIt" ]
6a14b2a58175f478ef421c8b4e825335cbb9c6daf758f755807d8a4694f73927
""" A simple testing framework for lldb using python's unit testing framework. Tests for lldb are written as python scripts which take advantage of the script bridging provided by LLDB.framework to interact with lldb core. A specific naming pattern is followed by the .py script to be recognized as a module which impl...
apple/swift-lldb
packages/Python/lldbsuite/test/dotest.py
Python
apache-2.0
42,528
[ "VisIt" ]
78f82d515d7d582d61a61532829841445a9ccda32e6f1c98bc7840ede13ce903
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class vtkImageDataStreamer(SimpleVTKClassModuleBase): def __init__(self, module_manager): SimpleVTKClassModuleBase.__init__( self, module_manager, ...
nagyistoce/devide
modules/vtk_basic/vtkImageDataStreamer.py
Python
bsd-3-clause
497
[ "VTK" ]
beb9085394629c1aa387debc04edcaec135f5da4c50efb0e3227ac8f0ecc45b5
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
e-gob/plataforma-kioscos-autoatencion
scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_applicationpersistenceprofile.py
Python
bsd-3-clause
6,497
[ "VisIt" ]
6f725bb2f3be82c5c7ee535b3b271c9819c8f7b0666dc0ce67c66693895a114f
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
modules/navier_stokes/test/tests/ins/jeffery_hamel/jeffery_hamel.py
Python
lgpl-2.1
10,689
[ "MOOSE" ]
e8af8fbca4a0eab6fb38932f36c618c7aa6a0eb53bb724d2b430f3023eb2c990
from __future__ import print_function import os import sys from pyspark import SparkContext, SQLContext import pyspark.sql.functions as sql import pyspark.sql.types as types import unicodecsv from dateutil.parser import parse sc = SparkContext(appName="BHLParquet") sqlContext = SQLContext(sc) def as_int(s): retu...
bio-guoda/guoda-datasets
BHL/build_parquet.py
Python
mit
4,501
[ "Elk" ]
7b5e2625192071d24e8ec28bd42f51b0b4784f93d23073cf81c97cee14daa1e1
""" This module contains tests for tofu.geom in its structured version """ # External modules import os import itertools as itt import numpy as np import matplotlib.pyplot as plt import warnings as warn # Importing package tofu.gem import tofu as tf from tofu import __version__ import tofu.defaults as tfd import tofu...
ToFuProject/tofu
tofu/tests/tests01_geom/test_04_core_optics.py
Python
mit
14,005
[ "CRYSTAL" ]
f4b23b36a59d033cb0c88661c76300d9713ec2f9930e21d8a9a66e3a37707d44
''' From the original motif scanning, selects those events withing a particular window of a gene and outputs the tgm, geneids and tf ids for final analysis ''' __author__='sara jc gosline' __email__='sgosline@mit.edu' import re,os,sys from optparse import OptionParser from collections import defaultdict import numpy ...
agitter/OmicsIntegrator
scripts/get_window_binding_matrix.py
Python
bsd-2-clause
10,721
[ "Galaxy" ]
d1f7917ba1c7ec4bef143d010f8482bec4c6d721cfb4bc99fdac2e1f1401e89d
from __future__ import print_function, division __all__ = ['load', 'clone', 'Compound', 'Particle'] import collections from collections import OrderedDict, defaultdict from copy import deepcopy import itertools import os import sys import tempfile from warnings import warn import mdtraj as md import numpy as np from...
ctk3b/mbuild
mbuild/compound.py
Python
mit
74,560
[ "Amber", "LAMMPS", "MDTraj", "Open Babel", "OpenMM" ]
f84115acf59aa4ddea31bd2522201ea0ad5e5200f41ca9dd06979177fcc3171f
""" :class:`DominatorTree` computes the dominance relation over control flow graphs. See http://www.cs.rice.edu/~keith/EMBED/dom.pdf. """ class GenericDominatorTree: def __init__(self): self._assign_names() self._compute() def _traverse_in_postorder(self): raise NotImplementedError ...
JQIamo/artiq
artiq/compiler/analyses/domination.py
Python
lgpl-3.0
4,947
[ "VisIt" ]
feb3da3f7429da7febe795f1d88e75a66c77ffd2aeea6c3b49fa89c7203573e8
# -*- coding: utf-8 -*- """ Created on Thu Jan 5 19:05:00 2012 @author: Sat Kumar Tomer @website: www.ambhas.com @email: satkumartomer@gmail.com """ # import required modules import numpy as np import xlrd import os from gdalconst import * from scipy.interpolate import Rbf from Scientific.IO import NetCDF as nc /h...
andreas-koukorinis/ambhas
examples/test_csglm.py
Python
lgpl-2.1
966
[ "NetCDF" ]
d6b46c20ae8f6ce6f7f7bfcffe00594d0235c9f8ea5055943fafc957a39493be
# -*- coding: utf-8 -*- """ Created on Wed Aug 14 09:55:12 2013 @author: a001693 """ def klassning_NP_vinter(TYP,year_start,year_end,data_dict,infil_stationer): '''Statusklassa DIN, DIP, tot-N och tot-P i (TYP,startår,slutår,dictionary) allt som strängar''' # ¸.·´¯`·.´¯`·.¸¸.·´¯`·.¸><(((º> ¸.·´¯`·.´...
ekostat/ekostat_calculator
test_data/klassning_NP_vinter_func_enligt_BG.py
Python
mit
74,630
[ "VisIt" ]
a409f81a7dbff6ff7f56a819b33f940cdecc316534162608054e6acf494a30e4
#!/usr/bin/env python __author__ = "waroquiers" import os import unittest import numpy as np from pymatgen.analysis.chemenv.coordination_environments.coordination_geometries import ( AllCoordinationGeometries, ) from pymatgen.analysis.chemenv.coordination_environments.coordination_geometry_finder import ( ...
gmatteo/pymatgen
pymatgen/analysis/chemenv/coordination_environments/tests/test_coordination_geometry_finder.py
Python
mit
10,714
[ "pymatgen" ]
d7dbfd7cfa9cfb0d0b498abaaf7733836eccb74454b41eb88a5cac73cd4c2a63
""" Plots the 2D grid using ParaView. cli: pvbatch plotMesh2dParaView.py <arguments> """ import os import sys import argparse import paraview from paraview.simple import * sys.path.append(os.environ['SNAKE']) from snake import miscellaneous def parse_command_line(): """Parses the command-line.""" print('[info]...
mesnardo/snake
snake/openfoam/plotMesh2dParaView.py
Python
mit
3,635
[ "ParaView" ]
1eb76f5bbbdaa2592e80b159f3b879a8f416a2e6172bc787b4d8ed1edd7faa40
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems 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 #...
Jokeren/neon
examples/alexnet.py
Python
apache-2.0
4,358
[ "Gaussian" ]
27662a51e5a74a79f7aeebe5c1cc2241dd6e82f2bee148d7f2589552792e2cbf
import argparse import os from coalib.misc import Constants from coalib.parsing.filters import available_filters # argcomplete is a delayed optional import # This variable may be None, the module, or False argcomplete = None class CustomFormatter(argparse.RawDescriptionHelpFormatter): """ A Custom Formatter...
coala/coala
coalib/parsing/DefaultArgParser.py
Python
agpl-3.0
11,863
[ "VisIt" ]
819eed81688c851f76cdb643c0beb87463516e3d1254c4d463d0baf5f654d5f2
# Custom GPAW setup for Intel MICs (KNC) import os # use Intel compiler and MPI compiler = 'mpiicc' mpicompiler = 'mpiicc' mpilinker = 'mpiicc' # use MKL mklroot = os.environ['MKLROOT'] library_dirs += [mklroot + '/lib/intel64/'] libraries = ['mkl_intel_lp64', 'mkl_intel_thread', 'mkl_core', 'mkl_lapack9...
mlouhivu/gpaw-mic-install-pack
install/setup/customize-knc.py
Python
mit
1,270
[ "GPAW" ]
786e3872bbcb903b55e8bc15827e3900a6afe19d2b0780e7dabaae71483dcbc3
# gus.mb, an open source flow solver. # Copyright (C) 2016 Hiromasa Kato <hiromasa at gmail.com> # # This file is part of gus.mb. # # gus.mb 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, ei...
butakun/gus.mb
IO/Pre.py
Python
gpl-3.0
6,058
[ "VTK" ]
9382bb2700b42480f1f342a0d9664441ff6bc74a25fb37f74ab35ba72ab375de
# -*- coding: utf-8 -*- # source: https://raw.githubusercontent.com/mahmoud/boltons/18.0.0/boltons/timeutils.py # version: 18.0.0 # date: 2018-07-11 """Python's :mod:`datetime` module provides some of the most complex and powerful primitives in the Python standard library. Time is nontrivial, but thankfully its support...
huguesv/PTVS
Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/conda/_vendor/boltons/timeutils.py
Python
apache-2.0
19,079
[ "VisIt" ]
ecdfb94d780be0791f804961b5c871c03e9cb7f9158ef0b4c3cdad486fef3dd2
#! /usr/bin/env python import re import math import collections import numpy as np import time import operator from scipy.io import mmread, mmwrite from random import randint from sklearn import cross_validation from sklearn import linear_model from sklearn.grid_search import GridSearchCV from sklearn import preproces...
freedomljc/Loan_Default_Prediction
predict.py
Python
bsd-3-clause
14,579
[ "Gaussian" ]
c38d9a1f813e860c743c2d5698024c1cad507ee5054d91873ef34b3a81608b98
import sys import maya.OpenMaya as OpenMaya import maya.OpenMayaMPx as OpenMayaMPx import maya.cmds as cmds kPluginNodeName = "MitsubaPlasticShader" kPluginNodeClassify = "/shader/surface" kPluginNodeId = OpenMaya.MTypeId(0x87006) class plastic(OpenMayaMPx.MPxNode): def __init__(self): OpenMayaMPx.MPxNode...
hpd/MitsubaForMaya
plug-ins/mitsuba/materials/plastic.py
Python
mit
6,985
[ "Amber" ]
f3565316e9052d33561da9225feb997bbc9837a05c8dab3346b07ea40addc783
import numpy as np from osgeo import gdal import mayavi.mlab as mlab import utils import shapeways_io gdal.UseExceptions() def main(): z, x, y = read('data/alaska/clipped_elev.tif') rgb, _, _ = read('data/alaska/clipped_map.tif') rgb = np.swapaxes(rgb.T, 0, 1) fig = mlab.figure() surf = mlab.m...
joferkington/scipy2015-3d_printing
alaska_no_sides.py
Python
mit
1,488
[ "Mayavi" ]
ae8cbf689121ae12ebd5448c764b6201072cede9b429405c58cd33de123c016b
#!/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/satfinder.py
Python
gpl-2.0
8,282
[ "VisIt" ]
6e2658f6d3dbf01314684c9e7a72fa248a169f15d14ba93e97f4c761088bddcd
import sys import os import numpy as np import h5py import multiprocessing import cPickle import matplotlib.pyplot as plt import itertools from scipy.stats import sigmaclip from sklearn.gaussian_process import GaussianProcess notes = """ In this case, we do a 3-d gaussian interpolation. The elevations are read from ...
acbecker/solar
gp5/gp5.py
Python
mit
9,299
[ "Gaussian" ]
1064b63be215662c53f8182b0a39075e954c1b43824e9ba9ec832cb66bfffaba
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License, Ver...
sparkslabs/kamaelia
Sketches/MH/pixformatConversion/Dirac3D.py
Python
apache-2.0
2,218
[ "DIRAC" ]
9efcc7791c46b554ca70d87d90895682ef6a11a989f0b77a1b81ed7bbc685c10
# coding: utf-8 from __future__ import unicode_literals import time import datetime import os from django.contrib.auth.models import Permission from django.conf import settings from django.core import mail from django.core.cache import cache from django.core.urlresolvers import reverse from django.core.exceptions imp...
zekone/dj_pybb
pybb/tests.py
Python
bsd-2-clause
83,908
[ "VisIt" ]
e06776b431941347fce80186d98588d9552e18b22cd3c32c60cdea1cd7a629aa
#!/usr/bin/python # coding=utf-8 """ Chupycabra: A jabber python library Copyright (C) 2009, 2016 A. R. Diederich Much is based on jabberpy, (C) 2001 Matthew Allum See the file LICENSE for copying permission. __intro__ Chupycabra is a python module for the jabber instant messaging protocol. The libr...
andrewdied/chupycabra
chupycabra/chupycabra.py
Python
lgpl-3.0
61,765
[ "exciting" ]
dc4d94843e3759bdf61f06c378b29343e4cc4873f7e719f0f237c839bef8fc57
"""Contains code for an Open Pixel Controller hardware for RGB LEDs.""" # openpixel.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 # The python code to bu...
jabdoa2/mpf
mpf/platform/openpixel.py
Python
mit
11,386
[ "Brian" ]
997575d7b7f1c1bdd2ba7b6b22e5a9177855239c08d820ff5ca9b666b0841f38