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
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either vers...
marscher/PyEMMA
pyemma/coordinates/tests/test_discretizer.py
Python
lgpl-3.0
4,563
[ "MDTraj" ]
c1f0fade73b5a082e58f2ba4609b54da88a14caf305678a1bded455d5a562258
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages import io import os import versioneer VERSION = versioneer.get_version() def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') sep = kwargs.get('sep', '\n') buf = [] for filename in filenam...
insilichem/ommprotocol
setup.py
Python
lgpl-3.0
1,700
[ "OpenMM" ]
864cab5122de4f7da3a5f0a996a15e448a6ccebec6a2451bd1f4fd1cbf15f8d5
""" Basic SparseCFProjection with associated sparse CFs and output, response, and learning function. If sparse component cannot be imported, SparseCFProjection will fall back to a basic dense CFProjection. CFSOF and CFSLF Plugin function allow any single CF output function to be applied to the sparse CFs, but may suff...
mjabri/topographica
topo/sparse/sparsecf.py
Python
bsd-3-clause
34,427
[ "Gaussian" ]
529e51960817ad12bdc34595063d42015f9dca03acbeccaeea7fcd9a60319611
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # 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 publ...
pmghalvorsen/gramps_branch
gramps/gen/filters/rules/family/__init__.py
Python
gpl-2.0
2,872
[ "Brian" ]
fd3694fc7d60453c8e17e1a5f6aa769a56663f906027ff9802b67b44581f04c1
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
Stargrazer82301/CAAPR
CAAPR/CAAPR_AstroMagic/PTS/pts/magic/sources/starfinder.py
Python
mit
38,170
[ "Galaxy", "Gaussian" ]
745c59e9be0e1d8b7fd1acdaf80428b2e629130e1d3864e15339387c9c5c6066
# -*- coding: utf-8 -*- from __future__ import print_function, division, absolute_import, unicode_literals from builtins import * # noqa from past.builtins import basestring import logging import os from gmusicapi.utils import utils from future.utils import with_metaclass from oauth2client.client import OAuth2WebSe...
vially/googlemusic-xbmc
resources/Lib/gmusicapi/clients/shared.py
Python
gpl-3.0
7,024
[ "VisIt" ]
9df2049a3992df8d86ddd81ee86241c8008e86371c5b599f7df51ea178e34162
"""Integration with Galaxy nglims. """ from __future__ import print_function import collections import copy import glob import operator import os import subprocess import joblib import six import yaml from bcbio import utils from bcbio.distributed.transaction import file_transaction from bcbio.galaxy.api import Galax...
a113n/bcbio-nextgen
bcbio/galaxy/nglims.py
Python
mit
8,015
[ "BWA", "Galaxy" ]
69dbb2408a6cea557f9af98787fa4b8bd2ad3c9e9afaa4e246e190e2e98b3b7f
# Copyright 2000 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Code to access resources at ExPASy over the WWW. See http://www.expasy.ch/ Functions: -...
zjuchenyuan/BioWeb
Lib/Bio/ExPASy/__init__.py
Python
mit
3,735
[ "Biopython" ]
c1d873aea96ecfb1e3d9677868810d7e935db367771fe96b110129cd3756d94b
# # Copyright (c) 2014, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Softwar...
akunft/fastr
mx.fastr/suite.py
Python
gpl-2.0
12,341
[ "VisIt" ]
0fbca47a54daec9ca6c3aec8f923d06e008c9a52ea1d3f56e15d2917e63a368e
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2009 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Software F...
andrebellafronte/stoq
stoqlib/gui/dialogs/renegotiationdetails.py
Python
gpl-2.0
7,090
[ "VisIt" ]
72b880574d117037fe4d818d5bd69b605573684d8518e41e5846f1e70de0d8df
import datetime import unittest import urllib from msschem.download import CAMSRegDownload, SilamDownload import msschem_settings class TestCAMSRegDownload(unittest.TestCase): def test_construct_urls_single(self): required_urls = ['http://download.regional.atmosphere.copernicus.eu/services/CAMS50?&toke...
andreas-h/mss-chem
tests/test_download.py
Python
mit
4,941
[ "NetCDF" ]
10d89a62eb12791aacd4a5ee2080f7948298cc022c0496aef684c3c4b00e52db
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import import os import unittest import numpy as np from pymatgen.io.lammps.data import LammpsData from pymatgen.core.structu...
xhqu1981/pymatgen
pymatgen/io/lammps/tests/test_lammps_data.py
Python
mit
6,665
[ "LAMMPS", "pymatgen" ]
41c3bcea1a98efb89242e2c377cc9a6de4fc61ad4cd2ff8565abcfbfeefd3bb8
import os import logging from functools import partial from capture_gui.vendor.Qt import QtCore, QtWidgets from capture_gui import plugin, lib from capture_gui import tokens log = logging.getLogger("IO") class IoAction(QtWidgets.QAction): def __init__(self, parent, filepath): super(IoAction, self).__in...
Colorbleed/maya-capture-gui
capture_gui/plugins/ioplugin.py
Python
mit
8,212
[ "BLAST" ]
82ee979e29ec5b978994da1f828936c4077da9f555154e603f5a626c1754b409
# Taken from: # https://github.com/lennax/biopython/blob/f_loc5/Bio/SeqUtils/Mapper/__init__.py # Copyright 2012 Lenna X. Peterson <arklenna@gmail.com> # CoordinateMapper.py originally written by Reece Hart # Older revisions may be found in this gist: # https://gist.github.com/3172753 # This code is part of the B...
kantale/MutationInfo
biopython_mapper/__init__.py
Python
mit
824
[ "Biopython" ]
e3786031d74b740c47fe99414f6675e31141d21111728f71dea66c6710eeb6b3
from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() setup(name='FitELP', version='0.1.0',...
daniel-muthukrishna/GiantStarFormingRegions
setup.py
Python
mit
3,465
[ "Gaussian" ]
d38cbf94e32022e442166d4bd94242b922322da652f6ff049127285a1cc7df48
# Copyright 2021 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...
google-research/crafty
util.py
Python
apache-2.0
4,481
[ "Gaussian" ]
7ba12ab84393be58bd8471b3a96872cfaa4cb65598f7fa5d5ab929a1b2b3e7ed
#!/usr/bin/python ############################################################################### # # This script prepares multiple files of coordination output from MDAnalysis # coordination output scripts in order to facilitate numerous 1D distributions, # graph building, and state splitting. This script performs a v...
cing/ChannelAnalysis
ChannelAnalysis/CoordAnalysis/Preprocessor.py
Python
mit
23,912
[ "MDAnalysis" ]
3d575be0933b0c711b737c4392a0c53d214553f7aed43be6623be4c97ad27479
# definitions def strip_chars(inputString): WANTED = '*' guardCnt = 1 while (True): try: index = inputString.rindex(WANTED) except ValueError: break inputString = remove_chars(inputString, index) guardCnt += 1 if (guardCnt == 3):...
kszynter/DailyChallenges
Challenge111_easy_star-delete/solution_brute_force.py
Python
mit
2,305
[ "ADF" ]
9f90f84a4b4d23bf584f032529c61f12d15732da1a00aed21c576a395d933db2
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import os from pathlib import Path from c7n_terraform.parser import TerraformVisitor, Parser, VariableResolver data_dir = Path(__file__).parent / "data" def setup_tf(tmp_path, file_map=None): file_map = file_map or {} for k, v ...
thisisshi/cloud-custodian
tools/c7n_terraform/tests_terraform/tf_common.py
Python
apache-2.0
871
[ "VisIt" ]
dbe53478e15ff3ddc5f7f5984bf74517243a261ce6303b00b5f9b3f95f36c6ec
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest from pymatgen.io.qchem.sets import * from pymatgen.util.testing import PymatgenTest __author__ = "Samuel Blau, Brandon Wood, Shyam Dwaraknath, Evan Spotte-Smith" __copyright__ = "Copyright 2018, Th...
vorwerkc/pymatgen
pymatgen/io/qchem/tests/test_sets.py
Python
mit
29,555
[ "pymatgen" ]
21134180e328af24bc017f4a937b508978d439c9f67739b7bf4aa80e075892a4
import unittest from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from meerkat_abacus.config import config from meerkat_abacus import model from meerkat_abacus.pipeline_worker.process_steps import to_data_type from meerkat_abacus.consumer.database_setup import create_db class TestToDataType...
who-emro/meerkat_abacus
meerkat_abacus/pipeline_worker/tests/test_to_data_type.py
Python
mit
2,384
[ "VisIt" ]
1931a3021f9ade493a604d73eb89ec0135e56735b5586a3ab778d4b2175dd6f3
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1950-2020/regrid_BC_biofuel_emissions_n96e_360d.py
Python
gpl-3.0
19,110
[ "NetCDF" ]
bfe39d05ba1d4f64651855fb86f5c29abc50da7d903d3fad183bbcf9ae60e0ef
"""Quality control and summary metrics for next-gen alignments and analysis. """ import collections import contextlib import csv import os import glob import shutil import subprocess import pandas as pd import lxml.html import yaml from datetime import datetime from collections import defaultdict # allow graceful duri...
guillermo-carrasco/bcbio-nextgen
bcbio/pipeline/qcsummary.py
Python
mit
49,963
[ "pysam" ]
dc74a034db9e35ed30d4312f9125bfb02b61899fda9b1a87fa9364551a9a99e9
## # Copyright 2009-2013 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (htt...
hajgato/easybuild-easyblocks
easybuild/easyblocks/q/quantumespresso.py
Python
gpl-2.0
14,480
[ "ESPResSo", "Quantum ESPRESSO", "Wannier90", "Yambo" ]
d714b402a609b148ab3f1f4d637da0c8af01d1e63d44d5cbb06b53dbb28825aa
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding M2M table for field ephys_props on 'DataTable' db.create_table('neuroelectro_datatable...
neuroelectro/neuroelectro_org
neuroelectro/south_migrations/0015_auto.py
Python
gpl-2.0
10,875
[ "NEURON" ]
fc3b7ffc79e253cc2803d6c7a49bc96bb7f4cdb6d3fd58ef4bfe545865762891
# -*- coding: utf-8 -*- # # Copyright (C) 2008-2011 Red Hat, Inc. # This file is part of python-fedora # # python-fedora is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the Lice...
vivekanand1101/python-fedora
fedora/wsgi/faswho/faswhoplugin.py
Python
gpl-2.0
15,588
[ "VisIt" ]
d66e1da22d02de10c6235edc25cbc606cb6289039241dfe8e8643867e7b71fbb
#!/usr/bin/env python2.7 import os, sys from numpy import * import numpy.random ### Runs replica exchange with gREM (fix grem) for unlimited number of replicas on a set number of processors. This script is inefficient, but necessary if wanting to run with hundreds of replicas on relatively few number of procs. ### ...
ovilab/atomify
libs/lammps/examples/USER/misc/grem/lj-6rep/double-re-short.py
Python
gpl-3.0
6,218
[ "LAMMPS" ]
ef7b6c14848224ca83aea346da8746cb3389a0f48c2a9db8170235966d7ffde9
''' Created on 23/11/2009 @author: brian ''' from scipysim.actors import Channel, CompositeActor from scipysim.actors.display.bundlePlotter import BundlePlotter from scipysim.actors.io import Bundle from scipysim.actors.signal import Ramp, RandomSource from scipysim.actors.math import Summer import logging logging.b...
hardbyte/scipy-sim
scipysim/models/noisy_ramp_plot.py
Python
gpl-3.0
1,197
[ "Brian" ]
d064641529b9136de3b2db5dfa4ea949e2a2c023f722f06addb35586b6e6efbe
# Copyright 2009 Brian Quinlan. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. """Execute computations asynchronously using threads or processes.""" __author__ = 'Brian Quinlan (brian@sweetapp.com)' from third_party.py.concurrent.futures._base import (FIRST_COMPLETED, ...
juhalindfors/bazel-patches
third_party/py/concurrent/futures/__init__.py
Python
apache-2.0
965
[ "Brian" ]
0e1c9c969ddcc99c5414d881774336f64f82b23c3e8d1c9aaaf69f25a1884b98
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
kain88-de/mdanalysis
package/MDAnalysis/core/topology.py
Python
gpl-2.0
17,617
[ "MDAnalysis" ]
7f18398d5d16d35c8dbaf7bc859bb712f12a6280f4afe573255341b77b4a917b
import math import collections class Database(object): # single points defining the 'centre' of an object or room that nodes will travel to POINTS = { 'cupboard': (-3.6, 4.0), 'bedroom': (-3.6, 2.1), 'bathroom': (-3.6, -3.7), 'hallway_top': (-1.5, 1.9), 'hallway_mid': (-1.5, 0.45), 'hallway_bot': (-1.5,...
swanndri/ROS-Healthcare-Simulator
se306/src/package1/scripts/database.py
Python
mit
11,787
[ "VisIt" ]
917ee44ec1e845b4b96474a90914c9be8cf3b32fadc6556f801f656f9f493902
""" Joint IDL semantic graph """ from collections import deque import binascii import copy import itertools import os from .IdlParser import IdlParser MYPY = False if MYPY: import typing from typing import cast else: def cast(type_, obj): return obj if not hasattr(__builtins__, 'xrange'): ...
koplyarov/joint
joint-gen/joint/SemanticGraph.py
Python
isc
16,894
[ "VisIt" ]
7934e0f2ceb3d641a6ddc8174cb361d9d7e45cfb2c036822fe1f92ccccc285c8
#__docformat__ = "restructuredtext en" # ******NOTICE*************** # optimize.py module by Travis E. Oliphant # # You may copy and use this module as you see fit with no # guarantee implied provided you keep this notice in all copies. # *****END NOTICE************ # A collection of optimization algorithms. Version ...
chatcannon/scipy
scipy/optimize/optimize.py
Python
bsd-3-clause
96,767
[ "Gaussian" ]
a0778a818832eb12433448927bd82d89cd906de68cf5bd76a305d61192d45c7c
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Test unrestrictied single point logfiles in cclib""" import os import unittest import numpy from skip ...
cclib/cclib
test/data/testSPun.py
Python
bsd-3-clause
9,713
[ "Dalton", "Jaguar", "MOLCAS", "Molpro", "ORCA", "TURBOMOLE", "cclib" ]
38dde66487d5539f6f029358f2abac47c1ab9c9268e94b91b965d5ff2a2fe9f5
############################### # This file is part of PyLaDa. # # Copyright (C) 2013 National Renewable Energy Lab # # PyLaDa is a high throughput computational platform for Physics. It aims to make it easier to submit # large numbers of jobs on supercomputers. It provides a python interface to physical input, suc...
pylada/pylada-light
src/pylada/config/mpi.py
Python
gpl-3.0
11,266
[ "CRYSTAL", "VASP" ]
f37698b4784f83ba3c7df442e0feaa476ba5fede3ee2ed32640f53766cc7046e
# encoding: utf-8 """ nrnpython implementation of the PyNN API. :copyright: Copyright 2006-2016 by the PyNN team, see AUTHORS. :license: CeCILL, see LICENSE for details. """ import numpy import logging from pyNN import common from pyNN.parameters import Sequence, ParameterSpace, simplify from pyNN.standardmodels imp...
anupkdas-nus/global_synapses
pyNN-dispackgaes/neuron/populations.py
Python
gpl-3.0
5,219
[ "NEURON" ]
b7d8635e8f6b16789c445c9d9cd275aa2bc420a0b9cc33af0b29f2302f4e64af
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Script to visualize the model coordination environments """ __author__ = "David Waroquiers" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "2.0" __maintainer__ = "David Waroquiers" _...
tschaume/pymatgen
dev_scripts/chemenv/view_environment.py
Python
mit
5,049
[ "pymatgen" ]
add249f4d999d13c673ae4aa190d1bd836f85ced3fe81f4fcaa68b589edc9c5a
#!usr/bin/python import matplotlib.pyplot as plt import matplotlib.widgets as widgets from mpl_toolkits.mplot3d import Axes3D import numpy as np import e_field_gen as e_field import odeint_solve as ode import sys as sys ELEC_MASS = 9.10938356E-31 ELEC_CHARGE = -1.60217662E-19 FUND_FREQ = 3.7474057E14 SP_LI...
KavuriG/classical-calc-three-color
tester.py
Python
gpl-3.0
6,151
[ "Gaussian" ]
78792c508fd136aec9f37d1ead7535142562fd85516e9d46483f9da6d780c091
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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) an...
qvicksilver/ansible
lib/ansible/utils/__init__.py
Python
gpl-3.0
55,670
[ "VisIt" ]
e8788d3534ca4bd101bb362705b559d8796f06c777aa5710282c0d08e60d5390
''' SYNBIOCHEM-DB (c) University of Manchester 2015 SYNBIOCHEM-DB is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' import os import sys import tarfile import tempfile import urllib __NCBITAXONOMY_URL = 'ftp://ftp.ncbi.nih.go...
synbiochem/biochem4j
sbcdb/ncbi_taxonomy_utils.py
Python
mit
2,520
[ "VisIt" ]
28d74ba2284e11d035946c89d0d5714972a26b5c6308b5eb0623aa80dfec8294
from keras.models import load_model from os import listdir from os.path import join import cv2 import numpy as np import matplotlib.pyplot as plt import settings from scipy.misc import imresize from skimage.segmentation import active_contour from skimage.filters import gaussian def read(path, size=settings.INPUT_SHAP...
Rignak/Scripts-Python
DeepLearning/AutoEncoder/Saliency_test.py
Python
gpl-3.0
3,955
[ "Gaussian" ]
c62cef23bc005311ece0403bd5155c94b48b9556cd5e934463148259b9d2246a
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from datetime import datetime, date from lxml import etree import time from openerp import api from openerp import SUPERUSER_ID from openerp import tools from openerp.osv import fields, osv from openerp.tools.translate ...
AyoubZahid/odoo
addons/project/project.py
Python
gpl-3.0
53,608
[ "VisIt" ]
36e1211b8b78600e1eea54d66e5bccd3bea6502d4a024226271146749b54d210
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
jimbobhickville/libcloud
libcloud/common/google.py
Python
apache-2.0
29,589
[ "VisIt" ]
f2e912863d9f7581b341fc05d5f91de4a05057790deb4e20945c68eb5618211b
from .. import nengo as nengo ## This example demonstrates how to create a neuronal ensemble containing a single neuron. ## ## Network diagram: ## ## [Input] ---> (Neuron) ## ## ## Network behaviour: ## A = Input ## # Create the nengo model model = nengo.Model('Single Neuron') # Create the network ...
jaberg/nengo
examples/singleneuron.py
Python
mit
1,505
[ "NEURON" ]
67641a9a2e82d9cddf0c4740bf7c45c8ac303202d0e61b887d60ac0146f491ec
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Kyle A. Beauchamp # Contributors: Robert McGibbon, John D. Cho...
tcmoore3/mdtraj
mdtraj/formats/mol2.py
Python
lgpl-2.1
8,106
[ "MDTraj", "OpenMM" ]
dcac72a720b46d72ec7262991e1ae4c3114d13184ac87734177d00dbc6d9a302
#!/usr/bin/env python ############################################################################## # # Usage example for the procedure PPXF, which # implements the Penalized Pixel-Fitting (pPXF) method by # Cappellari M., & Emsellem E., 2004, PASP, 116, 138. # The example also shows how to include a library of templa...
cebarbosa/fossilgroups
ppxf/ppxf_kinematics_example_sdss.py
Python
gpl-3.0
9,679
[ "Galaxy", "Gaussian" ]
98d10a77b72f6368e9fa1855a02083435133a680a5b096a92178af29b517a0cc
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import vtk class VTKtoITKF3(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(se...
nagyistoce/devide
modules/insight/VTKtoITKF3.py
Python
bsd-3-clause
2,339
[ "VTK" ]
8375b5fc1fb2200d93da5c6dc62d369d3c5380fa483e011eab74b151310d8493
import logging from abc import ABCMeta from abc import abstractmethod from io import BytesIO from string import Template from urllib.parse import urlencode, urljoin from galaxy.util import unicodify from .util import copy_to_path log = logging.getLogger(__name__) class PulsarInterface(metaclass=ABCMeta): """ ...
galaxyproject/pulsar
pulsar/client/server_interface.py
Python
apache-2.0
6,188
[ "Galaxy" ]
668919d78545db03453c9e04c8ec6218397e121766f4e77232a6cf4e0af11f63
from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida.orm.data.array import ArrayData from aiida.orm.data.structure import StructureData from aiida.orm.data.parameter import ParameterData import numpy as np def read_log_file(logfile): f = open(logfile, 'r') ...
abelcarreras/aiida_extensions
plugins/parsers/lammps/optimize.py
Python
mit
6,836
[ "LAMMPS" ]
a2f8df56e36f3b1ebdea1dc2e76fd4b3dc6ff43ca5bcbfe58941c232aacfd326
# File: # rectilinear_contour_xarray.py # # Synopsis: # Demonstrate the use of xarray to read a netCDF file. # Create a contour plot. # # Category: # xarray # netCDF # contour # # Author: # Karin Meier-Fleischer # # Date of initial publication: # January, 2019 # # Description: # Demon...
KMFleischer/PyEarthScience
Visualization/PyNGL/contour_plot_rectilinear_xarray.py
Python
mit
6,438
[ "NetCDF" ]
2d5bb599ce1a3d05f4d23cdb4411360378b8c6111a7722c07d133b84816a566d
import numpy as np import skimage from PIL import Image, ImageEnhance from scipy.ndimage.filters import gaussian_filter from scipy.ndimage.interpolation import map_coordinates from skimage import color, exposure, filters from skimage.util import random_noise def _elastic_transform_2d(img, sigma=6, alpha=36, random=Fa...
Swall0w/clib
clib/transforms/imageprocessing.py
Python
mit
2,373
[ "Gaussian" ]
b889e526de9039b0685d6cbe47a8996825d0c79026428d5a7c15284c0dc05833
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # this test covers a lot of the code in vtkAbstractTransform that # is not covered elsewhere # create a rendering window renWin = vtk.vtkRenderWindow() renWin.SetMultiSamples(0) renWi...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Core/Testing/Python/TransformCoverage.py
Python
gpl-3.0
7,494
[ "VTK" ]
be0d3c2ef07306ea644e6b5ef0ed3acce4ab602a61e53991b7680039ee83ac89
from __future__ import print_function import numpy as np from math import sqrt, exp def tri2full(H_nn, UL='L'): """Fill in values of hermitian matrix. Fill values in lower or upper triangle of H_nn based on the opposite triangle, such that the resulting matrix is symmetric/hermitian. UL='U' will copy...
suttond/MODOI
ase/transport/tools.py
Python
lgpl-3.0
14,465
[ "Gaussian" ]
2abb984cc2cbedcfe6eb0ffff6cb8d629e127900fd38833c374335dd2f1c0af8
######################################################################## # $HeadURL$ # File : SSHComputingElement.py # Author : Dumitru Laurentiu, A.T. ######################################################################## """ SSH (Virtual) Computing Element: For a given IP/host it will send jobs directly through ...
rajanandakumar/DIRAC
Resources/Computing/SSHComputingElement.py
Python
gpl-3.0
24,521
[ "DIRAC" ]
ccf241ada80db430381c75678881dce02c0cfb3a1eeb2d1c7644ad9ce9a71f73
""" ========================================================== Compute point-spread functions (PSFs) for MNE/dSPM/sLORETA ========================================================== PSFs are computed for four labels in the MNE sample data set for linear inverse operators (MNE, dSPM, sLORETA). PSFs describe the spread o...
adykstra/mne-python
examples/inverse/plot_mne_point_spread_function.py
Python
bsd-3-clause
3,134
[ "Mayavi" ]
3202c45848a8aece8580c5dfc1ec9e0a70c7a407f87acfce35c1b8631f84bbae
# -*- coding: utf-8 -*- """ Kay framework. :Copyright: (c) 2009 Accense Technology, Inc. Takashi Matsuo <tmatsuo@candit.jp>, Ian Lewis <IanMLewis@gmail.com> All rights reserved. :license: BSD, see LICENSE for more details. """ import os import sys impor...
Letractively/kay-framework
kay/__init__.py
Python
bsd-3-clause
7,280
[ "VisIt" ]
d6eec0376ad436b3692143f4579f0dc2fb36450782e700340caf93d9538c8c74
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import cv2 image = mpimg.imread('exit-ramp.jpg') gray = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) #grayscale conversion # Define a kernel size for Gaussian smoothing / blurring # Note: this step is optional as cv2.Canny() applies a 5x5...
DavidObando/carnd
Term1/Project1/Other Material/exitramp.py
Python
apache-2.0
2,407
[ "Gaussian" ]
28dd4fbc345b004e7a6ea2bc228443f78a209477d507ab51c3bd6b1e24238c17
# [1] https://www.sciencedirect.com/science/article/pii/S0166128098004758 # https://doi.org/10.1016/S0166-1280(98)00475-8 # Dapprich, Frisch, 1998 # [2] https://onlinelibrary.wiley.com/doi/abs/10.1002/9783527629213.ch2 # Clemente, Frisch, 2010 # # Not implemented in pysisyphus # # [2] https://aip.scitation....
eljost/pysisyphus
pysisyphus/calculators/ONIOMv2.py
Python
gpl-3.0
34,889
[ "Jmol", "ORCA", "OpenMolcas", "Psi4", "PySCF", "TURBOMOLE", "xTB" ]
d25f3bf7a0bd0344e70f222f554cb9272e229c72ee1cbd9e10e9ba062f8967ea
#!/usr/bin/env python ''' Optimize the geometry of excited states using CASSCF or CASCI Note when optiming the excited states, states may flip and this may cause convergence issue in geometry optimizer. ''' from pyscf import gto from pyscf import scf, mcscf mol = gto.Mole() mol.atom="N; N 1, 1.1" mol.basis= "6-31g"...
sunqm/pyscf
examples/geomopt/12-mcscf_excited_states.py
Python
apache-2.0
2,328
[ "PySCF" ]
7733152497246db6d39a97297c5b44dc0b0e730a16ba75c7616d158901588eb0
#!/usr/bin/env python ''' This program takes a list of module files and creates a (possibly disjoint) directed graph of the modules and their dependencies. Arrows on the directed graph point to the dependent module. Typical usage would be as follows: VisualizeModuleDependencies.py VTKSourceDir vtkFiltersSources,vtkI...
sumedhasingla/VTK
Utilities/Maintenance/VisualizeModuleDependencies.py
Python
bsd-3-clause
11,041
[ "VTK" ]
1b1a2acf42871b654041c0e4b628594b7cbc94ed8e82f8f7f376a8ea88dc6504
# 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 * import glob import os import tempfile class Ncl(Package): """NCL is an interpreted language desi...
rspavel/spack
var/spack/repos/builtin/packages/ncl/package.py
Python
lgpl-2.1
10,773
[ "NetCDF" ]
f0237e6ffbd4ce06a5be2c9460e6aa664b88134589f6bc1ae1ac50bdde7febf4
#!/usr/bin/python # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as published by # the Free Software Foundation; version 2 only # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without...
kholia/pyrpm
scripts/oldpyrpm.py
Python
gpl-2.0
281,247
[ "VisIt" ]
8c7f4911b893e5757b2a348be30be2ca6b880831a835549dbfda401708ab38ba
# # @BEGIN LICENSE # # QCDB: quantum chemistry common driver and databases # # Copyright (c) 2011-2017 The QCDB Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of QCDB. # # QCDB is free software; you can redistribute it and/or modify # it ...
loriab/qcdb
qcdb/periodictable.py
Python
lgpl-3.0
78,250
[ "CFOUR", "Psi4" ]
b704bacb4d34099d5318dbdb8d6f5a0aa1e35578d38e6a9d1d406bd0d95d5f37
#!/usr/bin/env python from setuptools import setup __version__ = '0.1' setup( name = 'kraller', version = __version__, description = 'A little application to allow signups with keys for accounts on a server', author = 'Brian Stack', author_email = 'bis12@case.edu', url = 'http://github.com/hacsoc/kraller...
hacsoc/kraller
setup.py
Python
bsd-2-clause
728
[ "Brian" ]
aeb47b37984c12589c03878942f13eeb08a7de6d0039d91a5c48d912dc934170
# -*- 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 required by applicable law or...
googleapis/python-pubsub
tests/unit/gapic/pubsub_v1/test_subscriber.py
Python
apache-2.0
195,501
[ "Octopus" ]
d761556ddcfb740042fc51cecb3b2a6fc23dc36d5585444283c4375e4f511d03
POPULAR_PREFIXES = {} PREFIX_SCORES = {} POPULAR_PREFIXES[2] = """ ma ca se co ba sa lo pa re th ho ha mo sh bi be te la ne fi me ch in al li bo go po to st so ta fa mi da tr do le vi bu my no su di si ra wa an ar ga he ro fo jo wi pr pe de pi gr ge ki as na ka cl hi fl ti dr sp fu ad yo on bl wo ke us ea pl wh am ri ...
jcrocholl/nxdom
prefixes/popular.py
Python
mit
298,933
[ "ADF", "ASE", "Amber", "BLAST", "Brian", "CASINO", "CDK", "Elk", "Galaxy", "Jaguar", "MOE", "MOOSE", "ORCA", "VisIt" ]
84bda6c550ac53ff9edcef893314e1fb28230171ce05b2c3b5ecd763ededb30a
# ============================================================================ # # Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
jeroendierckx/Camelot
camelot/view/model_thread/signal_slot_model_thread.py
Python
gpl-2.0
10,093
[ "VisIt" ]
beaf197ff57c1d3042b7f0dbf4921a388751f1688c6914c940edeaccd22cd80d
#!/usr/bin/python import os, glob, shutil import model_param as mc def transfer(filename): path, name = os.path.split(filename) f = name.split('_') print "Transferring... " + name # netCDF file destination base folder d...
lorenghoh/ent_analysis
conversion/nc_transfer.py
Python
mit
602
[ "NetCDF" ]
dbd5a6d4c90fa7dab8cdf0154148a0cbd641699f957420574e08dee7a8f5d5f6
# only pull once per stock # urllib2 opens http urls (authentication, redirections, cookies, etc.) import urllib2 # timer not to overload sites import time import os, sys stockToPull = 'AAPL' # AAPL, FB, UAA stockRange = '1y' # 1y, 10d def pullData(stock): try: # one time creation of stock's data to be stored here...
Darthone/bug-free-octo-parakeet
technical-analysis/2-get-stock-prices.py
Python
mit
1,368
[ "VisIt" ]
6440e77eab91e78e0dae04bb93051bf64f3b9f4ddda92ac954fd9938abc6bf49
from ase import Atoms from ase.structure import molecule from ase.visualize import view from gpaw import GPAW from gpaw.wannier import Wannier calc = GPAW(nbands=5) atoms = molecule('CO') atoms.center(vacuum=3.) atoms.set_calculator(calc) atoms.get_potential_energy() # Initialize the Wannier class w = Wannier(calc) w...
robwarm/gpaw-symm
doc/exercises/wannier/wannier-co.py
Python
gpl-3.0
411
[ "ASE", "GPAW" ]
db228a1df4e6fbc6b3e22fbb32fff01804c88449d0b8d975a3a95ae2cf3e98b8
# (C) British Crown Copyright 2010 - 2016, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
SusanJL/iris
lib/iris/cube.py
Python
gpl-3.0
158,463
[ "NetCDF" ]
3f86ff19647816f6a5d176a99bb928a6931d8edc1afa9784ee93aec3f0d80926
""" Tests on the repository activation/deactivation functions """ from octopus.modules.es.testindex import ESTestCase from service import control, models import time class TestModels(ESTestCase): def setUp(self): super(TestModels, self).setUp() def tearDown(self): super(TestModels, self).tear...
JiscPER/jper-sword-out
service/tests/unit/test_control.py
Python
apache-2.0
1,105
[ "Octopus" ]
bf9623dcdf8290c9fd13c1ba67411d4b305fa3ff7ada52aec608c6e9ef6d61a7
""" Unit tests for calculation of lattice Green function for diffusion """ __author__ = 'Dallas R. Trinkle' import unittest import numpy as np from scipy import special import onsager.GFcalc as GFcalc import onsager.crystal as crystal def poleFT(di, u, pm, erfupm=-1): """ Calculates the pole FT (excluding t...
DallasTrinkle/Onsager
test/test_GFcalc.py
Python
mit
12,215
[ "CRYSTAL", "Gaussian" ]
98cc63dec1f85b89ab86c11bec8679f742231b2ee91ddd93f6de793b65876317
import os import sys import copy import cPickle import numpy as np seed = np.random.randint(2**16) # seed = 2958 # seed = 60017 if "DISPLAY" not in os.environ: import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from optofit.cneuron.compartment import Compartment, SquidCompartment from o...
HIPS/optofit
examples/two_gp_demo.py
Python
gpl-2.0
21,174
[ "Gaussian", "NEURON" ]
8141f95523d973a1274aa41a46328bc953adcd03a38cddcba80543f819bad7f2
# -*- coding: utf-8 -*- """ Created on Thu Mar 20 08:58:56 2014 Script to generate intro-example.odml @author: zehl """ import odml import datetime odmlrepo = 'http://portal.g-node.org/odml/terminologies/v1.0/terminologies.xml' # CREATE A DOCUMENT doc = odml.Document(author="D. N. Adams", date=...
carloscanova/python-odml
doc/example_odMLs/thgttg.py
Python
bsd-3-clause
11,921
[ "Galaxy" ]
3043ac62ce4bf6fcf10553aa031c65db5bd0ff05c0f2b80c359dd747d0126a2e
#How to extract histogram: http://stackoverflow.com/questions/22159160/python-calculate-histogram-of-image from __future__ import division, print_function, absolute_import import tflearn from tflearn.data_utils import shuffle, to_categorical from tflearn.layers.core import input_data, dropout, fully_connected from tfl...
jmrozanec/white-bkg-classification
scripts/05-histogram-random-forest.py
Python
apache-2.0
5,046
[ "Gaussian" ]
1723bd91365e199fe3932da971014a092f7e10870da1451659af7b700309c665
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Abinit Post Process Application author: Martin Alexandre last edited: May 2013 """ import sys,os,commands,threading import string, math, re #GUI import gui.graph as Graph import gui.md as MD import gui.gs as GS import gui.elasticConstant as ElasticConstant import g...
SamKChang/abinit-7.10.5_multipole
scripts/post_processing/appa/gui/main_frame.py
Python
gpl-3.0
11,569
[ "ABINIT", "NetCDF" ]
1ad3cadcf801918235b771ccde74e3ed724ede8b82b61ae812f21812938b6e95
#!/usr/bin/env python """ update local cfg """ from __future__ import print_function from __future__ import absolute_import from __future__ import division import os from diraccfg import CFG from DIRAC.Core.Base import Script Script.setUsageMessage('\n'.join([__doc__.split('\n')[1], ...
yujikato/DIRAC
tests/Jenkins/dirac-cfg-update.py
Python
gpl-3.0
2,689
[ "DIRAC" ]
ac702c3833c0ef124243b12f1486bef88eb3a60bd591a389cb086003994d5cb8
"""Takes in grades from the user then prints out relavent data. Written By: Brian O'Dell, October 2017 The program will take in grades from the user until they enter '-1'. Once that occurs the while loop will break out, and the frequency of each category will be displayed. The categories are defined by [x0 - x9] wher...
brian-o/CS-CourseWork
CS471/ExceptionHandling/exceptionInPython.py
Python
gpl-3.0
2,495
[ "Brian" ]
c3568eac445fd6d0e358d740435e0a595a264727d0d93243e5745db035ac6db1
from __future__ import unicode_literals import sys sys.path = sys.path[1:] from .forms import ParameterForm, PeakTableForm, MixtureForm, PowerTableForm, PowerForm from .models import NeuropowerModel from .utils import get_url, get_neuropower_steps, get_db_entries, get_session_id, create_local_copy, get_neurovault_form ...
neuropower/neuropower
neuropower/apps/neuropowertoolbox/views.py
Python
mit
17,244
[ "VisIt" ]
b29ba2dbf5114fee8435441aed09eba4fa9decfbd0bb16aebd614591ebb2330c
from __future__ import unicode_literals import sys import spotipy from pytify.history import history from spotipy.oauth2 import SpotifyClientCredentials # Fetch songs with spotify api class Pytifylib: # hold songs _songs = {} # limit output songs _limit = 15 def _spotify(self): return se...
bjarneo/Pytify
pytify/pytifylib.py
Python
mit
3,312
[ "VisIt" ]
ad93200e7995177c5290cf771e3637e5a208dd30020000780bf98212e0c723ee
from __future__ import unicode_literals import re import random import string from unittest.mock import patch from datetime import datetime # from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.contrib.auth.models import ...
danirus/django-comments-xtd
django_comments_xtd/tests/test_views.py
Python
bsd-2-clause
21,327
[ "VisIt" ]
74a9220b5a8c9f983424c86d71633504adc279c700f1357e5b16fe2acda38271
""" The Phi DSL is all about creating and combining functions in useful ways, enabling a declarative approach that can improve clarity, readability and lead to shorter code. Its has two main functionalities 1. The lambdas capabilities which let quickly create readable functions. 2. The `Expression` combinator methods ...
cgarciae/phi
phi/dsl.py
Python
mit
41,557
[ "VisIt" ]
d67d088f9306eca9530393811f62ce91f70994d9b384c980d91131e096a2b2a4
from ovito.io import import_file from ovito.data import CutoffNeighborFinder # Load input simulation file. node = import_file("simulation.dump") data = node.source # Initialize neighbor finder object: cutoff = 3.5 finder = CutoffNeighborFinder(cutoff, data) # Loop over all input particles: for index in range(data.nu...
srinath-chakravarthy/ovito
doc/python/example_snippets/cutoff_neighbor_finder.py
Python
gpl-3.0
554
[ "OVITO" ]
173f49f5599c533956944795e2cccc7a490115bf7f474e35cc67fecc73fe1713
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin {%- if cookiecutter.use_async == 'y' %} from django.contrib.staticfiles.urls import staticfiles_urlpatterns {%- endif %} from django.urls import include, path from django.views import defaults as default_views f...
trungdong/cookiecutter-django
{{cookiecutter.project_slug}}/config/urls.py
Python
bsd-3-clause
2,353
[ "VisIt" ]
7268e0d85891b890ec164ed12ce35f676ec4e353c4b378686425f1626eb9cc0b
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2002 Gary Shao # Copyright (C) 2007 Brian G. Matherly # Copyright (C) 2009 Benny Malengier # Copyright (C) 2009 Gary Burton # # This program is free software; you can redistribute i...
Forage/Gramps
gramps/gen/plug/docgen/tablestyle.py
Python
gpl-2.0
6,977
[ "Brian" ]
f50d33fc06d844a295f0661b90e4709a959abe51a89b11b53440c35e5365454b
# Copyright 2015 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...
ghchinoy/tensorflow
tensorflow/python/ops/image_ops_test.py
Python
apache-2.0
202,288
[ "Gaussian" ]
1d2a94725a61d62325eb1d666637b839e0421a481968c080b6640e1c8dc48a3d
""" Acceptance tests for Studio related to the container page. The container page is used both for displaying units, and for displaying containers within units. """ import datetime import ddt from base_studio_test import ContainerBase from common.test.acceptance.fixtures.course import XBlockFixtureDesc from common.te...
jolyonb/edx-platform
common/test/acceptance/tests/studio/test_studio_container.py
Python
agpl-3.0
68,525
[ "VisIt" ]
a9789ceb62decaf4ad41acc79cd2fc29adc5be3bd922c1929421763a52a53fea
from django.contrib.auth import get_user_model from core.tests.base import BaseTestCase class UserModelTestCase(BaseTestCase): def setUp(self): super(UserModelTestCase, self).setUp() # Create sample diaries self.user.diary_set.create( datetime="2016/07/02", conte...
jupiny/EnglishDiary
english_diary/users/tests/test_models.py
Python
mit
4,425
[ "exciting" ]
86a9e5f2dffdaa6d3533eba976880aa0667ccd024db547e6b75d39f271a73e45
# # A file that opens the neuroConstruct project LarkumEtAl2009 run the cell model LarkumPyr (used by the teststim.py script) # # Author: Matteo Farinella from sys import * from java.io import File from java.lang import System from java.util import ArrayList from ucl.physiol.neuroconstruct.project import...
pgleeson/TestArea
models/LarkumEtAl2009/testmodel.py
Python
gpl-2.0
5,240
[ "NEURON" ]
e7354600c32e979caab4725124adf61a54737f698b0c3f6b080cf39d41072e27
# -*- coding: utf-8 -*- """ Display cryptocurrency data. The site we retrieve cryptocurrency data from offer various types of data such as name, symbol, price, volume, percentage change, total supply, et cetera for a wide range of cryptocurrencies and the prices can be obtained in a different currency along with USD c...
alexoneill/py3status
py3status/modules/coin_market.py
Python
bsd-3-clause
8,379
[ "VisIt" ]
f6bc20ca9909827277c72230d07a4fcfcaeb7f9eb8eae0052f80e0ea6ecd7cc9
"""This module implements an scanerless Earley parser. The core Earley algorithm used here is based on Elizabeth Scott's implementation, here: https://www.sciencedirect.com/science/article/pii/S1571066108001497 That is probably the best reference for understanding the algorithm here. The Earley parser outputs an...
python-poetry/poetry-core
src/poetry/core/_vendor/lark/parsers/earley.py
Python
mit
14,853
[ "VisIt" ]
0ee49890c1373beb491f14a7cdd88b4ea988880a458ddd8888efa0d9aadc1453
from pymol import cmd #from glob import glob #import build_seq #import seq_convert #files = glob.glob("/afs/pdc.kth.se/home/s/syazdi/Disc2/PROJECT/Scripts/sequences/*") #for file in glob("sekwencje/*"): #file="AA" #runbuildseq='run /home/wiktor/Zabawki/pymol_scripts/lib/build_seq.py' #cmd.do(runbuildseq) #cmd.do('run...
wjurkowski/tmdrug
peptide_builder/pymol_create_sequence.py
Python
apache-2.0
2,508
[ "PyMOL" ]
3e2e05eca907844e932b354ee884b5c0a9ca7ef9d0964a9a6b4b9696094a84b1
#!/usr/bin/env python import os import sys import string import argparse import subprocess import tempfile parser = argparse.ArgumentParser(description='Android system files extractor') parser.add_argument("-p", "--prefix", metavar="NAME", required=True, help="Prefix for stored files, e.g. galaxy...
Teaonly/easyLearning.js
TensorExpress/aten/src/ATen/cpu/cpuinfo/scripts/android-filesystem-dump.py
Python
mit
13,760
[ "Galaxy" ]
d145a0a2abe0f07f99defca9ceaf03bc521a73a494d5f408dcf332be1e6fead6
""" Test backend attachment """ __RCSID__ = "$Id$" import pytest from DIRAC.FrameworkSystem.private.standardLogging.test.TestLogUtilities import gLogger, gLoggerReset, cleaningLog def getContentFromFilename(backendOptions): """Get content from the file attached to a given backend and erase the content from the...
ic-hep/DIRAC
src/DIRAC/FrameworkSystem/private/standardLogging/test/Test_Logging_Backends.py
Python
gpl-3.0
5,140
[ "DIRAC" ]
fc97e939af37e726f19d60a195c1494d92ed99793372f8adf234979abf59d0c6
import logging from sms import SMSSender class BaseBot(object): """Base class for bot classes""" def __init__(self, browser, config, planets): # Authenticate and get browser instance self.browser = browser self.config = config # Get logger self.logger = logging.getLog...
winiciuscota/OG-Bot
ogbot/core/base.py
Python
mit
2,566
[ "Galaxy" ]
e99cfc39fde5b6124f3b9962fd5bc977062599f031ca0df7f6650b1f0725ec90
import numpy as np from .control import model_setup from .cp_confocal import threed from .cp_triplet import trip def CF_Gxyz_blink(parms, tau): u""" Three-dimanesional free diffusion with a Gaussian laser profile (eliptical), including a triplet component. The triplet factor takes into account a ...
paulmueller/PyCorrFit
pycorrfit/models/model_confocal_t_3d.py
Python
gpl-2.0
2,628
[ "Gaussian" ]
c3b2833d6443a448f1c7a6da09190a4837587504d791c3a2845a768bd0c28286
# -*- coding: utf-8 -*- """Release data for the IPython project.""" #----------------------------------------------------------------------------- # Copyright (c) 2008, IPython Development Team. # Copyright (c) 2001, Fernando Perez <fernando.perez@colorado.edu> # Copyright (c) 2001, Janko Hauser <jhauser@zscout.de>...
lancezlin/ml_template_py
lib/python2.7/site-packages/IPython/core/release.py
Python
mit
4,386
[ "Brian" ]
ab985e17f5b104735f89f394fe67a512e55dce7ee226a6cbd4b6f99aa24e6526
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007-2008 Brian G. Matherly # Copyright (C) 2008 Stephane Charette <stephanecharette@gmail.com> # Contribution 2009 by Bob Ham <rah@bash.sh> # Copyright (C) 2010 Jakim Friant # Copyright (C) 2013-2014 Paul Franklin # Copyright (C) 2015 ...
prculley/gramps
gramps/plugins/graph/gvhourglass.py
Python
gpl-2.0
16,020
[ "Brian" ]
2c241246ba0848080284a35bb6e8cf966720e8cd9bda734ee9f58aeee0233873
#!/usr/bin/python """Test of label guess functionality.""" from macaroon.playback import * import utils sequence = MacroSequence() #sequence.append(WaitForDocLoad()) sequence.append(PauseAction(5000)) sequence.append(PauseAction(3000)) sequence.append(KeyComboAction("<Control>Home")) sequence.append(utils.StartRec...
chrys87/orca-beep
test/keystrokes/firefox/label_inference_mailman.py
Python
lgpl-2.1
6,487
[ "VisIt" ]
a2e2c8142e791677583bbc3b89ccbecd0263e53ddfd8f7d1fdf28e647336f0dd