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
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.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, either version 3 of the License, or # (at your option) any lat...
wenottingham/ansible
lib/ansible/template/safe_eval.py
Python
gpl-3.0
4,604
[ "VisIt" ]
3d563d925331c92d62bf4b4cf596142643cb4d8eaaea0e73c1da846a1eb6cf3b
""" Module to measure spectral cross-correlation... """ import numpy as np import lmfit def fit_lag(arr1,arr2,kind='linear'): if arr1.size != arr2.size: raise ValueError("Size mismatch") def mychi2(pars): lag = pars['lag'].value return chi2(arr1,arr2,lag) fitpars = lmfit....
ufoym/agpy
agpy/cross_correlation.py
Python
mit
7,294
[ "Gaussian" ]
05e918a77a6d73ff2b7547620df0f5a3c26dfb62685526f89b85030bd3862193
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
gregcaporaso/scikit-bio
skbio/sequence/_dna.py
Python
bsd-3-clause
12,736
[ "scikit-bio" ]
5c5f6ca61ec81fcc4080a7458e2e66163803ef9150a8c5a2ce212b4bb6c28fba
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # In this example, an image is centered at (0,0,0) before a # rotation is applied to ensure that the rotation occurs about # the center of the image. reader = vtk.vtkPNGReade...
hlzz/dotfiles
graphics/VTK-7.0.0/Imaging/Core/Testing/Python/ResliceInformationInput.py
Python
bsd-3-clause
1,137
[ "VTK" ]
e93f6799ac199816ae54b8b262297ecdd06e49a06e737c2421c8d65237371a1b
from direct.directnotify import DirectNotifyGlobal from direct.fsm import StateData import CogHQLoader from toontown.toonbase import ToontownGlobals from direct.gui import DirectGui from toontown.toonbase import TTLocalizer from toontown.toon import Toon from direct.fsm import State from direct.actor.Actor import Actor...
silly-wacky-3-town-toon/SOURCE-COD
toontown/coghq/SellbotCogHQLoader.py
Python
apache-2.0
12,750
[ "VisIt" ]
1a8a10833b8b0903acb837f4438f61ddebd2edc8abedda0558e0bc99a511969c
""" SSH (Virtual) Computing Element For a given IP/host it will send jobs directly through ssh **Configuration Parameters** Configuration for the SSHComputingElement submission can be done via the configuration system. BatchSystem: Underlying batch system that is going to be used to orchestrate executable files....
ic-hep/DIRAC
src/DIRAC/Resources/Computing/SSHComputingElement.py
Python
gpl-3.0
32,794
[ "DIRAC" ]
3a6c6bdaace8debf6ef41fb9baddf3548cf8949f8b7345f45011425a50c3208b
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/yc/code/calibre/calibre/src/calibre/gui2/convert/txt_input.ui' # # Created: Thu Oct 25 16:54:55 2012 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui tr...
yeyanchao/calibre
src/calibre/gui2/convert/txt_input_ui.py
Python
gpl-3.0
5,620
[ "VisIt" ]
edbb56d9c5249f65164e4bb2c93ed12a9bdfbb170764646bc2f0ea6da7d2a346
# ---------------------------------------------------------------------------- # Copyright 2015 Nervana Systems 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.o...
Bam4d/neon
tests/test_branch_layer.py
Python
apache-2.0
5,155
[ "Gaussian" ]
e4afefa893183dd370116aefb00d8c975ac73cc804981d89e3a2f9b36baf2342
# Copyright (c) 2006-2011, 2013-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Google, Inc. # Copyright (c) 2015-2016 Cara Vinson <ceridwenv@gmail.com> # Licensed under the LGPL: https://www.gnu.org/licenses/old-licenses/lgpl-2...
arju88nair/projectCulminate
venv/lib/python3.5/site-packages/astroid/manager.py
Python
apache-2.0
12,332
[ "VisIt" ]
6ee26a1d88f3dd42783a5c2db0a5285e51e7f13ff1f6f87b422f3a09e6976905
#!/usr/bin/env python # ---------------------------------------------------------------------------- # 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. # ---------------------...
Achuth17/scikit-bio
setup.py
Python
bsd-3-clause
4,506
[ "scikit-bio" ]
4f9b94906f77281f1557d00bae615ebdc4bc4e3fcbf22dbccc7b57eb825da54f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Works for Abinit: """ from __future__ import unicode_literals, division, print_function import os import shutil import time import abc import collections import numpy as np import six import copy from six....
aykol/pymatgen
pymatgen/io/abinit/works.py
Python
mit
53,283
[ "ABINIT", "Gaussian", "NetCDF", "pymatgen" ]
bd20da71957810dbb83240aed91f4243fee3754a77d913e4aeb8e82b6813530f
#### PATTERN | DE | INFLECT ############################################## # -*- coding: utf-8 -*- # Copyright (c) 2012 University of Antwerp, Belgium # Author: Tom De Smedt <tom@organisms.be> # License: BSD (see LICENSE.txt for details). ########################################################################## # Reg...
shubhangiKishore/pattern
pattern/text/de/inflect.py
Python
bsd-3-clause
32,013
[ "ASE" ]
d897b4bec9d89106e1fa68a685559df2f7ef0951c015edce18c186e9dc41885a
from crystal_dashboard.dashboards.crystal.projects import tabs as projects_tabs from django.utils.translation import ugettext_lazy as _ from horizon import tabs class IndexView(tabs.TabbedTableView): tab_group_class = projects_tabs.ProjectsTabs template_name = 'crystal/projects/index.html' page_title = _(...
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/projects/views.py
Python
gpl-3.0
457
[ "CRYSTAL" ]
20204a2a1211f4b74fc495b2596bf4910cd6f26e955f645815e2f142c0a1d6f7
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
alejob/mdanalysis
testsuite/MDAnalysisTests/core/test_atomselections.py
Python
gpl-2.0
35,692
[ "Amber", "MDAnalysis", "NAMD" ]
d706e3808cae7ac2dfdf9a77b5037c87521c6b3507b01de08451d9dc8f18f4ac
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Upp(CMakePackage): """ The Unified Post Processor (UPP) software package is a software...
LLNL/spack
var/spack/repos/builtin/packages/upp/package.py
Python
lgpl-2.1
1,747
[ "NetCDF" ]
d29fab6885a84fc1bcc28b74ad55a310836adb6d7c3120450cd9e41351c6e628
from django.db import models from mezzanine.utils.models import AdminThumbMixin from mezzanine.utils.models import upload_to from mezzanine.core.fields import RichTextField from django.contrib.auth.models import User from mezzanine.core.models import Displayable, Orderable, RichText, Ownable,\ Slugged from django.u...
orlenko/sfpirg
sfpirgapp/models.py
Python
bsd-2-clause
21,029
[ "VisIt" ]
ba7931d4ada477f40fa202a309466237d46547d37e27fa26aaf62d8a5b02f6fd
import numpy as np import matplotlib.pyplot as plt from util import utils import mpfit import scipy.optimize as optimize from scipy import pi,sqrt,exp from scipy.special import erf import scipy.integrate as integrate #This program tries to fit the white dwarf and bright spot component of the light curve. The bright sp...
bmazin/ARCONS-pipeline
examples/Pal2012-sdss/DwarfBrightSpotFit.py
Python
gpl-2.0
4,811
[ "Gaussian" ]
74da7a6a85d371c173dd2ab42a5199d622a61696a8ac31b9807cd63c3dc3d486
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
eickenberg/scikit-learn
sklearn/ensemble/forest.py
Python
bsd-3-clause
54,513
[ "Brian" ]
8f7273f67a4224423cfe025a3b214d40c7babf3c80e05d2b93df77e1c076de12
# ============================================================================ # # Copyright (C) 2007-2012 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...
jeroendierckx/Camelot
camelot/view/action_steps/update_progress.py
Python
gpl-2.0
3,204
[ "VisIt" ]
8f692df7420aba0bcbd887ae3227061aa454ea7968ba19960fbcfe0072df4085
from rpl.tools.api import test_bench_api __author__ = 'ab27' import json, logging, os, sys import _winreg import numpy as np import matplotlib.pyplot as plt from rpl.tools.api import test_bench_api as tba import utils.part_info as pinf import matplotlib.pyplot as plt from matplotlib.tri import Triangul...
pombredanne/metamorphosys-desktop
metamorphosys/META/analysis_tools/PYTHON_RICARDO/output_closures/scripts/hatch_visualization.py
Python
mit
10,391
[ "Mayavi" ]
12e8b0f980de3137020ae8bee4a4a404e1fc6c0ea4690f26bd8505be92951e70
"""Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2014 Benjamin Peterson # # 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 with...
soerendip42/rdkit
rdkit/six.py
Python
bsd-3-clause
23,870
[ "RDKit" ]
66b15d6535fdf1abaa7332c5604a45dbaaf1b2fa624393d80d96dd9eb7867768
import psycopg2 import Image, ImageDraw import random from visual import * #-------- database code ------------ db = psycopg2.connect(host='csr-dyn-24.mit.edu',user='mwa',password='BowTie') curs = db.cursor() curs.execute('select tile_id,tile_pos_east,tile_pos_north from tile_position') c = curs.fetchall(...
ryandougherty/mwa-capstone
MWA_Tools/mwapy/obssched/extras/tilestat.py
Python
gpl-2.0
1,330
[ "Bowtie" ]
64744cdf98efc7a16652e33a24038dc1ecab34590a83f3614b1034fb98cfe9c1
import numpy as np import logging import random import matplotlib.pyplot as plt from matplotlib import rcParams rcParams['font.family'] = 'DejaVu Sans' import seaborn as sns import datetime sns.set_style("whitegrid", {'axes.grid' : False}) def gaussian(filter_size=[16,16], offset=[0,0]): """ Create a 2D Gauss...
huangziwei/pyMF3
pymf3/datasets/_subunits.py
Python
mit
12,559
[ "Gaussian" ]
fa5f14d1e08540ed757b3df42dfa9c689231420b43e1c476fdf17a0a80f6028e
#! /usr/bin/env python # # update_po - a gramps tool to update translations # # Copyright (C) 2006-2006 Kees Bakker # Copyright (C) 2006 Brian Matherly # Copyright (C) 2008 Stephen George # Copyright (C) 2012 # # This program is free software; you can redistribute it and/or modify # it under the terms of t...
Forage/Gramps
data/man/update_man.py
Python
gpl-2.0
6,354
[ "Brian" ]
d1be9a98ed21cd4a7f51eb3f4b000350caf07797b07e4cc46afb85e58d9a5e02
#!/usr/bin/env python """ This is a simple installation script for casual users of pymatgen who simply plan to use pymatgen as a basic analysis library and is not planning to develop on it. This script should work on most Linux and Mac systems that have Python 2.7+ installed and setuptools installed. These are the onl...
yanikou19/pymatgen
docs/_static/pmg_install.py
Python
mit
6,589
[ "ASE", "pymatgen" ]
fba908d7253988de821258792ef205af956012566bc5169f726755b01c670bc4
import sys from cStringIO import StringIO from time import time,sleep, gmtime from django.conf import settings from django import http from django.core.mail import mail_admins from django.core.exceptions import SuspiciousOperation from django.dispatch import Signal from userdata import UserData from theapps.superviso...
thepian/theapps
theapps/supervisor/middleware.py
Python
gpl-3.0
7,573
[ "VisIt" ]
638e102d758ae84f75e23ed53af4333aeb8f8456b94e88c6107ed8c3eb379f7f
from __future__ import print_function import sys import random import os import numpy as np import scipy import math from scipy import stats from builtins import range import time sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator fr...
mathemage/h2o-3
h2o-py/dynamic_tests/testdir_algos/glm/pyunit_glm_gaussian_large.py
Python
apache-2.0
64,811
[ "Gaussian" ]
b3da5e479bb174f5bd96966fa9450e6c4f6da6be8b255b1d6ddee70f0ed766fd
# Copyright 2007 by Tiago Antao. 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. """ This module provides code to work with GenePop. See http://wbiomed.curtin.edu.au/genepop/ ,...
bryback/quickseq
genescript/Bio/PopGen/GenePop/__init__.py
Python
mit
7,348
[ "Biopython" ]
5f9edfbbe7330c4ad17db731e3b15b0109e6dd80c005dec01754a9cda755c3d9
import numpy as np from ..FileIO import FileIO as psopen from ...common import pandas #import pysal_examples from ... import examples as pysal_examples import unittest as ut PANDAS_EXTINCT = pandas is None class Test_Table(ut.TestCase): def setUp(self): self.filehandler = psopen(pysal_examples.get_path('...
sjsrey/pysal_core
pysal_core/io/tests/test_Tables.py
Python
bsd-3-clause
1,188
[ "COLUMBUS" ]
1b51d7fe05ab0b203cd04aac287bfef827f121d3d76be907b933c59eacedd067
# -*- coding: utf-8 -*- # # connections.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 version 2 of the License, or...
hesam-setareh/nest-simulator
topology/doc/user_manual_scripts/connections.py
Python
gpl-2.0
18,562
[ "Gaussian" ]
021635a1ae20c557b80bba0a5784aaabe592046d98acad0c4f57579aef976384
""" Tornado-based HTTPs JobManager service. """ from DIRAC import gLogger from DIRAC.Core.Tornado.Server.TornadoService import TornadoService from DIRAC.WorkloadManagementSystem.Service.JobManagerHandler import JobManagerHandlerMixin sLog = gLogger.getSubLogger(__name__) class TornadoJobManagerHandler(JobManagerHan...
DIRACGrid/DIRAC
src/DIRAC/WorkloadManagementSystem/Service/TornadoJobManagerHandler.py
Python
gpl-3.0
518
[ "DIRAC" ]
e3e181345604e679dd4ef08d0ac15bd1f0947b18b0a932bdb49048d1c217e392
#!/usr/bin/env python """Script to run Selenium2Library acceptance tests. Tests are executed using Robot Framework and results verified automatically afterwards using `robotstatuschecker` tool. The tool can be installed using `pip install robotstatuschecker` and more information about it can be found from: https://git...
SergiuTudos/Selenium2Library
test/run_tests.py
Python
apache-2.0
8,075
[ "VisIt" ]
e373870e98a1dc0e5ff9ce074cfaf2009e460936675da9e3905cacec9d1d9f55
############################################################################ # add field index shelves to flat-file database mechanism; # to optimize "index only" displays, use classes at end of this file; # change browse, index, submit to use new loaders for "Index only" mode; # minor nit: uses single lock file fo...
simontakite/sysadmin
pythonscripts/programmingpython/Internet/Web/PyErrata/AdminTools/dbaseindexed.py
Python
gpl-2.0
5,932
[ "Brian" ]
0bb55e91f84a1097e626d6115bc80d9516d5bbdb9be6c30f81f41d50edd0b36d
# -*- coding: utf-8 -*- ''' Smoothtest Copyright (c) 2014 Juju. Inc Code Licensed under MIT License. See LICENSE file. ''' import rel_imp rel_imp.init() import os from argparse import ArgumentParser, RawDescriptionHelpFormatter from .base import AutoTestBase from .Main import Main from .TestSearcher import TestSearche...
joaduo/smoothtest
smoothtest/autotest/Command.py
Python
mit
5,599
[ "VisIt" ]
ef55971453bfe99d1f321206988d953a8921845b058c8c40445d19d02d07436a
# Copyright 2009, Mark Fassler # 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, version 2 of the License. import logging import vtk from jv.jvPaths import * import xml.etree.ElementTree as ET ...
mfassler/jaivis
jv/xmlReader.py
Python
gpl-2.0
41,125
[ "VTK" ]
c514e115f0edeee10fcb67451e5d6e6e8337a00722b8e12c907de59beafbc02d
import gym from gym import spaces from gym.utils import seeding def cmp(a, b): return int((a > b)) - int((a < b)) # 1 = Ace, 2-10 = Number cards, Jack/Queen/King = 10 deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] def draw_card(np_random): return np_random.choice(deck) def draw_hand(np_random): re...
dennybritz/reinforcement-learning
lib/envs/blackjack.py
Python
mit
4,251
[ "CASINO" ]
f1a35d2db407d9034d3fe396622025fba467415b05bec4560735ee8c12ba93a3
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
resmo/ansible
lib/ansible/module_utils/api.py
Python
gpl-3.0
4,456
[ "Brian" ]
14855dd0feae42b56312a44445c4e84fdb593313ed2229cc9a73acfc9e953de4
# Copyright 2004-2008 Roman Yakovenko. # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) """defines few unrelated algorithms, that works on declarations""" import types def declaration_path( decl, with_def...
avaitla/Haskell-to-C---Bridge
pygccxml-1.0.0/pygccxml/declarations/algorithm.py
Python
bsd-3-clause
11,478
[ "VisIt" ]
0194c93850eaae0a2b54c841181878c244a1177528333e30c3af26174a3098d1
# -*- coding: utf-8 -*- """ Multiple operations on data or modeling results (e.g. aligning, convolution, ...) Author: R. Lombaert """ import collections from scipy import mean, std, sqrt, log, isfinite from scipy import array, zeros, arange from scipy.stats import tmean, tstd from scipy.optimize import leastsq from...
robinlombaert/ComboCode
cc/data/Data.py
Python
gpl-3.0
18,291
[ "Gaussian" ]
14b7984d26e22e6a8c760127ee834e9491a9fac3396c720c631e7610fdd7b84a
""" @name: Modules/House/Entertainment/entertainment_util.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2019-2020 by D. Brian Kimmel @license: MIT License @note: Created on Dec 23, 2019 @summary: """ # Import system type stuff from ruamel.yaml.comments import Commente...
DBrianKimmel/PyHouse
Project/src/Modules/House/Entertainment/entertainment_utility.py
Python
mit
1,912
[ "Brian" ]
2ead3c3373521cf3944526e7d517954acdd171e25cc1ff9c64e19845dd6eed98
# Copyright 2000 by Jeffrey Chang. 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. import sys # Add path to Bio sys.path.append('../..') """Code to work with the prosite.doc fi...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/ExPASy/Prodoc.py
Python
gpl-2.0
5,018
[ "Biopython" ]
82ca81e79b40908c6ae78277e7b5adb69c1b8f79bf175c838fceb55dba114a23
import numpy as np import theano import theano.tensor as T from numpy.testing import assert_array_almost_equal from smartlearner import views, stopping_criteria, Trainer, tasks from smartlearner.optimizers import SGD, AdaGrad, Adam, RMSProp, Adadelta from smartlearner.testing import DummyLoss, DummyBatchScheduler from...
SMART-Lab/smartlearner
tests/optimizers/tests_optimizers.py
Python
bsd-3-clause
7,477
[ "Gaussian" ]
a1a08760956f33e84dd14383abe04d757548b6ebfb124dfefec59575a64d53b9
from __future__ import print_function, division from sympy.core import S, C, sympify from sympy.core.function import Function, ArgumentIndexError from sympy.core.logic import fuzzy_and from sympy.ntheory import sieve from math import sqrt as _sqrt from sympy.core.compatibility import reduce, as_int, xrange from sympy...
shipci/sympy
sympy/functions/combinatorial/factorials.py
Python
bsd-3-clause
17,896
[ "VisIt" ]
df820383bf077cd397b119bce197ab2fbbe82c24cad592cade89d91055c28185
from __future__ import absolute_import, division, print_function, unicode_literals from textwrap import dedent import collections import hashlib from functools import wraps import os import numpy as np import netCDF4 as nc4 from gridded.utilities import (get_dataset, _reorganize_spatia...
NOAA-ORR-ERD/gridded
gridded/variable.py
Python
unlicense
44,005
[ "NetCDF" ]
08f531710d3d6be3db6c7f229ab8f6f118f80185a90b99337d68c0b31d861920
# creates: nice.png import numpy as np from ase import Atoms from ase.io import write atoms = Atoms('Ag', cell=(2.7, 2.7, 2.7), pbc=True) * (18, 8, 8) # view with ag #view(atoms) rotation = '-70x, -20y, -2z' # found using ag menu 'view -> rotate' #Make colors from ase.utils import hsv colors = hsv(atoms.positions...
conwayje/ase-python
doc/tutorials/saving_graphics.py
Python
gpl-2.0
1,856
[ "ASE", "Jmol", "VMD" ]
9e5747cd1943bb0445e8357a28f93e26f204724ab35e1c7a05d69d20b6d2a9d1
from datetime import timedelta import functools import itertools import warnings import numpy as np import pandas as pd from . import common from . import indexing from . import ops from . import utils from .pycompat import basestring, OrderedDict, zip, dask_array_type from .indexing import (PandasIndexAdapter, ortho...
petercable/xray
xray/core/variable.py
Python
apache-2.0
35,035
[ "NetCDF" ]
fa28af0016bda1b3b4dd29cbd380b9f59e3653292d2e9181e0422fbd0f2c934a
#!/usr/bin/env python3 """ refguide_check.py [OPTIONS] [-- ARGS] - Check for a NumPy submodule whether the objects in its __all__ dict correspond to the objects included in the reference guide. - Check docstring examples - Check example blocks in RST files Example of usage:: $ python refguide_check.py optimize...
charris/numpy
tools/refguide_check.py
Python
bsd-3-clause
38,700
[ "Gaussian" ]
da292c335fe807c55822627cd9d9b3694e1e8fbbbc457139e2587e325adc552e
# -*- coding: utf-8 -*- """ Created on Tue Jul 03 09:25:36 2012 @author: Shreejoy """ from neuroelectro.models import Article, MeshTerm, Substance, Journal from neuroelectro.models import Neuron, NeuronSyn, Unit from neuroelectro.models import BrainRegion, InSituExpt, Protein, RegionExpr from neuroelectro.m...
lessc0de/neuroelectro_org
aba_functions/assign_neurons_allen_regions.py
Python
gpl-2.0
6,372
[ "NEURON" ]
0696ce99f891262dba4378a59f0a6fee662c1799330d1952ca29ece78a68f72f
from math import sqrt import numpy as np __all__ = ['FixCartesian', 'FixBondLength', 'FixedMode', 'FixConstraintSingle', 'FixAtoms', 'UnitCellFilter', 'FixScaled', 'StrainFilter', 'FixedPlane', 'Filter', 'FixConstraint', 'FixedLine', 'FixBondLengths', 'FixInternals'] def slice2enlis...
askhl/ase
ase/constraints.py
Python
gpl-2.0
46,818
[ "ASE" ]
c9f378a07b1e7c30931fa7943dfef2f9e63b6b89233c0d97813ebc093dec4a35
__RCSID__ = "$Id$" from DIRAC import gLogger, S_OK from DIRAC.Core.Base.AgentModule import AgentModule #from DIRAC.StorageManagementSystem.Client.StorageManagerClient import StorageManagerClient from DIRAC.Core.Utilities.List import sortList from D...
sposs/DIRAC
StorageManagementSystem/Agent/StageRequestAgent.py
Python
gpl-3.0
23,332
[ "DIRAC" ]
343cebb8b695ea4b27600d9253456727b89ed564dd9f0eae566bbfb4e5e7a57f
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. import pytest import os.path as osp from sisl.io.vasp.locpot import * import numpy as np pytestmark = [pytest.mark.io, ...
zerothi/sisl
sisl/io/vasp/tests/test_locpot.py
Python
mpl-2.0
987
[ "VASP" ]
52a8d4f35e866ba2f7c36aa34120bfc97e5a0fa6ebeb9c593cec46df83668250
import _vlfeat import numpy from quickshift import vl_quickseg,vl_quickvis def vl_sift(data, frames=None, octaves=-1, levels=-1, first_octave=0, peak_thresh=-1.0, edge_thresh=-1.0, norm_thresh=-1.0, magnif=-1.0, window_size=-1.0, orientations=False, verbose=0): """Computes the ...
fish2000/python-vlfeatures
vlfeat/__init__.py
Python
gpl-2.0
11,856
[ "Gaussian" ]
58dfe97b5c0552bea79b5f8267b3de4965be7b0f56164a2187afed82498dbf68
# Lint as: python2, python3 # -*- coding: utf-8 -*- # Copyright 2018 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...
mlperf/training_results_v0.7
Google/benchmarks/transformer/implementations/transformer-research-TF-tpu-v4-16/lingvo/core/py_utils.py
Python
apache-2.0
145,392
[ "Gaussian" ]
f1995767f6ca3ad7725c1398c638ae850496e70b7ea91d503b19deb6641508a9
############################################################################### # Copyright (c) 2007-2018, National Research Foundation (Square Kilometre Array) # # Licensed under the BSD 3-Clause License (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy # of the ...
ludwigschwardt/scikits.fitting
scikits/fitting/__init__.py
Python
bsd-3-clause
4,864
[ "Gaussian" ]
857b475d34d32ca33dfef68f270465ccd9465bcfd29e7e300c30c87b997f9bb8
from __future__ import (absolute_import, division, print_function) import unittest from mantid.simpleapi import (DeleteWorkspace, CreateSampleWorkspace, AddSampleLog, EditInstrumentGeometry, CloneWorkspace, CompareWorkspaces, FindEPP) from testhelpers import ...
wdzhou/mantid
Framework/PythonInterface/test/python/plugins/algorithms/ComputeCalibrationCoefVanTest.py
Python
gpl-3.0
6,573
[ "Gaussian" ]
bda4122bf80d3ff88bb4c789d2f5f8630ecd659a897db02700efaac4826019dc
""" Convert a miniast to an XML document using ElementTree. This allows us to write XPath unit tests, or just serialize the AST. """ __all__ = ['etree', 'tostring', 'XMLDumper'] import miniutils try: from lxml import etree have_lxml = True except ImportError: have_lxml = False try: # Python 2...
markflorisson/minivect
minivect/xmldumper.py
Python
bsd-2-clause
2,599
[ "VisIt" ]
471ecc2adcce19deacd1a281d3e3798e4ed574ce4147b4dda04a3449822d213f
from paraview.simple import * import sys from paraview import smtesting resolution = 15 cone = Cone(Resolution=resolution) if cone.Resolution != resolution: raise smtesting.TestError('Test failed: Resolution has not been set properly.') resolution = 12 cone.Resolution = resolution if cone.Resolution != resolution...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/ParaViewCore/ServerManager/Default/Testing/Python/PythonPVSimpleCone.py
Python
gpl-3.0
1,537
[ "ParaView" ]
30fe9c78b0585827eddc2bcfb73bab4f9e747529f2b02b573f3ae6ba197b3174
# Copyright 2017 Battelle Energy Alliance, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
joshua-cogliati-inl/raven
framework/SupervisedLearning/ScikitLearn/DiscriminantAnalysis/LinearDiscriminantAnalysis.py
Python
apache-2.0
7,028
[ "Gaussian" ]
48651e9764bbd783061f875fb5f51c337b0f51f9c5db44ad64cdc0ed6ea2a040
#!/usr/bin/python # -*- coding: utf-8 -*- import textwrap from . import constants, geometry, helper from .config import Config class Translator: def __init__(self, language=Config().default_language): if language in constants.supported_language_list: self.language = language else: ...
scheibler/WalkersGuide-Server
webserver/translator.py
Python
gpl-3.0
67,659
[ "CASINO" ]
921aea82ed888611843c1dd6b466506acfd113b9367084cc19e63c3139bad6f8
# https://leetcode.com/problems/first-missing-positive/ """ Similar to Bloomberg's question for Brian. In this quesiton I am using the invariant that A[i] should contain value i+1 Rest is this explanation: Time: O(N) Space: O(1) http://stackoverflow.com/questions/1586858/find-the-smallest-integer-not-in-a-list """ ...
young-geng/leet_code
problems/41_first-missing-positive/main.py
Python
mit
943
[ "Brian" ]
10770e168882140eae539d133d07c2e9d155690a48aace11b14afc0afb0834e6
from datetime import date, time, timedelta from decimal import Decimal import random from django.test import TestCase from django.utils import timezone from .models import Person, Role from .fixtures import create_fixtures class BulkUpdateTests(TestCase): def setUp(self): self.now = timezone.now().repl...
HowGood/django-bulk-update
tests/tests.py
Python
mit
13,421
[ "CRYSTAL" ]
38da9e8a44d94e380667b0414e59310af774021d461be125ffe148b2495ec03f
../../../../../../../share/pyshared/orca/scripts/apps/gedit/__init__.py
Alberto-Beralix/Beralix
i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/apps/gedit/__init__.py
Python
gpl-3.0
71
[ "ORCA" ]
bd53e1bccc31d97bf3758ff4092aba71cd0df61eacb727bd5117e4ed68137e05
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Created on Jul 17, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "S...
aykol/pymatgen
pymatgen/core/tests/test_sites.py
Python
mit
10,450
[ "pymatgen" ]
524428c7c0bc260a925e3f27d7f7a4ea15dcd2a0b276494405e1fe7b1d07b1c5
# $Id$ # # Copyright (C) 2016 Novartis Institute of BioMedical Research # All Rights Reserved # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above co...
bp-kelley/rdkit
Code/GraphMol/StructChecker/Wrap/rough_test.py
Python
bsd-3-clause
7,432
[ "RDKit" ]
9c7b98682d9a41f75c60ad97b1eaa3d22a38b9f124d750bb17080668f28c6d95
import pandas as pd from cobra.io.sbml import create_cobra_model_from_sbml_file from cobra.manipulation.modify import convert_to_irreversible import numpy as np from model_addons import add_to_model from copy import deepcopy class rates(object): def __init__(self): self.model = create_cobra_mo...
dandanvidi/in-vivo-catalytic-rates
scripts/catalytic_rates.py
Python
mit
14,326
[ "Avogadro" ]
70224ee8b07975bcaa4d3c927096581fa360d3bc437d30fb2f04b7340302ce59
import casadi as ca import pylab as pl import casiopeia as cp import os # (Model and data taken from: Diehl, Moritz: Course on System Identification, # exercise 7, SYSCOP, IMTEK, University of Freiburg, 2014/2015) # Defining constant problem parameters: # # - m: representing the ball of the mass in kg # - ...
adbuerger/casiopeia
concept_tests/sd_check_pendulum_linear.py
Python
lgpl-3.0
4,929
[ "Gaussian" ]
20b63eb2ee8038a30b9690d52c13d43018ae24b343253344f45707d33c8fc33e
# -*- coding: utf-8 -*- """ Created on Tue Jan 12 10:34:07 2016 @author: Radu """ from cell import Cell from neuron import h class ClarkeRelay(Cell): #### Inherits from Cell """Two-section cell: A soma with active channels and a dendrite with passive properties.""" #### __init__ is gone and handled in Ce...
penguinscontrol/Spinal-Cord-Modeling
ClarkesNetwork/clarke.py
Python
gpl-2.0
3,835
[ "NEURON" ]
aacb5dab0a106df6167c0397fb7ff154192767de748a82613c7f31ee51c10986
from abc import ABCMeta, abstractmethod """Module description: This module contain the abstract base-classes for the repositories in shyft, defining the contracts that a repository should implement. Brief intro to Repository pattern here: http://martinfowler.com/eaaCatalog/repository.html http://www.codeproj...
felixmatt/shyft
shyft/repository/interfaces.py
Python
lgpl-3.0
15,871
[ "NetCDF" ]
edc598814ef2e7413d2f701bc1a2043860a64454845a1130a86d60ad530ba260
import sys import tempfile import shutil import time import os import pandas sys.path.insert(1, "../../") import h2o import h2o.utils.shared_utils as h2o_utils from tests import pyunit_utils from h2o.estimators.gbm import H2OGradientBoostingEstimator genmodel_name = "h2o-genmodel.jar" def download_mojo(model, moj...
spennihana/h2o-3
h2o-py/tests/testdir_misc/pyunit_mojo_predict.py
Python
apache-2.0
10,966
[ "Gaussian" ]
7cfb2c5541ba1fb025821919f447ae540c21c31f924af1f0cd600961765e2c51
from __future__ import absolute_import import numpy as np import matplotlib.pyplot as plt from .. import utils from ..config import DEFAULT_POPULATION_COLORS class NeuroVis(object): '''This class is used to visualize firing activity of single neurons. This class implements several conveniences for visualiz...
codekansas/spykes
spykes/plot/neurovis.py
Python
mit
14,947
[ "NEURON" ]
3a879f5c2e0285639585bd54b0c36b4c3ee49a94ddcfaad32930202b8925848f
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA 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 vers...
markovmodel/PyEMMA
pyemma/coordinates/tests/test_save_traj.py
Python
lgpl-3.0
9,821
[ "MDTraj" ]
66c823ea5e23bf7f9b2303b59c8c21245b5ab7fd0b5f53742a7104f4513649f8
# # Copyright (c) 2016 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yasharmaster/scancode-toolkit
src/licensedcode/match_seq.py
Python
apache-2.0
4,556
[ "VisIt" ]
4edac3589510be7ca1d16ac5a5b7067a07abf847f7d4b1e232c3b0e53b298b90
#!/usr/bin/env python import logging from argparse import ArgumentParser import theano from theano import tensor import theano.tensor as T import blocks from blocks.algorithms import GradientDescent, Adam from blocks.bricks import MLP, Tanh, WEIGHT, Rectifier from blocks.initialization import Constant, NdarrayInitial...
codeaudit/VAE
VAE.py
Python
mit
15,189
[ "Gaussian" ]
4ae8b6004149d6d4c9ce97ea32c71364d7d6e6e8b64ac19d83daf88916a9b959
from coalib.bearlib.abstractions.Linter import linter from dependency_management.requirements.GoRequirement import GoRequirement @linter(executable='gofmt', use_stdin=True, output_format='corrected', result_message='Formatting can be improved.') class GofmtBear: """ Suggest better form...
coala-analyzer/coala-bears
bears/go/GofmtBear.py
Python
agpl-3.0
1,184
[ "VisIt" ]
fd92fb709cb53da5b75ea3423fbb1b6fc9b168b07ff436c2004861f131c3fad3
# Author: Samuel Genheden samuel.genheden@gmail.com """ Program to analyze the extent of alcohols """ import numpy as np import MDAnalysis.core.distances as mddist from sgenlib import moldyn from sgenlib import mdactions from sgenlib import pbc class AlcoholLenAnalysis(mdactions.TrajectoryAction) : def add_arg...
SGenheden/Scripts
Projects/Yeast/md_alcohol_len.py
Python
mit
1,477
[ "MDAnalysis" ]
072a061d7939dbbc93078def0800b522bda6cee294a9a53ff3495be5ce98a862
""" This module deals with the wannier functions. utils for the wannier90.x input and outputs. """ #from .wannier_utils import * from .wannier import * from .wann_ham import *
mailhexu/pyDFTutils
pyDFTutils/wannier90/__init__.py
Python
lgpl-3.0
176
[ "Wannier90" ]
3c83348fcf2bd2e6234990ea4d6bac7fe70cd470d739c42dd5563ae4bafd9fe1
from __future__ import print_function import moose import pylab import numpy as np import sys import os import matplotlib.pyplot as plt import rdesigneur as rd from scipy import stats import time baseFname = 'Fig6_data' displayMoogli = False displayScatter = False displayRuns = False dumpSpatialPlotsFla...
BhallaLab/moose-examples
tutorials/Rdesigneur/ex12.0_multiscale_seq_selectivity.py
Python
gpl-2.0
10,548
[ "MOOSE", "NEURON" ]
0c229555f89a2fe49f6e1a8424e6ec6b72e58e457ed1bf991f7c65626db763d0
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2005-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; ...
pmghalvorsen/gramps_branch
gramps/gui/dbloader.py
Python
gpl-2.0
19,621
[ "Brian" ]
af551a7e1ca20449ebac96e35be58b79d902e3e6cfbc209ae36582620d46ca67
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Mar 21 19:26:59 2016 @author: GDM """ import HaSAPPy.INFOloads as INFOloads import argparse parser = argparse.ArgumentParser(description='Launching command of HaSAPPy program') print print "***********************************************************" pr...
gdiminin/HaSAPPy
HaSAPPy/HaSAPPY.py
Python
mit
1,938
[ "VisIt" ]
6c3d816b64b648e08453c595f8fadce266d53fbc5c81b6c630750986d19ad7de
from distutils.core import setup setup(name = 'tovtk', version = '1.4.2', description = 'Python meshtal to vtk converter', author = 'A. Travleev, INR-KIT', author_email = 'anton.travleev@kit.edu', packages = ['tovtk', ], entry_points = {'console_scripts': ['tovtk = tovtk.main:main']...
inr-kit/tovtk
setup.py
Python
gpl-3.0
333
[ "VTK" ]
d1f7f58f84e38f540c993cb99f875708f0dad326889ea03d558f04ee146e6653
# -*- coding: utf-8 -*- try: import numpy as np except ImportError: # required due to ase/test/eoswoase.py pass class EquationOfStateSJEOS: """Fit equation of state for bulk systems. 10.1103/PhysRevB.67.026103 The following equation is used:: A third order inverse polynomial fit ...
alexei-matveev/ase-local
ase/utils/sjeos.py
Python
gpl-2.0
3,676
[ "ASE" ]
af4eb41e3e01c8188a2255f1550ab017425462c4a9edd261a52abebf39a20bb2
# # Copyright 2001 - 2011 Ludek Smid [http://www.ospace.net/] # # This file is part of IGE - Outer Space. # # IGE - Outer Space is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Lice...
Lukc/ospace-lukc
server/lib/ige/ospace/IPlanet.py
Python
gpl-2.0
47,036
[ "Galaxy" ]
1f82f519c2e464ed60585151e7b5c5366dba2b8c43e0667dda452b4fd248269e
#!/usr/bin/env python # -*- coding: utf-8 -*- # # PCR-GLOBWB (PCRaster Global Water Balance) Global Hydrological Model # # Copyright (C) 2016, Ludovicus P. H. (Rens) van Beek, Edwin H. Sutanudjaja, Yoshihide Wada, # Joyce H. C. Bosmans, Niels Drost, Inge E. M. de Graaf, Kor de Jong, Patricia Lopez Lopez, # Stefanie Pes...
UU-Hydro/PCR-GLOBWB_model
modflow/scripts/routing.py
Python
gpl-3.0
107,603
[ "NetCDF" ]
c64413b678551cc73fe5c7d86bdf638ace4fe62cf80609cc084c46c3f102ce97
#!/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/mcscf/newton_casscf_symm.py
Python
apache-2.0
5,008
[ "PySCF" ]
2cb2f2758bb18238ead8c52aa1e501510dd299a61a14a21fa2e0786828f6e052
#!/usr/bin/python3 # -*- coding: utf-8 -*- ##===-----------------------------------------------------------------------------*- Python -*-===## ## ## S E R I A L B O X ## ## This file is distributed under terms of BSD license. ## See LICENSE.txt for more information. ## ##===----------...
thfabian/serialbox2
src/serialbox-python/serialbox/archive.py
Python
bsd-2-clause
2,526
[ "NetCDF" ]
89af5db04ac6611985be0d0e3473b0a0380d6a82a79f3be7a00d95dc91db7bfd
import Tools.HTML if __name__ == "__main__": import sys,os selfname = sys.argv[0] full_path = os.path.abspath(selfname)[:] last_slash = full_path.rfind('/') dirpath = full_path[:last_slash] + '/..' print("Append to PYTHONPATH: %s" % (dirpath)) sys.path.append(dirpath) import logging from T...
talipovm/terse
terse/Interface/NBOinteractions.py
Python
mit
5,715
[ "Gaussian" ]
04bd62685fd10965063c4ca9794b3c0515ccd93cd77c73369a6c4b33e0c727dc
from __future__ import division import numpy as np from functools import partial from builtins import zip from pybasicbayes.distributions import DiagonalRegression, Gaussian, Regression import pyhsmm from pyhsmm.util.general import list_split from pyslds.states import HMMSLDSStatesPython, HMMSLDSStatesEigen, HSMMSLD...
mattjj/pyhsmm-slds
pyslds/models.py
Python
mit
20,741
[ "Gaussian" ]
1b8bca3aef19960c61ac5989bba2d08a0b154470ca7ee2886daae277df1d7179
#!/usr/bin/env python from numpy import random,array,sin,round#,sqrt #from pylab import plot, show, legend, fill_between parameter_list=[[20,100,6,10,0.05,1, 1], [10,30,7,9,0.5,0.5, 2]] def regression_gaussian_process_modular (n=100,n_test=100, \ x_range=6,x_range_test=10,noise_var=0.5,width=1, seed=1): from mods...
elkingtonmcb/shogun
examples/undocumented/python_modular/regression_gaussian_process_modular.py
Python
gpl-3.0
2,062
[ "Gaussian" ]
2cad315605b6e4709615d5fd79b2032bf5e629120141154728c7ea85893a8ac0
# encoding: utf-8 """ Enable pygtk to be used interacive by setting PyOS_InputHook. Authors: Brian Granger """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license ...
dannyperry571/theapprentice
script.module.pydevd/lib/pydev_ipython/inputhookgtk.py
Python
gpl-2.0
1,086
[ "Brian" ]
8956f645d6819f3d8da4528a2664e160b6015caa57aeb2e44c577a20814f5bc3
PRODUCTS = { 'iphone': { 'name': 'iPhone 5S', 'category': 'Phones', 'price': 699, }, 'galaxy': { 'name': 'Samsung Galaxy 5', 'category': 'Phones', 'price': 649, }, 'ipad-air': { 'name': 'iPad Air', 'category': 'Tablets', 'price': 649, }, 'ipad-mini': { 'name': 'iPad Mini', 'category': '...
enixdark/im-r-e-d-i-s
flask-cook/my_app/product/models.py
Python
mit
350
[ "Galaxy" ]
528f5cf2665aea1c9112fca992fa48d18416fd733dd5d59b9d7ae336f3064071
# Copyright (C) 2010-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
hmenke/espresso
samples/billard.py
Python
gpl-3.0
11,587
[ "ESPResSo" ]
879db182472420f8778550ffdddd0067dc5d60f67b6ac044520137902e929ba3
import numpy, scipy, math, sys import keparray from math import modf, cos, sin, radians, exp from scipy import ndimage, interpolate from scipy.ndimage import interpolation from scipy.ndimage.interpolation import shift, rotate from scipy.interpolate import RectBivariateSpline, interp2d from keparray import rebin2D from ...
barentsen/dave
extractDetrend/K2photo/kepfunc.py
Python
mit
25,086
[ "Gaussian" ]
a25ddd303332e4fa8d681a432f16ecab3c904b13c0fe5cf7ba38dac8d3bd6e34
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Mads Jensen <mje.mads@gmail.com> # # License: BSD (3-clause) import copy import os.path as op from math import ceil import warn...
alexandrebarachant/mne-python
mne/source_estimate.py
Python
bsd-3-clause
114,461
[ "Mayavi" ]
0fe0a612ee2bd88bea880caecd107f5377e4a645956ce008bf44312a75821c05
from .layer import Layer from ..activation import Activation from ..potential import Potential import numpy as np class Particle3(object): """ 2D monopole input, dipole output """ def __init__(self, input_size=0, output_size=0, activation="sigmoid", potential="gaussian", s=1.0, q=None, b=None, ...
awlange/brainsparks
src/calrissian/layers/particle3.py
Python
mit
3,421
[ "Gaussian" ]
f80fdfa998fba9ae7ec5b360efc4aabd7d735a1840cee6ea7919f3e598d86cb8
from octopus.server.DBInterface import DBInterface import os from octopus.mlutils.pythonEmbedder.PythonEmbedder import Embedder class APIEmbedder(object): def __init__(self): self._initializeDBConnection() def _initializeDBConnection(self): self.dbInterface = DBInterface() d...
octopus-platform/joern
python/joern-tools/joern/APIEmbedder.py
Python
lgpl-3.0
2,776
[ "Octopus" ]
0c597fde7e038cb89ddeea52b263fc4cb748a69055964f0513fabf2545701adc
# !usr/bin/env python2 # -*- coding: utf-8 -*- # # Licensed under a 3-clause BSD license. # # @Author: Brian Cherinka # @Date: 2017-06-12 18:41:25 # @Last modified by: andrews # @Last modified time: 2018-03-02 17:03:81 from __future__ import print_function, division, absolute_import import pytest @pytest.fixture...
sdss/marvin
tests/misc/test_sampledb.py
Python
bsd-3-clause
4,148
[ "Brian", "Galaxy" ]
0370adf98b1d3c96f6c2093bd57630b3f4c49da305d272207f61567c596e76ac
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2016-2022 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
gem/oq-engine
openquake/hazardlib/stats.py
Python
agpl-3.0
14,555
[ "Gaussian" ]
f523483e6069ba2956471c06947f24f279e9e0c76e4814ff9f61a4851bdb2c25
#!/usr/bin/env python __author__ = "waroquiers" import os import shutil import unittest from monty.tempfile import ScratchDir from pymatgen.core import SETTINGS from pymatgen.analysis.chemenv.utils.chemenv_config import ChemEnvConfig from pymatgen.util.testing import PymatgenTest config_file_dir = os.path.join( ...
vorwerkc/pymatgen
pymatgen/analysis/chemenv/utils/tests/test_chemenv_config.py
Python
mit
2,012
[ "pymatgen" ]
2ef648fd2ed20a978aa737a0e4acb0b993029df85646b43e84ba3a4b9f7ef1be
import requests import os from bs4 import BeautifulSoup from beatmap import * class OsuWebConnection: # new site home_url = "https://osu.ppy.sh/home" login_url = "https://osu.ppy.sh/session" def __init__(self): self.session = requests.Session() print("Login:") self.login = inp...
altur13/osu-Downloader
osu_web_connection.py
Python
gpl-3.0
3,627
[ "VisIt" ]
8c81e5d7d059a8217249445b15fdd2527ac7d57313b446b3eddac7358a3b82ed
""" The CountryMapping module performs the necessary CS gymnastics to resolve country codes """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" from DIRAC import gConfig, S_OK, S_ERROR def getCountryMapping(country): """Determines...
ic-hep/DIRAC
src/DIRAC/Core/Utilities/CountryMapping.py
Python
gpl-3.0
1,218
[ "DIRAC" ]
5bce85871d925225eb160c70405a3e946a4b3aa6f49ea5c6e690a13a7aec3bfe