text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
from __future__ import absolute_import
input_name = '../examples/navier_stokes/stabilized_navier_stokes.py'
output_name = 'test_stabilized_navier_stokes.vtk'
from tests_basic import TestInput
class Test( TestInput ):
pass
| vlukes/sfepy | tests/test_input_stabilized_navier_stokes.py | Python | bsd-3-clause | 227 | [
"VTK"
] | a476f210ed611fbcb8ca15220c748cdc3f9e73263326c5ef056fe93a7f2dc1f2 |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | googleinterns/cl_analysis | model/constants.py | Python | apache-2.0 | 4,129 | [
"Amber"
] | b13c0d8c35e6304e0acf17fc72fe6a9389c2cd46cdcb67d2d0ce00329e069f8e |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
freeseer - vga/presentation capture software
Copyright (C) 2013 Free and Open Source Software Learning Centre
http://fosslc.org
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 ... | Freeseer/freeseer | src/freeseer/plugins/videoinput/desktop/widget.py | Python | gpl-3.0 | 2,226 | [
"VisIt"
] | 637d6c17512a340dc126942145018bac14dae7f4afb0a3b6b22d140a9477b103 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# HORTON: Helpful Open-source Research TOol for N-fermion systems.
# Copyright (C) 2011-2017 The HORTON Development Team
#
# This file is part of HORTON.
#
# HORTON is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Licens... | QuantumElephant/horton | scripts/horton-convert.py | Python | gpl-3.0 | 2,641 | [
"CP2K",
"GAMESS",
"Gaussian",
"VASP"
] | ff924f64a480afc552e3aec58bd9ba95ad1e2d7f92b5c8b5fc49a017b8c732e7 |
from __future__ import print_function
# Copyright (C) 2010, Jesper Friis
# (see accompanying license files for details).
import numpy as np
from numpy import pi, sin, cos, tan, arcsin, arccos, arctan, sqrt
from numpy import dot
from numpy.linalg import norm
import ase
__all__ = ['cell_to_cellpar', 'cellpar_to_cell'... | suttond/MODOI | ase/lattice/spacegroup/cell.py | Python | lgpl-3.0 | 3,474 | [
"ASE"
] | a97a84fe1871eaf6ca545c2e2a0fbc6840f3a2b2f14feb39fc4c628a91472a14 |
########################################################################
# $HeadURL$
# File : CSCLI.py
# Author : Adria Casajus
########################################################################
__RCSID__ = "$Id$"
import cmd
import sys
import signal
import types
import atexit
import os
import readline
from DI... | coberger/DIRAC | ConfigurationSystem/Client/CSCLI.py | Python | gpl-3.0 | 18,365 | [
"DIRAC"
] | db172b0eb958c100bbb6d7835109259c2fe57515119801b058c2df26f6551866 |
import numpy as np
from scipy.linalg import svd
__all__ = ['orthomax']
def orthomax(Phi, gamma=1., maxiter=20, tol=1e-6):
"""
Given n*k factor matrix Phi (k number of factors, n number of dimensions),
find a rotated version of the factor loadings that fulfills optimization criteria,
depending on gamm... | tneumann/cmm | cmmlib/orthomax.py | Python | gpl-2.0 | 2,947 | [
"Gaussian"
] | df3ecdcedd04e8a8c810dc2a92978f1c97c9f33f9ae2657c8a92ee798f16021f |
# -*-python-*-
#
# Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved.
#
# By using this file, you agree to the terms and conditions set forth in
# the LICENSE.html file which can be found at the top level of the ViewVC
# distribution or at http://viewvc.org/license-1.html.
#
# For more information, visit h... | foresthz/fusion5.1 | www/scm/viewvc/lib/cvsdb.py | Python | gpl-2.0 | 23,562 | [
"VisIt"
] | 66cbd983101e06e3bb2938bbe3671e8b13e69c7bb582c76482cbb2843ea34a90 |
# porto_seguro_insur.py
# Assumes python vers. 3.6
# __author__ = 'mizio'
import csv as csv
import numpy as np
import pandas as pd
import pylab as plt
from fancyimpute import MICE
import random
from sklearn.model_selection import cross_val_score
import datetime
import tensorflow as tf
class PortoSeguroInsur:
de... | MizioAnd/PortoSeguroInsur | porto_seguro_insur.py | Python | mit | 16,679 | [
"Gaussian"
] | 4ddaec34de847a9c6613648f5ada47f644435306db9287f740bd31a38f7a5372 |
from behave import given, when, then
from django.core import management
from connect.accounts.factories import (
InvitedPendingFactory, ModeratorFactory, RequestedPendingFactory, UserFactory
)
DEFAULT_WAIT = 5
# Setting up our users
@given('there is a standard user in the database')
def impl(context):
contex... | nlhkabu/connect | bdd/features/steps/common.py | Python | bsd-3-clause | 7,627 | [
"VisIt"
] | c5689eae6b73d0fdd9607bfd16e0d78e1dc8459582614da7d776d0c026404658 |
# 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... | allenlavoie/tensorflow | tensorflow/contrib/autograph/converters/decorators.py | Python | apache-2.0 | 3,246 | [
"VisIt"
] | ecf49aa1bda58dd3281ccec9eb6f6af2821666bab012fbbaf6e586ef45cbb8bb |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
import os.path
import socket
import psycopg2
import sys
import errno
import logging
import traceback
from netCDF4 import Dataset
import numpy
import urllib2 as urllib
# Variables de sistema
HOME_PATH = '/home/aisuser/'
APP_PATH = HOME_PATH + 'netcdf/'
BASE_PAT... | stregoika/aislib | scb_netcdf/netcdf_oldversion.py | Python | gpl-3.0 | 10,117 | [
"NetCDF"
] | 64cbd07dadd8970bc52cc955351a40c09b6d6e18ff5b67c992ea7ff0541813ee |
#!/usr/bin/env python
import os
import moose
import moose.utils as mu
import sys
import pylab
from collections import defaultdict
import moose_to_neuron as m2n
nrn_segs_ = {}
moose_compts_ = {}
soma_ = None
nrn_text_ = {} #defaultdict(list)
model_name_ = None
records_ = {}
dt_ = 50e-6
chanProto_ = [
['./cell... | BhallaLab/benchmarks | moose_nrn_equivalence_testing/comparision_with_simple_HH_model/check_equivalence.py | Python | gpl-2.0 | 1,786 | [
"MOOSE"
] | 496c1dce276adba1ea7ad09b1d89d8c66e0625406eac58a051974506044c9f4c |
# Orca
#
# Copyright 2006-2008 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | Alberto-Beralix/Beralix | i386-squashfs-root/usr/share/pyshared/orca/punctuation_settings.py | Python | gpl-3.0 | 14,180 | [
"ORCA"
] | b263f534cafd6fb1f249281568de6002ed8b6bbc1d560e4d4e57e1db61dd3e55 |
"""Helper functions to handle AMI creation with packer"""
import boto
import os
import subprocess
import logging
import urllib2
import csv
LOGGER = logging.getLogger('mmw')
UBUNTU_RELEASE_URL = 'http://cloud-images.ubuntu.com/query/trusty/server/released.current.txt' # NOQA
UBUNTU_RELEASE_FIELD_NAMES = ['version'... | mmcfarland/model-my-watershed | deployment/packer/driver.py | Python | apache-2.0 | 4,662 | [
"Galaxy"
] | 6156ec1fc8a59fc08bcee1e42ff0b1b6cc4e41071f79dcac8da5ab05db04c69a |
"""Support the ElkM1 Gold and ElkM1 EZ8 alarm/integration panels."""
from __future__ import annotations
import asyncio
import logging
import re
from types import MappingProxyType
from typing import Any
import async_timeout
import elkm1_lib as elkm1
import voluptuous as vol
from homeassistant.config_entries import SO... | aronsky/home-assistant | homeassistant/components/elkm1/__init__.py | Python | apache-2.0 | 15,111 | [
"Elk"
] | 82cf19e61d941b91326aebac09779136119bdf96dcd5afcf0d3930807326d80c |
""" SystemAdministrator service is a tool to control and monitor the DIRAC services and agents
"""
__RCSID__ = "$Id$"
import socket
import os
import re
import commands
import getpass
import importlib
import shutil
from datetime import datetime, timedelta
from distutils.version import LooseVersion # pylint: disable=n... | arrabito/DIRAC | FrameworkSystem/Service/SystemAdministratorHandler.py | Python | gpl-3.0 | 28,464 | [
"DIRAC"
] | 2d7de0428032b4fb4910bd406fd3374dfa3562226678de2f3a8fc3a554b80e10 |
from tstk.io import openfastx
import gzip,sys,os
from Bio import SeqIO
from Bio.Seq import Seq
import pysam
def getfiltseqs(fname):
fpathnoext, fext = os.path.splitext(fname)
if fext in [".bam",".sam"]:
filt_seqs = [(record.query_name,str(record.seq)) for record in pysam.AlignmentFile(fname)]
else:... | tdido/tstk | tstk/filterset.py | Python | mit | 4,193 | [
"pysam"
] | 5bd4d926893f6730032014dec898eb23a05ea5d58997e1a0076936b44a7c9420 |
from __future__ import print_function, division
# Imports
import numpy as np
from numpy.fft import fftn, ifftn, fft2, ifft2
import cv2
import timeit
import sys
###############################################################################
# Implementations supported
##################################################... | timmeinhardt/ProxImaL | proximal/utils/utils.py | Python | mit | 8,337 | [
"Gaussian"
] | a68608d974b3b16043e597b8e890df437da63b88116155554775282af1979ad6 |
import unittest
from test import test_support
from itertools import *
from weakref import proxy
import sys
import operator
import random
def onearg(x):
'Test function of one argument'
return 2*x
def errfunc(*args):
'Test function that raises an error'
raise ValueError
def gen3():
'Non-restartable... | xbmc/atv2 | xbmc/lib/libPython/Python/Lib/test/test_itertools.py | Python | gpl-2.0 | 32,943 | [
"GULP"
] | 5efb80c9fc4f439811a03ad745835703e301eec0c2380f065bb8f202434ccde3 |
"""
====================================================================
Linear and Quadratic Discriminant Analysis with covariance ellipsoid
====================================================================
This example plots the covariance ellipsoids of each class and
decision boundary learned by LDA and QDA. The... | glemaitre/scikit-learn | examples/classification/plot_lda_qda.py | Python | bsd-3-clause | 5,449 | [
"Gaussian"
] | 1242568377bd159fe37a7c11e7a23e57dc4458df1f9744bebfdeb9d7e3825db3 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# ^ la línia superior serveix per poder posar accents a l'arxiu
# Autor: jordi collell <jordi@tempointeractiu.cat>
# http://tempointeractiu.cat
# -------------------------------------------------------------------
"""
"""
from django.utils.translation import ugettext as ... | jordic/django_tiny_shop | demo/localshop/countries.py | Python | bsd-3-clause | 7,785 | [
"BWA"
] | 083d9f461f09f9db2771992e1eb2a4e27b2c78b317d7a4e3cd95e7ba477499e5 |
# -*- coding: utf-8 -*-
from __future__ import print_function
from owmeta_core.dataobject import DatatypeProperty, ObjectProperty, Alias
from .muscle import Muscle
from .cell import Cell
from .biology import BiologyType
from .network import Network
from .worm_common import WORM_RDF_TYPE
class Worm(BiologyType):
... | openworm/PyOpenWorm | owmeta/worm.py | Python | mit | 2,787 | [
"NEURON"
] | f726197a500a9b1058208a23fef37a23f349e90607f08a7d3fc32fbcffbe3c76 |
"""
Acceptance tests for Library Content in LMS
"""
import textwrap
import ddt
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.pages.studio.library import StudioLibraryContainerXBlockWrapper, StudioLibraryContentEditor
from common.test.acceptance.pages.s... | ahmedaljazzar/edx-platform | common/test/acceptance/tests/studio/test_studio_library_container.py | Python | agpl-3.0 | 13,863 | [
"VisIt"
] | 1eec5784cccc8a8498d80fb11cd6492c05295fc4ee837528d667e9ab0285349d |
# -*- coding: utf-8 -*-
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2003-2005 Donald N. Allingham
# Copyright (C) 2008 Brian G. Matherly
# Copyright (C) 2010 Andrew I Baznikin
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Ge... | pmghalvorsen/gramps_branch | gramps/plugins/rel/rel_fi.py | Python | gpl-2.0 | 7,776 | [
"Brian"
] | 642090b2e84bc5cae202aa7db45e24e86f5f575ae7288a54caef72379da62627 |
# -*- coding: utf-8 -*-
#
# imtools documentation build configuration file, created by
# sphinx-quickstart on Fri Oct 31 14:03:40 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# A... | mjirik/imtools | docs/conf.py | Python | mit | 12,400 | [
"VTK"
] | fb0dacfdfcbdeda246457430d33d96e2b5d64b3f9d2cd9e2d71187c49212ba2a |
import csv
import random
def get_rand():
res = 0.
while res < 0.2:
res = random.random()
return res
def prettify_network(a_network):
for layer in a_network:
for neuron in layer:
print(neuron)
print("")
# generates a random network with the input parameters
def g... | juanpablos/CC5114-Projects | Class 02/src/Utils/utilities.py | Python | mit | 4,970 | [
"NEURON"
] | e445a23769d4502bda9198c972124fb557223dbdc6a232707a3a95a6cc217d8a |
# Generated by ../generate_parser.py
"""
# Grammar definition:
```
import textwrap
```
ignored Space = /[ \\t]+/
ignored Comment = /#[^\\r\\n]*/
Newline = /[\\r\\n][\\s]*/
LineSep = Some(Newline | ";")
Name = /[_a-zA-Z][_a-zA-Z0-9]*/
Comma = wrap(",")
wrap(x) => Skip(Newline) >> x << Skip(Newline)
# Parse a full wo... | jvs/sourcer | sourcer/parser.py | Python | mit | 140,056 | [
"VisIt"
] | a124107628bc526c15933169379366036dfd82e525391bad41336fbf8d37810b |
from django.conf import settings
from appconf import AppConf
class NetCDFConf(AppConf):
RESOURCE_DIR = "/tmp/netcdfs"
# SQLALCHEMY_CONNECTION for PostGis DB that holds GeoServer datastores
SQLALCHEMY_CONNECTION = 'postgresql://user:passwd@host/db'
SHAPE_FILE_DIR = '/tmp/shapes'
REFERENCE_YEAR = 20... | nens/dpnetcdf | dpnetcdf/conf.py | Python | gpl-3.0 | 461 | [
"NetCDF"
] | bcb1c3b1dfd6b35dbef14a0e3080a793e9664cc7741a6ed318eaa5ab9dd07240 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 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
#... | amjames/psi4 | psi4/share/psi4/databases/HTBH.py | Python | lgpl-3.0 | 38,462 | [
"Psi4"
] | bd0a9c21f6d5fc06ff0b05eb21e6b6e0b8b382624546396891ec14e8b6e448c2 |
#!/mnt/lustre_fs/users/mjmcc/apps/python2.7/bin/python
##!/Library/Frameworks/Python.framework/Versions/2.7/bin/python
# -----------------------------------
import MDAnalysis
import numpy as np
import sys
from numpy.linalg import *
from distance_functions import *
# -----------------------------------
pdb = sys.argv[... | rbdavid/Distance_matrix | substrate_testing/substrate_protein_contact_map.py | Python | gpl-3.0 | 4,944 | [
"MDAnalysis"
] | 1bfeb023b770ed02dc30e679e2981dfab3b591128f0cec67c9088fae5a2fe3e9 |
"""Mayavi/traits GUI for setting MRI fiducials"""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD (3-clause)
from glob import glob
import os
from ..externals.six.moves import map
# allow import without traits
try:
from mayavi.core.ui.mayavi_scene import MayaviScene
from mayavi.tool... | rajegannathan/grasp-lift-eeg-cat-dog-solution-updated | python-packages/mne-python-0.10/mne/gui/_fiducials_gui.py | Python | bsd-3-clause | 16,327 | [
"Mayavi"
] | 27c182b5efc169fd9fa11883491950ab0a575bd47706319ccf5d60086f21ef11 |
from alchemy import *
from blast import BlastFile, HSP
h = HSP()
metadata = MetaData()
hsps_table = createTable("HSPs", metadata, h.attributes, h.converters)
mapper(HSP, hsps_table)
engine = create_engine("sqlite:///test2.db")
metadata.create_all(engine)
Session = sessionmaker(autoflush=True, transactional=True)
Se... | PapenfussLab/Mungo | mungo/alchemy/tests/test3.py | Python | artistic-2.0 | 555 | [
"BLAST"
] | 2ddf08c2c4294c67afad70cce3bb2c00e509e28107bd7d9005edb50330d25bac |
# -*- coding: utf-8 -*-
# Copyright: (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net>
# Copyright: (c) 2015, Brian Coca <bcoca@ansible.com>
# Copyright: (c) 2016-2017, Konstantin Shalygin <k0ste@k0ste.ru>
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gn... | privateip/ansible | lib/ansible/modules/find.py | Python | gpl-3.0 | 19,057 | [
"Brian"
] | 0325b41b8369d344b337cf5d6b4dfddc48b4e2835ad8192a1937cb60527f089a |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | kdmurray91/scikit-bio | skbio/stats/ordination/tests/test_canonical_correspondence_analysis.py | Python | bsd-3-clause | 6,632 | [
"scikit-bio"
] | daa9035564c6579474dc47c9248a31e05f2e434ddf563ba00d6bfaaea0e8abbe |
# -*- coding: utf-8 -*-
from acq4.pyqtgraph.Qt import QtCore, QtGui
from CanvasItem import CanvasItem
import numpy as np
import scipy.ndimage as ndimage
import acq4.pyqtgraph as pg
import acq4.util.DataManager as DataManager
import acq4.util.debug as debug
class ImageCanvasItem(CanvasItem):
def __init__(self, imag... | hiuwo/acq4 | acq4/util/Canvas/items/ImageCanvasItem.py | Python | mit | 20,067 | [
"Gaussian"
] | d5c89389e974449e04acbd5247c7f69e21436073f516e6a3f4cdf260488bfcba |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Simple Model of Spiking Neurons
# IEEE Transactions on Neural Networks(2003) 14:1569 - 1572
# Eugene M. Izhikevich
# https://www.izhikevich.org/publications/spikes.htm
# http://www.maths.dit.ie/~johnbutler/Izhikevich/IzhikevichModel.html
# https://extropynow.weebly.com... | nupic-community/nupic.audio | SpeechRecognition/examples/Izhikevich_example.py | Python | gpl-3.0 | 5,055 | [
"NEURON"
] | ca7311bf0672b928d0063104aefb4cc4318196b1cf8c015f71a8ecb1955ebff2 |
#!/usr/bin/python
#Audio Tools, a module and set of tools for manipulating audio data
#Copyright (C) 2007-2012 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... | Excito/audiotools | audiotools/py_decoders/flac.py | Python | gpl-2.0 | 22,972 | [
"Brian"
] | b51063c9a04e6589adcd8d882737d30e5877b3ca378b8a6becf8b5b1044f69ca |
# -*- coding: utf-8 -*-
"""
Application setup script
To build package:
python3 setup.py sdist bdist_wheel clean
To run tests in an virtualenv:
python3 setup.py test
To run tests directly with verbose output:
python3 -m pytest -vv
"""
# Python 2 forwards-compatibility
from __future__ import absolute_import
# standa... | brbsix/github-download-count | setup.py | Python | gpl-3.0 | 2,638 | [
"Brian"
] | a800395ae2acbe59d7235048b748942185c373d56d5d5fc5575a8f9429b9aae0 |
from collections import defaultdict, OrderedDict
from django.apps import apps
from django.utils.translation import gettext
from django.shortcuts import redirect
from django.views.generic.base import TemplateView, View
from django.contrib import messages
from django.conf import settings
from django.http import HttpRespo... | xmnlab/AlertaDengue | AlertaDengue/dados/views.py | Python | gpl-3.0 | 46,314 | [
"ADF"
] | 0377d094a782edf0f6950e5ce2e3d03dec1e535ac7779726f74c24fb229d5640 |
#!/usr/bin/env python
# ******************************************************************************
# Copyright 2014-2018 Intel Corporation
#
# 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
... | NervanaSystems/neon | examples/early_stopping.py | Python | apache-2.0 | 2,893 | [
"Gaussian"
] | 908bb0698dbefbac95124c9cf301786ae66acbd8d71b941c9d670a7d9b529519 |
""" Implements a NUTS Sampler for emcee
http://dan.iel.fm/emcee/
"""
import numpy as np
from .nuts import nuts6
from .helpers import NutsSampler_fn_wrapper
__all__ = ['NUTSSampler', 'test_sampler']
class NUTSSampler:
""" A sampler object mirroring emcee.sampler object definition"""
def __init__(self, d... | mfouesneau/NUTS | nuts/emcee_nuts.py | Python | mit | 5,518 | [
"Gaussian"
] | d548986a43910bf49239386d1480696d53d730ad8bb7b931235172c913b1b42b |
#!/usr/bin/env python3
# NeuralNet
#
# Written and Maintained by Zahidul Islam (ZahidDev)
import numpy as np
from activations import Activator as av
from loss_validations import Validation
from optimizations import Optimizer
class NeuralNet:
"""Modular Neural Network framework.
NeuralNet is a simple Deep L... | ZahidDev/NeuralNet | NeuralNet/NeuralNet.py | Python | mit | 11,133 | [
"NEURON"
] | 7f050dde5ba39669b2f836538b2df042403177c8bd43d21a2068badca857c6fc |
import nose
from nose.tools import ok_
from nose.tools import raises
from nose.plugins.attrib import attr
from birdfeeder import walker
from tests.common import TESTDATA, TESTDATA_PATH
def test_dataset():
ds = walker.Dataset(TESTDATA['cordex_tasmax.nc'], basedir=TESTDATA_PATH)
print ds.size
assert ... | bird-house/bird-feeder | tests/test_walker.py | Python | apache-2.0 | 989 | [
"NetCDF"
] | 8be06da35be7e98fdae55bdaae61ce0c764ebf622018d0190b174294b10824f7 |
import twitter
import json
import urllib2
from datetime import datetime
import re
from config import *
# Parser for tranforming Peduto schedule-speak into the lyric timbre of BillPedutoBot!
def writeTweet( event ):
keywords = {
# Food
"(?i)^(Coffee )?Meeting with ": "I'm meeting with %s",
"(?i) luncheon$": "I'... | arm5077/bill-peduto-bot | tweet.py | Python | mit | 4,455 | [
"VisIt"
] | 85585d90f66de04b5b603b49d086f74f3f0426c0af868b8a0d7f144cc4127706 |
# The MIT License (MIT)
#
# Copyright (c) 2016, Jack Liu
# All rights reserved.
#
# 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 rights
... | liu12295/chess | chess.py | Python | mit | 12,375 | [
"VisIt"
] | 2cd049a8c12cb0a64155ad6e2b3c1234d3122cf3e1cfaf154bdeef0e9586619f |
#!/usr/bin/env python
"""
ViewFrogA
Note: Make sure ViewFrog.py is in the same directory as this program.
"""
import ViewFrog
def main():
fileName = get_program_parameters()
tissues = ['blood', 'brain', 'duodenum', 'eyeRetina', 'eyeWhite', 'heart', 'ileum', 'kidney', 'intestine', 'liver',
'l... | lorensen/VTKExamples | src/Python/Visualization/ViewFrogA.py | Python | apache-2.0 | 905 | [
"VTK"
] | f26a5273192544192d2a0bde25319fb47a748542edfcaace275ccdf4652a20ad |
# This file is part of Indico.
# Copyright (C) 2002 - 2019 CERN
#
# Indico is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see the
# LICENSE file for more details.
from __future__ import unicode_literals
import re
import pytest
from indico.modules.events.abstracts.mo... | mvidalgarcia/indico | indico/modules/events/abstracts/notifications_test.py | Python | mit | 10,666 | [
"VisIt"
] | e0364d1748578d6f299eae8746b6065f90af744f417374e69f20b0200dabc6e5 |
import itertools
import numpy as np
import mdtraj as md
trj = md.load("./system.subset.pdb")
top, bonds = trj.top.to_dataframe()
cond1 = (top.name == "CA") & (top.resSeq >= 139) & (top.resSeq <= 175)
#cond2 = (top.name == "CA") & (top.resSeq % 10 == 0)
cond3 = (top.name == "CA") & (top.resSeq >= 43) & (top.resSeq <=... | hainm/MSMs | attic/src/code/generate_atom_pairs.py | Python | gpl-2.0 | 703 | [
"MDTraj"
] | 0a1c9059fb81076bdefe1a369686d10428322df6ec50b0c04dcb0408accee2f5 |
import pytest
@pytest.mark.requires("js")
class TestGoForward:
def test_fetches_a_response_from_the_driver_for_the_next_page(self, session):
session.visit("/")
assert session.has_text("Hello world!")
session.visit("/foo")
assert session.has_text("Another World")
session.go_... | elliterate/capybara.py | capybara/tests/session/test_go_forward.py | Python | mit | 453 | [
"VisIt"
] | 318934833f76f81215a6945348f7f5ea8606e543c6cc0bdf25d565ef9c4f93cd |
# -*- coding: utf-8 -*-
"""
Unit tests for masquerade.
"""
import json
import pickle
from datetime import datetime
import ddt
from django.conf import settings
from django.urls import reverse
from django.test import TestCase
from mock import patch
from pytz import UTC
from capa.tests.response_xml_factory import Option... | jolyonb/edx-platform | lms/djangoapps/courseware/tests/test_masquerade.py | Python | agpl-3.0 | 21,881 | [
"VisIt"
] | d63f9721b350486394a7ba82a1ec2ceef76ec5159edc423b304c1ad0090867f6 |
"""
# Copyright (C) 2007 Nathan Ramella (nar@remix.net)
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.... | derivativeinc/liveapi | src/LiveOSC/LiveOSC.py | Python | lgpl-2.1 | 6,073 | [
"VisIt"
] | 294522a50ddb52ee8fd993cfcd71dfd89e7371fed33bbe29e1e093493607aac5 |
#!/usr/bin/env python
#
# Data manager for reference data for the 'mothur_toolsuite' Galaxy tools
import json
import optparse
import os
import shutil
import sys
import tarfile
import tempfile
import urllib2
import zipfile
from functools import reduce
# When extracting files from archives, skip names that
# start with ... | martenson/tools-iuc | data_managers/data_manager_mothur_toolsuite/data_manager/fetch_mothur_reference_data.py | Python | mit | 19,824 | [
"Galaxy"
] | ab10b33809769d8e681f9efc1d64d6189dc56f052ff9c12191295db3571417b8 |
# Copyright 2014 NeuroData (http://neurodata.io)
#
# 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... | openconnectome/open-connectome | ndramon/annotation.py | Python | apache-2.0 | 23,464 | [
"NEURON"
] | 67796c74aeb705a0f8bd9b6b0cd68819943589c3e97586146de6ab66998ee4d3 |
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
import pandas as pd
from scipy.stats import gaussian_kde
from ggplot.utils import make_iterable_ntimes
from ggplot.utils.exceptions import GgplotError
from .stat import stat
# TODO: switch t... | kmather73/ggplot | ggplot/stats/stat_density.py | Python | bsd-2-clause | 1,690 | [
"Gaussian"
] | d8f76f2cb7be7717ce1dcb4d70437c761f667810e5e5a23b2985be8b7b3aa989 |
# Orca
#
# Copyright 2010 Joanmarie Diggs.
# Copyright 2014-2015 Igalia, S.L.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) an... | pvagner/orca | src/orca/scripts/toolkits/Gecko/script_utilities.py | Python | lgpl-2.1 | 6,161 | [
"ORCA"
] | bfd74e452b37c087e3d158e707d220e4d8845736a76a4f463cfdb070ad722595 |
########################################################################
#
# (C) 2015, Brian Coca <bcoca@ansible.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation... | jctanner/ansible | lib/ansible/galaxy/__init__.py | Python | gpl-3.0 | 2,533 | [
"Brian",
"Galaxy"
] | fdc71379d9fc754186b649877102c891e8defd80f44d849796f0a5d40398e5f1 |
"""
Get the length of the shortest path between any two neurons.
Takes connection strength into account by taking the inverse of the number as the weight between edges.
Generates some files to be used with numpy.
"""
from __future__ import absolute_import
import sys
import six
sys.path.insert(0,'..')
import apsp
imp... | openworm/PyOpenWorm | examples/shortest_path.py | Python | mit | 2,204 | [
"NEURON"
] | 85cfbf980b6837980230ee4e214ba65657e80f1db71286ca20aa758097670d94 |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/admin/validator/object_validator.py | Python | gpl-2.0 | 7,819 | [
"VisIt"
] | 6e3b6705f915728ea01729888d365fe3a48247daa7d58c00292d3e7e6d652ba8 |
import socket
import time
import os
try:
import selectors
except ImportError:
import selectors2 as selectors
from DIRAC.Core.DISET.private.Transports.BaseTransport import BaseTransport
from DIRAC.FrameworkSystem.Client.Logger import gLogger
from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK
class P... | DIRACGrid/DIRAC | src/DIRAC/Core/DISET/private/Transports/PlainTransport.py | Python | gpl-3.0 | 4,744 | [
"DIRAC"
] | 09cab6ff1d91a5f17386be881f89b0f8551c0f7f2b4fc23d15dfc05393843b6d |
# does similarity search (MAX fusion) with a given fingerprint
# and does the prediction for the test molecules
import os, gzip, numpy, cPickle, sys
from collections import defaultdict
from rdkit import Chem, DataStructs
from optparse import OptionParser
# common functions
sys.path.insert(0, os.getcwd()+'/../')
impor... | sriniker/TDT-tutorial-2014 | hit_finding/calculate_similarity.py | Python | bsd-3-clause | 1,802 | [
"RDKit"
] | e5d7e98b3b7014b2ffda6270a954e83b808500972cfeba884557aab29902e9db |
#!/usr/bin/env python3
# Coptyright 2016 (c) Brian McKean
'''
File name: delpoy.py
Author: Brian McKean
Date created: 10/12/2016
Date last modified: 10/12/20166
Python Version: 3.5
input: a string that the program will use to match instance names on aws
input: a keyfile for accessing AWS... | co-bri/quevedo | v2_scripts/deployq.py | Python | mit | 2,173 | [
"Brian"
] | 45f4380dbd67f87719684b98ad2ef437a20b74e3362a10f83987c0b138477167 |
#!/usr/bin/env python
# CREATED:2014-01-18 14:09:05 by Brian McFee <brm2132@columbia.edu>
# unit tests for util routines
# Disable cache
import os
try:
os.environ.pop('LIBROSA_CACHE_DIR')
except:
pass
import matplotlib
matplotlib.use('Agg')
import numpy as np
np.set_printoptions(precision=3)
from nose.tools i... | decebel/librosa | tests/test_util.py | Python | isc | 18,466 | [
"Brian"
] | 4f4c5b3dcdf45605a09677b0c384c1f322b82ac132d228e6916337fca84bd8bc |
# Copyright (C) 2003-2005 Peter J. Verveer
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following d... | scipy/scipy-svn | scipy/ndimage/fourier.py | Python | bsd-3-clause | 9,657 | [
"Gaussian"
] | f36aa56d6a5eeb1954f6b81f730a6db6dd5bd22b95a9bd10ad53c8c2b3c4d690 |
"""
Read data from ECMWF MACC Reanalysis.
"""
import threading
import pandas as pd
try:
import netCDF4
except ImportError:
class netCDF4:
@staticmethod
def Dataset(*a, **kw):
raise ImportError(
'Reading ECMWF data requires netCDF4 to be installed.')
try:
from e... | anomam/pvlib-python | pvlib/iotools/ecmwf_macc.py | Python | bsd-3-clause | 11,452 | [
"NetCDF"
] | 7c79fb2763922683fee23c2b98d18a8831a6381d8edbdc585c876b8389bb92dc |
"""Contains the MoveOut transition class."""
# move_out.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinball.com/mpf
import time
import pygame
from mpf.system.timing ... | jabdoa2/mpf | mpf/media_controller/transitions/move_out.py | Python | mit | 4,328 | [
"Brian"
] | d5e66d2e2138e5fd14c572aca2a471378cfa8951bc514926adeed201f13890f8 |
"""
This module provides a way for ``discretize`` meshes to be
converted to VTK data objects (and back when possible) if the
`VTK Python package`_ is available.
The :class:`discretize.mixins.vtk_mod.InterfaceVTK` class becomes inherrited
by all mesh objects and allows users to directly convert any given mesh by
calling... | simpeg/discretize | discretize/mixins/vtk_mod.py | Python | mit | 25,844 | [
"ParaView",
"VTK"
] | 4588002780d9c276682d5e61021803d44962ea744909ec9ce99b2a1b1833b967 |
##
# Copyright 2009-2012 Ghent University
# Copyright 2009-2012 Stijn De Weirdt
# Copyright 2010 Dries Verdegem
# Copyright 2010-2012 Kenneth Hoste
# Copyright 2011 Pieter De Baets
# Copyright 2011-2012 Jens Timmerman
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://u... | JensTimmerman/easybuild-easyblocks | easybuild/easyblocks/n/netcdf_fortran.py | Python | gpl-2.0 | 2,699 | [
"NetCDF"
] | 0e8fa088ec55b18fbc65dd8ad53e3f5ebf4cdf822b2423537691281fb6124d9d |
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from notifhain.event import urls as event_urls
urlpatterns = [
# Django Admin, use {% url 'admin:index' %}
url(settings.ADMIN_URL, admin.site.urls),
url(r'... | bruecksen/notifhain | config/urls.py | Python | mit | 1,168 | [
"VisIt"
] | 5f25725fb5ab7160d76f05e6291cfb008782cd022255bf6dbd65e94d1359e8a6 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Urwid LCD display module
# Copyright (C) 2010 Ian Ward
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1... | bk2204/urwid | urwid/lcd_display.py | Python | lgpl-2.1 | 16,397 | [
"CRYSTAL"
] | 66643847823d6cba8b62dcdd5889a8aa19a0dea653677226934a7668b2235c9b |
# Copyright 2014-2020 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | sunqm/pyscf | pyscf/agf2/test/test_uagf2_beh.py | Python | apache-2.0 | 6,373 | [
"PySCF"
] | 9fba2624ba0d00f4ebfed9b839c6cc91fc48bea4c0f402ca6b4b0192ce05e1a7 |
########################################################################
# File : Utilities.py
# Author : Federico Stagni
########################################################################
"""
Utilities for Transformation system
"""
__RCSID__ = "$Id$"
import ast
import random
from DIRAC import S_OK, S_ERROR, ... | vmendez/DIRAC | TransformationSystem/Client/Utilities.py | Python | gpl-3.0 | 17,638 | [
"DIRAC"
] | b08dc5050eaab4be3057b1786d93f5643f50a22c4fc6cee3f5cef52b90d1a4c4 |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
# author: coolharsh55
# Harshvardhan J. Pandit
""" --- Day 20: Infinite Elves and Infinite Houses ---
To keep the Elves busy,
Santa has them deliver some presents by hand, door-to-door.
He sends them down a street with infinite houses numbered sequentially:
1, 2, 3, 4, 5, a... | coolharsh55/advent-of-code | 2015/day20/infinite_elves_and_infinite_houses_part_2.py | Python | mit | 6,260 | [
"VisIt"
] | a1599d84510ffa63d09b01ba0005e6dd899f0aa124fbb5d7f3ce670e2185334c |
"""
A module to compute molecule based representations.
This module contains a variety of methods to extract features from molecules
based on the entire molecule. All of the methods included here will produce
one vector per molecule input.
"""
import numpy
import scipy
from .base import BaseFeature, InputTypeMixin
fr... | crcollins/molml | molml/crystal.py | Python | mit | 12,577 | [
"CRYSTAL"
] | bbdd1e5dc90bf648ad85367f37a10ceacbf593feae71e289674c3556e5a8fd2b |
from __future__ import print_function
from pycparser import parse_file
from minic.c_ast_to_minic import *
from minic.minic_ast import *
from minic.mutils import *
import copy
import sys
class WriteSetVisitor(NodeVisitor):
def __init__(self):
self.collection = {}
self.nestloop = {}
self.loop_conditions = {}
... | martylee/Python | CSC410-Project-1-master/check_ins/check_in1.py | Python | gpl-2.0 | 3,840 | [
"VisIt"
] | 1c44e8682d303f6c86e98818abf551917571298be61640363b9cd780daa607c0 |
#!/usr/bin/env python
import sys
import os
import re
import logging
from itertools import islice
import pysam
#################
#####CLASSES#####
#################
class DNASequence(object):
"""
An object to hold a DNA sequence with some methods to manipulate it
"""
alphabet = se... | lukud/raccoon- | ECUtils.py | Python | mit | 8,251 | [
"pysam"
] | c9983fd1ccd54237b157f4d22af6eb000e85f057cc0fc675576ab0db4c1fbbf8 |
"""
pymc.distributions
A collection of common probability distributions for stochastic
nodes in PyMC.
"""
from __future__ import division
from .dist_math import *
from numpy.random import uniform as runiform, normal as rnormal
__all__ = ['Uniform', 'Flat', 'Normal', 'Beta', 'Exponential', 'Laplace',
'T',... | LoLab-VU/pymc | pymc/distributions/continuous.py | Python | apache-2.0 | 18,106 | [
"Gaussian"
] | 9017e92986e22c91cd43362bb1807dfc5f3168c356a473dedee9cfbee7e99f98 |
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Copyright (c) 2007, Enthought, Inc.
# License: BSD Style.
# Enthought library imports.
from traits.api import Instance
from tvtk.api import tvtk
# Local imports
from mayavi.filters.filter_base import FilterBase
from mayavi.core.pipeline_info import PipelineIn... | dmsurti/mayavi | mayavi/filters/tube.py | Python | bsd-3-clause | 1,082 | [
"Mayavi"
] | a34c70f4238c7a807015d5c692dd182960926cb49f2fd9e8c346b473997bb2dc |
# Principal Component Analysis Code :
from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud
from pylab import *
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import ro... | tapomayukh/projects_in_python | classification/Classification_with_kNN/Single_Contact_Classification/Final/results/4-categories/6/test10_cross_validate_categories_6_1200ms.py | Python | mit | 4,360 | [
"Mayavi"
] | 413f9781522b8c615049487fe544e9c493ec1727e2a4d89cd7dd64eba484be1d |
"""
Insert temporary allocations and deallocations into the IR.
"""
from __future__ import absolute_import, division, print_function
from pykit.ir import interp, visit, transform, Op, Builder, ops
from pykit import types
def insert_allocations(func, env):
b = Builder(func)
# IR positions and list of ops
... | zeeshanali/blaze | blaze/compute/air/passes/allocation.py | Python | bsd-3-clause | 1,298 | [
"VisIt"
] | f0bfca1d1b98f908d53fa3cd8d9c1c20bfb1ea6e054e57ffcbc79781e535810b |
# -*- coding: utf-8 -*-
"""Score, lagrange multiplier and conditional moment tests
robust to misspecification or without specification of higher moments
Created on Thu Oct 30 00:42:38 2014
Author: Josef Perktold
License: BSD-3
Notes
-----
This module is a mixture of very general and very specific functions for
hypo... | statsmodels/statsmodels | statsmodels/stats/_diagnostic_other.py | Python | bsd-3-clause | 42,907 | [
"Brian"
] | 3d379ea8fedcf3f9d41ce0a42a5abbef326fb0e3c04fd9ae57ca7510a5cbd567 |
import campaign_lib
from campaign_lib import *
zoolspeech1={"intro":[("Burrows","Greetings. My name is Grayson Burrows; I'm looking for work."),
("Zool","You're in luck, cause I'm hiring. My name is Zool, unaffiliated Hunter."),
("Burrows","How may I be of servi... | ermo/privateer_wcu | modules/zoolcamp.py | Python | gpl-2.0 | 29,627 | [
"VisIt"
] | 743a8c7de912d5e7a6bc30fc215b0ed1bd186212145318d5ffa5c648e7c254b2 |
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"label": _("Issues"),
"items": [
{
"type": "doctype",
"name": "Issue",
"description": _("Support queries from customers."),
},
{
"type": "doctype",
"name": "Communication",
"descri... | aruizramon/alec_erpnext | erpnext/config/support.py | Python | agpl-3.0 | 1,345 | [
"VisIt"
] | eb9808a6dccd1fe44b09c162bac994202e9a543057c656b96bce3b5540945e04 |
#!/usr/bin/env python2
import sys
# check input parameters, generate INDATA list
# code placed here to avoid unneccesary vtk loading
if len(sys.argv) == 1 :
sys.stderr.write('Using standard data set, to use other data:\n'.format(sys.argv[0]))
sys.stderr.write('Usage: {0} <pdb file> <connection file> |<protna... | talavis/Protein-Data-Visualisation | project.py | Python | bsd-3-clause | 13,480 | [
"VTK"
] | 1e8a0ef0ddab7ef1c064b68b13c84d5d33c01164a5caee5bbd205c8ca0eedd4a |
""" The LSF TimeLeft utility interrogates the LSF batch system for the
current CPU and Wallclock consumed, as well as their limits.
"""
import os
import re
import time
from DIRAC import gLogger, S_OK, S_ERROR
from DIRAC.Core.Utilities.TimeLeft.TimeLeft import runCommand
from DIRAC.Core.Utilities.Os import source... | andresailer/DIRAC | Core/Utilities/TimeLeft/LSFTimeLeft.py | Python | gpl-3.0 | 9,884 | [
"DIRAC"
] | 83c4e868466df1a2c8c3fe8bddb0de787323c56e140aff10a949fca2b21645e8 |
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Andrew Dykstra <andrew.r.dykstra@gmail.com>
# Mads Jensen <mje.mads@gmail.com>
#
# License: BSD (3-clause)
from copy imp... | dimkal/mne-python | mne/evoked.py | Python | bsd-3-clause | 52,105 | [
"Mayavi"
] | 4ac61b9c6c0327ad97ee8588ca9ca5c9e9a7030bb2240921594aded42e3ef814 |
# This file is part of cclib (http://cclib.sf.net), a library for parsing
# and interpreting the results of computational chemistry packages.
#
# Copyright (C) 2006, the cclib development team
#
# The library is free software, distributed under the terms of
# the GNU Lesser General Public version 2.1 or later. You shou... | Clyde-fare/cclib_bak | src/cclib/method/__init__.py | Python | lgpl-2.1 | 694 | [
"cclib"
] | 07d0620f5fd1505f5169d9c0b453f688e5dc31be04df6f46c2fc276698097af1 |
#!/usr/bin/env python
'''
mm_tool_imagemagick.py
ImageMagick functionality with GIMP
Author:
Michael Munzert (mail mm-log com)
Modified and extended:
Stephen Geary ( sjgcit gmail com )
JLLC is José Luis Lara Carrascal
Version: $Id: mm_tool_imagemagick.py,v 1.198 2015/11/17 22:59:14 sjg Exp $
2015.11.17 JLLC - Corr... | sjgcit/gimp-imagemagick | mm_tool_imagemagick.py | Python | mit | 52,631 | [
"Gaussian"
] | f420f9851785379a404342f826234f6a5b20be76f6d638c01c26166038bbdf50 |
# $Id$
# Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
Distance plugin
===============
Time series of a selected set of distances.
Plugin class
------------
.. autoclass:: Distances
:members: wor... | pslacerda/GromacsWrapper | gromacs/analysis/plugins/distances.py | Python | gpl-3.0 | 9,943 | [
"Gromacs"
] | 5ab58dd01724798caedbba6dd6ec0b87995c9d6c7bbd3fd48c0579de623db83d |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
#
# Copyright (C) 2020 Stoq Tecnologia <http://www.stoq.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;... | stoq/stoq-server | tests/api/resources/test_client.py | Python | gpl-2.0 | 6,154 | [
"VisIt"
] | 6628d83383e30bf957c2783d6c1b0209c638e8294af1245241f3066a241afa87 |
# -*- coding: utf-8 -*-
#
# Sibyl: A modular Python chat bot framework
# Copyright (c) 2015-2017 Joshua Haas <jahschwa.com>
#
# JabberBot: A simple jabber/xmpp bot framework
# Copyright (c) 2007-2012 Thomas Perl <thp.io/about>
# $Id: d1c7090edd754ff0da8ef4eb10d4b46883f34b9f $
#
# This file is part of Sibyl.
#
# Sibyl i... | TheSchwa/sibyl | lib/sibylbot.py | Python | gpl-3.0 | 50,185 | [
"NAMD"
] | 8e3b46271ddff1992c6f0fe12ab0489c81055ec9ed75cb79567241cbe5c507c0 |
from builtins import range
import glob
import itertools
from PIL import Image
import numpy as np
import scipy.ndimage as nd
from peri.logger import log
log = log.getChild("initializers")
#=======================================================================
# Image loading functions
#=============================... | peri-source/peri | peri/initializers.py | Python | mit | 11,668 | [
"Gaussian"
] | 228f7bcbad7e6c4f9b4bdb0440beeb4dc04ee899ef204c375f0421e7d11b3ef0 |
#!/usr/bin/env python3
import os
import binascii
import unittest
from flask_assets import ManageAssets
from flask_rq import get_worker
from flask_script import Manager, Server, Command
from flask_script.commands import ShowUrls, Clean
from flask_migrate import Migrate, MigrateCommand
from server import create_app, g... | Cal-CS-61A-Staff/ok | manage.py | Python | apache-2.0 | 3,261 | [
"Brian"
] | b7363237945d055ad5f408657892c03959f0653706f40cef254ac1f987fa2fbe |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Plotter for 2D slices of GEOS-Chem output NetCDFs files.
NOTES
---
- This is setup for Cly, but many other options (plot/species) are availible
by just updating passed variables/plotting function called.
"""
import AC_tools as AC
import numpy as np
import matplotli... | tsherwen/AC_tools | scripts/2D_GEOSChem_slice_subregion_plotter_example.py | Python | mit | 2,934 | [
"NetCDF"
] | f86b0d6de8b74f6790afa0b326eb5f55b45887a91b28e0be61bf716971611beb |
#!/usr/bin/env python
# encoding: utf-8
'''
Licensed under a 3-clause BSD license.
Revision History:
Initial Version: 2016-02-23 14:13:28 by Brian Cherinka
2016-02-23 - made some test sample forms with wtforms+sqlalchemy - B. Cherinka
2016-03-02 - generalized the form to build all forms - B. Cherinka
'''
... | bretthandrews/marvin | python/marvin/tools/query/forms.py | Python | bsd-3-clause | 15,250 | [
"Brian"
] | 1f8bd0fe91dbc5e93ea6734ba76e095853349e8a4b4b0b9a747f6b1c9601846d |
#
# Copyright 2018-2021 Jan Griesser (U. Freiburg)
# 2014, 2020-2021 Lars Pastewka (U. Freiburg)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | libAtoms/matscipy | tests/test_ewald.py | Python | lgpl-2.1 | 13,203 | [
"ASE",
"CRYSTAL",
"Matscipy"
] | 79725cfb2d578bdeb4f150c56437f863d57691add0ab66ff8aeb0032859e28f2 |
#! /usr/bin/env python
# Last Change: Sun Jul 22 12:00 PM 2007 J
__doc__ = """This example shows how to do pdfestimation for one dimensional
data. It estimates a Gaussian mixture model for several number of components,
and it determines the "best" one according to the Bayesian Information
Criterion.
It uses old faitf... | jhmadhav/pynopticon | src/em/examples/pdfestimation1d.py | Python | gpl-3.0 | 2,503 | [
"Gaussian"
] | 5e9c6486eff87848cb465a9b9eb46e40ba5a878a43760a45e664327e91586d71 |
import outputcontroller
from mapgenerator import MapGenerator
class Map:
def __init__(self, level, temp_map, startX, startY, endX, endY):
self._map = temp_map
self._width = len(self._map[0])
self._heigth = len(self._map)
self._level = level
self._startX = startX
se... | V3n0M93/Rogue-like-like | src/dungeon.py | Python | gpl-2.0 | 3,170 | [
"VisIt"
] | 951e5374e4dc665a680b85a298af978ffc2ee219ac6fe493d016826e211ac452 |
# -*- coding: utf-8 -*-
import numpy as np
from numpy.testing import assert_allclose
import pytest
import abel
def test_direct_shape():
"""Ensure that abel.direct.direct_transform() returns an array of the correct shape"""
n = 21
x = np.ones((n, n))
recon = abel.direct.direct_transform(x, direction... | DanHickstein/pyBASEX | abel/tests/test_direct.py | Python | gpl-2.0 | 2,716 | [
"Gaussian"
] | 1d027a56dd7a53d6e971f4381660663d38bc6419ff13ee68dac1460e7775e05a |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | SKIRT/PTS | do/magic/segments_to_regions.py | Python | agpl-3.0 | 2,505 | [
"Galaxy"
] | 8fc35f0e6ea359d81413b47020da0d8df6873a7b13a8b0a7d2e01e96c2b597c1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.