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 |
|---|---|---|---|---|---|---|---|
# -*- coding: utf-8 -*-
"""
Created on Fri Jul 17 21:15:51 2020
@author: younes
"""
# from: https://nbviewer.jupyter.org/gist/tillahoffmann/f844bce2ec264c1c8cb5
import numpy as np
from scipy.spatial.distance import cdist
from six import string_types
class gaussian_kde(object):
"""Representation of a kernel-den... | jonwright/ImageD11 | ImageD11/weighted_kde.py | Python | gpl-2.0 | 11,517 | [
"Gaussian"
] | ae79efb627a434348cf4e8b69ad7aa963a0000d39483ffb1cd88ba70deabd411 |
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import nest # import NEST module
from active_worker.task import task
@task
def single_neuron_task(spike_times, sim_duration):
'''
Task Manifest Version: 1
Full Name: single_neuron_task
Caption: Single neuron
Auth... | INM-6/UP-Tasks | NEST/single_neuron_task/single_neuron_task.py | Python | gpl-2.0 | 2,428 | [
"NEURON"
] | c1be519e5e031d4ca2e80f8698637d892f91aa77fde7f7b99f5e2d8b8ea49a09 |
"""
Univariate Kernel Density Estimators
References
----------
Racine, Jeff. (2008) "Nonparametric Econometrics: A Primer," Foundation and
Trends in Econometrics: Vol 3: No 1, pp1-88.
http://dx.doi.org/10.1561/0800000009
http://en.wikipedia.org/wiki/Kernel_%28statistics%29
Silverman, B.W. Density Estimation... | detrout/debian-statsmodels | statsmodels/nonparametric/kde.py | Python | bsd-3-clause | 18,714 | [
"Gaussian"
] | 097f42ac99c4345db2ff13107113ec6c61e3d7c0344775b04631ec3e40a1543a |
import cv2
import numpy as np
from collections import Counter
# Funcao que calcula o valor T para aplicar threshold de uma imagem img
# utiliza-se do metodo de Otsu
def Thresholding_Otsu(img):
nbins = 256
pixel_counts = Counter(img.ravel())
counts = np.array([0 for x in range(256)])
for c in sorted(pixel_counts... | gael-sng/PicToASCII | Edgedetection.py | Python | agpl-3.0 | 2,063 | [
"Gaussian"
] | 74ddf7a8686fb7ad11793ee61d7561c4b01cdf5692dab9e3ce7144b0f3c31d1f |
# -*- coding: utf-8 -*-
"""
Acceptance tests for Video.
"""
import os
from mock import patch
from nose.plugins.attrib import attr
from unittest import skipIf, skip
from selenium.webdriver.common.by import By
from selenium.webdriver.common.action_chains import ActionChains
from ..helpers import UniqueCourseTest, is_yo... | ampax/edx-platform | common/test/acceptance/tests/video/test_video_module.py | Python | agpl-3.0 | 51,668 | [
"VisIt"
] | 432fd62ad7fc5b291769fba3e7b5cdca4aa84fd972aac362dbe558943590e36e |
# Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Multiple_Contact_Classification/continuous_hmm_prediction_two_objects_force_motion_20_states.py | Python | mit | 12,570 | [
"Gaussian",
"Mayavi"
] | 5e0969541b4a8172c9cb616b1d2adfc18c08b6833864a78d55ee089edeaf6de4 |
"""
A class to generate a Serotype
All Serotyping logic stays here.
"""
import os
import json
import datetime
import getpass
import hashlib
import shlex
import copy
import pkg_resources
from loguru import logger
from .Blast import MakeBlastDB
SEROTYPE_FASTA = "db/sequences.fasta"
def report_maker(full_matches, ... | MDU-PHL/LisSero | lissero/scripts/Serotype.py | Python | gpl-2.0 | 9,969 | [
"BLAST"
] | 51aaa802dedc4da923f3722145251a93b981a1a0f59d7a6ce45a85f16844c7db |
import pytest
from pysisyphus.calculators.Dalton import Dalton
from pysisyphus.helpers import geom_loader
from pysisyphus.optimizers.RFOptimizer import RFOptimizer
from pysisyphus.testing import using
@using("dalton")
def test_h2o_opt():
geom = geom_loader("lib:h2o.xyz", coord_type="redund")
calc = Dalton(ba... | eljost/pysisyphus | tests/test_daltonproject/test_daltonproject.py | Python | gpl-3.0 | 538 | [
"Dalton"
] | 0d9ef3091404e09eb45324d54b7f738cb6fa110c35b3416e0f185a676a34ecc3 |
# Downloaded from http://www.logarithmic.net/pfh-files/blog/01208083168/sort.py
"""
Tarjan's algorithm and topological sorting implementation in Python
by Paul Harrison
Public domain, do with it as you will
"""
def strongly_connected_components(graph):
""" Find the strongly connected compon... | nihilus/diaphora | others/tarjan_sort.py | Python | gpl-2.0 | 2,751 | [
"VisIt"
] | 49f20d9763e53c814a255c8623b71f16fb0b43e6a9fadcd6b96da2555056bf93 |
"""
Some portions adapted from https://github.com/warner/python-ecdsa/ Copyright (c) 2010 Brian Warner
who granted its use under this license:
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software with... | shivaenigma/pycoin | pycoin/ecdsa/rfc6979.py | Python | mit | 2,990 | [
"Brian"
] | 397d98f54ad43b1472454178cbe9bd8de3b0d27a3d5479251aa02996e18ea82d |
import pdb
import numpy as np
import matplotlib.pyplot as plt
import math
import itertools
import operator
######################################################################
#
# Learning algorithms and helpers
#
######################################################################
# Ordinary least squares regres... | LYZhelloworld/Courses | 50.021/09/learn.py | Python | mit | 33,330 | [
"Gaussian"
] | aea63996bb1dd8d4cc13b3cbcdb3c4bc45e6b697671f6f43df6c2fead4d1c07e |
#
# sample for spark-python-sdk
# Started on 19/04/2017 by Antoine
#
import sparkpy
# To obtain a developer access token, visit http://developer.ciscospark.com
access_token = "<<secret>>"
# Initialize the client
spark = sparkpy.Spark().builder().base_url("https://api.ciscospark.com/v1").access_token(access_token).... | Bassintag551/spark-python-sdk | example/sample.py | Python | mit | 808 | [
"VisIt"
] | f1fa30201657374c9cc7e2bf2108db31b62cc89848e18aaa729346dc6a22d162 |
# -*- coding: utf-8 -*-
from random import randint
from datetime import date
from lettuce import *
from rapidsms.contrib.locations.models import *
from django.template.defaultfilters import slugify
from survey.features.page_objects.households import NewHouseholdPage, HouseholdsListPage, HouseholdDetailsPage, EditHou... | unicefuganda/uSurvey | survey/features/households-steps.py | Python | bsd-3-clause | 9,803 | [
"VisIt"
] | fe5d6b8715177e0f48f598a8bf71e32ad26be4ae91e98dc53db3bd0e5ba3b5b5 |
#!/usr/bin/env python
# ----------------------------------------------------------------------------------------
# Created by: Lee Bergstrand
# Description: A Biopython program that takes a list of query proteins and uses local BLASTp to search
# for highly similar proteins within a local blast database (... | LeeBergstrand/BackBLAST_Reciprocal_BLAST | BackBLAST.py | Python | mit | 9,131 | [
"BLAST",
"Biopython"
] | 6a8aed31cd36c44b3a4743ee302dfea938875c1a08fe7cbdd6969b0c81487d31 |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkRectilinearGridGeometryFilter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
... | nagyistoce/devide | modules/vtk_basic/vtkRectilinearGridGeometryFilter.py | Python | bsd-3-clause | 526 | [
"VTK"
] | f686257761b09b032c3b8ca14fdbae26442f746fa90883a1dd6798714042026b |
# LIBTBX_SET_DISPATCHER_NAME dials.complete_full_sphere
from __future__ import annotations
import logging
import math
import sys
from cctbx import crystal, miller
from dxtbx.model import ExperimentList
from libtbx.phil import parse
from scitbx import matrix
from dials.algorithms.refinement import rotation_decompos... | dials/dials | command_line/complete_full_sphere.py | Python | bsd-3-clause | 7,884 | [
"CRYSTAL"
] | fa6efafd7b7670629f7269ae6e473174d282d4f87c26f73d3f19e131fa85244b |
'''
Created on Nov 6, 2013
@author: mborodin
'''
import logging
from django.utils import timezone
import re
from atlas.prodtask.models import get_default_project_mode_dict, MCJobOptions, StepTemplate
import atlas.gspread as gspread
from datetime import datetime
from atlas.dkb.views import find_jo_by_dsid
from .mode... | PanDAWMS/panda-bigmon-atlas | atlas/prodtask/spdstodb.py | Python | apache-2.0 | 27,534 | [
"FEFF"
] | c7c3a08011e8dbe88b8487ffe7f6ec8780dff39ef7317b185ada5cb755869329 |
# Audio Tools, a module and set of tools for manipulating audio data
# Copyright (C) 2007-2016 Brian Langenberger
# 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 2 of the Licens... | tuffy/python-audio-tools | audiotools/wavpack.py | Python | gpl-2.0 | 22,994 | [
"Brian"
] | 010d8a25c8572353bdaa772521d13abd922ba483ae47d37b53cda0810f182442 |
# -*- coding: utf-8 -*-
"""
Class for reading data from Neuralynx files.
This IO supports NCS, NEV and NSE file formats.
This module is an older implementation with old neo.io API.
A new class NeuralynxIO compunded by NeuralynxRawIO and BaseFromIO
superseed this one.
Depends on: numpy
Supported: Read
Author: Julia... | rgerkin/python-neo | neo/io/neuralynxio_v1.py | Python | bsd-3-clause | 105,334 | [
"NEURON"
] | 9a536a5143c7f01ef7cf5fa0e7e354525e458ca03f62e3be40338f71f8a53afd |
from math import sqrt,log
import numpy as np
from scipy import stats
from matplotlib import pyplot
def here_cca(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.T
XStar = Rz * X
YStar = R... | 0todd0000/spm1d | spm1d/rft1d/examples/val_max_7_cca_0d.py | Python | gpl-3.0 | 1,937 | [
"Gaussian"
] | df3857b00ff700de7051d03cf56b001da54cccf28295f9923101b3ddb52c57ba |
#
# QAPI visitor generator
#
# Copyright IBM, Corp. 2011
#
# Authors:
# Anthony Liguori <aliguori@us.ibm.com>
# Michael Roth <mdroth@linux.vnet.ibm.com>
#
# This work is licensed under the terms of the GNU GPLv2.
# See the COPYING.LIB file in the top-level directory.
from collections import OrderedDict
from qapi ... | TheJJ/qemu | scripts/qapi-visit.py | Python | gpl-2.0 | 13,513 | [
"VisIt"
] | ea9cb21021f504bbda2e28de4f6ab0f96b5afe1594add14d5f9ac9059ed836ce |
# -*- coding: utf-8 -*-
"""
Created on Wed May 10 11:15:22 2017
@author: lracuna
"""
from vision.camera import *
from vision.plane import Plane
from vision.screen import Screen
import numpy as np
import matplotlib.pyplot as plt
from mayavi import mlab
import cv2
#%% Create a camera
cam = Camera()
## Test matrix fu... | raultron/ivs_sim | python/old_experiments/plane_generator.py | Python | mit | 5,483 | [
"Mayavi"
] | 358805141e2a7fd2d56d51a1fb0771664332b232220400c9747a35b3457f0da8 |
#!/usr/bin/python
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# di... | salomon1184/bite-project | deps/mrtaskman/common/device_info.py | Python | apache-2.0 | 6,525 | [
"Galaxy"
] | fc241ae5f906edc47d4169718e79cb78a49fd03562d9eb4b47a9e26df962f5f0 |
from gpiozero import TrafficLights
from time import sleep
lights = TrafficLights(2, 3, 4)
lights.green.on()
while True:
sleep(10)
lights.green.off()
lights.amber.on()
sleep(1)
lights.amber.off()
lights.red.on()
sleep(10)
lights.amber.on()
sleep(1)
lights.green.on()
lights.... | lurch/python-gpiozero | docs/examples/traffic_lights_1.py | Python | bsd-3-clause | 353 | [
"Amber"
] | 3a93f423ccb0e195b73026069225916f9dd44b4ee4136b6c48633d32491cca28 |
#!/usr/bin/env python
###############################################################################
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License... | Ecogenomics/GTDBNCBI | scripts_dev/report_hits.py | Python | gpl-3.0 | 6,714 | [
"BLAST"
] | 928aa37f5b02dacdeb906cad0ffbf89849214ae8496f5308eb7b01e508c21903 |
"""Polynomial factorization routines in characteristic zero. """
from __future__ import print_function, division
from sympy.polys.galoistools import (
gf_from_int_poly, gf_to_int_poly,
gf_lshift, gf_add_mul, gf_mul,
gf_div, gf_rem,
gf_gcdex,
gf_sqf_p,
gf_factor_sqf, gf_factor)
from sympy.poly... | wxgeo/geophar | wxgeometrie/sympy/polys/factortools.py | Python | gpl-2.0 | 34,105 | [
"Gaussian"
] | 19ad19006a867a7d456e38fb4044a2242b70b50b74534f82f281d4858417ad82 |
#!/usr/bin/env python
"""
Compliance Checker
"""
from __future__ import unicode_literals
from functools import wraps
import pprint
from netCDF4 import Dataset
from owslib.swe.observation.sos100 import SensorObservationService_1_0_0
from owslib.swe.sensor.sml import SensorML
from owslib.namespaces import Namespaces
f... | petejan/compliance-checker | compliance_checker/base.py | Python | apache-2.0 | 10,734 | [
"NetCDF"
] | b40986266b36b80e135eaad872a2d55d0a183f9d9ecabd300cd064f77bbfdb61 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# load time series data
from pandas import Series
from statsmodels.tsa.stattools import adfuller
series = Series.from_csv( 'data/daily-total-female-births.csv', header=0)
X = series.values
result = adfuller(X)
print('ADF Statistic: %f' % result[0])
print('p-value: %f' % res... | KrisCheng/ML-Learning | archive/Model/sequence/time_series/stationary.py | Python | mit | 431 | [
"ADF"
] | 78a31606fa64a11fbf7e3912e66d4240d371ee75b57d3be0f31f1c6df82fbd64 |
import os
from atila import Atila
import skitai
app = Atila (__name__)
app.debug = True
app.use_reloader = True
app.jinja_overlay ()
@app.route ("/")
def index (was):
return was.render ("index.html")
@app.route ("/documentation")
def documentation (was):
req = was.get ("https://pypi.python.org/pypi/skitai")
pyp... | hansroh/skitai | tests/examples/app-multi-workers.py | Python | mit | 2,882 | [
"VisIt"
] | f2e15a836daece8550b93fe4a7890a7a19bed3378c2f71aa1e37010e68083c9d |
#!/usr/bin/env python
import glob
import sys
import numpy as np
from setuptools import setup, find_packages
try:
from Cython.Build import cythonize
have_cython = True
except ImportError:
have_cython = False
# Determine shared library suffix
if sys.platform == 'darwin':
suffix = 'dylib'
else:
suf... | nelsonag/openmc | setup.py | Python | mit | 2,715 | [
"VTK"
] | 804d5178d87de7a4d8a3baec76b6ca67d00f8bc4952ec8fc059db80cc92d25ff |
#!/usr/bin/env python2
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Kovid Goyal <kovid@kovidgoyal.net>'
__docformat__ = 'restructuredtext en'
import os, pp... | hazrpg/calibre | src/calibre/web/jsbrowser/browser.py | Python | gpl-3.0 | 28,179 | [
"VisIt"
] | e47f97406636f7ddd4155578c0c1bbd601afb3030e8f4d957f07e5c5b07056de |
#!/usr/bin/env python
import os
import sys
sys.path.insert(0, os.path.abspath('lib'))
from ansible import __version__, __author__
try:
from setuptools import setup, find_packages
except ImportError:
print("Ansible now needs setuptools in order to build. Install it using"
" your package manager (us... | goozbach/ansible | setup.py | Python | gpl-3.0 | 1,980 | [
"Galaxy"
] | 04b8078540f9b8dbd276db265a9617cdcfe3b74822352cb387ee5d944d41f2be |
#-*- coding: utf8 -*-
'''
===========
SimpleLayer
===========
A plugin to allow a quick and simple creation of layers from materials created
from a crystallographic data file (.cif) available at e.g. ICSD
or the chemical formula and mass-density or crystal structure.
Materials are stored for later use.
To use the mat... | haozhangphd/genx-py3 | genx/plugins/add_ons/SimpleLayer.py | Python | gpl-3.0 | 31,014 | [
"CRYSTAL",
"pymatgen"
] | d89a4c5910ea48f6b9f5e48100565246aef116120d988e020c9add06000a2c43 |
#!/usr/bin/env python
__author__ = 'Mike McCann'
__version__ = '$Revision: $'.split()[1]
__date__ = '$Date: $'.split()[1]
__copyright__ = '2011'
__license__ = 'GPL v3'
__contact__ = 'mccann at mbari.org'
__doc__ = '''
convertToMatlab.py simply copies a set of .csv files to a parallel set renaming
the headers s... | josephmfaulkner/stoqs | stoqs/loaders/MarMenor/toNetCDF/convertToMatlab.py | Python | gpl-3.0 | 2,913 | [
"NetCDF"
] | e257a09de7ab146f04fdce3b029c27c887b2aa3952088d56ea9acb7ca7a50fc0 |
#
# 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/src/bigdl/orca/learn/tf2/spark_runner.py | Python | apache-2.0 | 19,182 | [
"ORCA"
] | 0a0ab7d8e1435d02425e4172de8bb4cb084449b8a797c8b53bd9bdca48852909 |
#
# Copyright (c) 2017 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... | yasharmaster/scancode-toolkit | src/commoncode/fileutils.py | Python | apache-2.0 | 18,567 | [
"VisIt"
] | 6fec77ae6a6372ca2ea9f0a009a8eb58fef5bb43f4c4ff1c490d50d5754f98e9 |
# coding: utf-8
from __future__ import unicode_literals
import unittest
import json
import os
from pymatgen.core.periodic_table import Specie
from pymatgen import Composition
from pymatgen.structure_prediction.substitution_probability \
import SubstitutionProbability, SubstitutionPredictor
def get_table():
... | Dioptas/pymatgen | pymatgen/structure_prediction/tests/test_substitution_probability.py | Python | mit | 3,909 | [
"pymatgen"
] | 58f7e4ec380a6cdeb91ef968726a736ca259dde77f124bf382263fdc36f9a8f3 |
import pytest
try:
from unittest import mock
except ImportError:
import mock
import numpy as np
import openpathsampling as paths
from openpathsampling.tests.test_helpers import make_1d_traj, data_filename
from openpathsampling.engines import openmm as ops_omm
from openpathsampling.engines.topology import MDTr... | choderalab/openpathsampling | openpathsampling/experimental/storage/test_collective_variables.py | Python | lgpl-2.1 | 5,616 | [
"MDTraj",
"OpenMM"
] | 73d90e348bd6d8278bec8667b9bcfd01f9c74dbcb3f82e8cbe7fd8cc3fefd96a |
# 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 | graph_compression/compression_lib/examples/cifar10/cifar10_compression.py | Python | apache-2.0 | 15,026 | [
"Gaussian"
] | 133dc9206b7d12b146d7fb9e94d56d5b06fef621a14c7e6dd18ca4b6306e56f7 |
#!/usr/bin/env python
# =========================================================================
#
# Copyright NumFOCUS
#
# 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:/... | richardbeare/SimpleITK | Examples/SimpleGaussian/SimpleGaussian.py | Python | apache-2.0 | 1,459 | [
"Gaussian"
] | 75fb53097e1c31a20cd1af085b83480d52e91a057fe08c53376a338aca3d4110 |
# kexec.py
#
# Setup kexec to restart the system using the default bootloader entry
#
# Copyright (C) 2015 Red Hat, Inc.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions of
# the GNU General Public License v.2, or (at your o... | kellinm/anaconda | pyanaconda/kexec.py | Python | gpl-2.0 | 4,220 | [
"Brian"
] | 9eda383cb78c9b114d404f9a5a027d76da6d27ed633ea16624cccf42810c5bd5 |
from __future__ import absolute_import, division, print_function
import inspect
from numbers import Number
from types import LambdaType
from typing import Any, Callable, Dict, List, Optional, Union, Sequence
import numpy as np
import tensorflow as tf
from tensorflow import keras
from six import string_types
from tens... | imito/odin | odin/bay/layers/dense_distribution.py | Python | mit | 29,031 | [
"Gaussian"
] | b7f7fa29e1457faa94842ffb0598823db5820e020acdb8e7254f04f856a3210c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import crystal
import visualise_geom
geomfile = "geom.csv"
mycry = crystal.Crystal(a=3.0, lattice="cubic")
mycry.populateUnitCell("fcc", geom_filename=geomfile, nx=2, ny=2, nz=2, PBCs=True)
outputfile = "geometry"
visualise_geom.save_geom_as_pdf(geomfile, outputfile)
v... | owers19856/PyLATO | test_crystal.py | Python | gpl-2.0 | 368 | [
"CRYSTAL"
] | e60b883268f42bfa036cf7f0ec5e7bdadbcf2028208add07fcca5dce4729a4ee |
#!/usr/bin/env python2.7
import sys
import argparse
import rbtree
import pysam
def is_unique( interval_set ):
"""
Analyze interval_set and return true if it represent a single, contiguous
region.
"""
uniq = True
if len( interval_set ) == 0:
return False
elif len( interval_set ) == ... | AlgoLab/PIntron-scripts | cutfiller/cutfiller.py | Python | agpl-3.0 | 8,945 | [
"pysam"
] | 92aaf0a95f5967ecedb892834a9902d25b58a272d9ea5b9e6c2bd80e09c1e6b8 |
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences
# Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU GPL v2 or later.
# Ian Rose ian.r.rose@gmail.com
"""
CIDER 2014 BurnMan Tutorial --- step 3
--------------------------------------
In... | CaymanUnterborn/burnman | contrib/tutorial/step_3.py | Python | gpl-2.0 | 10,525 | [
"Gaussian"
] | b694971b236d0c5550fd915ba61e9e764687cba9f8a8bfc4615516d9533e1847 |
#* 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-2.1.html
import sys
... | harterj/moose | python/TestHarness/TestHarness.py | Python | lgpl-2.1 | 61,214 | [
"Elk",
"MOOSE",
"VTK"
] | cdabfac9ce91b9c6ec294dd7941e461fe16acb99d32aa3c5314d905d790db333 |
##############################################################################
# Copyright (c) 2013-2017, 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... | wscullin/spack | var/spack/repos/builtin/packages/netcdf-cxx/package.py | Python | lgpl-2.1 | 1,768 | [
"NetCDF"
] | e3ab3e69be9666bd51bfec463b765d458f701bbf67da18a2704365dfc4548995 |
# -*- coding:utf-8 -*-
# Copyright (c) 2015, Galaxy Authors. All Rights Reserved
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# Author: wangtaize@baidu.com
# Date: 2015-03-30
def service_to_dict(service):
ret = {}
ret["id"] = service.id
ret["user_i... | fxsjy/galaxy | console/backend/src/console/service/helper.py | Python | bsd-3-clause | 520 | [
"Galaxy"
] | e0ba1e9ac2b8ecf139f37997e77f867b9c5e36fbaea6dd5b4e6d957af4f30dd2 |
"""Alchemical Analysis: An open tool implementing some recommended practices for analyzing alchemical free energy calculations
# Copyright 2011-2015 UC Irvine and the Authors
See:
https://github.com/MobleyLab/alchemical-setup
For the code in setup.py, particular thanks go to:
- James "Wes" Barnett
"""
# Always prefer ... | MobleyLab/alchemical-setup | setup.py | Python | lgpl-2.1 | 4,070 | [
"Gromacs"
] | 03654263acff96c73805b11d1e02dcbd9cef2cb4026190deeb69ade4a0781e01 |
# modified mexican hat wavelet test.py
# spectral analysis for RADAR and WRF patterns
# NO plotting - just saving the results: LOG-response spectra for each sigma and max-LOG response numerical spectra
# pre-convolved with a gaussian filter of sigma=10
import os, shutil
import time, datetime
import pickle
imp... | yaukwankiu/armor | tests/modifiedMexicanHatTest15.py | Python | cc0-1.0 | 7,765 | [
"Gaussian"
] | 681417ab8b47a994d34a1f8c1fdb2a656cf8c05ad1a58231e532611ba3a40e89 |
"""
Authors: Damien Irving (irving.damien@gmail.com)
Copyright 2015 CSIRO
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 l... | paolap/cwsl-mas | cwsl/vt_modules/vt_remap.py | Python | apache-2.0 | 3,973 | [
"NetCDF"
] | ee27192e6a1786e06b1c971c85913097130c7034b259f88e0cc136525d690075 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2001-2006 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
# Copyright (C) 2011-2012 Paul Franklin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | Forage/Gramps | gramps/gui/plug/report/_reportdialog.py | Python | gpl-2.0 | 30,735 | [
"Brian"
] | 9c0c3bee5c77b7f491f35778c8de1fd0de78649cd735a73a6091fcd58293a1d5 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 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
#... | psi4/psi4 | psi4/driver/procrouting/solvent/pol_embed.py | Python | lgpl-3.0 | 8,338 | [
"Psi4"
] | d5dae0bede920c67a7c6dd08865a27f3629789c2adf73a60e893c7a6e56fb38a |
import mdtraj as md
import mdtraj.geometry.alignment
import numpy as np
import tftraj.rmsd_op
from Bio.SVDSuperimposer import SVDSuperimposer
def test_rotations_should_be_identity(sess, traj):
inds = [5, 19, 234, 235]
rmsd = tftraj.rmsd_op.load()
for k in range(4):
traj.superpose(traj, inds[k])... | mdtraj/tftraj | tests/test_rmsd_op_rotations.py | Python | mit | 2,101 | [
"MDTraj"
] | b0b0a0749ccde631c8d807e1a00c482102e9df2038f87694f25b9641832edf36 |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2007 B. Malengier
# Copyright (C) 2008 Brian G. Matherly
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 ... | beernarrd/gramps | gramps/plugins/quickview/all_relations.py | Python | gpl-2.0 | 14,348 | [
"Brian"
] | 8612b6626dca79472a82d3beb2ccd66c083945b2115702a7b1726c88ffed48be |
#* 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-2.1.html
import sys
... | harterj/moose | python/peacock/ExodusViewer/plugins/OutputPlugin.py | Python | lgpl-2.1 | 5,737 | [
"MOOSE",
"VTK"
] | 8e5cc0e6edbc09345cddfc7a86fd1d8b5a5d6c216ec2dbe61f23f8ef38edfa18 |
# (C) British Crown Copyright 2010 - 2014, 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... | scollis/iris | lib/iris/io/__init__.py | Python | gpl-3.0 | 13,399 | [
"NetCDF"
] | d9a3e90406d1f53c73ce10252c9619220e588bc96b7a456de4d0451a3a2d27f8 |
###############################################################################
##
## Copyright (C) 2014-2016, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | VisTrails/VisTrails | vistrails/packages/vtk/init.py | Python | bsd-3-clause | 32,199 | [
"VTK"
] | b9d454a8c76366637b4b6a441a448f35c3069a855d5c3bc6366357b373c0e97e |
#
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
from __future__ import division, print_function, absolute_import
from scipy._lib.six import string_types, exec_
from scipy._lib._util import getargspec_no_self as _getargspec
import sys
import keyword
import re
imp... | futurulus/scipy | scipy/stats/_distn_infrastructure.py | Python | bsd-3-clause | 113,268 | [
"Gaussian"
] | 8aa4959d2fadb2396087685924cffaf30c34ec760c1469dfa49ce1d562dce96e |
# Copyright 2016 Brian Innes
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | brianinnes/pycupi | python/test4.py | Python | apache-2.0 | 1,296 | [
"Brian"
] | 32a82b1169d79d66fcb0d50bab5e7c4cc5d8850c9989475719a76b4193657e20 |
# 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 Software Foundation; either ... | andrebellafronte/stoq | stoqlib/gui/editors/deviceseditor.py | Python | gpl-2.0 | 7,249 | [
"VisIt"
] | b6e623be0fad901125f1f097eb3f787b4ac26ea3a21aa3aabd844cb6b1f03157 |
#!/usr/bin/env python
# Usage: ./bgw-epsilon.py eps0mat.h5 epsmat.h5
import argparse
import asetk.format.bgw as bgw
import numpy as np
import os
# Define command line parser
parser = argparse.ArgumentParser(
description='Reads dielectric matrix from BerkeleyGW output\
and plots macroscopic diele... | ltalirz/asetk | scripts/bgw-epsilon.py | Python | mit | 1,286 | [
"BerkeleyGW"
] | 531f6399809f92ec73b93a055060c8ee9d99cc47ec017823eef340a68259c29c |
#!/usr/bin/python
##############################################
###Python template
###Author: Elizabeth Lee
###Date: 10/31/14
## Purpose: script of functions for data cleaning and processing to draw flu severity figures; supports figures in create_fluseverity_figs
## v2: swap child:adult OR to adult:child OR
## v3: ... | eclee25/flu-SDI-exploratory-age | scripts/create_fluseverity_figs_v5/functions_v5.py | Python | mit | 88,348 | [
"VisIt"
] | 06baaa71a571ad26240e9af428983c80e3cc59f0325317697a1ee1380d169e71 |
"""
DIRAC.RequestManagementSystem package
"""
| DIRACGrid/DIRAC | src/DIRAC/RequestManagementSystem/__init__.py | Python | gpl-3.0 | 49 | [
"DIRAC"
] | 75de78a2a9526136a742bc36886cb3a7f762a464edbcfd95954ad86731902394 |
import os
import subprocess
import sys
def find_packages(prefix="package_r_"):
"""
"""
#locate env.sh | grep -i package_r_
#/data/extended/galaxyJune14_2014/tool_dependency/readline/6.2/devteam/package_r_2_15_0/8ab0d08a3da1/env.sh
#/data/home/rlazarus/galaxy/tool_dependency_dir/R_3_1_1/3.1.1/fubar... | mr-c/tools-iuc | tools/tool_factory_2/getlocalrpackages.py | Python | mit | 2,233 | [
"Galaxy"
] | 772eed97abcdea6b20d4e9667daf63ac0ac51ebc8f1384490797d50138a8d8bc |
from datetime import datetime
from django.conf import settings
from django.test import Client, TestCase
from django.urls import reverse
from corehq.apps.domain.models import Domain
from corehq.apps.domain.views.settings import DefaultProjectSettingsView
from corehq.apps.users.models import WebUser
from corehq.util.te... | dimagi/commcare-hq | corehq/apps/hqwebapp/tests/test_timeout_middleware.py | Python | bsd-3-clause | 4,485 | [
"VisIt"
] | 1aa80f7aa9dbbc6062bf1997d7f10d5be5f90bbdc8b548a985822fce39d975d2 |
# Copyright (C) 2009, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import zeroinstall
import os
from zeroinstall import _
from zeroinstall.support import tasks, unicode
from zeroinstall.injector.model import Interface, Feed, stable, testing, developer, stability_levels
from zeroinsta... | timdiels/0install | zeroinstall/0launch-gui/properties.py | Python | lgpl-2.1 | 19,112 | [
"VisIt"
] | 064af29fd6dafbc1b35f543a689f7a18718463dcc72bde75e6bc5801b8f3e740 |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Read a field representing unstructured grid and display it (similar to blow.tcl)
# create a reader and write out field data
reader = vtk.vtkUnstructuredGridReader()
reade... | collects/VTK | Filters/Core/Testing/Python/fieldToUGrid.py | Python | bsd-3-clause | 4,349 | [
"VTK"
] | e2adc3fb103795000daff941d67064379ddd11a6d73a42faf8d7627e5eb23874 |
#! /usr/bin/env python
__RCSID__ = "$Id$"
from DIRAC.Core.Base.Script import parseCommandLine, getPositionalArgs
parseCommandLine()
from DIRAC.Resources.Storage.StorageElement import StorageElement
from DIRAC.Core.Utilities.ReturnValues import returnSingleResult
from DIRAC... | Sbalbp/DIRAC | Resources/Storage/test/TestStorageElement.py | Python | gpl-3.0 | 38,086 | [
"DIRAC"
] | 441e8da52b001cce782c73ca2aa28cf4b9bc9d66cbc9c60ecfc892a3e9755eb6 |
##############################################################################
# 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: y... | rmcgibbo/mdtraj | mdtraj/formats/openmmxml.py | Python | lgpl-2.1 | 2,835 | [
"MDTraj",
"OpenMM"
] | 9ef54c71f49b29e30a0549c913a80f789e78c0dd534ced05a9e6797acb5760f0 |
# blocks.py
# Defines the GNU Radio graphs for the software defined detection
# backend. This file is part of QRAAT, an automated animal tracking
# system based on GNU Radio.
#
# Copyright (C) 2012 Todd Borrowman, Christopher Patton
#
# This program is free software: you can redistribute it and/or modify
# it unde... | QRAAT/QRAAT | node/python/blocks.py | Python | gpl-3.0 | 10,015 | [
"Gaussian"
] | d0716043a620da1805a6012cf8da0ca842ad70f6fb80e404eb076398f67c0639 |
# Copyright (C) 2019 Brian McMaster
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class Type1099(models.Model):
_name = 'type.1099'
_description = '1099 Type'
name = fields.Char()
| OCA/l10n-usa | l10n_us_form_1099/models/type_1099.py | Python | agpl-3.0 | 246 | [
"Brian"
] | 73ba337cd965ea116bdfccbde0ad45df0a8d3fda5835b886b7a7eccc0a621b07 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | do/eagle/comparecollections.py | Python | agpl-3.0 | 3,819 | [
"Galaxy"
] | 4c785a9ef5a3cf631bd2ed5e6391f0440b679d9fca183a8d47d0bab43d584065 |
#!/usr/bin/env python
"""It reads a gaussian output file, detects what is
causing the micro iteration error and writes a com file
where these atoms are frozen"""
# python modules
import sys
# qt modules
from omg.gaussian import gaussian
## These parameters may require tweaking
HOW_MANY_ATOMS = 4
def main():
... | eduardoftoliveira/oniomMacGyver | scripts/find_microerror.py | Python | gpl-3.0 | 1,685 | [
"Gaussian"
] | d6bf7f365bd782834e795481559042f4caf6bc7f47393ae36ae252084e384d83 |
# Copyright 2008 by Wade Brainerd.
# This file is part of Finance.
#
# Finance 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.
#
# Fina... | tchx84/sugar-finance-activity | registerscreen.py | Python | gpl-3.0 | 10,537 | [
"VisIt"
] | 64dd42509528a335be9bcacdacbda1fde60d4e32ce7069ef3964c69cb4e355c8 |
# 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 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but... | marcli/sos | sos/plugins/sapnw.py | Python | gpl-2.0 | 5,899 | [
"ASE"
] | dc9a658753b32d7479210095ff6e75e9b94373a7588ae462f55f71c974cd8587 |
"""
==========================================
Statistical functions (:mod:`scipy.stats`)
==========================================
.. module:: scipy.stats
This module contains a large number of probability distributions as
well as a growing library of statistical functions.
Each univariate distribution is an insta... | Shaswat27/scipy | scipy/stats/__init__.py | Python | bsd-3-clause | 8,897 | [
"Gaussian"
] | 742a644b40c78f123c13898ae2c9253d231994635f48d4d9de41bc1aded3955a |
import numpy as np
import tensorflow as tf
import tensorflow.contrib.slim as slim
from tensorflow.contrib.layers.python import layers as tf_layers
from models.conv_lstm import basic_conv_lstm_cell
# Amount to use when lower bounding tensors
RELU_SHIFT = 1e-12
FC_LAYER_SIZE = 512
FC_LSTM_LAYER_SIZE = 256
# kernel siz... | jonasrothfuss/DeepEpisodicMemory | models/model_zoo/model_conv5_fc_lstm_256.py | Python | mit | 9,768 | [
"Gaussian"
] | c66f3864f12e3f3bcc7ba5ffc694a0cde734db83360490f5c3d755c6d507632d |
#!/usr/bin/python
#
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
# Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
ANSIB... | skg-net/ansible | lib/ansible/modules/network/avi/avi_cluster.py | Python | gpl-3.0 | 3,936 | [
"VisIt"
] | 71147704af4cc341bcd01a603d780ec736dd5544699dfbaa86e835606df224a8 |
import random,sys,pysam,re,subprocess,HTSeq,pdb,argparse
from collections import defaultdict
parser = argparse.ArgumentParser()
parser.add_argument('-s','--sample_name',help="please give sample name e.g. NA12878",required=True)
parser.add_argument('-c','--chr_no',help="please give chr_no",required=True)
parser.add_arg... | Illumina/HapMix | scripts/haplobams/split_by_haplotype.py | Python | gpl-3.0 | 11,648 | [
"BWA",
"HTSeq",
"pysam"
] | 8ef9ef819f939e7fb6c72983b2e2bb4a6b17ac0b2665e8a5e1e5a802fc3b4bb0 |
# coding: utf-8
# Copyright 2010-2017, The University of Melbourne
# Copyright 2010-2017, Brian May
#
# This file is part of Karaage.
#
# Karaage 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... | brianmay/karaage | karaage/projects/tables.py | Python | gpl-3.0 | 3,472 | [
"Brian"
] | 9077c534577ef6772ab032329976b7c69e79d7c5f072ca9ec854047f69e1f253 |
#
# Copyright (C) 2008, Brian Tanner
#
#http://rl-glue-ext.googlecode.com/
#
# 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 requir... | okkhoy/rlglue-python3-codec | src/tests/glue_test.py | Python | apache-2.0 | 1,558 | [
"Brian"
] | 612734cafb58282682a0adb8c4e9a99d219cacd38a07894fe86c38d8514a6578 |
#!/usr/bin/env python
# D. Jones - 2/13/14
"""This code is from the IDL Astronomy Users Library"""
import numpy as np
def cntrd(img, x, y,
fwhm, silent=False,
debug=False,
extendbox = False,
keepcenter = False):
""";+
; NAME:
; CNTRD
; PURPOSE:
... | srodney/hstfakes | cntrd.py | Python | mit | 10,657 | [
"Gaussian"
] | fb9d32380b5914b137f9cddbba712d78c70a7450962a0acb6759f4c7e7092a1c |
#!/home/bjs66/anaconda2/bin/python
"""
Created on Mon Feb 01 15:03:56 2016
@author: Nablaquabla
"""
import h5py
import os
import numpy as np
import easyfit as ef
import sys
import datetime
import pytz
# Define timezones used in analysis
eastern = pytz.timezone('US/Eastern')
utc = pytz.utc
epochBeginning = utc.localiz... | Nablaquabla/sns-analysis | _fitSPEQ.py | Python | gpl-3.0 | 4,764 | [
"Gaussian"
] | eed6bf0b4ac830e6368d3e2091c7b84344c2b627d53abce0b7ce2608e649cda0 |
"""\
DFunctionals.py Exchange and Correlation Density Functionals
This is the old version, that contains code prior to Ann Mattsson's
modifications, and is being kept around for archival purposes only.
Putting this comment in 2007-02; should delete the file after 2007-08.
This program is part of the PyQuante qu... | berquist/PyQuante | PyQuante/DFunctionalsOld.py | Python | bsd-3-clause | 33,130 | [
"DIRAC"
] | 8c3e2caf8dc6b446360d63a5f96529490b5321d429b93630cfeb7914fa20c8bd |
from lms_code.lib.extract_fault import *
from lms_code.lib.geometry import *
# from mayavi.mlab import triangular_mesh, show
import pyproj
import numpy as np
def test_extract_fault():
x, y, z, triangles = get_fault_data()
lat, lon = convert_fault_data_to_latlon(x, y)
p = pyproj.Proj(proj='utm', zone = 48, ... | tbenthompson/LMS_public | lms_code/tests/test_extract_fault.py | Python | mit | 783 | [
"Mayavi"
] | 1f1ab33f103e750612893590ae1515601a6f8836cd76d1da47637f74a476c64a |
# Copyright (c) Charl P. Botha, TU Delft.
# All rights reserved.
# See COPYRIGHT for details.
from module_base import ModuleBase
from module_mixins import ScriptedConfigModuleMixin, WX_OPEN
import module_utils
import vtk
class TIFFReader(ScriptedConfigModuleMixin, ModuleBase):
def __init__(self, module_mana... | nagyistoce/devide | modules/readers/TIFFReader.py | Python | bsd-3-clause | 3,349 | [
"VTK"
] | 4fcfe3070a393eb80c11a62565458a5916d9978540ad225b9022094d03a3debb |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | MOA-2011/enigma2-plugin-extensions-openwebif | plugin/controllers/views/ajax/powerstate.py | Python | gpl-2.0 | 6,046 | [
"VisIt"
] | 278a0a6573e1cd0c8cabcadbe9e9ec784884fd44c46eecabe846be8c9461c629 |
# cachannel.py ---
#
# Filename: cachannel.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Wed Jun 4 14:59:08 2014 (+0530)
# Version:
# Last-Updated:
# By:
# Update #: 0
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#
# Change log:
#
#
#
#
# This pro... | dilawar/moose-full | moose-core/tests/python/mus/cachannel.py | Python | gpl-2.0 | 4,683 | [
"MOOSE",
"NEURON"
] | 26c38d2290b60e01fe18bfcf1f1f5c15d062256cd2148e3938e336d39efb4bbd |
#!/usr/bin/env python
import os
import glob
import datetime as dt
import platform
from optparse import OptionParser
import threading
import Queue
from subprocess import Popen,PIPE
class Worker(threading.Thread):
def __init__(self,queue):
self.__queue = queue
threading.Thread.__init__(self)
def run(self):
... | dcherian/tools | ROMS/pmacc/tools/post_tools/rompy/trunk/threaded_make_standard.py | Python | mit | 3,355 | [
"ORCA"
] | 058c6d3ff6e69a7c610c187c9cfae23cbf473a19d9c3aec81621902d704cbd49 |
# This script only draws a glyph, no VD is calculated
# truetype-tracer also outputs arcs, and we plot them orange
import truetypetracer as ttt # https://github.com/aewallin/truetype-tracer
import openvoronoi as ovd # https://github.com/aewallin/openvoronoi
import ovdvtk
import time
import vtk
def drawLine(myscree... | aewallin/openvoronoi | python_examples/arc/arc_2_draw_glyph.py | Python | lgpl-2.1 | 5,012 | [
"VTK"
] | 574a5569a4d1b53185397c95524813c1d3b11a004c4b6788af77f5be355470a6 |
import os
import sys
import vtk
import math
import PythonQt
from PythonQt import QtCore, QtGui
import ddapp.objectmodel as om
from ddapp import drcargs
from ddapp import robotstate
from ddapp.timercallback import TimerCallback
from ddapp.utime import getUtime
from ddapp.simpletimer import MovingAverageComputer
import v... | edowson/director | src/python/ddapp/perception.py | Python | bsd-3-clause | 20,053 | [
"VTK"
] | 15df82516c8ca15ce49bde7773b1474b5911915f225512a93566032a59d8ace1 |
# Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
from chrome_ent_test.infra.core import environment, before_all, test
from infra import ChromeEnterpriseTestCase
@environment(file=... | ric2b/Vivaldi-browser | chromium/chrome/test/enterprise/e2e/policy/url_blocklist/url_blocklist.py | Python | bsd-3-clause | 2,395 | [
"VisIt"
] | 584a5a977cb2727d8cfb5af5d6b4af86c4afcff1ee98f9571c845f7271898c1d |
#!/usr/bin/env python
# ======================================================================
# Globally useful modules, imported here and then accessible by all
# functions in this file:
import matplotlib
# Force matplotlib to not use any Xwindows backend:
matplotlib.use('Agg')
# Fonts, latex:
matplotlib.rc('font'... | eggplantbren/Flotsam | src/Python/PJM/plot_oguri_lens.py | Python | gpl-3.0 | 12,721 | [
"Galaxy"
] | 660151240cef5aba32e6b66a12d58179cc2900bf7ae8d5aa95aaf396b64cd3b1 |
from test import test_support
import unittest
import codecs
import sys, StringIO, _testcapi
class Queue(object):
"""
queue: write bytes at one end, read bytes from the other end
"""
def __init__(self):
self._buffer = ""
def write(self, chars):
self._buffer += chars
def read(se... | MicroTrustRepos/microkernel | src/l4/pkg/python/contrib/Lib/test/test_codecs.py | Python | gpl-2.0 | 52,865 | [
"FEFF"
] | cf39b84768cbd9cd3a2f5f59aef33b961aa454ef7c098ca57a0c003f66f90e32 |
'''
synbiochem (c) University of Manchester 2016
synbiochem is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
import json
from urllib import parse
import requests
def get_taxonomy_id(name):
'''Gets the NCBI Taxonomy id fr... | synbiochem/synbiochem-py | synbiochem/utils/taxonomy_utils.py | Python | mit | 1,232 | [
"VisIt"
] | 5853c4c45d1f76aa1ebd4fc27f306faee0e8a7aff7466f372e1a38fd318af412 |
# Imported from https://gitorious.org/hough-circular-transform
# License: GPLv3
# Date: Fri, Mar 7 2014
import numpy as np
from scipy.signal import fftconvolve, convolve2d, correlate2d
from scipy.ndimage import filters
from warnings import warn
class CircularHough(object):
def __init__(self, radii=None, threshold... | vbraga/irismatch | src/houghcirculartransform.py | Python | gpl-2.0 | 7,929 | [
"Gaussian"
] | 0307fa3cd9f2a278c52b863258176ef86cccd7baa5f2cc7a058212961de9321e |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | beomyeol/models | differential_privacy/multiple_teachers/deep_cnn.py | Python | apache-2.0 | 21,838 | [
"Gaussian"
] | 90dcf2a1cdbc9d0b5a0126e5ac0234301957e8d773d32c061b1644503e300298 |
# Heist was created by Redjumpman for Redbot
# Standard Library
import asyncio
import bisect
import os
import random
import string
import time
from ast import literal_eval
from operator import itemgetter
# Discord / Red Bot
import discord
from discord.ext import commands
from .utils.dataIO import dataIO
from .utils ... | keanemind/Keane-Cogs | heist/heist.py | Python | mit | 55,007 | [
"CASINO"
] | 19428e4347f72c4c5d348d1df1db0fa4ed3ef5b0f09eee32fa4e4f428bf27f27 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('visit', '0046_auto_20150809_2110'),
]
operations = [
migrations.AddField(
model_name='visit',
name='... | koebbe/homeworks | visit/migrations/0047_auto_20150809_2313.py | Python | mit | 577 | [
"VisIt"
] | 510b280f73f41e48fc8cf9ef710eba673e29808754b0f77e8e7cb4349538ef33 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.