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
from Components.Converter.Converter import Converter from Components.Element import cached from enigma import eServiceCenter, eServiceReference, iServiceInformation, eDVBFrontendParametersSatellite, eDVBFrontendParametersCable from Components.Converter.Poll import Poll class ExtremeInfo(Poll, Converter): TUNERINFO = ...
openatv/enigma2
lib/python/Components/Converter/ExtremeInfo.py
Python
gpl-2.0
37,003
[ "Galaxy" ]
7f2ddb666c56650aa0bae169c414f9bbc8eece683f9e56dbfcd6af988ad0c24a
# $Id$ # # Created by Greg Landrum, July 2008 # from rdkit import RDConfig import os import unittest from rdkit import DataStructs, Chem from rdkit.Avalon import pyAvalonTools struchk_conf_path = os.path.join(RDConfig.RDDataDir, 'struchk', '') struchk_log_path = '' STRUCHK_INIT = '''-ta %(struchk_conf_path)scheckfgs.t...
rdkit/rdkit-orig
External/AvalonTools/Wrap/testAvalonTools.py
Python
bsd-3-clause
4,992
[ "RDKit" ]
3ca30188956e0ee4698b8d2d1cf13c3a4853e9b75188284d7bc7611764f9d3a3
# -*- encoding:utf-8 -*- import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from docscrape import NumpyDocString, FunctionDoc, ClassDoc from docscrape_sphinx import SphinxDocString, SphinxClassDoc from nose.tools import * doc_txt = '''\ numpy.multivariate_normal(mean, cov, shape=No...
daniorerio/trackpy
doc/sphinxext/tests/test_docscrape.py
Python
bsd-3-clause
14,257
[ "Gaussian" ]
d6091db3127b5cc972404978c536b0607d51e3f43504acdc94ee9328a5838148
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import unittest import os import json import random import numpy as np import csv import scipy.constants as const from pymatgen.analysis.diffusion_analyzer im...
xhqu1981/pymatgen
pymatgen/analysis/tests/test_diffusion_analyzer.py
Python
mit
13,392
[ "pymatgen" ]
a0b038925c170b799aad830f24a13dfc6b47261d04d740da4fc1edd970fbf1cb
""" Test sample of Inverted Pendulum """ from PyMDP import * import PyMDP_Utils as utils import ensemble_ioc as eioc #pendulum test class PendulumDynSys(DynamicalSystem): #parameters m_ = 1 l_ = .5 b_ = .1 lc_ = .5 g_ = 9.81 dt_ = 0.01 sigma_ = 0.1 def __init__(self, dt=0.01): ...
navigator8972/ensemble_ioc
PyMDP_Pendulum.py
Python
bsd-2-clause
24,231
[ "Gaussian" ]
5cdb0b625ef7ffdb6a1a4534c1059ad4caabdc7a93000306a91a3eb022c07dfa
""" Author: Ning Guo <ceguo@connect.ust.hk> run `mv footing.yade.gz 0.yade.gz` to generate initial RVE packing How to run this script: sudo apt install python-escript cd examples/FEMxDEM export PYTHONPATH="/usr/lib/python-escript:../../py/FEMxDEM" export LD_LIBRARY_PATH=/usr/lib/python-escript/...
yade/trunk
examples/FEMxDEM/footing.py
Python
gpl-2.0
4,235
[ "VTK" ]
fe1ce7b663fea32384b6adfeb7152dfb82fe512279b614f07b5008297ec87cb6
# # MMP (Multiscale Modeling Platform) - EU Project # funded by FP7 under NMP-2013-1.4-1 call with Grant agreement no: 604279 # # CIGS example: Quality factor calculation tool # # Copyright (C) 2014-2016 # # Harmen Rooms # (Solliance, TNO, The Netherlands) # # Ralph Altenfeld # (Access e.V., Germany) # # Th...
mupif/mupif
obsolete/examples/Example17-micress-Xstream-local/TNO_Qfactor_v1_2.py
Python
lgpl-3.0
4,540
[ "CRYSTAL" ]
9fed7f07bd37d832c9c424037521dce0f1fff7206fd1b70f09f4224d705b4792
# makeCoords.py from astropy import units as u from astropy import coordinates from astroquery.ned import Ned from astroquery.irsa_dust import IrsaDust from astropy.coordinates import Angle,ICRS,SkyCoord from astropy.coordinates.name_resolve import NameResolveError import math import os.path import sys import itertool...
TateWalker/Galactic-Data
makeCoords.py
Python
apache-2.0
754
[ "Galaxy" ]
5c1e3e240e2390bf6b3403f1108522da785eb316e7bd48eb86e8d82d1a0f92f0
""" This integration tests will perform basic operations on a storage element, depending on which protocols are available. It creates a local hierarchy, and then tries to upload, download, remove, get metadata etc Potential problems: * it might seem a good idea to simply add tests for the old srm in it. It is not :-) ...
DIRACGrid/DIRAC
tests/Integration/Resources/Storage/Test_Resources_GFAL2StorageBase.py
Python
gpl-3.0
14,250
[ "DIRAC" ]
149d2a1fe5f93e107256eb377696900b7d9e82e6625cabdf3a3620a14b360770
#!/usr/local/sci/bin/python # PYTHON2.7 # # Author: Kate Willett # Created: 24 January 2018 (based on IDL create_monthseriesJAN2015.pro 1 Feb 2013) # Last update: 24 January 2018 # Location: /data/local/hadkw/HADCRUH2/UPDATE2017/PROGS/HADISDH_BUILD/ # GitHub: https://github.com/Kate-Willett/HadISDH_Build # -----...
Kate-Willett/HadISDH_Build
CreateMonthSeriesfromHadISD.py
Python
cc0-1.0
80,912
[ "NetCDF" ]
33fa9fb2738b0cddb06861a75eabcec8f7aca8dec881a248e44dca7a17f0979a
# !usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-08-06 19:53:26 # @Last modified by: Brian Cherinka # @Last Modified time: 2017-08-30 10:35:59 from __future__ import print_function, division, absolute_import import pytest import skim...
havok2063/SciScript-Python
python/sciserver/tests/test_skyserver.py
Python
apache-2.0
2,686
[ "Brian" ]
9e0108338e5782b2ad46194002a143b92a9255d4e77894c3adfe5dd0dc161100
"""The WaveBlocks Project Function for plotting functions of the type f:I^2 -> C with abs(f) as y-value and phase(f) as color code. This function makes a 3D surface plot. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011 R. Bourquin @license: Modified BSD License """ from numpy import linspace, pi, squeeze, ...
WaveBlocks/WaveBlocks
src/WaveBlocks/Plot/surfcf.py
Python
bsd-3-clause
1,892
[ "Mayavi", "VTK" ]
83ccc142c416e7cd52ea509277b4117224812564cd2e08f72af17ca72086e121
# 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...
frreiss/tensorflow-fred
tensorflow/python/tpu/device_assignment.py
Python
apache-2.0
21,547
[ "VisIt" ]
41f9d09e80f006a49c7854840805299f536cbd611e9642c6b6154378106dfa5b
import os import numpy as np def manual(subject, xfmname, reference=None, **kwargs): """Open GUI for manually aligning a functional volume to the cortical surface for `subject`. This creates a new transform called `xfm`. The name of a nibabel-readable file (e.g. nii) should be supplied as `reference`. This...
smerdis/pycortex
cortex/align.py
Python
bsd-2-clause
8,244
[ "Mayavi" ]
bc47723d7dfd2820930a6b23cce80145a7ba8f0e6709f478167eac86d4251ae2
""" DESCRIPTORS.TXTGREY: textural descriptors from grey-scale images. @author: vlad """ from __future__ import (absolute_import, division, print_function, unicode_literals) __version__ = 0.05 __author__ = 'Vlad Popovici' __all__ = ['GaborDescriptor', 'LBPDescriptor', 'GLCMDescriptor', 'HOGDescriptor', 'His...
higex/qpath
descriptors/txtgrey.py
Python
mit
28,559
[ "Gaussian" ]
e37b9a60dbfafd78fb038e0c74e95fc60c40a4c5c981fb73464ca21cc06065a5
# # vcr.py # - Configures the environment for running the Viral Assembly (viral_assembly_pipeline.py) and VIGOR (VIGOR3.pl) pipelines (creating directory structure and installs software). # import os.path, re, mmap from fabric.api import cd, env, hide, local, run, settings, sudo, task from fabric.network import disc...
averagehat/cloudbiolinux
cloudbio/custom/vcr.py
Python
mit
16,221
[ "BLAST", "BWA", "Galaxy" ]
accba805552abf39efcf3f2685aa12d5c28aa5dcbf18671fef83fe24ca016370
import numpy as np import matplotlib.pyplot as plot import math import multiprocessing import matplotlib.cm as cm class kernelPCA: """ KernelPCA class to define basic functionality. I will present a simple example of Kernel PCA using Gaussians here. The example with try to reproduce the results shown ...
jonanv/Data-Mining
kernelPCA_Gaussian.py
Python
gpl-3.0
9,370
[ "Gaussian" ]
520d6bc07c8664ba16145fb30d4d61daf09f5a5a0d8e4d1e4037c1971f44d958
# coding: utf-8 """ MINDBODY Public API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: v6 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 impor...
mindbody/API-Examples
SDKs/Python/swagger_client/models/update_client_visit_response.py
Python
bsd-2-clause
3,304
[ "VisIt" ]
5f95fce6edd59d25e13dc2917d61fed8a7f6df7e5f2490e6faf6c57aa345902b
""" inpaint.py: Methods for MNIST inpainting """ from __future__ import division from __future__ import print_function import vae import tensorflow as tf import numpy as np import pickle import scipy.special import os import sys vp_path = os.path.abspath('../../') if not vp_path in sys.path: sys.path.append(vp_...
GAMPTeam/vampyre
demos/mlp/inpaint.py
Python
mit
10,813
[ "Gaussian" ]
1cd84a5e17c5e3d19ebc5b9fcf4232ee9bf6205fd7566a963a792683c9d894c9
#! /usr/bin/env python # Copyright (c) 2005 Robert L. Campbell from pymol import cmd, stored def fitting(obj1,select1,obj2,select2): """ DESCRIPTION "fitting" allows the superpositioning of object1 onto object2 using the atoms in selection1 and selection2 (side chains are ignored). The residue names, residu...
spirit01/SAXS
fitting.py
Python
mit
4,128
[ "PyMOL" ]
e0b406f41d7fca95af6961b0e51c96173cd3c9de009d990b70801f2395760022
from gpaw.utilities import erf, cerf # Mathematica says: # z erf(z) # 1 0.842701 # 3 0.999978 # I 0. + 1.65043 I # 1 + I 1.31615 + 0.190453 I # 0.3 + 3*I 1467.69 - 166.561 I # 3 - 0.3*I 1.00001 - 0.0000228553 I values = [ [ 1, 0.84270079295+0j], [ 3, 0.9999...
qsnake/gpaw
gpaw/test/erf.py
Python
gpl-3.0
953
[ "GPAW" ]
e4d086f719014db4173303078ad97567727c681ab4bb8407c9487a45df70fd24
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'AuthProfile' db.create_table('core_authprofile', ( ('id', self.gf('django.db.m...
praekelt/txtalert
txtalert/core/migrations/0008_auto__add_authprofile.py
Python
gpl-3.0
13,791
[ "VisIt" ]
687bdf75b5fa0fc02c335b7e0ee6cdf356c7443a2bad7bf419acc427227f5b39
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ import json from datetime import datetime, timedelta from textwrap import dedent import pytz from common.test.acceptance.fixtures.course import CourseFixture, CourseUpdateDesc, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import Au...
philanthropy-u/edx-platform
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
48,493
[ "VisIt" ]
79034b2104ca3e733dca6fda589ab6e017aa686e9b252368d8b4717701095481
#!/usr/bin/env python """ a class to handle results from BLAST searches the parsed file that BlastMapper handles is a csv file with the following rows query,hit-identifier,hit-identifier-long,e-score,bit-score query is specific to the assembly HitId is a RefSeq there is an example of this file in the uni...
ajrichards/htsint
htsint/blast/BlastMapper.py
Python
bsd-3-clause
16,495
[ "BLAST" ]
61aff0516f733dadc2c3c0193bcd9e4966f54b2190e8e750e705d46784576dd5
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import itertools import pytest import numpy as np from numpy.testing import assert_almost_equal, assert_allclose from ..convolve import convolve...
AustereCuriosity/astropy
astropy/convolution/tests/test_kernel_class.py
Python
bsd-3-clause
18,917
[ "Gaussian" ]
069625d4cad19b1f39dd8c671f52bb6fe92a8187ee988d854a9321a2aa78fa6c
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
CSCI1200Course/csci1200OnlineCourse
modules/oauth2/oauth2.py
Python
apache-2.0
7,309
[ "VisIt" ]
ee6cfb35f38830e6f093d117cdc72130075e8eb64b3f4714dd1fccd8ea0ec0f6
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/pbc/df/incore.py
Python
apache-2.0
8,456
[ "PySCF" ]
34d7c39ce718be6641c08400b8b94757a1b221254b9c54579cb47fb9d8d827cb
from pygraphviz import AGraph import base64 import tempfile from simpleai.search import SearchProblem class BadInputGraph(Exception): pass class DotGraphSearchProblem(SearchProblem): """ Playground for stuff in the library... eats a .dot graph and allows you to try it with the search methods. ""...
matuu/simpleai
samples/search/dotsearch.py
Python
mit
4,741
[ "VisIt" ]
386a31c4b4bc378ac6a632571c73a6cdab1952bd4cb31e6a395f25cfdcfa3f7d
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Most features of this module has been moved to monty. Please refer to monty.json and monty.serialization documentation. """ import functools import json import pickle from pymatgen.core.periodic_table imp...
gmatteo/pymatgen
pymatgen/util/serialization.py
Python
mit
3,711
[ "pymatgen" ]
f0c78f6829d85ba07c9422693c7f446c98615aa11dcf8ce55cc53cc8900994ad
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides input and output mechanisms for the xr file format, which is a modified CSSR file format and, for example, used in GULP. In particular, the module makes it easy to remove shell positions from relaxati...
vorwerkc/pymatgen
pymatgen/io/xr.py
Python
mit
6,166
[ "GULP", "pymatgen" ]
1e45cd2d51fe3620000026e3f1146070d27ec598a43c5390e95a2adc0de90cd6
# -*- coding: utf-8 -*- """ Use local copy of wxVTKRenderWindowInteractor until the baseClass.__init__() order is adapted to glcanvas-2.9 """ import sys import os import traceback vtk = None try: import vtk except ImportError as e: traceback.print_exc(file=sys.stdout) sys.stderr.write("no VTK installat...
KristoferHellman/gimli
python/pygimli/gui/vtk/qtVTKPanel.py
Python
gpl-3.0
1,102
[ "VTK" ]
a4e019d41b904cfedce9f227b18ef07bd52770dce3dc15695038066cb884c414
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
anksp21/Community-Zenpacks
ZenPacks.Imas.BlueCoat/setup.py
Python
gpl-2.0
3,259
[ "VisIt" ]
86e27f1cba01bbef2af8b59c43b5d6a184fbea3d5e2ce44616e33d8cb0d19302
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView urlpatterns = [ url(r'^$', TemplateView.as_view(templ...
vandorjw/io_vandorp_blog
config/urls.py
Python
bsd-3-clause
1,237
[ "VisIt" ]
af255175c3833900098a3ee381e0f1bdc5038dc42abce766202ecc174a0462c9
import unittest from nose.tools import assert_true import numpy as np from numpy.testing import (assert_array_equal, assert_array_almost_equal, assert_raises) from scipy import stats from sklearn import mixture from sklearn.datasets.samples_generator import make_spd_matrix rng = np.random.R...
loli/semisupervisedforests
sklearn/mixture/tests/test_gmm.py
Python
bsd-3-clause
13,417
[ "Gaussian" ]
01a44e75b9242c1899f363fc2c440ebc8be2fcaa23945d41a1f5263f2133e85a
#!/usr/bin/env python import os import sys from Bio import Phylo from Bio.Phylo.PAML import codeml from Bio.Phylo.PAML import _parse_codeml from Bio.Phylo.Consensus import _BitString import io import re def _bitstrs(tree,term_names): #function from http://biopython.org/wiki/Phylo # store and return all _BitSt...
tsackton/ratite-genomics
06_protein_coding_analysis/paml_parser/branchsite_parser.py
Python
gpl-3.0
10,474
[ "Biopython" ]
1ecbbfd40037a6c30c60941cdd88365a22f859e218ec753e1528c39bd15a875c
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Methods for preparing and printing barrel labels with the TSC TTP-243E Plus printer. description :REQUIRES: :TODO: """ import Tix import tkMessageBox import datetime #import xlwt, xlrd from utils import print_labels, settings def main(_, shipmentItemID): #X...
Ripley6811/TAIMAU
src/frames/po/label_prep_frame.py
Python
gpl-2.0
17,523
[ "ASE" ]
6889cb4938378330632926084aa55d47c733afef621d5f56b3cf6f43b93e1432
# # @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/share/psi4/databases/BAKERJCC96.py
Python
lgpl-3.0
16,142
[ "Psi4" ]
e7d9280f3067b723cb967f71b69b5a3087b6cb83a5f4a007ab1f2b4063776a73
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are ...
wizmer/NeuroM
neurom/apps/tests/test_morph_stats.py
Python
bsd-3-clause
12,237
[ "NEURON" ]
3c6a3a7c2e35ea122d68ebc2140a9fb652dcebc6a1ca6c564b6245011e2a9691
# Copyright 2016 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
brianmoose/civet
client/tests/test_INLClient.py
Python
apache-2.0
4,393
[ "MOOSE" ]
da89ee9848e3402869174f997df51457fcf1c550769640a7ceac0766884b9a07
#! /usr/bin/env python ######################################################################## # File : dirac-admin-ce-info # Author : Vladimir Romanovsky ######################################################################## """ Retrieve Site Associated to a given CE Usage: dirac-admin-ce-info [options] ... ...
yujikato/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_ce_info.py
Python
gpl-3.0
1,384
[ "DIRAC" ]
43c089b6e6b0e4c3b588d58924a331ea4b1778b3e5ed2d350f8d3ca808825355
from __future__ import print_function """Functions for in-place manipulation of bundletrajectories. This module defines a number of functions that can be used to extract and delete data from BundleTrajectories directly on disk. The functions are intended for large-scale MD output, so they avoid copying the potenti...
suttond/MODOI
ase/io/bundlemanipulate.py
Python
lgpl-3.0
5,575
[ "ASE" ]
d05243c38ac9bc60e1977ac052281acceda177214321655754973a2200aac7b3
#!/usr/bin/env python2 #This test checks functionality related to mapping via center of point (no #weighting). #Current only using null masses, as native 'center' method is broken. import sys sys.path.append('../../../src/') import cgmap as cg import mdtraj as md from mdtraj.core.element import Element import md_ch...
uchicago-voth/cgmap
test/molecular_map_test/same_molecules_cop/test_same_molecules_cop.py
Python
apache-2.0
3,869
[ "MDTraj" ]
9be8ce207768993784bacdd6a46a3c3bbfdd0701e3d19330f6ba92fe71ee5478
# Lint as: python2, python3 # 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 # ...
jhseu/tensorflow
tensorflow/tools/compatibility/tf_upgrade_v2_test.py
Python
apache-2.0
100,321
[ "Gaussian" ]
38d3cce8fafdee5b7fe2db5d9c527563565c393115abbfff645403ffd2091aba
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library ...
FedoraScientific/salome-hexablock
src/TEST_PY/test_v6/makeSphereTop.py
Python
lgpl-2.1
968
[ "VTK" ]
0918f6b801c79f1e731f9438d35b93d8335bc397ff27678dc72d4faba26adb9a
""" Instructor Dashboard Views """ import datetime import logging import uuid import pytz from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.urlresolvers import reverse from django.http import Http404, HttpResponseServerError from django.utils.html import escap...
lduarte1991/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
35,972
[ "VisIt" ]
d84cc01a20ab5e5c4ce8115d2b112ba1aa60c4caf9c330f1f0e0a25e9dd2542b
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
doc/sphinxman/source/psi4doc/ext/relbar_toc.py
Python
gpl-2.0
2,546
[ "Psi4" ]
b9cdc61e22c19dfa65f93f59d89178b57bfdced672568629a4a2191a8bafd9c0
#!/usr/bin/env python from random import uniform from math import exp class Neuron: def __init__(self, n_inputs): self.n_inputs = n_inputs self.weights = [uniform(-1, 1) for i in range(n_inputs)] self.bias = uniform(-1, 1) def get_net(self, inputs): net = sum([self.weights[i] ...
andrecunha/simple-ml
mlp.py
Python
unlicense
3,660
[ "NEURON" ]
fedbd4ff21de820c7c27480b40c5c7b42ab6dc936dc6b6ee4e0c68b9ebcbc793
""" rgenetics datatypes Use at your peril Ross Lazarus for the rgenetics and galaxy projects genome graphs datatypes derived from Interval datatypes genome graphs datasets have a header row with appropriate columnames The first column is always the marker - eg columname = rs, first row= rs12345 if the rows are snps su...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/datatypes/genetics.py
Python
gpl-3.0
31,000
[ "Galaxy" ]
099472b6ca827f485d742b61fbeb9b329c9a38907a513b60c6b707c14cca4e12
# -*- coding: utf-8 -*- ###################################################################### ## Filename: pySNIFS_fit.py ## Version: $Revision$ ## Description: ## Author: Emmanuel Pecontal ## Author: $Author$ ## $Id$ ###################################################################### from...
snfactory/extract-star
extract_star/pySNIFS_fit.py
Python
mit
45,573
[ "Gaussian" ]
bd77264961c480b6bb538759696807d542914713fe97086ab2192e719b34dbcc
# scripts to compare fit files from fitacf and fitlomb # generate rawacf file with known targets # process file with fitacf and fitlomb # compare output.. import os import sys import pdb import datetime import h5py import pydarn.sdio as sdio from multiprocessing import Manager from rawacf_generator import rawacf_rec...
loxodes/SuperDARN_pydmap_write
fitacf_fitlomb_compare.py
Python
mit
6,053
[ "Gaussian" ]
f56f37df301194ea2799ffac9c286a95b9fd462c818948970a793e5d4a4f1b93
# Copyright 2017 Norman Heckscher. 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 la...
normanheckscher/mnist-multi-gpu
mnist_multi_gpu_batching_train.py
Python
apache-2.0
26,392
[ "Gaussian" ]
31017cabddab86124c61667e8020f6cc6269c31e4d3242e6e2b3431f246e4809
# pylint: disable=arguments-differ """ Models for the shopping cart and assorted purchase types """ from collections import namedtuple from datetime import datetime from datetime import timedelta from decimal import Decimal import json import analytics from io import BytesIO from django.db.models import Q, F import py...
caesar2164/edx-platform
lms/djangoapps/shoppingcart/models.py
Python
agpl-3.0
91,861
[ "VisIt" ]
22e062f88a8f0f25c608f7692f2a2bcfce1fd09d39ae6eaa7d80c1405159f89e
#!/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/e2openplugin-OpenWebif
plugin/controllers/views/web/zap.py
Python
gpl-2.0
5,139
[ "VisIt" ]
f37d36392cd85d81051ac1cfba421b19c9a4177114ca9f8fada8401385d0a20e
#------------------------------------------------------------------------------ # FILE: format_flux_climo.py # AUTHOR: Kel Markert # EMAIL: kel.markert@nasa.gov # ORGANIZATION: NASA-SERVIR, UAH/ESSC # MODIFIED BY: n/a # CREATION DATE: 28 Oct. 2016 # LAST MOD DATE: 03 Apr. 2017 # PURPOSE: This script takes gride...
KMarkert/servir-vic-training
scripts/format_flux_climo.py
Python
gpl-3.0
6,740
[ "NetCDF" ]
8f38427a8478b055fe260a78aa00750e67ffb76415a98a2d7bd8eb270713d241
# -*- coding: utf-8 -*- """ Test the Studio help links. """ from unittest import skip from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acceptance.pages.studio.asset_index import AssetIndexPageStudioFrontend fro...
a-parhom/edx-platform
common/test/acceptance/tests/studio/test_studio_help.py
Python
agpl-3.0
39,301
[ "VisIt" ]
b79e182e99a71b26d85db4270b198fa0a07856970da10097f2ee58190e605df4
# -*- coding: utf-8 -*- """ Tests for student account views. """ import logging import re from unittest import skipUnless from urllib import urlencode import mock import ddt from django.conf import settings from django.core import mail from django.core.files.uploadedfile import SimpleUploadedFile from django.core.url...
prarthitm/edxplatform
lms/djangoapps/student_account/test/test_views.py
Python
agpl-3.0
28,775
[ "VisIt" ]
f65a9cc6f093ad5e8e6aa17710f3e79c6fa20a6d01658cadc01e133f908ea9e4
# # 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...
shakamunyi/beam
sdks/python/apache_beam/runners/direct/direct_runner.py
Python
apache-2.0
12,121
[ "VisIt" ]
78ed38c5a3afad22977b7dbace04f3c7310ad8b11cb7b7b44df4b683dd0e7249
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2004-2007 Donald N. Allingham # Copyright (C) 2010 Brian G. Matherly # # 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; ei...
SNoiraud/gramps
gramps/gen/display/__init__.py
Python
gpl-2.0
851
[ "Brian" ]
dde2e45bb63c9dd368f435c8b72ce5907ce1f1bcc2c02f188117ce3fa15af2c4
# vclamptest.py --- # # Filename: vclamptest.py # Description: # Author: # Maintainer: # Created: Wed Feb 6 16:25:52 2013 (+0530) # Version: # Last-Updated: Tue Jun 11 17:30:34 2013 (+0530) # By: subha # Update #: 148 # URL: # Keywords: # Compatibility: # # # Commentary: # # Set up a voltag...
dilawar/moose-full
moose-examples/traub_2005/py/vclamptest.py
Python
gpl-2.0
4,847
[ "MOOSE", "NEURON" ]
26a69a2948f245b69232b952c80cdc4b5cef528dfccf6b89605aa72b90990278
"""Utility functions to help with pure numpy stuff.""" from typing import TypeVar import numpy as np import scipy.linalg as la # Type variable for ArrayLike arguments FloatArrayLike = TypeVar("FloatArrayLike", float, np.ndarray) def save_ndarray_list(fname, la): """Save a list of numpy arrays to disk. Thi...
radiocosmology/cora
cora/util/nputil.py
Python
mit
3,428
[ "Gaussian" ]
19a7a2ea807d0d1ea2d6b5e21477fc10005575a0184a35c93022c4393734ae2f
# Neural Network # -- nn.py # # @package NeuralNetwork # ------------------------ ATTENTION, MORTALS: README ------------------------ # I will now describe how the code is organized so anyone interested in it can # quickly get up to speed. # # Being a neural network, there needs to be some number of nodes and some num...
atomictom/WiseGuy
parallel_nn.py
Python
gpl-3.0
10,194
[ "NEURON" ]
996344f784443c052a9ab7c7dd18404d402ed759444bd80e07690e5c9a0e8a71
# Copyright 2008-2014 Nokia Solutions and Networks # # 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 l...
eric-stanley/robotframework
src/robot/model/testsuite.py
Python
apache-2.0
5,540
[ "VisIt" ]
46883a4b73c2839aa2646e1f9be1fcea41f9cca647ca5262821c6b70bff43289
# -*- coding: utf-8 -*- ########################################################################### # OCRFeeder - The complete OCR suite # Copyright (C) 2009 Joaquim Rocha # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
ackalker/ocrfeeder
src/ocrfeeder/studio/customWidgets.py
Python
gpl-3.0
25,264
[ "FLEUR" ]
71376419ebf8df9dc46e68b2de1f0fb3eb131d9c8e34fa020319c2e8f3ca0c3a
""" The SystemAdministratorClient is a class representing the client of the DIRAC SystemAdministrator service. It has also methods to update the Configuration Service with the DIRAC components options """ __RCSID__ = "$Id$" from DIRAC.Core.Base.Client import Client, createClient SYSADMIN_PORT = 9162 @creat...
fstagni/DIRAC
FrameworkSystem/Client/SystemAdministratorClient.py
Python
gpl-3.0
683
[ "DIRAC" ]
8232481c238566b6e393a7bf02cb5cba05056017b5986669e24a693615dfddeb
# ----------------------------------------------------------------------------- # db.py - db abstraction module # ----------------------------------------------------------------------------- # Copyright 2006-2012 Dirk Meyer, Jason Tackaberry # # Please see the file AUTHORS for a complete list of authors. # # This libr...
freevo/kaa-base
src/db.py
Python
lgpl-2.1
113,019
[ "BLAST" ]
a9b704b4eddfbd43ae12478843fae2b9c2158543cc9b949892aa012e6e153df5
''' This module contains all the stuff to make your way from python code to a dynamic library, see __init__.py for exported interfaces. ''' from pythran.backend import Cxx from pythran.config import cfg, make_extension from pythran.cxxgen import BoostPythonModule, Define, Include, Line, Statement from pythran.cxxgen i...
artas360/pythran
pythran/toolchain.py
Python
bsd-3-clause
14,333
[ "VisIt" ]
2c3f3e9ce84a939b85fcc6e742561a32235e942c79a7c4df729947c8dce7f064
# -*- coding: utf-8 -*- # # hl_api_types.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, o...
tammoippen/nest-simulator
pynest/nest/lib/hl_api_types.py
Python
gpl-2.0
33,310
[ "Gaussian" ]
f71e6db68728a33b0b8bc74fe5844f0555aada1307b3254895b3e6acfcc191c3
# Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ve...
vidartf/hyperspy
hyperspy/tests/component/test_component_set_parameters.py
Python
gpl-3.0
1,981
[ "Gaussian" ]
bc9fd497c3453ed90322f1c74b538e6cb0acf78d2d5bed02ec40310da5f17262
""" ================================= Linear fascicle evaluation (LiFE) ================================= Evaluating the results of tractography algorithms is one of the biggest challenges for diffusion MRI. One proposal for evaluation of tractography results is to use a forward model that predicts the signal from eac...
FrancoisRheaultUS/dipy
doc/examples/linear_fascicle_evaluation.py
Python
bsd-3-clause
11,967
[ "Gaussian" ]
f82498271bbc844a4eca1c4aa7fb8de8915abcdde27f71b1066fcf473cf31cd3
""" Copy data between two netCDF4 datasets. This lets you make modified versions of data read from file. It doesn't support Groups, so it's not full NETCDF4 compliant :-( Can control which variables and (global) attributes are in- or ex-cluded. (Or.. can just copy the lot and modify before closing.) TODO: add prope...
pp-mo/ncobj
old/nc_copy.py
Python
gpl-3.0
7,243
[ "NetCDF" ]
875d09fbec0da1de90bbf4d7951d0191918af527b7937412f75061ae044d89ab
import os from datetime import datetime from django.test import SimpleTestCase from django.utils.functional import lazystr from django.utils.html import ( conditional_escape, escape, escapejs, format_html, html_safe, json_script, linebreaks, smart_urlquote, strip_spaces_between_tags, strip_tags, urlize, ) from...
atul-bhouraskar/django
tests/utils_tests/test_html.py
Python
bsd-3-clause
12,170
[ "ADF" ]
1bb9144b003ee80c3b44cb825f86f3aee3a109a6dc1f02d68cff21f8094d8abb
#!/usr/bin/python # (C) 2013, Markus Wildi, markus.wildi@bluewin.ch # # 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, or (at your option) # any later version. # # Th...
xyficu/rts2
scripts/rts2saf/rts2saf_unittest.py
Python
gpl-2.0
4,889
[ "VisIt" ]
13f4f9349c501bbc0fa8447998b30e2296bc4803dac283e07d6c43acf77101e3
#!/usr/bin/env python # File: plot_icd_mass.py # Created on: Tue Jun 4 11:31:32 2013 # Last Change: Mon Aug 12 14:09:04 2013 # Purpose of script: <+INSERT+> # Author: Steven Boada import pylab as pyl import cPickle as pickle def plot_icd_vs_mass(): galaxies = pickle.load(open('galaxies.pickle','rb')) arrow_...
boada/ICD
sandbox/plot_z_box_zooms.py
Python
mit
3,244
[ "Galaxy" ]
e19550cfe9d07746e3625b018c3c350de8d633690fcff3487280f5f51547034e
""" Definitions of a standard set of pilot commands Each commands is represented by a class inheriting CommandBase class. The command class constructor takes PilotParams object which is a data structure which keeps common parameters across all the pilot commands. The constructor must call the supercla...
fstagni/DIRAC
WorkloadManagementSystem/PilotAgent/pilotCommands.py
Python
gpl-3.0
38,465
[ "DIRAC" ]
9629e7c83e28afb6212243b938bf6d0b52d09e6d218325a83bac97f64f3096d6
"""Convolutional/Variational autoencoder, including demonstration of training such a network on MNIST, CelebNet and the film, "Sita Sings The Blues" using an image pipeline. Copyright Parag K. Mital, January 2016 """ import tensorflow as tf import numpy as np import os from libs.dataset_utils import create_input_pipel...
pkmital/CADL
session-4/libs/vae.py
Python
apache-2.0
19,302
[ "Gaussian" ]
94b3d2d46971a9a0161893d800eaa16df665f3713e7d5d69326fd9bf18d90535
import os def show_blast_hits(hits,query=False,pause=False): ''' launch one firefox tab for each subject (or query) id add additional jbrowse track showing where the blast hits are firefox should already be running when this is called query == True means query is the reference sequence que...
robertvi/rjv
jbrowse.py
Python
gpl-2.0
2,247
[ "BLAST" ]
4208d1cf5bcfbd410a1f91cc84cb224e4b18648c078f47028341c2baea66ae1e
#!/usr/bin/env python3 # ABOUT # Artisan Dialogs # LICENSE # This program or module 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 # version 3 of the License, or (at your...
MAKOMO/artisan
src/artisanlib/dialogs.py
Python
gpl-3.0
9,662
[ "VisIt" ]
2eb10d05c597ce2700c6295e09665ee38c5dc6a5e1af518f89fd21847c08374b
""" This module implements dependency resolution and execution within Red Hat Insights. """ import inspect import logging import os import pkgutil import re import six import sys import time import traceback from collections import defaultdict from functools import reduce as _reduce from insights.contrib import impor...
wcmitchell/insights-core
insights/core/dr.py
Python
apache-2.0
20,116
[ "VisIt" ]
9d65b7b25bfa2fda43d69afc632164f0f0c0d63dab8ff53186955b19a4db8b8f
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2002 Gary Shao # Copyright (C) 2007 Brian G. Matherly # Copyright (C) 2009 Benny Malengier # Copyright (C) 2009 Gary Burton # Copyright (C) 2014 Nick Hall # Copyright (C) 2017...
SNoiraud/gramps
gramps/gen/plug/docgen/stylesheet.py
Python
gpl-2.0
19,898
[ "Brian" ]
ff824e5ed830990064f35329e9949f6d13a07aaeacaef1a8c86a5bfeb0c23531
import datetime import asyncio import strawpy import pytz import re import requests import json import discord import os import glob from PIL import Image from PythonGists import PythonGists from discord.ext import commands from cogs.utils.checks import embed_perms, cmd_prefix_len, attach_perms, find_channel from bs4 i...
shivaco/selfbot
cogs/utility.py
Python
gpl-3.0
42,909
[ "MOE" ]
643c55f9625f65efdba511992da2fc601281e1e8959e31edb38757840621a3a5
#!/usr/bin/python """ ################################################################################## extract file uploaded by HTTP from web browser; users visit putfile.html to get the upload form page, which then triggers this script on server; this is very powerful, and very dangerous: you will usually wa...
simontakite/sysadmin
pythonscripts/programmingpython/Internet/Web/cgi-bin/putfile.py
Python
gpl-2.0
4,140
[ "VisIt" ]
9242c91cc0ac478d9e01f4f2a1763423a13668564488568b6549a3929bdc2f5c
from __future__ import print_function, division from sympy.core import Mul from sympy.functions import DiracDelta, Heaviside from sympy.solvers import solve from sympy.core.compatibility import default_sort_key def change_mul(node, x): """change_mul(node, x) Rearranges the operands of a product, bringing...
wolfram74/numerical_methods_iserles_notes
venv/lib/python2.7/site-packages/sympy/integrals/deltafunctions.py
Python
mit
6,208
[ "DIRAC" ]
5db47c18084cc50abc8e2b71279085130f7143f0ccff6ad3e9513d6d2a078b01
import numpy as np from ase.transport.calculators import TransportCalculator import pylab # onsite energies 0.0, nearest neighbor hopping -1.0, and # second nearest neighbor hopping 0.2 H_lead = np.array([[ 0. , -1. , 0.2, 0. ], [-1. , 0. , -1. , 0.2], [ 0.2, -1. , 0. , -1....
qsnake/gpaw
doc/exercises/transport/pt_h2_tb_transport.py
Python
gpl-3.0
1,882
[ "ASE" ]
3c30e1eaf9b67736462a78d0be46bc6e9177862421b11100c4857ecd5b1c670f
import logging import os import time from datetime import datetime import numpy as np from netCDF4 import Dataset from netCDF4 import num2date __author__ = 'Trond Kristiansen' __email__ = 'me@trondkristiansen.com' __created__ = datetime(2009, 3, 16) __modified__ = datetime(2021, 3, 26) __version__ = "1.6" __status__ ...
trondkr/model2roms
IOinitial.py
Python
mit
21,834
[ "NetCDF" ]
daa686f32fa030e71ca7d1763665400d58aa66c0f4871ea2fc8d4c6f9c9430d6
############################################################################## # # Copyright (C) 2018 Compassion CH (http://www.compassion.ch) # @author: Emanuel Cino <ecino@compassion.ch> # # The licence is in the file __manifest__.py # #########################################################################...
CompassionCH/compassion-switzerland
website_event_compassion/forms/medical_discharge_form.py
Python
agpl-3.0
1,771
[ "VisIt" ]
949b245de38b57db7dac17f6c69981d2594f7249cc56cd25dd2634d2940c246c
#!/usr/bin/env python ## ## Copyright 2016 SRI International ## See COPYING file distributed along with the package for the copyright and license terms. ## import os import re import glob import time import filecmp import pandas # Truncate age to 2 digits for increased identity protection def truncate_age(age_in...
abonil91/ncanda-data-integration
scripts/redcap/export_redcap_to_pipeline.py
Python
bsd-3-clause
16,438
[ "VisIt" ]
44e488ac8b18a028894d2848dd9afcbf06c788618f58408b060808f2b92a1fdd
# -*- coding: utf-8 -*- # # network_params.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License,...
terhorstd/nest-simulator
pynest/examples/Potjans_2014/network_params.py
Python
gpl-2.0
8,242
[ "NEURON" ]
b9c733111c416e670cd6be8fa6fe5c78f68f6b48699cd30b01dc1d4949d4d9f3
# ***** BEGIN GPL LICENSE BLOCK ***** # # 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 distri...
Passtechsoft/TPEAlpGen
blender/release/scripts/addons_contrib/online_mat_lib/__init__.py
Python
gpl-3.0
326,282
[ "Firefly" ]
9ebbb1f8e0777f65a25b559bdd1f07c56e8302f4ba8a741e3bb8d13d6e2392af
import numpy as np seed = np.random.randint(2**16) #seed = 25982 print "Seed: ", seed import matplotlib.pyplot as plt from matplotlib.patches import Polygon from optofit.cneuron.compartment import Compartment from optofit.cneuron.channels import LeakChannel from optofit.cneuron.simulate import forward_euler from opto...
HIPS/optofit
examples/gp_demo.py
Python
gpl-2.0
7,235
[ "Gaussian" ]
5dc051e9af3649a2784db3d0d50dfa21f43edbf0afd24438c2a6e43cee704b29
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
gregcaporaso/scikit-bio
skbio/alignment/tests/test_pairwise.py
Python
bsd-3-clause
35,055
[ "scikit-bio" ]
a5a47b2269b57274ef373f7c102398ff5b6cb1aac0872492d713659292f80375
#!/usr/bin/env python # -*- coding: utf-8 -*- """ dump2data.py Extract dynamical degrees of freedom from a lammps DUMP file (from the stdin) and construct a new DATA file (to the stdout). A reference DATA file is needed (argument). basic usage ./dump2data.py orig_file.data < dump.lammpstrj > new_file.data (Thi...
anshumang/lammps-analytics
tools/moltemplate/src/dump2data.py
Python
gpl-2.0
59,293
[ "LAMMPS" ]
f8ee06f65febb408cb93b6e5d366e26e47d1f37b54056f3539abcd432556d26f
#!/usr/bin/env python import sys import numpy as np import argparse import netCDF4 as nc """ This script makes a fluid animation using NetCDF data. """ def main(): print("I'm the main function") return True if __name__=="__main__": sys.exit(main())
Jingwan-Li/fluids-movie
make_movie.py
Python
apache-2.0
256
[ "NetCDF" ]
9b6f33e8529807b98d1713c423777415a5c5e524f64f9413c1973ec1e0fc9f01
from splinter import Browser class UreportApplication: def __init__(self): self.browser = Browser() def close(self): self.browser.quit() def navigate_to_home_page(self): return HomePage(self.browser).load() class HomePage(): def __init__(self, browser): self.brows...
mbanje/ureport_uganda
functional_test/fixtures/home_page.py
Python
bsd-3-clause
592
[ "VisIt" ]
80288fe0bf2c1361399945a56523d95f839e09865a74efb8b49cebec3ddccb53
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # install - MiG server install helpers # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
heromod/migrid
mig/shared/install.py
Python
gpl-2.0
21,112
[ "Brian" ]
c837e83bb9ee3ff721905e23b52588c5f2164faa495ce7efbf681b2106e1d87c
from cubesymapi import iofile, Calculation import numpy as np import matplotlib.pyplot as plt # read gaussian cube file ranges, cube_density = iofile.get_density_cube('../data/C3B9.cube') # create Calculation instance calculation = Calculation(cube_density, ranges) # get density from [x:0, y:0, z:-6] to [x:0, y:0, ...
abelcarreras/cubesym
scripts/density_example.py
Python
mit
773
[ "Gaussian" ]
d2ab145119f1ad88948844ea1491eebb1e26b9868d6edd279a990304fb3e71b4
# -*t coding:Utf-8 -*- r""" .. currentmodule:: pylayers.antprop.channel .. autosummary:: :toctree: generated/ TBchannel class =============== .. autosummary:: :toctree: generated/ TBchannel.tau_Emax TBchannel.tau_moy TBchannel.tau_rms TBchannel.delays TBchannel.toFD TBchannel.SalehVa...
buguen/pylayers
pylayers/antprop/channel.py
Python
lgpl-3.0
153,051
[ "BLAST", "Gaussian" ]
64b944f71bcd4fe7ea073acaab80f5c5e5bb760c542f7289d4a4f9de1bfc40d0
#!/usr/bin/python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2014 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
Freeseer/freeseer
src/freeseer/tests/framework/test_util.py
Python
gpl-3.0
4,506
[ "VisIt" ]
a6d82154cbf0f25a6f5deb9347d16f9b5294db6c6ed7349b98e58a46c4f3e4ee
from . import core, utils import cgt import ctypes, os.path as osp, hashlib, numpy as np, sys, subprocess, string, os, time, traceback, cPickle from collections import defaultdict, namedtuple from StringIO import StringIO import logging def function(inputs, outputs, dbg=None, updates=None, givens=None): assert isi...
briancheung/cgt
cgt/compilation.py
Python
mit
36,602
[ "VisIt" ]
ced57527d2cb086bbb1b2eb5e77e813fe6176d3743d3beddf336fc09521f4c07
#!/usr/bin/env python # Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project # All rights reserved. # # This file is part of NeuroM <https://github.com/BlueBrain/NeuroM> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the fol...
BlueBrain/NeuroM
examples/end_to_end_distance.py
Python
bsd-3-clause
4,392
[ "NEURON" ]
4e517838e405ce20b5accacec2ecebf068509a80a29bc01b501bda22c3e496a2
from io import BytesIO from threading import Lock import contextlib import itertools import os.path import pickle import shutil import tempfile import unittest import sys import numpy as np import pandas as pd import xray from xray import Dataset, open_dataset, open_mfdataset, backends, save_mfdataset from xray.backe...
petercable/xray
xray/test/test_backends.py
Python
apache-2.0
42,555
[ "NetCDF" ]
7d423a33e9c92e4bb9ce82f10bd8507ac364da5e6d39c40f983ab0fb1346ef95