text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
#!/usr/bin/env python # @package vfnow # \author Ed Bueler and Constantine Khroulev, University of Alaska Fairbanks, USA # \brief A script for verification of numerical schemes in PISM. # \details It specifies a refinement path for each of Tests ABCDEFGIJKL and runs # pismv accordingly. # Copyright (C) 2007--2013, 201...
talbrecht/pism_pik
test/vfnow.py
Python
gpl-3.0
13,390
[ "NetCDF" ]
25df9e293d36ef29c10d27dd553544de1ea3b2f872575f4a7b3c28b7216b8104
#!/usr/bin/python # Copyright 2009 Google Inc. All rights reserved. """This script generates an rc file and header (setup_strings.{rc,h}) to be included in setup.exe. The rc file includes translations for strings pulled from generated_resource.grd and the localized .xtb files. The header file includes IDs for each s...
amyvmiwei/chromium
chrome/installer/util/prebuild/create_string_rc.py
Python
bsd-3-clause
7,361
[ "xTB" ]
e58804f3b6e31fd159337d6dfc3cc6239bd5927efc7555d8ace7d738855fdd28
"""GC Larsen wake model applied to offshore wind farms (WindFarm object) @moduleauthor:: Juan P. Murcia <jumu@dtu.dk> References: [1] Larsen GC. "A simple stationary semi-analytical wake model", 2009 """ import numpy as np import fusedwake.WindTurbine as wt import fusedwake.WindFarm as wf def Ua(r,te,zc,us,z0): ...
rethore/FUSED-Wake
fusedwake/gcl/python/gcl.py
Python
agpl-3.0
22,558
[ "Gaussian" ]
091d3474657bfe9bc6cd1c4cb025e2c89d32dae0aaafdaf635be57e19cb18fe8
''' my.oledhat.testbed Home of my_test_iface() That subroutine is used by fonsa_bakebit_nanohat_oled_background_p3.py and testme.py when the user wants to experiment with new (OLED) interface features. Created on Jan 10, 2018 @author: johnrabsonjr ''' import sys from my.miscellany import sleep from my.oledhat im...
HugoMMRabson/fonsa
src/my/oledhat/testbed.py
Python
gpl-3.0
4,377
[ "exciting" ]
bcdcb405060bee7dd960e3371bc46035c04b7d7706de9b3d0b84e5fe95164afc
######################################################################## # $HeadURL$ # File : TestWatchdogMac.py # Author: Stuart Paterson ######################################################################## from DIRAC.Core.Base import Script Script.parseCommandLine() from DIRAC.WorkloadManagementSystem.JobWrappe...
sposs/DIRAC
WorkloadManagementSystem/JobWrapper/test/TestWatchdog.py
Python
gpl-3.0
4,431
[ "DIRAC" ]
177fee626b922c6fe97aa2f04a23a3a8f64c34a9636ccf13517c8d652d75077e
# Copyright (c) 2013-2015 University Corporation for Atmospheric Research/Unidata. # Distributed under the terms of the MIT License. # SPDX-License-Identifier: MIT """ ================ NCSS and CartoPy ================ Use Siphon to query the NetCDF Subset Service (NCSS) and plot on a map. This example uses Siphon's ...
dopplershift/siphon
examples/ncss/NCSS_Cartopy_Example.py
Python
mit
4,888
[ "NetCDF" ]
76f7d4c66a8c0fd33d99e1df42b16f36a1ccd59b0a342f0d149b2a0d446d30d6
import requests, resolveurl import re import xbmcaddon,time from ..scraper import Scraper from ..common import clean_title,clean_search,random_agent,send_log,error_log dev_log = xbmcaddon.Addon('script.module.universalscrapers').getSetting("dev_log") from universalscrapers.modules import cfscrape class filmclub(Scrape...
repotvsupertuga/tvsupertuga.repository
script.module.universalscrapers/lib/universalscrapers/scraperplugins/unsure/filmclub.py
Python
gpl-2.0
4,068
[ "ADF" ]
3d15896a4e336fc8bce16103cd0cba98e1418a279eaba0a846f98b148f5779a5
# Lint as: python2, python3 # Copyright 2015 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 # ...
xzturn/tensorflow
tensorflow/tools/common/public_api.py
Python
apache-2.0
5,044
[ "VisIt" ]
83ce5b652672ca9d72897c7266e62298dca82a455c83fa4af2092e6ae868904b
#!/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/pbc/dft/test/test_uks.py
Python
apache-2.0
2,134
[ "PySCF" ]
0334fb9ec20eff246f87cd32d3fea6d506fd2a390f48d16b62685b0eae835677
# coding: utf-8 from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import random import re import socket import sys import time import math from ..compat import ( compat_cookiejar, compat_cookies, compat_etree_fromstring, compat_getp...
phihag/youtube-dl
youtube_dl/extractor/common.py
Python
unlicense
122,941
[ "VisIt" ]
8da09d70c1e8eddfbd5a66932f35857500fcb3a40b5bd6b25414a21d41aba461
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # worker - Background worker threads # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License a...
heromod/migrid
mig/shared/worker.py
Python
gpl-2.0
2,814
[ "Brian" ]
f62f5c5f92e841e126d6a4749fff249a6d3f3fe0657a3986675abbf834b96232
geo_names={ (0, 0): u'US', (1, 0): u'Alabama', (1, 1): u'Autauga County, Alabama', (1, 3): u'Baldwin County, Alabama', (1, 5): u'Barbour County, Alabama', (1, 7): u'Bibb County, Alabama', (1, 9): u'Blount County, Alabama', (1, 11): u'Bullock County, Alabama', (1, 13): u'Butler County, Alabama', (1, 15): u'Cal...
CivicKnowledge/geoid
geoid/censusnames.py
Python
bsd-2-clause
132,257
[ "COLUMBUS", "Elk" ]
d9b582aa6bac93e88343ea8b2bace21c764998172d74e3f298a6280411d961d2
""" Countries list for the countries app. """ # Country codes correct as of 23th June 2015 COUNTRIES_CHOICES = ( ('AFG', "Afghanistan"), ('ALB', "Albania"), ('DZA', "Algeria"), ('ASM', "American Samoa"), ('AND', "Andorra"), ('AGO', "Angola"), ('AIA', "Anguilla"), ('ATA', "Antarctica"),...
TamiaLab/carnetdumaker
apps/countries/countries.py
Python
agpl-3.0
15,927
[ "BWA" ]
11cad7ba18f161edc6e9d7b684df5e16d3d95517439fa6a15760eed658a4f1f0
# -*- coding: utf-8 -*- # # MNE documentation build configuration file, created by # sphinx-quickstart on Fri Jun 11 10:45:48 2010. # # 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...
cjayb/mne-python
doc/conf.py
Python
bsd-3-clause
27,783
[ "Mayavi", "VTK" ]
8330a79f743bedbff43bd431b961d194ba044bb4ff440422d2f969a029698740
__version__ = '1.1a' import kivy from kivy.app import App from kivy.core.window import Window from kivy.uix.screenmanager import ScreenManager, Screen, SlideTransition from kivy.properties import ObjectProperty #from kivy.uix.boxlayout import BoxLayout #install_twisted_rector must be called before importing the reac...
DeathPoison/roomControll
TwistedClient_KIVY/main.py
Python
mit
4,808
[ "TINKER" ]
c8427a613f0a713a870f80b3d020295989c2192a78ff414392391589d89c95a7
# -*- coding: utf-8 -*- """Functions to make 3D plots with M/EEG data.""" from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <lar...
nicproulx/mne-python
mne/viz/_3d.py
Python
bsd-3-clause
78,615
[ "Mayavi", "VTK" ]
4690d9ce8b9ce25a982c73df3f50977f1e7a6df911e781231eeb679e4880724f
# This file has to be run in pure Python mode! # Imports from the CO𝘕CEPT code from commons import * from snapshot import load plt = get_matplotlib().pyplot # Absolute path and name of this test this_dir = os.path.dirname(os.path.realpath(__file__)) this_test = os.path.basename(os.path.dirname(this_dir)) # Read in...
jmd-dk/concept
test/powerspec/analyze.py
Python
gpl-3.0
6,692
[ "Gaussian" ]
703d102c4f0a17e4d9709b1ab13ff40e46f779776ae40820ea9a36e27865a568
import os import os.path import colorsys from itertools import izip try: import json except ImportError: import simplejson as json import whisper import firefly.data_source class GraphiteWSP(firefly.data_source.DataSource): """Stats from Graphite's Whisperdb files""" DESC = "Graphite" def __i...
Yelp/firefly
firefly/data_sources/graphite_wsp.py
Python
isc
2,236
[ "Firefly" ]
1433b6589ce813df3c792244e6841955f6a0967c79e72b30d9492c467c264163
# OpenShot Video Editor is a program that creates, modifies, and edits video files. # Copyright (C) 2009 Jonathan Thomas # # This file is part of OpenShot Video Editor (http://launchpad.net/openshot/). # # OpenShot Video Editor is free software: you can redistribute it and/or modify # it under the terms of the GNU G...
XXLRay/libreshot
libreshot/blender/scripts/spacemovie_intro.py
Python
gpl-3.0
5,628
[ "Galaxy" ]
38eabe28b928209102ace3294379c3fd51c6e084c4f0ceecac22916af0be2224
from soap.common import base_dispatcher from soap.semantics.functions import arith_eval, bool_eval from soap.program.flow import CompositionalFlow, WhileFlow class BaseState(base_dispatcher('visit')): """Base state for all program states.""" __slots__ = () @classmethod def empty(cls): return ...
admk/soap
soap/semantics/state/base.py
Python
mit
2,662
[ "VisIt" ]
8e8a531639fcbb1597cb9ef0a6f518694c31c8ccb64eec2b0f5ea9525ea50e19
"""PiecewiseFunction for piecewise functions.""" from __future__ import print_function import bisect import numbers import operator from functools import partial from .integration import * from .interpolation import * from .utils import epsunique, estimateDegreeOfPole, testPole, findinv, findinv_minf, findinv_pinf, ...
jszymon/pacal
pacal/segments.py
Python
gpl-3.0
90,885
[ "DIRAC" ]
888100a1f80f86455d2957ea54e9e8bafb69a3fd9ed9e5d54135e536066ef945
#!/usr/bin/env python """ openmoltools: Tools for Small Molecules, Antechamber, OpenMM, and More. COPYRIGHT AND LICENSE @author John D. Chodera <jchodera@gmail.com> @author Kyle A. Beauchamp <kyleabeauchamp@gmail.com> @author David L. Mobley <dmobley@mobleylab.org> All code in this repository is released under the ...
choderalab/openmoltools
openmoltools/__init__.py
Python
mit
906
[ "Amber", "Gromacs", "OpenMM" ]
f4c3ae23c67369054ed33018819262bf15c97dcbd4d845bc6f4ec91f993637e6
"""Qsignature: detection of sample mixups. https://sourceforge.net/p/adamajava/wiki/qSignature/ """ import os import shutil import subprocess import lxml import pysam import toolz as tz from bcbio import bam, utils from bcbio.distributed.transaction import file_transaction from bcbio.log import logger from bcbio.pro...
brainstorm/bcbio-nextgen
bcbio/qc/qsignature.py
Python
mit
8,491
[ "pysam" ]
e89a531ba5da409ade0376ff00c2711aa5cb98f51ff13b7a3820de02da2d93a0
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from lxml import etree, objectify from django.utils.six import StringIO from ..models import * from ..utils import get_content_type_id from .data import REVERSE_OPERATOR_TABLE from .exceptions import BlocklyXmlParserException class Blo...
dgk/django-business-logic
business_logic/blockly/parse.py
Python
mit
7,881
[ "VisIt" ]
9bf4c39d52806625113ba64ff903aeb74890354d13c6a6f4f2c1314c03b21bad
from __future__ import absolute_import import os import numpy as np from scipy.ndimage import center_of_mass from scipy.signal import fftconvolve # # INTERNAL DEPENDENCIES # from . import image_basics from .image_basics import load_image_to_numpy import scanomatic.io.logger as logger # # CLASSES # class FixtureI...
Scan-o-Matic/scanomatic
scanomatic/image_analysis/image_fixture.py
Python
gpl-3.0
8,369
[ "Gaussian" ]
3ffa32eb98671b1ec6f7022c46f98834abe21fd8a5a3211c56b7a01bee33246c
# -*- coding: utf-8 -*- # isort:skip_file """ Dimensional analysis and unit systems. This module defines dimension/unit systems and physical quantities. It is based on a group-theoretical construction where dimensions are represented as vectors (coefficients being the exponents), and units are defined as a dimension t...
wxgeo/geophar
wxgeometrie/sympy/physics/units/__init__.py
Python
gpl-2.0
7,219
[ "Avogadro" ]
ba59836fb931ec87f1ef6a9e96a5d11a765e09c9078bce8dd184dd2dec568912
from math import sin, cos, pi from ase import Atoms from ase.calculators.emt import EMT from ase.constraints import FixAtoms from ase.optimize.test import run_test from ase.lattice.surface import fcc111, add_adsorbate name = 'CO_Au111' def get_atoms(): zpos = cos(134.3/2.0*pi/180.0)*1.197 xpos = sin(134.3/2.0...
grhawk/ASE
tools/ase/optimize/test/CO_Au111.py
Python
gpl-2.0
870
[ "ASE" ]
8004d0eec91665cf246dd2e4d294cbede98b53114dac43fadc42935a346871bf
import functools import os.path import shutil import signal import splinter import splinter.exceptions import sys import urlparse import tests.appserver from tests import * from tests.web.conditions import WaitWhile, WaitUntil, BrowserHasURL from nose.tools import make_decorator def requires_login(fn): def __requir...
happz/settlers
tests/web/__init__.py
Python
mit
5,093
[ "VisIt" ]
c58b6308d2d9e831d9f96aaa79654d2182adba804a57b366594701501f44e7d2
""" A fast implementation of the Voigt function. """ # p2.6+ compatibility from __future__ import division, print_function, unicode_literals import numpy as np from math import sqrt, pi sqrtpi = sqrt(pi) # u values corresponding to H table values below U = np.arange(0, 20, 0.01) # Table of h1 and h3 for use in Voi...
nhmc/Barak
barak/absorb/voigt.py
Python
bsd-3-clause
73,281
[ "Gaussian" ]
6f3d7c8600155005ecd2175f3914c23ea301faa3ec0e9a6daef482d30993a1ba
# coding: utf-8 # Copyright 2017 CERN. This software is distributed under the # terms of the GNU General Public Licence version 3 (GPL Version 3), # copied verbatim in the file LICENCE.md. # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an In...
blond-admin/BLonD
blond/toolbox/filters_and_fitting.py
Python
gpl-3.0
7,393
[ "Gaussian" ]
84b0fbec68b93f294087fac602a92b3c5cfb72f2f3452f302658e75f542e7c0d
####################################################################### ####################################################################### # CoNIFER: Copy Number Inference From Exome Reads # Developed by Niklas Krumm (C) 2012 # nkrumm@gmail.com # # homepage: http://conifer.sf.net # This program is described in: #...
nkrumm/CoNIFER
conifer.py
Python
gpl-3.0
27,411
[ "pysam" ]
0863fc30302a0b054c6dae5f2c85c0a3de070fd25e5a69ae42e69e69aa772a0f
""" Service handler for generating pre-signed URLs for S3 storages. Permissions to request a URL for a given action are mapped against FC permissions This service can serve presigned URL for any S3 storage it has the credentials for. .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN S3Gateway :end-b...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/Service/S3GatewayHandler.py
Python
gpl-3.0
6,444
[ "DIRAC" ]
e550a45f411110aa9d37c8854e79743be7daec6a20886d41606eb25a1d9a80ef
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import os import random import unittest import json import six from monty.os.path import which from pymatgen import Lattice, PeriodicSite, Element from monty.j...
setten/pymatgen
pymatgen/transformations/tests/test_standard_transformations.py
Python
mit
19,976
[ "VASP", "pymatgen" ]
2cc7bcb14f7e154be00f49394ce6ff907adc211ac95f44076d38159e7059ac97
# # Copyright Capita Translation and Interpreting 2013 # # This file is part of Pipeline Creation Language (PCL). # # Pipeline Creation Language (PCL) 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 ve...
ianj-als/pcl
src/pclc/parser/conditional_expressions.py
Python
gpl-3.0
4,850
[ "VisIt" ]
00a67c5e897c06f65b92638a20ad7ab3e5988326fa0a93a15ee2d36d853ff807
from collections import defaultdict from itertools import count from operator import attrgetter from os import path as op import matplotlib.pyplot as plt import pandas as pd import numpy as np from tqdm import tqdm import pickle from ..exceptions import PipelineException try: import cv2 except ImportError: pr...
dimitri-yatsenko/pipeline
python/pipeline/utils/eye_tracking.py
Python
lgpl-3.0
45,937
[ "Gaussian" ]
c57a329b6586363e5857819a17eb260abaa85f647a800e4df1a0206f9fceb8f4
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et: # Copyright 2016-2018 Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # This file is part of qutebrowser. # # qutebrowser 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 S...
toofar/qutebrowser
qutebrowser/browser/webengine/webenginetab.py
Python
gpl-3.0
44,050
[ "VisIt" ]
4c24f4045efbd0f5a31ece1fa445dadcf31599d8c3ff46b49db72e7a0a5b2573
#!/usr/bin/env python """ Illustrates texturing on a glyph and also illustrates how easy it is to change that texture when you treat it as a numpy array. You can change the numpy array in-place and have TVTK re-render the scene. TVTK sees a view of this array without doing any data transfers. """ # Authors: Prabhu R...
joferkington/scipy2015-3d_printing
texture_example.py
Python
mit
4,375
[ "VTK" ]
d2bded84d86f98436722cafe26cf63b5a39f147a05cdb71afc065f36306865f7
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # Okinawa Institute of Science and Technology, Japan. # # This script runs on STEPS 2.x http://steps.sourceforge.net # # H Anwar, I Hepburn, H Nedelescu, W Chen and E De Schutter # Stochastic calcium mechanisms cause dendritic calcium spike...
CNS-OIST/STEPS_Example
publication_models/API_2/Anwar_J_Neurosci_2013/HybridCaburst_stochBK.py
Python
gpl-2.0
19,926
[ "Avogadro" ]
a239e0f5187076eef841c2813706e942f506110250f78eb3b8a44f38473ce4c6
# This code is so you can run the samples without installing the package import sys import os sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) # import pyglet import cocos from cocos.director import director from cocos.actions import * from cocos.layer import * from cocos.particle_systems import * cl...
adamwiggins/cocos2d
test/test_particle_fireworks.py
Python
bsd-3-clause
784
[ "Galaxy" ]
3c929d85c6ea81faae03a4461b70a98770c66175081532a82f8762353b654de7
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ...util.linalg import pdinv,jitchol,DSYR,tdot,dtrtrs, dpotrs from posterior import Posterior from . import LatentFunctionInference log_2_pi = np.log(2*np.pi) class EP(LatentFunc...
TianpeiLuke/GPy
GPy/inference/latent_function_inference/expectation_propagation.py
Python
bsd-3-clause
5,081
[ "Gaussian" ]
399288b15bc477732d3a39383f20e2183d16e5bd8d1b020fc5d6c7ab4bdb6663
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
vericred_client/models/provider_network_event_notification.py
Python
apache-2.0
16,193
[ "VisIt" ]
e22e3f36a151b3053bff6f448fb49effeef3bab93450103a5e595fb85245ff29
import networkx as nx __all__ = ["cytoscape_data", "cytoscape_graph"] _attrs = dict(name="name", ident="id") def cytoscape_data(G, attrs=None): """Returns data in Cytoscape JSON format (cyjs). Parameters ---------- G : NetworkX Graph Returns ------- data: dict A dictionary wit...
SpaceGroupUCL/qgisSpaceSyntaxToolkit
esstoolkit/external/networkx/readwrite/json_graph/cytoscape.py
Python
gpl-3.0
3,068
[ "Cytoscape" ]
7fc4edd84ba5e95e9c3c54cf6f35931cf2ceeff052db79a9def7e8e4145b94e6
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
intel-analytics/BigDL
python/orca/example/tfpark/tf_optimizer/evaluate.py
Python
apache-2.0
3,743
[ "ORCA" ]
89c8ebe1a02d52d748e8b8d955b0401cbdbdff699f4ab00312c79f0a2625b63e
# Copyright 2018-2020 The GPflow Contributors. 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 appli...
GPflow/GPflow
gpflow/optimizers/natgrad.py
Python
apache-2.0
16,686
[ "Gaussian" ]
ec74ef19b82202625648aef41ea583b1c7f024a7d08fc05bc08d647f1f078526
#!/usr/bin/env python ''' Script to read data from underway ctd files and write them to netCDF files. Use the conventions for Trajectory feature type and write as much metadata as possible. This script is meant to preserve the data identically as it is reported in the orignal files. Mike McCann MBARI 11 January 20...
duane-edgington/stoqs
stoqs/loaders/CANON/toNetCDF/uctdToNetcdf.py
Python
gpl-3.0
15,747
[ "NetCDF" ]
56c37e764c81245c3650e9c09920afacdcbb2d6acd9a18ab86f60e60de928ab1
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines classes for reading/manipulating/writing the main sections of FEFF input file(feff.inp), namely HEADER, ATOMS, POTENTIAL and the program control tags. XANES and EXAFS input files, are available, for no...
materialsproject/pymatgen
pymatgen/io/feff/inputs.py
Python
mit
32,599
[ "FEFF", "pymatgen" ]
e8de980143361256a55edc5fea40cf0f1ca450c5671f7b385b1d07ece5b908e8
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
mfherbst/spack
var/spack/repos/builtin/packages/r-yapsa/package.py
Python
lgpl-2.1
2,743
[ "Bioconductor" ]
5632d6ece89bb070ca84b338387d49daa5dbd828f5523b412b85804d4c19e9ef
''' Copyright (C) 2013 Travis DeWolf This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope t...
sebastien-forestier/pydmps
pydmps/dmp_discrete.py
Python
gpl-3.0
5,924
[ "Gaussian" ]
e870721f1ee99185afb8fd44a5af10777301bb6b371ed86aaed042ea89cfb96c
""" This module contains all the code necessary for the VAE. The general use is to instantiate a VAE with the appropriate hyper parameters, then to train it with a dataset. You can then load the resulting weights into a VAE later. Much of this code was taken from here: https://blog.keras.io/building-autoencoders-in-k...
MaxStrange/ArtieInfant
scratch/autoencoder/vae.py
Python
mit
17,584
[ "Gaussian" ]
ee96eaf81a3532cad375593fb0df840b112b1890df211e89716432e18c52f956
# pyshlex.py - PLY compatible lexer for pysh. # # Copyright 2007 Patrick Mezard # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. # TODO: # - review all "char in 'abc'" snippets: the empty string can be matched # - test line cont...
wwright2/dcim3-angstrom1
sources/bitbake/lib/bb/pysh/pyshlex.py
Python
mit
28,652
[ "VisIt" ]
37f9b7e1fc042e736ec3e76e8a7b5dd5cd2d6db381959ae5505153a1d748a88f
""" =========================================== =========================================== Author: Shujia Huang & Siyang Liu Date : 2014-05-20 08:50:06 """ import sys import numpy as np from sklearn import mixture from sklearn.utils.extmath import logsumexp # My own class import VariantDatum as vd import VariantRecal...
ShujiaHuang/AsmVar2
asmvar/vqsr/VariantRecalibratorEngine.py
Python
mit
6,457
[ "Gaussian" ]
5b5cb6d7bdc11d3166a9ba83d3c80f395438af91fd668e8eee3e934bd46cc801
# -*- coding: utf-8 -*- """ Handy things for interactive sessions. """ from __future__ import print_function, division try: import sip sip.setapi('QString', 2) sip.setapi('QVariant', 2) except: pass """matplotlib niceness: import mpltools.style mpltools.style.use('ggplot') and plt.tight_layout() """ ...
martindurant/misc
startup.py
Python
mit
8,893
[ "Gaussian" ]
0f3617734f4f0f5621f3e1371f1afb5980d74bbee5b16124cf661a2fca6f0ca8
# LICENSE: GPL2 # (c) 2013 Tom Schouten <tom@getbeep.com> # (c) 2014, Kamil Wartanowicz <k.wartanowicz@gmail.com> import logging from util import hextools import sim_reader from util import types from util import types_g class SimCard(object): def __init__(self, index=0, mode=sim_reader.MODE_PYSCARD, type=types.TY...
kamwar/simLAB
sim/sim_card.py
Python
gpl-2.0
7,524
[ "ADF" ]
be592213734596099d63aea10082aa7beb3884b9b185f82e53bdccf1eacfe8a5
""" pytest for WorkflowTasks """ # pylint: disable=protected-access,missing-docstring,invalid-name from mock import MagicMock import pytest from DIRAC import gLogger from DIRAC.Interfaces.API.Job import Job # sut from DIRAC.TransformationSystem.Client.TaskManager import WorkflowTasks gLogger.setLevel('DEBUG') moc...
andresailer/DIRAC
TransformationSystem/Client/test/Test_Client_WorkflowTasks.py
Python
gpl-3.0
5,329
[ "DIRAC" ]
8c321512cb73a771145fd4bc37a890a0736d431d22501828293f6e16ebd7a3e2
# -*- coding: utf-8 -*- # # Instant Press. Instant sites. CMS developed in Web2py Framework # Site: http://www.instant2press.com # # Copyright (c) 2010 Mulone, Pablo Martín # # License Code: GPL, General Public License v. 2.0 # License Content: Creative Commons Attribution 3.0 # # Also visit: www.web2py.com # ...
danisuke0781/instant-press
modules/filldb.py
Python
gpl-2.0
28,204
[ "VisIt" ]
605dd77d0bb966f1c58500e7832732a5c7b955cda45d40ee1fe54e2fd236dd17
import os from __main__ import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * import logging import sys if sys.version_info[0] == 3: basestring = str # # DeveloperToolsForExtensions # class DeveloperToolsForExtensions(ScriptedLoadableModule): """Uses ScriptedLoadableModule base class, availa...
fbudin69500/SlicerDeveloperToolsForExtensions
DeveloperToolsForExtensions/DeveloperToolsForExtensions.py
Python
apache-2.0
20,680
[ "VTK" ]
70bddcba72ce70900b1c927e31488a06e30f79b9f4e585e382ac1a34872d3945
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ The phasediagram package implements the analysis tools to perform phase stability analyses, including the constructing of phase diagrams, determination of decomposition products, etc. The package is designe...
setten/pymatgen
pymatgen/phasediagram/__init__.py
Python
mit
610
[ "pymatgen" ]
996556afe162f4118b4c3e8b7872089512b1dc951b08d6e5f98077a1d885436a
# -*- coding: utf-8 -*- # # Copyright (C) 2019 Chris Caron <lead2gold@gmail.com> # All rights reserved. # # This code is licensed under the MIT License. # # 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 th...
SickGear/SickGear
lib/apprise/plugins/NotifyNotica.py
Python
gpl-3.0
12,144
[ "VisIt" ]
af06a5067045fc84e292f60aec475f9dce0326cefcffb61a210cc58317b886ea
# Copyright (C) 2010 by Kevin Saff # This file is part of the CA scanner. # The CA scanner 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...
kcsaff/CA
src/views.py
Python
gpl-3.0
11,857
[ "MCell" ]
da27e6263528ceb6dbf68e203ce51bb5cf94c4b6a48df6047071779e4ac7fcba
#!/usr/bin/env python """\ reorder a revlog (the manifest by default) to save space Specifically, this topologically sorts the revisions in the revlog so that revisions on the same branch are adjacent as much as possible. This is a workaround for the fact that Mercurial computes deltas relative to the previous revisi...
iluxa-com/mercurial-crew-tonfa
contrib/shrink-revlog.py
Python
gpl-2.0
7,948
[ "VisIt" ]
1ea536f447eb93b8ea731c5ee5ff614b0dd1efa80d981d5f69e6837b64035e5e
# Copyright 2020 Google LLC 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 applicable law or ag...
googleapis/python-firestore
tests/unit/v1/test_async_transaction.py
Python
apache-2.0
35,994
[ "Galaxy" ]
60ec507b6a58f580e1d2548a72a385be9989eaac45f457bf6588ea74ad721b57
def highlightBlock(block, vtkwindow): """ Input: block[BlockInfo]: This block will be a child of /BCs vtkwindow[VTKWindowPlugin]: The vtk window to set the highlights on """ if not vtkwindow.isVisible() or not vtkwindow.isEnabled(): return if not block.path.startswith("/BCs...
Chuban/moose
python/peacock/Input/BCHighlighter.py
Python
lgpl-2.1
1,030
[ "VTK" ]
29e676e8fc8ae834704098efc29a43608e8814e8ae022dbd59460d9b5eb42321
from __future__ import division, print_function, absolute_import import numpy as np from scipy.ndimage import map_coordinates from dipy.viz.colormap import line_colors # Conditional import machinery for vtk from dipy.utils.optpkg import optional_package # import vtk # Allow import, but disable doctests if we don't ...
StongeEtienne/dipy
dipy/viz/utils.py
Python
bsd-3-clause
7,548
[ "VTK" ]
8ac25e6bde2e63f47009788ea799098fc0c0c26cd15f47cac04877562114f516
""" ======================================== Special functions (:mod:`scipy.special`) ======================================== .. module:: scipy.special Nearly all of the functions below are universal functions and follow broadcasting and automatic array-looping rules. Exceptions are noted. Error handling ==========...
Shaswat27/scipy
scipy/special/__init__.py
Python
bsd-3-clause
22,403
[ "Gaussian" ]
f20a42691cfdb5d5f15a2468113949e61b24afdd94950d40ee53ec662445f12d
""" Contains BACE data loading utilities. """ from __future__ import print_function from __future__ import division from __future__ import unicode_literals import sys import os import deepchem import tempfile import deepchem as dc def load_bace(mode="regression", transform=True, split="20-80"): """Load BACE-1 datas...
joegomes/deepchem
examples/bace/bace_datasets.py
Python
mit
2,390
[ "CRYSTAL" ]
d647e9277bbe5ccb6c2253d28f2bfcc78ee6fae29214541dec3c45c051c12881
from __future__ import division import numpy as np np.seterr(divide='ignore') # these warnings are usually harmless for this code from matplotlib import pyplot as plt import matplotlib import os matplotlib.rcParams['font.size'] = 8 import pyhsmm from pyhsmm.util.text import progprint_xrange print \ ''' This demo show...
bikash/pyhsmm
examples/hmm.py
Python
mit
2,178
[ "Gaussian" ]
21eb246a5b24ba96c1a7848eb12894a585e078d2e5f16926dae06339eaebc6a9
import csv import datetime from django.contrib.auth.models import User from django.db import transaction from django.core.exceptions import ObjectDoesNotExist from django.db.models import Sum from django.http import HttpResponse import glob import logging from numpy import * import numpy as np import openpyxl import si...
manterd/myPhyloDB
functions/utils/parsers.py
Python
gpl-3.0
80,777
[ "Bioconductor" ]
402760befd474226618357b0e2f8fc99a41b03e10bec8c80bc3f9edeff2ff2e8
""" This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well as testing instructions are located at http://amzn.to/1LzFrj6 For additional samples, visit the Alexa Skills Kit Getting Started guide at http://amzn.to/1LG...
jefftapper/SchoolDays
src/AlexaSchoolDays.py
Python
apache-2.0
9,493
[ "VisIt" ]
c1b23c4130aab0ba203985e57aabdaaa4087d166ec2887576d32c9d2d8840f14
#!/usr/bin/env python """ Determine number of processors and memory for the worker node """ __RCSID__ = "$Id$" import multiprocessing from DIRAC.Core.Base import Script from DIRAC import gLogger, gConfig from DIRAC.WorkloadManagementSystem.Utilities import JobParameters Script.setUsageMessage('\n'.join(['Get the ...
petricm/DIRAC
WorkloadManagementSystem/scripts/dirac-wms-get-wn-parameters.py
Python
gpl-3.0
2,577
[ "DIRAC" ]
d626a62698b7df51b725ece441408737e1390d35db3079bc350e1e497bc6dc9c
#!/usr/bin/env python import os import re import sys blas_routines = [ "caxpy", "ccopy", "cdotc", "cdotu", "cgbmv", "cgemm", "cgemv", "cgerc", "cgeru", "chbmv", "chemm", "chemv", "cher", "cher2", "cher2k", "cherk", "chpmv", "chpr", "chpr2", "crotg", "cscal", "csrot", "css...
qsnake/abinit
util/source/check-linalg-calls.py
Python
gpl-3.0
34,736
[ "ABINIT" ]
733047622f07e400d23df859e99bd264e1d29fb020afcea135d07c9c0dd50dba
#!/usr/bin/env python # -*- coding: utf-8 -*- """Example demonstrating how to SOFTify an Atoms object from ASE (https://wiki.fysik.dtu.dk/ase/). In this example we do the needed modifications to a subclass, but they could equally well be applied to the original class. """ from __future__ import print_function import ...
NanoSim/Porto
foreign/python/examples/softpy/atoms.py
Python
gpl-3.0
5,816
[ "ASE", "CRYSTAL" ]
86fb90b530297864b6d4320613b25b521415bb504f8ad34f4a1a9714297e83cf
#!/usr/bin/env python """ put files in the FileCatalog (and Storage Element) When destination SE is not specified, dput will use COMDIRAC configuration option "default_se". """ import os import DIRAC from DIRAC import S_OK, S_ERROR from COMDIRAC.Interfaces import critical from COMDIRAC.Interfaces import DSession f...
pigay/COMDIRAC
Interfaces/scripts/dput.py
Python
gpl-3.0
3,137
[ "DIRAC" ]
0c3250726a318dd09073a48fd3e7a547cf49f9a1ebbe880e8d2320bf5abe9975
# -*- coding: utf-8 -*- """ Created on Sun Sep 10 22:06:46 2017 Converting from GSFLOW_print_controlfile4_gcng_melt30yr.m Creates inputs files to run GSFLOW, based on the "Sagehen" example but modified for Chimborazo's Gavilan Machay watershed. Crystal's AGU2016 poster. GSFLOW Input files: - control file (gen...
UMN-Hydro/GSFLOW_pre-processor
python_scripts/GSFLOW_print_controlfile4_gcng_melt5yr_restart.py
Python
gpl-3.0
24,055
[ "CRYSTAL" ]
22d0d331ca2cba0894d9f8bf78f1e9b504dcad9a9670e49fd9f9a73195ac52eb
""" Contains all functions used for printing. Uses colorama for formatting. """ import subprocess import sys import textwrap import urllib import json import colorama import requests from socli import search, tui DEBUG = False # Bold and underline are not supported by colorama. _BOLD = '\033[1m' _UNDERLINE = '\033...
gautamkrishnar/socli
socli/printer.py
Python
bsd-3-clause
8,741
[ "VisIt" ]
268be08975eb07d8b49a163931bfade562938534513e43bb65f5c97e553df56e
from __future__ import division import numpy as np from filterbank import Steerable, SteerableNoSub import cv2 from scipy import signal import itertools def MSE(img1, img2): return ((img2 - img1)**2).mean() def fspecial(win = 11, sigma = 1.5): """ 2D gaussian mask - should give the same result as MATLAB's fspecia...
long0612/randProbs
IQA/metric.py
Python
mit
7,455
[ "Gaussian" ]
10ed1c4571282191373b64fa0d983d5091c3781f7a91cb9608ec0ed4920dda11
#!/usr/bin/env python # Copyright 2010, 2014-2015 VPAC # Copyright 2010, 2014 The University of Melbourne # # This file is part of Karaage. # # Karaage 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 v...
monash-merc/karaage
setup.py
Python
gpl-3.0
3,866
[ "Brian" ]
04761aa12388eb1fac970940cd0f4ab5274b621534466a3e04de2c2290d6b397
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow and Renderer ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) renWin.SetAlphaBitPlanes(1) iren = vtk.vtkRenderWind...
timkrentz/SunTracker
IMU/VTK-6.2.0/Rendering/Core/Testing/Python/TestWindowToImageTransparency.py
Python
mit
1,971
[ "VTK" ]
eb4e50ef9650273b730d430733e79ae3a8f187aa5c048e6cdc26b865a37d9a91
from pype.fgir import * from pype.error import * class Optimization(object): ''' Optimization pass interfaces. ''' def visit(self, obj): pass class FlowgraphOptimization(Optimization): ''' Called on each flowgraph in a FGIR. May modify the flowgraph by adding or removing nodes (return a...
Mynti207/cs207project
pype/optimize.py
Python
mit
8,237
[ "VisIt" ]
51be4fffb295955278b8a45eb5ed33704c71e4159db1b0990711adc84947512b
# -*- coding: utf-8 -*- import platform import os import subprocess import multiprocessing from multiprocessing.pool import ThreadPool import collections import shutil from invoke import task MAX_WORKER_NUM = 4 @task def check_flatc(cxt): path = shutil.which("flatc") if path is None: print("Not foun...
yichiuan/Moedict-Android
moe-converter/tasks.py
Python
apache-2.0
2,907
[ "MOE" ]
4a7490b039dfcb334d53e3d63a0091c45176afb845797af911fbdd261365c033
# -*- coding: utf-8 -*- import unittest import warnings import mock from brew.exceptions import DataLoaderException from brew.exceptions import GrainException from brew.exceptions import HopException from brew.exceptions import YeastException from brew.parsers import DataLoader from brew.parsers import JSONDataLoader ...
chrisgilmerproj/brewday
tests/test_parsers.py
Python
mit
10,095
[ "CRYSTAL" ]
7e253207abd85eb0f2fa65162fb97e492fb538665fca8d98a23c1966d04a21f3
# Copyright 2022 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
magenta/magenta
magenta/models/latent_transfer/common_joint.py
Python
apache-2.0
26,953
[ "Gaussian" ]
7900e5e0d985a35a1d293d5354b4661d099708f7bf6f305c29776106120c3462
""" Copyright 2015 Brian Quach Licensed under MIT (https://github.com/brianquach/udacity-nano-fullstack-movie-trailer/blob/master/LICENSE) # noqa """ import webbrowser class Movie(): """Represents a movie. Attributes: title: A string representing the movie title. storyline: A string represen...
brianquach/Full-Stack-Web-Developer-Nanodegree---P1
media.py
Python
mit
1,472
[ "Brian" ]
ce3e2909cbcee2316e9501378f1d8c859d4a8066d0736d0b47720242aa1ec113
#! /usr/bin/env python #This script renumbers all pdb files that are in PDB path # residue_renumber_all_pdbs.py <PDB path> <GROMACS programs path> # Example: python residue_renumber_all_pdbs.py /home/faccioli/Execute/1VII/ /home/faccioli/Programs/gmx-4.6.5/no_mpi/bin/ import sys import os from subprocess import Popen...
rodrigofaccioli/2pg_cartesian
scripts/checking/residue_renumber_all_pdbs.py
Python
apache-2.0
1,065
[ "Gromacs" ]
cf23fd5cd727e4d25de92a0f3ee85f292bb8275ef018747b096d647257b2506d
"""ropemacs, an emacs mode for using rope refactoring library""" import sys import ropemode.decorators import ropemode.environment import ropemode.interface from Pymacs import lisp from rope.base import utils # This global dictionary is used by Pymacs to determine whether or not # a function in `(interactive)` in th...
atilaneves/ropemacs_py3k
ropemacs/__init__.py
Python
gpl-2.0
22,874
[ "VisIt" ]
a946a11a4c3f2f02999a2a4f284ab1d26920411227af41919bf841dfa7be5ba6
#!/usr/bin/env python """ Demos of time encoding and decoding algorithms that use coupled ON-OFF IAF neurons. """ # Copyright (c) 2009-2015, Lev Givon # All rights reserved. # Distributed under the terms of the BSD license: # http://www.opensource.org/licenses/bsd-license import numpy as np # Set matplotlib backend...
bionet/ted.python
demos/iaf_coupled_demo.py
Python
bsd-3-clause
2,562
[ "NEURON" ]
e17927cdf860921fb4c8cacab1e56e8945a9157e7b17ec1dda4330a39386567f
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/auxiliary/core.py
Python
gpl-2.0
3,622
[ "MDAnalysis" ]
01026105c4c4871dffccb3f3caf6d9c05e52b33e520f8e4070d3468de6b9f09f
# Copyright 2018 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. import json from page_sets import press_story from telemetry import story DESCRIPTIONS = { 'ai-astar': 'This benchmark uses the [A* search algo...
scheib/chromium
tools/perf/page_sets/kraken_pages.py
Python
bsd-3-clause
4,046
[ "Brian", "Gaussian" ]
0dd01bc55985b35386fd6fd660489d467410e90d27a545ddec0d708578b28a0d
# coding=utf-8 # Copyright 2022 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
tensorflow/tensor2tensor
tensor2tensor/models/research/attention_lm_moe.py
Python
apache-2.0
27,374
[ "MOE" ]
85d9480bdbb3eec447b6aef331f87f4bc505080ae8061868a95f513ea9344293
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
centrumholdings/buildbot
buildbot/buildrequest.py
Python
gpl-2.0
5,048
[ "Brian" ]
a4ae6d0212c7c0eb38a6a4a2a57a99bdf8bb7c3dfba64da27656e2be04a8e993
# # 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 us...
lhfei/spark-in-action
spark-3.x/src/main/python/mllib/kernel_density_estimation_example.py
Python
apache-2.0
1,486
[ "Gaussian" ]
37c2eeeb1eddf9b987869e9338b0a05b12a9794c6139bdaf64a0a32335d5501c
""" Copyright (C) 2015, Jaguar Land Rover This program is licensed under the terms and conditions of the Mozilla Public License, version 2.0. The full text of the Mozilla Public License is at https://www.mozilla.org/MPL/2.0/ Rudolf Streif (rstreif@jaguarlandrover.com) """ from __future__ import absolute_import im...
dvthiriez/rvi_backend
web/can_fw/tasks.py
Python
mpl-2.0
7,202
[ "Jaguar" ]
02fe444de954d33feaa24edbfa0c5f11b87c902b961efb1d7bc9c12129d68778
""" Matomo template tags and filters. """ import re from collections import namedtuple from itertools import chain from django.conf import settings from django.template import Library, Node, TemplateSyntaxError from analytical.utils import ( disable_html, get_identity, get_required_setting, is_intern...
jcassee/django-analytical
analytical/templatetags/matomo.py
Python
mit
4,010
[ "VisIt" ]
827dd16bca5a90887c25da57573a18cf1e601cd0941bbe1b016ba60afd4039d6
# # A simple file for converting any XML file via an XSL stylesheet # Has also features for compiling teh generated file, if it's a # NEURON mod file # # Author: Padraig Gleeson # # This file has been developed as part of the neuroConstruct project # This work has been funded by the Medical Research Counci...
BhallaLab/benchmarks
neuro_morpho/ConvertCML.py
Python
gpl-2.0
5,094
[ "NEURON" ]
e814d4596e29044e4bd65ee32c089baed090e3848d8b7a0d1f630669d8623e83
######################################################################## # $Id$ ######################################################################## """ Definitions of a standard set of pilot commands Each commands is represented by a class inheriting CommandBase class. The command class constructor takes...
Sbalbp/DIRAC
WorkloadManagementSystem/PilotAgent/pilotCommands.py
Python
gpl-3.0
29,366
[ "DIRAC" ]
35268a5e79584bb6ca288570c420fa46ce3d47818193476478cf009242f2fd82
#import unittest # #from DIRAC.Core.Base import Script #Script.parseCommandLine() # #from DIRAC.ResourceStatusSystem.Utilities.mock import Mock #import DIRAC.ResourceStatusSystem.test.fake_RequestHandler #import DIRAC.ResourceStatusSystem.test.fake_rsDB #import DIRAC.ResourceStatusSystem.test.fake_rmDB #import DIRAC.Re...
Sbalbp/DIRAC
ResourceStatusSystem/Service/test/Test_ResourceManagementHandler.py
Python
gpl-3.0
3,545
[ "DIRAC" ]
c5711e0014c7bb70c34985192bc28cd32d64d947543ff163c6f81aedb193afcc
#! /usr/bin/env python3 # # Copyright (c) 2017, Forschungszentrum Juelich GmbH # Author: Yann Leprince <y.leprince@fz-juelich.de> # # This software is made available under the MIT licence, see LICENCE.txt. import sys import nibabel import numpy as np import neuroglancer_scripts.mesh def mesh_file_to_vtk(input_file...
HumanBrainProject/neuroglancer-scripts
experimental/mesh_to_vtk.py
Python
mit
3,841
[ "VTK" ]
4721776d8ac5281c3ad337ebb4d8a2b3527ce73a56f0292330f05e418a4e9806
"""Sub-classes for vtk.vtkRectilinearGrid and vtk.vtkImageData.""" import pathlib import logging import numpy as np import pyvista from pyvista import _vtk from pyvista.utilities import abstract_class from .dataset import DataSet from .filters import _get_output, UniformGridFilters log = logging.getLogger(__name__)...
akaszynski/vtkInterface
pyvista/core/grid.py
Python
mit
14,658
[ "VTK" ]
c51b6f58e6b1f66633e4738cb4ff495df2795573978713e2fbe597d00fe788af
'''Side note to self- ALIGNGUI WILL BE MUCH HARDER THAN BLASTGUI. EACH ALIGNMENT PROGRAM REQUIRES DIFFERENT INPUTS. NEEDS A LOT OF IF STATEMENTS AND A VAGUE SUPROCESS(CLINE) STATEMENT. OPTIONS MENU BAR POP_UP NEEDS TO GIVE A FAIR DEAL OF FREEDOM. COMMON INPUT TYPES INCLUDE: ALPHABET SEQUENCE LENGTH LIMIT MA...
fxb22/BioGUI
plugins/Tools/ALIGNgui.py
Python
gpl-2.0
15,919
[ "BLAST" ]
76c3b8a777a31a128b0de93cc10f912d4934ff5bff90ade5466922bc4ad76a56
""" chatbot.py Ask Cleverbot something via CloudBot! This one is way shorter! Created By: - Foxlet <http://furcode.tk/> License: GNU General Public License (Version 3) """ from cloudbot import hook import requests import urllib.parse import hashlib import collections import html SESSION = collections.Order...
CrushAndRun/Cloudbot-Tarball
plugins/chatbot.py
Python
gpl-3.0
1,716
[ "Galaxy" ]
9d12ddba8e95e9a65de8d1071aeecff9e2e3cff998c9f47e3f9a641349987aac
# GromacsWrapper: collections.py # Copyright (c) 2009 Oliver Beckstein <orbeckst@gmail.com> # Released under GPL3+ """ :mod:`analysis.collections` -- Handling of groups of simulation instances ========================================================================= This module contains classes and functions that com...
pslacerda/GromacsWrapper
gromacs/analysis/collections.py
Python
gpl-3.0
4,164
[ "Gromacs" ]
46762b7fcce47ffcf531ae03cb38f63f93d3d2ad043b33eb66c15a9b88215f08