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
class Solution(object): def updateMatrix(self, matrix): """ :type matrix: List[List[int]] :rtype: List[List[int]] """ m, n = len(matrix), len(matrix[0]) visit = [[0] * n for i in xrange(m)] dist = [[0] * n for i in xrange(m)] queue = collections.deque(...
zqfan/leetcode
algorithms/542. 01 Matrix/solution.py
Python
gpl-3.0
909
[ "VisIt" ]
bb102a4de660e61963c7e77f51c3c63f6333f1c48b9afbf845781921fb281259
#!/usr/bin/env python3 # Copyright (c) 2018 TurboCoin # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Verify commits against a trusted keys list.""" import argparse import hashlib import logging import os import subprocess impor...
Phonemetra/TurboCoin
contrib/verify-commits/verify-commits.py
Python
mit
8,147
[ "Octopus" ]
a6e5429a8bb8bfdbdcd6267de1c0110a8b64d099d6fb9439630fb14e21f310d2
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File : BtLog.py Author : Dominik R. Laetsch, dominik.laetsch at gmail dot com """ from __future__ import division import sys def error(message, *argv): if argv is None: sys.exit(error_d[message]) else: sys.exit(error_d[message] % (...
DRL/blobtools
lib/BtLog.py
Python
gpl-3.0
6,347
[ "BLAST" ]
2af2ed0db23e3c6940a275a40e7146f94d781dff6f6b3fe7b0220af08c67d4b4
import PySide.QtGui as QtGui import PySide.QtCore as QtCore import GravitionalObject as go class Firefly(go.GravitationalObject): def __init__(self): super(Firefly, self).__init__() self._acc = QtCore.QPointF() self._vel = QtCore.QPointF() self._pos = QtCore.QPointF() ...
iglennrogers/swarm_pyside
Firefly.py
Python
bsd-2-clause
2,116
[ "Firefly" ]
f90d531bd914d18bf3dba481311461c973e60451f6e5b454625e52fbb3f9a32a
import urllib import galaxy.model from galaxy.model.orm import * from base.twilltestcase import * class TestHistory( TwillTestCase ): def test_000_history_options_when_not_logged_in( self ): """Testing history options when not logged in""" self.logout() check_str = 'logged in</a> to store ...
dbcls/dbcls-galaxy
test/functional/test_history_functions.py
Python
mit
30,269
[ "Galaxy" ]
09b3659b694b24e0e05f76c47f0eb4fd7912eacefb7e6a62ee202fa053c9e801
from dateutil.relativedelta import relativedelta from django.utils import timezone from edc_constants.constants import FAILED_ELIGIBILITY, OFF_STUDY, SCHEDULED, POS, YES, NO, NEG, NOT_APPLICABLE, UNK from edc_meta_data.models import RequisitionMetaData from edc_appointment.models import Appointment from td_maternal.mo...
TshepangRas/tshilo-dikotla
td_maternal/tests/test_maternal_status_helper.py
Python
gpl-2.0
11,983
[ "VisIt" ]
e01ea28b0451843a8f060f0edc3bbb83838fc44b8c999e9d62bd2987d2c7a5f4
""" RPCClient object is used to create RPC connection to services """ __RCSID__ = "$Id$" from DIRAC.Core.DISET.private.InnerRPCClient import InnerRPCClient class _MagicMethod( object ): """ This object allows to bundle together a function calling an RPC and the remote function name. When this object i...
andresailer/DIRAC
Core/DISET/RPCClient.py
Python
gpl-3.0
3,749
[ "DIRAC" ]
98b3fd69d322ac49752e6029d0b9820472f3a1955d124f99dbcfaa6e3e6af912
# -*- coding: utf-8 -*- # # test_connect_array_fixed_outdegree.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST 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 versi...
sanjayankur31/nest-simulator
testsuite/pytests/test_connect_array_fixed_outdegree.py
Python
gpl-2.0
3,365
[ "NEURON" ]
a147b0d857b5829a84430b7f94cc7f659aa24a6eebb7963a908cd661fd284fc2
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/tests/utils/test_StoreLoadWidgetState.py
Python
lgpl-2.1
3,015
[ "MOOSE" ]
5cf335de8666f49e51bcf831d2790f5953ebff1c9eb5a722bd1a376abd1043e0
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/dmrgscf/nevpt_mpi.py
Python
apache-2.0
19,113
[ "PySCF" ]
6fb4dd95b37450a28438967df2442cb0d4ad16ac302d380c054e77ccad5996c0
#!/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...
thaim/ansible
lib/ansible/modules/network/avi/avi_vsdatascriptset.py
Python
mit
5,112
[ "VisIt" ]
da2771634ccdf244dd7a20914cabc9351935c008b3b10a795a7b4f39a817ad96
import logging import os.path import random import tempfile import time from datetime import datetime from django.conf import settings from selenium import webdriver from selenium.common.exceptions import NoSuchElementException, NoSuchWindowException, StaleElementReferenceException from selenium.webdriver.common.actio...
django-functest/django-functest
django_functest/funcselenium.py
Python
bsd-3-clause
27,455
[ "VisIt" ]
25bd70f6bc2ddff7c49c2ac1d06babcab8a919ec5a80dd4692c552ae63368df0
from os import listdir, system import shutil, os from sys import argv from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord import pysam from tqdm import * from collections import Counter #[set working directory] os.chdir('..') #[read position files] def read_position(position_directory...
bvalot/panISa
script/3_extract_seq.py
Python
gpl-3.0
6,190
[ "pysam" ]
7ba1148d93db15c92cfaa4e55376772a591d7f085279238595ad10abb78b322a
# MDPOW: solvation.py # 2021 Alia Lescoulie from typing import List import numpy as np import pandas as pd import MDAnalysis as mda from MDAnalysis.lib.distances import capped_distance from .ensemble import EnsembleAnalysis, Ensemble, EnsembleAtomGroup import logging logger = logging.getLogger('mdpow.dihedral') ...
Becksteinlab/MDPOW
mdpow/analysis/solvation.py
Python
gpl-3.0
2,732
[ "MDAnalysis" ]
52b10f6ef16dceac41fee30c350be34dde094d1c94172250cb571f83a8f8f759
#!/usr/bin/env python # -*- coding=utf-8 -*- """ Example of DOS modulation Apply moduleDOS module """ from __future__ import division, print_function import moduleDOS from pymatgen.io.vaspio.vasp_output import Vasprun __author__ = "Germain Salvato-Vallverdu" __email__ = "germain.vallverdu@univ-pau.fr" __licence__ =...
gVallverdu/myScripts
VASP/scofield.py
Python
gpl-2.0
668
[ "pymatgen" ]
5ea3736e012c19682a12673b86696481a4a2014f61d88a56f7528dc184594418
# -*- coding: utf-8 -*- """ This module implements a Python-to-SQLAlchemy syntax parser. Allows the SQLAlchemy data-layer to seamlessy respond to a Python-like query. :copyright: (c) 2013 by Andrew Mleczko and Tomasz Jezierski (Tefnet) :license: BSD, see LICENSE for more details. """ import re imp...
lingfish/eve-sqlalchemy
eve_sqlalchemy/parser.py
Python
bsd-3-clause
8,184
[ "VisIt" ]
43ec045060380f715a3923479546aa5c85764a72b28b9a1b1cae7aae607051b7
""" Cosmology Regression Example ---------------------------- Figure 8.11 A Gaussian process regression analysis of the simulated supernova sample used in figure 8.2. This uses a squared-exponential covariance model, with bandwidth learned through cross-validation. """ # Author: Jake VanderPlas # License: BSD # The ...
nhuntwalker/astroML
book_figures/chapter8/fig_gp_mu_z.py
Python
bsd-2-clause
2,798
[ "Gaussian" ]
104a329cc3be94de7cc53433672f56db86e674672142fc345b5922209f4b042b
import PythonQt from PythonQt import QtCore, QtGui, QtUiTools from ddapp import applogic as app from ddapp import visualization as vis from ddapp.debugVis import DebugData from ddapp import transformUtils from ddapp.timercallback import TimerCallback from ddapp.simpletimer import FPSCounter from ddapp import objectmode...
gizatt/director
src/python/ddapp/affordancepanel.py
Python
bsd-3-clause
5,243
[ "VTK" ]
65fa8717166b4fb06d5a24517c76ca977501589802766d6a36e8fdb3a218bebb
from skimage._shared import testing from skimage._shared.testing import assert_array_equal, assert_allclose import numpy as np from skimage.data import camera from skimage.util import random_noise, img_as_float def test_set_seed(): seed = 42 cam = camera() test = random_noise(cam, seed=seed) assert_a...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/skimage/util/tests/test_random_noise.py
Python
gpl-3.0
8,021
[ "Gaussian" ]
cf2dc2d55c4563341a30a5534257340071a5d68e36ab4fc960cf78f46932b80d
from itertools import cycle import numpy from matplotlib import pyplot from skimage import filters class GANDemoVisualizer: def __init__(self, title, l_kde=100, bw_kde=5): self.title = title self.l_kde = l_kde self.resolution = 1. / self.l_kde self.bw_kde_ = bw_kde self.fi...
frombeijingwithlove/dlcv_for_beginners
random_bonus/gan_n_cgan_2d_example/visualizer.py
Python
bsd-3-clause
3,884
[ "Gaussian" ]
6a89aead07152a6f233c760bf4cb74254212c109ebd38b36f458c589ce2b7fd4
import math from ..libmp.backend import xrange class QuadratureRule(object): """ Quadrature rules are implemented using this class, in order to simplify the code and provide a common infrastructure for tasks such as error estimation and node caching. You can implement a custom quadrature rule by ...
ojengwa/sympy
sympy/mpmath/calculus/quadrature.py
Python
bsd-3-clause
38,282
[ "Gaussian" ]
f8e2e7d120d464f3665fb9b2bec3ebd7916fbe51402afce2e741cb84f25ee319
from PyQt5.QtCore import Qt from PyQt5.QtGui import QDropEvent from PyQt5.QtTest import QTest from PyQt5.QtWidgets import QApplication from tests.QtTestCase import QtTestCase from urh.controller.dialogs.ModulatorDialog import ModulatorDialog from urh.util.Logger import logger class TestModulatorGUI(QtTestCase): ...
jopohl/urh
tests/test_modulator_gui.py
Python
gpl-3.0
7,356
[ "Gaussian" ]
70641ccccee15b606eb9ceb0ee2256da2458947a0e9b305736e5268c8db57b42
import numpy, scipy import pyturbo as p ###################################### # pour lire un fichier surface SNC path_snc = "indiquer.snc" r = p.LecteurSNC(file_path = path_snc) r.lire_parametres() r.get_infos_temporelles() # ca affiche des trucs r.get_infos_variables() # ca affiche d'autres trucs # on peut lire le...
aurmarsan/pyturbo
exemples/exemple-lecteur-fnc-snc.py
Python
mit
3,584
[ "VTK" ]
ed3b400e858b328a2d30bd512000ea0fdb65404648e596f11c8d6eaa87370c66
#!/usr/bin/python # 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, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed...
feanil/ansible-modules-core
cloud/amazon/elasticache.py
Python
gpl-3.0
21,293
[ "Dalton" ]
55e3e9236f16d7524e40552d8f612ab0e17fc37f9c4dd1258a1df9209bf450d7
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import add_days, getdate, cint, cstr from frappe import throw, _ from erpnext.utilities.transaction_base import Transa...
manqala/erpnext
erpnext/maintenance/doctype/maintenance_schedule/maintenance_schedule.py
Python
gpl-3.0
9,320
[ "VisIt" ]
e5f68348cc6c7c29cc1dce1bb18dc364cd5a13b5934e47e4d2c7104e3b4b72db
#!/usr/bin/env python # encoding: utf-8 # === IMPORTANT ==== # NOTE: In order to support non-ASCII file names, # your system's locale MUST be set to 'utf-8' # CAVEAT: DOESN'T work with proxy, the underlying reason being # the 'requests' package used for http communication doesn't seem # to work ...
rocky1001/bypy
bypy.py
Python
mit
115,684
[ "VisIt" ]
3646ead66d90677aa9c3cfa94bb36793f2ddf8c562fd73e04ed8899cade9f7e6
""" A buffered iterator for big arrays. This module solves the problem of iterating over a big file-based array without having to read it into memory. The `Arrayterator` class wraps an array object, and when iterated it will return sub-arrays with at most a user-specified number of elements. """ from __future__ impor...
LumPenPacK/NetworkExtractionFromImages
win_build/nefi2_win_amd64_msvc_2015/site-packages/numpy/lib/arrayterator.py
Python
bsd-2-clause
7,256
[ "NetCDF" ]
578384c995aba28fa1b2501df994010e42c3be1375ee75bcf0b76f4f8e4cb773
# -*- coding: utf-8 -*- # # Copyright (c) 2020, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Parser for Formatted Checkpoint files""" from __future__ import print_function import re import numpy from cclib.p...
ATenderholt/cclib
cclib/parser/fchkparser.py
Python
bsd-3-clause
13,385
[ "Gaussian", "Q-Chem", "cclib" ]
6859b64298716ba6cab93a27159c9d2a5047c86ecf9f090c1b61b191883330ac
# 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...
BackupTheBerlios/espressopp
src/Exceptions.py
Python
gpl-3.0
2,439
[ "ESPResSo" ]
b147aa5be0cc248462bc4d30383313fa4cf85461c2d8a26d632535d886e385ce
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # Copyright 2010-2011 Orca Team # Copyright 2011-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 ...
pvagner/orca
src/orca/scripts/web/braille_generator.py
Python
lgpl-2.1
6,821
[ "ORCA" ]
de7c028906d5647ec4ea921ea0d7d6873c2ad20adf8827bafbe389c142962d2a
# -*- coding: utf-8 -*- """ sphinx.writers.texinfo ~~~~~~~~~~~~~~~~~~~~~~ Custom docutils writer for Texinfo. :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import string import textwrap from os import path from docutils imp...
SurfasJones/icecream-info
icecream/lib/python2.7/site-packages/sphinx/writers/texinfo.py
Python
mit
45,530
[ "VisIt" ]
c85791bf57b02bb19f2b7dcb4ebe88b409b0e62ad3292e10ef4dfe91d8c5f821
#!/usr/bin/python import sys import fnmatch import os import glob import shutil import argparse import time import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') import pylab as pl from matplotlib.ticker import MultipleLocator, FormatStrFormatter currentdir = os.getcwd() parser ...
ederc/LA-BENCHER
scripts/plot.py
Python
gpl-3.0
14,891
[ "Gaussian" ]
27006db25e33d272f897d467c6661e5079d099ffb1cd0ff7ce6d512987f86f29
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2002-2007 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; ...
beernarrd/gramps
gramps/gen/filters/rules/place/__init__.py
Python
gpl-2.0
2,255
[ "Brian" ]
f2cbbf7757bc9b2afb4c65a077e59286b9ece8878d8102e0a836ed225f80de4d
#!/usr/bin/env $SCHRODINGER/run from schrodinger.application.macromodel.input import * import schrodinger.application.macromodel.utils as mmutils import schrodinger.structure as struct import schrodinger.structutils.analyze as ana import os, glob import multiprocessing as mp from multiprocessing import Pool def bmin...
ericchansen/q2mm
smiles_to_catvs/scripts/finish.py
Python
mit
1,637
[ "MacroModel" ]
3c43b9fd583f44fcd1c14e7de12a2c3cd9f88f77520a9874a84252d6c062c1fc
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
skosukhin/spack
var/spack/repos/builtin/packages/libxc/package.py
Python
lgpl-2.1
3,469
[ "CP2K", "Octopus" ]
652278e385a4fcb16422c5caa597bfdea6e89e263875718fa90c33a04e448466
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
yugangw-msft/azure-cli
src/azure-cli/azure/cli/command_modules/appservice/commands.py
Python
mit
28,002
[ "ASE" ]
82489f9db5424a5a229e73d732fbf12583b0c11bf46a13070b46787ac245aa48
# Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from __future__ import with_statement import collections import errno import filecmp import os.path import re import tempfile import sys # A minimal memoizing d...
lidabing/xgyp
gyp/pylib/gyp/common.py
Python
bsd-3-clause
19,046
[ "VisIt" ]
47348cab62af28f0ee3be5533472b77611fda80434bfbef7770c94b78293dafe
#!/usr/bin/env python import sys from collections import Iterable from shlex import split as shlex_split from collections import Iterable, defaultdict import requests from progressbar import Bar, Counter, ETA, \ FileTransferSpeed, Percentage, \ ProgressBar, Timer, Unknow...
XiaoJianfeng/ibl
biomart.py
Python
lgpl-3.0
27,729
[ "Bioconductor" ]
a429455f8de00f880345d19caf5e45b8d796524903688e4983290af9da6762d5
from __future__ import absolute_import import cython cython.declare(PyrexTypes=object, Naming=object, ExprNodes=object, Nodes=object, Options=object, UtilNodes=object, LetNode=object, LetRefNode=object, TreeFragment=object, EncodedString=object, error=object, warning=object...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Cython/Compiler/ParseTreeTransforms.py
Python
apache-2.0
117,833
[ "VisIt" ]
eed090dd1f92c55f9f6098043488ebed8c1fde4e9addb8a9acd5fdb3e57cc8d0
#! Tests out the CG solver with CPHF Polarizabilities import time import numpy as np import psi4 #psi4.set_output_file("output.dat") # Benzene mol = psi4.geometry(""" 0 1 O 0.000000000000 0.000000000000 -0.075791843589 H 0.000000000000 -0.866811828967 0.601435779270 H ...
rmcgibbo/psi4public
tests/psi4numpy/cphf/input.py
Python
lgpl-3.0
2,690
[ "Psi4" ]
dc9bc51af6c450b98a702f3bdadb6888708397f15db9375b375ac4ac460c99ff
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # extcertaction - Handle user input from external certificate sign up # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of...
heromod/migrid
mig/cgi-bin/extcertaction.py
Python
gpl-2.0
1,177
[ "Brian" ]
9c9683f578f2c35113f41f37ac59ee90e73622b80107414604c3c7cf835b3f21
import os import pickle import random import re import string import warnings import webbrowser import twitter # pip install python-twitter import sexmachine.detector as gender # pip install SexMachine from requests_oauthlib import OAuth1Session from unidecode import unidecode # pip...
YesWeTech/whoIsJ
scripts/analyze.py
Python
mit
10,827
[ "VisIt" ]
78e449235475a65428f24cbb4effc4e672b9f46099808c71737b7b228770ca85
import os import unittest import random import math import tempfile import time import numpy from __main__ import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * # # TargetRegistrationError # class TargetRegistrationError(ScriptedLoadableModule): """Uses ScriptedLoadableModule base class, available...
tokjun/FiducialRegistrationTest
TargetRegistrationError/TargetRegistrationError.py
Python
bsd-3-clause
9,022
[ "VTK" ]
c80df622b5cb3348302051b6594497bd2601820afa1362fb98c60c0171d90be3
import os import re from bs4 import BeautifulSoup from decimal import Decimal as D from ..base import BaseAccountScraper class CoastCapitalScraper(BaseAccountScraper): scrape_code = 'coast_capital' default_currency = 'CAD' def login(self): self.browser.visit('https://www.coastcapitalsavings.com...
elbaschid/geldmaschine
geldmaschine/scrapers/ca/coast_capital.py
Python
mit
1,853
[ "VisIt" ]
a5c000a9cf4fdbc7bb0f23632aa148ec432740d95661051eeb4e5ba54ce87fec
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Indicator.data_type' db.add_column('profiles_indicator', 'data_type', self.gf('django.db.m...
216software/Profiles
communityprofiles/profiles/oldmigrations/0024_auto__add_field_indicator_data_type.py
Python
mit
12,944
[ "MOE" ]
d441b1be6263e3221dfc7795097fbcda44ddec23c6438d6653da3def6683fd69
############################# # evaluate alignment software # include a cfg file on the command line ############################# import ConfigParser as configparser import datetime import os import sys import bio import config import matplotlib.pyplot as plt cfg = configparser.ConfigParser() #config('reference_pr...
supernifty/mgsa
mgsa/evaluate.py
Python
mit
6,809
[ "Bowtie" ]
47618c259f9c525b29f2ec947ce1e4f7970b1e05e4485c6a1f22608b4f1d0f15
"""A simple grid plane module. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Enthought library imports. from traits.api import Instance from traitsui.api import View, Group, Item # Local imports from mayavi.core.module import Module from mayav...
dmsurti/mayavi
mayavi/modules/grid_plane.py
Python
bsd-3-clause
3,923
[ "Mayavi", "VTK" ]
2069424a51a659ea8569fb50217400b034813c02c5a31aaae726f25c58e80046
######################################################################## # $HeadURL $ # File: ForwardDISETTests.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/04/18 09:23:05 ######################################################################## """ :mod: ForwardDISETTests ======================= ....
yujikato/DIRAC
src/DIRAC/RequestManagementSystem/Agent/RequestOperations/test/ForwardDISETTests.py
Python
gpl-3.0
2,576
[ "DIRAC" ]
818fb34237b6eede7a59de0ff6439404befd185b32a999d99967a4897857403d
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
zenoss/ZenPacks.altea.SQLServer
setup.py
Python
gpl-2.0
3,300
[ "VisIt" ]
9b234ea3723bf9f368239e49de3ac83d158e2763cc2982f1a7e63ef66b26ca13
#!/usr/bin/env python import cPickle as pkl import glob import os.path as pth from pdb import set_trace import io import socket import numpy as np import scipy from jinja2 import Template import flask from flask import Flask, request, render_template, send_file, jsonify, url_for, send_from_directory app = Flask(__nam...
mcogswell/cnn_treevis
app.py
Python
mit
6,326
[ "NEURON" ]
98648a5f65904730603c5403cbbf5fa154ac637403b9041530955c7519cdca4f
""" Logging """ __RCSID__ = "$Id$" import logging import os from DIRAC import S_ERROR from DIRAC.FrameworkSystem.private.standardLogging.LogLevels import LogLevels from DIRAC.Core.Utilities.LockRing import LockRing from DIRAC.Resources.LogBackends.AbstractBackend import AbstractBackend class Logging(object): """...
fstagni/DIRAC
FrameworkSystem/private/standardLogging/Logging.py
Python
gpl-3.0
18,880
[ "DIRAC" ]
bfa8b00c570571f67247be7e0ccca3d085328b9c837efd5e6d4711ef09774ec3
#!/usr/bin/env python3 # -*-coding:Utf-8 -* """Use MCMC to find the stellar mass halo mass relation. Based on the Behroozi et al 2010 paper. Use a parametrization of the SHMR, plus a given HMF to find the expected SMF and compare it to the observed SMF with its uncertainties using a likelihod maximisation. Started o...
Gorbagzog/StageIAP
MCMC_SHMR_main_clean_iterations.py
Python
gpl-3.0
49,098
[ "Gaussian", "TINKER" ]
fb9d6dba0a9916313211c35c81bc8a239ceb055f09a586e3041b2c4d12a3e8dd
""" Acceptance tests for the Import and Export pages """ from nose.plugins.attrib import attr from datetime import datetime from flaky import flaky from abc import abstractmethod from bok_choy.promise import EmptyPromise from .base_studio_test import StudioLibraryTest, StudioCourseTest from ...fixtures.course import...
JioEducation/edx-platform
common/test/acceptance/tests/studio/test_import_export.py
Python
agpl-3.0
16,914
[ "VisIt" ]
a38f4d9784f9918e96dd8025f6f6d70f3ae33efcd1c3154aed5b1247f8fdaf6d
# Copyright (C) 2012 Olaf Lenz # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ESPR...
icimrak/espresso
config/gen_featureconfig.py
Python
gpl-3.0
3,582
[ "ESPResSo" ]
7d22b1d180a2c65fc65e1d077de8921f0a98945b7f7f22bdda5df5588de1c93b
# -*- coding: utf-8 -*- # modRana - shared utility classes and methods import threading import os import sys import subprocess import re import time from core import constants from core import qrc if qrc.is_qrc: import pyotherside import logging log = logging.getLogger("core.utils") REQUEST_TOKEN_URL = 'https:...
M4rtinK/tsubame
core/utils.py
Python
gpl-3.0
15,120
[ "VisIt" ]
b7bf016e0ffc73ccf78d3031aceacd396518a8e05a7a7afd1525169f55046ca5
from asap3 import * from ase.lattice.cubic import FaceCenteredCubic from asap3.testtools import ReportTest from asap3.md.velocitydistribution import MaxwellBoltzmannDistribution from asap3 import mpi from ase.data import reference_states import numpy as np import time import sys debug = 0 if debug == 1: DebugOutpu...
auag92/n2dm
Asap-3.8.4/Test/Timing/OpenKIM_Profiling.py
Python
mit
3,171
[ "ASE" ]
8c174b4f430b0ac1a58e1342a625c0e562e23426e55e102845fc757f6cf2a5ba
#!/usr/bin/python3 # -*- coding: utf-8 -*- # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distrib...
ladyteam/ramanpy
raman_fd.py
Python
gpl-2.0
29,898
[ "ABINIT", "CASTEP", "CP2K", "CRYSTAL", "VASP", "phonopy" ]
9715a4a7862dc789466277282f83078e3740a3efc1acfe2c6a1a7798505d2037
# -*- coding: utf-8 -*- """ CreateInflowFileFromERAInterimRunoff.py RAPIDpy Created by Alan D. Snow, 2015 Adapted from CreateInflowFileFromECMWFRunoff.py. License: BSD-3-Clause """ from netCDF4 import Dataset from .CreateInflowFileFromGriddedRunoff import \ CreateInflowFileFromGriddedRu...
erdc-cm/RAPIDpy
RAPIDpy/inflow/CreateInflowFileFromERAInterimRunoff.py
Python
bsd-3-clause
1,861
[ "NetCDF" ]
d1fabb9a72611d2cc4a140fbb634686072b193facc6aed893f8360c7544913f7
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Test single point time-dependent logfiles in cclib""" import os import unittest import numpy from skip import skipFo...
gaursagar/cclib
test/data/testTD.py
Python
bsd-3-clause
4,519
[ "ADF", "Dalton", "cclib" ]
26622e1d02be2c0fdced7bc722325cea45ed9d81368e8048fed762f9609c4c4a
import numpy as np import pandas as pd class NamingScheme: def __init__(self): self.subfix_mean = "_mean" self.subfix_error = "_error" self.special_columns = set(['AcceptRatio', 'BlockCPU', 'BlockWeight' , 'Efficiency', 'TotalSamples', 'TotalTime', 'Variance', 'LocalEnergy']) # e...
Paul-St-Young/QMC
dmc_database_analyzer.py
Python
mit
11,314
[ "QMCPACK" ]
4d3b30ccb19a95f0da2b1fd5654f7c0210bcffa7121e816c3425ab27ae521147
from .. import upsample import numpy as np import itertools def gaussian_centered(imsize, upsample_factor=1): """ Create a narrow Gaussian with peak at the center of the image if dims are odd or center+1 if dims are even """ if imsize % 2 == 1: xx,yy = np.meshgrid(np.linspace(-5,5,imsize),n...
keflavich/image_registration
image_registration/fft_tools/tests/test_upsample.py
Python
mit
13,842
[ "Gaussian" ]
489a2de5928ab38c174b255844b828f4916c6e7798bcde94ed6fd85825771c11
# Encoding: utf-8 # Copyright (C) 2012-2016 Olivier Castany # This program is free software (see LICENCE file) """Berreman4x4: module implementing Berreman's 4x4 matrix method. See file "documentation.pdf" """ import numpy import scipy.linalg, scipy.interpolate from numpy import pi, newaxis import matplotlib, matpl...
Berreman4x4/Berreman4x4
Berreman4x4.py
Python
gpl-3.0
69,272
[ "CRYSTAL", "Gaussian" ]
46a85aaf6a78fcf3e4c3e90011ed2ac3eb67a7d209a3d7ceb38a7ff586c10bfd
#!/usr/bin/env python from tempfile import TemporaryFile, SpooledTemporaryFile import os, sys, re, socket, time, pickle, csv, uuid, subprocess, argparse, decimal, select, platform, signal class Debugger: """ The Debugger class is the entry point to our stack tracing capabilities. It determins which debugger to inhe...
katyhuff/moose
scripts/memory_logger.py
Python
lgpl-2.1
48,905
[ "MOOSE" ]
6672f1fe83b4b2c28013a380427601baa767abe690c323877c5a71cc286630bc
#!/usr/bin/env python from __future__ import print_function import os import itertools import collections import regex as re import json import gzip import sys import logging import time import multiprocessing import tempfile from io import BufferedReader from functools import partial import toolz as tz from .barcod...
roryk/umis
umis/umis.py
Python
mit
47,603
[ "pysam" ]
f75eb311167a70c3f7e9793fff6f76d6c2ce670baf31032bda98b69f81c10535
# -*- coding: utf-8 -*- # # Python Flot Utils documentation build configuration file, created by # sphinx-quickstart on Thu Feb 17 16:27:52 2011. # # 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 fil...
unbracketed/python-flot-utils
docs/conf.py
Python
mit
8,183
[ "Brian" ]
07a4c1ad64115db634b830474463b1c2d86d80d94890b4ff4f1a8cd7eedbf61f
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: #...
GeoscienceAustralia/gdf
utils/agdc2gdf.py
Python
apache-2.0
38,712
[ "NetCDF" ]
e07055c335999148e0b8f5274519d5ec5a966ae68981839185ef8aebde2e0215
#!/usr/bin/python import httplib2 import os import sys from apiclient.discovery import build from apiclient.errors import HttpError from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from oauth2client.tools import argparser, run_flow def deletep(playlistid): print "In dele...
ankit96/flockathon
deleteplaylist.py
Python
mit
1,728
[ "VisIt" ]
d414bfb64c24081416cd600a02b55c68a0efeaccdf59c376f520212e59d158b6
#=============================================================================== # LICENSE XOT-Framework - CC BY-NC-ND #=============================================================================== # This work is licenced under the Creative Commons # Attribution-Non-Commercial-No Derivative Works 3.0 Unported Li...
SMALLplayer/smallplayer-image-creator
storage/.xbmc/addons/net.rieter.xot.smallplayer/resources/libs/regexer.py
Python
gpl-2.0
7,502
[ "VisIt" ]
9704c35359935b71b5d56aa1db17f5cd3c2e5ca814efc5b14db668fba2a697df
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Peter Eastman, Robert McGibbon # Contributors: Kyle A. Beaucha...
mpharrigan/mdtraj
mdtraj/core/topology.py
Python
lgpl-2.1
48,802
[ "MDTraj", "OpenMM", "VMD" ]
66cae00b7bd52ce14cf03c3e533d283d628b42bb79f0f5375fefdb8b96dcd8b4
# -*- coding: utf-8 -*- ######################################################################### ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2014 Upinder S. Bhalla. and NCBS ## It is made available under the terms of the ## GNU Lesser General ...
dilawar/moose-core
tests/core/test_Xreacs3.py
Python
gpl-3.0
3,980
[ "MOOSE" ]
d15dcf41d184d885c760e1be295f66685f6035c311cd0ed7cf3f31abfc83da1b
## # Copyright 2009-2021 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
hpcugent/easybuild-easyblocks
easybuild/easyblocks/o/openfoam.py
Python
gpl-2.0
26,760
[ "ParaView" ]
4cb5da489c622d53c92b0298989420040fdc8fd0ed7547e986984eaf41a4fe25
# This file is part of cldoc. cldoc 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, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the ...
jordonbiondo/cldoc
cldoc/tree.py
Python
gpl-2.0
16,435
[ "VisIt" ]
99d7d0c93f238bf0d2f5e0980f8d8d4e915618d9876243ffd65a53d78fde67c8
#!/usr/bin/python # coding: utf-8 #---------------------------------------------------------------- # Author: Max Geislinger # Description: este algoritmo descreve a sétima implementação de OpenCV # Function: Digital Image -> Transform HSV -> Binary Image -> Erosion Binary -> Find area -> Find Coordinates # Function ...
xamgeis/RoboPi
MOVIMENTO_HORIZONTAL.py
Python
mit
9,598
[ "Gaussian" ]
fa5870cf7e844fda91ae832be4c5679c7b64d5111328690a3bc75c82c89b1962
import pytest from ethereum import tester from ethereum import utils from ethereum._solidity import get_solidity serpent_contract = """ extern solidity: [sub2:[]:i] def main(a): return(a.sub2() * 2) def sub1(): return(5) """ solidity_contract = """ contract serpent { function sub1() returns (int256 y) {} ...
holiman/pyethereum
ethereum/tests/test_solidity.py
Python
mit
23,800
[ "MOOSE" ]
7cf79511f6e460c070982f46befdc9d32742b7dc4fe6a1d703d994276b7f2d9c
import logging from cStringIO import StringIO from math import exp from lxml import etree from path import path # NOTE (THK): Only used for detecting presence of syllabus import requests from datetime import datetime import dateutil.parser from lazy import lazy from opaque_keys.edx.locations import Location from xmod...
geekaia/edx-platform
common/lib/xmodule/xmodule/course_module.py
Python
agpl-3.0
42,207
[ "VisIt" ]
4a22e0e194bee1904f894e865996b4cb83e5b02d4212f6ebec5f6dcd1f4c40ea
""" This script contains miscellaneous functions. """ from scipy.interpolate import interp1d import numpy as n from os.path import join import os kla=lambda ll :2.659 *(-2.156+1.509/ll-0.198/ll**2+0.011/ll**3 ) + 4.05 klb=lambda ll :2.659 *(-1.857+1.040/ll)+4.05 def CalzettiLaw(ll): """ Calzetti (2000) extinction...
JohanComparat/pySU
galaxy/python/MiscellanousFunctionsLibrary.py
Python
cc0-1.0
556
[ "Galaxy" ]
6dce283bd175bf9a5565483e348f3767b0e821fd97e548db0829b1155e9e3409
# @ImagePlus inputImage # @double sigma # @OUTPUT ImagePlus outputImage from ij import IJ from ij.plugin import Duplicator, ImageCalculator backgroundImage = Duplicator().run(inputImage) IJ.run(backgroundImage, "Gaussian Blur...", "sigma=" + str(sigma)) outputImage = ImageCalculator().run("Subtract create 32-bit", inpu...
imagej/imagej-omero
scripts/Subtract_Background.py
Python
gpl-2.0
378
[ "Gaussian" ]
742efda08747e88b53f72ddbc146a717fba3b9adc8c3cd304f9395f8022ee640
from __future__ import print_function import numpy as np import inspect import sys, pdb from . import Utils from . import Optimizers from . import BuiltinStepMethods """ This module defines the fundamental objects used for building models and maximising/sampling from their posterior distributions. Namely: Sampler ...
tomevans/pyhm
pyhm/ModelObjs.py
Python
gpl-2.0
12,567
[ "Gaussian" ]
4cb86daa6be9259ccda80b302815bd194d0365c71a8c510928a125bf99ff2b3a
## \file ## \ingroup tutorial_pyroot ## Example of function called when a mouse event occurs in a pad. ## When moving the mouse in the canvas, a second canvas shows the ## projection along X of the bin corresponding to the Y position ## of the mouse. The resulting histogram is fitted with a gaussian. ## A "dynamic" lin...
krafczyk/root
tutorials/pyroot/DynamicSlice.py
Python
lgpl-2.1
3,847
[ "Gaussian" ]
77e324004c81f751337b8eaf7c512f945133c6febef56b57e9bdeb8bcc27e575
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
Azure/azure-sdk-for-python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/models/_models_py3.py
Python
mit
946,598
[ "ASE" ]
26c52577f257dd4b94951a8cc54133e5fefa5fa3dbeb89815678f787ff32ae0a
# # Copyright 2013 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
CarterBain/AlephNull
tests/test_perf_tracking.py
Python
apache-2.0
42,591
[ "COLUMBUS" ]
79948af5cf0275f227cb176c595e96195b1ea55eeab3c7f06390ab64992ee53b
############################################################################### ## ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary forms, with or without ## modification, ...
CMUSV-VisTrails/WorkflowRecommendation
vistrails/packages/vtk/init.py
Python
bsd-3-clause
54,112
[ "VTK" ]
a34fe582464107bde486da5efd5b7d0ad13dc696dd35321e75c92b5a6bbdf0ed
#!/usr/bin/env python # # Copyright 2002-2003 by Michael Hoffman. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Bio.DocSQL: easy access to DB API databases. >>> import os ...
zjuchenyuan/BioWeb
Lib/Bio/DocSQL.py
Python
mit
6,088
[ "Biopython" ]
09f8b57c0082d63beb5faf333328c121eb49166803ba383094ae0c15bbb47db8
from mdconfig import * from md_unit_converter import * program = MD(dt=0.02, name="main") md = program.compile(skip_compile=False) unit_converter = MDUnitConverter(program) # nodex_i is the number of processors in the i'th dimension # Total number of processors is nodes_x*nodes_y*nodes_z program.nodes_x = 1 program.n...
ComputationalPhysics/parallel_lennard_jones_md
base_code/run.py
Python
gpl-3.0
1,419
[ "OVITO", "VMD" ]
896c9fd4051d99532ad730ab3ea4eb794435efd72eb501289ff0d67fbde57a58
# -*- coding: utf-8 -*- { "'Cancel' will indicate an asset log entry did not occur": "'cancelar' irá indicar que a entrada de log de ativo não ocorreu", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a bou...
sahana/Turkey
languages/pt-br.py
Python
mit
271,384
[ "VisIt" ]
c6f0ec0b8ef758624ace68406b8749b1a39e092853cded2663f2ec9eec1a0b27
# # Copyright 2014 Flytxt # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the ...
himanshu14/GMM
PyGMM.py
Python
apache-2.0
2,736
[ "Gaussian" ]
ac15dfeca68bb7ba3a25919345aa044414d2180eed3d5ecbeeb0286ff2aa123e
#!/usr/bin/python ###################################################################### # # # Stereo-Proj is a python utility to plot stereographic projetion of a given crystal. It is designed # to be used in electron microscopy experiments. # Author: F. Mompiou, CEMES-CNRS # # #######################################...
mompiou/stereo-proj
stereo-proj-pyqt.py
Python
gpl-2.0
88,031
[ "CRYSTAL", "Gaussian" ]
c9b50d610e9838b70481cf293fa24d31bd4cdc94196aab9e56da3eace232f351
# # This source file is part of appleseed. # Visit https://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2014-2019 The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this ...
dictoon/blenderseed
properties/__init__.py
Python
mit
1,953
[ "VisIt" ]
f715b13a8a176c5fb41352e9327f6ba1ca4471173ec736839d33836907cbb05e
from kernel_exp_family.estimators.finite.gaussian import KernelExpFiniteGaussian from kernel_exp_family.estimators.lite.gaussian import KernelExpLiteGaussian from kernel_exp_family.estimators.lite.gaussian_low_rank import KernelExpLiteGaussianLowRank from kernel_hmc.densities.gaussian import IsotropicZeroMeanGaussian,\...
karlnapf/kernel_hmc
kernel_hmc/examples/demo_trajectories.py
Python
bsd-3-clause
2,391
[ "Gaussian" ]
aa191d87af0f1e51b66eebcdca78352cc950aeb9222dcdcf3c9acd5b2bc812bf
import h5py import numpy as np import pytest from pysisyphus.calculators.PySCF import PySCF from pysisyphus.helpers import geom_loader from pysisyphus.io.hessian import save_hessian from pysisyphus.optimizers.RFOptimizer import RFOptimizer from pysisyphus.testing import using @pytest.fixture def geom(): fn = "li...
eljost/pysisyphus
tests/test_hessian/test_hessian.py
Python
gpl-3.0
795
[ "PySCF" ]
91b44161c87ca9d730b0ab55072790ca76b03ff779be29f239e3bfb132d0d18e
# -*- coding: utf-8 -*- """Additional summary functions for BEL graphs to supplement :mod:`pybel.struct.summary`. These scripts are designed to assist in the analysis of errors within BEL documents and provide some suggestions for fixes. """ from .composite_summary import * # noqa: F401,F403 from .contradictions im...
pybel/pybel-tools
src/pybel_tools/summary/__init__.py
Python
mit
679
[ "Pybel" ]
9d90f677f52399692a7abbabd05f130bd91777cd7319a32c07528e345c386fef
#!/usr/bin/python # -*- coding: utf-8 -*- import os from pcraster.framework import * import pcraster as pcr import logging logger = logging.getLogger(__name__) import virtualOS as vos from ncConverter import * import ETPFunctions as refPotET class Meteo(object): def __init__(self,iniItems,landmask,spinUp): ...
UU-Hydro/PCR-GLOBWB_model
modflow/scripts/meteo.py
Python
gpl-3.0
27,928
[ "NetCDF" ]
44a7218911b01c8f1b1ace92da31a7297f565090385d99567a6807ee7ebfede4
# Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Brian G. Matherly # Copyright (C) 2010 Douglas S. Blank # Copyright (C) 2011-2019 Jerome Rapinat # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
sam-m888/addons-source
lxml/lxmlGramplet.py
Python
gpl-2.0
27,861
[ "Brian" ]
688385fb3e39d17eef4fc0714d1d356bf7d927fd5fe562e415765ad8dd18c6e1
# -*- coding: utf-8 -*- """ VQ - Vector Quantization methods. Created on Tue Jun 7 10:23:06 2016 @author: chief """ from __future__ import (print_function) __author__ = 'vlad' __version__ = 0.3 __all__ = ['VQ', 'VQ_GMM'] from abc import ABCMeta, abstractmethod from future.utils import bytes_to_native_str as nstr...
higex/qpath
encode/vq.py
Python
mit
6,233
[ "Gaussian" ]
b0b8189116164564b5fa9e3609d1b6b86b854a5a03fee46e56456b94c2d927e4
""" Cache for the Plotting service plots """ import os.path import time import threading from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities.DictCache import DictCache from DIRAC.Core.Utilities.Graphs import graph class PlotCache(object): def __init__(self, plotsLocation=False): self.plots...
DIRACGrid/DIRAC
src/DIRAC/FrameworkSystem/Service/PlotCache.py
Python
gpl-3.0
2,487
[ "DIRAC" ]
0fd38c49991f14dbbec04dd8aff16c4ae63a87200b74b2c3f6ab880f2578f80b
import re from util import hook, user, web @hook.command(autohelp=False) def commands(inp, say=None, notice=None, input=None, conn=None, bot=None, db=None): "commands -- Gives a list of commands/help for a command." funcs = {} disabled = bot.config.get('disabled_plugins', []) disabled_comm = bot.confi...
bytebit-ch/uguubot
plugins/help.py
Python
gpl-3.0
3,204
[ "VisIt" ]
ee547d9fe92de56ae3c969abeec0c3e6afa8ab397532c495730c26dcb1eaed78
""" Bokeh is a Python interactive visualization library that targets modern web browsers for presentation. Its goal is to provide elegant, concise construction of novel graphics in the style of d3.js, but also deliver this capability with high-performance interactivity over very large or streaming datasets. Bokeh can ...
lukebarnard1/bokeh
bokeh/__init__.py
Python
bsd-3-clause
867
[ "VisIt" ]
005dcd5f972f8d6fae03e5d65dba610e12720a28ee9c58ac96aa2b3285dd6131
import sys import time as tm import numpy as np import ConfigParser def getlist(option, sep=',', chars=None): """Return a list from a ConfigParser option. By default, split on a comma and strip whitespaces.""" return [float(chunk.strip(chars)) for chunk in option.split(sep)] class dnf: def __init...
gdetor/neuralfieldDBSmodel
src/protocolC.py
Python
bsd-3-clause
9,297
[ "Gaussian", "NEURON" ]
4a94689b06a75354fccf9751adf78ed0472495621198940fe2816dd8d9678ebc
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2008 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Softw...
tiagocardosos/stoq
stoqlib/reporting/service.py
Python
gpl-2.0
1,843
[ "VisIt" ]
05d44b6a747011f96dfce49e70187ca2b045acb4a8d842d940af063b9d7093bb
# Hidden Markov Model Implementation import pylab as pyl import numpy as np import matplotlib.pyplot as pp from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import scipy.io import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy import hrl_lib.mayavi2_util as mu impor...
tapomayukh/projects_in_python
sandbox_tapo/src/AI/Code for Project-3/HMM Code/hmm_crossvalidation_force_10_states.py
Python
mit
15,469
[ "Gaussian", "Mayavi" ]
0c89c3818bb07f8822c5c5c3535daf284d1d34c4a16c24e435967122ba215a76