text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
from datetime import date, timedelta
import click
from paper_cal import *
@click.command()
@click.option(
'--year',
'-y',
default=date.today().year,
help='Year to show',
)
def main(year):
''' '''
# https://en.wikipedia.org/wiki/(137108)_1999_AN10
# https://fr... | tylert/paper-calendar | holiday_other.py | Python | gpl-3.0 | 14,773 | [
"COLUMBUS"
] | b8c9d8f6fee364ef402350e7b9836f758a054fcd13f77debdac8775200eaed5f |
from .app import Firefly
from .client import Client
from .version import __version__
| rorodata/firefly | firefly/__init__.py | Python | apache-2.0 | 85 | [
"Firefly"
] | 34674ed34d6c4564071e1e0d4f9a27afa9d2dc04c84b7590e08d6cd6de20642c |
# Copyright (C) 2020 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
# flake8: noqa
# because of long lines
import copy
import datetime
impor... | SoftwareHeritage/swh-storage | swh/storage/tests/migrate_extrinsic_metadata/test_debian.py | Python | gpl-3.0 | 19,622 | [
"VisIt"
] | c104bf4802c35f13b513826b79ac1c17648e6fb216f6419a349a5a542563bee0 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import os
import re
import logging
import multiprocessing
from tabulate import tabulate
from pymatgen.io.vasp import Outcar
from pymatgen.apps.borg.hive impo... | johnson1228/pymatgen | pymatgen/cli/pmg_analyze.py | Python | mit | 4,753 | [
"VASP",
"pymatgen"
] | a2f8cac287d5454097238e79d74f3f2d2d7be5009262febe8a0b85501f8f2f5e |
print "ex42.py"
from sys import exit
from random import randint
class Game(object):
def __init__(self, start):
self.quips = [
"You died. You kinda suck at this.",
"Nice job, you died ... jackass.",
"Such a luser.",
"I have a small puppy... | zhaoace/codecraft | python/projects/learnpythonthehardway.org/ex42.py | Python | unlicense | 8,013 | [
"BLAST"
] | c70d7d4be1fe9d57f82116749730da4a037daa5a6e182b6fd6d8681a21277e59 |
"""
Inventory Steps
Steps file for inventories.feature
"""
from os import getenv
import json
import requests
from behave import *
from compare import expect, ensure
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_condi... | NYU-Foxtrot/inventory | features/steps/inventory_steps.py | Python | apache-2.0 | 5,677 | [
"VisIt"
] | efb880921fb4ee32cb6b3e828481b7e7c448f849928854e3a761b6d7d6cdc4ae |
import unittest
from asp.codegen.ast_tools import *
from asp.codegen.cpp_ast import *
import asp.codegen.python_ast as python_ast
class NodeVisitorTests(unittest.TestCase):
def test_for_python_nodes(self):
class Dummy(NodeVisitor):
def visit_Name(self, node):
return False
... | pbirsinger/aspNew | tests/ast_tools_test.py | Python | bsd-3-clause | 6,797 | [
"VisIt"
] | e9816200a38f2ccff10d5c5dbaf5950a961d52b6051756990e9ac6d7e5035116 |
#!/usr/bin/env python
import radical.entk as re
import os
import tarfile
import writeInputs
# unused
# import git
os.environ['RADICAL_VERBOSE'] = 'INFO'
os.environ['RP_ENABLE_OLD_DEFINES'] = 'True'
os.environ['SAGA_PTY_SSH_TIMEOUT'] = '2000'
os.environ['RADICAL_PILOT_DBURL'] = "mongodb://smush:key1209@ds... | radical-cybertools/radical.repex | old/misc/experimental_async/experimental_async.py | Python | mit | 10,335 | [
"Amber"
] | 18de222033b70bacbe65b0956c9e4750ca444b64a7974f71f8aebabbd048d799 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Interaction/Widgets/Testing/Python/TestSphereWidget.py | Python | gpl-3.0 | 14,176 | [
"VTK"
] | 792ff8132e4cd47f5fb08a6a1cd1867edd4e6e0ccf44213782ab779c05aea099 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/peacock/tests/input_tab/ParamsByGroup/test_ParamsByGroup.py | Python | lgpl-2.1 | 3,947 | [
"MOOSE"
] | ef5e3e4f04a69ac06bb83213a1c2e627fea78ee7c3302bb21ddeff8fa7a6fcaa |
#
# Copyright (c) 2016 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... | yashdsaraf/scancode-toolkit | src/typecode/contenttype.py | Python | apache-2.0 | 20,201 | [
"VisIt"
] | 8edc605800d852890d56f5a553f71bd562d501153626e55a6d50bb94d8bf222e |
# -*- coding: utf-8 -*-
# Copyright 2010 Dirk Holtwick, holtwick.it
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | b-me/xhtml2pdf | xhtml2pdf/parser.py | Python | apache-2.0 | 25,596 | [
"VisIt"
] | e0cc6822d25193c6a12feaab22dc224ba19956bc9ec19566fa94c7135dcf84b8 |
"""
Various bayesian regression
"""
from __future__ import print_function
# Authors: V. Michel, F. Pedregosa, A. Gramfort
# License: BSD 3 clause
from math import log
import numpy as np
from scipy import linalg
from .base import LinearModel
from ..base import RegressorMixin
from ..utils.extmath import fast_logdet, p... | jmargeta/scikit-learn | sklearn/linear_model/bayes.py | Python | bsd-3-clause | 15,486 | [
"Gaussian"
] | a9d871d468450953ff5e386fe03641f3c9e6854e9dbfe0670247a47d75237b2f |
#!/usr/bin/env python
import httplib
import httplib2
import os
import random
import sys
import time
import googleapiclient
from googleapiclient.discovery import build
from googleapiclient.errors import HttpError
from googleapiclient.http import MediaFileUpload
from oauth2client.client import flow_from_clientsecrets
fr... | z/xonotic-video-uploads | bin/upload-youtube.py | Python | mit | 6,709 | [
"VisIt"
] | 7794665366084e24a8d93e3ab2b045449f9a37d67fdf7451b4c51ef93b95b681 |
# -*- coding: utf-8 -*-
#
# gPrime - A web-based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2009-2010 Andrew I Baznikin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General P... | sam-m888/gprime | gprime/plugins/rel/rel_ru.py | Python | gpl-2.0 | 17,326 | [
"Brian"
] | 18bb27e7f8556f0d6a12e66c74b238608e97cdfc954fe6d5cee0043d66a61760 |
from octopus.server.DBInterface import DBInterface
from octopus.shelltool.PipeTool import PipeTool
class JoernTool(PipeTool):
def __init__(self, DESCRIPTION):
PipeTool.__init__(self, DESCRIPTION)
self.dbName = None
self.argParser.add_argument('project')
# @Override
def streamStar... | octopus-platform/joern | python/joern-tools/joern/shelltool/JoernTool.py | Python | lgpl-3.0 | 567 | [
"Octopus"
] | 7ae97df16e2ee379dd29197a8f0fb321a8dd168e7802839d5f3521482a41fa23 |
"""
File: sessionUpload.py
Author: Levi Bostian (bostianl@uni.edu)
Description: Class uploading data to Dropbox
***NOTE***
Linked to 1 Dropbox account. Not universal
Following commands to get to work:
dropboxObj = DropboxUploader()
... | levibostian/VSAS | leviTesting/dropbox_sdk/testScripts/dropbox_vsas.py | Python | mit | 4,010 | [
"VisIt"
] | 4559ad0669c746f095d8dae4df5c3288892d29633fb43c7463038bfab4a87a26 |
import cv2
import numpy as np
import pyscreenshot as ImageGrab
from tkinter import *
from Xlib import display
import mss
import os
import pyxhook
import serial
import threading
import serial.tools.list_ports
import ctypes
import glob
from PIL import ImageTk, Image
import sys
with open(os.devnull, 'w') as f: ###shutting... | CHMachine/CHMachine-Software | CHMachine_Software_Linux/CHMachine.py | Python | bsd-3-clause | 41,681 | [
"VisIt"
] | b7232dd025b62317ac3b52d70fd06e4d972a40476d0c6b8d1ad3f6ae4db87bf6 |
# Copyright (C) 2013 Oskar Maier
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in th... | loli/medpy | medpy/filter/smoothing.py | Python | gpl-3.0 | 5,863 | [
"Gaussian"
] | 9228546abb15a4efe8276354ffce2daa4f9468d2efd7dcfd576fdd7e986f7376 |
'''
* Created by Zhenia Syryanyy (Yevgen Syryanyy)
* e-mail: yuginboy@gmail.com
* License: this code is under GPL license
* Last modified: 2017-10-18
'''
import sys
import os
from copy import deepcopy
from collections import OrderedDict as odict
from itertools import cycle
from io import StringIO
import inspect
import ... | yuginboy/from_GULP_to_FEFF | feff/libs/GaMnAs_sub_classes.py | Python | gpl-3.0 | 33,150 | [
"FEFF"
] | d452a4b82a396b982417c463ac8efd18887bf86eda7e902a2cfbc8f91a80096a |
#!/usr/bin/env python
"""
Diffract.py
"""
__date__ = "20130101"
__author__ = "jlettvin"
__maintainer__ = "jlettvin"
__email__ = "jlettvin@gmail.com"
__copyright__ = "Copyright(c) 2013 Jonathan D. Lettvin, All Rights Reserved"
__license__ = "GPLv3"
__status__ = "Production"
__version__ = "0.0... | jlettvin/rpna | gpgpu/Diffract.py | Python | gpl-3.0 | 10,064 | [
"Gaussian"
] | f85817fd5b14f258c2d425af474b55870c33e5b4c1f6f0c1136d62a30d046db9 |
# File: jsdoc2xml.py
# TODO: [unknown] treat the constructor specially
# * P_LZ_COPYRIGHT_BEGIN ******************************************************
# * Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
# * Use is subject to license terms. *
# * P_LZ... | mcarlson/openlaszlo | WEB-INF/lps/server/sc/jsdoc2xml.py | Python | epl-1.0 | 24,404 | [
"VisIt"
] | f7296f3f4fbcfca8d260470e7f86c69353fac0680e85a2ff3222c6c7fa9bfaea |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-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/editors/deliveryeditor.py | Python | gpl-2.0 | 12,866 | [
"VisIt"
] | 7da9991e2ed83316cf641b946fa22f4c065bd38c38f3cf2f41023d267f340712 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/core/test_topologyattrs.py | Python | gpl-2.0 | 20,471 | [
"MDAnalysis"
] | 46cb9054b257e006b3f17218cc4701aafb92fd0386bfac3eecbc7dbc27c4d23c |
#!/usr/bin/python
import HTSeq
import sys
from Bio.Seq import Seq
from Bio.Alphabet import generic_dna
from Bio.Blast import NCBIXML
from Bio.Blast.Applications import NcbiblastpCommandline
import os
import os.path
import string
import argparse
from CommonFastaFunctions import runBlastParser
import time
import glob
im... | mickaelsilva/pythonscripts | AlleleCalling/cluster_versions/alleleCalling_ORFbased_protein_main2.py | Python | gpl-2.0 | 13,650 | [
"BLAST",
"HTSeq"
] | 5e962d3370f11977a046ba3b2d50cb0f119c821e2867c311e8536ac2a9828b0c |
# Copyright 2007 by Tiago Antao <tiagoantao@gmail.com>. 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.
from Bio.PopGen.GenePop import FileParser
import Bio.PopGen.FDist
# Qui... | poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/PopGen/FDist/Utils.py | Python | apache-2.0 | 6,919 | [
"Biopython"
] | f2613e032a27db62f7ecb30196f54acfe8d477112ee5d4aa702600c26acc1bf9 |
"""
SALTS XBMC Addon
Copyright (C) 2014 tknorris
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
T... | TheWardoctor/Wardoctors-repo | plugin.video.salts/scrapers/rlssource_scraper.py | Python | apache-2.0 | 4,032 | [
"ADF"
] | 79a8238d1b743a7fa956af37f288b65f882882c36a38ec0d75cef61af7f61d26 |
# Copyright (c) 2013, the GPy Authors (see AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from ..core import GP
from .. import likelihoods
from .. import kern
from ..inference.latent_function_inference.expectation_propagation import EP
class GPClassification(GP):
"""
Gaussian Process... | Dapid/GPy | GPy/models/gp_classification.py | Python | bsd-3-clause | 960 | [
"Gaussian"
] | 91b2722c99554e80d46bf8008d92dae42de2b9cc461a06624d2d0495770849c5 |
from pylab import *
import sys
sys.path.insert(0, '..')
from brian2 import *
stand_alone = False
if stand_alone: set_device('cpp_standalone')
else: prefs.codegen.target = 'weave'
from neurtheor import IntegralPops as IP
recurrent_conn = False#True
SRM0 = True # if False, use SRM neurons
... | adityagilra/2015_spiking_population_response | linresprate_briancompare.py | Python | gpl-3.0 | 5,906 | [
"NEURON"
] | 33746102c6835b975f82e4b8ba8437ed095243eb3bfb135ae40c5c54f2613751 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-proxy-init.py
# Author : Adrian Casajus
########################################################################
__RCSID__ = "$Id$"
import sys
import getpass
import DIRAC
from DIRAC.Core.Base i... | avedaee/DIRAC | FrameworkSystem/scripts/dirac-myproxy-upload.py | Python | gpl-3.0 | 1,686 | [
"DIRAC"
] | 4377a3a6fba1cf22160fdcd8c405c70a0f6eafaab4d3c61e0ded3b1005def469 |
# Copyright (c) 2010 Howard Hughes Medical Institute.
# All rights reserved.
# Use is subject to Janelia Farm Research Campus Software Copyright 1.1 license terms.
# http://license.janelia.org/license/jfrc_copyright_1_1.html
"""
This script demonstrates using external data (in this case a tabbed-text file) to aid ... | JaneliaSciComp/Neuroptikon | Source/Scripts/C. elegans/Physical Layout.py | Python | bsd-3-clause | 6,138 | [
"NEURON"
] | 622a7b7c868514b156f5a993005f7856386b890581ae5b9abf105a7dd5d4f8b7 |
#!/usr/bin/env python
#coding: utf-8
#### CLASSES ####
class fasta():
"""
"""
def __init__(self):
"""
"""
self.fastaDict = {}
#### FUNCTIONS ####
def fasta_reader(self, fastaFile):
"""
"""
fastaDict = {}
subHeader("Fasta reader")
... | brguez/TEIBA | src/python/clusterClippedReads.paired.py | Python | gpl-3.0 | 27,306 | [
"pysam"
] | 380d803f1ad9abeabb73134bdebbe79ea815ca155b742a9a719c84a47c41b097 |
# -*- coding: utf-8 -*-
import argparse
import os
import sys
import nanoscope
import yaml
import logging
from random import random
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import colormaps as cmps
from matplotlib.ticker import FormatStrFormatter... | rshkarin/afm-particle-analysis | run.py | Python | mit | 17,662 | [
"Gaussian"
] | 6f544c43399703f58a195aa88c3247050898f670ee7671f320c14cf5fcdb8e0d |
# Copyright 2017 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 applicable law or agreed to in wri... | google/tangent | tangent/transformers.py | Python | apache-2.0 | 9,307 | [
"VisIt"
] | c695a5024d562e5d4d878fe0edc9a625eb5cd6312752ce20bd9a0376586e2c38 |
from ase.lattice import bulk
import pyscfdump.scf as scf
from pyscfdump.helpers import build_cell
from pyscfdump.pbcfcidump import fcidump
A2B = 1.889725989 #angstrom to bohr conversion
a=3.567 #lattice parameter
ke=1000 #kinetic energy cutoff in units of rydberg
basis='sto-3g' #basis set choice
nmp = [2,1,1] #k po... | hande-qmc/hande | documentation/manual/tutorials/calcs/ccmc_solids/diamond_HF.py | Python | lgpl-2.1 | 636 | [
"ASE"
] | 13098d0c1718893e21d5852f623f6c5510ba443cd77bdce2932aacb0ac74a9c9 |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# using naming on http://www.gslib.com/gslib_help/programs.html
import subprocess
import copy
import pandas as pd
import pygslib
import numpy as np
import os
__varmap_par = \
""" Parameters for VARMAP
*********************
START OF PARA... | opengeostat/pygslib | sandbox/varmap.py | Python | mit | 8,397 | [
"VTK"
] | 54cd5c79b0be737be7aff246df6142c3d2a1700c39c3589b55e6c92e771a7388 |
#!/usr/bin/env python
import os
import numpy as np
import pandas as pd
import subprocess as sp
import nexus_addon as na
def locate_bundle_input(path):
# locate bunled QMCPACK input
fidx = 0
out_tokens = sp.check_output('ls %s/*.in' %path
,shell=True).split('\n')[:-1]
good_in = 0
if len... | Paul-St-Young/solid_hydrogen | gather_static_twists.py | Python | mit | 7,912 | [
"QMCPACK"
] | 60462160f64ec56ff0c52608f53ec137cab88c07606e18925f4a394046554636 |
#!/usr/bin/env python
# encoding: utf-8
'''
Created by Brian Cherinka on 2016-04-26 09:20:35
Licensed under a 3-clause BSD license.
Revision History:
Initial Version: 2016-04-26 09:20:35 by Brian Cherinka
Last Modified On: 2016-04-26 09:20:35 by Brian
'''
from sqlalchemy import create_engine, MetaData
from s... | sdss/marvin | python/marvin/db/DatabaseConnection.py | Python | bsd-3-clause | 5,778 | [
"Brian"
] | 0d8d2822a173d6f02229563d92283f02ebb0d8223656ce8c3a4495b9f9ac5308 |
from __future__ import print_function
import sys
import random
import os
from builtins import range
import time
import json
sys.path.insert(1, "../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.grid.grid_search import H2OGridSearch
class Tes... | mathemage/h2o-3 | h2o-py/dynamic_tests/testdir_algos/glm/pyunit_glm_binomial_gridsearch_randomdiscrete_large.py | Python | apache-2.0 | 23,920 | [
"Gaussian"
] | 8b04d3873f3c84173f9562293e0a2ab9a09f126130ea8a3a7cdbee5aa0b2d7bc |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2007 Donald N. Allingham
# Copyright (C) 2007-2012 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2012 Nick Hall
# Copyright (C) 2011-2016 Paul Franklin
#
# This program is free software; you can redistribute it... | beernarrd/gramps | gramps/gui/plug/report/_bookdialog.py | Python | gpl-2.0 | 42,024 | [
"Brian"
] | c63101f56f95b9f0ee00968974f2520dca55fd28fc8947b1662a44a91439a1b2 |
"""
A Mayavi example to show the different data sets. See
:ref:`data-structures-used-by-mayavi` for a discussion.
The following images are created:
.. hlist::
* **ImageData**
.. image:: ../image_data.jpg
:scale: 50
* **RectilinearGrid**
.. image:: ../rectilinear_grid.jpg
... | dmsurti/mayavi | examples/mayavi/advanced_visualization/datasets.py | Python | bsd-3-clause | 5,311 | [
"Mayavi",
"VTK"
] | 2f545d3d6129317b37b6856ba753ec9c68570bc1aa845221e8a4734b1f0b118e |
from __future__ import print_function, division
import glob
import itertools
import json
import os
import shlex
import shutil
import subprocess
import tempfile
import hmmlearn.hmm
import mdtraj as md
import numpy as np
from mdtraj.testing import eq
from mdtraj.testing import get_fn as get_mdtraj_fn
from msmbuilder.d... | mpharrigan/mixtape | msmbuilder/tests/test_commands.py | Python | lgpl-2.1 | 8,581 | [
"MDTraj"
] | 28270b43a1bdac850d3aae7e1b06b22d300a1aa8eb672cf916a9a16a51cc0720 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | demis001/scikit-bio | skbio/util/tests/test_decorator.py | Python | bsd-3-clause | 9,694 | [
"scikit-bio"
] | b9f9a1ae7003b7889cbf0ad1d497393b8abe5725d9a111b235b819f2e2075c16 |
# Copyright (c) 2012-2013 ARM Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
# not be construed as granting a license to any other intellectual
# property including but not limited to intellectual property relating
# to a hardware implementation of the functiona... | prodromou87/gem5 | configs/example/se_bench.py | Python | bsd-3-clause | 17,505 | [
"GAMESS",
"Gromacs",
"NAMD"
] | c5f6950b7d3ff5cdcaaf369eb74b7fb087e4f9f733812b20291f0161986051e8 |
""" SingularityCE is a type of "inner" CEs
(meaning it's used by a jobAgent inside a pilot).
A computing element class using singularity containers,
where Singularity is supposed to be found on the WN.
The goal of this CE is to start the job in the container set by
the "ContainerRoot" config option... | DIRACGrid/DIRAC | src/DIRAC/Resources/Computing/SingularityComputingElement.py | Python | gpl-3.0 | 18,098 | [
"DIRAC"
] | 8d08a0e4cb95c89249ada39a4631aaf52a7522cbe792c9995a6f9c5cd3d2fa79 |
# Copyright (C) 2003 CAMP
# Please see the accompanying LICENSE file for further information.
"""Finite difference operators.
This file defines a series of finite difference operators used in grid mode.
"""
from __future__ import division
from math import pi
import numpy as np
from numpy.fft import fftn, ifftn
fr... | ajylee/gpaw-rtxs | gpaw/fd_operators.py | Python | gpl-3.0 | 9,613 | [
"GPAW"
] | 04d9d5457f46e981cc75df8ea8d43ae169a1a5fea4fa0945208412736809440c |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses... | Dhivyap/ansible | lib/ansible/modules/network/avi/avi_gslb.py | Python | gpl-3.0 | 14,826 | [
"VisIt"
] | b3da20c2e3e31c8dd711cad68803efa4399b7f30d5ff632eb3859fd614578f1b |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-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... | andrebellafronte/stoq | stoqlib/gui/search/profilesearch.py | Python | gpl-2.0 | 1,736 | [
"VisIt"
] | a5618667837933c0cd8aca5fee42bb24230221f76e9c872d7fc84e427c54889c |
#!/usr/bin/env python
"""
# Created: Tue, 16 Apr 2013 14:49:03 +1000
SeqHandler provides low level operations on sequence files (FASTA, GenBank or
EMBL files).
Requires Biopython, see: http://biopython.org/wiki/Main_Page
& Python 2.7.3 or similar
SPLIT MODULE
============
Use this Module if you want to split a gbk... | happykhan/seqhandler | SeqHandler/SeqHandler.py | Python | gpl-3.0 | 12,655 | [
"Biopython"
] | cd2db408178c4f7a60a2b1c57ec9d9a5e8c875f9da72bf2c5dc0d44c2b0846e5 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: ... | leeping/mdtraj | mdtraj/scripts/mdconvert.py | Python | lgpl-2.1 | 20,690 | [
"MDTraj",
"NetCDF"
] | 537d7b4efc4847fa466f7aecf5e69c759fe7a86e99b642cc00f0472bd41786ab |
# (C) British Crown Copyright 2014 - 2017, 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... | QuLogic/iris | lib/iris/tests/experimental/ugrid/test_ugrid.py | Python | gpl-3.0 | 1,683 | [
"NetCDF"
] | 8d49856ed61d5a29a21028da0f4fc341eb22e02b524d9b1d84942831b16b2fa1 |
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/monitor/_help.py | Python | mit | 83,661 | [
"VisIt"
] | a4edabfe8b315ff083b8a86ba783aeceead5af067a079c1b9debff71feea902e |
# -*- coding: utf-8 -*-
# This program is public domain
# Author: Paul Kienzle
"""
Neutron scattering factors for the elements and isotopes.
For details of neutron scattering factor values, see :class:`Neutron`.
The property is set to *None* if there is no neutron scattering information
for the element. Individual is... | rogcg/environment | externals/periodictable/nsf.py | Python | unlicense | 65,497 | [
"Avogadro"
] | 9ae441614a1f5249b129d5d745775e4d94c6f893e733b8cee57557c11fdaeed2 |
"""
Vision-specific analysis functions.
$Id: featureresponses.py 7714 2008-01-24 16:42:21Z antolikjan $
"""
__version__='$Revision: 7714 $'
from math import pi,sin,cos
import numpy
from numpy.oldnumeric import Float
from numpy import zeros, array, size, object_
#import scipy
import param
from param import normalize... | ioam/svn-history | topo/analysis/vision.py | Python | bsd-3-clause | 12,727 | [
"NEURON"
] | b9c9682195ecb5c79af7ecd8797a9680a5337f4f29449ac5ab46d550600d88a8 |
"""
=============================================
Integration and ODEs (:mod:`scipy.integrate`)
=============================================
.. currentmodule:: scipy.integrate
Integrating functions, given function object
============================================
.. autosummary::
:toctree: generated/
quad ... | gertingold/scipy | scipy/integrate/__init__.py | Python | bsd-3-clause | 3,900 | [
"Gaussian"
] | 6352044c636fc853b5aa5a71de9d1d1e30c4e517424f748584e92cbfc12a76a0 |
#! /usr/bin/env python3
# Adapted from http://kitchingroup.cheme.cmu.edu/blog/2013/02/18/Nonlinear-curve-fitting/
import glob
import numpy as np # type: ignore
import pandas as pd # type: ignore
from scipy.optimize import leastsq # type: ignore
import argparse
import warnings
warnings.filterwarnings("ignore", cat... | bjmorgan/vasppy | vasppy/scripts/murnfit.py | Python | mit | 5,037 | [
"VASP",
"pymatgen"
] | a5cd759c1670edbf29a78e2c70eafc3a4e207cee8981764147dda3f701be2740 |
"""
Dimensions of physical quantities
"""
# -----------------------------------------------------------------------------
# Copyright (c) 2018, yt Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the LICENSE file, distributed with this software.
# ------------... | yt-project/unyt | unyt/dimensions.py | Python | bsd-3-clause | 9,592 | [
"Gaussian"
] | 814088e95204e83b3c26ecaf8f68eff7d4c82150f3ce12650e1612ab78702126 |
#
# Pythics 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.
#
# Pythics is distributed in the hope that it will be useful,
# but ... | LunarLanding/Pythics | pythics/instruments/Agilent_6652A.py | Python | gpl-3.0 | 1,576 | [
"Brian"
] | 015f1cbd69d75693b95bc85159dfbb823a58d39b8aa8255fffba6202b3565b58 |
#Author : Lewis Mervin lhm30@cam.ac.uk
#Supervisor : Dr. A. Bender
#All rights reserved 2016
#Protein Target Prediction Tool trained on SARs from PubChem (Mined 21/06/16) and ChEMBL21
#Molecular Descriptors : 2048bit Morgan Binary Fingerprints (Rdkit) - ECFP4
#Dependencies : rdkit, sklearn, numpy
#libraries
from rdkit... | lhm30/PIDGINv2 | predict_raw.py | Python | mit | 5,535 | [
"RDKit"
] | f3a115a008f6730545ec8fd98c96c79fe3adf73fefaae5b2796e404e5baf080b |
"""Setup script for ``dms_tools2``.
Written by Jesse Bloom.
"""
import sys
import os
import subprocess
import re
import glob
try:
from setuptools import setup
from setuptools import Extension
except ImportError:
raise ImportError("You must install `setuptools`")
if not (sys.version_info[0] == 3 and sys.v... | jbloomlab/dms_tools2 | setup.py | Python | gpl-3.0 | 3,208 | [
"Biopython",
"pysam"
] | a5ba5c987931dfdcd1ce39af4725ddbadae2ac1639161ad578963c4aaae40563 |
"""
Copyright (C) 2014, Jaguar Land Rover
This program is licensed under the terms and conditions of the
Mozilla Public License, version 2.0. The full text of the
Mozilla Public License is at https://www.mozilla.org/MPL/2.0/
Rudolf Streif (rstreif@jaguarlandrover.com)
"""
from django.contrib import admin
from veh... | rstreif/rvi_backend | web/vehicles/admin.py | Python | mpl-2.0 | 1,859 | [
"Jaguar"
] | 9bed83d3c509c90e3804ae01e451e539a65fd135507b2fc6a2984fe1874b541e |
"""Installers for programming language specific libraries.
"""
import os
from fabric.api import env, cd, settings
from cloudbio import fabutils
from cloudbio.custom import shared
def r_library_installer(config):
"""Install R libraries using CRAN and Bioconductor.
"""
with shared._make_tmp_dir() as tmp_dir... | elkingtonmcb/cloudbiolinux | cloudbio/libraries.py | Python | mit | 4,183 | [
"Bioconductor"
] | 6486e3e6279a2be1084d51728d29548f5cd9fee76efcb66c3f5f79f8c86d6ecb |
#from spectral_stack import stacking #need to make sure Erik's code is installed
from spectral_cube import SpectralCube, Projection
import numpy as np
import numpy.ma as ma
import astropy.units as u
import matplotlib.pyplot as plt
from astropy.io import fits
from matplotlib import colors, cm
import aplpy
from astropy.t... | low-sky/degas | degas/analysis_stack.py | Python | gpl-3.0 | 50,584 | [
"Galaxy",
"Gaussian"
] | e169484a1f0f31b9cd2f3a88d19ecd2a3d20f79371f6a9291660594b6d3eb7f0 |
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from datetime import date, timedelta
from workalendar.core import WesternCalendar, ChristianMixin
from workalendar.core import SUN, MON, TUE, WED, FRI, SAT
class Brazil(WesternCalendar... | gregn610/workalendar | workalendar/america.py | Python | mit | 7,958 | [
"COLUMBUS"
] | cdea4e6a1ab814d4e2e6f4a64a5497ccd20af3ee44224aeb897c8e4343d47a2a |
########################################################################
# File : ModuleFactory.py
# Author : Stuart Paterson
########################################################################
""" The Module Factory instantiates a given Module based on a given input
string and set of arguments to be pas... | yujikato/DIRAC | src/DIRAC/Core/Utilities/ModuleFactory.py | Python | gpl-3.0 | 1,864 | [
"DIRAC"
] | 0600ce5763a0c326522286d292551588116d3b286adeaa05e4daa37ff3f336cd |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | krafczyk/spack | var/spack/repos/builtin/packages/perl-moose/package.py | Python | lgpl-2.1 | 2,438 | [
"MOOSE"
] | 3b1ffb2d5651eb0e49a3c8c382145ad072d4f85315536f6888ac87c10b093cff |
"""Acceptance tests for LMS-hosted Programs pages"""
from nose.plugins.attrib import attr
from common.test.acceptance.fixtures.catalog import CatalogFixture, CatalogConfigMixin
from common.test.acceptance.fixtures.programs import ProgramsFixture, ProgramsConfigMixin
from common.test.acceptance.fixtures.course import C... | caesar2164/edx-platform | common/test/acceptance/tests/lms/test_programs.py | Python | agpl-3.0 | 6,048 | [
"VisIt"
] | e6bcee73e9db5959980149f0b75a448e3fe745de032b9dbf83e49bf5b34dc82a |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/interaction/Zero.py | Python | gpl-3.0 | 9,828 | [
"ESPResSo"
] | 486383b7ffea2f8d1c21d370b415a80dc4553144fccc603e860d70a817e34153 |
# Copyright 2012 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of ngs_crumbs.
# ngs_crumbs 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, ... | JoseBlanca/ngs_crumbs | crumbs/seq/transcript_orientations.py | Python | gpl-3.0 | 7,261 | [
"BLAST"
] | 3592a1fde244596b3fd26b27233f4fb7da8774ca46c4878c06b6c3a1a1e40af2 |
# proxy module
from __future__ import absolute_import
from mayavi.tools.probe_data import *
| enthought/etsproxy | enthought/mayavi/tools/probe_data.py | Python | bsd-3-clause | 92 | [
"Mayavi"
] | 96af538fa0c1cf0ef0070ac2fbb2ba1fd7e7dc22e95d802d25b2291745833e49 |
#
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later vers... | espressomd/espresso | testsuite/python/sigint_child.py | Python | gpl-3.0 | 977 | [
"ESPResSo"
] | 6e2b57da3d9635dcf4b8e101ba8a6461e887881c1695547bb4fe000dd51792d6 |
"""Common settings and globals."""
from os import environ
from os.path import abspath, basename, dirname, join, normpath, exists
from sys import path
import json
from datetime import timedelta
# PATH CONFIGURATION
# Absolute filesystem path to the Django nyc_trees/nyc_trees directory:
DJANGO_ROOT = dirname(dirname(a... | RickMohr/nyc-trees | src/nyc_trees/nyc_trees/settings/base.py | Python | apache-2.0 | 10,244 | [
"GULP"
] | 3b91e90bfe4a807d69e5da16e730c3316defbc9912f90875de640e2199354e00 |
__author__ = 'Mikhail Pedrosa <mikhailj.pedrosa@gmail.com> e Arthur Costa <arthur.opa@gmail.com>'
__description__ = 'Methods Filtering - Moving Average, Gaussian, Median'
__version__ = '0.1'
__date__ = '13/04/2015'
import numpy as np
import scipy.ndimage as sp
import scipy.signal as sg
from astropy.convolution import ... | mikhailpedrosa/radar_wind-field | filters.py | Python | gpl-2.0 | 2,642 | [
"Gaussian"
] | 0d94aaa99bf05d91e9dc6765869d8a2466a48893e594134e70fcbdcf99e13ad4 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from functools import wraps
from collections import defaultdict, OrderedDict
import numpy as np
from compliance_checker.base import BaseCheck, BaseNCCheck, check_has, score_group, Result
from compliance_checker.cf.appendix_d import dimless_vertical_coordinates
fr... | abirger/compliance-checker | compliance_checker/cf/cf.py | Python | apache-2.0 | 138,963 | [
"NetCDF"
] | f38485fdbf49a28b2e4973d73900e258e1732ea1f646f64f03fd890e330f7ea5 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2004-2007 Donald N. Allingham
# Copyright (C) 2010 Brian G. Matherly
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; ... | arunkgupta/gramps | gramps/gen/display/name.py | Python | gpl-2.0 | 41,723 | [
"Brian"
] | 9efd9f836ab79c1cd3758801b714924c19d657b98f0afc347034677dcc3e838f |
"""
Shopcart Steps
Steps file for shopcarts.feature
"""
from os import getenv
import json
import requests
from behave import *
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.com... | nyu-devops-echo/shopcarts | features/steps/shopcart_steps.py | Python | apache-2.0 | 5,904 | [
"VisIt"
] | 3c94e2cfa08cc83f311714cdcb6e591f9a8508637a536cf10ff288772132e03f |
"""
Adapted from Cython/Compiler/Visitor.py, see this module for detailed
explanations.
"""
import inspect
miniast = None # avoid circular import AttributeError for sphinx-apidoc
import treepath
class TreeVisitor(object):
"""
Non-mutating visitor. Subclass and implement visit_MyNode methods.
A user can t... | markflorisson/minivect | minivect/minivisitor.py | Python | bsd-2-clause | 6,210 | [
"VisIt"
] | b5207da91310889794ab5d0a18f7fb2ba9e4cc3a16e2fb6a3279b2b00d994ce4 |
# main.py
# Aaron Taylor
# Moose Abumeeiz
#
# The main file for our final project. This is a replica of
# the popular game The Binding waof Isaac: Rebirth.
#
from const import *
from pygame import *
from time import time as cTime
from random import *
from func import *
from Game import *
from menu import *
from Joyst... | ExPHAT/binding-of-isaac | main.py | Python | mit | 6,887 | [
"MOOSE"
] | a9fa8929e948ed8210913def0fb1176c401e13d8750666c00870a1b4957c3b88 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
# Avi Version: 17.1.1
#
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the te... | kbrebanov/ansible | lib/ansible/modules/network/avi/avi_poolgroup.py | Python | gpl-3.0 | 5,203 | [
"VisIt"
] | 1a4a24af5fdae279c9bcb22d44bf5f44a0c63007769074d3a5d7e835c989c513 |
########################################################################
# Author : Andrei Tsaregorodtsev
########################################################################
"""
Utilities for managing DIRAC configuration:
getCEsFromCS
getUnusedGridCEs
getUnusedGridSEs
getSiteUpdates
getSEUpdates
"""
... | fstagni/DIRAC | ConfigurationSystem/Client/Utilities.py | Python | gpl-3.0 | 22,711 | [
"DIRAC"
] | 297d872f598eb610bdcb59d7041ac6949b6d60216686e0a2aad37f2dfc0ce591 |
'''
Importing pandasTools enables several features that allow for using RDKit molecules as columns of a Pandas dataframe.
If the dataframe is containing a molecule format in a column (e.g. smiles), like in this example:
>>> from rdkit.Chem import PandasTools
>>> import pandas as pd
>>> import os
>>> from rdkit import R... | soerendip42/rdkit | rdkit/Chem/PandasTools.py | Python | bsd-3-clause | 21,266 | [
"RDKit"
] | 98f197ed91e4a6a3cedce01738a883c07e3bab1ecc21cd554a798ea1cbc5a26e |
import os.path
import requests
urls = []
names = []
def download_archive(url, local_filename):
if os.path.isfile(local_filename):
print "reusing",local_filename,"for",url
return
r = requests.get(url, stream=True)
if (r.status_code != 200):
print r.status_code, url
url = "h... | Christian-B/galaxy_shedtools | r_extended/merger.py | Python | gpl-2.0 | 2,403 | [
"Bioconductor"
] | c2557727935c0e9fc554a18017c48c5d799506f5ebe26982726184b547b22f6d |
# -*- coding: utf-8 -*-
# Copyright (C) 2008-2012, Luis Pedro Coelho <luis@luispedro.org>
# vim: set ts=4 sts=4 sw=4 expandtab smartindent:
#
# License: MIT. See COPYING.MIT file in the milk distribution
from __future__ import division
from .classifier import normaliselabels, ctransforms_model
from collections import ... | arnaudsj/milk | milk/supervised/svm.py | Python | mit | 15,240 | [
"Gaussian"
] | 826b0062190b1ea0312e558a46fc1451a3c68046c882bbbe5f58efc2d925a5a0 |
#
# Copyright 2016 The BigDL 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 to in ... | intel-analytics/BigDL | python/orca/test/bigdl/orca/learn/ray/tf/conftest.py | Python | apache-2.0 | 1,324 | [
"ORCA"
] | b50ca5a0cbee441b26b69514317a1a1749726b1665a84b5dc4b5c02d40ce82a1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# plugnparse documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 9 22:26:36 2013.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# ... | brianthelion/plugnparse | docs/conf.py | Python | mit | 8,430 | [
"Brian"
] | 9907dc87d35e38f51fa12e1819539a8d8a7b402981a90b007c168e9f4b5ed7c4 |
# Try to import required packages/modules
import os
import netCDF4 as nc4
import warnings
import numpy
warnings.simplefilter('error', UserWarning)
debug = False # Global debugging
def openNetCDFfileForReading(fileName):
"""
Return Dataset type for file to read.
"""
try: rg = nc4.Dataset(fileName, 'r')
exc... | adcroft/pyGVtools | nccf.py | Python | gpl-2.0 | 11,789 | [
"NetCDF"
] | eb9979203a9fba98acad544eba2aa9aac8291003185b65a34aac2e9b16646dc1 |
# Copyright (C) 2013,2014,2015,2016 The ESPResSo project
# Copyright (C) 2012 Olaf Lenz
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the L... | Marcello-Sega/espresso | src/featuredefs.py | Python | gpl-3.0 | 6,617 | [
"ESPResSo"
] | f73c45035f93894f5b55667a862639b65a8f6be3c547017a77e5f3a51d6463f4 |
# This code is licensed under the New BSD License
# 2009, Alexander Artemenko <svetlyak.40wt@gmail.com>
# For other contacts, visit http://aartemenko.com
import os
import sys
try:
from elixir import metadata, setup_all, create_all, session
from models import *
from sqlalchemy.sql import not_
except Import... | svetlyak40wt/gtdzen | gtdzen/__init__.py | Python | bsd-3-clause | 3,063 | [
"VisIt"
] | 1799bbdc4291a95b449e78684b88f70bc91f1bbb4ceac188273ecfb94ebf201f |
#!/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... | madsbuch/GridDispenser | dispenserrun/printrun/printrun/pronsole.py | Python | gpl-2.0 | 67,927 | [
"Firefly"
] | f9bb5089631fc628670b16909f39f1a32375016e36fb06774b7409ffa96eb16d |
import vtk, qt, ctk, slicer
import numpy
import time
class PickAndPaint:
def __init__(self, parent):
parent.title = "Pick 'n Paint "
parent.dependencies = []
parent.contributors = ["Lucie Macron"]
parent.helpText = """
"""
parent.acknowledgementText = """
Th... | luciemac/PickAndPaintProject | PickAndPaint.py | Python | apache-2.0 | 37,251 | [
"VTK"
] | 8be09c8cb1f2175e50cf1cc0b788ddbad7cb29bb20c3965c40aea5dab452b09e |
#!/usr/bin/env python3
# -*- mode: python; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4; -*-
# vim: set shiftwidth=4 softtabstop=4 expandtab:
"""Support for reading from an NCAR EOL RAF PostgreSQL database of
real-time flight data.
2014 Copyright University Corporation for Atmospheric Research
This file is... | ncareol/ncharts | ncharts/raf_database.py | Python | bsd-2-clause | 14,670 | [
"NetCDF"
] | b817ae6f0ebcb954efad74ab73f1ae19d34c00cd2cd47ec42931d0c865f39af6 |
#!/usr/bin/env python
"""
Read a file of our JSON BLAST output (which has one JSON object per
line) from stdin and pretty print it to stdout.
"""
from __future__ import print_function
from json import dumps, loads
import sys
for line in sys.stdin:
s = dumps(loads(line[:-1]), sort_keys=True, indent=2)
print(... | bamueh/dark-matter | bin/cat-json-blast-records.py | Python | mit | 369 | [
"BLAST"
] | 44d3a6ce412a32d88f9ad77c97b7894b06272c9ada4edd622b54cdc4619f304c |
#! /usr/bin/env python
"circFind.py -- "
import sys, os, ConfigParser, argparse
parser = argparse.ArgumentParser(description='circFind is a pipeline to find circular RNA')
parser.add_argument('config_file', help='')
parser.add_argument('-s', '--step', choices=range(8), type=int, help='0:all steps, 1:ori_reads_genome_... | bioxfu/circRNAFinder | src/circRNAFind.py | Python | gpl-3.0 | 4,985 | [
"Bowtie"
] | 41ddabc441eb1c6fb20cb2d6509ef92a9cd4ee6e0e5848033109cea368a3cc31 |
""" Test the FTS3Utilities"""
from DIRAC.DataManagementSystem.Client.FTS3File import FTS3File
from DIRAC import S_OK, S_ERROR
__RCSID__ = "$Id $"
import unittest
import mock
import datetime
from DIRAC.DataManagementSystem.private.FTS3Utilities import FTS3JSONDecoder, \
... | Andrew-McNab-UK/DIRAC | DataManagementSystem/private/test/Test_FTS3Utilities.py | Python | gpl-3.0 | 8,942 | [
"DIRAC"
] | 145da4a0e666679e99f0828560ed81c07244ef1e25d46c87a6abe5a70de9805b |
#fcc paracrystal model
#note model title and parameter table are automatically inserted
#note - calculation requires double precision
r"""
.. warning:: This model and this model description are under review following
concerns raised by SasView users. If you need to use this model,
please email... | SasView/sasmodels | sasmodels/models/fcc_paracrystal.py | Python | bsd-3-clause | 6,252 | [
"CRYSTAL",
"Gaussian"
] | feea57174af6b6dd44c13fd54f78f19c0c485bcd9f566b61bc0693ee8b65c254 |
#
# Copyright 2011-2021 Universidad Complutense de Madrid
#
# This file is part of Megara DRP
#
# SPDX-License-Identifier: GPL-3.0+
# License-Filename: LICENSE.txt
#
"""MOS Standard Star Image Recipe for Megara"""
import astropy.io.fits as fits
import astropy.units as u
import astropy.wcs
from astropy import constan... | sergiopasra/megaradrp | megaradrp/recipes/calibration/mosstdstar.py | Python | gpl-3.0 | 9,428 | [
"Gaussian"
] | 4660465a336799be9e60332fe233ea4e889026cfe92763b0502de0097703ab6b |
"""
This test script is adopted from:
https://github.com/numpy/numpy/blob/main/numpy/tests/test_public_api.py
"""
import pkgutil
import types
import importlib
import warnings
import scipy
def check_dir(module, module_name=None):
"""Returns a mapping of all objects with the wrong __module__ attribute."""
... | mdhaber/scipy | scipy/_lib/tests/test_public_api.py | Python | bsd-3-clause | 9,926 | [
"NetCDF"
] | b69dcc4a44d2df0fa8778445fea3aed0c1f0331d1c0943a3fff22572948d918d |
import os
import re
from collections import defaultdict
from operator import itemgetter
import logging
import pandas
from scipy.interpolate import InterpolatedUnivariateSpline as spline
from george import kernels
import matplotlib.pyplot as plt
import numpy as np
import george
import emcee
import StarData
import Spect... | kgullikson88/TS23-Scripts | CheckSyntheticTemperature.py | Python | gpl-3.0 | 14,868 | [
"Gaussian"
] | 261f267f781548492b1ac956f5c1e8efeb31343f6be9bb1dfd2fb8a034928d42 |
try:
import wpilib
except ImportError:
from pyfrc import wpilib
class MyRobot(wpilib.SimpleRobot):
state = 1
def __init__ (self):
super().__init__()
print("Matt the fantastic ultimate wonderful humble person")
wpilib.SmartDashboard.init()
#self.digita... | frc1418/2014 | subsystem_tests/src/robot.py | Python | bsd-3-clause | 3,538 | [
"Jaguar"
] | fb067461bc2499adbea8481f4fe750708e93078935b33a70732d59bd0fcef31e |
#!/usr/bin/env python
#
# Copyright (C) 2017,2018
# Max Planck Institute for Polymer Research
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, eithe... | govarguz/espressopp | testsuite/NPartSubregion/test_NPartSubregion.py | Python | gpl-3.0 | 3,603 | [
"ESPResSo"
] | 7d921363955778f19c79f7d89992e28a9edea94ae139bfdeb81f246b27e64201 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.