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
# external modules import numpy as num import anuga.utilities.log as log # ANUGA modules from anuga.config import netcdf_mode_r, netcdf_mode_w, netcdf_mode_a, \ netcdf_float def generic_asc2dem(name_in, name_out=None, quantity_name=None, use_cache=False, ...
mperignon/anuga-sedtransport
file_conversion/generic_asc2dem.py
Python
gpl-2.0
6,583
[ "NetCDF" ]
ad77508e5d7d68e28eb9102cb50b783197d4f3cd7bd6ad398f10985f6b3fcaee
#!/usr/bin/env python # if necessary, edit preceding line to point to your Python # or launch as "python Make.py ..." # Purpose: manage LAMMPS packages, external libraries, and builds # create a version of LAMMPS specific to an input script(s) # Syntax: Make.py switch args ... # Help: type Make.py or Make.py ...
slitvinov/lammps-swimmer
src/Make.py
Python
gpl-2.0
27,642
[ "LAMMPS" ]
4d5f006eeea03430ed3a799d1c8ae86abc23f53677fa42d5337255b217c7ca68
import argparse import numpy as np import tempfile import os import getpass import pyfits as pf # catalog_name, output_name sex_params = \ ''' CATALOG_NAME {catalog_name} # name of the output catalog CATALOG_TYPE ASCII_HEAD # NONE,ASCII,ASCII_HEAD, ASCII_SKYCAT, # ASCII_VOT...
nickkonidaris/kpy
SEDMr/RemoveBackground.py
Python
gpl-2.0
6,427
[ "Galaxy" ]
11e48181870fe2815079ce9314471c7200f0ea6e487b1d51a4ca514f418af81b
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* Copyright (c) Schrodinger, LLC. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove this copyright notice. #F* -------...
gratefulfrog/lib
python/pymol/querying.py
Python
gpl-2.0
45,867
[ "CRYSTAL", "ChemPy", "PyMOL" ]
ff6b056d624490b299b204908f14a9353e20fb636aeef64072a5c47877a15e85
# -*- coding: utf-8 -*- # vim:noet:sw=4:ts=4:ft=vim ''' File: imgurlib.py Author: Vladimir Kolev Version: 1.1a Description: Python library to communicate with Imgur.com ''' import json import urlparse import urllib import oauth2 as oauth REQUEST_TOKEN_URL = 'https://api.imgur.com/oauth/request_token' AUTHORIZE_UR...
vkolev/ImgurLib
imgurlib.py
Python
mit
11,954
[ "VisIt" ]
dfe01bfc351bcd77a23a521967f5bd50143036d93e74237ee68c399f51f53e34
#!/usr/bin/python #============================================================================================= # MODULE DOCSTRING #============================================================================================= """ Tools for constructing OpenMM System objects from various convenient input file formats...
andrrizzi/yank
Yank/systembuilder.py
Python
mit
45,079
[ "MDTraj", "OpenMM" ]
2bea2b1f5fc5384522207f350297a0d2ab78610ad7211a997f335c02ddadec0c
# collection of generic self-defined functions import os, sys # low level handling, such as command line stuff import string # string methods available import re # regular expressions import math # math functions import time # time functions import anydbm # index databases (file hash) from ...
lotharwissler/bioinformatics
python/base/low.py
Python
mit
12,843
[ "Biopython" ]
d82b2b2a5bce55e2b01ea7882ac757b76711478f6b07cd58e02458cd78bd9979
""" Get ASE counts from BAMs or raw fastq data. ============================================================================ AUTHOR: Michael D Dacre, mike.dacre@gmail.com CREATOR: Carlo Artieri CREATOR: Tomas Babak ORGANIZATION: Stanford University LICENSE: MIT License, property of Stan...
TheFraserLab/ASEr
ASEr/__init__.py
Python
mit
580
[ "ASE" ]
aa09e6ae5d063297518b69cd4f9dc602db8a77f39178b87f3cf6914e044b44bd
""" This class brings together a L{solve.Solver} to choose a set of implmentations, a L{fetch.Fetcher} to download additional components, and the user's configuration settings. """ # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _ import ti...
pombredanne/zero-install
zeroinstall/injector/policy.py
Python
lgpl-2.1
18,875
[ "VisIt" ]
697387db84607788d3db9cacf9bd427616ed115ff82f5449234b480d1289649f
from pylab import figure,show,connect,hist,plot,legend from numpy import array, append, arange, empty, exp from shogun import Gaussian, GMM from shogun import RealFeatures import util util.set_title('EM for 1d GMM example') #set the parameters min_cov=1e-9 max_iter=1000 min_change=1e-9 #setup the real GMM real_gmm=G...
MikeLing/shogun
examples/undocumented/python/graphical/em_1d_gmm.py
Python
gpl-3.0
1,911
[ "Gaussian" ]
d3fd91884f256de019be52d814b4fdb9100258b2814ee908b05328b770409492
Simple Server python3 -m http.server # 8000 # --bind 127.0.0.1 python2 -m SimpleHTTPServer # 8000 Python'ā atstares ir svarīgas.' #Single line coment """ Multiline comment. Apostrofi apzīmē string, tāpat kā pēdiņas. \ zīme ļauj to labot. There\'s a snake. Ir Python'am saprotami. """ Operators: = - * / ** % // #// flo...
RihardsT/forgettables
Languages_Programming/Python/python.py
Python
unlicense
8,335
[ "Brian" ]
db47e5e92163dbfa2924abbbd907a53e6bd155ac70d2678e15b4b096c5d59ab4
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
PatrickOReilly/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
44,306
[ "Brian" ]
fe0ecfab30370c25738a8e2f36755bcb40d0467ae8f85a8c53b0e91bf56b15c7
from django.test import TestCase, tag from edc_appointment.models import Appointment from edc_base import get_utcnow from edc_metadata.metadata_updater import MetadataUpdater from edc_reference import site_reference_configs from edc_visit_schedule import site_visit_schedules from edc_visit_tracking.constants import SCH...
botswana-harvard/edc-meta-data
edc_metadata/tests/test_metadata.py
Python
gpl-2.0
11,936
[ "VisIt" ]
d8bbb72df06567067bf983afe683902bead179941af5edb25ce7a91e6e35de94
from __future__ import absolute_import import unittest import numpy as np from pymatgen import Structure from pymatgen.analysis.eos import EOS from pymatgen.analysis.quasiharmonic import QuasiharmonicDebyeApprox __author__ = 'Kiran Mathew' class TestQuasiharmociDebyeApprox(unittest.TestCase): def setUp(self):...
setten/pymatgen
pymatgen/analysis/tests/test_quasiharmonic_debye_approx.py
Python
mit
5,823
[ "pymatgen" ]
b97b34e4ae4de687e635b53b6703e6c5ebc9a761e67a422da002fbac6ed7c0b9
# Script control setup area # script info __script__.title = 'KKB Plot and Reduction 16.5.2021' __script__.version = '2.0' # 15.6.2017 Allow to reduce the detector range # 15.6. Throw out points below resolution # 16.6. Tidy up run time to display in the reduction; tidy up display properties # 11.7....
Gumtree/Kookaburra_scripts
Internal/KKB-Plot and Reduction_Mar2021.py
Python
epl-1.0
83,741
[ "CRYSTAL" ]
e70a24b91e5e76ea42284a52e208af685f556fc93ef1fb8a61fdeff1f26d8ca7
# # Copyright 2018 Red Hat | Ansible # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
brandond/ansible
lib/ansible/plugins/lookup/k8s.py
Python
gpl-3.0
11,241
[ "Galaxy", "VisIt" ]
e02f9638d185e5173738a139806b6c08fa4eac8f8720aa568cac2d4f7683eeaf
#!/usr/bin/env python """ ======= textext ======= :Author: Pauli Virtanen <pav@iki.fi> :Date: 2008-04-26 :License: BSD Textext is an extension for Inkscape_ that allows adding LaTeX-generated text objects to your SVG drawing. What's more, you can also *edit* these text objects after creating them. This brings some o...
rainwoodman/inkslides
extension/textext.py
Python
gpl-3.0
31,214
[ "Brian" ]
01ba79f6bcaa005c7cf4f6804d08e7527d10ce506586ac0355b406986de11392
# GDB plugin for etnaviv driver debugging. # This needs gdb 7.5+ to work. # # usage (from gdb): # source /path/to/etnaviv_gdb.py # # Commands: # gpu-state (prefix|uniforms) # Show full GPU state (default) or only registers with a certain prefix. # The special prefix 'uniforms' shows only the shader ...
commshare/etna_viv
tools/etnaviv_gdb.py
Python
gpl-3.0
16,752
[ "VisIt" ]
4d58d7d6a36c111d2d139fce8a3877cb4ce75b021f1e6f420e20d5b3f0276c80
import os from mredoc import Document, Section, VerbatimBlock, Paragraph, VerticalColTable code = """ In a simulation lasting 350.0ms Create a single compartment neuron 'cell1' with area and initialvoltage and capacitance Add Leak channels to cell1 with conductance and reversalpotential Inject step-current of ...
mikehulluk/mredoc
src/mredoc/testing/example4.py
Python
bsd-2-clause
3,249
[ "NEURON" ]
90401fae50a36073c72353ec29c651fc834aec62f0aadb72170eb7bb4b4097dd
#A* ------------------------------------------------------------------- #B* This file contains source code for the PyMOL computer program #C* copyright 1998-2000 by Warren Lyford Delano of DeLano Scientific. #D* ------------------------------------------------------------------- #E* It is unlawful to modify or remove ...
gratefulfrog/lib
python/chempy/place.py
Python
gpl-2.0
15,039
[ "ChemPy", "PyMOL" ]
8f374bafe16530a12b27a7445eacffcede47c19ae5cc57bbe6d16650b2b7088a
__author__ = "Brian O'Neill" # BTO __doc__ = """ Module version = '0.2.4' Slightly ad-hoc decorator used_unused_keywords for `__init__` function of `log_calls`. It's not *totally* ad-hoc: `log_calls.__init__` only uses half the functionality of this decorator ;/ This decorator allows a function to determine whic...
Twangist/log_calls
log_calls/used_unused_kwds.py
Python
mit
6,209
[ "Brian" ]
0a73b5b2ee50e07df829eb40eb716b014eca7acda1801ea57342875be2da22aa
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2017, Marc Tschapek <marc.tschapek@itelligence.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supp...
roadmapper/ansible
lib/ansible/modules/windows/win_disk_facts.py
Python
gpl-3.0
47,652
[ "VisIt" ]
146d86cff6382030a59a2cf0950d60818347212e95c2a2fa55ad7ca4e825768c
import sys import pprint from ast import NodeTransformer, Str, Name, Param from ast import Module, FunctionDef, arguments, Return, keyword from ast import Load, ClassDef, Assign, Store import ast import inspect # my hack for not installing the astunparse, just pip install it. sys.path.append("/home/mdupont/experiments...
h4ck3rm1k3/gcc-ontology
lib/ast_pattern.py
Python
gpl-3.0
2,915
[ "VisIt" ]
ae7a0963221a529ef0774801af761ad3313e4a3585f3e69503f7ff57cdd25b5e
import numpy as np import robosuite.utils.transform_utils as T from robosuite.environments.manipulation.two_arm_env import TwoArmEnv from robosuite.models.arenas import EmptyArena from robosuite.models.objects import CylinderObject, PlateWithHoleObject from robosuite.models.tasks import ManipulationTask from robosuite...
ARISE-Initiative/robosuite
robosuite/environments/manipulation/two_arm_peg_in_hole.py
Python
mit
22,440
[ "Gaussian" ]
189a508f89971a4bf65213cbec1220be8d8278a9d8c8d0c20e3ca8a9bb7544cd
# -*- coding: utf-8 -*- """Utility functions for plotting M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Mainak Jas <mainak...
Teekuningas/mne-python
mne/viz/utils.py
Python
bsd-3-clause
130,082
[ "Mayavi" ]
fa2a3f96619d2ae6d7aa6598ea3b2c4bc871299e731266104e77b89eabc860df
""" This package provides a version of pymatgen's alchemy transmuter for performing transformations on structures queried from a Materials Project style database. """
materialsproject/pymatgen-db
pymatgen/db/alchemy/__init__.py
Python
mit
167
[ "pymatgen" ]
695c3082d83d1e7efad83984b52a86cc9c15ce7b51b6195fe9b8bb1b598a983a
""" ================================================ Kernel Density Estimate of Species Distributions ================================================ This shows an example of a neighbors-based query (in particular a kernel density estimate) on geospatial data, using a Ball Tree built upon the Haversine distance metric...
chrsrds/scikit-learn
examples/neighbors/plot_species_kde.py
Python
bsd-3-clause
4,038
[ "Gaussian" ]
e793e6780569c5fa79f80a94f2e34c9ed239e211a9cbcbba592443a16b2f9f9c
""" Module for povray file format support. See http://www.povray.org/ for details on the format. """ import os import numpy as np from ase.io.eps import EPS from ase.data import chemical_symbols def pa(array): """Povray array syntax""" return '<% 6.2f, % 6.2f, % 6.2f>' % tuple(array) def pc(array): """...
freephys/python_ase
ase/io/pov.py
Python
gpl-3.0
7,212
[ "ASE", "Jmol", "VMD" ]
165675641d6e5e233fd55fe80581222a180c77a28216226646345fd85eca1f04
import os import tempfile import shutil from django.test import TestCase, RequestFactory from django.core.urlresolvers import reverse from django.contrib.auth.models import Group from django.contrib.messages.storage.fallback import FallbackStorage from django.core.files.uploadedfile import UploadedFile from django.cor...
RENCI/xDCIShare
hs_app_netCDF/tests/test_netcdf_file_update.py
Python
bsd-3-clause
12,796
[ "NetCDF" ]
cbaba379cfa5da606726e75e8d6ae9a4d9ec3eb86e7ed0e121a057ff363cd226
# -*- coding: utf-8 -*- """ Models used to implement SAML SSO support in third_party_auth (inlcuding Shibboleth support) """ from __future__ import absolute_import import json import logging import re from config_models.models import ConfigurationModel, cache from django.conf import settings from django.contrib.sites...
philanthropy-u/edx-platform
common/djangoapps/third_party_auth/models.py
Python
agpl-3.0
36,523
[ "VisIt" ]
89e4538313b2b608cc79b2db57df503237f0da76773fc0ffe122892f94567ae9
# Copyright (C) 2015 Hydriz Scholz # # 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 ...
Hydriz/DBReports
reports/mosttransclusions.py
Python
gpl-3.0
2,027
[ "VisIt" ]
b51604bb4c4262f1dd71a2687a4a8e2e0053138c7d7c1e124515884905a74786
"""Dynamically decide from where to import other SDK modules. All other protorpc code should import other SDK modules from this module. If necessary, add new imports here (in both places). """ __author__ = 'yey@google.com (Ye Yuan)' # pylint: disable=g-import-not-at-top # pylint: disable=unused-import try: from g...
ychen820/microblog
y/google-cloud-sdk/platform/google_appengine/lib/protorpc-1.0/protorpc/google_imports.py
Python
bsd-3-clause
470
[ "MOE" ]
75e5d22bed1ced7f054df2c4db8daca3119a6bc2f594893f2e06d9ea96e0aaec
# -*- coding: utf-8 -*- """ =============================================================================== Atom classes for LAMMPS structure data (:mod:`sknano.core.atoms._lammps_atoms`) =============================================================================== .. currentmodule:: sknano.core.atoms._lammps_atoms ...
androomerrill/scikit-nano
sknano/core/atoms/_lammps_atoms.py
Python
bsd-2-clause
1,633
[ "LAMMPS" ]
cb766180221c5a2943fd84b9696184f43ac5a7431f752ba8fb2a61f8da38f8fe
# Copyright (c) 2012 - 2014 the GPy Austhors (see AUTHORS.txt) # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np from ..core import GP from .. import likelihoods from .. import kern class GPRegression(GP): """ Gaussian Process model for regression This is a thin wrapper aroun...
ptonner/GPy
GPy/models/gp_regression.py
Python
bsd-3-clause
1,259
[ "Gaussian" ]
f029bbc5956df167034969bea16178510dca3ba45e8cd6315be150bb28145eb5
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. from django.contrib.au...
Avira/pootle
pootle/core/initdb.py
Python
gpl-3.0
9,804
[ "VisIt" ]
1c61f801a8151d36c859e586fb64f50f45b0f354ea0176456a14604dfc800206
"""Main module.""" import time as _time import numpy as _np import scipy.signal as _scysig import scipy.integrate as _scyint import scipy.optimize as _scyopt import matplotlib.pyplot as _mplt import matplotlib.gridspec as _mgs from matplotlib.collections import PolyCollection as _PolyCollection from siriuspy.devices...
lnls-fac/apsuite
apsuite/commisslib/measure_bbb_data.py
Python
mit
44,044
[ "Gaussian" ]
ef363a95f4fa9aae388561c74ef76c52b64ed423d5b468397afd4843ccd04001
# Audio Tools, a module and set of tools for manipulating audio data # Copyright (C) 2007-2016 Brian Langenberger # 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 Licens...
tuffy/python-audio-tools
audiotools/m4a.py
Python
gpl-2.0
36,305
[ "Brian" ]
d6d24020cae5746c9689da1316d3277daece863f092332e49d9211845a906739
#!/usr/bin/env python """ initial.py ROMS initial conditions utilities Written by Brian Powell on 01/15/14 Copyright (c)2010--2021 University of Hawaii under the MIT-License. """ import seapy import numpy as np import netCDF4 def from_roms(roms_file, ini_file, record=0, time=None, grid=None, ...
powellb/seapy
seapy/roms/initial.py
Python
mit
2,503
[ "Brian", "NetCDF" ]
5374c93c0a81da4313c6d6ed517dfc7dd74ced4dd561cdcacfd305d3ba12c99d
# # Copyright (C) 2013,2014 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
sehrhardt/espresso
samples/python/debye_hueckel.py
Python
gpl-3.0
7,857
[ "ESPResSo" ]
87e072255727414a60d4c854df9c64e359c4c1a068ae85ba4b533706e4a48ec9
#!/usr/bin/env python # Copyright 2017 Battelle Energy Alliance, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
idaholab/raven
framework/raven_qsub_command.py
Python
apache-2.0
2,985
[ "MOOSE" ]
0bc0fdbecdfe382752bf4df74acbfa9ac88ab1737623e1ebb6b68414548a41fd
""" This module contains all kinds of functions needed for execution of the notebook """ import scipy import os import json import pandas as pd import itertools import numpy as np import warnings import requests from matplotlib import cm from matplotlib import pyplot as plt from matplotlib.gridspec import GridSpec imp...
mdeff/ntds_2017
projects/reports/countries_development/Modules/utils.py
Python
mit
23,618
[ "Gaussian" ]
83b2d0ca91ff77ac569bfdc49a00d206d2f3f3e0290ae9ecd5a8139e3730d3f1
#!/usr/bin/env python # Initial author: Solaiappan Manimaran # Wrapper file for the following modules: # patholib: generates host/target genome libraries from ncbi nt database for given taxon IDs # pathomap: aligns reads to host/target database independent of read type using Bowtie2 # pathoid: reassigns ambiguous read...
PathoScope/PathoScope
pathoscope/pathoscope2.py
Python
gpl-3.0
20,096
[ "BLAST" ]
5ebdd2763098fcf87132ad3120976d23dd8fe19c0890130ed8de6aa4efbb4e53
import os import copy import time import random import sys import shutil import subprocess from subprocess import STDOUT #Execute a subprocess with standard output def execute(command): popen = subprocess.Popen(command, stdout=subprocess.PIPE) lines_iterator = iter(popen.stdout.readline, b"") for line...
Microsoft/distributed_skipgram_mixture
scripts/run.py
Python
mit
3,028
[ "VisIt" ]
af1d539c3369044e5eee48eab05df64ce98f8eb521299d199097f03cb5e03882
""" Generate Gauss-Kronrod quadrature abscissas and weights. Example usage ------------- Generate Gauss-Kronrod quadrature rules:: >>> distribution = chaospy.Beta(2, 2, lower=-1, upper=1) >>> for order in range(5): # doctest: +NORMALIZE_WHITESPACE ... abscissas, weights = chaospy.generate_quadrature...
jonathf/chaospy
chaospy/quadrature/kronrod.py
Python
mit
9,559
[ "Gaussian" ]
2c396e1f7dc110ae605b6798499586c3657bd6df82b1fb3715c64feefd1a89c2
### ### Run this script with pvpython so python can find paraview imports. ### ### Purpose: ### ### This script generates flat earth images of the unstructured ### grid used in the simulation. I noticed some issues when using the argument ### names that were originally used, those are documented in a long comment...
Kitware/cinema
scripts/data_generation/generate2dMpasData.py
Python
bsd-3-clause
6,796
[ "ParaView" ]
e541bb2c361c026b59f373779388d701b502c9205c4199b5b5193863db2951d4
''' Created on 18 Jan 2013 @author: Kieran Finn ''' import time beginning=time.time() import urllib2 import sys import json from functions import * import time import pickle from math import pi from scipy.integrate import quad import numpy as np from collections import defaultdict import os in_fnam...
christensen5/pyIBCC
attic/get_planet_data.py
Python
mit
6,128
[ "Gaussian" ]
abd6d2a9ff63d43d777d71f8cbbc5e0613c43c2255d1b55a06382808b3599882
""" DIRAC Times module Support for basic Date and Time operations based on system datetime module. It provides common interface to UTC timestamps, converter to string types and back. The following datetime classes are used in the returned objects: - dateTime = datetime.datetime - date = datetime.date - t...
andresailer/DIRAC
Core/Utilities/Time.py
Python
gpl-3.0
8,945
[ "DIRAC" ]
8f9ac4c574c4fd5c37d7b93f995bf99e7ed38530ecfcd44f6d8076b6c3c9cbb6
""" """ from wheezy.http import WSGIApplication from wheezy.http.middleware import http_cache_middleware_factory from wheezy.web.middleware import bootstrap_defaults from wheezy.web.middleware import http_error_middleware_factory from wheezy.web.middleware import path_routing_middleware_factory from shared.middleware...
akornatskyy/sample-blog-api
src/app.py
Python
mit
1,088
[ "VisIt" ]
d28a255cf0de6c65db0f20df25a7cdd575144deb0296a4a11d3898b779a77167
# coding: utf-8 """ This module defines the Node class that is inherited by Task, Work and Flow objects. """ from __future__ import division, print_function, unicode_literals import sys import os import time import collections import abc import six import numpy as np from pprint import pprint from atomicfile import A...
migueldiascosta/pymatgen
pymatgen/io/abinit/nodes.py
Python
mit
38,973
[ "ABINIT", "pymatgen" ]
76cd8f62b9d290ff48db1460b7566be12a576524f17b9bec26ca02472df0f499
#!/usr/bin/env python """ Framework to start a simulated vehicle and connect it to MAVProxy. Peter Barker, April 2016 based on sim_vehicle.sh by Andrew Tridgell, October 2011 """ from __future__ import print_function import atexit import errno import getpass import optparse import os import os.path import re import ...
roger-zhao/ardupilot-3.5-dev
Tools/autotest/sim_vehicle.py
Python
gpl-3.0
33,210
[ "Firefly" ]
59eac42389c09a3cf6398312d2fd6dc77b084a96561d7179bdee9ee645419bc2
#!/usr/bin/env python # # DNATool - A program for DNA sequence manipulation # Copyright (C) 2012- Damien Farrell & Jens Erik Nielsen # # 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 vers...
dmnfarrell/peat
DNATool2/SeqIO.py
Python
mit
13,858
[ "BLAST" ]
54547d73dae5eaa5ba41f792ef26721fc65b2c5ed34599a897f12b9696ea2ad4
# -*- coding: utf-8 -*- # # pynest_example_template.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the...
sdiazpier/nest-simulator
doc/userdoc/contribute/templates/pynest_example_template.py
Python
gpl-2.0
5,837
[ "NEURON" ]
5afa00f561d996fe52ad82fd81fd1b8fe738bfbbd73b6509fcb19eab1a58e413
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is a part of DARFI project (dna Damage And Repair Foci Imager) # Copyright (C) 2014 Ivan V. Ozerov # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as· # pu...
varnivey/darfi
engine/pic_an_calc.py
Python
gpl-2.0
16,108
[ "Gaussian" ]
10120e9186e091a9cc5cac1a21bc8de208390c6ae26d2e1e65da5a33fcc9c0f6
''' Created on 2012-11-10 @author: Andre R. Erler ''' ## imports from numpy import array, arange, zeros, diff import os import re # netcdf stuff from netcdf import Dataset, add_coord, copy_dims, copy_ncatts, copy_vars # data root folder from socket import gethostname hostname = gethostname() if hostname=='komputer':...
aerler/WRF-Tools
Python/archive/avgWRF_2045-2056_A2.py
Python
gpl-3.0
8,594
[ "NetCDF" ]
c9c983b8539305bd53f903120881e7be928b9efb700e18d96cb07c6f3bf6c568
# pylint: disable=bad-continuation """ Certificate HTML webview. """ import logging import urllib from datetime import datetime from uuid import uuid4 import pytz from django.conf import settings from django.contrib.auth.models import User from django.http import Http404, HttpResponse from django.template import Reque...
jolyonb/edx-platform
lms/djangoapps/certificates/views/webview.py
Python
agpl-3.0
32,632
[ "VisIt" ]
93ae4b4aa6dbcc5227f5c9155156da826af09b52883fdcc06f74391996590c94
#!/usr/bin/env python # -*- coding: utf-8 -*- # vispy: gallery 30 # Copyright (c) 2015, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. """ Just a very fake galaxy. Astronomers and cosmologists will kill me ! """ import numpy as np from vispy import gloo from vispy i...
sh4wn/vispy
examples/demo/gloo/galaxy.py
Python
bsd-3-clause
5,921
[ "Galaxy" ]
fe4fd2e1b45c8f84cfeec88ee64e7afad75b753c698e0de926d07fff47b70dce
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'DataTable.link' db.alter_column('neuroelectro_datatable', 'link', self.gf('dj...
neuroelectro/neuroelectro_org
neuroelectro/south_migrations/0051_auto__chg_field_datatable_link.py
Python
gpl-2.0
26,892
[ "NEURON" ]
a5c0c8b94d9a93c622b81cf1207eb1d05df470976b8e4edb6928b7d5e136cb11
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A. Beauchamp # # MDTraj i...
swails/mdtraj
mdtraj/geometry/__init__.py
Python
lgpl-2.1
2,394
[ "MDTraj" ]
3dc326df18333b01f0bc891630cb56ec8586e25966ccefe974cebe4c6cfa5a46
# # Particle swarm optimisation (PSO). # # This file is part of PINTS (https://github.com/pints-team/pints/) which is # released under the BSD 3-clause license. See accompanying LICENSE.md for # copyright notice and full license details. # # Some code in this file was adapted from Myokit (see http://myokit.org) # impor...
martinjrobins/hobo
pints/_optimisers/_pso.py
Python
bsd-3-clause
11,155
[ "Gaussian" ]
808631eb0bcfa5c4d6c2e7a50b7e026d70d278498d0b599189c1c2b3dde705a4
# # 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...
aokolnychyi/spark
python/pyspark/ml/regression.py
Python
apache-2.0
62,260
[ "Gaussian" ]
91d7d596317e08b7c0466f821749bf22b09d556d63be4ef31d76963426970afe
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetR...
ashray/VTK-EVM
Filters/General/Testing/Python/splitVectors.py
Python
bsd-3-clause
4,578
[ "VTK" ]
f32d85657935ac43b5eceb502b9ee77872a7e3843f60a58240ed09d619f64cf8
""" The I_mmi measure, briefly looked at by the BROJA team. """ from ..pid import BasePID from ...multivariate import coinformation __all__ = ( 'PID_MMI', ) class PID_MMI(BasePID): """ The minimum mutual information partial information decomposition. This measure is known to be accurate for gaussi...
dit/dit
dit/pid/measures/immi.py
Python
bsd-3-clause
1,013
[ "Gaussian" ]
eaefd70e0d4f6e9af704dda457a43cb385194f3e9506aed3d3d40a38883a1b90
""" MUSE -- A Multi-algorithm-collaborative Universal Structure-prediction Environment Copyright (C) 2010-2017 by Zhong-Li Liu 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 version 2 of ...
zhongliliu/muse
setup.py
Python
gpl-2.0
1,462
[ "CRYSTAL" ]
a06fc767f4fc0546c7fdf9f084dbcdfeb35020fe65362cb8458857b372113845
""" Birdy has a command line interface to interact with a Web Processing Service. Example ------- Here is an example with Emu_ WPS service:: $ birdy -h $ birdy hello -h $ birdy hello --name stranger 'Hello Stranger' Configure WPS service URL ------------------------- By default Birdy talks to a WPS s...
bird-house/birdy
birdy/cli/__init__.py
Python
apache-2.0
2,729
[ "NetCDF" ]
e1405585207bb9d4a26fbee70e5374e015d446a8ac8321612627070730707c9e
""" This module contain solvers for all kinds of equations: - algebraic or transcendental, use solve() - recurrence, use rsolve() - differential, use dsolve() - nonlinear (numerically), use nsolve() (you will need a good starting point) """ from sympy.core.compatibility import iterable, is_s...
ichuang/sympy
sympy/solvers/solvers.py
Python
bsd-3-clause
80,432
[ "Gaussian" ]
b43be5b7538bea76e8f1c4d7a396232aebbfaf181ae2c368de8ad7d57a034444
# # Copyright 2021 Lars Pastewka (U. Freiburg) # 2020 Johannes Hoermann (U. Freiburg) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
libAtoms/matscipy
examples/electrochemistry/to_html.py
Python
lgpl-2.1
2,685
[ "Matscipy" ]
70aabe9db20c082ba84d7416682a47c76639c22e4b6f7f4b38e72207109b60f1
from datetime import timedelta import pytest import pandas.util._test_decorators as td from pandas import ( DataFrame, to_datetime, ) @pytest.fixture(params=[True, False]) def raw(request): """raw keyword argument for rolling.apply""" return request.param @pytest.fixture( params=[ "tr...
datapythonista/pandas
pandas/tests/window/conftest.py
Python
bsd-3-clause
5,251
[ "Gaussian" ]
efb4a1218e29adf3afa80bc861209f02057b110d315cdf470ba6d22685bbfe47
#!/usr/bin/env python2.5 # -*- coding:utf-8 -*- ''' simpleoauth-gae: Simple and thin OAuth library for GAE Environment Visit http://code.google.com/p/simpleoauth-gae/ ------------------------------------------------------------------------------ Copyright (c) 2010, TAGOMORI Satoshi <tagomoris@gmail.com>. All rights ...
tagomoris/simpleoauth-gae
simpleoauth_gae/twitter.py
Python
bsd-2-clause
11,628
[ "VisIt" ]
fd23317a2bda72b8cf4ec2434a6fd3fe025d12afc1a6892614a8240a78791475
# -*- coding: utf-8 -*- """ Sahana Eden Incident Reporting Model @copyright: 2009-2013 (c) Sahana Software Foundation @license: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Sof...
flavour/tldrmp
modules/s3db/irs.py
Python
mit
57,543
[ "VisIt" ]
7a07b1bb8b5a3bbbf9097fe74667052cd72035096d652631f5959460e02de424
#!/usr/bin/env python """ Calculates the density of air baed upon the Ideal Gas Law and the Magnus Equation """ import argparse import numpy as np from scipy.io import netcdf import math import os def calculate_density(pressure, temperature, relative_humidity): Rl = 287.058 # R for luft (dry air), ...
pgierz/semic
echam6_python_wrapper/echam6_calculate_air_density.py
Python
mit
1,905
[ "NetCDF" ]
f33d632e77d0bb68f053657fb384c6e675ac2c0fdc6a7b7e91db605be6acdc33
import tensorflow as tf import numpy as np from initialization import xavier_glorot_initialization class VariationalAutoencoder(): def __init__(self, input_dim, latent_dim, hidden_dim=10, batch_size=100, num_layers=0, ...
arahuja/generative-tf
generative-tf/models/variational_autoencoder.py
Python
apache-2.0
7,955
[ "Gaussian" ]
492b580ab2c81dff481149d9867d1ee27a3e2087e660c10fc35170799bcba3fb
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
kain88-de/mdanalysis
package/MDAnalysis/analysis/legacy/x3dna.py
Python
gpl-2.0
35,175
[ "MDAnalysis" ]
8dc4581925081813d44daf7959a8fe23a85164053dd238b21831b49e8640f43e
#pylint: disable=C0111 #pylint: disable=W0621 from lettuce import world, step from nose.tools import assert_true from nose.tools import assert_equal from auth.authz import get_user_by_email from selenium.webdriver.common.keys import Keys import time from logging import getLogger logger = getLogger(__name__) ######...
elimence/edx-platform
cms/djangoapps/contentstore/features/common.py
Python
agpl-3.0
4,876
[ "VisIt" ]
16383836aebe14befef2f5667e058f9e9eb6659d0e5bb0c794c5b2665cfbf8e6
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
yugangw-msft/azure-cli
src/azure-cli-core/azure/cli/core/util.py
Python
mit
49,814
[ "VisIt" ]
1c0abccd230fffba08a583a22f71cffa98f7a89d6ad200424f2f0a51ff32f813
from __future__ import unicode_literals import base64 import datetime import hashlib import json import netrc import os import re import socket import sys import time import math from ..compat import ( compat_cookiejar, compat_cookies, compat_etree_fromstring, compat_getpass, compat_http_client, ...
wndias/bc.repository
script.module.youtube.dl/lib/youtube_dl/extractor/common.py
Python
gpl-2.0
76,979
[ "VisIt" ]
b645a0185e390363310c90d81172683d1e7c8d92734ecfad4cd8a5e23c07203a
# this lets me be lazy..starts the cloud up like I want from my json, and gives me a browser # copies the jars for me, etc. Just hangs at the end for 10 minutes while I play with the browser import unittest import time,sys sys.path.extend(['.','..','py']) import h2o_cmd, h2o, h2o_glm, h2o_args import h2o_browse as h2b...
111t8e/h2o-2
py/testdir_hosts/glm_bench_gaussian.py
Python
apache-2.0
6,014
[ "Gaussian" ]
401ef73e7f78671aca256312396310b106eccbb8ec24875483fcb96b3c906d5a
# proxy module from __future__ import absolute_import from mayavi.components.ui.contour import *
enthought/etsproxy
enthought/mayavi/components/ui/contour.py
Python
bsd-3-clause
97
[ "Mayavi" ]
a1e38f89bcc3f3d718cf8cc3c07466877bb2f51c2333327969c6a449e1f643d9
# -*- coding: utf-8 -*- import random import urllib.parse import importlib import datetime from unittest.mock import patch from datetime import date from django.test import TestCase from django.contrib.auth.models import User from django.urls import reverse, reverse_lazy from django.utils import timezone from django....
savoirfairelinux/santropol-feast
src/order/tests.py
Python
agpl-3.0
66,833
[ "VisIt" ]
93d3f56976bebfe6d2ce2c0b5fe90af5f0964f30e170d334aca546ee19172a16
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/integrator/DPDThermostat.py
Python
gpl-3.0
1,847
[ "ESPResSo" ]
5678b97ac2109e884abac825c8b7821d1fd5062d6c7b897b6d836a91814d74f3
""" Acceptance tests for Studio related to the container page. """ from ..pages.studio.auto_auth import AutoAuthPage from ..pages.studio.overview import CourseOutlinePage from ..fixtures.course import CourseFixture, XBlockFixtureDesc from .helpers import UniqueCourseTest from ..pages.studio.component_editor import Co...
LICEF/edx-platform
common/test/acceptance/tests/test_studio_container.py
Python
agpl-3.0
17,313
[ "VisIt" ]
6e87a7ae379abb8fe8507376c15486cc0e711b0bf86a08605f7c19d0a9162c2f
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014-2015 Adrian Bürger # # This file is part of PECas. # # PECas is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
adbuerger/PECas
concept_tests/sd_check_pendulum.py
Python
lgpl-3.0
5,333
[ "Gaussian" ]
a50f833f03ea1b25f837ae078c14a2033adb83e25a013d23ef25608df9dd96a8
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # This example illustrates how one may explicitly specify the range of each # axes that's used to define the prop, while displaying data with a different # set of bounds (unli...
hlzz/dotfiles
graphics/VTK-7.0.0/Rendering/Annotation/Testing/Python/cubeAxes3.py
Python
bsd-3-clause
2,901
[ "VTK" ]
bb147c972db86a74a563136e7ea498ed8c5712a9d5e507e50d28d3e6b2bd3cd7
#!/usr/bin/env python """ seq_pipe.py Kyle McChesney This script is the entry point to several different pipelines all of which have to do with NGS analysis. Currently: + bowtie-alignment + tophat-alignment + cuffdiff + bigWig generation """ # ruffus imports from ruffus import * import ruffus.cmdline as cmdline ...
mbiokyle29/pipelines
seq/seq_pipe.py
Python
mit
3,437
[ "Bowtie" ]
246820e6163bb57209758b5044492227b710f566619dc9eb36dccc36bb1cf993
# DEPRECATED # As of 7 Feb 2016, RGZ data dumps do not include the users collection. from pymongo import MongoClient import json client = MongoClient('localhost', 27017) db = client['radio'] classifications = db['radio_classifications'] users = db['radio_users'] # volunteers doing each classification (can be anonym...
willettk/rgz-analysis
python/authors_rgz.py
Python
mit
1,017
[ "Galaxy" ]
651a51fc2c39c40100c8265dabf248b4b977f59e7d28f531ee2caa882051b702
#!/usr/bin/python """ TCP Communications Module """ import asyncore import socket import errno import pickle from time import time as _time, sleep as _sleep from io import StringIO from .debugging import ModuleLogger, DebugContents, bacpypes_debugging from .core import deferred from .task import FunctionTask, OneS...
JoelBender/bacpypes
py34/bacpypes/tcp.py
Python
mit
31,592
[ "ASE" ]
45978628b820a7415824d90ad2ea70c806e755c17f719a42bee347b457f88fed
import glob import astropy.io.fits as fits import os import time import numpy as n import sys import scipy.spatial.ckdtree as t # specific functions from scipy.stats import norm from scipy.integrate import quad from scipy.interpolate import interp1d import random from astropy.cosmology import FlatLambdaCDM import ast...
JohanComparat/nbody-npt-functions
bin/bin_SMHMr/MD10_add_4MOST_CLUSTERS_members.py
Python
cc0-1.0
3,617
[ "Galaxy" ]
b77eb8cc7d330dff17faed3064ffc14dda160e118540bb41864809d3c039da4f
# -*- coding: utf-8 -*- # Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
FedoraScientific/salome-hexablock
doc/test_doc/hemisphere/sphere.py
Python
lgpl-2.1
1,797
[ "VTK" ]
fb5a132ddcefc2e97f5dbb5d78a7a530d4901b49012255ecf3434f7b4ec869ab
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html # Based on Copyright (C) 2016 Radim Rehurek <radimrehurek@seznam.cz> """ Inspired by the Blei's original DTM code and paper. Original DTM C/C++ code: https://github.com/blei-lab/dtm DTM Paper: h...
wtgme/labeldoc2vec
gensim/models/ldaseqmodel.py
Python
lgpl-2.1
43,582
[ "Gaussian" ]
d1c8b1a69996d88186287c4781f62b305708453a06a74b44702828a0bdce36a4
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import json from unittest import skipIf, skip import requests from box.test.flaky import flaky from ..helpers import UniqueCourseTest, is_youtube_available from ...pages.lms.video.video import VideoPage from ...pages.lms.tab_nav import TabNavPage from ...pag...
LICEF/edx-platform
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
38,380
[ "VisIt" ]
2ec912af7fa1e816f581e06cec4d28e3af6b813c741f8013721044a9044faf32
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2015 CERN. # # Invenio is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your option) any later...
jirikuncar/invenio
invenio/modules/search/walkers/elasticsearch.py
Python
gpl-2.0
3,095
[ "VisIt" ]
af30b1cf1fd9a0bb7db5119ca45d23ecd1ba534a056f10f290d72c0367b4e829
#!/usr/bin/env python #pylint: disable=missing-docstring ################################################################# # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment # # #...
yipenggao/moose
python/chigger/tests/transform/scale.py
Python
lgpl-2.1
1,490
[ "MOOSE", "VTK" ]
ada72157f453e5a54329ac443d221faeaa2200f53f798ea7544be5b9ab42a4ce
#!/usr/bin/python2.7 """ Add - Make script add VM interfaces to the correct bridge #ifconfig | grep ma:ca:dd:re:ss:00 (only match last 2 bytes) #sudo ovs-vsctl del-port br5 vnet #sudo ovs-vsctl add-port br5 vnet tag=30 #sudo ifconfig vnet up Add - auto mount STORAGEIV """ import paramiko import...
trjones841/pynet_class
Various Scripts/KVM_OVS_Interface_Mapping.py
Python
apache-2.0
7,949
[ "CASINO" ]
9aaf5849116d139ec1a386ec2f6e970302ad5ff81b1567dd349ed1fd1fd72163
import inspect import cairocffi import pycparser ALL_THE_CODE = ''.join( line for module in [ cairocffi, cairocffi.surfaces, cairocffi.patterns, cairocffi.fonts, cairocffi.context, cairocffi.matrix] for line in inspect.getsourcelines(module)[0]) class Visitor(pycparser.c_ast.NodeVisitor)...
SimonSapin/cairocffi
utils/cairo_coverage.py
Python
bsd-3-clause
777
[ "VisIt" ]
5a70f1862a5411f0291827829ca9cd315d3fa0622c3c39e1c7477fea048624ec
# # This source file is part of appleseed. # Visit http://appleseedhq.net/ for additional information and resources. # # This software is released under the MIT license. # # Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization # # Permission is hereby granted, free of charge, to any person obtaining a copy # ...
dictoon/blenderseed
translators/preview.py
Python
mit
12,094
[ "VisIt" ]
1fc18e19a03fee59460f852706820b6356ee12b01aa3e8966ebab66fdfb44ae7
# ====================================================================== # USER-GFMD - Elastic half-space methods for LAMMPS # https://github.com/Atomistica/user-gfmd # # Copyright (2011-2016,2021) # Lars Pastewka <lars.pastewka@imtek.uni-freiburg>, # Tristan A. Sharp and others. # See the AUTHORS file in the top...
Atomistica/user-gfmd
tests/TEST_error_convergence_ft_four_layers_lj_cut_fd_single_layer_no_relax/eval.py
Python
gpl-2.0
9,946
[ "LAMMPS" ]
d05669ec0e433ecd2869feebb69c5ec82d3214fded5174331f28a76dc17027e2
"""Structure optimization. """ from ase.optimize.optimize import NDPoly, polyfit from ase.optimize.mdmin import MDMin from ase.optimize.lbfgs import HessLBFGS, LineLBFGS from ase.optimize.fire import FIRE from ase.optimize.lbfgs import LBFGS, LBFGSLineSearch from ase.optimize.bfgslinesearch import BFGSLineSearch from ...
grhawk/ASE
tools/ase/optimize/__init__.py
Python
gpl-2.0
796
[ "ASE" ]
efd54e1467f12d92d822c02771840f64f1b6a1618b08d0beb02b353bd5bf656d
#!/usr/bin/env python """Copyright 2010 Phidgets Inc. This work is licensed under the Creative Commons Attribution 2.5 Canada License. To view a copy of this license, visit http://creativecommons.org/licenses/by/2.5/ca/ """ __author__ = 'Adam Stelmack' __version__ = '2.1.8' __date__ = 'May 17 2010' #Basi...
danielsuo/mobot
src/move/Python/TextLCD-simple.py
Python
mit
6,000
[ "VisIt" ]
71e89352ce69706cce03bfaf4120e8e8e316556b6354944a25e4a62c7569d7d4
#! /usr/bin/env python """ Module with fake disk injection functions. """ __author__ = 'Julien Milli @ ESO, Valentin Christiaens @ ULg/UChile' __all__ = ['cube_inject_fakedisk', 'cube_inject_trace'] import numpy as np from scipy import signal from ..preproc import cube_derotate, frame_shift from ..var imp...
carlgogo/vip_exoplanets
vip_hci/metrics/fakedisk.py
Python
bsd-3-clause
9,502
[ "Gaussian" ]
86c7bbd5372cba0445a921deea3f2c598fea0679e5103b00006f442a57e9646b
# -*- coding: utf-8 -*- """This module contains functions to be called from console script entry points. """ # symbols which are imported by "from rmidb2.command import *" __all__ = ['bootstrap', 'ConfigurationError', 'start'] import sys import optparse from os import getcwd from os.path import dirname, exists, join...
edwardsnj/rmidb2
rmidb2/command.py
Python
mit
4,403
[ "VisIt" ]
de5f0f6e2979a8b2f36d71dfd23061bc7ed4afacce359c9d3b1817f5b5e61345
import glob import pandas as pd import numpy as np pd.set_option('display.max_columns', 50) # print all rows import os os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files") normalB = glob.glob("binary_position_RRBS_normal_B_cell*") mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27...
evanbiederstedt/RRBSfun
trees/chrom_scripts/total_chr15.py
Python
mit
32,998
[ "MCell" ]
2a44cb7c9dd2a416111df9444ab0b3a9f23e3230f1725ed557bcbea4a5b51ba1