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
import copy from structlog import get_logger from app.helpers.schema_helpers import get_group_instance_id from app.questionnaire.location import Location from app.questionnaire.routing_path import RoutingPath from app.questionnaire.rules import ( evaluate_goto, evaluate_skip_conditions, is_goto_rule, g...
ONSdigital/eq-survey-runner
app/questionnaire/path_finder.py
Python
mit
12,982
[ "VisIt" ]
4ff25b4a79950c7222775d3fa08d028876b63eb421cedf82214e33e588de9004
import numpy as np from numpy.testing import assert_almost_equal, assert_allclose import pickle import os from skcv import data_dir from skcv.multiview.two_views.fundamental_matrix import * from skcv.multiview.util.points_functions import * from skcv.multiview.util.camera import * def test_fundamental_from_cameras():...
guillempalou/scikit-cv
skcv/multiview/two_views/tests/test_fundamental_matrix.py
Python
bsd-3-clause
3,578
[ "Gaussian" ]
0f7bcd3217a4ba0babcf14dc3821313a02b736ee87831c71d1c5409ca4d9fc1f
from distutils.core import setup setup( name='RiboMethSeq', version='0.1.1', author='Brett N. Olsen', author_email='brett.olsen@gmail.com', packages=['ribomethseq'], scripts=['bin/calculate-ribomethseq-from-bam', 'bin/bed-to-wig', 'bin/split-bed'], license='LICENSE', description='Implem...
caethan/ribomethseq
setup.py
Python
mit
436
[ "pysam" ]
ef646a019af18158d86192f542727b8217207d0c611dbe2eaa1249dbbde37e09
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/dmrgscf/dmrgci.py
Python
apache-2.0
43,433
[ "Molpro", "PySCF" ]
da043ec6147b74357192cdd33fc9154409d0d69affaa07d1d7ce6c0eb9dcac8e
"""\ This program inputs a GAMESS basis, e.g. from the EMSL basis set order form, and formats it into PyQuante format Copyright (c) 2004, Richard P. Muller. All Rights Reserved. PyQuante version 1.2 and later is covered by the modified BSD license. Please see the file LICENSE that is part of this distribution. "...
gabrielelanaro/pyquante
PyQuante/Basis/Tools.py
Python
bsd-3-clause
3,588
[ "GAMESS" ]
a3d9793a69d58afc174a20151a10ac4051183cb30fc200a64a6847b4a2768119
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TakayukiSakai/tensorflow
tensorflow/contrib/distributions/python/ops/normal.py
Python
apache-2.0
10,511
[ "Gaussian" ]
0b27a230521271bce9bb43e5bfc6fedc236ca6e06a77b8eb2ef50c14122daad5
# -*- coding: utf-8 -*- """ morphsnakes =========== This is a Python implementation of the algorithms introduced in the paper Márquez-Neila, P., Baumela, L., Álvarez, L., "A morphological approach to curvature-based evolution of curves and surfaces". IEEE Transactions on Pattern Analysis and Machine Intelligen...
tian-zhou/InstrumentSegmentation
help/snake_python/morphsnakes.py
Python
gpl-2.0
11,921
[ "Mayavi" ]
6e5e751315ddcb7b5983bfc69895fe1f3e025bb19ecc61d24cc4cf81f67cc984
import warnings import unittest as unittest import numpy as np from scipy.spatial import ConvexHull from pymatgen import Composition from pymatgen.entries.computed_entries import ComputedEntry from pymatgen.analysis.phase_diagram import PhaseDiagram, \ GrandPotentialPhaseDiagram from pymatgen.analysis.reaction_cal...
mbkumar/pymatgen
pymatgen/analysis/tests/test_interface_reactions.py
Python
mit
26,284
[ "pymatgen" ]
b38aaa8882ed61892dd4db28ae137d9b259c45631548b472c93ee53a2b2b2993
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) # Kurt Cutajar import numpy as np class GridPosterior(object): """ Specially intended for the Grid Regression case An object to represent a Gaussian posterior over latent function values,...
befelix/GPy
GPy/inference/latent_function_inference/grid_posterior.py
Python
bsd-3-clause
1,826
[ "Gaussian" ]
3e0bd91c7edcb969ca7d6bc94537387eea6d51f22bcfe7c1d9e765f55159aad9
#!/usr/bin/env python # Author: Qiming Sun <osirpt.sun@gmail.com> ''' Change the default SCF convergence criteria iterations. SCF object has a hook check_convergence to redefine the convergence criteria. If a convergence testing function is assigned to the attribute check_convergence of an SCF object, the testing fu...
gkc1000/pyscf
examples/scf/55-overload_convergence_criteria.py
Python
apache-2.0
1,202
[ "PySCF" ]
ba08cb1f846fa14ed59164945ec084f92fdb9966b68d64a66b9804e98fc0ebdf
""" Functions that compute circular variance and orientation bandwidth from the full_matrix data. """ from math import pi,sin,cos,sqrt import numpy from numpy import array import topo # # Smoothing function # def smooth(x,window_len=10,window='hanning'): """smooth the data using a window with requested size. ...
ioam/svn-history
contrib/jm_analysis.py
Python
bsd-3-clause
7,287
[ "NEURON" ]
03009ac78787488df46f95fdd1403bbd20c65d80461c9dbbbb71211a3ad7d48f
# # gPrime - A web-based genealogy program # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2005-2009 Serge Noiraud # Copyright (C) 2007-2009 Brian G. Matherly # Copyright (C) 2010 Peter Landgren # Copyright (C) 2010 Jakim Friant # Copyright (C) 2011 Adam Stein <adam@csh.rit.edu> # C...
sam-m888/gprime
gprime/plugins/docgen/odfdoc.py
Python
gpl-2.0
70,275
[ "Brian" ]
199b6329c51a705cb9fccd18a68a9c7d7120b6aa908a29f7a1f4aa41c80c801e
import numpy as np import GPy from mcmcGP import BinnedPoisson, GPMCMC, SGPMCMC, HMC from jug import TaskGenerator as TG def load_coal(): X = np.loadtxt('coal.csv') return X #@TG def build_vb(bin_mids, counts, num_inducing, seed): np.random.seed(seed) # grid Z Z = np.linspace(bin_mids.min(), bin_...
sparseMCMC/NIPS2015
experiments/coal/coal_plotting.py
Python
gpl-2.0
6,720
[ "Gaussian" ]
de56d12cacc883435f80edc28b472c815d11715f9c0e2363c82474859b4cde68
""" Test the about xblock """ import datetime import pytz from django.conf import settings from django.core.urlresolvers import reverse from django.test.utils import override_settings from mock import patch from opaque_keys.edx.locations import SlashSeparatedCourseKey from course_modes.models import CourseMode from x...
olexiim/edx-platform
lms/djangoapps/courseware/tests/test_about.py
Python
agpl-3.0
22,488
[ "VisIt" ]
bc5bcc52c8c13cea1937b53f4cbb01bc511b20d07619bedabb35e1bec63238a1
import argparse from acpype.params import MAXTIME, epilog, outTopols, usage def get_option_parser(): # not used yet: -e -l -r parser = argparse.ArgumentParser(usage=usage + epilog) group = parser.add_mutually_exclusive_group() parser.add_argument( "-i", "--input", action="stor...
alanwilter/acpype
acpype/parser_args.py
Python
gpl-3.0
5,074
[ "Amber", "CHARMM", "MOPAC" ]
dbd3d2b0d25daf393fb78d28bf2ea290d523b918bc70ca1f332cd36626122ed1
# Tests min and variance to check whether Newcomb's speed of light data is Gaussian or not # Author : Aleyna Kara # This file is generated from https://github.com/probml/pmtk3/blob/master/demos/newcombPlugin.m import superimport import pyprobml_utils as pml import numpy as np import requests import matplotlib.pyplot ...
probml/pyprobml
scripts/newcomb_plugin_demo.py
Python
mit
1,651
[ "Gaussian" ]
e6d25fd51968b6bca66b407c9e6f8f88e2f0615b4eea07f4f5a51a01cc1f39fe
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # findtype - Detect client entity type # Copyright (C) 2003-2015 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 License...
heromod/migrid
mig/shared/findtype.py
Python
gpl-2.0
3,561
[ "Brian" ]
fcbe4c93bac6592d7d27d8828c094b6c4a17912771d4199160d32851acea9a05
# -*- 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_CChemEq.py
Python
artistic-2.0
4,443
[ "COPASI" ]
a4b5c5d24e68af4e92ce40e022b0535de0dcf91392801acbc9b13554debcaad5
#!/usr/bin/pythonTest # -*- coding: utf-8 -*- # # Collection functions Output # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later v...
netvigator/myPyPacks
pyPacks/Collect/Output.py
Python
gpl-2.0
5,707
[ "MOE" ]
1d9401be7fb6d55c0537228a9768e4b65e45f9717976618d44b7c06c71d57e28
#!/usr/bin/python """ gene_server v0.01 - a xmlrpc server providing a storage/query service for the GA trade system Copyright 2011 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 Licens...
enikesha/ga-bitbot
gene_server.py
Python
gpl-3.0
22,487
[ "Brian" ]
170b2ba7b45bf18fa1d3cea4f7ddf29f9a6e8f26b06cff21dba4c71f6b0ebf63
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """Tools for identifying, reading and writing files and streams.""" from __future__ import print_function import io imp...
gaursagar/cclib
src/cclib/io/ccio.py
Python
bsd-3-clause
14,822
[ "ADF", "Dalton", "GAMESS", "Gaussian", "Jaguar", "MOPAC", "Molpro", "NWChem", "ORCA", "cclib" ]
24411be99d35bb1622de34cb61d8c34d5151d8b0f9dab94ae304f8aa5aa2e038
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* -------...
gratefulfrog/lib
python/pymol/parser.py
Python
gpl-2.0
34,589
[ "PyMOL" ]
05b6b118a9b030efe615249fafaf4550cf88ca847037f8cab73a6fb13ff915ef
import functools from typing import List, Any import numpy as np import scipy.sparse as sp import pytest from sklearn.metrics import euclidean_distances from sklearn.random_projection import johnson_lindenstrauss_min_dim from sklearn.random_projection import _gaussian_random_matrix from sklearn.random_projection im...
glemaitre/scikit-learn
sklearn/tests/test_random_projection.py
Python
bsd-3-clause
13,593
[ "Gaussian" ]
a7481b1bf1aeedbb92a0b6b56cde4eb782826be0d215db02ddae35a043711908
## Absolute location where all raw files are RAWDATA_DIR = '/auto/cmb-06/as/skchoudh/dna/May_05_2018_Penalva_RPS05/PenalvaL_05022018' ## Output directory OUT_DIR = '/staging/as/skchoudh/rna/May_05_2018_Penalva_RPS05' ## Absolute location to 're-ribo/scripts' directory SRC_DIR = '/auto/cmb-panasas2/skchoudh/github_...
saketkc/ribo-seq-snakemake
configs/May_05_2018_Penalva_RPS05.py
Python
bsd-3-clause
2,308
[ "HTSeq", "pysam" ]
baab41048a6147d77a8db88223dd57124b41fdffaf942ee6a063123694353bcc
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either...
emersonsoftware/ansiblefork
lib/ansible/executor/module_common.py
Python
gpl-3.0
37,121
[ "VisIt" ]
c43e0a537e3b582a756e46d6e5d34e49ced1924ddc246b8048eb103261a10306
#! /bin/bash/env python from Applications import NcbiblastpCommandline import math import os from decimal import * import settings added = [] class Blaster(object): def __init__(self): pass def blast(self, evalue): # create a database and conduct the all-vs-all BLAST search against it print 'Creating databas...
jfoox/venninator
blast.py
Python
mit
4,357
[ "BLAST" ]
1c89a6eb8a7280324f35ee4c7b930b3d293b17c9c970b16f90db583d017e05a0
# -*- coding: utf-8 -*- """ End-to-end tests for LibraryContent block in LMS """ import ddt import textwrap from nose.plugins.attrib import attr from ..helpers import UniqueCourseTest from ...pages.studio.auto_auth import AutoAuthPage from ...pages.studio.overview import CourseOutlinePage from ...pages.studio.library ...
beni55/edx-platform
common/test/acceptance/tests/lms/test_library.py
Python
agpl-3.0
13,189
[ "VisIt" ]
025824f636a922484fe4ebb7f834528ebeb9b7443a5310accb4303ddeb315d7c
import pypyodbc import Log class TrnPhonebook(object): # cephonebookdev-sql.epic.com # CE_Phonebook_TRN def __init__(self): self.phonebook_dbo = "[CE_Phonebook_TRN].[dbo].[phonebook]" self.update_phonebook = "UPDATE {0}".format(self.phonebook_dbo) self.class_orgs = "OrgID > 99 AND...
jabez007/Training_Helpyr
Phonebook/__init__.py
Python
mit
8,865
[ "Galaxy" ]
0e1657e32478e453a88ecff2630c2853e458b3a1e8ca06520a82890b63c19bb7
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='brocc', version='1.4.0', author='Serena Dollive, Kyle Bittinger', author_email='kylebittinger@gmail.com', maintainer='Kyle Bittinger', maintainer_email='kylebittinger@gmail.com', d...
kylebittinger/brocc
setup.py
Python
gpl-3.0
883
[ "BLAST" ]
818899dc65fac738b13248c717babb28a5ad40041cbdd52d0a82810343024f14
# coding: utf-8 # ## Tracking and nowcasting of lightning flash-cells using data from the LINET network # Analysis of lightning strike density distribution, clustering, cell-tracking, and nowcasting using open-source tools (Python). # **Author**: Petar Sarajcev, PhD (petar.sarajcev@fesb.hr) # # University of Spli...
sarajcev/nowcasting
nowcasting.py
Python
gpl-3.0
55,031
[ "Gaussian" ]
cb78a1cfceb92a0b5f4e3752ea688787db13ea48328da18a221a98e112b8bbe0
################################################################################ # SCFGP: Sparsely Correlated Fourier Features Based Gaussian Process # Github: https://github.com/MaxInGaussian/SCFGP # Author: Max W. Y. Lam (maxingaussian@gmail.com) ####################################################################...
MaxInGaussian/SCFGP
experiments/boston_housing/test_regression.py
Python
bsd-3-clause
1,779
[ "Gaussian" ]
2f808c3c685b80640728acd11f8f3abaef8d0e205e8c378bf7919ca4ff8fad1c
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
os-cloud-storage/openstack-workload-disaster-recovery
dragon/flow_utils.py
Python
apache-2.0
1,348
[ "VisIt" ]
ca41ca9044dbca5af8f9ab8f6397ba08e4f0a7bcf85d9fe58a4cf3e5557c86ca
# Initialize App Engine and import the default settings (DB backend, etc.). # If you want to use a different backend you have to remove all occurences # of "djangoappengine" from this file. from djangoappengine.settings_base import * import os # the project directory ROOT_PATH = os.path.abspath(os.path.dirname(__file...
bdelliott/wordgame
web/settings.py
Python
mit
2,650
[ "Brian" ]
42626bb060a72247bea8400242a0c4eab6c0f0e8c4786b5bc2917c53a59c9898
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2005 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2010 Andrew I Baznikin # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
SNoiraud/gramps
gramps/plugins/rel/rel_no.py
Python
gpl-2.0
9,750
[ "Brian" ]
9540bf00b7b76b8b992fc1d40d2ee6bcbf1b7fd586f32be08c8d06585abc360e
# Copyright 2008 by Bartek Wilczynski # Adapted from Bio.MEME.Parser by Jason A. Hackney. 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. from Bio.Alphabet import IUPAC from Bi...
bryback/quickseq
genescript/Bio/Motif/Parsers/MEME.py
Python
mit
12,014
[ "Biopython" ]
d84d051c9188693e97dfa70c8d02c6c2b291a48380988bbcb40c766692c7c984
# encoding: UTF-8 # Copyright 2016 Google.com # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
dimroc/tensorflow-mnist-tutorial
mnist_4.0_batchnorm_five_layers_sigmoid.py
Python
apache-2.0
9,962
[ "Gaussian" ]
aa63b64d90be79ac6b39ff040e024832874c99d2090e874a4e39eb3dbc7aac34
''' Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction,...
ihateprog/Test
getbiochembl.py
Python
apache-2.0
20,284
[ "Pybel" ]
132604f983e76f579477a47def1815fa4741f0256bd6e7383d2ebd7a246cc19c
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
OpusVL/odoo
addons/project/project.py
Python
agpl-3.0
74,419
[ "VisIt" ]
0d0ac9de758d30ed4a7e3cd4aac50e2c759a0b0cbd04f275fc23d5974acd8657
# -*- coding: utf-8 -*- from parsimonious import Grammar from parsimonious import NodeVisitor import os # PDF to text with: # > pdftotext -layout -enc "UTF-8" [pdf file] [text file] grammars = [ r""" docket = page+ page = header body? footer page_break? header = ws* ~"COURT OF COMMON PLEAS OF PHILADELPHIA COUNTY"...
NateV/GrammarDev
grammar_dev/grammars/grammar_dev.py
Python
gpl-2.0
26,761
[ "VisIt" ]
ae06dc488f37b518f60fde7a65078eb59d566ab8e38c5e8978895ce723daf4f9
# -*- coding: utf-8 -*- # Copyright 2007-2022 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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 y...
jat255/hyperspy
hyperspy/tests/samfire/test_strategy.py
Python
gpl-3.0
18,681
[ "Gaussian" ]
f502a4f3e0aa515e2b096d61ce092106efaea77f3b08b77cf81de2be11afb7b6
# dialog.py --- A Python interface to the ncurses-based "dialog" utility # -*- coding: utf-8 -*- # # Copyright (C) 2002, 2003, 2004, 2009, 2010, 2013 Florent Rougon # Copyright (C) 2004 Peter Åstrand # Copyright (C) 2000 Robb Shecter, Sultanbek Tezadov # # This library is free software; you can redistribute it and/o...
tranquilit/WAPT
lib/site-packages/dialog.py
Python
gpl-3.0
150,382
[ "VisIt" ]
842547f5095ce8c318b5eb73f0a01b2d9ed61fd6f7cc252c60e5df129eb17b64
""" Copyright (c) 2015 Civic Knowledge. This file is licensed under the terms of the Revised BSD License, included in this distribution as LICENSE.txt """ import petl import six from ambry_sources.util import copy_file_or_flo from .exceptions import SourceError class Source(object): """Base class for accessor...
CivicKnowledge/ambry_sources
ambry_sources/sources/accessors.py
Python
bsd-2-clause
21,176
[ "VisIt" ]
69218c976016a1d4d73098b2cc712d7e38f0d452013a7098608572bad158e463
# Storage filtering classes # # Copyright (C) 2013 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed...
jkonecny12/anaconda
pyanaconda/ui/gui/spokes/advanced_storage.py
Python
gpl-2.0
27,163
[ "VisIt" ]
790d7e18fad8eae621057e1417119aec4e7019959d1ee7e8049e2b1a7dca4730
# # Copyright (C) 2013,2014 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 l...
RudolfWeeber/espresso
testsuite/python/particle.py
Python
gpl-3.0
4,959
[ "ESPResSo" ]
36618f939504e0ad7f3ca1a5392c1e66a7375436fecf6bff288d5c94a0501376
""" This module contains the AmberWriter class and associated methods, which outputs a prmtop/inpcrd file with CHARMM names and parameters for use with simulation with the AMBER molecular dynamics package. It does this by using the chamber functionality of ParmEd API. Author: Robin Betz Copyright (C) 2015 Robin...
drorlab/dabble
Dabble/param/amber.py
Python
gpl-2.0
37,529
[ "Amber", "CHARMM", "VMD" ]
28209a4e093c944d26a94d16449f984dd271211af8707e9992db9bd75ff93fe7
# (c) 2014, Brian Coca, Josh Drake, et al # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. ...
simplyguru-dot/ansible
lib/ansible/plugins/cache/jsonfile.py
Python
gpl-3.0
4,640
[ "Brian" ]
07f458f4b3a824972820b8b345676658f9c4ecceaa893e364673d5b457849b67
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A module to perform diffusion analyses (e.g. calculating diffusivity from mean square displacements etc.). If you use this module, please consider citing the following papers:: Ong, S. P., Mo, Y., Rich...
gVallverdu/pymatgen
pymatgen/analysis/diffusion_analyzer.py
Python
mit
37,894
[ "VASP", "pymatgen" ]
b3cc36d569b2e2858fbf21d6dcc78a3024d955a2b5fbd6524d97686a1e92dc39
""" Distance based spatial weights. """ __author__ = "Sergio J. Rey <srey@asu.edu> " import pysal import scipy.spatial from pysal.common import KDTree from pysal.weights import W import scipy.stats import numpy as np __all__ = ["knnW", "Kernel", "DistanceBand"] def knnW(kdtree, k=2, p=2, ids=None): """ Cr...
schmidtc/pysal
pysal/weights/Distance.py
Python
bsd-3-clause
16,487
[ "Gaussian" ]
56ee53967cb62c45a5b941e81d20a92986b479bb013a9ae3b96147833c52676a
#!/usr/bin/python # (C) 2013, Markus Wildi, markus.wildi@bluewin.ch # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # Thi...
zguangyu/rts2
scripts/rts2saf/rts2saf/acquire.py
Python
gpl-2.0
21,054
[ "VisIt" ]
07368d14a74c27a4e21b1dc7f3fedc7869a2646327866fa1beb66c168d14c4f2
#!/usr/bin/env python # encoding: utf-8 """ This script reads a text file with a list of OpenBabel format xyz coordinates and converts it to an RMG dictionary. Separate entries should be separated by at least one empty line OpenBabel format: First line is the number of atoms Second line is for species name ...
mliu49/RMG-stuff
Scripts/xyzToDictionaryAromatic.py
Python
mit
3,200
[ "Pybel" ]
f4e11a060fb30a104c52e29bb006aa4c751a0457f782649e0c845cac9d2888d4
""" Acceptance tests for Studio related to the acid xblock. """ from unittest import skip from nose.plugins.attrib import attr from bok_choy.web_app_test import WebAppTest from ..pages.studio.auto_auth import AutoAuthPage from ..pages.studio.overview import CourseOutlinePage from ..pages.xblock.acid import AcidView fr...
TangXT/edx-platform
common/test/acceptance/tests/test_studio_acid_xblock.py
Python
agpl-3.0
7,495
[ "VisIt" ]
b12d73f8ad316d3938420806a17b5041c9749de67606fe074e53637d9057d182
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
hfp/tensorflow-xsmm
tensorflow/python/autograph/converters/call_trees.py
Python
apache-2.0
12,529
[ "VisIt" ]
7becb18a72b3ddbd29d11dac4db5c40245589cc1bea8fb925824b99e1acb14b9
""" Base class for all services """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import time import psutil import DIRAC from DIRAC.Core.DISET.private.FileHelper import FileHelper from DIRAC.Core.Utilities.ReturnValues import S_OK, S_ERROR, isR...
ic-hep/DIRAC
src/DIRAC/Core/DISET/RequestHandler.py
Python
gpl-3.0
24,212
[ "DIRAC" ]
d3952f074e41c475af7595e6161a5eabbcd47aa9905428b874d423ded960063e
#! /usr/bin/env python """ Module with cosmetics procedures. Contains the function for bad pixel fixing. Also functions for cropping cubes. """ __author__ = 'Carlos Alberto Gomez Gonzalez, V. Christiaens' __all__ = ['cube_crop_frames', 'cube_drop_frames', 'frame_crop', 'frame_pad', ...
vortex-exoplanet/VIP
vip_hci/preproc/cosmetics.py
Python
mit
15,951
[ "Gaussian" ]
8d40c5d8b653296cf8c2eda9326cc8ada4f045deb34ebb1c358484866b0fafcd
# coding: utf-8 """ This module provides objects for extracting timing data from the ABINIT output files It also provides tools to analye and to visualize the parallel efficiency. """ from __future__ import unicode_literals, division import sys import collections import numpy as np from monty.string import is_string...
Dioptas/pymatgen
pymatgen/io/abinitio/abitimer.py
Python
mit
25,451
[ "ABINIT", "pymatgen" ]
1583a6965ff4f48127686e3be4f219c152756af1b1561aece157b3858a21d68a
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
KaiSzuttor/espresso
testsuite/python/comfixed.py
Python
gpl-3.0
2,031
[ "ESPResSo" ]
deb1e9cf918d00c2e6fae8e9cf19a284bbb403396425fcc99d59046dd758bee7
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This package contains core modules and classes for representing structures and operations on them. """ import os try: from ruamel import yaml except ImportError: try: import ruamel_yaml as yaml # type: i...
vorwerkc/pymatgen
pymatgen/core/__init__.py
Python
mit
1,706
[ "pymatgen" ]
7ec0ff14a71f0cf2c0d891b63a90b55ce6d74c92205c13d2be5309f07a6c34f5
""" DowntimeCommand module will look into GOC DB to find announced downtimes for RSS-managed sites and resources. If found, downtimes are added to the internal RSS cache using ResourceManagementClient. GOCDB downtimes that are modified or deleted are also synced. """ __RCSID__ = '$Id$' import urllib2 import ...
andresailer/DIRAC
ResourceStatusSystem/Command/DowntimeCommand.py
Python
gpl-3.0
13,817
[ "DIRAC" ]
ac31c9a673540fdbe6750cee6d6e40c90aacb749e23f76908f2eb163f37fe5f4
#!/usr/bin/env python # Author: Andrew Jewett (jewett.aij at g mail) # License: MIT License (See LICENSE.md) # Copyright (c) 2020, Scripps Research # All rights reserved. man_page_text = """ Usage (example): postprocess_transitions.py ttree_assignments.txt -t file.template \ > new_file.template Where "file.tem...
jewettaij/moltemplate
moltemplate/postprocess_transitions.py
Python
mit
13,401
[ "LAMMPS" ]
e67e457088d88fed583e2625a0f40d14bd267aaae3bafb0c9796f9d29bcc5435
__author__ = 'duarte' import sys from preset import * import numpy as np """ spike_noise_input - standard network setup, driven with noisy, Poissonian input - quantify and set population state - run with noise_driven_dynamics in computations - debug with noise_driven_dynamics script """ run = 'local' data_label = 'ex...
rcfduarte/nmsat
projects/examples/parameters/noise_driven_dynamics.py
Python
gpl-2.0
6,567
[ "NEURON" ]
90b18844086196fab4d233cad81ad3e1901137093ce9ed08c2a5a91151b4e043
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, sys, glob, string import zipfile cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) required_module_keys = ['name','version','moduleid','description','copyright','license','copyright','platform','minsdk'] module_def...
omorandi/TiSMSDialog
build_debug.py
Python
mit
5,506
[ "VisIt" ]
7843c3978401a3dd972568b53d55d143bded8bfe643cec13afdbcd7cab48785e
""" NormalizeTuples removes implicit variable -> tuple conversion. """ from pythran.analyses import Identifiers from pythran.passmanager import Transformation import ast class _ConvertToTuple(ast.NodeTransformer): def __init__(self, tuple_id, renamings): self.tuple_id = tuple_id self.renamings =...
artas360/pythran
pythran/transformations/normalize_tuples.py
Python
bsd-3-clause
6,420
[ "VisIt" ]
6202f3cfc1bb30ea4cd67d4073d6920e72f7008247387b368457154c494dea2a
from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import time import random from DIRAC.ConfigurationSystem.Client.ConfigurationData import gConfigurationData from DIRAC.ConfigurationSystem.Client.PathFinder import getGatewayURLs from DIRA...
yujikato/DIRAC
src/DIRAC/ConfigurationSystem/private/RefresherBase.py
Python
gpl-3.0
5,893
[ "DIRAC" ]
2e2ab99430bee7306f76e536c048e19c0f20ca3bc163eb969c2786a19f1de0f4
''' Use satellite and ocean in situ data to reconstruct oceanic 3D field. Created on Mar 20, 2013 @author: Jinbo Wang <jinbow@gmail.com> ''' if __name__ == '__main__': import numpy as np import pylab as plt import isqg lon = np.linspace(0,10,50) lat = np.linspace(30,40,50) x,y = isqg.lo...
jinbow/isQG
src/optimize.py
Python
gpl-2.0
1,818
[ "Gaussian" ]
74703bfe6cdf2d72b3f2f252e64a2b4246d74d75b16e91414c167a9f064aa789
""" Test class for SiteDirector """ # pylint: disable=protected-access # imports import pytest from mock import MagicMock from DIRAC import gLogger # sut from DIRAC.WorkloadManagementSystem.Agent.SiteDirector import SiteDirector mockAM = MagicMock() mockGCReply = MagicMock() mockGCReply.return_value = 'TestSetup' ...
arrabito/DIRAC
WorkloadManagementSystem/Agent/test/Test_Agent_SiteDirector.py
Python
gpl-3.0
7,503
[ "DIRAC" ]
b4b36829d248f9db6bbd7133834d112d39b66b70c94419c2ff7821fc341fd3a3
from django.contrib import admin from visits.models import Visit # Register your models here. class VisitAdmin(admin.ModelAdmin): ordering = ['date'] admin.site.register(Visit, VisitAdmin)
robjordan/unesco_project
unesco/visits/admin.py
Python
apache-2.0
196
[ "VisIt" ]
7c921f63bcd090dc5aa20c892d9c271e19644e1a76ccfe4c229e51ae430618f8
"""io.py""" import os from collections import OrderedDict import xray try: from ConfigParser import SafeConfigParser except ImportError: from configparser import SafeConfigParser import tarfile from contextlib import closing from netCDF4 import Dataset class RasmLibIOError(Exception): pass # -----------...
jhamman/rasmlib
rasmlib/io.py
Python
gpl-3.0
7,297
[ "NetCDF" ]
cacd46d4015142fc28c1461351758fe81ff8de0f45c056efe2bdbacfb27def82
# # GenDisplacement.py # # Class to generate displacements of atoms # # Copyright (c) 2020 Terumasa Tadano # # This file is distributed under the terms of the MIT license. # Please see the file 'LICENCE.txt' in the root directory # or http://opensource.org/licenses/mit-license.php for information. # from __future__ imp...
ttadano/alamode
tools/GenDisplacement.py
Python
mit
32,324
[ "Gaussian" ]
4c3c103c444bc9f373bfdadae29c9a3beedeafa45756e1ba5c4f11f1b66e2cfe
# 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 RAcgh(RPackage): """Classes and functions for Array Comparative Genomic Hybridization data...
LLNL/spack
var/spack/repos/builtin/packages/r-acgh/package.py
Python
lgpl-2.1
1,402
[ "Bioconductor" ]
45da7414a88613e9eefca13385aea47575900786db3fc5f636c2f9450328decd
""" Rosetta modules are a translation tables between multiple Python namespaces. They can be used to map the constructs of one numeric Python project to another project. The goal is "glue" together different PyData projects and make them understand each other's type systems and interoperate at the type level easing th...
davidcoallier/blaze
blaze/rosetta/parse.py
Python
bsd-2-clause
2,641
[ "VisIt" ]
87675a8cc1e8d6c3e0ad13e8b54c9415211cf97550fdc173711467ffe3bf3ee1
import io import os import re from distutils.core import setup def read(path, encoding='utf-8'): path = os.path.join(os.path.dirname(__file__), path) with io.open(path, encoding=encoding) as fp: return fp.read() def version(path): """Obtain the packge version from a python file e.g. pkg/__init_...
nhuntwalker/gatspy
setup.py
Python
bsd-2-clause
2,369
[ "VisIt" ]
cd500bd0a9637042528d64be75ffc131a2ccec5f30f89e87ebaf07bad7a5cdfe
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, print_function import itertools import logging from collections import defaultdict import math from math import cos from math import sin from fractions import...
aykol/pymatgen
pymatgen/symmetry/analyzer.py
Python
mit
54,447
[ "CRYSTAL", "VASP", "pymatgen" ]
05ef433cd366df34dff826932166005e7d1800378c9b75522b300ef5384ac6be
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # Avi Version: 17.1.1 # # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the te...
le9i0nx/ansible
lib/ansible/modules/network/avi/avi_applicationprofile.py
Python
gpl-3.0
7,245
[ "VisIt" ]
5639f7e8db7183051fb8a1d6ff7195525a39250f582c8ff8aff654dfa979f29c
# TO-DO: to be moved to tests directory from __future__ import print_function from __future__ import absolute_import from __future__ import division import cmd import sys import os.path from DIRAC.DataManagementSystem.Client.CmdDirCompletion.AbstractFileSystem import UnixLikeFileSystem from DIRAC.DataManagementSystem...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/Client/test/new_dir_completion.py
Python
gpl-3.0
1,323
[ "DIRAC" ]
78159e9b2272ec6d3df518ac637e75a88ddf8c166b674a7de81895e7efb84dbd
import re from django import forms from django.forms.utils import ErrorList from django.forms.widgets import HiddenInput, RadioSelect, SelectMultiple from crits.core import form_consts from crits.core.form_consts import Action as ActionConsts from crits.core.handlers import get_source_names, get_item_names, ui_themes...
Magicked/crits
crits/core/forms.py
Python
mit
23,096
[ "Amber" ]
41da864e7598b499d255fad62261a3ce33287397e5c31747991f032286d43d07
# -*- coding: utf-8 -*- """Various text used throughout the website, e.g. status messages, errors, etc. """ # Status Messages ################# # NOTE: in status messages, newlines are not preserved, so triple-quotes strings # are ok # Status message shown at settings page on first login # (upon clicking primary em...
zachjanicki/osf.io
website/language.py
Python
apache-2.0
8,420
[ "VisIt" ]
6186421549fd25028fb6b842c0ed0a557b9e057a73efd87c02b248555f739134
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Unit tests for defect transformations """ __author__ = "Bharat Medasani" __copyright__ = "Copyright 2014, The Materials Project" __version__ = "0.1" __ma...
aykol/pymatgen
pymatgen/transformations/tests/test_defect_transformations.py
Python
mit
4,993
[ "pymatgen" ]
a9b78b7f248666474e4e93a9d30f76442eddb5a921881d14b70ac050e35292a4
"""Unit test for roman5.py This program is part of "Dive Into Python", a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. """ __author__ = "Mark Pilgrim (mark@diveintopython.org)" __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2004/05/05 21:57:20 $" __copyri...
tapomayukh/projects_in_python
sandbox_tapo/src/refs/diveintopython-pdf-5.4/diveintopython-5.4/py/roman/stage5/romantest5.py
Python
mit
5,496
[ "VisIt" ]
4174a2470f29df80f342699afde94a284bf0635837bf338f1a46a0536a554183
######################################################################## # # (C) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation...
pgmillon/ansible
lib/ansible/galaxy/__init__.py
Python
gpl-3.0
2,113
[ "Brian", "Galaxy" ]
25240abf62323f675f253160d4664f265396c47b7ffaa6cc7af708511eeea0bc
#!/usr/bin/env python # Copyright 2014-2019 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/prop/magnetizability/rhf.py
Python
apache-2.0
10,881
[ "PySCF" ]
86704efbccfd3d8c24453ea3667602f99ce381b411ae774596b6a67030331cc7
""" A program to solve the 3D Nonlinear Schrodinger equation using a second order splitting method More information on visualization can be found on the Mayavi website, in particular: http://github.enthought.com/mayavi/mayavi/mlab.html which was last checked on 6 April 2012 """ import math import numpy from mayavi ...
openmichigan/PSNM
PythonPrograms/Programs/PythonCode/NLSsplitting3D.py
Python
bsd-2-clause
4,197
[ "Mayavi" ]
cc6414b93d272fcb9905dedc4812e7ed20037d4cb71937d79483db57c2839805
## # Copyright 2009-2020 Ghent University # Copyright 2015-2020 Stanford University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum...
pescobar/easybuild-easyblocks
easybuild/easyblocks/v/vmd.py
Python
gpl-2.0
9,894
[ "LAMMPS", "NAMD", "NetCDF", "VMD" ]
9cfdd2aff47fd0ff0eef9be33881bd60cb788c6ce538385d226dcb09a5bf28a0
import numpy as np from sklearn.model_selection import KFold from sklearn.tree import DecisionTreeRegressor def get_features_targets(data): features = np.zeros((data.shape[0], 4)) #n lines, 4 columns features[:,0] = data['u'] - data['g'] features[:,1] = data['g'] - data['r'] features[:,2] = data['r'] - data['i...
lokijota/datadrivenastronomymooc
wk5/optional/QSO_and_Galaxy.py
Python
mit
2,471
[ "Galaxy" ]
19870f77bf217d68c83a75eade6c3ac5b13eb7c45da85dbe2b79739e6d8e4de8
#!/usr/bin/python # Copyright (C) 2014 Brian J. Stucky # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progr...
mengqvist/DNApy
src/external/abi.py
Python
gpl-3.0
22,898
[ "Brian" ]
d6672342ea1a9a62dbdf25ea849ecd76b62b1bd947931d0235c64f403b0592f9
from umibukela.importer.mavc import cycle1_2 """ _ _ ______ _ _______ _ _ | | | | ____| /\ | | |__ __| | | | | |__| | |__ / \ | | | | | |__| | | __ | __| / /\ \ | | | | | __ | | | | | |____ / ____ \| |____| | | | | | |_| |_|______/_/ \_\______|_| |_| |_| ...
Code4SA/umibukela
umibukela/importer/mavc/cycle1_2_health.py
Python
mit
10,951
[ "VisIt" ]
0884c2e75b2679b2d2b0b920fcfc7145b265e49bcb168ec92b2e7f391fa0e4e4
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2013 The Plaso Project Authors. # Please see the AUTHORS file for details on individual 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 L...
cvandeplas/plaso
plaso/formatters/safari.py
Python
apache-2.0
1,127
[ "VisIt" ]
aeef989077de121018cb02add784b17873da9d4ae13600641a391c3a03a7dee6
# -*- coding: latin1 -*- from __future__ import print_function """ .. currentmodule:: pylayers.antprop.rays .. autosummary:: :members: """ import doctest import os import glob try: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from mayavi import mlab except: p...
dialounke/pylayers
pylayers/antprop/rays.py
Python
mit
132,068
[ "Mayavi" ]
cf88779bf62cc303f70d7cf7d8d4e8d7741756ab86df12ee265fd1e1293ad4f4
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2014, Brian Coca <briancoca+ansible@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_ve...
Shaps/ansible
lib/ansible/modules/system/debconf.py
Python
gpl-3.0
5,675
[ "Brian" ]
2d55a6742a79cc7cf2711c694adf342e1b3323182e7068d26fa208a61a5bf90c
#!/usr/bin/python import os import sys ### Requires MPV to be installed, use - sudo apt install mpv #default user settings time_skip = 1 #when making timelapse uses every Nth frame so 4 is 4x faster darksize =50000 #all smaller files are removed assumed to be useless 50-75000 is a good value infps = 10 #10 i...
Pragmatismo/TimelapsePi-EasyControl
timelapse_assemble.py
Python
gpl-2.0
7,794
[ "VisIt" ]
f9955b000a29f3d4bc339104790db4c0c3435a74f6189d149d6a6ac05d0fb2d0
import numpy as np from scipy._lib._util import check_random_state def rvs_ratio_uniforms(pdf, umax, vmin, vmax, size=1, c=0, random_state=None): """ Generate random samples from a probability density function using the ratio-of-uniforms method. Parameters ---------- pdf : callable A ...
person142/scipy
scipy/stats/_rvs_sampling.py
Python
bsd-3-clause
7,096
[ "Gaussian" ]
2275875fdf5aca513d73cb74a6eace4d7cfd5c485a1f2876add0d0cfd5b7a9f1
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
susilehtola/psi4
psi4/driver/procrouting/wrappers_cfour.py
Python
lgpl-3.0
36,345
[ "CFOUR", "Psi4" ]
d44481e003a8eb36d0c5f91ae09156a09fc2a803c07322352282e6bb16f57720
#-*- encoding: utf-8 -*- # Copyright (C) 2013-2014 Alexander Weigl, Nicolai Schoch # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
CognitionGuidedSurgery/restflow
restflow/resultfunc.py
Python
gpl-3.0
2,286
[ "VTK" ]
e72e474062a5058df860195a3ce553f5bb9af5b7b781c2e70b30e59e3dae89b2
#!/usr/bin/env python from DIRAC import S_OK from DIRAC.Core.Base import Script __RCSID__ = "$Id$" Script.setUsageMessage( """ Get status of the available Storage Elements Usage: %s [<options>] """ % Script.scriptName ) vo = None def setVO( arg ): global vo vo = arg return S_OK() allVOsFlag = False def se...
andresailer/DIRAC
DataManagementSystem/scripts/dirac-dms-show-se-status.py
Python
gpl-3.0
2,691
[ "DIRAC" ]
9a95a6e07b527dc3caa2c314bbd93d7a7cc2c0d4787fe8959a98f611f466da19
# BEGIN_COPYRIGHT # # Copyright (C) 2014 CRS4. # # This file is part of blast-python. # # blast-python 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) # ...
crs4/blast-python
test/test_blaster.py
Python
gpl-3.0
23,119
[ "BLAST" ]
5121535dc3df6fe623765c520b26c66f86dc5cd7ccbf5a164e23c62691deae0c
# # Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # This code is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License version 2 only, as # published by the Free Softwar...
akunft/fastr
mx.fastr/mx_fastr.py
Python
gpl-2.0
21,978
[ "VisIt" ]
d869487a70b834966104bff8aee4414a99ad2d516f7d34447e6201b553296a1b
""" N.B. this is a v2 of the distortions_corrector started in Dec 2017 -MAR This file contains the Distortions_corrector. An object used to correct distortions using an interactive procedure involving repeated measurements. """ from qcodes.instrument.base import Instrument from qcodes.instrument.parameter import Man...
DiCarloLab-Delft/PycQED_py3
pycqed/instrument_drivers/meta_instrument/distortions_corrector_v2.py
Python
mit
37,317
[ "DIRAC" ]
8e8139f3dd10fd5c8a44cdde83dd02cd49981cc4bf06e4cce3fb06bcf0c1e4d6
from ase.lattice.spacegroup import crystal a = 5.64 nacl = crystal(['Na', 'Cl'], [(0, 0, 0), (0.5, 0.5, 0.5)], spacegroup=225, cellpar=[a, a, a, 90, 90, 90])
grhawk/ASE
tools/doc/tutorials/spacegroup/spacegroup-nacl.py
Python
gpl-2.0
174
[ "ASE", "CRYSTAL" ]
7e5c30c7f8b3b7c9b7eeaa1683c6da0ceb11540f23cdcd7004c6274528193c3c
#!/usr/bin/env python import vtk from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # This little example shows how a cursor can be created in # image viewers, and renderers. # Global values CURSOR_X = 20 CURSOR_Y = 20 CURSOR_Z = 20 IMAGE_MAG_X = 4 IMAGE_MAG_Y = 4 IMAGE_MAG_Z = 1 # Pipeline...
sumedhasingla/VTK
Rendering/Volume/Testing/Python/cursor3D.py
Python
bsd-3-clause
2,900
[ "VTK" ]
cadc030e2a23af3cb580dfeda5c9a76a35e4fe7ff592c6f582ad299258a5e975
# -*- coding: utf-8 -*- import pytest from django.core.urlresolvers import reverse pytestmark = pytest.mark.django_db global_footer_links = [ 'About', 'Developers', 'Privacy', 'Report an issue', ] def assert_title_and_links_on_page(browser, url, title, links_text): browser.visit(url) assert...
fossevents/fossevents.in
tests/frontend/test_page_contents.py
Python
mit
851
[ "VisIt" ]
338c27f850027a099cb2f2ccee873103000467b516ee06f85ca4ae3b48c3886e
# pylint: disable=missing-docstring import datetime import os import pytz from django.conf import settings from mock import patch from pytz import UTC from splinter.exceptions import ElementDoesNotExist from selenium.common.exceptions import NoAlertPresentException from nose.tools import assert_true, assert_equal, asse...
Semi-global/edx-platform
lms/djangoapps/courseware/features/lti.py
Python
agpl-3.0
14,199
[ "VisIt" ]
40dc06a5134cd3885f933f94fd95fb98ffa8e8495bdbd364f20d59f887b95a29