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
## Family Room AllPixel Adafruit DotStar program ## By Chip McClelland - chip@mcclellands.org - August 2015 ## Uses sample code from the BiblioPixel library ## GPL v3 license ## Setup - Raspberry Pi running Raspian, Python 2.7, AllPixel and 164 LEDs. ## Here is what this program does: ## Turn on the strip at 6:00a...
chipmc/AllPixel-Scripts
FamilyRoomStrip.py
Python
mit
7,580
[ "Firefly" ]
362f9535c69dde7fc90ab5f6c6122f348b2174a5bff434509dcd85d92d7813dc
import ee from ee_plugin import Map from ee_plugin.contrib import utils, palettes dem = ee.Image("AHN/AHN2_05M_RUW") \ .resample('bicubic') \ .focal_max(0.5, 'circle', 'meters') \ .convolve(ee.Kernel.gaussian(0.5, 0.25, 'meters')) # See https://github.com/gee-community/ee-palettes # for the full list of suppo...
gena/qgis-earthengine-plugin
examples/contrib/utils-hillshadeRgb.py
Python
mit
1,360
[ "Gaussian" ]
24fa55b335ec0ea51a69efb93e080049f053f19f9bef169507a1cc63fb1b9e44
# Copyright 2014 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
rhaschke/catkin_tools
catkin_tools/jobs/utils.py
Python
apache-2.0
8,769
[ "VisIt" ]
97bdcb39f61f7e793ecf80aab8d06b04e50593bccc8dea6cdac3b83e6793a5ce
#!/usr/bin/env python # ---------------------------------------------------------------------- # Copyright (C) 2014-2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you ca...
numenta/NAB
run.py
Python
agpl-3.0
7,497
[ "Gaussian" ]
97e56910494239307cc49ba9160f2446b10d473234c3d55ea9f0acdffd59c94c
# # Simple egg-box toy LogPDF. # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # import numpy as np import scipy.stats from . import ToyLogPDF class SimpleEggBoxLogPD...
martinjrobins/hobo
pints/toy/_simple_egg_box.py
Python
bsd-3-clause
5,353
[ "Gaussian" ]
3f677b3d78cce996f00ffa1a57dc54367499f48a8630de53fa3701c3052ee3c8
#!/usr/bin/env python -Es """ Script to set up a custom genome for bcbio-nextgen """ from argparse import ArgumentParser import os from Bio import SeqIO import toolz as tz from bcbio.utils import safe_makedir, file_exists, chdir from bcbio.distributed.transaction import file_transaction from bcbio.provenance import do...
brainstorm/bcbio-nextgen
scripts/bcbio_setup_genome.py
Python
mit
14,109
[ "Galaxy" ]
95b44e68331c9c93d17785835c72e13b3595892e23a966622a9b9ccf077e889e
import fitsio from astropy.table import Table, Column, vstack, hstack, join from astropy.io import fits import numpy as np # TODO: These should be moved to a plotting library, rather than # part of the class #import corner #from scipy.stats import norm #import scipy.stats as stats #import matplotlib.mlab as mlab #impo...
sweverett/Balrog-GalSim
balrog/match.py
Python
mit
36,632
[ "Gaussian" ]
2bdd22d2098a11ceb45ff697b8974b94c535cff51d063e33e7f064362675b9a2
""" This module expresses basis-dependent quantities in the plane-wave basis. """ import numpy as np from numpy.fft import fftn, ifftn def g(crystal): """Create an array of wave vectors that ensure the basis functions are periodic. Args: crystal (Crystal): an instance of the Crystal class. R...
jerjorg/dft
pydft/bases/planewave.py
Python
gpl-3.0
4,771
[ "CRYSTAL" ]
e1bdd0045f4e8cf71cb8346d56b760caa8649704c9e94f8c88ab5138ccfd4159
#!/usr/bin/env python import pygame import time import math import sqlite3 import random import pygame.font from pygame.locals import * import sys class TextRectException: def __init__(self, message = None): self.message = message def __str__(self): return self.message class PartsOfSpe...
jgerschler/ESL-Games
Multiple Pushbutton/Parts of Speech/PartsOfSpeech.py
Python
mit
32,106
[ "VisIt" ]
ec955316bfb09e7304b04bd0c9bfabb7587ab5f09b330216d95da45080e1bc7e
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/Execute/ExecuteRunnerPlugin.py
Python
lgpl-2.1
7,178
[ "MOOSE" ]
e0e0ce063104bfd849f7692e15c7712691e526617a87097e698ae004f419bed5
# -*- python -*- # # This file is part of the cno package # # Copyright (c) 2012-2014 - EMBL-EBI # # File author(s): Thomas Cokelaer (cokelaer@ebi.ac.uk) # # Distributed under the GLPv3 License. # See accompanying file LICENSE.txt or copy at # http://www.gnu.org/licenses/gpl-3.0.html # # website: http://gith...
cellnopt/cellnopt
cno/io/sif.py
Python
bsd-2-clause
14,961
[ "Cytoscape" ]
6ff10f51edc9dfe9218355da5f3d5e68f1290f6116cde1c40719228f8679478b
# -*- coding: utf-8 -*- # # clopath_synapse_spike_pairing.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 ...
sdiazpier/nest-simulator
pynest/examples/clopath_synapse_spike_pairing.py
Python
gpl-2.0
6,039
[ "NEURON" ]
d2405df435ac2c67f0ae3fc5f7bc31894aa575bda93eec78cbb1487c168f2cae
# Copyright 2003-2009 by Bartek Wilczynski. All rights reserved. # Copyright 2012-2013 by Michiel JL de Hoon. 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. """Tools for sequen...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/motifs/__init__.py
Python
gpl-2.0
18,193
[ "Biopython" ]
8118c856de9c092476a6f2e235d09526fb5f7e205930b4b501863f5eda727c99
# Generated from antlr4-python3-runtime-4.7.2/src/autogen/Grammar.g4 by ANTLR 4.7.2 from antlr4 import * if __name__ is not None and "." in __name__: from .GrammarParser import GrammarParser else: from GrammarParser import GrammarParser # retorne Type.INT, etc para fazer checagem de tipos class Type: VOID...
damorim/compilers-cin
2020_3/projeto3/GrammarCheckerVisitor.py
Python
mit
13,953
[ "VisIt" ]
acbbebb6fc795a6b7352ce47ce3314c13f61b19fe43d7cb8d8bddecb6fd8da6b
from frappe import _ def get_data(): return [ { "label": _("Sales Pipeline"), "icon": "fa fa-star", "items": [ { "type": "doctype", "name": "Lead", "description": _("Database of potential customers."), }, { "type": "doctype", "name": "Opportunity", "description": _...
RandyLowery/erpnext
erpnext/config/crm.py
Python
gpl-3.0
3,105
[ "VisIt" ]
3e565e3578d7865bc6999ab5a5d09727999b837053ce0fd1de08b190c8fbc6c4
from pymol.wizard import Wizard from pymol import cmd import pymol default_mode = 'labchg' class Charge(Wizard): def __init__(self,_self=cmd): Wizard.__init__(self,_self) self.modes = [ 'labchg', 'addchg', 'cpychg', 'zrochg', '...
gratefulfrog/lib
python/pymol/wizard/charge.py
Python
gpl-2.0
12,100
[ "PyMOL" ]
571d351736f5746125d66a96efb48cb0821454f09bece5960d811f898d0f5ee1
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007 Brian G. Matherly # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Tim G L Lyons # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fr...
pmghalvorsen/gramps_branch
gramps/gen/plug/report/_bibliography.py
Python
gpl-2.0
10,644
[ "Brian" ]
734f48fb07b94c693c0779e1ec7fc3fe7e1c6820ed025812bbe80a5b9c223f0a
#encoding=utf-8 """ Instructor Dashboard Views """ import logging import datetime from opaque_keys import InvalidKeyError from opaque_keys.edx.keys import CourseKey import uuid import pytz from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.utils...
xuxiao19910803/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
27,155
[ "VisIt" ]
b98a05ddc24366ed39def8af093a140a167ab0bb843727d8194aec31fcd11c83
import json import logging import os import re import shutil import string import sqlalchemy.orm.exc from galaxy import util from galaxy.web import url_for from galaxy.datatypes import checkers from galaxy.model.orm import and_ from galaxy.model.orm import or_ from tool_shed.util import basic_util from tool_shed.util...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/tool_shed/util/shed_util_common.py
Python
gpl-3.0
67,170
[ "Galaxy" ]
7b305c7d458965e123c5b31b3d2013d4073334739cd72068c24c2d14214ef245
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2004, 2006 Sean C. Gillies # Copyright (c) 2007 STFC <http://www.stfc.ac.uk> # # Authors : # Dominic Lowe <d.lowe@rl.ac.uk> # # Contact email: d.lowe@rl.ac.uk # ========================...
b-cube/OwsCapable
owscapable/coverage/wcs100.py
Python
bsd-3-clause
20,701
[ "NetCDF" ]
73f7a616c5dc4bab58320482fba640c47da9f113873f126a55fb77a5ba60d8de
# $Id$ """ To: amber@cgl.ucsf.EDU Subject: esp to resp Date: Wed, 21 Feb 96 13:09:38 -0800 From: "Jim Caldwell" <caldwell@heimdal.ucsf.EDU> At long last: To get electrostatic points from Gaussian94 in a form that RESP understands follow the following simple recipe: Add iop(6,33=2) to your gaussian command line viz....
lidaobing/itcc
itcc/torsionfit/resp.py
Python
gpl-3.0
1,905
[ "Amber", "Gaussian" ]
226a4aef773cf0caa9091c91d7ab66da7929852f27ba12ab3507d3b474fde2c4
""" Define common steps for instructor dashboard acceptance tests. """ # pylint: disable=C0111 # pylint: disable=W0621 from __future__ import absolute_import from django.conf import settings from lettuce import world, step from mock import patch from nose.tools import assert_in # pylint: disable=E0611 from coursew...
nanolearning/edx-platform
lms/djangoapps/instructor/features/common.py
Python
agpl-3.0
4,569
[ "VisIt" ]
b11444f2526f2be67ae7384b40ff6eb8f19e575ae1ba71a34941b2bcfbd3259f
#!/usr/bin/env python # -*- coding: utf-8 -*- ###################################################################### # # Create 3D vtk format file from ModEM output model file # - changes units from meters to kilometers # # 16.12.2012 # EES # LK # ######################################################################...
MTgeophysics/mtpy
legacy/modem2vtk3d.py
Python
gpl-3.0
4,209
[ "VTK" ]
3af4374ac9bef0380a3ceab8bb83ad7d3d215f5652634f2a66751026de3a4bbe
""" ========================================================== Comparison of kernel ridge and Gaussian process regression ========================================================== Both kernel ridge regression (KRR) and Gaussian process regression (GPR) learn a target function by employing internally the "kernel trick...
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/examples/gaussian_process/plot_compare_gpr_krr.py
Python
mit
5,196
[ "Gaussian" ]
6cd98dd6ea95fe2d1d6b5e1657188874dd227cd91b02aa48f9f5b2d80a1548b9
#!/usr/bin/env python # # Copyright 2006 The Closure Library 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 ...
nwjs/chromium.src
third_party/google-closure-library/closure/bin/calcdeps.py
Python
bsd-3-clause
18,573
[ "VisIt" ]
668b0690693afd7bdbb8c2f68ed2453d1dbcab22e99503226fcb7eee1b35573f
# encoding=UTF-8 # stdlib import itertools import math import logging # 3p import numpy as np import scipy.stats log = logging.getLogger(__name__) class LRPD(object): """Local Road Pattern Descriptor. Descriptor that computes a NxN set of histograms in the descriptor region (following the concept of ...
GautierMinster/lrpd-geolocation
maps/lrpd.py
Python
gpl-3.0
20,508
[ "Gaussian" ]
4979bb6fb218b4f6fb65cd847cf3e07bc3616ff50a37facd9d960581d96c5df5
# $HeadURL: $ """ ComponentSynchronizer Module that reads ComponentMonitoringDB.compmon_Components table and copies it to a RSS-like family of status tables to make everything easier. """ from DIRAC import gConfig, gLogger, S_OK from DIRAC.FrameworkSystem.DB.Com...
Sbalbp/DIRAC
ResourceStatusSystem/Utilities/ComponentSynchronizer.py
Python
gpl-3.0
3,249
[ "DIRAC" ]
fd6f5f66b878da0063b72635d6f16c87eb9c6d79804a87262ccb193bdcc21eff
from django.db import models class Patient(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) address = models.CharField(max_length=60) dob = models.DateField(default='1984-01-01') class Medication(models.Model): name = models.CharField(max_len...
kylewalters18/obulamu
server/app/models.py
Python
mit
1,065
[ "VisIt" ]
29e27f67e6be8ca2cb905dc78a49ee21a4c926fc6e4617f60ca8504a6c0e8d57
try: from setuptools import setup, Extension use_setuptools = True print('setuptools is used') except ImportError: from distutils.core import setup, Extension use_setuptools = False print('distutils is used') import numpy include_dirs_numpy = [numpy.get_include()] def check_compiler(): i...
abelcarreras/DynaPhoPy
setup.py
Python
mit
2,827
[ "phonopy" ]
0ab6dbf50aa11ea01e0d594ebbc15a5ec495e49269d87e5743517290b81b0a12
#!/usr/bin/env python import os import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # The current directory must be writeable. # try: channel = open("mni-surface-mesh-binary.obj", "wb") channel.close() ren1 = vtk.vtkRenderer() ren1.SetViewp...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/IO/MINC/Testing/Python/TestMNIObjects.py
Python
gpl-3.0
4,667
[ "VTK" ]
bd16a0baabecbe29dce1393cd50d32a5b060235148a7771963b5789c80c6a06b
class VehicleInfo(object): def __init__(self): """ make_target: option passed to make to create binaries. Usually sitl, and "-debug" may be appended if -D is passed to sim_vehicle.py default_params_filename: filename of default parameters file. Taken to be relative to autotest dir. ...
davidfsh/ardupilot
Tools/autotest/pysim/vehicleinfo.py
Python
gpl-3.0
10,835
[ "Firefly" ]
7f283debce70b24774e760b10fe3a5f46ff803efbd8e35299c3abd00a0a55c0e
""" KeepNote MultiEditor widget in main window This editor contain multiple editors that can be switched based on the content-type of the node. """ # # KeepNote # Copyright (c) 2008-2009 Matt Rasmussen # Author: Matt Rasmussen <rasmus@alum.mit.edu> # # This program is free software; you can redi...
brotchie/keepnote
keepnote/gui/editor_multi.py
Python
gpl-2.0
7,212
[ "VisIt" ]
d269b5d09e433b54cb9f1d41d98c1a97028089000e6bf73e425d9c21f3977e4a
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os import numpy import clawpack.geoclaw.topotools as topotools #------------------------------ def setrun(claw_pkg='geoclaw'): #-----...
mandli/fwave-swe
setrun.py
Python
mit
16,050
[ "Gaussian", "NetCDF" ]
ed7cba8f600f98111d9e8bbb59a80bff0a085669e9b9ed8bb4729ecca9bd20ca
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RPhyloseq(RPackage): """Handling and analysis of high-throughput microbiome census data. ...
iulian787/spack
var/spack/repos/builtin/packages/r-phyloseq/package.py
Python
lgpl-2.1
2,462
[ "Bioconductor" ]
1bb90fdcf65d97fa4ff43ce0fe56485e6a19985c464cacc87d0647420281a2dd
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Robert Layton <robertlayton@gmail.com> # Andreas Mueller <amueller@ais.uni-bonn.de> # Philippe Gervais <philippe.gervais@inria.fr> # Lars Buitinck ...
ElDeveloper/scikit-learn
sklearn/metrics/pairwise.py
Python
bsd-3-clause
45,133
[ "Gaussian" ]
49a6d76c5a8b1f252cc47106951168a2e1e4b6ab193fed150a293eccde9418be
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
kkreis/espressopp
src/pmi.py
Python
gpl-3.0
49,078
[ "ESPResSo" ]
37f4859c2148feafb53cf4de3f6cc6906280348a71fd65deef31b6b60a4d97a7
type_bodies = { 'Muffalo': 'QuadrupedAnimalWithHooves', 'Gazelle': 'QuadrupedAnimalWithHooves', 'Iguana': 'QuadrupedAnimalWithClawsTailAndJowl', 'Rhinoceros': 'QuadrupedAnimalWithHoovesAndHorn', 'Dromedary': 'QuadrupedAnimalWithHoovesAndHump', 'GrizzlyBear': 'QuadrupedAnimalWithPaws', 'Polar...
afit/rimworld-save-migrator
versions/a17tables.py
Python
mit
14,759
[ "Elk" ]
a3a2041dc095a544d0b85fbdf49d6fc7182cfa914179221909ec04244c043da6
#!/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...
pli3/Openwebif
plugin/controllers/views/web/settings.py
Python
gpl-2.0
5,424
[ "VisIt" ]
ae307fe3cc4a79cd617c3b8cefa801582d58c94dc9a960c56cb1f0d8f56feabb
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Module Project Create Script # import os, sys, shutil, string, uuid, re, zipfile, glob from string import capitalize from StringIO import StringIO from datetime import date template_dir = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) sdk_dir =...
gianina-ingenuity/titanium-branch-deep-linking
testbed/x/mobilesdk/osx/5.5.1.GA/module/module.py
Python
mit
13,545
[ "VisIt" ]
d5b9e6839a80923587d0401b4f485094b522e730e25d0b6da3fd1e86d2706a8e
import unittest import matplotlib.pyplot as plot import numpy as np import sys sys.path.append('.') # T_T from lib.rtnorm import rtnorm class RtnormTest(unittest.TestCase): longMessage = True def test_histogram(self): """ This should plot a histogram looking like a gaussian ... I...
irap-omp/deconv3d
tests/rtnorm_test.py
Python
mit
1,428
[ "Gaussian" ]
61365ed6656f3c74881ed5d1ba673bf3b302605ec07cdbe23904b3f2205796c4
import sys, os, re, types, HTMLParser, urllib2 import parser, db, data, constants def _rune_cost(generator, filter_data, record, *args): cost = 0 for rune_type in xrange(0, 4): for i in xrange(0, getattr(record, 'rune_cost_%d' % (rune_type + 1))): cost |= 1 << (rune_type * 2 + i) retu...
eyeplum/simc
dbc_extract/dbc/generator.py
Python
gpl-3.0
173,755
[ "BLAST", "CRYSTAL" ]
0185fedf8ec8e837804ae7fcd51b3f2f5e2cb0f69717fd77be04d5cb7d9ad054
# -*- coding: utf-8 -*- # # GromacsWrapper documentation build configuration file, created by # sphinx-quickstart on Tue Jun 23 19:38:56 2009. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't ...
Becksteinlab/GromacsWrapper
doc/sphinx/source/conf.py
Python
gpl-3.0
7,494
[ "Gromacs" ]
ec7920b7aef0e2feb7a6531824ec06e5bcd70d0e6cb79ce86f5e49bdb36dda2d
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2009 Jan Decaluwe # # The myhdl 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 t...
forrestv/myhdl
myhdl/_always_comb.py
Python
lgpl-2.1
7,264
[ "VisIt" ]
c3b7dfd2b356e4d42add9b987fd30f746294c787cb879b6cf319d365a5df80f2
# Copyright 2011, 2012, 2013 David Malcolm <dmalcolm@redhat.com> # Copyright 2011, 2012, 2013 Red Hat, Inc. # # This 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, o...
davidmalcolm/gcc-python-plugin
generate-gimple-c.py
Python
gpl-3.0
24,332
[ "VisIt" ]
6f9bcbff952b68efd07ff9b66acb98c7d5c10ae3c7ab76ac8e9566e3759f7941
# Copyright (c) 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2013-2014 Google, Inc. # Copyright (c) 2014-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Cosmin Poieana <cmin@ropython.org> # Copyright (c) 2014 Vlad Temian <vladtemian@gmail.com> # Copyright (c) 2014 Arun Pers...
ruchee/vimrc
vimfiles/bundle/vim-python/submodules/pylint/pylint/checkers/stdlib.py
Python
mit
19,843
[ "VisIt" ]
2fc09ca4e7656aee5bd29654e4d26694710815f20808a7a332792e9cbd609afd
import numpy as np import sklearn.datasets from diogenes.read import (cast_np_nd_to_sa, describe_cols,) from diogenes.display import (plot_correlation_scatter_plot, plot_correlation_matrix, plot_kernel_density, plot_box_plot)...
dssg/diogenes
doc/notebooks/test_sklearn_iris.py
Python
mit
3,232
[ "Gaussian" ]
77ebf1fe9f52d837f059efeed0418055cdcdda1c376f6c9db29c2b336ebb4cc9
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
jralls/gramps
gramps/plugins/webreport/source.py
Python
gpl-2.0
12,112
[ "Brian" ]
2d9197a8138e9ce175c31de7d3bc9d593b0a5ffbe557d9469637c4f4126252c3
""" My module for various data analysis tasks. :REQUIREMENTS: :doc:`numpy`, :doc:`tools` (for :func:`errxy`) 2008-07-25 16:20 IJC: Created. 2009-12-08 11:31 IJC: Updated transit flag in planet objects and :func:`rveph` function. 2010-02-18 14:06 IJC: Added :func:`medianfilter` 2010-08-03 15...
profxj/xastropy
xastropy/phot/ian_analysis.py
Python
bsd-3-clause
129,079
[ "Gaussian" ]
b0a7a7733532d31db05a7184755a6ccc9ad031b6ddf8e0ab800d5e6a954c500d
#!python # coding=utf-8 from pyaxiom.netcdf import CFDataset from pyaxiom import logger class IndexedRaggedTimeseries(CFDataset): @classmethod def is_mine(cls, dsg): try: rvars = dsg.get_variables_by_attributes(cf_role='timeseries_id') assert len(rvars) == 1 asser...
axiom-data-science/pyaxiom
pyaxiom/netcdf/sensors/dsg/timeseries/ir.py
Python
mit
1,602
[ "NetCDF" ]
8e022d1cd25a898a35cd0ff86b6fe493cd204bdb9e9a479f6b084e77f5f53119
""" potentialAGB_generic_app_v4.py ================================================================================ Produce layers for restoration opportunity cross-comparison against other data layers (e.g. WRI world of opportunity maps) """ # Import general libraries import os import sys import numpy as np import xar...
DTMilodowski/EOlab
src/potentialAGB_generic_v4.py
Python
gpl-3.0
7,058
[ "NetCDF" ]
c529c9b46c6b8b9ac013748b281e366c15a55a0ad604791a6404d4798aba25f4
__author__ = 'Dmitry Egorov' __version__ = '0.3.0' from .specs import GeneSpec, NumericParamSpec, NominalParamSpec, NetworkSpec from .genes import NeuronGene, ConnectionGene, GeneticEncoding from .operators import Mutator, crossover from .utils import zip_with_probabilities, weighted_random from .neat import NEAT, neu...
egdman/neat-lite
neat/__init__.py
Python
mit
354
[ "NEURON" ]
950bfd76055e22a3c2bbf800169e329bfa6d36f7ecbcfebd04aa000862998c48
''' Created on 2013-05-26 @author: brian ''' import string from src.util import Cardinal from src.util import Vector2 import pygame from pygame.locals import * class Cast(object): def __init__(self, player, ability): self.player = player self.projectile = None self.spell = ability ...
Greymerk/python-rpg
src/actions/cast.py
Python
gpl-3.0
2,082
[ "Brian" ]
16577da08ac04852cd9df5f4114aeba8b99b666a5157932326e303853f6400c8
#!/usr/bin/env python import sys import math import numpy as np import matplotlib.pyplot as plt import os.path try: import gi gi.require_version('NumCosmo', '1.0') gi.require_version('NumCosmoMath', '1.0') except: pass from gi.repository import GObject from gi.repository import NumCosmo as Nc from gi.reposit...
NumCosmo/NumCosmo
examples/example_funnel.py
Python
gpl-3.0
5,108
[ "Gaussian" ]
30fc3a777b3844d4f7b8612d8678289cf95968ddd24ecd9e7b071b6b14740ff9
#!/usr/bin/env python #JSON {"lot": "UKS/6-31G(d)", #JSON "scf": "CDIISSCFSolver", #JSON "er": "cholesky", #JSON "difficulty": 6, #JSON "description": "Basic UKS DFT example with MGGA exhange-correlation functional (TPSS)"} import numpy as np from horton import * # pylint: disable=wildcard-import,unused-wildcard-...
theochem/horton
data/examples/hf_dft/uks_methyl_mgga.py
Python
gpl-3.0
4,403
[ "Gaussian" ]
3a10803f8dc00916721e8d8fe7fc6c3eda5bdf301b0b9c594327fd868c70501b
# # This file is part of GreatFET # """ Chipcon programmer for devices supporting the CC1110/CC2430/CC2510 Debug and Programming Interface Specification as defined in SWRA124. """ import time from enum import IntFlag from ..programmer import GreatFETProgrammer FLASH_PAGE_SIZE = 1024 # 1KB FLASH_WORD_SIZE ...
dominicgs/GreatFET-experimental
host/greatfet/programmers/chipcon.py
Python
bsd-3-clause
12,651
[ "CRYSTAL" ]
679e8d655dcc462142d07f97ae28539fb1f19d2f7b6544205694eb80ccb0e0d7
# Copyright (c) 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
barnsnake351/nova
nova/tests/unit/compute/test_resource_tracker.py
Python
apache-2.0
59,254
[ "exciting" ]
44460028df6df4e94abcd071668d5581d2c80cc65254d0fae37dece6b6bd50c8
# $HeadURL: $ ''' Test_RSS_Command_GOCDBStatusCommand ''' import mock import unittest import DIRAC.ResourceStatusSystem.Command.GOCDBStatusCommand as moduleTested from datetime import datetime, timedelta __RCSID__ = '$Id: $' ################################################################################ clas...
avedaee/DIRAC
ResourceStatusSystem/Command/test/Test_RSS_Command_GOCDBStatusCommand.py
Python
gpl-3.0
10,917
[ "DIRAC" ]
624d813c80a39bb057ff664a5b963578a34d682afb00732c0e42f4dd215bc723
""" Channel module Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ # Imports from pycsp.greenlets.scheduling import Scheduler from pycsp.greenlets.channelend import Cha...
runefriborg/pycsp
pycsp/greenlets/channel.py
Python
mit
6,454
[ "Brian" ]
75d6fe2b4dea15083d36f506cc136f5c8a59a27038088176f0d6c67b3b001b86
#!/usr/bin/env python """ mynetwork.py: Network client/server module. Note that I based this on code from a book ["Python Network Programming" by ??]. There will be similarities to the original, but I believe that this code is essentially mine. Copyright 2016 Brian Romanchuk Licensed under the Apache License, Ver...
brianr747/Simple4Xpygame
common/mynetwork.py
Python
apache-2.0
14,675
[ "Brian" ]
e16518eff735b1a0489d117e1c6b6fe280ef986c2f0443f2cb1557f20e6e97cf
# # This file is part of Sequana software # # Copyright (c) 2016-2021 - Sequana Development Team # # Distributed under the terms of the 3-clause BSD license. # The full license is in the LICENSE file, distributed with this software. # # website: https://github.com/sequana/sequana # documentation: http://sequana.r...
sequana/sequana
sequana/freebayes_bcf_filter.py
Python
bsd-3-clause
9,705
[ "pysam" ]
88a10a21a0a20f0e7e4555de81f83957ca80d7bf36d2d9cb798be5a5ae064108
# Copyright 2000 by Jeffrey Chang, Brad Chapman. All rights reserved. # Copyright 2006-2008 by Peter Cock. 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. """Code to work with ...
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/Bio/GenBank/__init__.py
Python
mit
58,219
[ "BioPerl", "Biopython" ]
a61158c8e866a4626199f73982bdbfe9223aec2554d148cfa008e18851031e09
######################################################################## # File: ReplicateAndRegister.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/03/13 18:49:12 ######################################################################## """ :mod: ReplicateAndRegister ========================== .. mo...
fstagni/DIRAC
DataManagementSystem/Agent/RequestOperations/ReplicateAndRegister.py
Python
gpl-3.0
23,831
[ "DIRAC" ]
56eeb88cd15eeb6fd19c0567061c1dcebbb8a52a12b4b92f2aa439f665cd49a2
from __future__ import unicode_literals import logging from django.http.response import Http404 import rest_framework.status as status from rest_framework.generics import GenericAPIView from rest_framework.parsers import JSONParser from rest_framework.response import Response from data.data.data import Data from dat...
ngageoint/scale
scale/diagnostic/views.py
Python
apache-2.0
12,519
[ "CASINO" ]
78fed45c359385a42fd605a45cb822be4c8620b7783c08bcc1c17bee13f5c0e9
import numpy as np def affine_forward(x, w, b): """ Computes the forward pass for an affine (fully-connected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimen...
UltronAI/Deep-Learning
CS231n/reference/CS231n-master/assignment2/cs231n/layers.py
Python
mit
23,547
[ "NEURON" ]
f79edc2cffb0eb5dae3fa5a969610d8f332bad07741bdfbff54b20b53c922c5c
# Copyright (c) 2012-2015 Netforce Co. Ltd. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publ...
anastue/netforce
netforce_service/netforce_service/models/job.py
Python
mit
20,893
[ "VisIt" ]
833a79bd97b6e2b91e65cb0b790d77e6548f54e02722d09be095297b505cec31
######################################################################### ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2013 Upinder S. Bhalla. and NCBS ## It is made available under the terms of the ## GNU Lesser General Public License version 2...
dilawar/moose-full
moose-examples/snippets/reacDiffConcGradient.py
Python
gpl-2.0
5,801
[ "MOOSE" ]
ac03571aefb9a8c4950c4813b6f5ebd68a4ae84f96687fa32610b7debc118592
from crystal_dashboard.api import filters as api from crystal_dashboard.dashboards.crystal import exceptions as sdsexception from crystal_dashboard.dashboards.crystal.filters.dependencies import models as dependency_models from crystal_dashboard.dashboards.crystal.filters.dependencies import tables as dependency_tables...
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/filters/tabs.py
Python
gpl-3.0
5,312
[ "CRYSTAL" ]
87dd4ae9cff7b5a2fa30462710ee2df7794414aaecbaff41bb6265056eb0739c
import urllib.request from bs4 import BeautifulSoup import time #This stores the set of all the ngos with their date_of_reg in the format name-date_of_reg #so if there is any repetation of NGO then we can easily detect it set_of_ngo = set() def capitalize(string): ''' Function for capitalizing the differ...
lambainsaan/NGO_Parser
parser.py
Python
mit
5,853
[ "ADF" ]
67e5876b8fd232f59115dc0d0e8eccf41779c50b368206ded175cfacf47bdc57
# Copyright 2016 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...
girving/tensorflow
tensorflow/python/autograph/core/converter.py
Python
apache-2.0
14,365
[ "VisIt" ]
9ae16cf01cc0fe500211d81a2b120d70b0c30a71e631be47ede6b5bd7a5791da
import ase.units as units from ase import * from hotbit import * from box.md import check_energy_conservation from ase import io M=7 atoms = Atoms('Au2',[(5,0,0),(5,2.5,0.3)],container='Wedge') atoms.set_container(M=M,height=5.0) calc=Hotbit(SCC=False,txt='-',kpts=(M,1,1)) atoms.set_calculator(calc) e1 = atoms.get_po...
pekkosk/hotbit
hotbit/test/Au_chain.py
Python
gpl-2.0
702
[ "ASE" ]
5d5b25ea6dec94cb627b85d7879145c08526c8e521e328ad48fa590bccc3dbea
#!/usr/bin/env python # # Created 12-Mar-2013 by Daniel Margala (University of California, Irvine) <dmargala@uci.edu> # # usage: # Import libraries import math import os import random from itertools import cycle import numpy as np import pyfits as pf import matplotlib as mpl mpl.use('Agg') from matplotlib import pyp...
dmargala/blupe
python/old/compareBlueCalibration.py
Python
mit
15,694
[ "Galaxy" ]
acbb4aada29040089098842c12cc2a7c7eb778c5056a75d1b946cfca4314fe9a
# -*- coding: utf-8 -*- # # This file is a plugin for EventGhost. # Copyright © 2005-2020 EventGhost Project <http://www.eventghost.net/> # # EventGhost 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 v...
tfroehlich82/EventGhost
plugins/X10/__init__.py
Python
gpl-2.0
10,254
[ "Firefly" ]
4e3013c706f70be463db074520ce236579a440402b3da5add9647f2397e2498a
""" .. _tut_compute_covariance: Computing covariance matrix =========================== Many methods in MNE, including e.g. source estimation and some classification algorithms, require covariance estimations from the recordings. In this tutorial we cover the basics of sensor covariance computations and construct a n...
mne-tools/mne-tools.github.io
0.15/_downloads/plot_compute_covariance.py
Python
bsd-3-clause
8,522
[ "Gaussian" ]
c7fd559b03944db8af22446d0709726ea7b067405f90a33c3eace0be23f5bbf7
# -*- coding:utf-8 -* import requests import json import Public_Base_Method as pbm import datetime #获取员工画像 def getHuaxiang(baseurl,cookie): print "获取员工画像" url = "http://"+baseurl+"/report/faceTop1.action" headers = { "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "Use...
NJ-zero/Android
requests_demo/gljsc/Web_Method_gljsc.py
Python
mit
5,031
[ "VisIt" ]
f5b7c278067fc6b37645c1a9e115723c65ef4cf3c8cbe6be53d75c23056c6ffd
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Views tests for the OSF.''' from __future__ import absolute_import import unittest import json import datetime as dt import mock import httplib as http import math import time from nose.tools import * # noqa PEP8 asserts from tests.test_features import requires_search...
ticklemepierce/osf.io
tests/test_views.py
Python
apache-2.0
186,543
[ "Brian" ]
d29c8c056673f94e5bb898e28f79a644febbf7e1a00e5a899b1a87965de72462
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Documentation: This file reformats NEST output in a convinient way. ''' import os import numpy as np from glob import glob from hybridLFPy import helpers import tarfile from pathlib import Path from mpi4py import MPI ################################### # Initializati...
espenhgn/hybridLFPy
examples/Hagen_et_al_2016_cercor/nest_output_processing.py
Python
gpl-3.0
4,330
[ "NEURON" ]
b19ba4b13d9cc260aeb6cc39979bf04122f33b8773e6602188d031470144e8b6
# Copyright 2006 by Sean Davis. 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. # # $Id: __init__.py,v 1.12 2009-04-24 12:03:45 mdehoon Exp $ # Sean Davis <sdavis2 at mail dot ni...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/UniGene/__init__.py
Python
gpl-2.0
24,840
[ "Biopython" ]
0863c6eac47fb90e0b33726b6680e12c59ba005b730de94753e7dbe9090b8d20
#!/usr/bin/env python """ openmoltools: Tools for Small Molecules, Antechamber, OpenMM, and More. COPYRIGHT AND LICENSE @author John D. Chodera <jchodera@gmail.com> @author Kyle A. Beauchamp <kyleabeauchamp@gmail.com> @author David L. Mobley <dmobley@mobleylab.org> All code in this repository is released under the ...
jchodera/openmoltools
openmoltools/__init__.py
Python
gpl-2.0
1,070
[ "Amber", "Gromacs", "OpenMM" ]
c58094e5047c0102fcf26f7421665ead0d4cb5b33aa22b60d5ea66e57b7b596d
import sys from time import ctime import numpy as np from ase.parallel import paropen from ase.units import Ha from gpaw import GPAW from gpaw.response.df0 import DF from gpaw.utilities import devnull from gpaw.kpt_descriptor import KPointDescriptor from gpaw.mpi import rank, size, world from gpaw.response.parallel imp...
robwarm/gpaw-symm
gpaw/xc/rpa_correlation_energy.py
Python
gpl-3.0
20,898
[ "ASE", "GPAW" ]
3b5ec8f7681921f7f20ae1bd45d56f733b7ac27197e0dd79e0a6fab8eef4897f
"""Smarter file opener that understands compression.""" import io import os from subprocess import Popen, PIPE from pathlib import Path import pysam def spawn_compressor(exe, filename, mode, buffering=-1, encoding=None, errors=None, newline=None): """Spawn a subprocess to run a (de)compressor like gzip or bzip2...
bioinformed/vgraph
vgraph/smartfile.py
Python
apache-2.0
4,306
[ "pysam" ]
ed78045568d3aa138da39ea34b62fcdadc66278bd55b8ef5699e1c7284dfceed
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
demis001/scikit-bio
skbio/stats/evolve/tests/test_hommola.py
Python
bsd-3-clause
8,058
[ "scikit-bio" ]
706174f90fbcbc75d4e5bc7a3a14bb1eb3dede2f4ff351ee1a2bd02fcc5816c8
""" FASTA/QUAL format (:mod:`skbio.io.format.fasta`) ================================================ .. currentmodule:: skbio.io.format.fasta The FASTA file format (``fasta``) stores biological (i.e., nucleotide or protein) sequences in a simple plain text format that is both human-readable and easy to parse. The fi...
demis001/scikit-bio
skbio/io/format/fasta.py
Python
bsd-3-clause
38,087
[ "BLAST", "scikit-bio" ]
52c80fe64a99bb53cf685b5411f38f15c195b2128ab234ae29753005e2bec19d
# (c) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible 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....
gtaylor/ansible
lib/ansible/runner/lookup_plugins/url.py
Python
gpl-3.0
1,588
[ "Brian" ]
9b69600768351a64e6b711d8c60d2dc4f362e173bd0ab650ecc242390c37c506
''' Module : Main Description : The main entry point for the program. Copyright : (c) Bernie Pope, 2017 License : MIT Maintainer : bjpope@unimelb.edu.au Portability : POSIX This program reads in a Common Workflow Language pipeline description and generates a visualisation as output. ''' from __future__...
m-gall/cwl_explorer
cwl_explorer/cwl_explorer.py
Python
mit
5,826
[ "Cytoscape" ]
e924e081bb1c0e775f2636eae59a32483550c15cc90bdd3ed862ef078f8bf010
""" Module simplifying manipulation of XML described at http://libvirt.org/formatdomain.html """ import logging from .. import xml_utils from .. import utils_misc from ..libvirt_xml import base, accessors, xcepts from ..libvirt_xml.devices import librarian from ..compat_52lts import results_stdout_52lts, results_stde...
ldoktor/avocado-vt
virttest/libvirt_xml/vm_xml.py
Python
gpl-2.0
121,139
[ "VisIt" ]
0bc62b238dd3a4740319afc36c1f762dd00c608c132e801fcdbf0552d181cfb4
""" ==================== Active Contour Model ==================== The active contour model is a method to fit open or closed splines to lines or edges in an image. It works by minimising an energy that is in part defined by the image and part by the spline's shape: length and smoothness. The minimization is done impl...
Hiyorimi/scikit-image
doc/examples/edges/plot_active_contours.py
Python
bsd-3-clause
3,287
[ "Gaussian" ]
3d5d244e1e48c18d62012dedd13d87ba12a012dc39ad1a2d894fbbd6f48190c8
# -*- coding: utf-8 -*- from __future__ import absolute_import import re from ast import parse as ast_parse from ast import ( And, BitAnd, BitOr, BoolOp, Expression, Name, NodeTransformer, Or) from keyword import kwlist from warnings import warn from cobra.core.species import Species from cobra.util import reset...
zakandrewking/cobrapy
cobra/core/gene.py
Python
lgpl-2.1
9,762
[ "VisIt" ]
0dcb947449def15a0f0c0993cfc4fdb1919cdd7d9baacec37ee40f838a2d49b9
""" Collection of user jobs for testing purposes """ # pylint: disable=invalid-name from __future__ import print_function import os from DIRAC import rootPath from DIRAC.Interfaces.API.Job import Job from DIRAC.Interfaces.API.Dirac import Dirac from DIRAC.tests.Utilities.utils import find_all # parameters # Commo...
fstagni/DIRAC
tests/Utilities/testJobDefinitions.py
Python
gpl-3.0
5,317
[ "DIRAC" ]
cf1cae8e408fc192ca83c7d69766591e26f9aad8b76e0c28843f920814e2bf72
#import sys import re import json import random import codecs import datetime from io import StringIO from html.parser import HTMLParser from docassemble.base.functions import word, get_currency_symbol, comma_and_list, server, custom_types from docassemble.base.util import format_date, format_datetime from docassemble....
jhpyle/docassemble
docassemble_base/docassemble/base/standardformatter.py
Python
mit
215,175
[ "VisIt" ]
5d999313ce5fb2295dcc9f5dba49bb3126cd1c51ebcaf0b7c8ecd7c994da9c28
# Pizza.py toolkit, www.cs.sandia.gov/~sjplimp/pizza.html # Steve Plimpton, sjplimp@sandia.gov, Sandia National Laboratories # # Copyright (2005) Sandia Corporation. Under the terms of Contract # DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains # certain rights in this software. This software is...
nchong/icliggghts
tools/python/pizza/log.py
Python
gpl-2.0
9,584
[ "LAMMPS" ]
fcd4dad697532993a955a267100a67b6eb70a117b7f38c44a934a615bd810359
# ------------------------------------------------------------------------- # Name: READ METEO input maps # Purpose: # # Author: PB # # Created: 13/07/2016 # Copyright: (c) PB 2016 # ------------------------------------------------------------------------- from cwatm.management_modules.data_handling ...
CWatM/CWatM
cwatm/hydrological_modules/environflow.py
Python
gpl-3.0
6,137
[ "NetCDF" ]
186e09fb71c559f128a3c818a2456ada34593f0c0c714f584b8bea44273ac249
#!/usr/bin/env python """ Created by: Lee Bergstrand Description: A program that extracts the proteins annotations from a Genbank file and as well as some information about the organism in the file. Stores the protein annotations as a Fasta. Appends organism info to a csv file. Requirements: - This script...
LeeBergstrand/HMMER-DB
GenbankToFASTAandOrganismTableRow.py
Python
mit
7,337
[ "BLAST", "Biopython" ]
66f6b44dfe4a8832dbd9a1bfb9444a0ab5f4f16afe04a2f040465309a4b84f5f
# GromacsWrapper # Copyright (c) 2009-2010 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ GromacsWrapper Overview ======================= **GromacsWrapper** (package :mod:`gromacs`) is a thin shell around the `Gromacs`_ ...
Becksteinlab/GromacsWrapper
gromacs/__init__.py
Python
gpl-3.0
11,825
[ "Gromacs" ]
3e23bd52ebe94106acd395c06e41e7d4b0d286befbf21c3f99b88f7202d56d8b
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright 2012-2016 Claude Zervas # email: claude@utlco.com #----------------------------------------------------------------------------- """ An Inkscape extension to create quasicrystalline/Penrose tesselations. ==...
utlco/tcnc
tcnc/quasink.py
Python
lgpl-3.0
41,121
[ "CRYSTAL" ]
d8ca32c8ad99a969a037d22ba5bba26cf0a161afad7a960206c3fb416eae9bcf
""" core implementation of testing process: init, session, runtest loop. """ import re import py import pytest, _pytest import os, sys, imp try: from collections import MutableMapping as MappingMixin except ImportError: from UserDict import DictMixin as MappingMixin from _pytest.runner import collect_one_node...
uglyboxer/linear_neuron
net-p3/lib/python3.5/site-packages/_pytest/main.py
Python
mit
26,325
[ "VisIt" ]
c4d05c123a07e43929ad0b7d39f63456814bd50ea77a621471c3541c7991dcf5
""" functions to access the data dictionary in a clearer way """ import os import toolz as tz from bcbio.utils import file_exists from bcbio.log import logger import sys LOOKUPS = { "config": {"keys": ['config']}, "num_cores": {"keys": ['config', 'algorithm', 'num_cores'], "default": 1}, ...
verdurin/bcbio-nextgen
bcbio/pipeline/datadict.py
Python
mit
7,009
[ "Galaxy" ]
d198a3d114d36566b9c8def04f852d8cd2740e40c657ff07ceb1eae2a0e9a978
# Copyright (C) 2011 by Brandon Invergo (b.invergo@gmail.com) # 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 code is adapted (with permission) from the C source code of chi2.c, # written by Z...
zjuchenyuan/BioWeb
Lib/Bio/Phylo/PAML/chi2.py
Python
mit
3,371
[ "Biopython" ]
881424ae88c730be2e04bd48f1951010593c85fef6011f4032ccea18414ca695
r""" .. warning:: This model and this model description are under review following concerns raised by SasView users. If you need to use this model, please email help@sasview.org for the latest situation. *The SasView Developers. September 2018.* Definition ---------- Calculates ...
SasView/sasmodels
sasmodels/models/sc_paracrystal.py
Python
bsd-3-clause
6,760
[ "CRYSTAL", "Gaussian" ]
ecd73838d9bafc723c820a79c2df0633b0ea78b5192805a5365bcc1d6d724f22
#!/usr/bin/env python from __future__ import print_function import math import vtk # Available surfaces are: SURFACE_TYPE = {"PLANE", "SPHERE", "PARAMETRIC_SURFACE"} def WritePNG(ren, fn, magnification=1): """ Save the image as a PNG :param: ren - the renderer. :param: fn - the file name. :par...
lorensen/VTKExamples
src/Python/Visualization/ElevationBandsWithGlyphs.py
Python
apache-2.0
12,567
[ "VTK" ]
ab853a2b223d71493b6e50a8e3fd96216835947731ef0e418a713b4e43ffcfed
import unittest from paraview.simple import PointSource, Connect, Disconnect, Delete, Line from simphony_paraview.core.paraview_utils import typical_distance class TestTypicalDistance(unittest.TestCase): def setUp(self): Connect() self.source = None def tearDown(self): if self.sour...
simphony/simphony-paraview
simphony_paraview/core/tests/test_typical_distance.py
Python
bsd-2-clause
999
[ "ParaView" ]
8d526e54cba813a7b2ba5b1ce25adc7471ebfa80816ce214971610fa5a06f575