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/python #This is a program for count Gene on Ensemble data "process subsection", #Author: Maurizio Polano, mauriziopolano@blu.it #Last revision: 03/06/2014 import subprocess import os,os.path import sys import time import re from optparse import OptionParser import pysam def main(): # select inupt pars...
bioinfo-dirty-jobs/Scriptechunks
Search_encompass_reads.py
Python
mit
6,064
[ "pysam" ]
33b8d2a3b768a6caa0f0d47774fbeaae5769c8d19163253cd9c7a9f2a2a2bf98
import os import re import collections import logging log = logging.getLogger(__name__) import MooseDocs class MooseInfoBase(object): """ Base information for Actions and MooseObjects. """ STUB_HEADER = '<!-- MOOSE Documentation Stub: Remove this when content is added. -->\n' def __init__(self, no...
stimpsonsg/moose
python/MooseDocs/MooseApplicationSyntax.py
Python
lgpl-2.1
14,022
[ "MOOSE" ]
d84d08d3c25e78fc96051acae189b970ff3718ab8c0f42eac56e5be9e51ba12f
#!/usr/bin/env python # This program generates a line/table with all Atom-Atom contributions to the Lennard Jones Energy between two fragments # # The atom order for each fragment is read from the .rtf file # The Atom types are obtained either from the .rtf file or from the .lpun file # The number of fragments and the ...
MMunibas/FittingWizard
scripts/lj-fit/src/fit.lj/LJ_Tab_gen.py
Python
bsd-3-clause
7,502
[ "CHARMM" ]
538852ef05e4238704b8dc5d8564abad86882dd430f1ec998e255533e73836e9
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
Azure/azure-sdk-for-python
sdk/cognitiveservices/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/training/models/_models.py
Python
mit
83,177
[ "VisIt" ]
19aae5d30a62c8f705e819ae0063e07561aef194f4c04178d25908b3c91745ed
# -*- coding: utf-8 -*- """ Example of creating an operator that acts as a linear transformation. """ # Imports for common Python 2/3 codebase from __future__ import print_function, division, absolute_import from future import standard_library standard_library.install_aliases() from builtins import super import odl i...
odlgroup/odl-examples
linear_deformation.py
Python
gpl-3.0
2,764
[ "Gaussian" ]
f228ad43610225ca36b627acb9431399cda26137f9e3cecd5b310daf5c540d7c
import numpy as np size = 10*np.array([45.0, 55.0, 65.0, 75.0, 85.0, 95.0, 105.0, 110.0, 120.0, 135.0, 145.0, 155.0, 160.0, 170.0, 185.0, 195.0, 205.0, 215.0, 225.0]) timing_LowFreq = np.array([ 18.684, 31.671, 57.522, 72.086, 107.04, 139.11, 177.29, 213.87, 287.15, 315.41, 646.75, 490.08, 599.22, 776.20, 864.50, 943...
dinrker/Ray_FEM
Plots/python_scripts/paper1/plot_scaling_fast_solver_low_freq.py
Python
mit
2,600
[ "Gaussian" ]
409fc982b7d0f6238d9bb2286b68f61fbb21064b609dd35cd68e3419f3a15c75
# 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 # # Unless required by appl...
gkc1000/pyscf
pyscf/nao/m_spline_interp.py
Python
apache-2.0
1,804
[ "PySCF" ]
f85fa25081b4153d1c4759285ce8380dce8edca54e09fdd4a9ea324e61204eae
""" # Copyright (C) 2007 Rob King (rob@re-mu.org) # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # #...
dotCID/Graduation
Ableton/LiveOSC/LiveOSCCallbacks.py
Python
gpl-2.0
49,848
[ "VisIt" ]
0ee1aae660e1a5f3e34f78bf12cef4b434f7ea645b01925f2142e6f235b94e10
from __future__ import print_function, division, absolute_import #, unicode_literals import sys import os import imp import platform import re from tests.pymods.termcolor import cprint # Handle py2, py3k differences. py2 = sys.version_info[0] <= 2 if py2: import cPickle as pickle from cStringIO import String...
jmbeuken/abinit
tests/__init__.py
Python
gpl-3.0
34,292
[ "ABINIT", "NetCDF", "VASP", "Wannier90" ]
57ef6c0c453e19681f00c4604bd1d6fd985f425503af16716642fe7ccef79618
# commands.py - command processing for mercurial # # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. from node import hex, nullid, nullrev, short from repo import RepoError, No...
carlgao/lenga
images/lenny64-peon/usr/share/python-support/mercurial-common/mercurial/commands.py
Python
mit
121,214
[ "VisIt" ]
326f7fea60f0aa7dc86452723206067ef7468b1823bca1bfbabfb09ff69c7007
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft = python sts = 4 ts = 4 sw = 4 et: """AFNI utility interfaces Examples -------- See the docstrings of the individual classes for examples. .. testsetup:: # Change directory to provide relative paths for...
mick-d/nipype
nipype/interfaces/afni/utils.py
Python
bsd-3-clause
98,199
[ "Gaussian" ]
9f319344f01aa374fb2aae2f8c0a458f0f4b4c9f25b060268ccfd28182c2626b
import Pyro5 import sys sys.path.append('../..') sys.path.append('..') import models from mupif import * import mupif as mp import logging log = logging.getLogger() class Example06(workflow.Workflow): def __init__(self, metadata={}): """ Initializes the workflow. """ MD = { ...
mupif/mupif
examples/Example06-stacTM-local/Example06.py
Python
lgpl-3.0
4,640
[ "VTK" ]
a2823bd632017ee3b1dbd8a2ff78b96ca1b9da2c3c358fbbc747f24bf26aecf6
"""Guess the MIME type of a file. This module defines two useful functions: guess_type(url, strict=1) -- guess the MIME type and encoding of a URL. guess_extension(type, strict=1) -- guess the extension for a given MIME type. It also contains the following, for tuning the behavior: Data: knownfiles -- list of fil...
zephyrplugins/zephyr
zephyr.plugin.jython/jython2.5.2rc3/Lib/mimetypes.py
Python
epl-1.0
18,690
[ "NetCDF" ]
365fccb6a945eadd6da73c1b5b0e2c8b7a9578bfb921596a9fb958ce60ff5a31
"""Some test functions for bivariate interpolation. Most of these have been yoinked from ACM TOMS 792. http://netlib.org/toms/792 """ from __future__ import print_function import numpy as np from triangulate import Triangulation class TestData(dict): def __init__(self, *args, **kwds): dict.__init__(sel...
cactusbin/nyt
matplotlib/lib/matplotlib/delaunay/testfuncs.py
Python
unlicense
21,048
[ "Gaussian" ]
ef25d34a731f27a89ab390316de99bc6dbe32d3f1a7eb7eff4c50856f6e621c3
"""This demo program solves Poisson's equation with a delta dirac point source - div grad u(x, y) = f(x, y)*dirac on the unit square with source f given by f(x, y) = 0.4 and boundary conditions given by u(x, y) = 0 for x = 0 or x = 1 du/dn(x, y) = A*sin(5*x) for y = 0 or y = 1 """ # Copyright...
MiroK/dolfin
demo/undocumented/point-integral/python/demo_point-integral.py
Python
gpl-3.0
2,095
[ "DIRAC", "VTK" ]
1638843aebb3d3d103f16f9027790cfc33f27dede19083c034e3909f201faee1
import _pp_conf from pandas import read_sql """ CATALOG - class structure for dealing with astronomical catalogs, FITS_LDAC files, and sqlite databases. version 0.9, 2016-01-27, mommermiscience@gmail.com """ # Photometry Pipeline # Copyright (C) 2016-2018 Michael Mommert, mommermiscience@gmail.com # This ...
mommermi/photometrypipeline
catalog.py
Python
gpl-3.0
75,300
[ "Gaussian" ]
46511fcb2e286c0ba1498acc70a3d0293b1f8419c1a497c8ab95b7f8b5733730
# -*- coding: utf8 -*- # SXRD_Collect - GUI program for collection single crystal X-ray diffraction data # Copyright (C) 2015 Clemens Prescher (clemens.prescher@gmail.com) # GSECARS, University of Chicago # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
Luindil/SXRD_Collect
playground/data_test/compareStepToWide.py
Python
gpl-3.0
1,917
[ "CRYSTAL" ]
c3acea8ec1822384151c821ec025be6fa784808a1356d791a82553c4692d01f7
######################################################################## # $HeadURL$ ######################################################################## """ :mod: DataLoggingDB =================== .. module: DataLoggingDB :synopsis: front-end to the Data Logging database The following methods ar...
avedaee/DIRAC
DataManagementSystem/DB/DataLoggingDB.py
Python
gpl-3.0
7,827
[ "DIRAC" ]
2deab8ff937a645c9ce9f57b5487df3d9cf1ead9a259706657e896c2147daded
# Copyright (c) 2016 Ansible, Inc. # All Rights Reserved. # Python import logging import threading import contextlib import re # Django from django.db import models, transaction, connection from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from...
GoogleCloudPlatform/sap-deployment-automation
third_party/github.com/ansible/awx/awx/main/models/rbac.py
Python
apache-2.0
21,872
[ "VisIt" ]
bd054bd0cae865f0938bd110fb81d7c19e5b29baf0d7b0dc35bd5da1c1a052fa
import vtk import h5py """ read the transform from slicer and apply it to a surface mesh """ file_path1 = "/home/ksansom/caseFiles/mri/VWI_proj/case1/dsa/case1_vmtk_decimate_trim_cap.vtp" out_path = "/home/ksansom/caseFiles/mri/VWI_proj/case1/registration_2/dsa2mra_trans.vtp" print('Reading vtp surface file.'...
kayarre/Tools
vtk/transform_dsa2vwi.py
Python
bsd-2-clause
2,656
[ "VTK" ]
aa26d762bf241825a4e04ffb2cbbc6df41defda3536a27370a0bd2d2ab7956ca
######################################################################## # $Header: /var/local/cvsroot/4Suite/Ft/Lib/DistExt/__init__.py,v 1.19.2.5 2006/10/30 20:39:16 jkloth Exp $ """ Extensions to distutils to support building, installing, packaging 4Suite Copyright 2005 Fourthought, Inc. (USA). Detailed license and...
Pikecillo/genna
external/4Suite-XML-1.0.2/Ft/Lib/DistExt/__init__.py
Python
gpl-2.0
6,041
[ "Jaguar" ]
a3576c5ad080304ba44c28da0a381f37ee8fe56ee6a438a1d80d1a65c97afa61
""" Normalization Wikipedia: https://en.wikipedia.org/wiki/Normalization Normalization is the process of converting numerical data to a standard range of values. This range is typically between [0, 1] or [-1, 1]. The equation for normalization is x_norm = (x - x_min)/(x_max - x_min) where x_norm is the normalized value...
TheAlgorithms/Python
machine_learning/data_transformations.py
Python
mit
2,849
[ "Gaussian" ]
0f04b5c22233ef1b8aff5608bb8ab567a5b50339ac3cc48e8780478c22c1c543
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2013 by Erwin Marsi and TST-Centrale # # This file is part of the DAESO Framework. # # The DAESO Framework 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 ...
emsrc/daeso-dutch
lib/daeso_nl/ga/matcher.py
Python
gpl-3.0
7,501
[ "Brian" ]
2dbe0c02b133b8922264ce4166d78398bb8995b58ab8ff4334410df3b56212e0
# -*- 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 'Clinic.lga_temp' db.add_column(u'clinics_clinic', 'lga_te...
myvoice-nigeria/myvoice
myvoice/clinics/migrations/0038_auto__add_field_clinic_lga_temp.py
Python
bsd-2-clause
13,150
[ "VisIt" ]
8e27feedfeee07e18c1db9e90061b8f5fcfa19a51500bea24ff9c211dc646659
import ast, collections, dis, types, sys from functools import reduce from itertools import chain from check_subset import check_conformity def assemble(assembly): return bytes(iter(assembly.encode(0, dict(assembly.resolve(0))))) def plumb_depths(assembly): depths = [0] assembly.plumb(depths) return ma...
darius/tailbiter
article-code/tailbiter2_py35.py
Python
mit
17,894
[ "VisIt" ]
e6faeb198824498abac6d83db2b944a8c57a6e7df27ededca00343974775eef1
# -*- coding: utf-8 -*- def VtkLoadLineas(setName): eSet= preprocessor.getSets.getSet(setName) print "nombre set: ",eSet.nombre print "num. lineas: ",eSet.getNumLineas # Cargamos las celdas en vtk ugrid.insert_next_cell(getVtkCellType,getVertices)
lcpt/xc
python_modules/postprocess/xcVtk/CAD_model/vtk_load_lines.py
Python
gpl-3.0
259
[ "VTK" ]
b5234c8a5986653d907317a5cc2fe866c3d0f88137a1e14978442b6bb6612399
""" Utilities for WMS """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import io import os import sys import json import six from DIRAC import gConfig, gLogger, S_OK from DIRAC.Core.Utilities.File import mkDir def createJobWrapper(jobID, jobParams, res...
yujikato/DIRAC
src/DIRAC/WorkloadManagementSystem/Utilities/Utils.py
Python
gpl-3.0
5,243
[ "DIRAC" ]
4f9f28f3e579a7d0df20d87f338c0b8bad9c87667f2ef773a2899c475900a473
from yamtbx import util from yamtbx.dataproc.xds.xds_ascii import XDS_ASCII from yamtbx.dataproc.auto import resolution_cutoff from yamtbx.dataproc.dataset import find_existing_files_in_template from yamtbx.dataproc import pointless import cPickle as pickle import json import os from cctbx import sgtbx from cctbx impor...
keitaroyam/yamtbx
yamtbx/dataproc/dials/command_line/run_dials_auto.py
Python
bsd-3-clause
9,267
[ "CRYSTAL" ]
271f40e77f0137714bf58ba46ab4df3e9ef42ce73155d751f4ee72e908f480a4
#!/usr/bin/env python # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2018, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This program is free software: you can redistribute it and/or ...
neuroidss/nupic.research
projects/high_order_cell_assembly/sparsity_over_trial.py
Python
agpl-3.0
5,391
[ "NEURON" ]
e61abbf56b549939f3b39c231f63f5af13d4af2438bb5b2a67ce0f3aa94a3796
# coding=UTF-8 """Copyleft 2010-2015 Forrest Sheng Bao http://fsbao.net Copyleft 2010 Xin Liu Copyleft 2014-2015 Borzou Alipour Fard PyEEG, a Python module to extract EEG feature. Project homepage: http://pyeeg.org **Data structure** PyEEG only uses standard Python and numpy data structures, so you need to i...
mattja/nsim
nsim/analyses1/pyeeg.py
Python
gpl-3.0
32,305
[ "VisIt" ]
3e94930dd4fb656008662a40275531e5604fcc175166d9b0b3ca73ea6cd10d48
# PyVision License # # Copyright (c) 2006-2008 David S. Bolme # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, thi...
svohara/pyvision
src/pyvision/point/DetectorCorner.py
Python
bsd-3-clause
7,912
[ "Gaussian" ]
82d9fe59e16ae3c3995a7118c6488a67583b6af3c2248c40a1395d84279717c4
# This tests calculates the force on the atoms of a # slightly distorted Silicon primitive cell. # # If the test fails, set the fd boolean below to enable a (costly) finite # difference check. import numpy as np from ase import Atoms from gpaw import GPAW from gpaw.atom.basis import BasisMaker from gpaw.test import eq...
robwarm/gpaw-symm
gpaw/test/guc_force.py
Python
gpl-3.0
1,852
[ "ASE", "GPAW" ]
b868c4b30fbe9535f91771f0e95240b9de682a6bc0a9e4168b4b9386a110656e
import sys,os import pandas from Bio import SeqIO """ Converter script for Percolator output to create Fido-readable files. By Jose Fernandez Navarro, SLIGHTLY MODIFIED BY WILLIAM BARSHOP (LABORATORY OF JAMES A WOHLSCHLEGEL) These modifications allow input of multiple tab delimited peptide-level percolator outputs. ...
wohllab/milkyway_proteomics
galaxy_milkyway_files/tools/wohl-proteomics/MSGFcrux/tab_percolator_to_fido.py
Python
mit
12,712
[ "Galaxy" ]
0d9890e45cc684495bd92852b5dc0b14e031aba839fbc458b398b59dc929b1af
"""This file contains code for use with "Think Stats" and "Think Bayes", both by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division """This file contains class definitions for: H...
OyamaZemi/ThinkStats2Notebooks
thinkstats2.py
Python
gpl-3.0
68,825
[ "Gaussian" ]
a7b5e8534b330ff6a51030c6643cf28cf8e059204b837c3143b58a4ef94bf51c
""" SystemAdministrator service is a tool to control and monitor the DIRAC services and agents """ import socket import os import re import commands import getpass import importlib import shutil from datetime import datetime, timedelta from distutils.version import LooseVersion #pylint: disable=no-name-in-module,impor...
Andrew-McNab-UK/DIRAC
FrameworkSystem/Service/SystemAdministratorHandler.py
Python
gpl-3.0
28,447
[ "DIRAC" ]
ddfd24824403982f6d643ab5652dfcca9433af4315c3018564255d625a9bcbd2
from __future__ import print_function, division import unittest, numpy as np from pyscf import gto, scf from pyscf.nao import gw as gw_c mol = gto.M( verbose = 1, atom = '''Be 0.0 0.0 0.269654; H 0.0 0.0 -1.078616''', basis = 'cc-pvdz', spin = 1, ) gto_mf_uhf = scf.UHF(mol) e_tot = gto_mf_uhf.kernel() class ...
gkc1000/pyscf
pyscf/nao/test/test_0088_beh_gw.py
Python
apache-2.0
1,050
[ "PySCF" ]
fe08165fd22ee53de7f5bd885876ba2650a75984b3e97e24fcd611a4e6f56ba4
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/FixedQuadrupleAngleList.py
Python
gpl-3.0
3,356
[ "ESPResSo" ]
53dfcc211e2ca5cda1e949884287f2e9e556070fcb11d7a2d9df9c1b5417f3cb
# $Id$ # # Copyright (c) 2003-2010 Greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # from __future__ impor...
soerendip42/rdkit
rdkit/TestRunner.py
Python
bsd-3-clause
5,737
[ "RDKit" ]
3efefae6b1644827fb031525a223836fb886fa57b1ad798676ba3815b8b171d8
# # Copyright (c) 2003-2010 Greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # import os import sys import ...
bp-kelley/rdkit
rdkit/TestRunner.py
Python
bsd-3-clause
9,353
[ "RDKit" ]
ed5de800e460da37e25dd2cb5c494693d0850709dd054250a9b88dbbbe459bb0
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
danielharbor/openerp
openerp/tools/misc.py
Python
agpl-3.0
45,003
[ "VisIt" ]
c7903498b4d639e30bcc9a14e8ac88fd540cb15500d49d63b567f91b31469409
#!/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/mc1step_symm.py
Python
apache-2.0
6,381
[ "PySCF" ]
61905778fa4dc7f9ccacbc678aa37f1dcf84988dd88f2e43c7158d8ef32f68e3
# -*- coding: utf-8 -*- # 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 Apach...
heiths/allura
Allura/allura/lib/helpers.py
Python
apache-2.0
42,752
[ "VisIt" ]
e29b9af113bbdb3964e0c80f5a9ccc1bf6dcb20d4eb08d2476f191e144134f10
""" Acceptance tests for Studio. """ import uuid from selenium.webdriver.common.keys import Keys from base_studio_test import StudioCourseTest from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test.acc...
a-parhom/edx-platform
common/test/acceptance/tests/studio/test_studio_general.py
Python
agpl-3.0
12,803
[ "VisIt" ]
d4e1b954e281bb2a60838aad334f5fa9dbd323bc6f32c04e85221f6788a02eee
# 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. """Top-level presubmit script for Chromium. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details about the presu...
espadrine/opera
chromium/src/PRESUBMIT.py
Python
bsd-3-clause
36,931
[ "VisIt" ]
49a21a9f60967ab48ee93d43677e8c814309c849c5a470cd2333b7954728d179
from __future__ import absolute_import from __future__ import division from __future__ import print_function from gym.spaces import Box import numpy as np import ray import ray.experimental.tf_utils from ray.rllib.agents.dqn.dqn_policy import (_huber_loss, _minimize_and_clip, ...
atumanov/ray
python/ray/rllib/agents/ddpg/ddpg_policy.py
Python
apache-2.0
28,703
[ "Gaussian" ]
95b2afaba674e2da7b094eff109070431df164763c76a7842c0fbd3aa813a7b9
# 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 u...
Laurawly/tvm-1
python/tvm/relay/testing/init.py
Python
apache-2.0
5,593
[ "Gaussian" ]
d4a2d88d2f21374e495334af41d67e164736fbbb19efd1f0d8c9c57d40c1c364
# -*- coding: utf-8 -*- """ Created on Thu Mar 08 08:29:00 2018 @author: tih """ import netCDF4 import os import osr import gdal import pandas as pd import numpy as np import wa.General.raster_conversions as RC import wa.General.data_conversions as DC ########################### Start SurfWAT input file creator ###...
wateraccounting/wa
Models/SurfWAT/Create_input_nc.py
Python
apache-2.0
10,181
[ "NetCDF" ]
0dd4c15f24128045d0ef5aea461c4839ecbff138db0e34be76b475a91a275891
# coding: utf-8 # Copyright 2014-2015 Álvaro Justen <https://github.com/turicas/rows/> # # 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 yo...
RhenanBartels/rows
tests/tests_utils.py
Python
gpl-3.0
1,842
[ "MOE" ]
2757a8c68188d0a0ac41750039fc94f4e954aa7f9f5945a1391bf6912ca420e8
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 31 13:31:18 2017 @author: kasperipalkama """ from neural_network.multilayer_perceptron import initialize, feed_forward, backpropagate, update_weights import unittest class Tests(unittest.TestCase): def test_initialize(self): # Tests n...
kapalk/feedforward-multilayer-perceptron
neural_network/tests/tests.py
Python
mit
5,622
[ "NEURON" ]
7de9b2e9aa8a4be1ac8a3d205e45f43aa04aec977085ddbd918128c13509f249
# # Copyright (C) 2013-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
hmenke/espresso
testsuite/python/interactions_bond_angle.py
Python
gpl-3.0
5,102
[ "ESPResSo" ]
5fae4c14431af16d14447c488cbf3543dfad725431de8829b685d04430df1869
import math import numpy as np import scipy as sp from scipy import special from copy import deepcopy """ Functions to provide Gausssuan type filter coefficients to be used in filters;. """ def gauss_pulse(sps = 32, BT = 0.5): """ Generate a standard Gaussian pulse with the specified parameters """ ...
phase4ground/DVB-receiver
modem/python/library/gauss_pulse.py
Python
gpl-3.0
2,338
[ "Gaussian" ]
8647beb207e08d7ad3b0b6dd645765a22ddcacebe7fdbffc60686598acd9201c
#!/usr/bin/env python from math import sqrt import gtk from ase.gui.languages import translate as _ from ase.gui.widgets import pack, Help class Constraints(gtk.Window): def __init__(self, gui): gtk.Window.__init__(self) self.set_title(_('Constraints')) vbox = gtk.VBox() b = pack...
slabanja/ase
ase/gui/constraints.py
Python
gpl-2.0
1,528
[ "ASE" ]
7d8e5051b1542a7adb12aece09eb80b9aa4cc96090f8c7b732bb14abf54db8d0
""" This software is an implementation of Deep MRI brain extraction: A 3D convolutional neural network for skull stripping You can download the paper at http://dx.doi.org/10.1016/j.neuroimage.2016.01.024 If you use this software for your projects please cite: Kleesiek and Urban et al, Deep MRI brain extraction: A 3...
GUR9000/Deep_MRI_brain_extraction
utils/Segmentation_predictor.py
Python
mit
15,201
[ "NEURON" ]
abece599bb1dffea71d4dd318cf9f6e356ed067b053e7a76eaa73a0b40ab9811
from collections import namedtuple class CPH_Help: quickstart = """<html> <strong>The quicksave and quickload functionality (see buttons above) persist through<br> reloading not only the extension, but Burp Suite entirely. All values of each existing<br> configuration tab will be saved, along with the...
elespike/burp-cph
CPH_Help.py
Python
mit
5,303
[ "VisIt" ]
40717e2c2de1fcc5fcd76b075bc1a7e86e4b27b9963bd18ba7b018e1c1c06b78
import ast import inspect from ast import ( Assign, Call, Continue, Load, Name, Num, Store, Tuple, While ) from functools import wraps def deindent(source): if source.startswith(" "): lines = source.split("\n") level = len(filter(lambda s: not s, lines[0].split(" "))) return "\n".join...
Bogdanp/tcopy
tcopy/tco.py
Python
mit
4,395
[ "VisIt" ]
6fab8497719e495cb6506145e1fe3955516bc4eebd6b1bbbd24e7a9cdadbb61d
# Copyright (C) 2016-2019 The ESPResSo project # Copyright (C) 2014 Olaf Lenz # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or...
KaiSzuttor/espresso
src/python/espressomd/gen_pxiconfig.py
Python
gpl-3.0
1,845
[ "ESPResSo" ]
7545bbc76cd4c77b8e265271966e4c43ea4e3ff566bd471ecb07a123317b40bf
#! /usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### ## ## ## Copyright 2010-2012, Neil Wallace <neil@openmolar.com> ## ## ...
rowinggolfer/openmolar2
src/lib_openmolar/admin/db_orm/admin_users.py
Python
gpl-3.0
8,185
[ "CRYSTAL" ]
733929be1c0ba784478ef580ccb821869ac10d5e5fb66b835f8fcd5074b1bbf5
""" THE KNIGHT'S TOUR Starting from any initial position, use a knight to visit all the squares of a chessboard exactly once. Copyright 2017 George Boukeas (boukeas@gmail.com) Licensed under the MIT License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associate...
boukeas/searchtoy
examples/knight-tour/knight.py
Python
mit
8,167
[ "VisIt" ]
33d05607b8d21c9d67e756798341f713d8efee09033a8db8e86a765f004fc10d
# -*- coding: utf-8 -*- """This module tests various ways how to set up the provisioning using the provisioning dialog.""" from datetime import datetime, timedelta import fauxfactory import pytest import re from widgetastic.utils import partial_match from cfme import test_requirements from cfme.base.login import Base...
jkandasa/integration_tests
cfme/tests/infrastructure/test_provisioning_dialog.py
Python
gpl-2.0
11,178
[ "VisIt" ]
5afeb4e490d719ebf64989b8a85ec2554ad6b08808b6552546729263da2a5387
# 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 http://mozilla.org/MPL/2.0/. import os, re, sys from copy import deepcopy import ipdl.ast from ipdl.cxx.ast import * from ipdl.type import ActorType...
sergecodd/FireFox-OS
B2G/gecko/ipc/ipdl/ipdl/lower.py
Python
apache-2.0
194,004
[ "VisIt" ]
7d04887216afe3cd507c02314a0d34f0e7c5bda4091a5a469b2bc15a7aa42b7f
#!/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/cc/test/test_rccsd_lambda.py
Python
apache-2.0
12,951
[ "PySCF" ]
63fec4f50c39c31a4ab690bc79e16a15f40c16c45a6689d1260a14f91e006f83
# -*- coding: utf-8 -*- """ Created on Mon Jan 7 13:49:24 2019 @author: butenko """ import h5py import os import neuron as n import numpy as np from pandas import read_csv import matplotlib.pyplot as plt import time as tm import multiprocessing as mp from Axon_files.axon import Axon from Axon_files.Parameter_inserti...
andreashorn/lead_dbs
ext_libs/OSS-DBS/OSS_platform/Axon_files/NEURON_direct_run.py
Python
gpl-3.0
21,587
[ "NEURON" ]
09b484d946a48db50f49d0e3ef4f81ace39664d8157ca892d3385b137fb782d0
# -*- coding: utf-8 -*- # *********************************************************************** # Copyright (C) 2016 - 2017 Oscar Gerardo Lazo Arjona * # <oscar.lazoarjona@physics.ox.ac.uk> * # *********************************************************************** ...
oscarlazoarjona/quantum_memories
examples/hyperfine_orca/simple_example.py
Python
gpl-3.0
1,936
[ "ORCA" ]
68681f80f58ce0620783bb784770aded40cbab60fa57c19816df3a404b5f5941
import bpy import math import random import heapq import numpy from .. import pam_vis from .. import model from .. import pam from .. import mesh from . import data from . import anim_spikes from . import anim_functions from .helper import * import traceback import logging logger = logging.getLogger(__package__) #...
MartinPyka/Parametric-Anatomical-Modeling
pam/pam_anim/pam_anim.py
Python
gpl-2.0
36,893
[ "NEURON" ]
97100fecd0dafe45e38b60193cc69026b99262ffccc3bc879d56cdf5de35d9c2
# Tutorial2.py # Author : Jose Guzman # Mail : jose.guzman __at__ physiologie.uni-freiburg.de #! /usr/bin/env python import neuron import nrn from neuron import h # load Neuron graphical user interface #if not ( h('load_file("nrngui.hoc")')): # print "Error, cannot open NEURON gui" # create soma object soma = nr...
nmsutton/MemoryModule
python_version/examples/Tutorial2.py
Python
mit
960
[ "NEURON" ]
1ac2442a5a997c84e56c3d3f3d2870a2f283c54a91ecf2cd7fbd4ae75991f997
import math from PyQt4.QtCore import pyqtSlot import numpy as np import random import pyqtgraph as pg from pyqtgraph.Qt import QtGui, QtCore from worker import Worker import time from multiprocessing import Queue import sys class AlgoGen(QtCore.QThread): triggerUpdate = QtCore.pyqtSignal() """Genetic algorithm ...
bchappet/dnfpy
src/dnfpyUtils/optimisation/ag.py
Python
gpl-2.0
12,953
[ "Gaussian" ]
e9da6f3a924ba5eb73c6f24744086179f819ce89c0f121c1576347f9c09b0ea6
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpat...
dfirst/django_cv
config/urls.py
Python
mit
1,433
[ "VisIt" ]
0f0ca43eda95cbd681145feb171fb7be2c76772ccbc87a09b6090e6832276a1f
from __future__ import print_function from six import iteritems from six.moves import range import os from collections import defaultdict import vtk from vtk import vtkTriangle, vtkTetra from pyNastran.converters.fast.fgrid_reader import FGridReader class FastIO(object): def __init__(self): pass de...
saullocastro/pyNastran
pyNastran/converters/fast/fast_io.py
Python
lgpl-3.0
6,249
[ "VTK" ]
ed10cfd04676e9da9675a1b1a042f9bc67791f45ca8e45f163bcfb8a2d5094a8
# (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...
ravibhure/ansible
lib/ansible/playbook/conditional.py
Python
gpl-3.0
10,078
[ "VisIt" ]
b97706b1b06c3756b6e42468643a1cac5d4686bbb1636c9c13ff9285c24b87ee
#!/usr/bin/env python #coding:utf-8 from gi.repository import Gtk class LinkButtonWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title='LinkButton Demo') self.set_border_width(10) button = Gtk.LinkButton('http://www.gtk.org', 'Visit Gtk+ homepage') self.add(but...
qytz/qytz-notes
source/tech/PyGObject-Tutorial/examples/linkbutton_example.py
Python
mit
423
[ "VisIt" ]
49eb9e8f0520530bf92650af1d132027df9e8c1df25a9632f20f39e1e400eb8e
# -*- coding: utf-8 -*- """ *************************************************************************** GrassAlgorithm.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ************************...
SebDieBln/QGIS
python/plugins/processing/algs/grass/GrassAlgorithm.py
Python
gpl-2.0
22,814
[ "NetCDF" ]
750ef21d0b442d4224ce3f9688854667adf2669c0cdb330be7d5e3b667d5b217
#!/usr/bin/env python3 '''Glob through files in current directory looking for */*_ligand.sdf and */*.gninatypes (assuming PDBbind layout). Calculate the distance between centers. If types files are passed, create versions with this information, optionally filtering. ''' import sys,glob,argparse,os import numpy as n...
gnina/scripts
calccenters.py
Python
bsd-3-clause
1,799
[ "Pybel" ]
70619f4351c7beb6553f07d587840590a07970a0d962082f7d8006bde800e55b
# 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 Phyluce(PythonPackage): """phyluce (phy-loo-chee) is a software package that was initially...
LLNL/spack
var/spack/repos/builtin/packages/phyluce/package.py
Python
lgpl-2.1
1,610
[ "BWA", "Biopython" ]
cc20e2793b6bc011cd20b3b77406f3c18267e3bf889413986502e60c37cabbf1
# This file is vendored from Autorelease import os import ast import sys import fnmatch # Py 2 from setuptools import setup def _glob_glob_recursive(directory, pattern): # python 2 glob.glob doesn't have a recursive keyword # this implements for the specific case that we want an exact match # See also h...
choderalab/openpathsampling
setup.py
Python
lgpl-2.1
4,759
[ "VisIt" ]
415c29f808dde86deb60d795057fe37febd145c8ffaf24ad5a8b37dd27688d64
#!/usr/bin/env python #coding:utf-8 # File: pre_process_snlp.py # Author: Dr. Ivan S. Zapreev # Purpose: Pre-processor helper for the source text based on Stanford Core NLP output # This script requires three parameters: # ${1} - is the input file name with Stanford CoreNLP processed UTF-8 text...
ivan-zapreev/Distributed-Translation-Infrastructure
script/text/pre_process_snlp.py
Python
gpl-2.0
7,797
[ "VisIt" ]
bdcc176ed46b5666b1e4f559ec665967341071b9972d269e45821af5ab481578
# Copyright 2017 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...
jart/tensorflow
tensorflow/contrib/autograph/pyct/cfg_test.py
Python
apache-2.0
24,299
[ "VisIt" ]
46e1a8fec1d5476a7c2241289fa39943c0d83a83f0968d52da9303b814ba17c0
import unittest import io import sys from strategy.ducks import MallardDuck, ModelDuck from strategy.fly_behaviours import FlyRocketPowered from observer.weather_data import WeatherData from observer.observers import CurrentConditionsDisplay from decorator.beverages import Espresso, DarkRoast from decorator.condimen...
ajbrzoz/Head-First-Design-Patterns
tests/test_patterns.py
Python
mit
4,067
[ "ESPResSo" ]
5ff16edf86a3cae72b30b3c6444166c342b3be7e69e6d005ad503792dc7f23d0
# Copyright (c) 2008 Brian Zimmer <bzimmer@ziclix.com> # # 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, m...
bzimmer/pysmug
pysmug/__init__.py
Python
mit
3,543
[ "Brian" ]
c6d303caf62ef44c1928bd6998c00b0017c661061e417988a71ad82d5e877b42
#!/usr/bin/env python from setuptools import setup, find_packages import re import os # There is an issue with building python packages in a shared vagrant directory because of how setuptools works # in python < 2.7.9. We solve this by deleting the filesystem hardlinking capability during build. # See: http://stackove...
tobyoxborrow/gitlint
setup.py
Python
mit
2,831
[ "VisIt" ]
f50708bdcd4120359da7466a56d961c8fbb79b7d706a8127588a7f1250a86126
from math import sqrt import numpy as np from pymicro.view.scene3d import Scene3D from pymicro.view.vtk_utils import * from pymicro.crystal.lattice import HklPlane from pymicro.crystal.microstructure import Orientation ''' Create a 3d scene with a hexagonal crystal lattice. The usual hexagonal prism is displayed with ...
heprom/pymicro
examples/3d_visualisation/hcp_crystal_3d.py
Python
mit
2,860
[ "CRYSTAL", "VTK" ]
c4cbf1aa2ce4c86f27253e20279f92321d0e639ddfc576e655be6da9fb98cb98
""" @name: Modules/Core/Mqtt/mqtt_util.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2015-2020 by D. Brian Kimmel @license: MIT License @note: Created on Jul 13, 2015 @Summary: """ __updated__ = '2020-01-19' # Import system type stuff # Import PyMh files and module...
DBrianKimmel/PyHouse
Project/src/Modules/Core/Mqtt/mqtt_util.py
Python
mit
3,273
[ "Brian" ]
9eb60a68e2c3f0f7e544b27f16ae0f33f143f89d8d4a099fdde74862cfc51753
#!/usr/bin/python # -*- coding: utf-8 -*- ''' freeseer - vga/presentation capture software Copyright (C) 2011 Free and Open Source Software Learning Centre http://fosslc.org This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the ...
Freeseer/freeseer
src/freeseer/frontend/configtool/AVWidget.py
Python
gpl-3.0
9,939
[ "VisIt" ]
19c6a01a2aae686a709013429c21c7662a14abf66dca4a8e0fc6f98fce5999a3
# # Copyright (C) 2013 Stanislav Bohm # # This file is part of Kaira. # # Kaira is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License, or # (at your option) any later versi...
Kobzol/kaira
gui/cconfig.py
Python
gpl-3.0
10,258
[ "FLEUR" ]
0f5312715df909c8e3de55307a37e36ffdd4ff602d37590d50e18099db837326
# Copyright 2013-2014 Mitchell Stanton-Cook Licensed under the # Educational Community 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.osedu.org/licenses/ECL-2.0 # # Unless required by ...
jling90/SeqFindR
SeqFindr/blast.py
Python
apache-2.0
7,539
[ "BLAST" ]
9352bd1fb32f71b44827a1b62aca857648cb92c0f8c289b211278d81e21e2d05
# -*- coding: utf-8 -*- # # GSL documentation build configuration file, created by # sphinx-quickstart on Mon Feb 27 15:17:27 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All c...
BrianGladman/GSL
doc/conf.py
Python
gpl-3.0
6,512
[ "Brian" ]
bc4cfbce97f324ef1dd5d71c9d2a8a0895576bedcf3dc8b83238f9b3118b8783
#* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgpl-2.1.html """Tools fo...
nuclear-wizard/moose
python/MooseDocs/common/build_class_database.py
Python
lgpl-2.1
3,544
[ "MOOSE" ]
aa7afacd7238134e9836f450c7fb1a0347892633379c513db9ee2f71d209ec4a
''' Code for Fast k-Nearest Neighbour Search via Prioritized DCI This code implements the method described in the Prioritized DCI paper, which can be found at https://arxiv.org/abs/1703.00440 This file is a part of the Dynamic Continuous Indexing reference implementation. This Source Code Form is subject to the t...
ke-li/dci-knn
examples/example_tf.py
Python
mpl-2.0
13,285
[ "VisIt" ]
8723d5ca9e618953671712f2872f48bbbb8a28a41df3ad033f2b38e213302888
from time import time import sys import numpy as np from gpaw import parsize, parsize_bands from gpaw.band_descriptor import BandDescriptor from gpaw.grid_descriptor import GridDescriptor from gpaw.kohnsham_layouts import BandLayouts from gpaw.mpi import world, distribute_cpus from gpaw.utilities import gcd from gpaw.u...
qsnake/gpaw
gpaw/test/parallel/hamiltonian.py
Python
gpl-3.0
3,449
[ "GPAW" ]
0a9aa2849f9f47232464b4c2c2f9fb1bbd43c9c89019be838ee39006fe79696a
# Copyright (c) 2012, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from __future__ import division import unittest import numpy as np import GPy class MiscTests(unittest.TestCase): def setUp(self): self.N = 20 self.N_new = 50 self.D = 1 ...
esiivola/GPYgradients
GPy/testing/model_tests.py
Python
bsd-3-clause
52,590
[ "Gaussian" ]
f7e9841a52c467274704c1886d2d312bbd51f4aef873226963def442f39a2e05
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from .calculations import * from .netcdf import * from .pseudos import * from .tasks import * from .works import *
matk86/pymatgen
pymatgen/io/abinit/__init__.py
Python
mit
226
[ "NetCDF", "pymatgen" ]
1e0b7f594ed463b31a6b1f3b45a4d484132f6339207620ecd078c3e29355d9f3
""" Here we test the FDR algorithm using two maps with pure Gaussian noise. In one map the pixels are not spatially correlated, in the other one they are. In fact, the second map has been made by convolving a map similar to the first with the dirty beam of a certain VLA observation. Analysis shows that the pixel val...
mkuiack/tkp
tests/test_sourcefinder/test_FDR.py
Python
bsd-2-clause
4,451
[ "Gaussian" ]
f49ee6330a1c388f36a3d2fc10d2be4a3b1ea114579b0514192f1cd5b20d1015
#!/usr/bin/env python ############################################################################### # # __get_inter_phyla_transfers.Trackm__.py - Description! # ############################################################################### # # # This program is free software: you can redistribute it and/or modify # ...
JoshDaly/scriptShed
get_inter_phyla_transfers.Trackm.py
Python
gpl-2.0
14,510
[ "Biopython" ]
f1b011b70939e38939e7cb1eb426774f6867461d0406012bfe2996c80214d23a
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A Beauchamp # # MDTraj is...
casawa/mdtraj
mdtraj/testing/testing.py
Python
lgpl-2.1
8,290
[ "MDTraj" ]
54e9842707f36b7dd5fc4040c2c8da12edcde2c7241d53d4e8aaed295f17e6fd
# (C) British Crown Copyright 2010 - 2015, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
ghislainp/iris
lib/iris/tests/test_grib_save.py
Python
gpl-3.0
10,458
[ "NetCDF" ]
7a4fa487d1bd148a88f5f7b59d3a32e1e2ad836a1e6ed76b0b1ea2fe22806abb
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() lut = vtk.vtkLookupTable() lut.SetHueRange(0.6, 0) lut.SetSaturationRange(1.0, 0) lut.SetValueRange(0.5, 1.0) # Read the data: a height field results demReader = vtk.vtkD...
hlzz/dotfiles
graphics/VTK-7.0.0/Rendering/Core/Testing/Python/TestCameraInterpolator.py
Python
bsd-3-clause
3,441
[ "VTK" ]
f0bb28c0c21b45cb82baa10428a36e140e70a6d95c0de8448a93b8d53d70536a
# -*- coding: iso-8859-1 -*- # # Bicycle Repair Man - the Python Refactoring Browser # Copyright (C) 2001-2006 Phil Dawes <phil@phildawes.net> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. #!/usr/bin/env python impo...
lebauce/artub
bike/parsing/test_fastparser.py
Python
gpl-2.0
4,594
[ "VisIt" ]
4a3439eff5101c3eef2dd07a76be7e222205d7f670e67b9fe05be168b3975031
# -*- coding: utf-8 -*- import moose foo = moose.Pool('/foo1', 500) bar = moose.vec('/foo1') assert len(bar) == 500
dharmasam9/moose-core
tests/python/test_vec.py
Python
gpl-3.0
116
[ "MOOSE" ]
42845e86d15a4271626c81f5193e10740ee9793a29b49547eecab15bcf2e804b
""" Find the k-th min of a binary search tree. Bonus: find the k-th max. """ import unittest class BST(object): def __init__(self, value): self.value = value self.left, self.right = None, None def build_bst(): _4 = BST(4) _8 = BST(8) _10 = BST(10) _12 = BST(12) _14 = BST(14)...
kratorius/ads
python/interviewquestions/bst_kth_min.py
Python
mit
2,847
[ "VisIt" ]
65b8ec4c7d6de33f0f16af91fe24e4498496e7363692c5ebfa0d8788abbc11d6
# Hidden Markov Model Implementation import math import pylab as pyl import numpy as np import matplotlib.pyplot as pp import matplotlib.cm as cm #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy import tf #impo...
tapomayukh/projects_in_python
rapid_categorization/fixed_length_training_data/hmm_force_motion_10_states_scaled_wrt_all_data.py
Python
mit
13,096
[ "Gaussian", "Mayavi" ]
3b13e5ac1be7e5d3a5fe42caad5a61133e86bd434001003082abb4a555c12bc6
"""HTTPS module based on the GFAL2_StorageBase class.""" # from DIRAC from DIRAC.Resources.Storage.GFAL2_StorageBase import GFAL2_StorageBase from DIRAC import gLogger class GFAL2_HTTPSStorage( GFAL2_StorageBase ): """ .. class:: GFAL2_HTTPSStorage HTTP interface to StorageElement using gfal2 """ _INPUT_P...
petricm/DIRAC
Resources/Storage/GFAL2_HTTPSStorage.py
Python
gpl-3.0
797
[ "DIRAC" ]
61bee87557375ebda074c844d9a52fa1a831029b73a2b51f7a51847fcd86a495