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 |
|---|---|---|---|---|---|---|---|
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/core/test_atomgroup.py | Python | gpl-2.0 | 48,532 | [
"MDAnalysis",
"VMD"
] | 4acb08a713f7dab48de892d35fab3c5ddc7e8a4c422a2ce92e50fcbdb70e93a0 |
# %MACRO V22H79L1;
#%***********************************************************************
#************************************************************************
#
#1 MACRO NAME: V22H79L1
#2 PURPOSE: HCC version 22 labels for 79 HCCs
#*****************************************************************... | galtay/hcc_risk_models | hcc_risk_models/common/v22h79l1.py | Python | gpl-3.0 | 4,360 | [
"NEURON"
] | 4e93e140160d1326100b20dbd30c65fe7e6cacfae9fa2750b9de554461e35d97 |
#! /usr/bin/python
#
# Copyrighted David Cournapeau
# Last Change: Wed Dec 06 09:00 PM 2006 J
# The MIT License
# Copyright (c) <year> <copyright holders>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# i... | cliburn/flow | src/plugins/visual/TwoDFrame/densities2.py | Python | gpl-3.0 | 9,993 | [
"Gaussian"
] | 36b655b584e39f60d8322e85e056ff2013f12405db11e7b463139b73e4a82483 |
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Martin Hawlisch, Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Jakim Friant
#
# This program is free software; you can redistribute it and/or modify
# it under the terms o... | Forage/Gramps | gramps/plugins/tool/dateparserdisplaytest.py | Python | gpl-2.0 | 11,257 | [
"Brian"
] | cdd0acf6e19e703db18609e8e687a8aecd1e8bbe6baecb3cf5400832a7afafe5 |
################################################################################
# Copyright (C) 2011-2012 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
# Import some most commonly used nodes
from . import *
from .b... | SalemAmeen/bayespy | bayespy/inference/vmp/nodes/__init__.py | Python | mit | 1,255 | [
"Gaussian"
] | 59c84e9562b553db6bbdbd22f2e21b73eb939e4474118c1e344a8446c2cabafc |
# Copyright 2016 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Orga... | dquartul/BLonD | blond/beam/distributions.py | Python | gpl-3.0 | 41,363 | [
"Gaussian"
] | 72823f56d6efd54a9f6670aff96dd7e57926f394af2383bb3c196f09d9188b6d |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
... | alejob/mdanalysis | testsuite/MDAnalysisTests/coordinates/test_chainreader.py | Python | gpl-2.0 | 6,820 | [
"MDAnalysis"
] | 2a73321400947823ca0441f9a36adcc08e65ec69ba990490f8cd4c2333443452 |
#! /usr/bin/env python
# coding:utf-8
# Author: bingwang
# Email: toaya.kase@gmail.com
# Copyleft Bing Wang
# LICENCES: GPL v3.0
#vesrion: 0.1.1
#modification:
#check two *.fsa files should appear in the command
#check if the out_put.fsa file exists, report error and exit program.
__docformat__ = "epytext en"
impor... | BingW/yeast_anno_pipe | src/bing_RBBH.py | Python | gpl-3.0 | 4,564 | [
"BLAST"
] | 8396ee235356e66715a4681ae810f8fd27f989b8a6a3f84e4892f53e00f540fa |
__all__ = [
'AlgorithmBase',
'ReaderBaseBase',
'ReaderBase',
'FilterBase',
'FilterPreserveTypeBase',
'TwoFileReaderBase',
'WriterBase',
'InterfacedBaseReader',
]
__displayname__ = 'Base Classes'
import warnings
# Outside Imports:
import vtk # NOTE: This is the first import executed ... | banesullivan/ParaViewGeophysics | PVGeo/base.py | Python | bsd-3-clause | 25,248 | [
"ParaView",
"VTK"
] | c5f7e2c3324ec8092d1f32b946acfa4134b63f16b1e0b637fb5d96c6cb42da16 |
"""
Class for making requests to a ComponentMonitoring Service
"""
__RCSID__ = "$Id$"
from DIRAC.Core.Base.Client import Client
class ComponentMonitoringClient(Client):
def __init__(self, **kwargs):
"""
Constructor function
"""
super(ComponentMonitoringClient, self).__init__(**kwargs)
self.s... | andresailer/DIRAC | FrameworkSystem/Client/ComponentMonitoringClient.py | Python | gpl-3.0 | 362 | [
"DIRAC"
] | 7c3f61915239e09faba14a2ab706aa1d760563a62b91158b3c78f15251857333 |
# Miro - an RSS based video player application
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011
# Participatory Culture Foundation
#
# 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; eithe... | debugger06/MiroX | lib/frontends/widgets/gtk/window.py | Python | gpl-2.0 | 24,426 | [
"VisIt"
] | ae22955a52b0cd800255eb2d9449dedec513af6d5b56b7835273c29cb3d233ff |
# -*- coding: utf-8 -*-
"""QGIS Unit tests for edit widgets.
.. note:: 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.
"""
__au... | wonder-sk/QGIS | tests/src/python/test_qgsrelationeditwidget.py | Python | gpl-2.0 | 12,059 | [
"Galaxy"
] | a8a29025e6f7b418af58c334678860c9577cf748bc690f79c9518ca5b8824b8f |
#!/usr/bin/env python
from __future__ import division
__author__ = "Jens Reeder"
__copyright__ = "Copyright 2011, The QIIME Project"
__credits__ = ["Jens Reeder", "Dan Knights", "Antonio Gonzalez Pena",
"Justin Kuczynski", "Jai Ram Rideout", "Greg Caporaso",
"Emily TerAvest"]
__license__ ... | josenavas/qiime | scripts/print_qiime_config.py | Python | gpl-2.0 | 35,150 | [
"BLAST",
"scikit-bio"
] | 1f380c83e9194e31b108ce12c3a784a6a1ca22118b1235ef32b1376ac3b62a0b |
from distutils.core import setup
setup(
name='pymag',
version='0.0',
packages=['pymag',
'pymag.utils',
],
package_data={
},
url='',
license='',
author='I-Non Chiu',
author_email='inchiu@asiaa.sinica.edu.tw',
description='Python package of Magnific... | inonchiu/PyMaG | setup.py | Python | mit | 348 | [
"Galaxy"
] | ffa9d23c6050a17d47453d0ccb4d6ad9875f714180b5b4a981b980dd2d4acfe2 |
import numpy as __np__
import matplotlib.pyplot as __plt__
from matplotlib import cm as __cm__
def gausscal(z = 1,w0 = 0.1 ,lambda1 = 0.633):
"""
Gauss beam Calculator
==========================================
input
------------------------------------------
# z: Axial Distance(mm)
# w0: Beam Waist(mm)
# lamb... | Sterncat/opticspy | opticspy/gauss.py | Python | mit | 2,604 | [
"Gaussian"
] | d7c7b38dd88132ac83e1b9c18c6f0c6b3c8af361b5158963fc354ca3031a8e04 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
import unittest
import os
import numpy as np
from pymatgen import Element
from pymatgen.phasediagram.entries import PDEntryIO, PDEntry
from pymatgen.phasediagram.maker ... | xhqu1981/pymatgen | pymatgen/phasediagram/tests/test_plotter.py | Python | mit | 4,088 | [
"pymatgen"
] | c4aa4e9323daf337063338b7bedc5fe0fda8a2f0a231ae4a2e640d668a4241c1 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
from .utils import get_model, find_max_chain_id, remove_WAT
from .process import Process
from .mdobject import MdObject
import proteindf_bridge as bridge
import logging
logger = logging.getLogger(__name__)
class AmberObject(MdObject):
"""Ope... | ProteinDF/QCLObot | qclobot/amberobject.py | Python | gpl-3.0 | 36,291 | [
"Amber"
] | d13cfc0a6aced0d7282acf29ceb2df0b08b31a5a703001ebdfd4f6dd4985c093 |
import copy
import functools
import sys
import typing
import warnings
from collections import OrderedDict, defaultdict
from collections.abc import Mapping
from distutils.version import LooseVersion
from numbers import Number
from typing import (
Any, Callable, Dict, List, Optional, Set, Tuple, TypeVar, Union, Seque... | chunweiyuan/xarray | xarray/core/dataset.py | Python | apache-2.0 | 167,213 | [
"NetCDF"
] | 9d4c5ecfa600bc2fac5d500d4d9fd14abf3ecea73898dd772a894141f6b875af |
"""
This file contains view functions for wrapping the django-wiki.
"""
import logging
import re
import cgi
from django.conf import settings
from django.contrib.sites.models import Site
from django.core.exceptions import ImproperlyConfigured
from django.shortcuts import redirect
from django.utils.translation import ug... | openiitbombayx/edx-platform | lms/djangoapps/course_wiki/views.py | Python | agpl-3.0 | 4,767 | [
"VisIt"
] | d2171d2e09124029094562df39f71657b5eed059c48a3c466b6363509d0720a4 |
##############################################################################
# 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... | EmreAtes/spack | var/spack/repos/builtin/packages/r-annotate/package.py | Python | lgpl-2.1 | 1,863 | [
"Bioconductor"
] | 61a94c28599862b618043a3f603c84ff6040d7f1bad29d269c9167756b1066e6 |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import math
import os
import pickle
import unittest
import warnings
from copy import deepcopy
import numpy as np
from pymatgen.core.periodic_table import DummySpecies, Element, Species, get_el_sp
from pymatgen.util.testing ... | vorwerkc/pymatgen | pymatgen/core/tests/test_periodic_table.py | Python | mit | 17,487 | [
"pymatgen"
] | 45b826372ee731eecdd2efa24501c88e1b5dd801783e564d8068e29e00e201c7 |
"""
Kennard Stones object selection
"""
# Author: Giuseppe Marco Randazzo gmrandazzo@gmail.com
# License: BSD 3 clause
from random import randrange
import time
from numpy import zeros, array
class KS(object):
"""Perform Kenard-Stoness compound object selection
Parameters
----------
dmx : array, shap... | zeld/scikit-optobj | optobj/ks.py | Python | bsd-3-clause | 5,067 | [
"Brian"
] | c102c896bbad91720263d52bd5f7f08a1983ed79fab297359439c204776d7c3a |
#!/galaxy/home/mgehrin/hiclib/bin/python
"""
Read a set of ranges and a nib file, print portions of nib overlapping
those ranges to stdout
TODO: General sequence handling would be nice, as well as merging with
'nib_intervals_to_fasta.py'.
usage: %prog nib_dir < range_file
"""
from bx.cookbook import doc_optpa... | bxlab/HiFive_Paper | Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/nib_chrom_intervals_to_fasta.py | Python | bsd-3-clause | 1,099 | [
"Galaxy"
] | 6108a6dbdf1576089481db3bb4ba604ba47c7fb70ba4f66986a5bc09ec29ee0b |
from __future__ import print_function
import sys
sys.path.insert(1,"../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.deeplearning import H2ODeepLearningEstimator
from h2o.estimators.gbm import H2OGradientBoostingEstimator
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.estima... | michalkurka/h2o-3 | h2o-py/tests/testdir_jira/pyunit_pubdev_4802_short_max_runtime_secs.py | Python | apache-2.0 | 6,511 | [
"Gaussian"
] | 811da89490e49505530714e3354aaa527aa75f5d9e61d41576945d2a7fd1c6db |
"""
Wavelet transform of a Noisy Spike
----------------------------------
Figure 10.8
Localized frequency analysis using the wavelet transform. The upper panel shows
the input signal, which consists of a Gaussian spike in the presence of white
(Gaussian) noise (see figure 10.10). The middle panel shows an example wave... | nhuntwalker/astroML | book_figures/chapter10/fig_line_wavelet_PSD.py | Python | bsd-2-clause | 4,360 | [
"Gaussian"
] | 2d7c6c5e35bb376cc9e989e554cd377ea36d912c9d4d203af25cb7194a27c426 |
#* 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 os
im... | nuclear-wizard/moose | python/MooseDocs/common/get_content.py | Python | lgpl-2.1 | 7,603 | [
"MOOSE"
] | b07515900f7c5b66ebf12ce9d7c91761f800eae0bb588d0149090163793b54bf |
'''/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <tanmoy.7989@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, yo... | tanmoy7989/idp | Go.py | Python | gpl-3.0 | 34,675 | [
"LAMMPS"
] | b7b31a4c7940c80004d90b37de02cf2440e5b5b0014c405cc56d996301954a80 |
# -*- coding: utf-8 -*-
import numpy as np
from scipy._lib._util import check_random_state
from scipy.interpolate import CubicHermiteSpline
from scipy import stats
def rvs_ratio_uniforms(pdf, umax, vmin, vmax, size=1, c=0, random_state=None):
"""
Generate random samples from a probability density function usi... | e-q/scipy | scipy/stats/_rvs_sampling.py | Python | bsd-3-clause | 25,023 | [
"Gaussian"
] | 9fe54cc50a7b29d8893aa92df41949494de64eebb8eaa26aba24206f07809f83 |
from collections import Counter
import os
import string
import urllib
from urlparse import urljoin
from typing import Dict
from django.conf import settings
from django.contrib.auth.models import User
from splinter.browser import Browser
TEST_COUNTERS: Dict[str, Counter] = {
"following": Counter(),
"before": ... | coddingtonbear/inthe.am | inthe_am/taskmanager/features/environment.py | Python | agpl-3.0 | 3,243 | [
"VisIt"
] | 00c4725d92739524074ca1993f77127cb0998893a4d294ab2d4cc5c3f0ff4c6c |
#!/usr/bin/env python
# Author: Richard Bradshaw, R.T.Bradshaw@soton.ac.uk
# Module to fit various curves to provided data
# Current available curves: Gaussian, Lorentzian, Voigt
# Reports back various curve properties and optionally chi-squared fit value
# Requirements: Numpy, scipy.optimize v.0.17 or greater
impor... | rtb1c13/scripts | IR_lineshapes/curvefit.py | Python | gpl-2.0 | 2,243 | [
"Gaussian"
] | 37678b536be71fd9b4d4a6ae7e8525cac6a6ab19bdf284f981d79b7cb74b3082 |
# Lint as: python3
# Copyright 2019 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 ... | tensorflow/lingvo | lingvo/datasets.py | Python | apache-2.0 | 6,743 | [
"VisIt"
] | 691dcb2efbc5e3182dace3885915e8ebbd0160eb17e4ace1173abde0f11331c8 |
from __future__ import division, print_function, absolute_import
from scipy._lib.six import xrange
from numpy import (logical_and, asarray, pi, zeros_like,
piecewise, array, arctan2, tan, zeros, arange, floor)
from numpy.core.umath import (sqrt, exp, greater, less, cos, add, sin,
... | jamestwebber/scipy | scipy/signal/bsplines.py | Python | bsd-3-clause | 12,111 | [
"Gaussian"
] | 7e19fbd45ed1c356fee705c5c2ab2b49bf61cbe4da5c942a84f8447224dfeacf |
# Copyright 2013-2018 The Meson development team
# 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 agree... | QuLogic/meson | mesonbuild/dependencies/base.py | Python | apache-2.0 | 103,259 | [
"NetCDF"
] | da71078e7500eceb8febabcbb0e3d1c57a351c86e75e66c600ed4b3f17ddafdf |
# This file is part of the myhdl library, a Python package for using
# Python as a Hardware Description Language.
#
# Copyright (C) 2003-2009 Jan Decaluwe
#
# The myhdl library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License as
# published by t... | j-marjanovic/myhdl | myhdl/_always_comb.py | Python | lgpl-2.1 | 4,522 | [
"VisIt"
] | 9eb8f49a35a091d6cf26732e16d7370b3cbd06d4d8e64c58ec4341dfcbb36d6a |
# -*- coding: utf-8 -*-
import numpy as np
class SVR:
#ハイパーパラメータ
err = 0.0001 #許容誤差
eps = 0.001 #モデル関数の定数
rate = 0.2 #学習率(勾配降下法のステップ幅)
"""サポートベクトル回帰(SVR)"""
def __init__(self, data_y, data_x, s):
self.y = data_y
self.x = data_x
self.sigmma = s#ガウシアンカーネルのパラメータ
"... | wearisome/misa | SVR.py | Python | gpl-3.0 | 6,152 | [
"Gaussian"
] | dd16daacf7127bd655e69c5ab46a68b677080cdb9fb20cfa0561e74082cf1df5 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
# create points in the configuration of an octant with one 2:1 face
#
points = vtk.vtkPoints()
aConvex = vtk.vtkConvexPointSet()
points.InsertPoint(0, 0, 0, 0)
points.InsertPoint(1, 1, 0, 0)
points.InsertPoint(2, 1, 1, 0)
points.InsertPoint(3, 0,... | hlzz/dotfiles | graphics/VTK-7.0.0/Common/DataModel/Testing/Python/TestConvexPointSet.py | Python | bsd-3-clause | 2,862 | [
"VTK"
] | 382a6add562a32b1e3f530203e4c73d7b0d05ccd19dbb4b63ce602b8df92ea73 |
#
# full blown threading stability test, higher enent rate...
#
import threading
import time
import random
from pymol import cmd
#cmd.feedback("ena","thread","debug")
cmd.rock()
cmd.load("dat/pept.pdb","obj1")
def bg_rgb():
while 1:
time.sleep(random.random()*0.05)
cmd.set('bg_rgb','%8.3f %8.3... | gratefulfrog/lib | python/pymol/pymol_path/test/inp/T02.py | Python | gpl-2.0 | 2,079 | [
"PyMOL"
] | c47a7f34a0b1f333821c79884ed2d68860f3fe75e2d212b517437ca8c2a05b18 |
import vtk
#renderer
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
reader = vtk.vtkStructuredPointsReader()
reader.SetFileName("c:/Users/Rinske/Documents/GitHub/scientific-visualization/ass3/SMRX.vtk")
reader.ReadAll... | stablum/scientific-visualization | ass3/mixing_reactor.py | Python | gpl-3.0 | 950 | [
"VTK"
] | 1f6436199581ca0ca87c64d5980579c2c355308e1fb96564af5ea5d2f28ac83c |
# Example Keplerian fit configuration file
# Required packages for setup
import os
import pandas as pd
import numpy as np
import radvel
# Define global planetary system and dataset parameters
starname = 'HD164922'
nplanets = 2 # number of planets in the system
instnames = ['k', 'j', 'a'] # list of instrument na... | RogueAstro/RV_PS2017 | codes/HD164922.py | Python | mit | 3,232 | [
"Gaussian"
] | 2360e109f1280a7e90bfb312d92fc530008d8794a7f8a7bafdb63fdca7b48187 |
#!/usr/bin/env python
'''
Extract CI excitation amplitudes from FCI wavefunction.
Note the basis of FCI wavefunction is the determinants which are based on
physical vacuum while the truncated CI amplitudes are based on HF vacuum.
The phase of the basis needs to be considered when converting the FCI
coefficients to CI... | gkc1000/pyscf | examples/ci/20-from_fci.py | Python | apache-2.0 | 2,949 | [
"PySCF"
] | 4970551078dab9179abbf05d073c9071f36e92988c19c09ddfe8e939593c4f70 |
from ..utils import *
# Damage 1
class XXX_001:
play = Hit(TARGET, 1)
# Damage 5
class XXX_002:
play = Hit(TARGET, 5)
# Restore 1
class XXX_003:
play = Heal(TARGET, 1)
# Restore 5
class XXX_004:
play = Heal(TARGET, 5)
# Destroy
class XXX_005:
play = Destroy(TARGET)
# Break Weapon
class XXX_006:
play =... | amw2104/fireplace | fireplace/cards/debug/all.py | Python | agpl-3.0 | 4,415 | [
"CRYSTAL"
] | 4cb6a5d603ffe827a2f0c10df636907fe0bd63a6a27c2f3da1847860dd83063b |
#! /usr/bin/env python3
import re
import requests
import sys
import json
from getpass import getpass
class CommandNotFound(Exception):
"""docstring for CommandNotFound"""
def __init__(self, message=None):
#super(CommandNotFound, self).__init__(message)
if message is None:
self.messa... | cuongnb14/autoscaling-paas | project/console_tool/autoscaling_tool.py | Python | mit | 3,970 | [
"Galaxy"
] | 95c8de3dac7f85e8fe628d8682bd6a093036525a4545c5cc71692b78dba3597d |
#!/usr/bin/env python
import os
import re
import urllib
import csv
import datetime
import time
from string import Template
from optparse import OptionParser
last_tag_pattern = 'EMPATHY_3_5*'
upload_server = 'master.gnome.org'
template = '''\
$name $version is now available for download from:
$download
$md5sums
What... | lcontzen/empathy | release.py | Python | gpl-2.0 | 8,188 | [
"VisIt"
] | 063222db8addaeff486c69a0e7a56441e7244358cdc9c2ff7b633bfc09eb6628 |
#!/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... | alxgu/ansible | lib/ansible/modules/network/avi/avi_dnspolicy.py | Python | gpl-3.0 | 3,839 | [
"VisIt"
] | 80b9f92aa4b0970b65a5e346beeddd2c9e1cf0cb5304aa82df21e495fb716820 |
from Firefly import logging
from Firefly.const import (EVENT_ACTION_ANY, EVENT_ACTON_TYPE, TIME)
from typing import List
class Subscriptions(object):
"""Subscriptions.
Subscriptions should be stored like so:
{ DEVICE_SUBSCRIBED_TO: {EVENT_ACTION: [LIST_OF_SUBSCRIBERS], ...} }
"""
# TODO: Add functionality... | Firefly-Automation/Firefly | Firefly/helpers/subscribers.py | Python | apache-2.0 | 14,928 | [
"Firefly"
] | d807b88a46d67bf9ea930c52caa13325ebf2542e3de1d09a627db39ee88850ef |
from scipy.ndimage import gaussian_filter
from ia.ocr.licenseplates.src import GrayscaleImage
class GaussianFilter:
"""This class can apply a Gaussian blur on an image."""
def __init__(self, scale):
"""Create a GaussianFilter object with a given scale."""
self.scale = scale
def get_filte... | xmnlab/minilab | ia/ocr/licenseplates/src/GaussianFilter.py | Python | gpl-3.0 | 926 | [
"Gaussian"
] | bed88719e7586831ecf394bf32598541a9eba9d8affc30df56567a06e8d99432 |
# 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... | junghans/espressopp | src/tools/convert/__init__.py | Python | gpl-3.0 | 975 | [
"ESPResSo",
"Gromacs",
"LAMMPS"
] | 276731c7c0dc3ed710b58e7a2ca97d0f03f91c22c307de5630e991ac7f894370 |
from __future__ import unicode_literals
from __future__ import absolute_import
import logging
from .service import Service
from .container import Container
from docker.errors import APIError
log = logging.getLogger(__name__)
def sort_service_dicts(services):
# Topological sort (Cormen/Tarjan algorithm).
unm... | acaranta/fig | fig/project.py | Python | apache-2.0 | 8,467 | [
"VisIt"
] | 5fae69c4cde507ffaec99f196d9f6cf09b17177a0947ca54f2a249e627203323 |
'''
.. currentmodule:: skrf.mathFunctions
=============================================
mathFunctions (:mod:`skrf.mathFunctions`)
=============================================
Provides commonly used mathematical functions.
Complex Component Conversion
---------------------------------
.. autosummary::
:toctr... | willhaines/scikit-rf | skrf/mathFunctions.py | Python | bsd-3-clause | 11,814 | [
"DIRAC"
] | 23c44b42de2d8f4e27f3851479f10fe88706edcd26eccdf3c5b71bf9baf3fa6e |
from go_to_adjacent_systems import *
from go_somewhere_significant import *
import vsrandom
import launch
import faction_ships
import VS
import Briefing
import universe
import unit
import Director
import quest
import debug
import gettext
class cargo_mission (Director.Mission):
def initbriefing(self):
VS.IOm... | costalfy/Vega-Strike | data/modules/missions/cargo_mission.py | Python | gpl-2.0 | 10,594 | [
"VisIt"
] | 3b61f093f3f919f517fe419c19fefea5cbf461badb7f65d93deef4e2db4b774d |
#!/usr/bin/env python
"""
Framework to start a simulated vehicle and connect it to MAVProxy.
Peter Barker, April 2016
based on sim_vehicle.sh by Andrew Tridgell, October 2011
"""
from __future__ import print_function
import atexit
import getpass
import optparse
import os
import os.path
import re
import signal
import... | dipspb/ardupilot | Tools/autotest/sim_vehicle.py | Python | gpl-3.0 | 32,298 | [
"Firefly"
] | e0ebb2e5a42c165a90248fee56851c97cd4f9e8aff16a345a3823d0c3804519e |
# -*- coding: ISO-8859-15 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk>
#
# Authors :
# Oliver Clements <olcl@pml.ac.uk>
#
# Contact email: olcl@pml.ac.uk
# =======================... | ocefpaf/OWSLib | owslib/coverage/wcs200.py | Python | bsd-3-clause | 20,093 | [
"NetCDF"
] | d0e3a7fb4c48393c08215604dbf3eb6e5e53064ed412432611959af985fdab00 |
"""
glad.util
Provides utility functions that help manipulate GLAD data.
"""
def argmin_datetime(time0,time_array):
"""
Returns the index of datetime array time_array element for which
the datetime time0 is nearest.
Parameters
----------
time0 : datetime instance
Time for which the in... | milancurcic/glad | glad/util.py | Python | bsd-3-clause | 4,930 | [
"NetCDF"
] | 90ee331d33f0252fe109dc998c56ba6c5f053e312b73fd2f55d7fb1f96615739 |
#!/usr/bin/env python
# encoding: utf-8
# Default parameters work for formation_of_diffractons/
import numpy as np
import clawpack.petclaw as pyclaw
# Medium structure
medium_type='piecewise-constant'
def qinit(state,A,x0,y0,varx,vary):
r""" Set initial conditions:
Gaussian stress, zero velocities."""
... | ketch/effective_dispersion_RR | numerical_experiments/2D-propagation/quadrants_figure/homog/psystem_lin.py | Python | bsd-2-clause | 10,059 | [
"Gaussian"
] | 8f78fb2e80970fa963b60fa586cff8b5477be2d6505752d8703956ec084a38e3 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import random
import re
import unittest
import warnings
import requests
from pymatgen import SETTINGS, SETTINGS_FILE, yaml
from pymatgen import __version__ as pmg_version
from pymatgen.analysis.phase_diagram i... | davidwaroquiers/pymatgen | pymatgen/ext/tests/test_matproj.py | Python | mit | 22,672 | [
"pymatgen"
] | c5e5ea0c8c54377600f2a515f6243be182cea7040f768b8fa10ba243ae54f7c5 |
__author__ = 'jonasfelber'
class System:
planets = []
galaxy = -1
system = -1 | erstis-go-botting/sexy-bot | datatypes.py | Python | mit | 90 | [
"Galaxy"
] | fa72648f5e7856355d3bbf86008caad7bc896efd1532316eb51fe6adec774176 |
"""
A context manager for managing things injected into :mod:`__builtin__`.
Authors:
* Brian Granger
* Fernando Perez
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2010-2011 The IPython Development Team.
#
# Distributed under the terms of the BSD License.
#
# C... | vicky2135/lucious | oscar/lib/python2.7/site-packages/IPython/core/builtin_trap.py | Python | bsd-3-clause | 4,266 | [
"Brian"
] | c42818b0151e16327ec255ee1db3447ea4adc15cd55b2515fad75bd6f5b1c290 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2020 Samuele Carcagno <sam.carcagno@gmail.com>
# This file is part of pysdt
# pysdt 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 Foundat... | sam81/pychoacoustics | pychoacoustics/pysdt.py | Python | gpl-3.0 | 21,921 | [
"Gaussian"
] | fc2f5e6bd8f281926d359b4fd1fe2b4bb8329f3f3a27288dffe34a80ac26e553 |
#!/usr/bin/env python3
import itertools as it
from pathlib import Path
from pprint import pprint
import shutil
import time
import numpy as np
import pandas as pd
from pysisyphus.calculators.Gaussian16 import Gaussian16
from pysisyphus.calculators.PySCF import PySCF
from pysisyphus.color import red, green
from pysisy... | eljost/pysisyphus | deprecated/tests/test_baker_ts/test_baker_ts.py | Python | gpl-3.0 | 6,474 | [
"PySCF"
] | 2a768746acd590fe7728363a300b30f49efebf921f7d489f5f489f23ae619bbe |
# -*- coding: utf-8 -*-
#
# (C) Copyright 2020 Karellen, Inc. (http://www.karellen.co/)
#
# 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
#
# ... | karellen/karellen-pyb-plugin | build.py | Python | apache-2.0 | 1,857 | [
"VisIt"
] | 2e11f664e4baf93875313bc067c5c276b452d1378c936a648a8c7ca7b760005a |
# Apache OCW lib immports
from ocw.dataset import Dataset, Bounds
import ocw.data_source.local as local
import ocw.data_source.rcmed as rcmed
import ocw.dataset_processor as dsp
import ocw.evaluation as evaluation
import ocw.metrics as metrics
import ocw.plotter as plotter
import ocw.utils as utils
import datetime
imp... | jarifibrahim/climate | examples/multi_model_taylor_diagram.py | Python | apache-2.0 | 5,106 | [
"NetCDF"
] | 9a4caf601ee5795b273b0aaa6400bbde1de97c8b63219d3c4b8b2840687befa7 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-admin-allow-site
# Author : Stuart Paterson
########################################################################
"""
Add Site to Active mask for current Setup
"""
__RCSID__ = "$Id$"
from ... | andresailer/DIRAC | Interfaces/scripts/dirac-admin-allow-site.py | Python | gpl-3.0 | 3,053 | [
"DIRAC"
] | 43ef66aef163f73c366dcbf7d096b1d0f1172e108ac64c2a387bbb8a67741cd8 |
import morb
from morb import rbms, stats, updaters, trainers, monitors, units, parameters
import theano
import theano.tensor as T
import numpy as np
import gzip, cPickle, time
import matplotlib.pyplot as plt
plt.ion()
from utils import generate_data, get_context
# DEBUGGING
from theano import ProfileMode
# mode ... | benanne/morb | examples/example_mnist_convolutional.py | Python | gpl-3.0 | 6,574 | [
"Gaussian"
] | 10c42815866260c460ebf2a46d4a43db8eb6578ab3ec527e7d6459540fc591d0 |
# Copyright (C) 2004-2008 Paul Cochrane
#
# 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 distribut... | paultcochrane/pyvisi | pyvisi/renderers/vtk/plane.py | Python | gpl-2.0 | 4,230 | [
"VTK"
] | f5033bff5d9cf92172808cd4e67f0bc49f472428e026d00fabd3ac9692fba53a |
"""
Acceptance tests for the certificate web view feature.
"""
from ..helpers import UniqueCourseTest, EventsTestMixin
from nose.plugins.attrib import attr
from ...fixtures.course import CourseFixture
from ...fixtures.certificates import CertificateConfigFixture
from ...pages.lms.auto_auth import AutoAuthPage
from ...p... | Semi-global/edx-platform | common/test/acceptance/tests/lms/test_certificate_web_view.py | Python | agpl-3.0 | 3,597 | [
"VisIt"
] | d069aba2a96170cbccd508a648b34ef7c68168d40e0b6f650cf9751430c6f93f |
# -*- coding: utf-8 -*-
from classes.extras import reverse
# FAO Translators:
# First of all thank you for your interest in translating this game,
# I will be grateful if you could share it with the community -
# if possible please send it back to my email, and I'll add it to the next version.
# The translation does... | imiolek-ireneusz/pysiogame | i18n/custom/ar.py | Python | gpl-3.0 | 11,266 | [
"Elk",
"Jaguar",
"MOOSE"
] | 73ad78b8909774a84bcf53039b3f3dd3f9b4bf75fe8dcf0bf060c0d94d6528b9 |
#! /usr/bin/python2
import subprocess
import sys
import os
import time
from subprocess import PIPE
import socket
default_params = ''
output_file_prefix = 'output'
if len(sys.argv) > 1:
output_file_prefix = sys.argv[1]
#
# http://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python
#
class Logg... | schreiberx/sweet | archive/benchmarks_plane/rexi_tests_numerical/2016_01_08_search_f_M/run.py | Python | mit | 4,409 | [
"Gaussian"
] | c3f986042be3c4223bdf0991ea7c8676b7d5efb451ea15a9370735ca0612967d |
#!/usr/bin/env python
# encoding: utf-8
"""
File: pipeline.py
Author: Nicholas Crawford
Created by Nicholas Crawford on Mon Jun 17 15:35:51 PDT 2013
Copyright (c) 2012 Nicholas G. Crawford All rights reserved.
Description:
Runs the entire RADnome generation code as a pipeline.
"""
import os
import sys
import glob
... | ngcrawford/RADnome | RADnome/pipeline.py | Python | bsd-3-clause | 12,748 | [
"Bowtie"
] | c4e878c89635498a6060a0c8a25e134a2866d38cfa114c1702ad64c860c53b64 |
from aospy import Run
# import numpy as np
# import pandas as pd
from datetime import datetime, timedelta
# S. Clark 10-30-2015: Contrary to what idealized model runs suggest,
# we start at year 1 NOT 0.
# Also note that it throws things into a 365 day no-leap calendar.
# So if you want the last 360 days you need to b... | spencerkclark/aospy-obj-lib | aospy_user/runs/idealized.py | Python | gpl-3.0 | 21,155 | [
"Gaussian"
] | 56c0bf28d5f7b0f5b71a806b1d46068f61491686e7c6610e8e826ac862d72840 |
# Copyright 2012 Lenna X. Peterson (arklenna@gmail.com).
# All rights reserved.
#
# Tests adapted from test_PDB.py
#
# 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.
"""Unit tests for the MMCIF portion... | updownlife/multipleK | dependencies/biopython-1.65/Tests/test_MMCIF.py | Python | gpl-2.0 | 5,988 | [
"Biopython"
] | b13f79d6138d1216695cc40b7a9a82d860b960ff57020cdb711c3c23ef4597be |
# Copyright (c) Amber Brown, 2018
# See LICENSE for details.
from __future__ import absolute_import, division
import os
import sys
import click
from subprocess import CalledProcessError, check_output, STDOUT
from ._settings import load_config_from_options
from ._builder import find_fragments
def _run(args, **kwa... | hawkowl/towncrier | src/towncrier/check.py | Python | mit | 3,098 | [
"Amber"
] | 3236fd1684335218697cc870103642c42bccd0ad6b7ef522147a98638a848372 |
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Shreyas Kulkarni (shyran@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the right... | shreyas/lstree | lstree/nodes/node.py | Python | mit | 3,102 | [
"VisIt"
] | 87114d1fd944b96a112640fbd340ed8436c2b0a9a9af6da7d378335c92f61825 |
from threading import Thread
import traceback
from Queue import Queue
from collections import deque
import webapp2
from google.appengine.api import mail, taskqueue
from google.appengine.api.app_identity import get_application_id
from pytaku.models import User, createUser, Chapter, Series, ChapterProgress
from pytaku im... | hnq90/pytaku | pytaku/api/api.py | Python | gpl-3.0 | 11,626 | [
"VisIt"
] | abe7eae3edff3af40d7ba95e6edec1bd32add6c9b62a7fe854323fb9decbcf31 |
""" This module loads all the classes from the VTK Filtering library into
its namespace. This is a required module."""
import os
if os.name == 'posix':
from libvtkFilteringPython import *
else:
from vtkFilteringPython import *
| sgh/vtk | Wrapping/Python/vtk/filtering.py | Python | bsd-3-clause | 238 | [
"VTK"
] | a48be730e3782ed4479528d22f6dea0ce66d3d090ae878776cacbc88f51064d7 |
from builtins import range
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
import math
# check varimp for Binomial, Multinomial, Regression when standardize is set to False.
# I did the following:
# 1. train GLM with a dat... | michalkurka/h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_pubdev_7238_standardized_coeff_check.py | Python | apache-2.0 | 5,247 | [
"Gaussian"
] | 4a51caf36c4c26cf7ed0cfc699adf313c9b111a0b07f6dc8fad973cd040fabe3 |
import logging, tempfile
from time import time, gmtime, strftime
from DIRAC.Core.Utilities import Time
from dirac.lib.base import *
from dirac.lib.diset import getRPCClient
from dirac.lib.credentials import authorizeAction
from dirac.controllers.info.general import GeneralController
#from dirac.lib.sessionManager imp... | DIRACGrid/DIRACWeb | dirac/controllers/jobs/SiteSummary.py | Python | gpl-3.0 | 10,612 | [
"DIRAC"
] | 0722e8abad859c8d7dfdb4ed4c15e069a6cfcc66ea959ff890811d853494f024 |
from itertools import combinations_with_replacement
import numpy as np
from scipy import ndimage as ndi
from scipy import stats
from ..util import img_as_float
from ..feature import peak_local_max
from ..feature.util import _prepare_grayscale_input_2D
from ..feature.corner_cy import _corner_fast
from ._hessian_det_ap... | paalge/scikit-image | skimage/feature/corner.py | Python | bsd-3-clause | 33,744 | [
"Gaussian"
] | 8fe69d89ef98eaee09cd91be26464e62370185911a77c736ed7e4ad56b4f7af4 |
def agts(queue):
iron = queue.add('iron.py', ncpus=8, walltime=8 * 60)
queue.add('iron.agts.py', deps=[iron],
creates=['Fe_conv_k.png', 'Fe_conv_h.png'])
if __name__ == '__main__':
import numpy as np
import pylab as plt
from ase.utils.eos import EquationOfState
from ase.io import ... | qsnake/gpaw | doc/tutorials/lattice_constants/iron.agts.py | Python | gpl-3.0 | 1,569 | [
"ASE"
] | e09310b8b3b2d0f3fadc21b431a6762da6c4b3eb46e0af93f12d2c5c48af68ab |
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 12 22:21:56 2017
Based on: GSFLOW_print_PRMSparamfile4.m
@author: gcng
"""
import numpy as np # matlab core
import scipy as sp # matlab toolboxes
import matplotlib.pyplot as plt # matlab-like plots
import os # os functions
import pandas as pd # for data structures and r... | UMN-Hydro/GSFLOW_pre-processor | python_scripts/GSFLOW_print_PRMSparamfile_Shullcas.py | Python | gpl-3.0 | 44,338 | [
"CRYSTAL"
] | 1207a95b203253304c334e3f8015f662969f7bfb40e2545fbf96740648695adb |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals, print_function
"""
Classes for reading/manipulating/writing VASP ouput files.
"""
__author__ = "Shyue Ping Ong, Geoffroy Hautier, Rickard Armiento, " + \
... | migueldiascosta/pymatgen | pymatgen/io/vasp/outputs.py | Python | mit | 108,244 | [
"CRYSTAL",
"VASP",
"pymatgen"
] | 153ccc19e9ebee7c9b4602414bb4293996c4f0212d9032b1674ac28e154f4752 |
# coding=utf8
#
# Copyright 2013 Dreamlab Onet.pl
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation;
# version 3.0.
# This library is distributed in the hope that it will be useful,
# bu... | tikan/rmock | src/rmock/runners/pop3/__init__.py | Python | lgpl-3.0 | 688 | [
"VisIt"
] | ad09e0aeb5a2db1dc1fc44c7140e60e8d16dde820dab02df8649830098c23993 |
# Copyright (C) 2015
# Jakub Krajniak (jkrajniak at gmail.com)
#
# 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
... | espressopp/espressopp | src/analysis/PotentialEnergy.py | Python | gpl-3.0 | 2,557 | [
"ESPResSo"
] | 51026a6b267e52dd2a46973e5a2a3994e24d8bef423800290723be4fd34f9db8 |
#
# Brian C. Lane <bcl@redhat.com>
#
# Copyright 2012 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. This program is distributed in the hope that it
# will be useful,... | bcl/pykickstart | pykickstart/commands/unsupported_hardware.py | Python | gpl-2.0 | 2,002 | [
"Brian"
] | 5bceb4340ec9f3f55366c8cd4f5ada7012201aa42e5b3545265d26c87efcd8bd |
"""Redis Set Commands Mixin"""
from tornado import concurrent
# Python 2 support for ascii()
if 'ascii' not in dir(__builtins__): # pragma: nocover
from tredis.compat import ascii
class SetsMixin(object):
"""Redis Set Commands Mixin"""
def sadd(self, key, *members):
"""Add the specified members... | gmr/tredis | tredis/sets.py | Python | bsd-3-clause | 15,442 | [
"VisIt"
] | 284ffcd31142765ccf118ed7086a2b0d06411c064801ee1da2db793703c922ed |
# coding=utf-8
from __future__ import unicode_literals
import pytest
from pyseeyou.grammar import ICUMessageFormat
from pyseeyou.node_visitor import ICUNodeVisitor
def test_process_select_statement():
msg = ICUMessageFormat.parse(
'''{WHO, select, male {He} female {She} other {They}}.''')
i = ICUNod... | rolepoint/pyseeyou | test/test_node_visitor.py | Python | mit | 3,751 | [
"VisIt"
] | b39fa52860699bd8eafa9b3def0e5a4b3e8b327519672b9ae99541740b69aeb1 |
#!/usr/bin/env python
import os
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Create the RenderWindow, Renderer and interactive renderer
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRenderer(ren1)
ire... | ashray/VTK-EVM | Filters/Modeling/Testing/Python/Hyper.py | Python | bsd-3-clause | 5,170 | [
"VTK"
] | ae85b5c66c8d1613f27b7cbc89d17dede75d3e77877a8fde0295e0d8100f0ec3 |
#!/usr/bin/env python
#
# Electrum - Lightweight Bitcoin Client
# Copyright (C) 2015 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without... | fireduck64/electrum | plugins/trustedcoin/qt.py | Python | mit | 9,854 | [
"VisIt"
] | 64fd6eb1f352ac38d5cf49b73fd960b0aa51ea96e2492c96fedc35b1b8aed02d |
"""
Tests for geography support in PostGIS
"""
from __future__ import unicode_literals
import os
from unittest import skipUnless
from django.contrib.gis.db.models.functions import Area, Distance
from django.contrib.gis.gdal import HAS_GDAL
from django.contrib.gis.geos import HAS_GEOS
from django.contrib.gis.measure i... | ticosax/django | tests/gis_tests/geogapp/tests.py | Python | bsd-3-clause | 6,007 | [
"VisIt"
] | 3b1003c159c1cae59d93ae9018d3568850d8bf5124c8177e0e9f69b543104496 |
from metapipe.models import *
# Snippets
basic_cmd = {
'text': """python somescript.py -i {1,2,3||4,5,6} -o {o} -fgh \
somefile.txt
""",
'template_parts': [
'python', 'somescript.py', '-i',
[[Input('1'), Input('2'), Input('3')],
[Input('4'), Input('5'), Input('6')]],
'-o', Out... | TorkamaniLab/metapipe | test/fixtures.py | Python | mit | 9,552 | [
"Bowtie",
"HTSeq"
] | a328db6cec8881acab479b6390b0e0e80a7fda86d8f595205b386753105c3cc0 |
#
# Copyright (C) 2010-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... | psci2195/espresso-ffans | doc/tutorials/06-active_matter/SOLUTIONS/rectification_geometry.py | Python | gpl-3.0 | 3,390 | [
"ESPResSo",
"VTK"
] | 926a38aa7b5c0942a42b285a2d83b4bb1cfb006f66420e692057e4392a98115a |
import sys
import datetime
import urllib2
import subprocess
from scipy import stats
from lxml import etree
from urllib2 import urlopen
from django.contrib.auth.models import User
from django.utils import timezone
from django.core.management.base import NoArgsCommand
from django.db.models import Avg
from bulk_updat... | haystack/eyebrowse-server | common/management/commands/update_popular_history.py | Python | mit | 21,519 | [
"VisIt"
] | 2aa699e7c1e63a999cb8f5b54ba70b1bc3cb6dbec6e623666e809a9cc510eabe |
# -*- coding:utf-8 -*-
# !/usr/bin/env python
#
# Author: Leann Mak
# Email: leannmak@139.com
# Date: July 12, 2016
#
# This is autotest for cmdb models of eater package.
import sys
sys.path.append('.')
from nose.tools import *
import json
import os
from sqlite3 import dbapi2 as sqlite3
from promise import app, db
... | tecstack/opback | tests/testEater/testModels.py | Python | apache-2.0 | 21,261 | [
"Elk"
] | b7d50b10ec15fe89b34f9f4b895d98ba4d6a685405fa648505f9ea5ba57495f5 |
# store.py - repository store handling for Mercurial
#
# Copyright 2008 Matt Mackall <mpm@selenic.com>
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2 or any later version.
from i18n import _
import scmutil, util, parsers
import os, stat, errno
_sha =... | jordigh/mercurial-crew | mercurial/store.py | Python | gpl-2.0 | 16,901 | [
"VisIt"
] | b73484080179e58508ed85ca8bb648fa2265cfccc0348874bfae127783403e69 |
'''
Ball and stick with Na and K channels
'''
import os
import matplotlib
matplotlib.use('Agg')
from brian2 import *
import brian2cuda # cuda_standalone device
name = os.path.basename(__file__).replace('.py', '')
codefolder = os.path.join('code', name)
print('runing example {}'.format(name))
print('compiling model in... | brian-team/brian2cuda | examples/compartmental/spike_initiation_cuda.py | Python | gpl-2.0 | 2,132 | [
"NEURON"
] | 23af866e74e353f794ae1e8583f0a5daca48c19613b2532b3723b666227ad604 |
"""
Find modules used by a script, using bytecode analysis.
Based on the stdlib modulefinder by Thomas Heller and Just van Rossum,
but uses a graph data structure and 2.3 features
XXX: Verify all calls to _import_hook (and variants) to ensure that
imports are done in the right way.
"""
#FIXME: To decrease the likelih... | etherkit/OpenBeacon2 | macos/venv/lib/python3.8/site-packages/PyInstaller/lib/modulegraph/modulegraph.py | Python | gpl-3.0 | 144,406 | [
"VisIt"
] | 1550a063c5ab348a6dae0b88378719499b6f00f6078326791a803b2337955e18 |
#!/usr/bin/python
'''
annotate a fasta sequence for KMAD with structural information
requirements:
- SwissProt database:
- fasta and text files split in separate entries)
- formatted for blast
- DSSP
- blastp
input:
- a regular fasta file
or
- a fasta.7c file (converted with IDP converter fr ... | cmbi/kmad | scripts/annotate_strct_alignment.py | Python | gpl-3.0 | 20,890 | [
"BLAST"
] | 3068c3e13b3b87b2eddb534cc6fac52ad7488667389ca03724f1af77a03816fe |
#!/usr/bin/python3
# The MIT License (MIT)
# Copyright (c) 2015 Brian Wray (brian@wrocket.org)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... | wrocket/Tulip-Chess | utils/create_pgn.py | Python | mit | 2,145 | [
"Brian"
] | 35905d629b25c3d4c074c9056c7f38b4f93a47f9284c05a3315568283d57f021 |
# 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.
from __future__ import absolute_import
from os import path
import numpy as np
import scipy.optimize as opt
from sci... | tjhei/burnman | burnman/eos/dks_liquid.py | Python | gpl-2.0 | 24,601 | [
"Avogadro",
"DIRAC"
] | 4d790dc8027b61f5535bd0fbc0ab70b5e04582c75e422cdaf686e1ed87f22403 |
#!/usr/bin/env python
# Copyright 2015 The Kubernetes 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 appli... | fsouza/kubernetes | cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py | Python | apache-2.0 | 46,477 | [
"CDK"
] | 884a67b811a584f517bf286b02d92f6b18a81c8ec2daea80e6c4c3d52226240c |
"""Example implementation of using a marshmallow Schema for both request input
and output with a `use_schema` decorator.
Run the app:
$ python examples/schema_example.py
Try the following with httpie (a cURL-like utility, http://httpie.org):
$ pip install httpie
$ http GET :5001/users/
$ http GET :50... | hyunchel/webargs | examples/schema_example.py | Python | mit | 3,398 | [
"Brian"
] | 9491a8de90fe144ea1a8daff27d0d802b52af463b5be83ad619b252d68ea8290 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.