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
#!/usr/bin/env python # Copyright 2017-2021 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...
sunqm/pyscf
pyscf/pbc/cc/kintermediates.py
Python
apache-2.0
22,280
[ "PySCF" ]
a46f3751e76dd8453462be572d0375d15ab423e62a39edec70db4c77ce66cc9b
import gc import io import random import re import string import tempfile from os import environ as env import h5py import netCDF4 import numpy as np import pytest from packaging import version from pytest import raises import h5netcdf from h5netcdf import legacyapi from h5netcdf.core import NOT_A_VARIABLE, Compatibi...
shoyer/h5netcdf
h5netcdf/tests/test_h5netcdf.py
Python
bsd-3-clause
74,613
[ "NetCDF" ]
c5c791c16ea70e8f6a0178969bafda9c7689ddfcb83bc45e7c9c105f6c7eea7f
#!/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...
ravibhure/ansible
lib/ansible/modules/network/avi/avi_applicationprofile.py
Python
gpl-3.0
6,723
[ "VisIt" ]
9f29b7abd53c591e48fd45d7bb45f22e49b7757958e1d95d07146048db1d9714
import operator as op from functools import partial import logging import lib.const as C import lib.visit as v from .. import add_artifacts from .. import util from .. import sample from ..meta import class_lookup from ..meta.template import Template from ..meta.clazz import Clazz from ..meta.method import Method fro...
plum-umd/pasket
pasket/rewrite/adapter.py
Python
mit
6,903
[ "VisIt" ]
0ab3bf2f18273e0eb492e0a9daa795a4e10c907f60aa612f1589c6f39ed6ac6e
# 10/24/2013 Sebastian Raschka # BondLab PyMOL plugin from tkinter import * from pymol import cmd import sys, zlib, string def __init__(self): """adds plugin to PyMOL menu""" self.menuBar.addmenuitem('Plugin', 'command', 'BondLab', label = 'BondLab', ...
rasbt/BondPack
src/BondLab.py
Python
gpl-3.0
3,647
[ "PyMOL" ]
cff6cbd8266e401290c03588c5252a828068cac6f2169ae36a227f1dd056532d
# This file is part of Merlin. # Merlin is the Copyright (C)2008,2009,2010 of Robin K. Hansen, Elliot Rosemarine, Andreas Jacobsen. # Individual portions may be copyright by individual contributors, and # are included in this collective work with permission of the copyright # owners. # This program is free software; ...
ellonweb/merlin
Hooks/target/attack.py
Python
gpl-2.0
3,294
[ "Galaxy" ]
d4265a7ebac4bad39f79bc3705becb3f37b8dfca9c47a059692b3408b33ebcd3
__author__ = 'Mike McCann' __copyright__ = '2011' __license__ = 'GPL v3' __contact__ = 'mccann at mbari.org' __doc__ = ''' View functions to supoprt the main query web page @undocumented: __doc__ parser @status: production @license: GPL ''' from tools.colormaps import cmaps from django.shortcuts import rende...
MBARIMike/stoqs
stoqs/stoqs/views/query.py
Python
gpl-3.0
16,730
[ "NetCDF" ]
328860092a0a086d9ef2873275476ae60473a28d6430c43e0ce9ea9f1fdcbe4c
import multiprocessing import threading import weakref from typing import Any, MutableMapping, Optional try: from dask.utils import SerializableLock except ImportError: # no need to worry about serializing the lock SerializableLock = threading.Lock try: from dask.distributed import Lock as Distributed...
xray/xray
xarray/backends/locks.py
Python
apache-2.0
5,443
[ "NetCDF" ]
fa546ae3e31da522244f65fbd6785e6c6d50b43ec7a219bddb484782798d0a48
""" Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the 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....
cjcjameson/gpdb
src/test/tinc/tincrepo/mpp/models/regress/sql_related/regress_sql_test_case/regress_sql_test_case.py
Python
apache-2.0
36,052
[ "ORCA" ]
5c8b54597ee1cd572839afe10d43cad5d64ffc014e2d41a775f5baf2f130668e
"""Scraper for Supreme Court of Maine CourtID: me Court Short Name: Me. Author: Brian W. Carver Date created: June 20, 2014 History: 2014-06-25 (est): Added code for additional date formats. 2014-07-02: Was receiving InsanityException and tweaked date code to get some missing dates. 2014-12-15: Fix...
Andr3iC/juriscraper
opinions/united_states/state/me.py
Python
bsd-2-clause
1,766
[ "Brian" ]
05c6b34d72cb267676f1f356fd16df2ebc597ca9e258027da32e78b003b9534e
# ============================================================================ # # 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/types/__init__.py
Python
gpl-2.0
14,092
[ "VisIt" ]
542d7dc378ef222865e8fed97d8ac064c28e331288f412e32eb8ab5bd7c0f612
import numpy as np import theano import theano.tensor as T import unittest from numpy.testing import assert_array_equal, assert_array_almost_equal from nose.tools import assert_true from smartlearner import views, stopping_criteria, Trainer, tasks from smartlearner.direction_modifiers import DirectionClipping from sm...
SMART-Lab/smartlearner
tests/direction_modifiers/test_direction_clipping.py
Python
bsd-3-clause
3,219
[ "Gaussian" ]
1207bcabf3c3c1477e6c2ff12e99ef5b9d80ece4161e4d112f3d9f317098d3c3
## -*- coding: utf-8 -*- # # Copyright (c) 2018, 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 ADF output files""" import itertools import re import numpy from cclib.parser import logfi...
berquist/cclib
cclib/parser/adfparser.py
Python
bsd-3-clause
54,001
[ "ADF", "cclib" ]
1da69ce6c8cd724783daac4c5bd19f7397b979bfda8534d01daa49d9b51ec3d5
#!/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/test/test_mcao2mo.py
Python
apache-2.0
8,904
[ "PySCF" ]
9d30011583f127aa14c95ec25ed6ac2ad3f195c5f8a1fa757386addbde65fc82
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
google/uncertainty-baselines
baselines/jft/ood_utils.py
Python
apache-2.0
16,317
[ "Gaussian" ]
9fa3aefe2bdbb1917446b39a3313d0d78e8cc51caf0b71a1910092976879b314
""" Default Django settings. Override these with settings in the module pointed to by the DJANGO_SETTINGS_MODULE environment variable. """ # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. def gettext_noop(s): return s ####...
mjtamlyn/django
django/conf/global_settings.py
Python
bsd-3-clause
22,000
[ "VisIt" ]
9bcfaba823378d6a68ce02c0e376dcf2146c60553f0a1bbad97e11e1d96b2549
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('visit', '0098_auto_20150922_1852'), ] operations = [ migrations.AddField( model_name='student', name...
koebbe/homeworks
visit/migrations/0099_auto_20160120_2205.py
Python
mit
1,256
[ "VisIt" ]
6e28cdda4075f48e0ef6628840eedfb17c96c1a999d80cf3b56f799cb31f1ce8
# -*- coding: utf-8 -*- from contextlib import contextmanager import os import rtree import numpy as np import netCDF4 as nc4 from django.conf import settings from pyaxiom.netcdf import EnhancedDataset, EnhancedMFDataset from wms.utils import find_appropriate_time from wms.models import VirtualLayer, Layer, Style f...
sci-wms/sci-wms
wms/models/datasets/netcdf.py
Python
gpl-3.0
10,531
[ "NetCDF" ]
30e5e60e412d4b4a6d5525504b754f9035387de97cce132e7125742625cee896
# ---------------------------------------------------------------------------- # 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. # --------------------------------------------...
anderspitman/scikit-bio
skbio/stats/distance/_bioenv.py
Python
bsd-3-clause
9,511
[ "scikit-bio" ]
a541a82153d1e8b1d34b746e82b6504c4da3ae8c41d9f5f7223267408c1fc155
from __future__ import absolute_import from __future__ import print_function import matplotlib.pyplot as plt import autograd.numpy as np import autograd.numpy.random as npr import autograd.scipy.stats.multivariate_normal as mvn import autograd.scipy.stats.norm as norm import gaussian_process as gp import autograd.scip...
blutooth/gp-svi
examples/maxsvi.py
Python
mit
4,900
[ "Gaussian" ]
d314e45588bc5ffa1f4dc419760dad54887f47ab13a1bd87534ce35f1d309c94
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines the events signaled by abinit during the execution. It also provides a parser to extract these events form the main output file and the log file. """ from __future__ import unicode_litera...
sonium0/pymatgen
pymatgen/io/abinitio/events.py
Python
mit
14,177
[ "ABINIT", "pymatgen" ]
bb3ea63cf34cafac616ac784442e114c1dba73c065f5d52115a0f4729cb10aa8
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/core/ui/filerenamedialog.py
Python
gpl-2.0
3,607
[ "Brian" ]
87a04b7a5b22f7f6864cb388c86166b34a3de601bb520682a528dc41b53ca574
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from random import randint from time import sleep from django.core.urlresolvers import reverse from lettuce.django import django_url from nose.tools import assert_equals class PageObject(object): def __init__(self, browser): self.browser = browser def visit...
unicefuganda/mics
survey/features/page_objects/base.py
Python
bsd-3-clause
7,919
[ "VisIt" ]
f7b05935109bac663ba3d4f20418815f6ea116481aeadc711aefe842f8d0eb1e
# ################################################################ # # Active Particles on Curved Spaces (APCS) # # Author: Silke Henkes # # ICSMB, Department of Physics # University of Aberdeen # Author: Rastko Sknepnek # # Division of Physics # School of Engineering, Physics and Math...
sknepneklab/SAMoS
analysis/batch_polar/batch_defects_J1_v0.1.py
Python
gpl-3.0
3,265
[ "VTK" ]
5f1040d55406a962ebd52d1fa0f20a162c14292ffd739efa83f0bc20de251cfb
import datetime from django.db import models, transaction from django.urls import reverse from django_countries.fields import CountryField from workshops.mixins import ( AssignmentMixin, CreatedUpdatedMixin, COCAgreementMixin, DataPrivacyAgreementMixin, EventLinkMixin, HostResponsibilitiesMixi...
swcarpentry/amy
amy/extrequests/models.py
Python
mit
18,595
[ "VisIt" ]
53d62f1c42f1f08ed4eb1f56bfaaf775d544a60bd8534d89ab4c66a0b0b4918e
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # rmvgridtrigger - remove trigger from vgrid # Copyright (C) 2003-2014 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 the GNU General Public L...
heromod/migrid
mig/cgi-bin/rmvgridtrigger.py
Python
gpl-2.0
1,086
[ "Brian" ]
9f6cb9df0db35639aea0572fb71aaf77160d90bfe54579c2d2c61dbb7e5db4b3
# # # File to generate network for execution on parallel NEURON # Note this script has only been tested with UCL's cluster! # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Medical Research Council and the # Wellco...
pgleeson/TestArea
models/Cerebellum/pythonScripts/GenNetworkParallel.py
Python
gpl-2.0
6,381
[ "MOOSE", "NEURON" ]
f15bc6d588292730bc189d2249b2b99cf4b38fd7e63d77491f177ee5938bc970
#!/usr/bin/python """Test of sayAll.""" from macaroon.playback import * import utils sequence = MacroSequence() #sequence.append(WaitForDocLoad()) sequence.append(PauseAction(5000)) sequence.append(utils.StartRecordingAction()) sequence.append(KeyComboAction("KP_Add")) sequence.append(utils.AssertPresentationActio...
chrys87/orca-beep
test/keystrokes/firefox/say_all_enter_bug.py
Python
lgpl-2.1
3,997
[ "ORCA" ]
c0555a3fd0d61c2753cb2254aa27bdac705a52376b1329e3e9350ba383a8e926
# -*- coding: utf-8 -*- # Author: Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) from distutils.version import LooseVersion import gc import os import os.path as op from pathlib import Path import shutil import sys import warnings import pytest # For some unknown reason, on Travis-xenial there are s...
olafhauk/mne-python
mne/conftest.py
Python
bsd-3-clause
20,946
[ "Mayavi", "VTK" ]
8cc631fc04d65e22cc5f70e18ddb60f46313899ef0b216ebcb8d57131b4c1278
# -*- coding: utf-8 -*- from south.utils import datetime_utils as 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 'Neuron.neuron_db_id' db.add_column(u'neuroelectro_neuron'...
lessc0de/neuroelectro_org
neuroelectro/south_migrations/0074_auto__add_field_neuron_neuron_db_id.py
Python
gpl-2.0
30,740
[ "NEURON" ]
6ddd53a36c5955188be6b2501136453a7d400a024579efc84be59b050e703124
__author__ = "Brian O'Neill" __version__ = '0.2.1' import doctest def main__record_history(): """ # [The *record_history* decorator](id:record_history-decorator) The `record_history` decorator is a stripped-down version of `log_calls` which records calls to a decorated function but writes no messages. You can th...
Twangist/log_calls
tests/test_record_history.py
Python
mit
9,859
[ "Brian" ]
2c866034961c7a1aa275b04e0dd6eb175474903632526e0e70e1ecb75c15084e
import os import numpy as np import pandas as pd import matplotlib.pyplot as plt from scipy.interpolate import interp1d import spectral.io.envi as envi import tensorflow as tf from scipy import optimize switch_excel = 0 switch_envi = 1 switch_dataFrame = 0 switch_sp_choice_envi = 0 switch_mutiBands = 1 #Modified ga...
Vincentyao1995/Globalink2017-UBC
python_lib/dvm/ModifiedGaussianModel.py
Python
mit
11,055
[ "Gaussian" ]
5fd51af03aff74dc95b986bf895dd3af827c4c6af7ed7f53003cf30fff37fbd6
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This module provides a class to fit ellipses. """ import math from astropy import log import numpy as np import numpy.ma as ma from .harmonics import (first_and_second_harmonic_function, fit_first_and_second_harmonics) from ....
astropy/photutils
photutils/isophote/fitter.py
Python
bsd-3-clause
16,937
[ "Galaxy" ]
81c84be739124362e2fe8659a5deb74c1fc5eab78418bcf93b87a30dfdbd9ae6
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','license','co...
dcarroll/forcemodule
build.py
Python
bsd-3-clause
5,808
[ "VisIt" ]
5a97b417f4798111f251a861d17a3c9f3b7feb330a5dfefd756c0d621863bbf5
from tao.tests.support.factories import DataSetFactory, DataSetPropertyFactory, GalaxyModelFactory, GlobalParameterFactory, SimulationFactory, UserFactory, SnapshotFactory, StellarModelFactory, DustModelFactory, BandPassFilterFactory, SurveyPresetFactory from tao.tests.integration_tests.helper import LiveServerTest cl...
IntersectAustralia/asvo-tao
web/tao/tests/integration_tests/dataset_tests.py
Python
gpl-3.0
2,741
[ "VisIt" ]
104680f8383050b51b91708cb5175dbdb91fa6b8019dd531d4b345316ffdfab8
#!/usr/bin/python import http.client import httplib2 import os import random import sys import time from apiclient.discovery import build from apiclient.errors import HttpError from apiclient.http import MediaFileUpload from oauth2client.client import flow_from_clientsecrets from oauth2client.file import Storage from...
mfwarren/yachtpromo
upload_video.py
Python
mit
6,730
[ "VisIt" ]
cbfa3a28ce50f9f1d29db8b235d8496fbe5effdd246bd7df3daca52315b49198
# -*- coding: utf-8 -*- """ Created on Mon Jun 19 17:36:35 2017 @author: asadm2 """ ### DESCRIPTION #This script carries out an exposure time check and an "at least 2 filters" #check import pandas as pd import numpy as np def expfil2(objname,revtxt): """ This function carries out an exposure time check an...
MehnaazAsad/ECO_Globular_Clusters
src/data/mods_prelim_checks_2/Exp_fil2.py
Python
mit
6,614
[ "Galaxy" ]
477511148e8bf9ad87267a7065bd2ba6ef95a8e99a1e280101a8134c196049cc
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/ci/gcisd.py
Python
apache-2.0
18,007
[ "PySCF" ]
353fe3be47b9749740f338381f651c08517372772bf79729670b1cd630cf0bf5
from property import * import nest import numpy.random as random # Neuron parameters iaf_neuronparams = {'E_L': -70., # Resting membrane potential in mV 'V_th': -50., # Spike threshold in mV 'V_reset': -67., # Reset membrane potential after a spike in ...
research-team/robot-dream
direct_translation/scripts/step_1 (columns+dopa)/parameters.py
Python
mit
2,916
[ "NEURON" ]
aee377d7a28bfb9879486f5bf5a46b9396b4cf65b66f95495cbce2d91025a2db
import os, sys import yaml from utils import * def fetch_genome(reference_name): """ Downloads a reference genome and prepares for aligment """ from utils import script_dir genome_list = yaml.load(open(script_dir + "/utils/genomes.yaml","r")) makedir("genomes") if reference_name not in ...
AndersenLab/pyPipeline
utils/genomes.py
Python
mit
1,678
[ "BWA" ]
ae43d1e4789198505c7f3147fd683d8bbe57668f6e6e45486b7469c8f8b5cfd5
# 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/. """ pytest test configures """ import pytest import os.path as osp import numpy as np import warnings import sisl pyt...
zerothi/sisl
sisl/io/tbtrans/tests/test_tbt.py
Python
mpl-2.0
19,984
[ "CRYSTAL" ]
10efb15d45aa459a1dc50c435d74772007e1f122863b76d5ea9d4c26a27abb85
import sys import numpy as np from numpy import mean, cov, dot, transpose from numpy import linalg as LA import math from scipy.sparse import csr_matrix from __builtin__ import str from copy import deepcopy import matplotlib.pyplot as plt from numpy.linalg import inv #np.random.seed(0) class Neuron(object): """Ne...
RoozbehFarhoodi/McNeuron
McNeuron/Neuron.py
Python
mit
70,044
[ "NEURON" ]
54febba33464ac1fb6645fcfb15c9da762abffb097c0087d96cf72a86e989bb0
""" Generate samples of synthetic data sets. """ # Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel, # G. Louppe # License: BSD 3 clause from itertools import product import numbers import numpy as np from scipy import linalg from ..preprocessing import LabelBinarizer from ..utils import...
depet/scikit-learn
sklearn/datasets/samples_generator.py
Python
bsd-3-clause
50,824
[ "Gaussian" ]
9769d5140a5c9d4344e0a9204734b3a4b5720656fefb7699fa7f60eea7f19911
""" ProxyRepository class is a front-end to the proxy repository Database """ __RCSID__ = "$Id$" import os import glob import time import urllib import random import hashlib import commands from DIRAC import gConfig, gLogger, S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.Core.Utilities import DErrno fro...
chaen/DIRAC
FrameworkSystem/DB/ProxyDB.py
Python
gpl-3.0
56,234
[ "DIRAC" ]
1af1e2dc6abde435dba0a352c62e8c82d58d54ff91a7540451d9b430ad72db7e
''' Nacker is a tool to circumvent 802.1x Network Access Control (NAC) on a wired LAN. Copyright (C) 2013 Carsten Maartmann-Moe 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 t...
mehulsbhatt/nacker
caravan/icmp.py
Python
gpl-2.0
1,202
[ "MOE" ]
0e35f069cd8d57f83fa4aa43a0ec1e27d864dee0283e359e9091cc38bff83bbc
"""Version information for MayaVi2. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2006, Enthought, Inc. # License: BSD Style. from mayavi.version import version as __version__
dmsurti/mayavi
mayavi/__version__.py
Python
bsd-3-clause
205
[ "Mayavi" ]
11d9ec5bf2dd24a096852c298724fa6f173e8b9d2a9dd5c84a0c71d2d4f37baa
# -*- coding: utf-8 -*- # Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., University of Heidelberg, and University of # of Connecticut School of Medicine. # All rights reserved. # Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., Universit...
jonasfoe/COPASI
copasi/bindings/python/unittests/Test_CCopasiObject.py
Python
artistic-2.0
4,243
[ "COPASI" ]
b16d656e8b0d22d3231f4622dd52165c736b7858794d4b3d7e200fc27040b83e
# -*- 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/topology/test_dlpoly.py
Python
gpl-2.0
3,036
[ "MDAnalysis" ]
f085d0c3299e13b498a7dc738f8d18ded62ed60ade71aa1e47d9e8e7edc150d4
from __future__ import division from __future__ import print_function from past.utils import old_div import sys sys.path.insert(1, "../../../") import h2o from tests import pyunit_utils from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator from h2o.grid.grid_search import H2OGridSearch # In this test, we ch...
h2oai/h2o-3
h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7367_gridsearch_subspaces.py
Python
apache-2.0
4,652
[ "Gaussian" ]
ec57b140239da5be9f1669c800ef9d906c46d74b33c5c5795b462ec8125256dc
import time from nxtools import logging, s2tc from firefly.qt import ( Qt, QLineEdit, QTextEdit, QFontDatabase, QFont, QSpinBox, QCheckBox, QPushButton, QColorDialog, QColor, ) class FireflyString(QLineEdit): def __init__(self, parent, **kwargs): super(FireflyStri...
immstudios/firefly
firefly/widgets/simple.py
Python
gpl-3.0
5,969
[ "Firefly" ]
244f522980395e5d1c919b33a18ef3f9816662b68d364c8f1b5e703b3338824f
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
google-research/deep_representation_one_class
util/train.py
Python
apache-2.0
27,277
[ "Gaussian" ]
373b3c56b027a42fc91c497a9387e6964a8f76e23b36c919dace9461f180595c
import os from setuptools import setup from setuptools import find_packages version = '0.1' shortdesc = "Search for bda.plone.shop" longdesc = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read() longdesc += open(os.path.join(os.path.dirname(__file__), 'CHANGES.rst')).read() #longdesc += open(os.path.jo...
espenmn/bda.plone.shopsearch
setup.py
Python
bsd-3-clause
1,314
[ "MOE" ]
02876f74f27baca7dcf50e894ea3d0fb8d168d84fa7fa4bdf87e2d7040389cac
######################################################################## # $HeadURL $ # File: FTSAgent.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/05/31 10:00:13 ######################################################################## """ :mod: FTSAgent ============== .. module: FTSAgent :syno...
rajanandakumar/DIRAC
DataManagementSystem/Agent/FTSAgent.py
Python
gpl-3.0
46,311
[ "DIRAC" ]
9a114c49a4f022fd0c116a6a242d9b6c22214578e6d82e7859c931d06fa6efb9
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 xmodule.modulestore import Location from xmodule.seq_module import Sequen...
praveen-pal/edx-platform
common/lib/xmodule/xmodule/course_module.py
Python
agpl-3.0
45,434
[ "VisIt" ]
179f86716af7a219ee4eec2bc3e1516592279e0a83b442d8ee961aca373ad7a2
# Author: Travis Oliphant 2001 # Author: Nathan Woods 2013 (nquad &c) import sys import warnings from functools import partial from . import _quadpack import numpy from numpy import Inf __all__ = ['quad', 'dblquad', 'tplquad', 'nquad', 'quad_explain', 'IntegrationWarning'] error = _quadpack.error class ...
nmayorov/scipy
scipy/integrate/quadpack.py
Python
bsd-3-clause
37,367
[ "Gaussian" ]
795ec4de7f225c1c5a16d8d418d626e60f44c9abc054d2d02e4b7edab050c315
# 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 "License"); you may not use ...
Jc2k/libcloudcore
libcloudcore/serializers/xml.py
Python
apache-2.0
6,027
[ "VisIt" ]
dab0aad7559efcb1f7cd417d48155dad80f93d7cd16214c933d751c2ce7f61e2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Utilities for generating nicer plots. """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __mai...
sonium0/pymatgen
pymatgen/util/plotting_utils.py
Python
mit
5,230
[ "pymatgen" ]
ca72b01ac341c78bcb2c6fca61e55afe52e98e6fc6b075e9c725af869a00fb80
# -*- coding: utf-8 -*- # # test_stdp_triplet_synapse.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 t...
hakonsbm/nest-simulator
pynest/nest/tests/test_stdp_triplet_synapse.py
Python
gpl-2.0
12,696
[ "NEURON" ]
09386edcb20b723f96d677f2eadff7e4a0299755b4a2e8b42523ba8d18ca83e4
# -*- coding: utf-8 -*- """ "Sandbox" module for exploring API useful for digital labbooks. Examples -------- >>> from chempy.units import to_unitless, default_units as u >>> s1 = Solution(0.1*u.dm3, {'CH3OH': 0.1 * u.molar}) >>> s2 = Solution(0.3*u.dm3, {'CH3OH': 0.4 * u.molar, 'Na+': 2e-3*u.molar, 'Cl-': 2e-3*u.mola...
bjodah/aqchem
chempy/_solution.py
Python
bsd-2-clause
5,994
[ "ChemPy" ]
e30069c3acd106c5013fc6b2e9c103385c34cb420d8f9fab5dde1782a1d83f94
# This file is part of xrayutilities. # # xrayutilities is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed...
dkriegner/xrayutilities
tests/test_materials_findsym.py
Python
gpl-2.0
1,502
[ "CRYSTAL" ]
1c608e5f3cb492a94b299d866cbfa99fb3a4826447912685180c66aab3211ce4
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/plugins/images/lib/__init__.py
Python
gpl-2.0
2,176
[ "Brian" ]
7c39d93a464abc3dffc5beae34e7765b30139e9a048be95cefa62fdc51b56ddb
#removes first 2 lines from all outputfiles import operator import os from galaxy import datatypes def exec_after_process(app, inp_data, out_data, param_dict,tool, stdout, stderr): for data_count in range(len(out_data)): output_filename = param_dict.get( 'out_file'+str(data_count+1), None ) if ou...
jmchilton/galaxy-central
tools/emboss/phylipnew/remove_first_2_lines.py
Python
mit
628
[ "Galaxy" ]
6a5e531e3d3fb21eb8183232b746947882816f10f7c0280af9b8fd9734613f11
"""Definitions of Celery tasks in Askbot in this module there are two types of functions: * those wrapped with a @task decorator and a ``_celery_task`` suffix - celery tasks * those with the same base name, but without the decorator and the name suffix the actual work units run by the task Celery tasks are special ...
simalytics/askbot-devel
askbot/tasks.py
Python
gpl-3.0
13,501
[ "VisIt" ]
7fa2ae527fbb29971564a3a7fa8984343d96e80c56ba2053db599d662e3f1c2f
# Copyright 2010 Google Inc. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # trib...
mattcaldwell/boto
boto/gs/key.py
Python
mit
40,236
[ "VisIt" ]
9aabf45e1d30cb7246d56c35af3e6648a0c95ea111971e4fc0d65140dc59aafe
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS that utilize the progress page. """ from __future__ import absolute_import from six.moves import range from contextlib import contextmanager import ddt from ...fixtures.course import CourseFixture, XBlockFixtureDesc from ...pages.common.logout import LogoutPage...
jolyonb/edx-platform
common/test/acceptance/tests/lms/test_progress_page.py
Python
agpl-3.0
16,866
[ "VisIt" ]
5406348640bc2e33ebc63e934ac120cef20291c2247aebf74f3fa853fd579e14
# Copyright 2010 The Closure Library Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
dmincu/IOC
new_php/closure-library/closure/bin/build/jscompiler.py
Python
mit
4,237
[ "VisIt" ]
abc85f59bd33324283bae70d8d193a5d73e2b641a5d62a89b5fa99e175cb9580
# (c) 2012-2014, 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) an...
j0057/ansible-1
lib/ansible/utils/__init__.py
Python
gpl-3.0
60,463
[ "Galaxy", "VisIt" ]
503887e7175c2a04a3a5ea9c27e972f08dbf87354df7492215395bd56f44134f
import os, shutil class calculate_stability(object): def __init__(self): self.new_sequences_list = [] self.split_new_seq_list = [] self.num_splits = 4 self.structure = "2YP7" self.bash_file_name = "bash_file.sh" if self.structure == "1HA0": self.structur...
blab/stability
augur/mutator/mutate_everything_2YP7/mutator_stability.py
Python
agpl-3.0
5,914
[ "FoldX" ]
5e7a32fd50664c0a204ce57f8d672885f0e946025a1caa9a362255431309ddb7
import binascii import pytest import flextls from flextls.connection import DTLSv10Connection from flextls.exception import NotEnoughData from flextls.protocol.handshake import DTLSv10Handshake from flextls.protocol.handshake import ServerCertificate from flextls.protocol.record import Record, DTLSv10Record class T...
DinoTools/python-flextls
tests/test_dtls_1_0.py
Python
lgpl-3.0
15,918
[ "FEFF" ]
22b646270600da7414ebfc9e8ad8076c1ce9f6b1a4b73435a14caaf0bc00bc02
from __future__ import division, print_function import numpy as np import matplotlib.pyplot as plt import glob import astropy.io.fits as pyfits import scipy.ndimage as nd from astropy.modeling import models, fitting plt.ion() fnames = glob.glob('/Users/mireland/data/veloce/Feb28/QE*fits') focus = [int(f[-8:-5]) for f ...
mikeireland/veloce
utils/fwhm_computation.py
Python
gpl-3.0
4,129
[ "Gaussian" ]
a7c7e8bbfbed471c21ed96731a0f41644b7759e7b6fa3ba34dd001c757689a7b
""" cache v0.01 simple object serializing cache wrapper and client side partitioner for redis Copyright 2012 Brian Monkaba This file is part of ga-bitbot. ga-bitbot 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 Softw...
khoffrath/ga-bitbot
libs/cache.py
Python
gpl-3.0
5,642
[ "Brian" ]
72fc5540a9003a44c7c2e6bac1ac4f9d0651d5f34f2e179842bc18165424f119
import unittest import os from io import StringIO from molutils.util.molecule import Molecule from molutils.util.periodic_table import lookup_element_by_symbol from molutils.util.job_formatters.psi4 import Psi4JobFormatter PATH_TO_PSI4 = "/opt/psi4/bin/psi4.run" DIMER_XYZ_FILE = ( "21\n" "molecule_title\n" ...
jasonrig/molecule-utils
tests/molecule_tests.py
Python
mit
10,132
[ "Psi4" ]
b7e2fc5e470cc5a3427359bcb7310f6fb93b53d888530d78d3d382095dc0cb5d
import pickle from io import BytesIO import numpy as np import scipy.sparse import warnings from sklearn.datasets import load_digits from sklearn.cross_validation import cross_val_score from sklearn.externals.six.moves import zip from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import...
loli/sklearn-ensembletrees
sklearn/tests/test_naive_bayes.py
Python
bsd-3-clause
11,994
[ "Gaussian" ]
a6b80bfbd46e30978a92cbdcb99da4e5a7a814ec1714286f60c69b04d771cad0
from ase import Atom from ase.units import Hartree from gpaw import GPAW, FermiDirac from gpaw.cluster import Cluster from gpaw.test import equal h =.3 box = 4. energy_tolerance = 0.0004 s = Cluster([Atom('Zn')]) s.minimal_box(box, h=h) E = {} E_U = {} for spin in [0, 1]: c = GPAW(h=h, spinpol=spin, ...
robwarm/gpaw-symm
gpaw/test/Hubbard_U_Zn.py
Python
gpl-3.0
670
[ "ASE", "GPAW" ]
975c7053f5cacf1b49948d2ad74bc42ad3a2f4a4a6cd1d88e85943e0ca29ba57
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Created on Jun 9, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Sh...
migueldiascosta/pymatgen
pymatgen/matproj/tests/test_rest.py
Python
mit
11,617
[ "pymatgen" ]
69759040a89136c72e079a8a65b72c63a7a8e3afe67fe233487505729ab7231e
# net.py # A dead-simple neural network # # Potential improvements: # - Support topologies other than 1 hidden layer # - Add other training strategies (adaptive learning rate, momentum) # - Add more error checking import numpy as np class Net(object): """ Neural network class with: - 1 hidden layer - ...
gregdeon/simple-ann
src/net.py
Python
mit
9,516
[ "NEURON" ]
4ba6373dbd302adb7c20e68d14eb81bf626d0911c692f660e4889743478ccda3
from pyrocopy import pyrocopy from setuptools import setup, find_packages setup( name='pyrocopy', version=pyrocopy.__version_str__, description='A suite of robust file copying utilities for Python.', long_description="""pyrocopy is a suite of advanced file utility functions for efficiently copying all o...
caskater4/pyrocopy
setup.py
Python
mit
2,047
[ "VisIt" ]
61c7c5c6d678f69439f971d063540de2e0ee87b8c992ba325f683ef41061450a
"""Get useful information from live Python objects. This module encapsulates the interface provided by the internal special attributes (co_*, im_*, tb_*, etc.) in a friendlier fashion. It also provides some help for examining source code and class layout. Here are some of the useful functions provided by this module:...
PennartLoettring/Poettrix
rootfs/usr/lib/python3.4/inspect.py
Python
gpl-2.0
103,929
[ "VisIt" ]
a65505f17a72f8d07f85a68e7a90f2ba9962b77670593f8f7b22ff4e2fdcc05b
# Copyright 2012-2014 Brian May # # This file is part of python-tldap. # # python-tldap 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....
Karaage-Cluster/python-tldap
tldap/__init__.py
Python
gpl-3.0
1,024
[ "Brian" ]
38e84da53d0814ad8ee09c92c83623bd3279a1f9db3972e19291043fb72b376c
# data modules import glob import sys import astropy.io.fits as fits import os from os.path import join import pickle import time # numerical modules import numpy as n from scipy.interpolate import interp1d from scipy.misc import derivative from scipy.optimize import minimize from scipy.optimize import curve_fit # plo...
JohanComparat/nbody-npt-functions
python/lib_functions_1pt.py
Python
cc0-1.0
51,018
[ "TINKER" ]
d7f0a89e14e246dbce392cf64db12019bdc6ad95f2295145611043a39802a431
"""Math commands""" from .sr850_driver import SR850Driver class SR850Math(SR850Driver): """Math commands""" def smth(self, width): """Smooth the data trace of the active display. This command may take some time to complete. If a scan is in progress, this method will pause the scan. ...
PALab/PLACE
place/plugins/sr850_amp/sr850_math.py
Python
lgpl-3.0
4,769
[ "Gaussian" ]
0135e1f4370a15be1ff59c2b814db65973ed179cb5d9e19c648064bcacacb480
from boltons.iterutils import remap from mongoengine.queryset.visitor import Q from mpcontribs.api import enter from mpcontribs.api.projects.document import Projects from mpcontribs.api.contributions.document import Contributions def visit(path, key, value): if isinstance(value, dict) and "display" in value: ...
materialsproject/MPContribs
mpcontribs-api/maintenance.py
Python
mit
1,365
[ "VisIt" ]
fa1974021f35e7e0ba997b69f9a0f00fb86c63f5a5d32d67a7dc3de718b3f161
''' Created on Feb 23, 2016 @author: jason ''' import numpy as np from sklearntools.sklearntools import StagedEstimator, MaskedEstimator,\ ColumnSubsetTransformer, NonNullSubsetFitter, safe_assign_column from sklearn.linear_model.base import LinearRegression from sklearn.linear_model.logistic import LogisticRegres...
jcrudy/sklearntools
sklearntools/test/test_sklearntools.py
Python
bsd-3-clause
17,863
[ "Gaussian" ]
c2a7cb3d16b8d66fe17bd0aded9ed044a4796fc8a372a63b09d1ddd9c023fc44
import numpy as np import scipy.stats as ss import scipy.special as sp from .family import Family from .flat import Flat from .normal import Normal from .gas_recursions import gas_recursion_t_orderone, gas_recursion_t_ordertwo from .gas_recursions import gasx_recursion_t_orderone, gasx_recursion_t_ordertwo from .gas_...
RJT1990/pyflux
pyflux/families/t.py
Python
bsd-3-clause
13,051
[ "Gaussian" ]
2a4dac965c2796e83fb0ec4b190521b68cc904310d6c7db3f55bb275796af23d
import cv2 import numpy as np import math import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import axes3d from matplotlib import cm from matplotlib.ticker import LinearLocator, FormatStrFormatter from mpl_toolkits.mplot3d import Axes3D from methods_exist.trackers.kcf_tracker.RectTools import * class KCFTrack...
hehewa/pytorchStudy
methods_exist/trackers/kcf_tracker/KCFTracker.py
Python
apache-2.0
8,593
[ "Gaussian" ]
ce18e9c26774c8701389ec59443d1b37866ebe7cb96d3b86374452388b368e31
import os as _os _on_rtd = _os.environ.get('READTHEDOCS', None) == 'True' if not _on_rtd: import numpy as _np def gaussian(x, mu, sigma): """ Gaussian function of the form :math:`\\frac{1}{\\sqrt{2 \\pi}\\sigma} e^{-\\frac{(x-\\mu)^2}{2\\sigma^2}}`. .. versionadded:: 1.5 Parameters ---------...
joelfrederico/SciSalt
scisalt/numpy/functions.py
Python
mit
581
[ "Gaussian" ]
33c1f8e4a7625edb151d1f0b444d7ff29c70c43ad2b0ffdf3564f95bc4954a27
# coding: utf-8 #!/usr/bin/env python from __future__ import division, unicode_literals """ #TODO: Write module doc. """ __author__ = 'Shyue Ping Ong' __copyright__ = 'Copyright 2013, The Materials Virtual Lab' __version__ = '0.1' __maintainer__ = 'Shyue Ping Ong' __email__ = 'ongsp@ucsd.edu' __date__ = '8/1/15' i...
rousseab/pymatgen
pymatgen/io/smartio.py
Python
mit
487
[ "pymatgen" ]
8bba6156392fa05923c0e2905928c1129afcb05d77ee9c39dcce513a72607003
#!/usr/bin/env python # (C) Copyright IBM Corporation 2004 # All Rights Reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # on the...
gzorin/RSXGL
extsrc/mesa/src/mapi/glapi/gen/gl_SPARC_asm.py
Python
bsd-2-clause
9,007
[ "Brian" ]
2a155d6dd7cd9068356b7e2fa1e3900cb3698cb34d20cfd59acbfc6f26d2aa62
# -*- coding: utf-8 -*- from shop.models.cartmodel import Cart from django.contrib.auth.models import AnonymousUser def get_cart_from_database(request): database_cart = Cart.objects.filter(user=request.user) if database_cart: database_cart = database_cart[0] else: database_cart = None r...
creimers/django-shop
shop/util/cart.py
Python
bsd-3-clause
3,099
[ "VisIt" ]
be8889b2aec0910c984d13b58cd6a8ce5d5c1d2453fb1849e9439217159480b6
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # hashid.py - Software to identify the different types of hashes # Copyright (C) 2013-2015 by c0re <c0re@psypanda.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fre...
Miskerest/IDCrash
hashID/hashid.py
Python
mit
47,274
[ "ASE" ]
f5d39fdda0fb3335470e38da7860966d487376758c989ab1337c004388fa1141
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. r""" This module contains classes useful for analyzing ferroelectric candidates. The Polarization class can recover the spontaneous polarization using multiple calculations along a nonpolar to polar ferroelectric distortion. T...
vorwerkc/pymatgen
pymatgen/analysis/ferroelectricity/polarization.py
Python
mit
19,810
[ "CRYSTAL", "VASP", "pymatgen" ]
3e0ae6834e7952597d7fe6308ba10689f85f170b2293685a4edf9a1cd83284df
#http://fileinfo.com/filetypes/raster_image IMAGE_EXT = """ .001 Fax File .2BP Pocket PC Bitmap Image File .360 360desktop Panorama File .411 Mavica Thumbnail Image .73I TI-73 Screenshot File .8CA TI-84 Plus C Image Var Format .8CI TI-84 Plus C Pic Vars Format .8PBS Adobe Photoshop Macintosh File .8XI TI-83...
Mioced/mm-searcher
src/image_extentions.py
Python
mit
13,857
[ "Amber" ]
147da56f3918edd53b8a5e3a03f7dfdbd51de28a4c410c8c6f44b5d8f5a54f74
#!/usr/bin/env python from sys import exit from random import randint class Scene(object): def enter(self): print "This scene is not yet configured. Subclass it and implement enter()." exit(1) class Engine(object): def __init__(self, scene_map): self.scene_map = scene_map def play(self): current_scen...
moralesjason/learnpythonthehardway
ex43basicobjectorientedanalysisanddesign.py
Python
gpl-3.0
7,718
[ "BLAST" ]
7be74f4cb8895a2c564ed8e6d8b96c67aacf479bce9bbd108c538f6d253142eb
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- outputDir = '/Users/seb/Desktop/Geometry-can/' inputFile = '/Users/seb/Downloads/ParaViewData-3.98.1/Data/can.ex2' # --------------------...
Kitware/tonic-data-generator
scripts/paraview/samples/Geometry-can.py
Python
bsd-3-clause
1,859
[ "ParaView" ]
1a255f4522d1867d6c7c8fee50a4925e51ee2b0b2ccae8f6c80ae03f4df851aa
""" test_SpikingTransmission.py This file is part of ANNarchy. Copyright (C) 2020 Helge Uelo Dinkelbach <helge.dinkelbach@gmail.com> 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 Found...
vitay/ANNarchy
tests/Unittests/test_SpikingTransmission.py
Python
gpl-2.0
7,599
[ "NEURON" ]
2fa6d43e6d4732b2da09ab14858e87ea388b39b780cd8f957e42706ee1128ff8
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Nodes for PPAPI IDL AST""" # # IDL Node # # IDL Node defines the IDLAttribute and IDLNode objects which are constructed # by th...
plxaye/chromium
src/ppapi/generators/idl_node.py
Python
apache-2.0
14,337
[ "VisIt" ]
b4e8faa47e7fad265471756f630de2acc3de227652d66752aa3aad7e675bf42b
from galaxy.test.base.twilltestcase import TwillTestCase #from twilltestcase import TwillTestCase class EncodeTests(TwillTestCase): def test_00_first(self): # will run first due to its name """3B_GetEncodeData: Clearing history""" self.clear_history() def test_10_Encode_Data(self): ...
jmchilton/galaxy-central
galaxy/test/functional/test_3B_GetEncodeData.py
Python
mit
1,185
[ "Galaxy" ]
2c3c256f58ceabe102717818b92e529d033f2736b17ca3a6ecb3e6f5885859a3
########################################################################### # TaskToKmz # Copyright 2013 by Tonino Tarsi <tony.tarsi@gmail.com> # # Please refer to the LICENSE file for conditions # Visit http://www.vololiberomontecucco.it # ######################################################################...
ToninoTarsi/TaskToKmz
TaskToKmz.py
Python
gpl-3.0
7,882
[ "VisIt" ]
788598b6c7df8bda93d72a669423c38bf20c43300ded6efff3711274a0310aa7
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os from pymatgen.core.structure import Structure from pymatgen.io.atat import Mcsqs from pymatgen.util.testing import PymatgenTest from pymatgen.util.testing import PymatgenTest test_dir = os.path.joi...
gmatteo/pymatgen
pymatgen/io/tests/test_atat.py
Python
mit
3,797
[ "pymatgen" ]
81f49159a38787263d7cc3716435478065324e4e18c6cab6a19c0af046d759d8
import numpy as np from pyiid.experiments.elasticscatter.kernels.master_kernel import get_rw, \ get_chi_sq, get_grad_rw, \ get_grad_chi_sq from ase.calculators.calculator import Calculator __author__ = 'christopher' def wrap_rw(gcalc, gobs): """ Generate the Rw value Parameters ----------- ...
CJ-Wright/pyIID
pyiid/calc/__init__.py
Python
bsd-3-clause
4,468
[ "ASE" ]
aea190d75394e263cb70c7fe3fbc039aa4500802e32a13987c00a10fec346ab0