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
"""Next-gen sequencing alignment with Novoalign: http://www.novocraft.com For BAM input handling this requires: novoalign (with license for multicore) samtools """ import os import subprocess from bcbio import bam, utils from bcbio.ngsalign import alignprep, postalign from bcbio.pipeline import config_utils from ...
guillermo-carrasco/bcbio-nextgen
bcbio/ngsalign/novoalign.py
Python
mit
5,964
[ "Galaxy" ]
f040564625e7007cfea5b8f095f9afa3285a33ce646c60307a603ee7b416eeb3
import json import pprint from urllib.parse import urlparse from tornado.escape import xhtml_escape from tornado import template from DIRAC import gLogger from DIRAC.Core.Tornado.Server.private.BaseRequestHandler import TornadoResponse from WebAppDIRAC.Lib import Conf from WebAppDIRAC.Lib.WebHandler import _WebHandl...
DIRACGrid/WebAppDIRAC
src/WebAppDIRAC/WebApp/handler/RootHandler.py
Python
gpl-3.0
8,103
[ "DIRAC" ]
ee9007ca80dfdb489266f6f1ab0f0b3b57a361c0b0c39e524bf5c8924cbeb21d
#!/usr/bin/env python ######################################################################## # File : dirac-wms-get-queue-normalization.py # Author : Ricardo Graciani ######################################################################## """ Report Normalization Factor applied by Site to the given Queue Exampl...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/scripts/dirac_wms_get_queue_normalization.py
Python
gpl-3.0
1,246
[ "DIRAC" ]
c240df19a7b9d14fb91874fb0172e94ffbc23f1c846fe12b052dd5748cd620b3
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import from scipy.lib.six import string_types, exec_ import sys import keyword import re import inspect import types import warnings from scipy.misc import...
jsilter/scipy
scipy/stats/_distn_infrastructure.py
Python
bsd-3-clause
111,679
[ "Gaussian" ]
f101075ee93fc33fba68a626de73a09a2d7c4b9b9fdb01759eff37f3ef037287
import numpy as np from scipy import sqrt, pi, arctan2, cos, sin, exp from scipy.ndimage import gaussian_filter from .. import img_as_float, draw from ..color import gray2rgb from .._shared.utils import assert_nD def daisy(img, step=4, radius=15, rings=3, histograms=8, orientations=8, normalization='l1', si...
jwiggins/scikit-image
skimage/feature/_daisy.py
Python
bsd-3-clause
9,777
[ "Gaussian" ]
18272d8c81c83d9b34e7d2d8fdb40cc0bc85b68d40281d101591169e268cbac0
# This code is developed based on RL code in the following repository in github # https://github.com/rlcode/reinforcement-learning-kr-v2 import copy import matplotlib.pyplot as plt import random import numpy as np from environment_hm import Env import tensorflow as tf from tensorflow.keras.layers import Dense, BatchNor...
jskDr/jamespy_py3
wireless/hamming_nb/train_hm.py
Python
mit
10,223
[ "Gaussian" ]
779bca4846057964877f3170e55b7e4cd0a8b49c3e81b41416bde38d2fb112a6
"""The suite of window functions.""" import operator import warnings import numpy as np from scipy import linalg, special, fft as sp_fft __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', 'blackmanharris', 'flattop', 'bartlett', 'hanning', 'barthann', 'hamming', 'kaiser',...
andyfaff/scipy
scipy/signal/windows/_windows.py
Python
bsd-3-clause
79,008
[ "Gaussian" ]
b40886fb0a22e77f79b863fd0adf2b0b7c37b24881bf5a31da57bf0b808f3ddf
#!/usr/bin/env python3 # Copyright 2015 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'-like memory/network polling for Android apps. import argparse import curses import logging import os import re import sys imp...
chromium/chromium
tools/android/appstats.py
Python
bsd-3-clause
36,723
[ "Galaxy" ]
5365e6015561512a5970fa5bf8c6976564ff81fc61690bede4136b63b0b20731
""" Test functions for models.GLM """ import os import numpy as np from numpy.testing import * import scikits.statsmodels.api as sm from scikits.statsmodels.genmod.generalized_linear_model import GLM from scikits.statsmodels.tools.tools import add_constant from scikits.statsmodels.tools.sm_exceptions import PerfectSep...
wesm/statsmodels
scikits/statsmodels/genmod/tests/test_glm.py
Python
bsd-3-clause
17,531
[ "Gaussian" ]
06243dc2427e7487862300860e4b37dbced50efae6223c70e9f552647f3c4aac
#------------------------------------------------------------------------------- # Copyright (c) 2012 Gael Honorez. # All rights reserved. This program and the accompanying materials # are made available under the terms of the GNU Public License v3.0 # which accompanies this distribution, and is available at # htt...
IDragonfire/modular-client
src/trueSkill/TrueSkill/TrueSkillFactorGraph.py
Python
gpl-3.0
5,201
[ "VisIt" ]
be110c7d3f814bbba1b1fea0fdd81a6eb814dcf99127e9e94709228251cfbd78
############################################################################## # adaptiveMD: A Python Framework to Run Adaptive Molecular Dynamics (MD) # Simulations on HPC Resources # Copyright 2017 FU Berlin and the Authors # # Authors: Jan-Hendrik Prinz # Contributors: # # `adaptiveMD` is free software: ...
jrossyra/adaptivemd
adaptivemd/analysis/pyemma/_remote.py
Python
lgpl-2.1
10,247
[ "MDTraj" ]
13f02e5abfa155dece7597827cc5e1781e90671b5083fcf9df48c218f800a221
# Heist was created by Redjumpman for Redbot # Standard Library import asyncio import bisect import os import random import string import time from ast import literal_eval from operator import itemgetter # Discord / Red Bot import discord from discord.ext import commands from .utils.dataIO import data...
Injabie3/Red-DiscordBot
cogs/heist.py
Python
gpl-3.0
53,337
[ "CASINO" ]
80d2648028e5fb0f52372acd0db8a174fa7b269471523925593a01bf9247fe1b
# -*- coding: utf-8 -*- # please visit JadViE Studio's Kodi import xbmc,xbmcgui,xbmcplugin,sys plugin_handle = int(sys.argv[1]) xbmcplugin.setContent(plugin_handle, 'movies') icon = xbmc.translatePath("special://home/addons/plugin.jadvie.studio.emby.for.kodi.-0.1/icon.png") def add_video_item(url, infolabe...
SystemTN/jadvie-studio
zip/default.py
Python
gpl-3.0
1,281
[ "VisIt" ]
7fabf282b996785fe55102ff3713965d9437c76bab5c8fa067c8996181424f13
# -*- coding: utf-8 -*- # Copyright (c) 2015 Ericsson AB # # 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 ...
EricssonResearch/calvin-base
calvin/runtime/south/storage/twistedimpl/securedht/append_server.py
Python
apache-2.0
92,062
[ "Brian", "exciting" ]
ab6ebc12ccd37ef39e2ed9c0d2e704913982b26495d35a3a23190981cc87372f
# 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) import os from spack import * class Openmolcas(CMakePackage): """OpenMolcas is a quantum chemistry software package...
LLNL/spack
var/spack/repos/builtin/packages/openmolcas/package.py
Python
lgpl-2.1
2,170
[ "MOLCAS", "OpenMolcas" ]
5c268afca81cac59646ef5987ea6f5eb3bd3a09c60b5e0a99661f61f4230faaa
# Copyright (C) 2010-2019 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
pkreissl/espresso
testsuite/python/lb_shear.py
Python
gpl-3.0
6,770
[ "ESPResSo" ]
3ba12acfd04e9c09ac88ccc5a4abd34522c08f07bd59d084e10cd68172688a13
# # 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/chronos/test/bigdl/chronos/autots/model/test_auto_arima.py
Python
apache-2.0
2,978
[ "ORCA" ]
73578dabfbc7f3d015afd267afb16d7e8b3a35ce55b3d649b8642a5b6287af03
# 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...
tensorflow/tensorflow
tensorflow/python/autograph/pyct/templates.py
Python
apache-2.0
9,510
[ "VisIt" ]
a2f11e0d9ed9ffd599f8c25824610319759ce44c6348c5891d6f900c78477fe1
# intfire.py --- # # Filename: intfire.py # Description: # Author:Subhasis Ray # Maintainer: # Created: Thu Jun 21 16:40:25 2012 (+0530) # Version: # Last-Updated: Sat Jun 23 13:44:10 2012 (+0530) # By: subha # Update #: 35 # URL: # Keywords: # Compatibility: # # # Commentary: # # Code snippet to show so...
BhallaLab/moose-examples
snippets/intfire.py
Python
gpl-2.0
2,935
[ "MOOSE", "NEURON" ]
cb0bc2133fc0eea0c7ee004f540fa8c20fee2061e06c1cc4a6a2e1a752823b02
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-14 19:23 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('visit', '0101_remove_visit_raw_data'), ] operations = [ migrations.DeleteModel( ...
koebbe/homeworks
visit/migrations/0102_auto_20160614_1423.py
Python
mit
1,144
[ "VisIt" ]
49e2b0e9e21d441b2a85393d82aa9065af9bd5c038c68f54a8f1812bdb898932
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/grad/uks.py
Python
apache-2.0
11,355
[ "PySCF" ]
e50e623d826144afb468ff0eef4037d8a66e407345b15e230b7eb15cf34ef44a
import ocl import camvtk import time import vtk import datetime import math # 2018.08: Weave not wrapped def loop_waterline(zh, cutter,s): fiber_range=2 Nmax = 200 yvals = [float(n-float(Nmax)/2)/Nmax*fiber_range for n in range(0,Nmax+1)] xvals = [float(n-float(Nmax)/2)/Nmax*fiber_range for n in range...
aewallin/opencamlib
examples/python/fiber/fiber_12_waterline_onetriangle.py
Python
lgpl-2.1
3,075
[ "VTK" ]
311f95ecd53797435cfa88890fb48fda4cae0008efe1a16b085d78b4e9954ebc
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # PMDA # Copyright (c) 2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under the GNU Public Licence, v2 or any higher ve...
MDAnalysis/pmda
pmda/test/test_util.py
Python
gpl-2.0
8,518
[ "MDAnalysis" ]
fddb1068faef298ea859e978e25ad246e922b88d2c51ec453ff18856811b1d38
# encoding: utf-8 """nanotube.py - Window for setting up Carbon nanotubes and similar tubes. """ import gtk from gettext import gettext as _ from ase.gui.widgets import pack, cancel_apply_ok, oops from ase.gui.setupwindow import SetupWindow from ase.gui.pybutton import PyButton from ase.gui.status import formula from ...
grhawk/ASE
tools/ase/gui/nanotube.py
Python
gpl-2.0
6,236
[ "ASE" ]
603e26b2acd4f9a0bca36318f12fca66369b5d031f193363d446f7648a27a7e4
"""Filter that allows a user to select one among several of the outputs of a given input. This is typically very useful for a multi-block data source. """ # Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Prabhu Ramachandran # License: BSD Style. # Enthought library imports. f...
dmsurti/mayavi
mayavi/filters/select_output.py
Python
bsd-3-clause
3,402
[ "Mayavi" ]
278967c2155f6d4e7fe32d2e53616ede0d9a635c3a5dc7e81b7d3581fc363175
#!/usr/bin/env python import roslib; roslib.load_manifest('coffee_machine_control') import sys import rospy from coffee_machine_control.srv import * def coffee_machine_client(coffee_type): rospy.wait_for_service('coffee_machine') coffee_machine_control = rospy.ServiceProxy('coffee_machine', coffee_machine) ...
Barista-Bot/coffee-machine-control
scripts/coffee_machine_client.py
Python
mit
544
[ "ESPResSo" ]
14327f0af7c54102fdd2bda9a0f8686da03bbc431e0af01a0f17343146b99bfc
# 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 Busco(PythonPackage): """Assesses genome assembly and annotation completeness with Benchma...
LLNL/spack
var/spack/repos/builtin/packages/busco/package.py
Python
lgpl-2.1
2,172
[ "BLAST", "Biopython" ]
6882616f0a90a09662c5115745c9139c24244290009ad1cc5bf4e966840cd820
""" The B{0install select} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import sys from zeroinstall import _, logger from zeroinstall.cmd import UsageError from zeroinstall.injector import mode...
dabrahams/0install
zeroinstall/cmd/select.py
Python
lgpl-2.1
7,343
[ "VisIt" ]
e78c56cc389909493c063cf7aef5902b5206f5c919cbc1948cc3e0236446b4de
import matplotlib import matplotlib.pyplot as plt import numpy as np import time import os from matplotlib.path import Path from dirac_sheet import dirac_sheet import scipy.io import Tkinter from my_two_clim import my_two_clim # Run_Dirac performs a time-domain simulation of the continuum dirac equation taking several...
arthurbarnard/Dirac_Simulation_w_scripting
dirac_run_timedomain.py
Python
gpl-3.0
5,340
[ "DIRAC", "Gaussian" ]
92d84ebbb9b93dbdbc08510b85eab4435ab673e66415bc00150218f3c337bdea
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import warnings import numpy as np from pymatgen.core.composition import Composition from pymatgen.core.periodic_table import DummySpecies, Element, Species from pymatgen.core.lattice import ...
richardtran415/pymatgen
pymatgen/io/tests/test_cif.py
Python
mit
44,369
[ "ABINIT", "VASP", "pymatgen" ]
65634dbb709d243db40b8ed3a037da0efcd06d32080994e3c58d1b4488c273bf
r""" **openpnm.network** ---- This module contains the ``GenericNetwork`` class, whose main purpose is to manage the topological representation of the Network. It also houses a collection of Network generators. ---- **Available Network Generators** OpenPNM includes a variety of Network generators. The basically...
TomTranter/OpenPNM
openpnm/network/__init__.py
Python
mit
5,934
[ "CRYSTAL" ]
c04f3cb26074f52773f602e35d9d51f28d13bd34b90af6f434b63a8442926a6e
input_name = '../examples/biot/biot_npbc_lagrange.py' output_name = 'test_biot_npbc_lagrange.vtk' from testsBasic import TestInput class Test(TestInput): pass
olivierverdier/sfepy
tests/test_input_biot_npbc_lagrange.py
Python
bsd-3-clause
164
[ "VTK" ]
a8a78be349bb68dc892cda18f1de7ca6b22597b04f3d63ec845e2b625ec06c4e
print(__doc__) #coding=utf-8 import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler from sklearn.datasets import make_moons, make_circles, make_classification from sklearn.ne...
hitlonewind/PR-experiment
Classifrer/classifer.py
Python
mit
4,186
[ "Gaussian" ]
a1def076db13c50c337b97696860352e371ef35c93cad232382628f184ec8e2a
""" ProxyManager is the implementation of the ProxyManagement service in the DISET framework """ __RCSID__ = "$Id$" import cStringIO import tarfile import os from DIRAC.Core.DISET.RequestHandler import RequestHandler from DIRAC import gLogger, S_OK, S_ERROR, gConfig from DIRAC.Core.Utilities.ThreadScheduler impor...
Andrew-McNab-UK/DIRAC
FrameworkSystem/Service/BundleDeliveryHandler.py
Python
gpl-3.0
5,866
[ "DIRAC" ]
30249470bb784e34981fb01cdb2e917045c82f644ed7f9ba12adbab638abafe4
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2009-2011 Umeå University # # 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...
BetterWorks/pysaml2
src/saml2/attribute_resolver.py
Python
bsd-2-clause
2,897
[ "exciting" ]
0048c5726f9567a6489311849108c2cc63192794c1183ccf1e73c592e92ebba9
# vectors.py --- # # Filename: vectors.py # Description: # Author: Subhasis Ray # Maintainer: # Created: Tue May 6 12:49:53 2014 (+0530) # Version: # Last-Updated: # By: # Update #: 0 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # # Change log: # # # # # This program is free software; yo...
BhallaLab/moose-examples
snippets/vectors.py
Python
gpl-2.0
1,393
[ "MOOSE" ]
397b33aadb57ad2a309d42fbbada86ab49f5f4a6605daca5e13ab6a320fcbbb2
from __future__ import print_function import flask import os import sys import threading import time import webbrowser import tornado from tornado.wsgi import WSGIContainer from tornado.httpserver import HTTPServer from tornado.ioloop import IOLoop _basedir = os.path.join("..", os.path.dirname(__file__)) app = flas...
dennisobrien/bokeh
sphinx/docserver.py
Python
bsd-3-clause
2,003
[ "VisIt" ]
b941489b8e9d0252f058a7f907d41cf6644f438e4113076ea97c66ed458701da
import fnmatch import tempfile from contextlib import contextmanager from os import makedirs from os import unlink from os.path import ( abspath, basename, dirname, exists, join, sep, ) from re import compile, escape from typing import Any, Dict, List, Type from galaxy.util.bunch import Bunch ...
galaxyproject/pulsar
pulsar/client/action_mapper.py
Python
apache-2.0
28,634
[ "Galaxy" ]
d7c478d19e4f19f8017f5a94967a84d1af8656632db0729460f330469dce614a
""" Test accessibility auditing. """ import os from unittest.mock import patch from bok_choy.web_app_test import WebAppTest from bok_choy.a11y.a11y_audit import AccessibilityError, A11yAuditConfigError from .pages import AccessibilityPage class GoogleAxsAccessibilityTestMixin: """ Test cases for axs rulese...
edx/bok-choy
tests/test_accessibility.py
Python
apache-2.0
14,779
[ "VisIt" ]
32d3d0917886e2072effcb5caf58f37d3531fdc9432e53646314def6ae622d4b
# $HeadURL$ __RCSID__ = "$Id$" import base64 from DIRAC import S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities import DEncode gForceRawEncoding = False try: import zlib gZCompressionEnabled = True except ImportError, x: gZCompressionEnabled = False def codeRequestInFileId( plotRequest, compressIfPossible = T...
Sbalbp/DIRAC
AccountingSystem/private/FileCoding.py
Python
gpl-3.0
2,719
[ "DIRAC" ]
b54166b06ad5d20414279a51f31f3d430921b4f71588245454205c3b0b8e12af
# coding=utf-8 # Copyright 2022 The Uncertainty Baselines Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
google/uncertainty-baselines
baselines/jft/experiments/jft300m_vit_l32_sngp.py
Python
apache-2.0
4,051
[ "Gaussian" ]
0aec8696c54151d53ae450683a66b1bd684e3639902c04620631963fce189881
import logging from cStringIO import StringIO from math import exp from lxml import etree from path import path # NOTE (THK): Only used for detecting presence of syllabus import requests from datetime import datetime import dateutil.parser from lazy import lazy from xmodule.seq_module import SequenceDescriptor, Seque...
kuiwei/edx-platform
common/lib/xmodule/xmodule/course_module_bak.py
Python
agpl-3.0
50,523
[ "VisIt" ]
89b9b835ca7cf8dc08116a6bb07de8315f22f56734bfec5c15e3455a55fdf3f4
""" Compute saddle-point integrals over trajectories traveling on adiabataic potentials This currently uses first-order saddle point. """ import numpy as np import nomad.core.glbl as glbl import nomad.compiled.nuclear_gaussian as nuclear # Let propagator know if we need data at centroids to propagate require_centroi...
mschuurman/FMSpy
nomad/integrals/fms_saddle_point.py
Python
lgpl-3.0
2,177
[ "Gaussian" ]
7b32f0e4b2652d413df526944b0ae1140e27631b18da668d71b93a95068b7972
"""Simple XML-RPC Server. This module can be used to create simple XML-RPC servers by creating a server and either installing functions, a class instance, or by extending the SimpleXMLRPCServer class. It can also be used to handle XML-RPC requests in a CGI environment using CGIXMLRPCRequestHandler. A list ...
ericlink/adms-server
playframework-dist/play-1.1/python/Lib/SimpleXMLRPCServer.py
Python
mit
21,529
[ "Brian" ]
829ce697a5ed8066d9b9315dfb06d79fc4f4d2850aae2cc7b50b9da22218ef41
#!/usr/bin/env python from optparse import OptionParser import os, sys, re """*********************** The likely/unlikely optimizer *********************** This script runs gcov on data from instrumented object files and parses the out- put to determine candidates for optimization using the likely/unlikely macros. Re...
liuwenf/moose
framework/scripts/LikelyOptimzer.py
Python
lgpl-2.1
7,940
[ "MOOSE" ]
acdcade432bd7019161fbb68d7bb3463a2d5fddb27f81b3ae0f4684b8d13c099
# Copyright 1999 by Jeffrey Chang. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Code for more fancy file handles. Classes: UndoHandle File object decorator with sup...
bryback/quickseq
genescript/Bio/File.py
Python
mit
6,211
[ "Biopython" ]
b10160bc3eae836198b04dbeb9ceac012ada5397e712795ecd4ada4802ed4b4f
# Coded from https://www.tensorflow.org/get_started/mnist/pros # Download, extract and read the data Automatically from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) # Importing tensorflow import tensorflow as tf # Create the model x = tf.placeholde...
pk-ai/training
machine-learning/tensorflow/get_started/deep_mnist_for_experts.py
Python
mit
4,896
[ "NEURON" ]
32c4bc871af036e5c7f575ba29d737f801bac13db5d6c717bd9a64ad61449206
from py4j.clientserver import ClientServer, JavaParameters, PythonParameters from py4j.java_gateway import DEFAULT_ADDRESS import logging, os, sys, traceback, array, time, socket import cdms2 import numpy as np def getIntArg( index, default ): return int(sys.argv[index]) if index < len( sys.argv ) else default def g...
nasa-nccs-cds/EDAS
python/test/icdas.py
Python
gpl-2.0
7,835
[ "Gaussian" ]
020ec493d7cb62daf8c756652644bb24a3bef1b64758d790136d28571f1c8394
# This file is part of OpenHatch. # Copyright (C) 2010 Parker Phinney # Copyright (C) 2010 Jack Grigg # Copyright (C) 2011 Krzysztof Tarnowski (krzysztof.tarnowski@ymail.com) # Copyright (C) 2009, 2010, 2011 OpenHatch, Inc. # Copyright (C) 2011 Jairo E. Lopez # # This program is free software: you can redistribute it a...
openhatch/oh-mainline
mysite/base/tests.py
Python
agpl-3.0
28,614
[ "VisIt" ]
09c07122801e89eb8f57cd0beb7a67abc406d489728a75dcb7954b2beb7816cc
"""Check specific required program versions required during the pipeline. """ from distutils.version import LooseVersion import subprocess from bcbio.pipeline import config_utils from bcbio.log import logger def samtools(config, items): """Ensure samtools has parallel processing required for piped analysis. "...
hjanime/bcbio-nextgen
bcbio/provenance/versioncheck.py
Python
mit
2,721
[ "BWA" ]
98f85435efa804d6d81d1be428d77a9040218f03c36e59c3cf86358b1f67e652
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Matti Hämäläinen <msh@nmr.mgh.harvard.edu> # Denis A. Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) from copy import deepcopy from distutils.version import LooseVersion import itertools as itt from math import log import ...
Teekuningas/mne-python
mne/cov.py
Python
bsd-3-clause
75,999
[ "Gaussian" ]
19a00f87c98e742aa84ceea0577fb6cd0a523a3aae482aeeae0849bd8c863978
import sys import os import parmed ambname = sys.argv[1] crdname = os.path.splitext(ambname)[0]+".crd" mol2name = os.path.splitext(ambname)[0]+".mol2" pdbname = os.path.splitext(ambname)[0]+".pdb" top = parmed.amber.AmberParm(ambname, xyz=crdname) top.save(mol2name, format="mol2") top.save(pdbname, format="pdb")
SGenheden/Scripts
Mol/amb2mol2.py
Python
mit
318
[ "Amber" ]
b46b29757a4c0d14a22b53fd12c6fbb20553d4b3ec6e14471287ff01d1413b75
from pathlib import Path import pytest from pysisyphus.calculators.PySCF import PySCF from pysisyphus.calculators import Turbomole, ORCA, ORCA5, Gaussian16, Psi4 from pysisyphus.helpers import geom_loader from pysisyphus.init_logging import init_logging from pysisyphus.optimizers.RFOptimizer import RFOptimizer from p...
eljost/pysisyphus
tests/test_cytosin_opt/test_cytosin_opt.py
Python
gpl-3.0
3,407
[ "ORCA", "Psi4", "PySCF", "TURBOMOLE" ]
4a7da4006ff3f323802d701e7dc8ba5558e956e02d1081c1845503009559a7d3
""" Class for outlier detection. This class provides a framework for outlier detection. It consists in several methods that can be added to a covariance estimator in order to assess the outlying-ness of the observations of a data set. Such a "outlier detector" object is proposed constructed from a robust covariance es...
ltiao/scikit-learn
sklearn/covariance/outlier_detection.py
Python
bsd-3-clause
6,624
[ "Gaussian" ]
207675567660a148b0db2b5a7f8590d4ce38c83f7dc43a8ea561cc03af3aa372
input_name = '../examples/linear_elasticity/linear_elastic_up.py' output_name = 'test_linear_elastic_up.vtk' from testsBasic import TestInput class Test( TestInput ): pass
olivierverdier/sfepy
tests/test_input_linear_elastic_up.py
Python
bsd-3-clause
177
[ "VTK" ]
9bfd3b3f0cf44ec4307427c8ae4c8ab7b018ecee8769215c2f627b6cea80b2a6
#!/usr/bin/env python3 # Copyright (C) 2011, 2014 Torsten Albrecht (torsten.albrecht@pik-potsdam.de) import numpy as np from pylab import figure, clf, hold import matplotlib.pyplot as plt try: from netCDF4 import Dataset as NC except: print("netCDF4 is not installed!") sys.exit(1) pism_output = "flowline_...
pism/pism
examples/marine/flowline/plot_flowline.py
Python
gpl-3.0
3,658
[ "NetCDF" ]
58e67dd2b0ebcb38564d61d6ecbbadff8f280ee60f7873e160ce949aa5102351
#!/usr/bin/env python ######################################################################## # File : dirac-dms-get-file # Author : Stuart Paterson ######################################################################## """ Retrieve a single file or list of files from Grid storage to the current directory. Usag...
yujikato/DIRAC
src/DIRAC/Interfaces/scripts/dirac_dms_get_file.py
Python
gpl-3.0
1,436
[ "DIRAC" ]
a8c0e9191ba903964d0f3e9a18414c264bb61ebe73e1522e2570906e60ffaee8
# python3 # coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
google/localized-narratives
localized_narratives.py
Python
apache-2.0
6,191
[ "VisIt" ]
1f7b1ae9852e3c943a1577bccc8ed7b74ee6d99dfde2cc7877d7b82679ef5f5f
# -*- coding: utf-8 -*- """Tests for node utilities.""" import unittest from pybel import BELGraph from pybel.constants import INCREASES from pybel.dsl import ComplexAbundance as g from pybel.dsl import CompositeAbundance as c from pybel.dsl import Protein, Reaction from pybel.examples.various_example import ( a...
pybel/pybel
tests/test_struct/test_node_utils.py
Python
mit
4,850
[ "Pybel" ]
f095351fbb5dc0f8f5ce9415416d60d4ef8811651639db9db3492c94132a29f6
# coding: utf-8 """ This module provides functions for finding the dimensions of connected subunits in a crystal structure. This method finds the dimensionality of the material even when the material is not layered along low-index planes, or does not have flat layers/molecular wires. See details at : Cheon, G.; Duerl...
tschaume/pymatgen
pymatgen/analysis/find_dimension.py
Python
mit
8,645
[ "CRYSTAL", "Jmol", "pymatgen" ]
a08eb44931ba911581920077bea39450090c49c7124ca31d837ad49a5d1fc0cb
# -*- coding: UTF-8 -*- # """ history Names of cities, countries, addresses. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3.0.0 - split all the content into babycontents evb - note: only one dictionary named 'content' allowed per module this limitation is to spe...
LettError/filibuster
Lib/filibuster/content/geography.py
Python
mit
15,602
[ "COLUMBUS" ]
5da8e5d4c1ffc1a22966e2e7e585e9ba657d6ed4291f9a5b573d235412caba50
from psi4 import * import readline # optional, will allow Up/Down/History in the console import code def run(): print_out("\nStarting interactive session.\n\n") vars = globals().copy() vars.update(locals()) shell = code.InteractiveConsole(vars) shell.interact()
spring01/libPSI
lib/python/interactive.py
Python
gpl-2.0
285
[ "Psi4" ]
4e66c3da53f3b6fb2aedc8b015267ae8c6c64b54435b807aaf242a8348adcea2
""" Priority corrector for the group and in-group shares """ __RCSID__ = "$Id$" from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities import ObjectLoader from DIRAC.ConfigurationSystem.Client.Helpers.Operations import Operations from DIRAC.WorkloadManagementSystem.private.correctors.BaseCorrector import ...
fstagni/DIRAC
WorkloadManagementSystem/private/SharesCorrector.py
Python
gpl-3.0
4,492
[ "DIRAC" ]
4ed81065931e26dfb02012ff975c515e26f7ecd72f92482e188166e4facbb8eb
import pychemia import unittest class KPointsTest(unittest.TestCase): def test_optimized_grid(self): """ Test (pychemia.crystal.kpoints) : """ st = pychemia.code.vasp.read_poscar('tests/data/SbBi/POSCAR') kp = pychemia.crystal.KPoints.optimized_...
MaterialsDiscovery/PyChemia
tests/test_crystal_kpoints.py
Python
mit
1,240
[ "CRYSTAL", "VASP" ]
6679e7dda02527443f7cbeb4d1740bfe83c315e24aa7d9bb0bedf278e0542652
import os from boxbranding import getMachineBrand, getMachineName import xml.etree.cElementTree from datetime import datetime from time import ctime, time, strftime, localtime, mktime from bisect import insort from enigma import eActionMap, quitMainloop from Components.config import config from Components.TimerSanity...
schleichdi2/OpenNfr_E2_Gui-6.0
PowerTimer.py
Python
gpl-2.0
44,745
[ "ASE" ]
9ef19ff74da4ccb2ed258e24d5c54340b5437767a74448da4c76ea99104f63f4
#!/usr/bin/env python ''' setup board.h for chibios ''' import argparse import sys import fnmatch import os import dma_resolver import shlex import pickle import re import shutil import filecmp parser = argparse.ArgumentParser("chibios_pins.py") parser.add_argument( '-D', '--outdir', type=str, default=None, help=...
collmot/ardupilot
libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py
Python
gpl-3.0
91,373
[ "CRYSTAL" ]
64a9dfb9c64d278be5f839a058288c1e38b9fc94cef2d1d95430ec5333e5546a
""" How to get a particular Neuron's gap junctions from the database. """ from __future__ import absolute_import from __future__ import print_function from owmeta_core.command import OWM from owmeta_core.context import Context from owmeta.worm import Worm from owmeta.neuron import Neuron # Connect to existing databa...
openworm/PyOpenWorm
examples/gap_junctions.py
Python
mit
1,122
[ "NEURON" ]
2a5b1f47d126dc566492f4e3b6b2a8e5d44cf4a47e8de4b717a4d279ba031147
#!/usr/bin/env python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
googleads/google-ads-python
examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py
Python
apache-2.0
4,556
[ "VisIt" ]
b4758ad2047eea33f0cd3919a03aac0ef0a35863b438aace33f1c3c088b6bfea
from __future__ import absolute_import from __future__ import unicode_literals import logging from functools import reduce from docker.errors import APIError from .config import ConfigurationError from .config import get_service_name_from_net from .const import DEFAULT_TIMEOUT from .const import LABEL_ONE_OFF from ....
ph-One/compose
compose/project.py
Python
apache-2.0
12,485
[ "VisIt" ]
a0369ada692c0944a3497d10333c56c37245a254d9896dadd4db5dd78f43a2c8
""" Weight models for the Network GLM """ import numpy as np import theano.tensor as T from component import Component from pyglm.components.priors import create_prior def create_weight_component(model, latent): type = model['network']['weight']['type'].lower() if type == 'constant': weig...
slinderman/theano_pyglm
pyglm/components/weights.py
Python
mit
3,441
[ "Gaussian" ]
1f2d1c76674c0e9023d14b5b1c94643973c3acecba5afcaf291c391b6d3085f8
# $Id$ # # Copyright (C) 2002-2008 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. # """unit testing code ...
rdkit/rdkit-orig
rdkit/Chem/Pharm2D/UnitTestMatcher.py
Python
bsd-3-clause
2,870
[ "RDKit" ]
6db1b0c77c3a72544e05dd34303cb6bdb82eb7e8dd2a2b539351a1c34f85361a
''' Created on 30.04.2015 @author: marscher ''' import unittest import os import tempfile from glob import glob from pyemma.coordinates.data.traj_info_cache import _TrajectoryInfoCache as TrajectoryInfoCache import mdtraj path = os.path.join(os.path.split(__file__)[0], 'data') # os.path.join(path, 'bpti_mini.xtc') x...
arokem/PyEMMA
pyemma/coordinates/tests/test_traj_info_cache.py
Python
bsd-2-clause
941
[ "MDTraj" ]
5415b2da3ffc2359f140f1bc7180e5c9fcaae7b1ab761d9d7738ef0867770fd1
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # get the interactor ui ## Graphics stuff # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren =...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Core/Testing/Python/multipleComponentContour.py
Python
gpl-3.0
1,879
[ "VTK" ]
9ef282c0d29ed00f16ca57937dc6322f0d6b91f504f833bab54598f49daa3b08
#!/usr/bin/python from dftCode import msg import numpy as np import csv def examples(): """Prints examples of using the script to the console using colored output. """ script = "Code to compute DFT energies of a crystal structure." explain = ("This c...
nycmouli/PYDFT
dftCode/dftSolve.py
Python
mit
7,052
[ "CRYSTAL", "Gaussian" ]
88e41285dca397fa4d7caf1cf5bcf9a4e4319377a38e8b54503f66d1d19cf9ab
from os import path, mkdir, listdir from pysces import output_dir __all__ = ['get_model_name', 'make_path', 'next_suffix', 'get_file_path', 'get_fmt'] def get_model_name(mod): """Returns the file name of a pysces model object sans the file extension. Parameters ---------- mod : PysMod ...
exe0cdc/PyscesToolbox
psctb/modeltools/_paths.py
Python
bsd-3-clause
5,393
[ "PySCeS" ]
9e2f24cc8bb08d8ef3edf1382dba13f9f92119e93deb6dd8cbada226d5d43e7d
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/images/imageplugin.py
Python
gpl-2.0
5,414
[ "Brian" ]
479ccdb6f9305b28167d7161247c971d26f825ce9f61e0733ceab4874da91ac5
import ocl import camvtk import time import vtk import datetime import math if __name__ == "__main__": print ocl.revision() myscreen = camvtk.VTKScreen() a = ocl.Point(0,1,0.3) myscreen.addActor(camvtk.Point(center=(a.x,a.y,a.z), color=(1,0,1))) b = ocl.Point(1,0.5,0.3) myscreen.a...
tectronics/opencamlib
scripts/waterline/waterline_0_onetriangle.py
Python
gpl-3.0
3,463
[ "VTK" ]
0e8e8189446763787d9a2b1c33ed00bd8581633fcd24624f220d2fe0bffdf8e7
"""Test the Transformationinfo.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import OrderedDict from contextlib import contextmanager import pytest from mock import MagicMock as Mock, patch from DIRAC import S_OK, S_ERROR import DIRA...
yujikato/DIRAC
src/DIRAC/TransformationSystem/test/Test_TransformationInfo.py
Python
gpl-3.0
15,194
[ "DIRAC" ]
f579f6804a8ab68ffe23b34a38c3d40ca86b8d19701c63626478b0bd20b8d8b1
import ocl import camvtk import time import datetime import vtk def drawTree(myscreen,t,color=camvtk.red,opacity=0.2, offset=(0,0,0)): nodes = t.get_nodes() black=0 nmax=len(nodes) i=0 for n in nodes: cen = n.point() #print "cen=",cen.str() scale = n.get_scale() #p...
aewallin/opencamlib
src/attic/ocode/ocode_cylcutter_volume_2.py
Python
lgpl-2.1
6,262
[ "VTK" ]
8dbfd42990b8c6c5a75f2ee81c3892c2c958e2d4de24ce659449dc6fa604fe83
#!/usr/bin/env python # -*- encoding: utf-8 -*- # CREATED:2015-03-06 14:24:58 by Brian McFee <brian.mcfee@nyu.edu> '''Unit tests for JAMS core objects''' import os import tempfile import json import six import sys import warnings import pytest import numpy as np import jams xfail = pytest.mark.xfail parametrize = ...
marl/jams
tests/test_jams.py
Python
isc
37,321
[ "Brian" ]
64c5bcb06ca77245baa16077d565240a8ea92055656ee1a685215f37e1aab6c5
from pypipe import formats class Bcftools: @staticmethod def view(): return { 'cmd': 'bcftools view', 'type': None, 'log': 'log', 'out': { 'redirect': True, 'return': [ {'arg': 'out', 'type': {'b': for...
ctlab/pypipe
pypipe-core/pypipe/tools/toolsconfig.py
Python
mit
29,416
[ "BWA" ]
491b914c8c54ba06a8f34254eb4c5dd4fc7fe89393a365f47d5bbe83464a3c9a
# Copyright (C) 2015-2022 by the RBniCS authors # # This file is part of RBniCS. # # SPDX-License-Identifier: LGPL-3.0-or-later from dolfin import * from rbnics import * @DEIM("online") @ExactParametrizedFunctions("offline") class Gaussian(EllipticCoerciveProblem): # Default initialization of members def __...
mathLab/RBniCS
tests/methodology/tutorials/05_gaussian/tutorial_gaussian_deim_online_exact_offline.py
Python
lgpl-3.0
4,240
[ "Gaussian" ]
491170d51ec762fc6fd1b4a7fdf2fb4c21770f5165dd633224d719626dfa62b7
#!/usr/bin/env python import vtk import numpy as np from vmtk import vmtkscripts import argparse import itertools import os # clip boxes along the surface # calculate basis from vector # Tom Duff, James Burgess, Per Christensen, Christophe Hery, Andrew Kensler, Max Liani, and Ryusuke Villemin, Building an Orthonorma...
kayarre/Tools
vmtk/get_slice_boxes.py
Python
bsd-2-clause
7,466
[ "VTK" ]
b92e8f17eac6da576845e8bf015946a6435ee3888b33e3bdca4150c11b9027d2
# Copyright 2012 Google Inc. # # http://www.logilab.fr/ -- mailto:contact@logilab.fr # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, or (at your option) any late...
tianzhihen/python-mode
pymode/libs/pylama/lint/pylama_pylint/pylint/checkers/stdlib.py
Python
lgpl-3.0
2,616
[ "VisIt" ]
bd4c1d214c94bb22526a7b86b92ab7fe41a075c6a1869b8a5ba12463be2f995a
''' TODO Add a proper introduction of the package. ''' from pyPaSWAS.Core.Exceptions import InvalidOptionException from datetime import datetime try: import ConfigParser except ImportError: import configparser as ConfigParser import logging import optparse import os import sys def set_logger(settings...
swarris/pyPaSWAS
pyPaSWAS/__init__.py
Python
mit
18,830
[ "Biopython" ]
67385b69b82de5e84e06692db6c985b12a3992ff3fdd4653fe4038a0357fcb81
#!/usr/bin/env python3 #* 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/lgp...
nuclear-wizard/moose
python/mooseutils/tests/test_mooseMessage.py
Python
lgpl-2.1
3,660
[ "MOOSE" ]
c562fd566dbdc5b7daa6a31bb9d15ae98e810f3b8472ef20fa144620902aaf65
#!/usr/bin/python # LICENSE: GPL2 # (c) 2014 Kamil Wartanowicz import logging from util import hextools from util import types_g from util import types import sim_codes import sim_reader import file_parser import sim_router from sim import sim_files SIM_ID_0 = 0 SIM_ID_ALL = 0xFF logicalChannel = 0 INIT_CONTROL_CHAN...
kamwar/simLAB
sim/sim_ctrl_2g.py
Python
gpl-2.0
25,682
[ "ADF" ]
84cd5514a7d1622388f921a978ac70b139d45189e57d32e4b1220479c94f32da
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2016, Ansible RedHat, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
alxgu/ansible
lib/ansible/modules/utilities/logic/set_stats.py
Python
gpl-3.0
1,935
[ "Brian" ]
ef98ff3827a4ad2b162d0e22fe25f999c413d1386bd9c1b2d0e8a845f9826db5
# Copyright (c) 2010-12, Pierre-Antoine Delsart, Kurtis Geerlings, Joey Huston, # Brian Martin, and Christopher Vermilion # #---------------------------------------------------------------------- # This file is part of SpartyJet. # # SpartyJet is free software; you can redistribute it and/or modify # ...
mickypaganini/SSI2016-jet-clustering
spartyjet-4.0.2_mac/python/spartyjet/gui/SpartyGui.py
Python
mit
36,875
[ "Brian" ]
5db1df97a1047b34345c33426daa0e3536c1fc752d452637cbef843bc72c5b13
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/songs/lib/zionworximport.py
Python
gpl-2.0
6,939
[ "Brian" ]
96c982da88b2b16d2fffff2f9d77bed521f07e41d30d13ea98483acfbffc1129
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/transitions
openlp/plugins/songs/lib/olp1import.py
Python
gpl-2.0
9,821
[ "Brian" ]
96ba2192893ad7c6e11ad4773a19a11f815e29fd0a3d3c624445169cb04201a0
# Principal Component Analysis Code : from numpy import mean,cov,double,cumsum,dot,linalg,array,rank,size,flipud from pylab import * import numpy as np import matplotlib.pyplot as pp #from enthought.mayavi import mlab import scipy as scp import scipy.ndimage as ni import scipy.io import roslib; roslib.load_manifes...
tapomayukh/projects_in_python
sandbox_tapo/src/skin_related/AI_Surface_Recognition/src/k_NN_analyze.py
Python
mit
4,949
[ "Mayavi" ]
af0b9ebb9b18e9de60f062d0b25be8f5d52f7d2addd39f24b4ea846340957615
# Contains physical constants. # All units are SI except where stated otherwise. # Ideal gas constant r_gas = 8.3144598 # SI r_gas_cal = 1.9858775 # Calories # Boltzmann constant boltzmann_cnst = 1.3806488e-19 # Loschmidt constant n_loschmidt = 2.6867805e+25 # Avogadro constant n_avogadro = 6.022045e+23 # Atomic m...
DavidSAmundsen/socrates_tools
cmn/constants.py
Python
mit
364
[ "Avogadro" ]
f69f01f95542e90812f86b17f6cb0443ac7bb7f124db5079c0a3dc198b4ff2ff
#!/usr/bin/env python renWin = vtk.vtkRenderWindow() iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) renderer = vtk.vtkRenderer() renWin.AddRenderer(renderer) src1 = vtk.vtkSphereSource() src1.SetRadius(5) src1.SetPhiResolution(20) src1.SetThetaResolution(20) mapper = vtk.vtkPolyDataMapper() mapper...
collects/VTK
Rendering/Core/Testing/Python/TestCgShader.py
Python
bsd-3-clause
937
[ "VTK" ]
f437e99b1d869456f24f49688d0dcd275a572e79ba1c4b28b3cd6ed74c3aac5b
#!/usr/bin/env python #29-11-2016 #Authors:Sebastian ECHEVERRI RESTREPO, # sebastian.echeverri.restrepo@skf.com, sebastianecheverrir@gmail.com # James EWEN # j.ewen14@imperial.ac.uk, jimmyewen@gmail.com #################################################################################3 # This file contains a fu...
JE1314/LAMMPS_builder
root/Fe2O3.py
Python
gpl-3.0
2,996
[ "ASE", "CRYSTAL" ]
57e439ed1166c65e6e15111eb10ac69e382b0ef1cc1e6ddd233c7c397e80a7c0
# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of Logilab-common. # # Logilab-common is free software: you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as publ...
tkaitchuck/nupic
external/common/lib/python2.6/site-packages/logilab/common/registry.py
Python
gpl-3.0
41,325
[ "VisIt" ]
17058a5a33ac01e6cf01fa408eb068a27349c17909cf12a73e81d939df2ac354
import sys def addZones(core): gcwService = core.gcwService gcwService.addZone('corellia', 'corellia_airspace', 0, 0, 0, 35714286, 0) gcwService.addZone('corellia', 'corellia_pve', 0, 0, 0, 89285715, 0) gcwService.addZone('corellia', 'corellia_pvp', 0, 0, 0, 89285715, 0) gcwService.addZone('corellia', 'gcw_re...
agry/NGECore2
scripts/gcwzones.py
Python
lgpl-3.0
30,880
[ "Galaxy" ]
ffa3366db91b5bfe61b1dcb982563afa8891dcb419a3cebbe530a7a55f65f691
# FreeCAD TemplatePyMod module # (c) 2010 Werner Mayer LGPL """ The module can be executed with: FreeCAD -P <path_to_file> Automation.py FreeCADCmd -P <path_to_file> Automation.py """ import FreeCAD, Part def makeSnapshotWithGui(): from PySide import QtGui import FreeCADGui def getMainWindow(): ...
bblacey/FreeCAD-MacOS-CI
src/Mod/TemplatePyMod/Automation.py
Python
lgpl-2.1
2,291
[ "CRYSTAL" ]
83003166b43db38d521c1de9905e5aead0ca975649f23ddb473e76fdc82bac73
# import sys import datetime from sqlalchemy import create_engine # from sqlalchemy.orm import sessionmaker from app_config import db from db_tables import Usage from util import user_mapping """ This code was originally written to import data previous to 2012-03, which is collected mannually from Chris Ing. """ de...
pomeslab/sumcoresg
queue_data.py
Python
gpl-2.0
3,142
[ "ORCA" ]
a8df6564fc8d5bc4d0c77e88281d6fe3a657845d006ea5ed07096cbe112d8f5e
def agts(queue): h2_osc = queue.add('h2_osc.py', ncpus=8, walltime=2*60) n2_osc = queue.add('n2_osc.py --state-parallelization=5', ncpus=5*8, walltime=15*60) na2_md = queue.add('na2_md.py', ncpus=8, walltime=2*60) na2_osc = queue.add('na2_osc.py', ncpus=8, walltime=40*60) if...
robwarm/gpaw-symm
gpaw/test/big/ehrenfest/submit.agts.py
Python
gpl-3.0
600
[ "GPAW" ]
3d14c9850b12adb160ce919e83fbb6a1b05be37ce717b7bd4772165a924c3ed0