text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
from math import sqrt,log import numpy as np from matplotlib import pyplot import rft1d eps = np.finfo(float).eps def here_cca_single_node(y, x): N = y.shape[0] X,Y = np.matrix(x.T).T, np.matrix(y) Z = np.matrix(np.ones(N)).T Rz = np.eye(N) - Z*np.linalg.inv(Z.T*Z)*Z....
0todd0000/rft1d
rft1d/examples/val_broken_4_X2.py
Python
gpl-3.0
2,803
[ "Gaussian" ]
0710374fb5e872cfaaaf6a8f36f31aa03ab57095b2d5739798baa772b5f73ebe
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
sam-m888/gramps
gramps/plugins/webreport/source.py
Python
gpl-2.0
12,328
[ "Brian" ]
660b60828843cc772ffa4c1aabc44f62b82f1530fe193d3efee0139a5e1a6be6
""" 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.0 (the "License"); ...
PeterLauris/aifh
vol1/python-examples/test/aifh/test_rbf_network.py
Python
apache-2.0
3,420
[ "Gaussian", "VisIt" ]
fbbc287e617da47d596dd20f6e483a0f412d6bd85947160a78f9c76be909790f
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. """ Miscellaneous tools used by OpenERP. """ from functools import wraps import cPickle import cProfile from contextlib import contextmanager import subprocess import logging import os import passlib.utils import socke...
akhmadMizkat/odoo
openerp/tools/misc.py
Python
gpl-3.0
36,562
[ "VisIt" ]
5a6be6a98f73acd99c01e0a70a16041741d1a44190ac9eecd5eef5b2fc117b49
import ocl import pyocl import camvtk import time import datetime import vtk def main(): print(ocl.revision()) myscreen = camvtk.VTKScreen() myscreen.camera.SetPosition(-15, -8, 15) myscreen.camera.SetFocalPoint(0,0, 0) # axis arrows camvtk.drawArrows(myscreen,center=(0,0,0)) s = o...
aewallin/opencamlib
src/attic/ocode/cutsim_test_5_mc_resolution_anim.py
Python
lgpl-2.1
2,329
[ "VTK" ]
3701f7f8a4c4d654d2b43c3322cc64b6506c3228897f9ae5d3bc2f0a26628193
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/songs/lib/ewimport.py
Python
gpl-2.0
14,123
[ "Brian" ]
b96e29a7d797b9bb04baaadfe7effd37293f00c007b0508105a818906ec4f7fb
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
haoyuchen1992/CourseBuilder
modules/dashboard/analytics.py
Python
apache-2.0
27,628
[ "VisIt" ]
fef5eaecde8ffa58cdb7e34b702a39c356008e8f98513d108d303d5210495589
#!/usr/bin/env python2 from __future__ import division from math import * import sys, os import h5py from optparse import OptionParser from numpy import * try: from matplotlib import cm, pyplot, ticker from mpl_toolkits.mplot3d import Axes3D except ImportError as e: print "Couldn't import matplotlib:", str...
luosaiyu/itp2d
scripts/plot_potential.py
Python
gpl-3.0
3,399
[ "Mayavi" ]
32413754645baf8af2b016571032649cc9300df142521e9dcfc752f68b59ae21
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
keras-team/keras
keras/layers/kernelized_test.py
Python
apache-2.0
15,972
[ "Gaussian" ]
9a17771c282ce6b702fae84577cf9b642da3f22f417fd2587a126d27661ae78e
# mako/pyparser.py # Copyright (C) 2006-2012 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Handles parsing of Python code. Parsing to AST is done via _ast on Python > 2.5, otherwise th...
swangui/ggrid
mako/pyparser.py
Python
mit
18,083
[ "VisIt" ]
7e4d915c4f06ccaecabcae8a7dc12fa6a41bcdbc89bd98e93af84fc4fdaba0d1
# Copyright 2014 Diamond Light Source Ltd. # # 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...
rcatwood/Savu
savu/plugins/filters/fitters/base_fluo_fitter.py
Python
gpl-3.0
8,790
[ "Gaussian" ]
28b7605753f70de38973fe8d9e38b422c600f1859ec6620722f6d381e3be6258
''' Mesh ==== ''' import copy class Nodes(object): ''' Manages nodes for finite element modeling pre/postprocessing and further graphical representations. :param labels: list of node labels. :type labels: list of int > 0 :param x: x coordinate of nodes. :type x: list floats :param y: y coordinate...
lcharleux/abapy
abapy/mesh.py
Python
gpl-2.0
95,476
[ "ParaView", "VTK" ]
35926aa7879abfac227f94f8c88639a2b2a2d810e1bd81c4a68711bb70d1d63b
import logging from celeryutils import task from mkt.feed.models import FeedApp, FeedCollection log = logging.getLogger('z.feed') @task def _migrate_collection_colors(ids, model): """Migrate deprecated background color (hex) to color (name).""" cls = FeedApp if model == 'collection': cls = FeedC...
clouserw/zamboni
mkt/feed/tasks.py
Python
bsd-3-clause
1,042
[ "Amber" ]
a781a04154f42330b21abce6c08bb0f7451469f9e3920bcc1fad77e0e6af1fca
""" cclib (http://cclib.sf.net) is (c) 2006, the cclib development team and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html). """ __revision__ = "$Revision: 238 $" from PyQt4 import QtGui,QtCore class Qt4Progress(QtGui.QProgressDialog): def __init__(self, title, parent=None): QtGui.QPr...
faribas/RMG-Java
source/cclib/progress/qt4progress.py
Python
mit
996
[ "cclib" ]
231d59b47a49cd5a7761fe851f6867c52fbf09f0ad1dff2323878ed12dcd04b2
#!/usr/bin/env python ######################################################################## # File : dirac-wms-job-status # Author : Stuart Paterson ######################################################################## """ Retrieve status of the given DIRAC job Example: $ dirac-wms-job-status 2 JobID=2 S...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_wms_job_status.py
Python
gpl-3.0
2,205
[ "DIRAC" ]
aa6f96f574a180b18c14ff70fbc8561b0635c676597ca507426124ed87085111
from collections import deque from fastnet import argparse, util, layer, data from fastnet.checkpoint import CheckpointDumper, DataDumper, MemoryDataHolder from fastnet.layer import TRAIN, TEST from fastnet.net import FastNet from fastnet.parser import parse_config_file, load_model from fastnet.scheduler import Schedul...
rjpower/fastnet
fastnet/trainer.py
Python
gpl-3.0
22,105
[ "NEURON" ]
9bbb76d8c486a25faa91d9e4da3639617c1a3ecde27ad5c16dadb67cdb4a9aa0
''' Created on 2009-09-08 @author: beaudoin Contains a abstract syntactic tree visitor for printing nested function calls in a nice way. Used for cleaning-up output of the serialize method. See the python standard ast module for details. ''' import ast class Fancify( ast.NodeVisitor ): de...
Banbury/cartwheel-3d
Python/PyUtils/Fancify.py
Python
apache-2.0
3,358
[ "VisIt" ]
430ecbb96c147fc464b3a7d760102fcf44d4e97e4a85794f1054126309401f90
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
drpngx/tensorflow
tensorflow/contrib/autograph/pyct/qual_names.py
Python
apache-2.0
7,395
[ "VisIt" ]
bd37130384ced460b8d27212be2f6fe5ccd089438b9cd9f81b0124398bb09333
""" Upload class """ from galaxy.web.base.controller import * from galaxy.util.bunch import Bunch from galaxy.tools import DefaultToolState from galaxy.tools.parameters.basic import UnvalidatedValue from galaxy.tools.actions import upload_common import logging log = logging.getLogger( __name__ ) class AddFrameData: ...
volpino/Yeps-EURAC
lib/galaxy/web/controllers/tool_runner.py
Python
mit
10,594
[ "Galaxy" ]
8a6bf6618e784c24477b222c9f350b28b27c35778d4cfdeaaa7355d3f71b357c
# Orca # # Copyright 2005-2008 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
Alberto-Beralix/Beralix
i386-squashfs-root/usr/share/pyshared/orca/scripts/apps/evolution/script.py
Python
gpl-3.0
60,606
[ "ORCA" ]
625e79e655d035d7703558c4a16b1575939d49372adbfafede612de38b96cdf4
""" ============ django-slack ============ ------------------------------------- Seamless Slack integration for Django ------------------------------------- This project provides easy-to-use integration between `Django <http://www.djangoproject.com/>`_ projects and the `Slack <https://www.slack.com>`_ group chat and ...
NejcZupec/django-slack
django_slack/__init__.py
Python
bsd-3-clause
6,142
[ "VisIt" ]
6b876f5a9fa2473443181a5db66884c67932031b55096563d0b173185b1e594c
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Classes corresponding to Newick trees, also used for Nexus trees. See classes in Bio...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/Phylo/Newick.py
Python
gpl-2.0
1,084
[ "Biopython" ]
1b37df1b29e0c192b617a96e29e612a5af7f5323dab676dcf489a061a1d74953
import os import vtkAll as vtk import math import time import numpy as np from director import callbacks from director import transformUtils from director import lcmUtils from director import objectmodel as om from director.utime import getUtime from director import robotstate try: import robotlocomotion as lcmrl...
mitdrc/director
src/python/director/robotplanlistener.py
Python
bsd-3-clause
10,066
[ "VTK" ]
5a4190c99a0fbac83ce43c6eaaafc824b75167557b65d5d1fd8f14467b27fba7
import os import unittest from __main__ import vtk, qt, ctk, slicer class CardiacMRIToolkitSelfTest: def __init__(self, parent): parent.title = "CardiacMRIToolkitSelfTest" parent.categories = ["Testing.TestCases"] parent.dependencies = [] parent.contributors = ["Salma Bengali (CARMA), Alan Morris (C...
carma-center/carma_slicer_extension
Testing/Python/CardiacMRIToolkitSelfTest.py
Python
bsd-2-clause
11,432
[ "Brian", "VTK" ]
e5bb68c735ed7f8eb19d73e88541ae702126d97ab8e4c338c3233335d297c67f
#! /usr/bin/env python """ Parses a hit table and prints out a fasta database of the hits. Source fasta data must be supplied via STDIN or the -i flag. """ from math import floor from Bio import SeqIO, SeqRecord from edl.util import add_universal_arguments, setup_logging, InputFile from edl.blastm8 import add_...
jmeppley/py-metagenomics
get_sequences_from_m8.py
Python
mit
10,197
[ "BLAST" ]
4b151ad80a43587e2dd43ec73748c78184159ff34bea35c76687c39d824f91a8
from ASE.Filters.Join import Join import Asap.fixepydoc Asap.fixepydoc.fix(Join)
auag92/n2dm
Asap-3.8.4/Python/asap3/Filters/Join.py
Python
mit
81
[ "ASE" ]
0c49a5a497f7130f8ed880ba70b588a7e9fb5c280dd26c7a26bb17c649bf71c3
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Wed Dec 16 11:25:10 2015 @author: david """ import os import sys import time import types import datetime import unittest import subprocess import shutil import filecmp import glob import random import csv import argparse import numpy as np from itertools ...
davidemms/OrthoFinder
tests/test_orthofinder.py
Python
gpl-3.0
65,229
[ "BLAST" ]
ac87919a1379a3477858b9fb0c294af1a4703e6f65827b87aec8cac8f5b543fd
# -*- coding: utf-8 -*- """ inflection ~~~~~~~~~~~~ A port of Ruby on Rails' inflector to Python. :copyright: (c) 2012-2015 by Janne Vanhala :license: MIT, see LICENSE for more details. """ import re import unicodedata __version__ = "0.3.1" PLURALS = [ (r"(?i)(quiz)$", r"\1zes"), (r"(?i...
prophile/jacquard
jacquard/odm/inflection/__init__.py
Python
mit
11,335
[ "Octopus" ]
6d097987c51989615d88ae5ab48a9c4491cb23dd3f1011992ec2157df0d0ef33
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2013 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/remindor-common
remindor_common/helpers.py
Python
gpl-3.0
31,675
[ "Brian" ]
b345d9c231c9509cef959cf63b0db290b19232eaf3c1ee70e6568b4267d509ae
# $HeadURL$ __RCSID__ = "$Id$" """ """ from dirac import DIRAC DIRAC.gLogger.initialize('test_gLogger','/testSectionDebug') try: for i in None: pass except: pass # for i in range(100): # DIRAC.gLogger.info( "test %s" % i ) testList = [{ 'method' : DIRAC.gLogger.always, 'arguments' : ( ( ...
Sbalbp/DIRAC
FrameworkSystem/test/testLogger.py
Python
gpl-3.0
1,708
[ "DIRAC" ]
78cfc9e8589e6341320c61eb1105ce3afb941ee61edc70f770d81d341ab0a88d
#!/usr/bin/python # # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2017 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute...
jH0ward/psi4
doc/sphinxman/document_psifiles.py
Python
lgpl-3.0
3,206
[ "Psi4" ]
b700b41511483bd54e9e56d5ad4062a3008aa61eecd99bbf6cf653b8dd6e7975
""" Physical units and dimensions. The base class is Unit, where all here defined units (~200) inherit from. The find_unit function can help you find units for a given quantity: >>> import sympy.physics.units as u >>> u.find_unit('coul') ['coulomb', 'coulombs'] >>> u.find_unit(u.charge) ['C', 'ch...
wxgeo/geophar
wxgeometrie/sympy/physics/units.py
Python
gpl-2.0
8,519
[ "Avogadro" ]
feb613b2457ff3a939107997a321ac315eeb8770b81cd06fcc64f7489cd1a108
from __future__ import absolute_import, unicode_literals from django.test import TestCase from django.utils import six from .models import (Building, Child, Device, Port, Item, Country, Connection, ClientStatus, State, Client, SpecialClient, TUser, Person, Student, Organizer, Class, Enrollment, Hen, Chick) ...
postrational/django
tests/select_related_regress/tests.py
Python
bsd-3-clause
8,154
[ "Brian" ]
681349c79a28707de18e99f6b360398caed8e8abfa157dacb3b389b0d3de856f
# coding: utf-8 from StringIO import StringIO import unicodecsv from grano.logic import Loader from grano.logic.schemata import import_schema # This source URL will be applied to all properties without their own lineage: DEFAULT_SOURCE_URL = 'http://www.opennews.org/' DATA = """fellow_name,twitter_handle,start_date...
granoproject/grano
grano/test/fixtures.py
Python
mit
3,609
[ "Brian" ]
de5fc4c52f4b53a0e66511e777089dc7f16692e53793626960876d5283f40880
import os import sqlite3 from collections import OrderedDict from numpy.random import random, seed import numpy, json from lsst.sims.utils import ObservationMetaData from lsst.sims.catalogs.generation.db import CatalogDBObject from lsst.sims.utils import raDecFromAltAz, calcObsDefaults, getRotTelPos, Site __all__ = [...
SimonKrughoff/sims_catalogs_generation
python/lsst/sims/catalogs/generation/utils/testUtils.py
Python
gpl-3.0
21,807
[ "Galaxy" ]
243638073f8daf68fe522a960c097ec535af1c0b9dd93240e9740290f1680403
# avisynth - Python AviSynth wrapper # # Copyright 2013, 2016, 2019 the AvsPmod authors <https://github.com/avspmod/avspmod> # # 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 ...
AvsPmod/AvsPmod
avisynth_cffi.py
Python
gpl-2.0
54,570
[ "VisIt" ]
6d93c7ab456cb1766b755fd6a45b24ccff015116fe3bcb2821c1dfba752b8d27
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/prop/nsr/uks.py
Python
apache-2.0
2,350
[ "PySCF" ]
4d1c0b1f270be29a2a2a541b58b28723ce533b0fbecacfd8afca72daa3a7a9a5
# -*- coding: utf-8 -*- #!/usr/bin/env python """ Go through `001_basic_usage.py` before running this example. We will re-use the same computation: x*y and z+w for x in [1, 2, 3], y = 2, z = 4, w in [5, 6] in an experiment called BasicUsage. In example `004_adding_parameter_values.py`, we added a new parameter value....
jm-begon/clustertools
examples/005_adding_parameters.py
Python
bsd-3-clause
3,215
[ "Gaussian" ]
093f694ac748061ba810987dbaf70267111c71be3d47dbde058555a22022e65c
import os import numpy,scipy import scipy.io import pysces from pysces.PyscesModelMap import ModelMap from pylab import figure, close, show, ioff, figtext from matplotlib.transforms import offset_copy import cStringIO,string from colorsys import hsv_to_rgb as htor from matplotlib.figure import Figure as mplfig...
asttra/pysces
pysces/RateChar.py
Python
bsd-3-clause
59,353
[ "PySCeS" ]
4259e3fc1dc5c9229af1c5e4fa9310af308d060b4cae516956c4b8c5291bcc4f
#!/usr/bin/env python import unittest import gemmi from common import full_path class TestAlignment(unittest.TestCase): def test_string_align(self): result = gemmi.align_string_sequences(list('AABCC'), list('ABC'), [True]) self.assertEqual(result.score...
project-gemmi/gemmi
tests/test_align.py
Python
mpl-2.0
3,231
[ "Biopython" ]
48ecef106374f53a5ec2d82148e575135ca2a439bd05db717dea8d8658cc1822
# -*- 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. """Abstract based class for cclib methods.""" import logging import sys class MissingAttributeError(Exceptio...
cclib/cclib
cclib/method/calculationmethod.py
Python
bsd-3-clause
2,242
[ "ADF", "cclib" ]
fc0828ba4760653128debd4592d84efc59b6969cb7663bb686769f93fe4d1690
# # Copyright (c) 2015 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
pombredanne/scancode-toolkit
tests/cluecode/test_authors.py
Python
apache-2.0
9,359
[ "VisIt" ]
e02e19d958cff63876109da7b699e5cd58f4283e4b36e9983753d789bf1f02f8
#!/usr/bin/python """ Author: Brian Kellogg Elsa API query elsa_query.ini format: [MAIN] user = elsa ip = apikey = """ from __future__ import print_function from yattag import Doc import optparse import time import hashlib from requests import Request, Session, packages im...
theflakes/ELSA
elsa_query/elsa_query.py
Python
mit
14,094
[ "Brian" ]
e1cb16b6a88120ce585043bd18ea1bcb98a848d8a91129b20ea60b8c5433e817
""" Anomaly detection. """ import sys, shutil, csv, hashlib, plotly, json from os.path import isdir, join as pJoin from io import StringIO import numpy as np from numpy_financial import npv import pandas as pd from sklearn.neighbors import LocalOutlierFactor from sklearn.ensemble import IsolationForest import plotly.gr...
dpinney/omf
omf/models/anomalyDetector.py
Python
gpl-2.0
21,310
[ "Gaussian" ]
bf9967e36aac16a81d7e9675ae7ff01f1684ddd57922efcfe07f4edb1620b671
from __future__ import division import numpy as np import copy import inspect import types as python_types import marshal import sys import warnings from keras import activations, initializations, regularizers, constraints from keras import backend as K from keras.engine import InputSpec, Layer from ke...
bnsnapper/keras_bn_library
keras_extensions/rbm.py
Python
mit
9,087
[ "Gaussian" ]
0be0edcd372f6483469b760ad27d377952370354ae1c2e70c4e3b159085e6d03
# ------------------------------------------------------------------------- # Name: Waterdemand modules # Purpose: # # Author: PB, YS, MS, JdB # # Created: 15/07/2016 # Copyright: (c) PB 2016 # ------------------------------------------------------------------------- from cwatm.management_modules imp...
CWatM/CWatM
cwatm/hydrological_modules/water_demand/domestic.py
Python
gpl-3.0
4,744
[ "NetCDF" ]
266d6742eaa102117e89b899a9fc3802cd5ab9d89d2414f1de2d111882e53ecf
""" functions for SRVF curve manipulations moduleauthor:: Derek Tucker <dtucker@stat.fsu.edu> """ from scipy.interpolate import InterpolatedUnivariateSpline, interp1d from scipy.integrate import trapz, cumtrapz from numpy import zeros, cumsum, linspace, gradient, sqrt, ascontiguousarray from numpy import finfo, doub...
glemaitre/fdasrsf
fdasrsf/curve_functions.py
Python
gpl-3.0
19,964
[ "Psi4" ]
76e24b28c9a00ff824057ac60b2f7d584d7c4aa6b289a52965e0e25d9761fde6
# -*- coding: utf-8 -*- # # Copyright (C) 2013 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
Glavin001/smucs
drive-sdk/sample.py
Python
mit
3,387
[ "VisIt" ]
17c401f6c23bd886039cad0a1b93adfe47cb167369bdfda8c16cf4bf584a79b1
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
google-research/google-research
poem/cv_mim/action_recognition/train_with_encoder_base.py
Python
apache-2.0
9,780
[ "Gaussian" ]
f88e9d8374d215bdd72608b3b28faeb56a69a0a50a5e2efff6cefa6469370549
"""Optimise the cache.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function from zeroinstall import _, logger import os, sys def _already_linked(a, b): """@type a: str @type b: str @rtype: bool""" ai = os.stat(a) bi = os....
rammstein/0install
zeroinstall/zerostore/optimise.py
Python
lgpl-2.1
3,712
[ "VisIt" ]
2d1e0f483dc500ce5b74c21a418f3d4a345f461955d5ca31b281f52e8667c077
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for fragment.py""" from __future__ import print_function from __future__ import unicode_literals from __future__ import division import logging from rdkit import Chem from molvs.standardize import Standardizer from molvs.fragment import FragmentRemover logging...
mcs07/MolVS
tests/test_fragment.py
Python
mit
5,029
[ "RDKit" ]
ee3b9c3c4ea8f60e29fdf74df22a6820b046f6a6eb5232a7ea97033b4e67103d
############################################################################# # Copyright Kitware Inc. # # Licensed under the Apache License, Version 2.0 ( the "License" ); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
DigitalSlideArchive/large_image
sources/mapnik/large_image_source_mapnik/__init__.py
Python
apache-2.0
19,598
[ "NetCDF" ]
d1344551a66b44114dd064a829bcfb4782618f94d0d3389a5811d0b0ae97bc13
#!/usr/bin/python # -*- coding: utf-8 -*- # # bugweed - a simple helper to locate simple error in the project code. # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
heromod/migrid
mig/bugweed.py
Python
gpl-2.0
1,395
[ "Brian" ]
1113f3d998855c9a213783338fb0e749bb9b3efbdd06f42f31827ec77aed18ee
#!/usr/bin/env python __author__ = 'greg' import math import panoptesPythonAPI import yaml import psycopg2 import os import sys import cPickle as pickle import getopt import boto from boto.s3.key import Key import datetime import json import urllib2 # for Greg running on either office/home - which computer am I on? if...
zooniverse/aggregation
Stargazing_2015/postgres_aggregation.py
Python
apache-2.0
37,388
[ "Brian", "Galaxy" ]
f415b268aa96f76324a476689d2cc30b280afebe484ff226e774f11732759d40
"""Make sure we get an exception when an atom is too close to the boundary.""" from ase import Atoms from gpaw import GPAW from gpaw.grid_descriptor import GridBoundsError a = 4.0 x = 0.1 hydrogen = Atoms('H', [(x, x, x)], cell=(a, a, a), calculator=GPAW(maxiter=7)) try: e1 = hydro...
robwarm/gpaw-symm
gpaw/test/pbc.py
Python
gpl-3.0
403
[ "ASE", "GPAW" ]
b96de2b2388b24859d5bc7402b607a722e584b5d64b8646b5134603ae8c4f907
#!/usr/bin/env python ## ---------------------------------------- ## scikit-ribo ## ---------------------------------------- ## a module for processing bam files ## ---------------------------------------- ## author: Han Fang ## contact: hanfang.cshl@gmail.com ## website: hanfang.github.io ## date: 10/28/2016 ## ---...
hanfang/scikit-ribo
scikit_ribo/bam_process.py
Python
gpl-2.0
13,906
[ "pysam" ]
4253702727829cd08efb97ad388c7829079bbc928de8363ad27c36344d74dc68
// This file is used to generate online documentation for ParaView protocols. /** * @class protocols.ParaViewWebProtocol * * Base protocol class on the server side for ParaViewWeb application. * * In order to call a protocol method from the client side you will need * to use the call method on the session with t...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/Web/Documentation/api/pv_protocol.py
Python
gpl-3.0
33,883
[ "ParaView", "VTK" ]
5821535f3da203e3995849feb0293c3104ba24f5c23424bb691752599a515a0c
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
pedrobaeza/odoo
addons/project/project.py
Python
agpl-3.0
68,741
[ "VisIt" ]
7a07ecc7c6e578ed88f76fa2ac5bc10b4f0249ddc66fa24a2743ffe8ae9738ff
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2015-2016 Nervana Systems Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
Jokeren/neon
examples/mnist_branch.py
Python
apache-2.0
3,760
[ "Gaussian" ]
9e4718c8055204e6a87364780b6ee9841a897e1c5b654f6cadb083ae3e90134e
########################################################################## # # This file is part of OCEMR. # # OCEMR 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,...
ph1l/ocemr
ocemr/views/pregnancy.py
Python
gpl-3.0
7,217
[ "VisIt" ]
d57de3c39455e9604b6c17d5616e6a85310cf886cc23f29df380afc408bb55ba
#-*- coding:utf-8 -*- # # nngt_graph.py # # This file is part of the NNGT project to generate and analyze # neuronal networks and their activity. # Copyright (C) 2015-2019 Tanguy Fardet # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as pu...
Silmathoron/NNGT
nngt/core/nngt_graph.py
Python
gpl-3.0
32,443
[ "NEURON" ]
2503829cb87b021447781eccc30300638ce7ef69f1fd26d368a02d81a1b6abcd
# ============================================================================ # # Copyright (C) 2007-2010 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...
kurtraschke/camelot
camelot/view/action.py
Python
gpl-2.0
14,618
[ "VisIt" ]
68f479101ad9e908f46f3089be5d1b38c6ef471aaf37f8a1a296926925d39e1a
# (C) British Crown Copyright 2013 - 2018, 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...
marqh/iris
lib/iris/tests/unit/fileformats/netcdf/test_Saver.py
Python
lgpl-3.0
33,786
[ "NetCDF" ]
2f27d87c04c34bcb24d0034cd3c2e2acb70ee21ddbb7f0ce632c38254aa84bf8
#!/usr/bin/env python # This file is part of the Printrun suite. # # Printrun is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Prin...
ntoff/Printrun
printrun/pronsole.py
Python
gpl-3.0
70,149
[ "Firefly" ]
f90cd378ebb6c34d11d9d3163266531b70ba735828ec4c0ce3ac01e4a9646cf1
# -*- coding: utf-8 -*- """ Write EC and SMC Meshes in legacy VTK format as .vtk. """ import os import sys # Run in current directory. os.chdir(os.path.dirname(os.path.abspath(__file__))) # Relative import path for the DumpMeshToLegacyFormat script. importPath = os.path.abspath(os.path.join(os.path.dirname(__file__)...
BlueFern/DBiharMesher
meshes/c8064/Dump8064MeshLegacyFormat.py
Python
gpl-2.0
894
[ "VTK" ]
9a06a025e8e6d49b831630ca0fe9769a1e34d043a0229a7fb273453c876d23ec
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Development script of the ChemEnv utility to get the optimized explicit permutations for coordination environments identified with the separation plane alg...
Bismarrck/pymatgen
dev_scripts/chemenv/get_plane_permutations_optimized.py
Python
mit
22,011
[ "pymatgen" ]
4e7b822e610fe0fb9c4b1d956ea7cd05da10b7318cfef8b66394d63b75ab9c2a
""" Copyright (C) 2017 RedNaga. http://rednaga.io All rights reserved. Contact: rednaga@protonmail.com This file is part of APKiD Commercial License Usage ------------------------ Licensees holding valid commercial APKiD licenses may use this file in accordance with the commercial license agreement provided...
davidblus/android_dynamic_detection
StaticAnalyzer/tools/apkid/apkid.py
Python
gpl-3.0
7,095
[ "VisIt" ]
74d9d94fa41f5a6329d946a55befa7c85de3c73706dc02e82c2c93be18cfa7db
from __future__ import print_function, division, unicode_literals import operator from pymatgen.core.periodic_table import Element from pymatgen.core.structure import Structure from mpinterfaces.mat2d.intercalation.analysis import get_interstitial_sites __author__ = "Michael Ashton" __copyright__ = "Copyright 2017...
henniggroup/MPInterfaces
mpinterfaces/mat2d/intercalation/startup.py
Python
mit
3,088
[ "pymatgen" ]
46d584e163fb67c338896978ba4121e6c1e3640cec732cc206c46f070b847ccd
#!/usr/bin/env python #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl...
harterj/moose
scripts/git_news.py
Python
lgpl-2.1
982
[ "MOOSE" ]
a0eb3fa9253b28e32725b9f471be87ab7d3b22856a284a4e6c867f0ec75be0f9
# # Copyright Capita Translation and Interpreting 2013 # # This file is part of Pipeline Creation Language (PCL). # # Pipeline Creation Language (PCL) 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 ve...
ianj-als/pcl
src/pclc/parser/entity.py
Python
gpl-3.0
1,242
[ "VisIt" ]
74ebd626763fb30315595d73c766a13eaef198d6629b494143ca683db83ac797
#!/usr/bin/env python """ Sentry ====== Sentry is a realtime event logging and aggregation platform. It specializes in monitoring errors and extracting all the information needed to do a proper post-mortem without any of the hassle of the standard user feedback loop. Sentry is a Server ------------------ The Sentry ...
camilonova/sentry
setup.py
Python
bsd-3-clause
5,114
[ "GULP" ]
afcba398e8852daff1dddebc9013b220c189f260886d50ba5071ebce8c983462
# -*- coding: ISO-8859-15 -*- # ============================================================================= # Copyright (c) 2004, 2006 Sean C. Gillies # Copyright (c) 2007 STFC <http://www.stfc.ac.uk> # # Authors : # Dominic Lowe <d.lowe@rl.ac.uk> # # Contact email: d.lowe@rl.ac.uk # ========================...
ocefpaf/OWSLib
owslib/coverage/wcs100.py
Python
bsd-3-clause
19,247
[ "NetCDF" ]
15ee1471e936920290f9c2b290e998c996b2648417445dfe215b18243c253289
# BOM_SOLAR_ASCII_TO_NETCDF.PY # # The input proprietary format supported by this example is a Bureau of # Meteorology (BoM) ArcView ASCII grid file. The format contains a header # (defines the shape and size of the grid), space-separated ASCII data, and # tail metadata that contains internal BoM processing informatio...
KimberleyOpie/common-tools
raw_data_tools/bom_solar_ascii_to_netcdf_day_blank.py
Python
apache-2.0
10,019
[ "NetCDF" ]
0758789e5f0c7f94f59ee2a1b6c4a46e3021577f9db323278f8b9b2e9c018307
""" Module containing functions interacting with the CS and useful for the RSS modules. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = '$Id$' from DIRAC import gConfig, gLogger, S_OK from DIRAC.Core.Utilities.SiteSEMapping import getSEPar...
yujikato/DIRAC
src/DIRAC/ResourceStatusSystem/Utilities/CSHelpers.py
Python
gpl-3.0
4,257
[ "DIRAC" ]
831283738bc44810d05e38d285d030fcb177429ab2a89ee71659d7f8d46e45b2
# coding: utf-8 from __future__ import unicode_literals import unittest import os from pymatgen.analysis.pourbaix.entry import PourbaixEntry, IonEntry, MultiEntry from pymatgen.analysis.pourbaix.entry import PourbaixEntryIO from pymatgen.phasediagram.entries import PDEntry from pymatgen.core.ion import Ion from pym...
Dioptas/pymatgen
pymatgen/analysis/pourbaix/tests/test_entry.py
Python
mit
5,935
[ "pymatgen" ]
877b0f6f79f504dad5b0ce1d8b1dd9210e30c7670056f02d8ee22e2ff55e2a8a
# Copyright 2020, The TensorFlow 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 or agreed t...
tensorflow/privacy
tensorflow_privacy/privacy/optimizers/dp_optimizer.py
Python
apache-2.0
15,920
[ "Gaussian" ]
393613516d1a56b28aa7f57bfeece70616fef9e0f916cb8da970f034c656321d
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2007 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 Softw...
tiagocardosos/stoq
stoqlib/gui/dialogs/supplierdetails.py
Python
gpl-2.0
7,112
[ "VisIt" ]
108dc49b7b9fa1e1a92c6c23dc32aa9fb5ed31f55c3b0893d603c9bca05b55b4
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import re from pymatgen.core.structure import Molecule from monty.io import zopen """ Module implementing an XYZ file object class. """ __author__ = "Shyue P...
nisse3000/pymatgen
pymatgen/io/xyz.py
Python
mit
4,202
[ "pymatgen" ]
6e4b9c06afd9ec1ec90dae799651e144387a86d0403e10069d2511a7566d1c11
############################################################################### # ilastik: interactive learning and segmentation toolkit # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/or # mod...
nielsbuwen/ilastik
ilastik/workflows/carving/carvingGui.py
Python
gpl-3.0
34,880
[ "VTK" ]
5c6840d334980cd788e7ad03ef58fcf7a6f36c25ebc01b28282335e89766bf27
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2019-2020 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
chipaca/snapcraft
tests/unit/plugins/v1/test_colcon.py
Python
gpl-3.0
48,002
[ "CRYSTAL" ]
69dbd3ba79209e40e0d2d726755c1bac72e5867159621ee0f02e084313d76336
#!/usr/bin/env python # # ----------------------------------------------------------------------------- # Copyright (c) 2018 The Regents of the University of California # # This file is part of kevlar (http://github.com/dib-lab/kevlar) and is # licensed under the MIT license: see LICENSE. # ----------------------------...
dib-lab/kevlar
kevlar/localize.py
Python
mit
9,523
[ "BWA", "pysam" ]
fd5513fdb36da403f30158c349671921ff9d49621959e854991159e2f31a5506
# -*- coding: 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 field 'PresentMedicalHistory.others' db.add_column(u'patient_presentmedicalhistory', 'others', ...
aazhbd/medical_info01
patient/migrations/0013_auto__add_field_presentmedicalhistory_others__add_field_pastmedicalhis.py
Python
bsd-3-clause
30,322
[ "VisIt" ]
02b6cfb3a5b27a3db676087939635636a6bab79e95d4b88bdbfafd9dfb6c9181
# pylint: disable=invalid-name, too-many-arguments from datetime import timedelta import transaction def test_on_post_page_user_sees_all_info( browser, site, navigator, fakefactory, dbsession): with transaction.manager: fakefactory.PostFactory.create_batch(4) post = fakefactory.PostFactor...
enkidulan/enkiblog
src/enkiblog/tests/functional/test_post_ui.py
Python
apache-2.0
2,722
[ "VisIt" ]
d194b024b6c648b03d1bfa9f164d451e716e5de2968669e426c8f2e33f8af7a4
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2009 Brian G. Matherly # Copyright (C) 2013 John Ralls # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General P...
ennoborg/gramps
gramps/gen/utils/grampslocale.py
Python
gpl-2.0
48,512
[ "Brian" ]
900751e893f1ac3a9dcbedd9c1e0e6e965694805ae19e71a5e258caa8c2752e9
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-02-14 22:51:01 by Brian McFee <brian.mcfee@nyu.edu> '''Unit tests for display module''' # Disable cache import os try: os.environ.pop('LIBROSA_CACHE_DIR') except KeyError: pass import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as p...
decebel/librosa
tests/test_display.py
Python
isc
9,431
[ "Brian" ]
55e53bba330ff5468d7fb83a2450e540fde54a7502fd850612d60192ce6f3421
import os import galsim import h5py import lsstetc from argparse import ArgumentParser parser = ArgumentParser() parser.add_argument('h5read', type=str, help="Fastcat hdf5 input file.") parser.add_argument('--nx', default=24, type=int, help="Postage stamp size in pixels (default...
DarkEnergyScienceCollaboration/BremertonRoundTrip
galsim/postageStamp.py
Python
mit
1,952
[ "Gaussian" ]
de489a2cf25dfabcf5b649a41989e3e0e444fba5be6418480455cba093df2b9f
# # @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/procrouting/empirical_dispersion.py
Python
lgpl-3.0
9,420
[ "Psi4" ]
6b5cc878cbae7386b4930d17e8db942b385a9d5d0a3412b1950f941fcb732206
import numpy as np from PyQt5.QtWidgets import QMainWindow from py_particle_processor_qt.gui.generate_main import Ui_Generate_Main from py_particle_processor_qt.gui.generate_error import Ui_Generate_Error from py_particle_processor_qt.gui.generate_envelope import Ui_Generate_Envelope from py_particle_processor_qt.gui.g...
DanielWinklehner/py_particle_processor
py_particle_processor_qt/generator.py
Python
mit
30,244
[ "Gaussian" ]
9c41b1d1d27003e4213e4d1df4b61d1aa4a845df65329680cd82f24eb82b440d
#!/usr/bin/env python try: __IPYTHON__ import sys del sys.argv[1:] except: pass import srwl_bl import srwlib import srwlpy def set_optics(v=None): el = [] el.append(srwlib.SRWLOptA("r", "a", 0.0002, 0.001, 0.0, 0.0)) el.append(srwlib.SRWLOptD(6.9)) ifnMirror1 = "mirror_1d.dat" if...
mkeilman/sirepo
tests/template/srw_import_data/exported_chx.py
Python
apache-2.0
19,112
[ "Gaussian" ]
f7ce70be537c34d7a7597d8b834e9bf7746cc836fbf6d9bcf8baf935911836c2
import openvoronoi as ovd import ovdvtk import time import vtk import datetime import math import random import os def drawLine(myscreen, p1, p2): myscreen.addActor(ovdvtk.Line(p1=(p1.x, p1.y, 0), p2=(p2.x, p2.y, 0), color=ovdvtk.yellow)) def writeFrame(w2if, lwr, n): w2if.Modified() current_dir = os.ge...
aewallin/openvoronoi
python_examples/point_animation.py
Python
lgpl-2.1
3,469
[ "VTK" ]
b7b3e755055e85e8511c58aa6f94b7fd04dd059bb0523e1f3f23d7e756c16971
# -*- coding: utf-8 -*- """ Created on Sun Oct 28 18:14:36 2012 @author: martin """ from trend_surface_model import fit_tsm from wrf_model_data import WRFModelData from grid_moisture_model import GridMoistureModel from observation_stations import MesoWestStation from diagnostics import init_diagnostics, diagnostics f...
vejmelkam/fmda
src/fmda.py
Python
mit
21,935
[ "NetCDF" ]
ac65c02d378a04fe116da0d559e4ba1a9c93746a2751a28f29c8641df2014ad2
#Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details #history https://hg.reportlab.com/hg-public/reportlab/log/tip/src/reportlab/pdfbase/cidfonts.py #$Header $ __version__='3.3.0' __doc__="""CID (Asian multi-byte) font support. This defines classes to represent CID fonts. They know how to c...
piMoll/SEILAPLAN
lib/reportlab/pdfbase/cidfonts.py
Python
gpl-2.0
18,838
[ "Brian" ]
7aaf590e7d3a817781b46dd55414458555bce8c6bb2f2a49c25fe37a8d11a8d0
#!/usr/bin/env python3 """ _ _ _ __ ___ _ _ _ __ __ _| | ___ _ __ | |__ __ _ _ __ ___ ___ | '_ \ / _ \ | | | '__/ _` | | / _ \ '_ \| '_ \ / _` | '_ \ / __/ _ \ | | | | __/ |_| | | | (_| | | | __/ | | | | | | (_| | | | | (_| __/ |_| |_|\___|\__,_|_| \__,_|_| \__...
Hirico/supic
pycalc/enhance.py
Python
mit
32,360
[ "Gaussian" ]
92ae5fdeb8523c9cedcacfc64e5f35f7fc9b5d7c59a20b4e50137ec6eb8e3515
#!/bin/python ''' Author: Paul Szypryt Date: January 18, 2013 Uses X and Y sweep observation files to fit Gaussians to observed resonances. Uses this data to map each resonant frequency to and x and y position on the MKID array. ''' import numpy as np from tables import * import os import time import matplotli...
bmazin/ARCONS-pipeline
beammap/BeamMap.py
Python
gpl-2.0
45,489
[ "Gaussian" ]
ebc00b66c5693a80498c842f741662038883c3f58fc02e7c8dc53d9c514573fc
#!/usr/bin/python # -*- encoding: utf-8; py-indent-offset: 4 -*- # +------------------------------------------------------------------+ # | ____ _ _ __ __ _ __ | # | / ___| |__ ___ ___| | __ | \/ | |/ / | # | | | | '_ \ / _ \/ __| |/ /...
sileht/check_mk
web/htdocs/login.py
Python
gpl-2.0
11,732
[ "VisIt" ]
bf7d93b7f6c442ddf9fc8eedb3d8d9d1fdb39d6e30d79b242ca39ad294680abb
#!/usr/bin/env python3 from setuptools import setup, find_packages # To use a consistent encoding 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.rst'), encoding='utf-8') as f: long_descripti...
sein-tao/pyBioUtil
setup.py
Python
gpl-2.0
2,249
[ "pysam" ]
5906bd051337efeff38606c83771141634219710fa41827a1fb18d77295a9684
""" Wifi scan test from http://kbcarte.wordpress.com/2011/09/01/android-ase-wifi-scan-with-ui/ """ #imports and get an object of android import android, time droid = android.Android() #scan the wifi and assign vars to hold the results #this is dirty, making sure WiFi is on, and #toggling on if not would be better; AP...
mre/hub
test1.py
Python
bsd-3-clause
1,490
[ "ASE" ]
e32bbcca8bfb7e6b83985eaf44db5bfa030b4daeac51afa5ce36dc29a1df925d
#!/usr/bin/python -tt import sys, re, math from decimal import * # TODO: work on naming scheme # TODO: add more ORIs # TODO: assemblytree alignment # TODO: Wobble, SOEing # TODO: (digestion, ligation) redundant products # TODO: for PCR and Sequencing, renormalize based on LCS # TODO: tutorials dna_alphabet = {'A':'A...
nemami/synbioinformatica
synbioinformatica.py
Python
bsd-2-clause
119,428
[ "Biopython" ]
e6afdd218988d89891aaf00b354851fa97f1c8ec76db32d745e4676aee8f4601
# Stuff related to the library LIBRARY_URL = "https://github.com/GetRektByMe/Listen" # Unrelated to anything we can use BASE_URL = "https://listen.moe/api/" AUTH_URL = BASE_URL + "authenticate" # Account endpoints USER = BASE_URL + "user" USER_FAVOURITES = BASE_URL + "user/favorites" # Song endpoints SONG_FAVOURITE...
GetRektByMe/Listen
listen/constants.py
Python
mit
446
[ "MOE" ]
fba9bb46eb60d501e53ea031713787e648161b105f7b55d9c45d768024fb6927
""" SiteStatus helper Provides methods to easily interact with the RSS """ import errno from datetime import datetime, timedelta from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.DIRACSingleton import DIRACSingleton from DIRAC.Co...
hgiemza/DIRAC
ResourceStatusSystem/Client/SiteStatus.py
Python
gpl-3.0
11,595
[ "DIRAC" ]
9377af2fb55479235612a08849361894184474002dfd0c6905da3bb93189af69