text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#! /usr/env/python """A class used to create and manage regular raster grids for 2D numerical models in Landlab. Do NOT add new documentation here. Grid documentation is now built in a semi- automated fashion. To modify the text seen on the web, edit the files `docs/text_for_[gridfile].py.txt`. """ import numpy as np...
landlab/landlab
landlab/grid/raster.py
Python
mit
91,018
[ "NetCDF" ]
4638ea108c8825be53ea5423da4a09a3944955cf0050cfd99b2b3f0e034cac31
import unittest from test.support import (verbose, refcount_test, run_unittest, strip_python_stderr, cpython_only) from test.script_helper import assert_python_ok, make_script, temp_dir import sys import time import gc import weakref try: import threading except ImportError...
Orav/kbengine
kbe/src/lib/python/Lib/test/test_gc.py
Python
lgpl-3.0
34,456
[ "VisIt" ]
b2fc07358ef7431f5aa4c5431bc6330134f65f9a9cf9745991135065ce7f0d4f
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools import argparser, run_flow from search import searchsongs def creat...
ankit96/flockathon
create_playlist.py
Python
mit
2,586
[ "VisIt" ]
b5d4994d94686b9d964d100f548d1be0c90d4da720caa4549d612afe19ab292b
import os import os.path as op import shutil as sh import fnmatch as fn import errno def copy(src, dest): try: sh.copytree(src, dest) except OSError as e: # If the error was caused because the source wasn't a directory if e.errno == errno.ENOTDIR: sh.copy(src, dest) ...
moosekaka/sweepython
rename_files.py
Python
mit
4,380
[ "VTK" ]
4f7d8c774458d8a8940b8a4841cad684b2afaa46c280b783d1049f05aec3efa6
# -*- coding: utf-8 -*- from neuron import Neuron
blasterbug/SmileANN
__init__.py
Python
gpl-2.0
50
[ "NEURON" ]
a38bb99c1aa62d17655424c369c5bb8ad463f945d721ccfdde21b3cdf563ada3
import numpy import opengm import os import sys import random class TestAllExampes: def test_run(self): for r, d, f in os.walk("examples"): for files in f: if files.endswith(".py"): if(not str(files).endswith('gui.py')): pass ...
yanlend/opengm
src/interfaces/python/test.py
Python
mit
47,835
[ "VisIt" ]
ad38587a0bc616e1e3e1e59e26b15cc3535581791e61855129c207e4751cc933
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 1: Fundamental Algorithms Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2013 by Jeff Heaton Licensed under the Apache License, Version 2...
trenton3983/Artificial_Intelligence_for_Humans
vol1/python-examples/examples/example_ocr.py
Python
apache-2.0
8,571
[ "VisIt" ]
1ed80270acd422bad69f31ed6de1c1bfb9ac4efaca56476a5e4042fc13f053a1
############################################################################ # # Program: GDCM (Grassroots DICOM). A DICOM library # # Copyright (c) 2006-2011 Mathieu Malaterre # All rights reserved. # See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details. # # This software is distributed ...
gbook/nidb
src/gdcm/Utilities/VTK/Examples/Python/headsq2dcm.py
Python
gpl-3.0
1,429
[ "VTK" ]
74ee30be074adb027ca934c5aad9967071b475713b22a69d7edbef8c4e23d3a1
######################################################################## # File: RequestTask.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/03/13 12:42:45 ######################################################################## """ :mod: RequestTask ================= .. module: RequestTask :sy...
yujikato/DIRAC
src/DIRAC/RequestManagementSystem/private/RequestTask.py
Python
gpl-3.0
20,669
[ "DIRAC" ]
9165539e32b1f67673f96a533a7d3d1f740c3f49bc3b11bd68c84fa2e15447ae
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
edespino/gpdb
src/test/tinc/tincrepo/mpp/models/regress/sql_related/regress_sql_concurrency_test_case/regress_sql_scenario_test_case.py
Python
apache-2.0
3,705
[ "ORCA" ]
91ec8d613b8e3c705d3ab48094f03cfa6dbf47e6e0f39915155a8c260713cc5c
#!/usr/bin/env python ''' Tool for generating histograms of torsion dihedral distribution Input: - xyz file to be converted to gro - gro/pdb/xtc file to be used directly in g_angle of gromacs - meta_ndx file to contain information about which angle to calculate this file should look line: [ name_of_angle ] 1...
dzanek/dppc
angle_histogram.py
Python
mit
6,119
[ "Gromacs" ]
d1bdc973d1da56a9f1422e06a3e1635ceead5c06926dbb62901d8fd683645a12
# vim:ai:et:ff=unix:fileencoding=utf-8:sw=4:ts=4: # conveyor/src/main/python/conveyor/visitor.py # # conveyor - Printing dispatch engine for 3D objects and their friends. # Copyright © 2012 Matthew W. Samsonoff <matthew.samsonoff@makerbot.com> # # This program is free software: you can redistribute it and/or modify it ...
makerbot/conveyor
src/main/python/conveyor/visitor.py
Python
agpl-3.0
5,074
[ "VisIt" ]
7eeb9488e86bcec9ae8d1789feecc93e7583654e997cd72a34471cde88aa37f6
""" This file contains view functions for wrapping the django-wiki. """ import logging import re import cgi from django.conf import settings from django.shortcuts import redirect from django.utils.translation import ugettext as _ from wiki.core.exceptions import NoRootURL from wiki.models import URLPath, Article fro...
fintech-circle/edx-platform
lms/djangoapps/course_wiki/views.py
Python
agpl-3.0
4,351
[ "VisIt" ]
4dfc6b880aeea1049486173625b202fbafe588f85ab8630a720078596c88051c
#!/bin/env python """script to concatenate the dirac.cfg file's Systems sections with the content of the ConfigTemplate.cfg files.""" from collections import OrderedDict import os import textwrap import re from DIRAC.Core.Utilities.CFG import CFG from DIRAC import gLogger, S_OK, S_ERROR def updateCompleteDiracCFG()...
petricm/DIRAC
docs/Tools/UpdateDiracCFG.py
Python
gpl-3.0
3,518
[ "DIRAC" ]
60840536961168f894fe89b62bdffd4f5708876edc4c4f4bf4c9c514776b5a86
""" Script to prepare datafiles for analysis. Occasionally, we need to create a new version of the datafiles that are used in our continuous integration testing. Typically, this occurs when a new version of Python changing something about the way bytecode is stored, meaning that old CVs can't be reloaded in the new Py...
choderalab/openpathsampling
examples/prep_example_data.py
Python
lgpl-2.1
10,994
[ "Gaussian" ]
e9688de616ff84cbe1507fd16cd8ea95aa5c211c03190434e13ea7574db7357d
""" Config global options Options can be changed at run time. See tests/test_backoff.py for usage example Options: BACKOFF_MAX_TRIES: maximum number of times to retry failed request to wikidata endpoint. Default: None (retry indefinitely) To disable retry, set value to 1 BACKOFF_MAX_VALUE: maximum numb...
SuLab/WikidataIntegrator
wikidataintegrator/wdi_config.py
Python
mit
260,018
[ "Dalton", "Gaussian" ]
5f4575fbae2f21d2537feb382a757985e75668bc5f607f4ba77309e514a95f91
from bioblend.galaxy import GalaxyInstance from bioblend.galaxy.histories import HistoryClient from bioblend.galaxy.libraries import LibraryClient from bioblend.galaxy.tools import ToolClient from bioblend.galaxy.datasets import DatasetClient from bioblend.galaxy.jobs import JobsClient from urllib.parse import urlpars...
mainulhossain/phenoproc
app/biowl/libraries/galaxy/adapter.py
Python
mit
66,841
[ "BWA", "Galaxy" ]
8a7517ffdf979aea9e4a737de477b86d4262341017982f6660de69da3e6a128b
# Copyright 2017 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 agreed t...
joshua-cogliati-inl/raven
framework/CodeInterfaces/RELAP7/RELAP7Interface.py
Python
apache-2.0
17,303
[ "MOOSE" ]
8634d97fcd2186b2587a919f68f1f8570df659c1570b3cad4c46b250c5960065
""" alg_fri_planar_beamforming.py: LEAP reconstruction algorithm (in general) with beamforming Copyright (C) 2017 Hanjie Pan 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 L...
hanjiepan/LEAP
alg_fri_planar_beamforming.py
Python
gpl-3.0
114,224
[ "DIRAC", "Gaussian" ]
5826b6ebd66d970a90e5be8fbf21f50b5c3a1b213a47633ae0aeee4e0d943100
# -*- Mode: Python; coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Sof...
andrebellafronte/stoq
stoqlib/gui/utils/keyboardhandler.py
Python
gpl-2.0
1,967
[ "VisIt" ]
a3a8415baff514298e0d75b54276126c424ad7441847328bee626116fe329bcb
import os.path from subprocess import check_call, CalledProcessError import shutil from tempfile import NamedTemporaryFile import sys import pysam from bam_crumbs.utils.flag import create_flag from bam_crumbs.settings import get_setting from crumbs.utils.bin_utils import get_num_threads # pylint: disable=C0111 def...
pziarsolo/bam_crumbs
bam_crumbs/bam_tools.py
Python
gpl-3.0
5,972
[ "pysam" ]
cb27afc8d5c8e98637c48a9e021e1f8b6832180fb1c8452d78166203b558e813
# -*- coding: utf-8 -*- # Copyright (C) 2019 - 2020 by Pedro Mendes, Rector and Visitors of the # University of Virginia, University of Heidelberg, and University # of Connecticut School of Medicine. # All rights reserved. # Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc.,...
copasi/COPASI
copasi/bindings/python/unittests/Test_CCopasiProblem.py
Python
artistic-2.0
1,744
[ "COPASI" ]
9618c10d996e72b565a12aa8c846c3b4b89a84f4f2205969630749c971959d2e
#!/usr/bin/env python # Copyright (C) 2013 Christian T. Jacobs. # This file is part of PyQSO. # PyQSO 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 # ...
dnet/pyqso
pyqso/grey_line.py
Python
gpl-3.0
3,991
[ "NetCDF" ]
2b52c2aa75fe4e7a319b426c19d5fd67c1771ad67b5b87a7263a5caae0097f54
# Copyright 1999 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # Patched by Brad Chapman. # Chris Wroe added modifications for work in myGrid import sys # ...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Blast/NCBIWWW.py
Python
gpl-2.0
10,442
[ "BLAST", "Biopython" ]
d03ed4c77dd6814a2cfb89007f96fdcc8e748712470fc9604744ddf65c78f3fd
# $Id$ # # Copyright (C) 2003-2008 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """unit testing code ...
bp-kelley/rdkit
rdkit/ML/UnitTestBuildComposite.py
Python
bsd-3-clause
7,293
[ "RDKit" ]
7d9c74dc08f0a1dd536300e6b52d90bed5b0a0a1b405fd55dc028f1996191f35
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import re from monty.io import zopen from monty.re import regrep from collections import defaultdict from pymatgen.core.periodic_table import Element from pymatgen.core.lattice import Lattice from pymatgen.c...
fraricci/pymatgen
pymatgen/io/pwscf.py
Python
mit
18,708
[ "CRYSTAL", "pymatgen" ]
a956158870a19eb9534fa36f93eb24232bcc3721327906740c667d53ba574deb
# Module to run tests on galaxy modules from __future__ import print_function, absolute_import, division, unicode_literals # TEST_UNICODE_LITERALS import pytest import os import numpy as np from astropy.table import Table from astropy import units from astropy.coordinates import SkyCoord from frb.galaxies import ph...
FRBs/DM
frb/tests/test_photom.py
Python
bsd-3-clause
1,444
[ "Galaxy" ]
2f22111ad92cf3926b8a2547084e13ffaf651ba840e7459fa34662d7d994e8fb
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/article-recommender
recommender/models.py
Python
apache-2.0
40,296
[ "VisIt" ]
64e5122366c95be1bac4760c92b463104b86c7570ca9e088d57bd3f874a9b455
# Copyright (C) 2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later versio...
espressomd/espresso
testsuite/scripts/samples/test_minimal-diamond.py
Python
gpl-3.0
1,002
[ "ESPResSo" ]
24a47c13248d99fc2622c74d88e4ccb0ce8a0d16e5c1c00933d2317e80dc6066
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This package provides the modules to perform FEFF IO. FEFF: http://feffproject.org/feffproject-feff.html """ from .inputs import ( VALID_FEFF_TAGS, Atoms, FeffParserError, Header, Paths, Potential...
materialsproject/pymatgen
pymatgen/io/feff/__init__.py
Python
mit
426
[ "FEFF", "pymatgen" ]
3643a8fd976c3e1cab26b4e093c267d2d96c1f3a9e3242ca4fc54b972669a80b
import urllib.parse web_config = { "game": "/game/{}", "search.filtering": "/games/ajax/filtered", "user.data": "/userData.json", "user.games": "/user/data/games", "user.wishlist": "/user/wishlist.json", "user.wishlist.add": "/user/wishlist/add/{}", "user.wishlist.remove": "/user/wishlis...
Yepoleb/pygogapi
gogapi/urls.py
Python
mit
4,418
[ "Galaxy" ]
7c8f0725fc67a15cefb846445448291af8e5363ebe03e8f8a6b3e4b07db8b0d7
#!/usr/bin/env python ######################################################################## # File : dirac-wms-job-kil # Author : Stuart Paterson ######################################################################## """ Issue a kill signal to a running DIRAC job """ from __future__ import print_function __R...
fstagni/DIRAC
Interfaces/scripts/dirac-wms-job-kill.py
Python
gpl-3.0
1,101
[ "DIRAC" ]
85a9becce59c78dd1c0d5c6641ab6c55e435e9090600be7e50e61cafd61521f1
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/procedures/wrappers_cfour.py
Python
gpl-2.0
36,698
[ "CFOUR", "Psi4" ]
8525454d1af7c85092e760294373d723ab24da06ef3dd74dda46f21bad2e71c5
from vtk import * source = vtkRandomGraphSource() source.DirectedOff() source.SetNumberOfVertices(100) source.SetEdgeProbability(0) # Basically generates a tree source.SetUseEdgeProbability(True) source.SetStartWithTree(True) source.IncludeEdgeWeightsOn() # Connect to the Boost centrality filter. centrality = vtkBoos...
b3c/VTK-5.8
Examples/Infovis/Python/selection.py
Python
bsd-3-clause
3,435
[ "VTK" ]
42e14e224d3806c11f15dcef3c4c833c2d98528b3520395dc1eb36df5e55c0bd
import os from ase import Atoms from ase.calculators.exciting import Exciting # test structure, not real a = Atoms('N3O', [(0, 0, 0), (1, 0, 0), (0, 0, 1), (0.5, 0.5, 0.5)], pbc=True) calculator = Exciting( dir='excitingtestfiles', speciespath=os.environ['EXCITINGROOT']+'/species', paramdict={'title':{'te...
grhawk/ASE
tools/doc/ase/calculators/exciting.py
Python
gpl-2.0
1,199
[ "ASE", "exciting" ]
0101fd0db3d75be7bfd1eb4dedf978edfc396caad8ac7a07e2334bc0f0716375
from __future__ import print_function, unicode_literals import re import itertools from HTMLParser import HTMLParser from coherence import log from coherence.upnp.core import DIDLLite from coherence.upnp.core.utils import ReverseProxyUriResource from coherence.upnp.core.DIDLLite import ( Resource, ) from coherenc...
SAPikachu/moe-upnp
coherence_backend.py
Python
mit
11,272
[ "MOE" ]
0b0a51a0ebdbba82902346f851e6994c5d25958498f9759f35b38ee2c8555746
import re def provides_facts(): """ Returns a dictionary keyed on the facts provided by this module. The value of each key is the doc string describing the fact. """ return {'personality': 'A string which is generally based on the ' 'platform and indicates the behavior o...
spidercensus/py-junos-eznc
lib/jnpr/junos/facts/personality.py
Python
apache-2.0
2,446
[ "Firefly" ]
7c3840f9343a77ecd76729af65347693f92e4a3f1c3c4980cc1f3197b34987fb
""" block_copy.py Optimized functions for copying all world data (blocks, tile entities, entities, biomes) from one world or schematic file to another. """ from datetime import datetime import logging from mceditlib.selection import BoundingBox, SectionBox log = logging.getLogger(__name__) import numpy impo...
Rubisk/mcedit2
src/mceditlib/block_copy.py
Python
bsd-3-clause
7,762
[ "VisIt" ]
68f0d593ac8d934eb4e13d91bb71439e4b70cbe55f4bacf3cdd08859a1193a48
# Copyright (C) 2017-2020 The Software Heritage developers # See the AUTHORS file at the top-level directory of this distribution # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information import random from hypothesis import given from django.util...
SoftwareHeritage/swh-web-ui
swh/web/tests/browse/views/test_directory.py
Python
agpl-3.0
16,355
[ "VisIt" ]
7044258b5161f818c824d9dcdfbc31f6c12cf3f8d0fc15aa7eb77823b3f72cec
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
yeming233/rally
tests/unit/test_test_mock.py
Python
apache-2.0
14,101
[ "VisIt" ]
cf86edbd27eb628ca0b298c0776516f97636120db221eb710afb469b4c1ffa88
from exceptions import Exception from libarray import * class LinAlgError(Exception): pass import lu import gauss import qr import svd import inv import chol gauss = gauss LULinAlgError = lu.LinAlgError lu = lu.LUDecomposition qr = qr.householder lstsq = svd.lstsq svd = svd.svd inv = inv.inv chol = chol.cholesky...
raphaelvalentin/qtlayout
syntax/linalg/__init__.py
Python
gpl-2.0
3,154
[ "Gaussian" ]
6be9f80046f6bc572bb761648beae28b2483e7aa10bd1d09c87b09cf912bdc58
import numpy as np import scipy as sp import os import scipy.optimize as op import cPickle as cpkl import emcee import matplotlib as mpl mpl.use('PS') import matplotlib.pyplot as plt import chippr from chippr import defaults as d from chippr import plot_utils as pu from chippr import utils as u from chippr import sta...
aimalz/chippr
chippr/log_z_dens.py
Python
mit
22,517
[ "Gaussian" ]
938108d76707c3bd12d699bc33b2ca47813a447158ac3bc09d66b5754c547187
# -*- coding: utf-8 -*- # # This file is part of INSPIRE. # Copyright (C) 2016 CERN. # # INSPIRE 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...
Panos512/inspire-next
tests/integration/workflows/test_arxiv_workflow.py
Python
gpl-2.0
11,762
[ "Galaxy" ]
f32999735e45e9e1a5e0dace09a46b13e7178a2c6376dae5fc983becb9131e0e
""" A driver for running YATSM on stacked Landsat/PALSAR timeseries """ from datetime import datetime as dt import logging import os import numpy as np import patsy from .timeseries_yatsm import YATSMTimeSeries from ..series import Series from ..ts_utils import ConfigItem, find_files logger = logging.getLogger('tsto...
ceholden/TSTools
tstools/src/ts_driver/drivers/timeseries_opticalradar.py
Python
gpl-2.0
4,512
[ "VisIt" ]
a4957c3642876b2f025861b5416f281e23c088216faa009e248d15e3a8cb57c5
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup, find_packages # To use a consistent encoding from codecs import open from os import path here = path.absp...
Perlkonig/sqrlserver-python
setup.py
Python
mit
4,350
[ "Dalton" ]
23f31ab39932f8f6c0ae381e2ed97dc13e4597d6c43c07eb49baf1a7884c8f1a
# script to convert the newly generated Relative Humidity def convert_to_hur( tas_arr, vap_arr ): esa_arr = 6.112 * np.exp( 17.62 * tas_arr/ (243.12 + tas_arr) ) # esa_arr = 6.112 * np.exp( 22.46 * tas_arr / (272.62 + tas_arr) ) return vap_arr/esa_arr * 100 def convert_to_vap( tas_arr, hur_arr ): esa_arr = 6.112 *...
ua-snap/downscale
snap_scripts/old_scripts/tem_iem_older_scripts_april2018/tem_inputs_iem/convert_cmip5_to_vap_tem_iem.py
Python
mit
2,838
[ "NetCDF" ]
ec02f00727aaeba39a98538fbcea373ee4d5c186e1e3105ce86e1da68a33c11b
# Copyright (c) 2012 Santosh Philip # Copyright (c) 2016 Jamie Bull # Copyright (c) 2021 Jeremy Lerond # ======================================================================= # Distributed under the MIT License. # (See accompanying file LICENSE or copy at # http://opensource.org/licenses/MIT) # ===================...
santoshphilip/eppy
eppy/modeleditor.py
Python
mit
32,795
[ "EPW" ]
8d49a5f1524e9f77c84a0f5bb48cebcd13ebbec3d95d8eef5ec9905f8178b1cb
# -*- Mode: Python; coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2011 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## ...
andrebellafronte/stoq
stoqlib/gui/widgets/splash.py
Python
gpl-2.0
4,592
[ "VisIt" ]
be9c57bf131e4b00b7625b0b8f3ae921fc760e8ae7ad6d9960cb4bd41fdb3bbb
# plottools.py # ALS 2016/04/28 """ Tools for plotting images and meausrements (ellipse, contours, etc) Contains two functions for plotting: plot_img, overplot_ellipse_fromtab """ import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import astropy.units as u f...
aileisun/bubbleimg
bubbleimg/imgmeasure/iso/plottools.py
Python
mit
13,291
[ "Galaxy" ]
fae46e901da181792c2343533157020511d9e33d20d54442bcf5b3a617879f58
# __init__.py - fsmonitor initialization and overrides # # Copyright 2013-2016 Facebook, Inc. # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. '''Faster status operations with the Watchman file monitor (EXPERIMENTAL) Integrates th...
smmribeiro/intellij-community
plugins/hg4idea/testData/bin/hgext/fsmonitor/__init__.py
Python
apache-2.0
32,575
[ "VisIt" ]
47609652d00587f85aea948f057683cbbc74abe34854859a1988b9e72a1dcd4e
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals import unittest import os from numbers import Number import matplotlib import warnings matplotlib.use("pdf") from pymatgen.analysis.phase_diagram import * from pymatge...
johnson1228/pymatgen
pymatgen/analysis/tests/test_phase_diagram.py
Python
mit
23,227
[ "pymatgen" ]
6ae32c161f2cc0a355ecd1a009de4df341c33f013d3c5822978de7f5f00fc7fe
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
magic/core/kernel.py
Python
agpl-3.0
33,717
[ "Gaussian" ]
fb3c5ab10eb41f7937e02095b0b07548da23061c731613e2f5a2523a1ca3ea46
#!/usr/bin/env python3 log=""" ----BEGIN CLASS---- [13:41] <kushal> startclass [13:42] <dpreacher_> brb i guess.. [13:42] <kushal> Hello everyone. [13:42] <avik> hi! [13:42] <kushal> Welcome to the 10th edition of summer training [13:42] <ravindra> Hello [13:42] <BhaveshSGupta> Hello [13:42] <bhavin192> Hello [13:42] <...
storymode7/PythonLearning
pylogd.py
Python
mit
51,883
[ "VisIt" ]
5fa85e327759321d964d3339d6baaba5742867cdd9210717f202c5645bf84639
# -*- coding: utf-8 -*- # # test_current_recording_generators.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 versio...
tillschumann/nest-simulator
pynest/nest/tests/test_current_recording_generators.py
Python
gpl-2.0
9,161
[ "NEURON" ]
0edb0a436040cbc6cb4aa791e7d49e7d315420560ff647479818ee5c191ffc8a
''' Created on Apr 27, 2012 @author: Arnaud Chassagne ''' from octopus.core.framework import ResourceNotFoundError from octopus.dispatcher.webservice import DispatcherBaseResource from octopus.core.communication.http import Http404, Http500 class LicensesResource(DispatcherBaseResource): #@queue def get(sel...
mikrosimage/OpenRenderManagement
src/octopus/dispatcher/webservice/licenses.py
Python
bsd-3-clause
1,947
[ "Octopus" ]
35c4327481facacba95fe89641bdd98561c5d1412fe14d297ffdaf2dee6b53f1
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
hepochen/xhtml2pdf
xhtml2pdf/parser.py
Python
apache-2.0
24,640
[ "VisIt" ]
b8f1f051e57d508aa1524717a31887f090df0de5214d572b5853a22b75d03a5a
# -*- coding: utf-8 -*- # $Id: manpage.py 6270 2010-03-18 22:32:09Z milde $ # Author: Engelbert Gruber <grubert@users.sourceforge.net> # Copyright: This module is put into the public domain. """ Simple man page writer for reStructuredText. Man pages (short for "manual pages") contain system documentation on unix-like...
rpdillon/wikid
wikid/docutils/writers/manpage.py
Python
gpl-3.0
33,696
[ "VisIt" ]
2ef03f4ff5fc17f4b1aaf06274b4966418ccf60613742812ae307fa85f9d2a2f
# # Copyright (C) 2013-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
fweik/espresso
testsuite/python/hat.py
Python
gpl-3.0
2,040
[ "ESPResSo" ]
3e71f0c836616f954429ba6e9474acfcd91f93ff8b3316c330b1a030be325251
""" State Space Model Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function from statsmodels.compat.python import long import numpy as np import pandas as pd from scipy.stats import norm from .kalman_smoother import KalmanSmoother, SmootherResults from .kalm...
phobson/statsmodels
statsmodels/tsa/statespace/mlemodel.py
Python
bsd-3-clause
111,554
[ "Gaussian" ]
a15fd91d6a9f496f8ec071e19891a79ed1b7e0a104a684077fd95be5ba04c8ce
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Scientific Package. This package holds all simulators, and # analysers necessary to run brain-simulations. You can use it stand alone or # in conjunction with TheVirtualBrain-Framework Package. See content of the # documentation-folder for more details. See also http://ww...
rajul/tvb-library
tvb/simulator/demos/seeg_surface_deterministic.py
Python
gpl-2.0
4,960
[ "Mayavi" ]
8418ee89ec99a113a20132ef7ea6624aa329aa7fdd9943391ee6cdb3557c89e2
""" Support the ISY-994 controllers. For configuration details please visit the documentation for this component at https://home-assistant.io/components/isy994/ """ import logging from urllib.parse import urlparse import voluptuous as vol from homeassistant.core import HomeAssistant # noqa from homeassistant.const i...
xifle/home-assistant
homeassistant/components/isy994.py
Python
mit
8,308
[ "VisIt" ]
215736ad4d1f13c756677afb0a41d6e273d816184a1f3760488e2bd92c24afdb
from flask import Flask, render_template, session, request, redirect import random app = Flask(__name__) app.secret_key = 'my_secret_key' @app.route('/') def index(): if not 'gold' in session: session['gold'] = 0 if not 'activities' in session: session['activities'] = [] return render_templ...
authman/Python201609
Sparks_Steven/Assignments/Flask Olympics/olympics6/server.py
Python
mit
1,282
[ "CASINO" ]
3c9a787fafb66e9c6ad895a2404052c38f52a869ac4eb62b4cc46997e5307db8
# # @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 #...
rmcgibbo/psi4public
psi4/driver/p4util/inpsight.py
Python
lgpl-3.0
23,203
[ "Jmol", "Psi4" ]
bc5074ab8570c38fcedef5a7420d0829e5eda05b94bca326f2d2d52722c22717
# This code is developed based on RL code in the following repository in github # https://github.com/rlcode/reinforcement-learning-kr-v2 import numpy as np np.random.seed(1) def channel_numpy_awgn(x_array, SNRdB): """ 출력을 (0,1) --> (1,-1)로 바꾸고 가우시안 노이즈를 더함. """ #y_array = np.zeros(x_array.shape, dtype...
jskDr/jamespy_py3
wireless/hamming_nb/environment_hm.py
Python
mit
3,377
[ "Gaussian" ]
26ac17d1b7c4913bd3dbf60874d5620a73082185f10fe8c4c8510befa861a27f
# -*- 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 from django.views import defaults as default_views from a...
guillaume-miara/allodoc
config/urls.py
Python
mit
1,734
[ "VisIt" ]
063add6bd6202353b04e9fe64ae4a2661322d3955984d58da2ebc55b38344862
# -*- coding: utf-8 -*- from splinter import Browser from random import randint import names, password_generator import StringIO, urllib import base64 import time, datetime import sys def main(): #how many accounts we need ntimes = 1 for i in range(1,ntimes+1): print...
gumbert/splinter_examples
mail_yandex.com/ya_register.py
Python
mit
6,072
[ "VisIt" ]
0f2a811613079988bb1b21e3107d04fbbcafa57e39e95d663f2b5409dabf4a56
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
googleapis/python-gke-hub
scripts/fixup_gkehub_v1beta1_keywords.py
Python
apache-2.0
6,550
[ "VisIt" ]
eab82e6f46edec80a4775a06751635c14e0763e8d536e8b4b31ddffc7321532c
# ERPNext - web based ERP (http://erpnext.com) # Copyright (C) 2012 Web Notes Technologies Pvt Ltd # # 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 yo...
gangadhar-kadam/mtn-erpnext
home/__init__.py
Python
agpl-3.0
3,495
[ "VisIt" ]
f8a0aca71bbec662a6d57e42181ceada90979a31fd8b5feb753b6b791a7cd21b
''' Simulation Based on Hippocampus Recordings Copyright Nate Sutton 2015 References: Data from CRCNS.org hc3 . Izhikevich neuron parameters from: http://f1000research.com/articles/3-104/v1 ''' import pylab import nest import math as math import numpy as np ''' Create objects to run experiment with ''' multimeter = ...
nmsutton/MemoryModule
python_version/memory_module.py
Python
mit
6,654
[ "NEURON" ]
85244139f1a6adfebe570fd2e5bd2873c8dca333300a895f9a2ca6922b1428bc
from sys import exit from random import randint class Scene(object): def enter(self): print "This scene is not yet configured. Subclass it and implement enter()." exit(1) class Engine(object): def __init__(self, scene_map): self.scene_map = scene_map def play(self): current_scene = s...
jessehagberg/python-playground
ex43.py
Python
cc0-1.0
8,834
[ "BLAST" ]
79d6ce0b72ba131c59b199523e1bfe720045cae554ef2d63e15c9c8705cdffef
# -*- coding: utf-8 -*- # Linear response with integral equations # (c) May 2015 Aditya Gilra, EPFL. """ spiking neural net evolution with embedded weight matrix written by Aditya Gilra (c) July 2015. """ from brian2 import * # also does 'from pylab import *' stand_alone = False if stand_alone: set_device('cpp...
adityagilra/2015_spiking_population_response
brian2_issue.py
Python
gpl-3.0
2,915
[ "Brian" ]
7f23d445b3658dbd020f56dc3130e6a4afe3c6efc2825a172addc7d58798624f
# Code to be determining how long it would take to be recovering from large loss of mining power on bitcoin chain. # Christian Bauer def postfork_mins_per_block(y): return 10.0/y def postfork_days_until_diffadj(x,y): blks=2016.0*(1-x) return ((postfork_mins_per_block(y)*blks)/(60*24)) def postdiff_mins_p...
cjbauer/forkstats
forkstats.py
Python
agpl-3.0
4,356
[ "Amber" ]
fd47e1a77d08ef879fb053df1fb8624a61e677df8f901051ad4245d42ee8df7b
# Script Version: 1.0 # Author: Tsz Kwong Lee # Project: AMA3D # Task Step: 4 # This script use information from PDB to select the best CATH topology representative among all homologous domains. # CathDomainList File format: CLF format 2.0, to find more info, please visit www.cathdb.info # R observed - Residual facto...
teheavy/AMA3D
Nh3D/4_CathBestTopo_filter_V2.0.py
Python
gpl-2.0
11,298
[ "VisIt" ]
349d81317bac3fc0fdcb033050fa05ad34e0954844bc30dda91f2a301e7fdbe3
class ESInitConfig(object): def packages(self): return { 'rpm': { 'elasticsearch': 'https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.4.1/elasticsearch-2.4.1.rpm' # TODO: abstract version number }, 'py...
mccormickmichael/laurel
app/elk/tiny_initconfig.py
Python
unlicense
2,896
[ "Elk" ]
c6704e14706a12c914cecfb033095aed254a31b1869b056910b923330c78204f
""" ============================================ Tuning a scikit-learn estimator with `skopt` ============================================ Gilles Louppe, July 2016 Katie Malone, August 2016 Reformatted by Holger Nahrstaedt 2020 .. currentmodule:: skopt If you are looking for a :obj:`sklearn.model_selection.GridSearc...
scikit-optimize/scikit-optimize.github.io
0.8/_downloads/88cba5cd0a3cd7c57cbd0a7201157e8f/hyperparameter-optimization.py
Python
bsd-3-clause
4,311
[ "Gaussian" ]
54a8d899309ba61b68ef12044a2adc570156e1f3a2fabec66aa62b0a73d2cc4b
# This file is part of INDXParse. # # Copyright 2011, 2012 Willi Ballenthin <william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License....
williballenthin/INDXParse
INDXParse.py
Python
apache-2.0
33,119
[ "Brian" ]
10cb219e75107bf1204877804df6bafb1b7c5f2fa15fd304776d3b31c90b1edc
import numpy as np from cs231n.layers import * from cs231n.fast_layers import * from cs231n.layer_utils import * class ThreeLayerConvNet(object): """ A three-layer convolutional network with the following architecture: conv - relu - 2x2 max pool - affine - relu - affine - softmax The netwo...
UltronAI/Deep-Learning
CS231n/reference/CS231n-master/assignment2/cs231n/classifiers/cnn.py
Python
mit
4,748
[ "Gaussian" ]
4cf249ad84f78a8e9b898d59c05ab4776f84b45145dfa03559c33070f47a7df3
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tools for working with audio data. This module provides routines for saving/loading and manipulating audio samples. """ __all__ = [ 'array2wav', 'wav2array', 'sinetone', 'squaretone', 'sawtone', 'whiteNoise', 'audioBufferSize', 'SAMPLE_...
psychopy/psychopy
psychopy/tools/audiotools.py
Python
gpl-3.0
8,351
[ "Gaussian" ]
cbb791335df5e70a9b9c6fcd97cb63e68b8ce3adab741d7459b5652668726ffe
# vim:fileencoding=utf-8 # Copyright (c) 2009, 2010, 2011, 2012 Andrey Golovizin # # 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 ri...
oseledets/pybtex
pybtex/tests/bibtex_parser_test.py
Python
mit
15,057
[ "Brian" ]
ef3d288e7858effe23c0dfc7f2d22fa678133d3762515be376fc548837312212
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Kaiju(MakefilePackage): """Kaiju is a program for the taxonomic classification of high...
LLNL/spack
var/spack/repos/builtin/packages/kaiju/package.py
Python
lgpl-2.1
969
[ "HTSeq" ]
4e71f0dd92588d3be76047c8d08586baf04bb59633450bfe3eccd2d11a0598f1
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
boompieman/iim_project
project_python2/lib/python2.7/site-packages/IPython/core/interactiveshell.py
Python
gpl-3.0
132,557
[ "VisIt" ]
3a0529887fd17526356128b8b496c338efe240aebbe4e6ef5ec01f9d3644df83
from __main__ import vtk, qt, ctk, slicer import string import numpy import math import operator import collections class RenyiDimensions: def __init__(self, matrixPadded, matrixPaddedCoordinates, allKeys): self.renyiDimensions = collections.OrderedDict() self.renyiDimensions["Box-Counting Dimensi...
acil-bwh/SlicerCIP
Scripted/CIP_LesionModel/FeatureExtractionLib/RenyiDimensions.py
Python
bsd-3-clause
4,792
[ "VTK" ]
a0979f83b9219cb327bfb37652b3dbba13ed66b62e1e439d58b80b72ba23b90e
#!/usr/bin/env python """ Easy Install ------------ A tool for doing automatic download/extract/build of distutils-based Python packages. For detailed documentation, see the accompanying EasyInstall.txt file, or visit the `EasyInstall home page`__. __ https://setuptools.readthedocs.io/en/latest/easy_install.html ""...
jsirois/pex
pex/vendor/_vendored/setuptools/setuptools/command/easy_install.py
Python
apache-2.0
90,093
[ "VisIt" ]
913ad1d183a17645fc5c3ebe412e7f9926c2cd3fb05c14b7cea0973b9db823ef
## @package teetool # This module contains the Visual_3d class # # See Visual_3d class for more details import numpy as np from scipy.interpolate import griddata import mayavi.mlab as mlab import time import teetool as tt ## Visual_3d class generates the 3d output using Mayavi class Visual_3d(object): ## Cons...
WillemEerland/teetool
teetool/visual_3d.py
Python
mit
15,383
[ "Mayavi" ]
7974524a900437b4a7a0ef662fe2b07d32ec09a6ca48638dd8c1c3d88875e2da
#!/usr/bin/python from __future__ import print_function from __future__ import division import sys import os.path import subprocess as sp import logging import warnings import argparse from collections import defaultdict import numpy as np import forgi.threedee.model.coarse_grain as ftmc import forgi.threedee.utilit...
ViennaRNA/forgi
examples/visualize_rna.py
Python
gpl-3.0
12,630
[ "PyMOL" ]
c8be1eceab5884c0f64d78426136b4943c399f5d77cd6b6dc7ac1105078015d5
# coding=utf-8 # Copyright 2022 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
google/edward2
edward2/tensorflow/initializers.py
Python
apache-2.0
30,542
[ "Gaussian" ]
087c395a455993a1bb43be8a809bb27ddc96e62a314ef5b686937b463a6d8b7d
# 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...
BackupTheBerlios/espressopp
src/analysis/Configurations.py
Python
gpl-3.0
2,939
[ "ESPResSo" ]
db0958ec4f176f4795cbca84bca870253c3e8417584c6840794c9c49d8e27928
import unittest from test import test_support from itertools import * import weakref from decimal import Decimal from fractions import Fraction import sys import operator import random import copy import pickle from functools import reduce maxsize = test_support.MAX_Py_ssize_t minsize = -maxsize-1 def onearg(x): '...
mancoast/CPythonPyc_test
cpython/278_test_itertools.py
Python
gpl-3.0
68,195
[ "GULP" ]
813a0c821ef8dca2d3beb313fccb31a056b6e68569e27992cb5ba85d37918647
# Copyright 2010 by Andrea Pierleoni # Revisions copyright 2010, 2016 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. """Bio.SeqIO support for the "uniprot-xml"...
zjuchenyuan/BioWeb
Lib/Bio/SeqIO/UniprotIO.py
Python
mit
25,310
[ "Biopython" ]
d5f200ac7f3d3242dcf4328f904b69bae7967f7d732c4225c42baf1ca29a4835
# -*- coding: utf-8 -*- # @author: Alexander Pitchford # @email1: agp1@aber.ac.uk # @email2: alex.pitchford@gmail.com # @organization: Aberystwyth University # @supervisor: Daniel Burgarth """ Pulse generator - Generate pulses for the timeslots Each class defines a gen_pulse function that produces a float array of siz...
cgranade/qutip
qutip/control/pulsegen.py
Python
bsd-3-clause
41,865
[ "Gaussian" ]
51f57de12d7d2ff632e4033559baadba7bf6318704de63cbdfe6dad0b027a52b
''' from armor.tests import test20131128momentNormalisation as t reload(t) t.main() from armor import pattern ; from armor.tests import test20131128momentNormalisation as t reload(pattern) ; reload(t) ; x= t.main2() import matplotlib.pyplot as plt x = [v[0] for v in corrStats if v[0]<=43200] # max time diff: hal...
yaukwankiu/armor
tests/test20131128momentNormalisation.py
Python
cc0-1.0
4,233
[ "Gaussian" ]
2639b2055f7c75a14af14ee7e31b7536cfd331d95c3b223b2b0df7d2877617d5
import os import time import numpy as np import collections import scipy import scipy.sparse import scipy.sparse.linalg import scikits.sparse.cholmod import pyublas import hashlib import types import marshal from features import featurizer_from_string, recover_featurizer from cover_tree import VectorTree, MatrixTree f...
davmre/treegp
gp.py
Python
gpl-3.0
78,311
[ "Gaussian" ]
2e351f3ef7feaa5059a463c59f61bf2f5f06b35bc8b83895dbeb39cec733dc46
from desc.sims.GCRCatSimInterface import InstanceCatalogWriter catalog_version = 'cosmoDC2_v1.1.4' agnDB = '/global/projecta/projectdirs/lsst/groups/SSim/DC2/cosmoDC2_v1.1.4/agn_db_mbh7_mi30_sf4.db' sneDB = '/global/projecta/projectdirs/lsst/groups/SSim/DC2/cosmoDC2_v1.1.4/sne_cosmoDC2_v1.1.4_MS_DDF.db' sed_lookup_dir...
DarkEnergyScienceCollaboration/Twinkles
utils/catalog_production/create_unsprinkled_cat.py
Python
mit
1,115
[ "VisIt" ]
422114b08d8de823ebea6d00b4ea9ee478c5322f526f885df1f76d37f46d0078
#import SYS import ShareYourSystem as SYS #Definition MyBrianer=SYS.BrianerClass( ).collect( "Neurongroupers", 'P', SYS.NeurongrouperClass( #Here are defined the brian classic shared arguments for each pop **{ 'NeurongroupingKwargVariablesDict': { 'N':2, 'model': ''' Jr : 1 ...
Ledoux/ShareYourSystem
Pythonlogy/draft/Simulaters/Brianer/draft/07_ExampleDoc.py
Python
mit
1,597
[ "Brian" ]
dcaead3541ed91ed0df1c556e12c9f84d176e002aaf46611ebfd090e89f3aab2
# pylint: disable=no-init,too-few-public-methods from __future__ import (absolute_import, division, print_function) from mantid.kernel import * from mantid.simpleapi import * from mantid.api import * from mantid.geometry import SpaceGroupFactory, CrystalStructure, UnitCell from six import iteritems import re import nu...
dymkowsk/mantid
Framework/PythonInterface/plugins/algorithms/LoadCIF.py
Python
gpl-3.0
18,330
[ "CRYSTAL" ]
bc12649350ab8d50babd74081b3641fb2ae7d14efe484e0c71c73d78904933ed
import metakit, re, pickle, string, os.path import rdatabase import gourmet.gglobals as gglobals from gourmet import keymanager,shopping,convert from gourmet.defaults import lang as defaults from gourmet.gdebug import * from gettext import gettext as _ class RecData (rdatabase.RecData): """A class to keep recipe d...
Linutux/Gourmet
gourmet/legacy_db/db_085/rmetakit.py
Python
gpl-2.0
16,071
[ "Brian" ]
13fd5ba5065aaf37bd797cc4a1f6cffc895f7506ba5c010e4161373569cfcdbf
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2008 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; ...
arunkgupta/gramps
gramps/plugins/import/importgpkg.py
Python
gpl-2.0
5,219
[ "Brian" ]
f573949fe72fc21839bbd34e0f8e58c66f36b8daca9f3a75e88fcf63d489bdb3
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Canal para asiansubita # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib2,urllib,re import os, sys from core ...
Zanzibar82/plugin.video.pelisalacarta_ui.pureita
channels/asiansubita.py
Python
gpl-3.0
5,155
[ "ADF" ]
924b6871f03bb0a6435a299329574863da898e9b75f2e91854fdf84d97b9322d
#!/usr/bin/env python # category General # desc Removes reads from a BAM file based on criteria """ Removes reads from a BAM file based on criteria Given a BAM file, this script will only allow reads that meet filtering criteria to be written to output. The output is another BAM file with the reads not matching the cr...
SANBI-SA/tools-iuc
tools/ngsutils/filter.py
Python
mit
28,232
[ "pysam" ]
e51580b9f09a71717c4d97fda73565194ef8142aafab9fdf5a862e4020351cf3
""" some helper functions used by watchteleboy """ import argparse import configparser from datetime import date, datetime, time, timedelta import os import random import sys import crontab # DEB: python3-crontab import wt CONFIG_TEMPLATE = """[watchteleboy] # watchteleboy configuration # Teleboy Login Credentials...
reduzent/watchteleboy
wt/helpers.py
Python
gpl-2.0
10,284
[ "VisIt" ]
e5c34706360d7afa9c71cba69aab6b1d0d78e2393591176586c45bea63c63f12