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
""" This script adds a foreign key to the form_values table in the galaxy_user table """ from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.exceptions import * from migrate import * from migrate.changeset import * import datetime now = datetime.datetime.utcnow import sys, logging # Need our custom ty...
volpino/Yeps-EURAC
lib/galaxy/model/migrate/versions/0025_user_info.py
Python
mit
2,491
[ "Galaxy" ]
df904446a577d7ab26efbefeaab3105259d1fd5dd8e65eff69f9fc2d10d3eb6d
# Copyright (c) 2012-2014, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) import numpy as np import sys from .. import kern from .model import Model from .parameterization import ObsAr from .mapping import Mapping from .. import likelihoods from ..inference.latent_function_i...
ptonner/GPy
GPy/core/gp.py
Python
bsd-3-clause
37,031
[ "Gaussian" ]
81f92719322678a74b0cfe8c9062fa0e57bf9cd1311d9c0f5420800c86716c47
from .. import Availability, Class, Constant, Define, Method, Parameter, Type gx_class = Class('VVU', doc=""" These methods are not a class. Utility methods perform various operations on :class:`VV` objects, including pruning, splining, clipping and f...
GeosoftInc/gxapi
spec/desk/VVU.py
Python
bsd-2-clause
101,398
[ "Gaussian" ]
b67af20113536fe95f2b2ee353d8a733c72ae053b4891c4336c1b146985ffae7
#!/usr/bin/python # # Created on Aug 25, 2016 # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # # 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...
fredericlepied/ansible
lib/ansible/modules/network/avi/avi_alertconfig.py
Python
gpl-3.0
11,715
[ "VisIt" ]
ed376b7e77d986dd88cba6e20f2e14c1f9c86668b144ac4dfc976d5e9ed5857f
# PYTHON 3 # # Author: Kate Willett # Created: 1 February 2013 # Last update: 15 January 2020 # Location: /data/local/hadkw/HADCRUH2/UPDATE2014/PROGS/HADISDH_BUILD/ # GitHub: https://github.com/Kate-Willett/HadISDH_Build # ----------------------- # CODE PURPOSE AND OUTPUT # ----------------------- # Reads in a g...
Kate-Willett/HadISDH_Build
MakeGridTrends.py
Python
cc0-1.0
24,675
[ "NetCDF" ]
ae9d6fcab6171580b9271eb3ae02e3b5ba59e7ade5288e320547c3bf334dc751
""" ============================================= Density Estimation for a mixture of Gaussians ============================================= Plot the density estimation of a mixture of two Gaussians. Data is generated from two Gaussians with different centers and covariance matrices. """ import matplotlib.pyplot as ...
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/examples/mixture/plot_gmm_pdf.py
Python
mit
1,528
[ "Gaussian" ]
a40d25bd459d5ac174ed3c8e4949471fe5ef3d5c6e3b85a160daff57bff0b596
########################################################################### # # # physical_validation, # # a python package to test the physical validity of MD results # # ...
shirtsgroup/physical-validation
physical_validation/data/lammps_parser.py
Python
lgpl-2.1
20,326
[ "LAMMPS" ]
56994830abd150380ac1517e1f3167b736af04383152f6b7fe25d6054df43072
# DistTarBuilder: tool to generate tar files using SCons # Copyright (C) 2005, 2006 Matthew A. Nicholson # Copyright (C) 2006-2010 John Pye # # This file is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License version 2.1 as published by the Free Software...
wheeler-microfluidics/dmf-control-board-firmware
site_scons/site_tools/disttar/disttar.py
Python
bsd-3-clause
5,183
[ "VisIt" ]
aa88a215491208b0aa4357646225d8f4c519dfdd372497c334b2e34997ebbd92
# This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Public version 2.1 or l...
Clyde-fare/cclib
src/cclib/method/cspa.py
Python
lgpl-2.1
3,974
[ "cclib" ]
96fbcfe9dcc9d27b21677bff69fc1f964568a6aad3fbb32bb1c4c12a989f0bd5
#!/usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-executor # Author : Adria Casajus ######################################################################## __RCSID__ = "$Id$" """ This is a script to launch DIRAC executors """ import sys impor...
Sbalbp/DIRAC
Core/scripts/dirac-executor.py
Python
gpl-3.0
1,643
[ "DIRAC" ]
89b34fbd08042807ddd834c7fd70fb2918396ba9334ad955ce2eeae1000dff0d
import numpy as np import mdtraj as md import scipy.spatial.distance from msmbuilder3.base import BaseModeller, TransformerMixin, EstimatorMixin class KCenters(BaseModeller, EstimatorMixin): """ K-Centers clustering of multivariate vector datasets Parameters ---------- n_clusters : int Th...
rmcgibbo/msmbuilder3
msmbuilder3/cluster/kcenters.py
Python
gpl-3.0
4,225
[ "MDTraj" ]
88cfbe1c5eb40ce1f499fd69ace1e759479515e51f8c52a8c03dd35fd64545d7
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
thica/ORCA-Remote
src/ORCA/vars/Globals.py
Python
gpl-3.0
1,417
[ "ORCA" ]
362f5cc62552f25693c1ba165a1e52c253a36a2de15909d49e5cb2d370f1c0ea
""" Acceptance tests for Studio's Setting pages """ from base_studio_test import StudioCourseTest from bok_choy.promise import EmptyPromise from ...fixtures.course import XBlockFixtureDesc from ..helpers import create_user_partition_json from ...pages.studio.overview import CourseOutlinePage from ...pages.studio.setti...
unicri/edx-platform
common/test/acceptance/tests/studio/test_studio_settings.py
Python
agpl-3.0
16,655
[ "VisIt" ]
4722222bff2631a5c1262e4c25f834379831127929a0242607c6efe7e0abc496
#!/usr/bin/env python """ Compliance Checker """ from __future__ import unicode_literals from functools import wraps import pprint from netCDF4 import Dataset from owslib.swe.observation.sos100 import SensorObservationService_1_0_0 from owslib.swe.sensor.sml import SensorML from owslib.namespaces import Namespaces f...
DanielJMaher/compliance-checker
compliance_checker/base.py
Python
apache-2.0
10,691
[ "NetCDF" ]
9795cb5116a5f394d438a3273782b28e8890b96b2153579a269bfd17811543e5
class Bond(object): """Docstring for Bond""" bond_type = "" bond_equib_len = "" bond_force_const = "" bond_master = "" bond_slave = "" opls_bond_num = 0 print_type = 0 #constructor def __init__(self, bond_type, bond_master, bond_slave): self.bond_type = bond_type self.bond_mas...
sipjca/cmlparser_py
bond.py
Python
apache-2.0
4,563
[ "LAMMPS" ]
ae1ae50e49cd1b6da392fc0a7ca11d8fa160ba360a5958a1d58b100a4362efc1
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
regular/pyglet-avbin-optimizations
pyglet/graphics/__init__.py
Python
bsd-3-clause
25,424
[ "VisIt" ]
0ea61314f8a44d6a584dc81e826b8efc72b66779c384dc38a13d9eacc2089c7b
#!/usr/bin/env python """If given core seqs and a set of genomes, extract the core and build an alignment ready for phylogenetics""" from __future__ import division from __future__ import print_function import optparse import subprocess import os import sys try: from Bio import SeqIO from Bio.Blast import NCB...
jasonsahl/LS-BSR
tools/extract_core_genome.py
Python
gpl-3.0
11,556
[ "BLAST", "Biopython" ]
57a9952b1d6fc701f6a7cfdbadaa1049212da064c040d7805fca98bd40b53d38
from django.contrib.auth.tokens import PasswordResetTokenGenerator from django.conf import settings from django.core.mail import send_mail from django.core.urlresolvers import reverse from django.utils.http import urlsafe_base64_encode def send_activation_email(request, user): b64uid = urlsafe_base64_encode(str(us...
editorsnotes/editorsnotes
editorsnotes/auth/utils.py
Python
agpl-3.0
1,133
[ "VisIt" ]
0d7a94231e20aba91c3050097ede133ce762a9e02b806415c2a50facd6ceac06
#!/usr/bin/env python3 #pylint: disable=missing-docstring #* 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 ...
nuclear-wizard/moose
python/chigger/tests/simple/simple_camera.py
Python
lgpl-2.1
958
[ "MOOSE", "VTK" ]
6c9669a9aa92e171c8de71fd98f692ed5e6e487ec13214ec1a7dba5578d519f4
""" The B{0install download} command-line interface. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. import sys from zeroinstall import _ from zeroinstall.cmd import UsageError, select from zeroinstall.injector import model syntax = "URI" def add_options(pa...
pombredanne/zero-install
zeroinstall/cmd/download.py
Python
lgpl-2.1
856
[ "VisIt" ]
7487f52b1b29203e0047ddb61c66f859a966a49a65f5ca4c59944cc78aa8282c
######################################################################## # $HeadURL$ ######################################################################## """ DIRAC FileCatalog plugin class to manage file metadata. This contains only non-indexed metadata for the moment. """ __RCSID__ = "$Id$" from types impor...
arrabito/DIRAC
DataManagementSystem/DB/FileCatalogComponents/FileMetadata.py
Python
gpl-3.0
21,554
[ "DIRAC" ]
ad71793fd8736c71c016637ff2fccbe4c3a0ffc9d2a8629da8688a3687acb7f2
""" Plot and save key steps in pulses.py for visualizing the alorithm. """ import glob import numpy as np from scipy import stats from matplotlib import gridspec, ticker import matplotlib.pyplot as plt try: from matplotlib.colors import colorConverter as cc except ImportError: import matplotlib.col...
bendalab/thunderfish
thunderfish/pulseplots.py
Python
gpl-3.0
38,088
[ "Gaussian" ]
86e6c83326e207bf59f939ebc1b3b7c6263584da79920339354b1864964c23e2
#!/usr/bin/python3 # #File : weather_data.py #Author : Marcus Zurhorst #Email : marcuszurhorst@gmail.com #License : MIT License #Copyright : (c) 2017 Marcus Zurhorst # #Description : This module provides functions to fetch weather data from # OpenWeatherM...
mzurhorst/wassersteuerung
weather_data.py
Python
mit
11,196
[ "VisIt" ]
463d164d90025768872fae9f282329e547d8c53918cd3537e650a539334c5974
""" :mod: DMSRequestOperationsBase ==================== Just a collector of common functions """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id $" from DIRAC import S_OK, S_ERROR from DIRAC.RequestManagementSystem.Client.Operati...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/Agent/RequestOperations/DMSRequestOperationsBase.py
Python
gpl-3.0
4,321
[ "DIRAC" ]
98748353900578d76df556fb5be6acaabeffef22ae7ba97b42b810f100cf0eaa
tests = [ ("python", "UnitTestStorageUtils.py", {}), ("python", "UnitTestDbConnect.py", {}), ("python", "UnitTestDbInfo.py", {}), ("python", "UnitTestDbUtils.py", {}), ("python", "UnitTestDbResultSet.py", {}), ] longTests = [] if __name__ == '__main__': import sys from rdkit import TestRunner failed, ...
ptosco/rdkit
rdkit/Dbase/test_list.py
Python
bsd-3-clause
395
[ "RDKit" ]
219ee29632ca1c5833d22847ef2cb7388f650c64f7ffd08920b3e161afb1f679
import commands import shutil import os import sys import time class configure: """A class that collects the data for the configuration""" compiler_dic = {"Mac" : "$(MPICH__DIR)/build/bin/mpicxx", #"../../../mpich2-1.2.1p1_clang33/bin/mpic++", "Linux" : " mpic++", ...
staar/empty_project
build/tem/python_files/configure.py
Python
gpl-2.0
14,694
[ "Jaguar" ]
6ea942b3868597ca9ddd493c9bd59770dde64a37bce988aa3ccea50cc24dd3fc
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from setuptools import setup # Version number version = '0.0.1' def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name = 'GPyNotebook', version = version, author = 'Max Zwiessele', author_email = "i...
mzwiessele/GPyNotebook
setup.py
Python
bsd-2-clause
1,536
[ "Gaussian" ]
1097c5379c855828936880ff362efaf00fac945f4fdbe0215cdcc138149186f5
## \file ## \ingroup tutorial_roofit ## \notebook -nodraw ## ## \brief Organization and simultaneous fits: illustration use of ROOT.RooCustomizer and ## ROOT.RooSimWSTool interface in factory workspace tool in a complex standalone B physics example ## ## \macro_code ## ## \date February 2018 ## \authors Clemens Lange, ...
karies/root
tutorials/roofit/rf513_wsfactory_tools.py
Python
lgpl-2.1
3,122
[ "Gaussian" ]
cc631ccb503252555ad58549c1f3080c44171c866e6281501950b319c990907b
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
choderalab/FAHMunge
docs/conf.py
Python
lgpl-2.1
5,079
[ "MDTraj" ]
34ea4c59dfd38c5401fe28faf460c4dc873e177da97b19d460b922d202ed4cc9
#!/usr/bin/env python ############################################################################### # # fundec.py <tree> <database_file> <%id cutoff> # I should probably include some regular expression recognition to make the # counts of each annotation more robust. I imagine that as is this # code will only cluster ...
geronimp/fundec
bin/tree_clust.py
Python
gpl-3.0
15,715
[ "scikit-bio" ]
1a9523cc5578810a6bbbccf0972b95baeecc707116bf8d8bc665475c37f98a70
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
amjames/psi4
psi4/driver/qmmm.py
Python
lgpl-3.0
5,512
[ "Psi4" ]
7d6f13be2fca290384fe464effe188d14cca446cc110b4986284aaab500ba5a8
# Copyright (c) 2009-2021 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Test Image list generation for small box / large move size simulations.""" import hoomd import pytest import numpy @pytest.fixture(scope="function") def on...
joaander/hoomd-blue
hoomd/hpmc/pytest/test_small_box_2d.py
Python
bsd-3-clause
4,251
[ "HOOMD-blue" ]
2a45146e5945a781e923f0e8a0b50b2f7ef208fae00acd0a793f22b51d053cf6
from glob import glob import os from paramiko import SSHClient, AutoAddPolicy from metamds.io import cmd_line, rsync_from EXTENSIONS = {'trajectories': {'.xtc', '.trr', '.dcd', '.lammpstrj'}, 'topologies': {'.gro', '.pdb'}} PBS_HEADER = """#!/bin/sh -l #PBS -j oe #PBS -l nodes=1:ppn=16 #PBS -l walltim...
iModels/metamds
metamds/task.py
Python
mit
7,156
[ "Gromacs" ]
798180a1f0ea0ef7e38d1b493e3cddb38eda8bac5e945896a5ad1391678c8b54
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import logging import traceback from collections import OrderedDict import requests from buildings.models import BuildingFloorSpace from django.conf import settings from django.db import connection from django.http import HttpRespon...
indrz/indrz
indrz/routing/views.py
Python
gpl-3.0
62,671
[ "VisIt" ]
d1c5ab4e7db37a1a8f23bfaa294be7dd9ec233f0c677904f29d186fadef2f9be
# # Copyright (C) 2013-2018 The ESPResSo project # # This file is part of ESPResSo. # # ESPResSo is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
hmenke/espresso
testsuite/python/interactions_bonded.py
Python
gpl-3.0
6,402
[ "ESPResSo" ]
8bd2895d1f535b6f11f46e388322a40c654118ed62ce8038314384b0310cf55b
# Copyright 2016 Brian Innes # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
brianinnes/pycupi
python/vPiP/renderers/conCircleArcRenderer.py
Python
apache-2.0
5,643
[ "Brian" ]
82723000e2be5cb0f29e06fbe14bba469f4953b7b2c3c52ddb7be28a8981fc75
#!/usr/bin/env python ''' Create rst documentaiton of the examples directory. This uses screenshots in the screenshots_dir (currently doc/sources/images/examples) along with source code and files in the examples/ directory to create rst files in the generation_dir (doc/sources/examples) gallery.rst, index.rst, and gen...
youprofit/kivy
doc/gallery.py
Python
mit
11,166
[ "exciting" ]
a72ce866fd80dfb07711465de2f918917684c3c65ea445fc123ec390bc79b6bd
from mss import mss from PIL import ImageFilter, ImageDraw, ImageFont, Image from argparse import ArgumentParser def main(title, subtitle, outfile, radius): font = ImageFont.truetype("/usr/share/fonts/TTF/DejaVuSansCondensed-Bold.ttf", 72) font2 = ImageFont.truetype("/usr/share/fonts/TTF/DejaVuSansCondensed-Bo...
TheGhostlyCake/i3-Blurrer
main.py
Python
gpl-3.0
1,493
[ "Gaussian" ]
ec9a3eb07e838e6b62a39dc80055e4ffbbd3784318e907827bcc354a722b4b21
# ERPNext - web based ERP (http://erpnext.com) # Copyright (C) 2012 Web Notes Technologies Pvt Ltd # # 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 you...
gangadharkadam/sterp
erpnext/home/__init__.py
Python
agpl-3.0
3,598
[ "VisIt" ]
741e7287347bc9062e14150361b1bf3d8120c91d9be1f0f9badef31558854834
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import json import os import tempfile import unittest import warnings import numpy as np from pymatgen.core.structure import Structure from pymatgen.electronic_structure.core import Orbital, Spin from pymatgen.io.lobster imp...
materialsproject/pymatgen
pymatgen/io/lobster/tests/test_lobster.py
Python
mit
126,637
[ "Gaussian", "VASP", "pymatgen" ]
cd7a7d9a2adc09b6eff3f94ac1b1fffc875085f95fa105e0cbf2224cd3108614
import numpy as np from numpy.testing import assert_array_almost_equal from sklearn.neighbors.kd_tree import (KDTree, NeighborsHeap, simultaneous_sort, kernel_norm, nodeheap_sort, DTYPE, ITYPE) from sklearn.neighbors.dist_metrics import Dista...
davidgbe/scikit-learn
sklearn/neighbors/tests/test_kd_tree.py
Python
bsd-3-clause
7,852
[ "Gaussian" ]
65cc194f32d0c946a3e1e462292a417a4d316a1887d4f9b04b300e329431af5a
import numpy as np import matplotlib.pyplot as plt import matplotlib.ticker as mticker import matplotlib.patheffects as mpatheffects from mpl_toolkits.axes_grid1 import make_axes_locatable import netCDF4 import time import datetime import pyutils.dates as pud import pycpt.modify import pycpt.load pycpt.load.register_c...
j08lue/poppy
poppy/animators.py
Python
gpl-2.0
11,088
[ "NetCDF" ]
4130176cbf1eca64e5a29eba3ce82c277326018afb6b29b4c28d811ef9cb0387
## # Copyright 2012-2015 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercules foundation (htt...
ULHPC/modules
easybuild/easybuild-framework/test/framework/modules.py
Python
mit
17,674
[ "NetCDF" ]
d8df54c2fb6490d3c831544a7448f2db6aaa471da4f4505796817999d74f6de1
# coding: utf-8 from __future__ import unicode_literals import re import time import xml.etree.ElementTree as etree from .common import InfoExtractor from ..compat import compat_urlparse from ..utils import ( unescapeHTML, urlencode_postdata, unified_timestamp, ExtractorError, ) MSO_INFO = { 'DT...
gnowxilef/youtube-dl
youtube_dl/extractor/adobepass.py
Python
unlicense
39,231
[ "COLUMBUS", "Elk" ]
39b6b55419636aca232136d7e02400559a44b12a8bc9b00cdccf78bac075b9f6
#------------------------------------------------------------------------------ # Copyright (c) 2005, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions describe...
dmsurti/mayavi
tvtk/pyface/ui/wx/scene.py
Python
bsd-3-clause
28,321
[ "VTK" ]
3675848e1ec4caab7437ffd01da821c1c0768facd599dc0a4d5d9cd83288734b
#!/usr/bin/env python3 import os import argparse import sys from time import sleep import platform import subprocess mypath = os.environ["PATH"] os.environ["PATH"] = "/home/wl45/python/bin:/home/wl45/opt:" + mypath my_env = os.environ.copy() parser = argparse.ArgumentParser( description="This is a python3 script ...
luwei0917/awsemmd_script
continue_run.py
Python
mit
1,538
[ "LAMMPS" ]
50507f3862a21904313b5d4d6b31a2addc9e205bae5d21d48d8f808e77ae9d6e
# -*- encoding:ascii -*- from mako import runtime, filters, cache UNDEFINED = runtime.UNDEFINED __M_dict_builtin = dict __M_locals_builtin = locals _magic_number = 6 _modified_time = 1417089926.309341 _template_filename='templates/webapps/galaxy/dataset/tabular_chunked.mako' _template_uri='/dataset/tabular_chunked.mako...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/database/compiled_templates/dataset/tabular_chunked.mako.py
Python
gpl-3.0
4,935
[ "Galaxy" ]
0665d77917186b9e5fc6c43c090bebbf94b6d697a49084137de756db0ab7047a
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Unit tests for the engine.activate() call within the `iris.fileformats.netcdf._load_cube` function. Here, *specifically* t...
SciTools/iris
lib/iris/tests/unit/fileformats/nc_load_rules/actions/test__grid_mappings.py
Python
lgpl-3.0
37,796
[ "NetCDF" ]
8a2bc15767ddccedaae6a18b64e0c0c97f40d10b3e01050238488b925c27e9ad
""" NOTE: this is only used for testing the cython / c implementation. """ # Third-party import astropy.units as u import numpy as np from twobody.wrap import cy_rv_from_elements from astroML.utils import log_multivariate_gaussian # from scipy.stats import multivariate_normal # Project from ...samples import JokerSam...
adrn/thejoker
thejoker/src/tests/py_likelihood.py
Python
mit
8,432
[ "Gaussian" ]
df035efc0c6b1387153243d412950bfad33032110e320c2879d87d17f8a619b7
from __future__ import (absolute_import, division, # print_function, unicode_literals) exec(open("ground.py").read()) """ hamiltonian.py -------------- Define Green's function and Hamiltonian for image registration, providing gradients and Hessians. Classes: GaussGreen: exp(-r^2/ell^2)...
tonyshardlow/reg_sde
hamiltonian.py
Python
mit
24,276
[ "Gaussian" ]
3a35fed165324671e9872d1f80a0b4c206899c5c54bccb4d3f9685475c936128
#!/usr/bin/python # TODO - python path - assuming condo here ## HEALTH WARNING - BETA CODE IN DEVELOPMENT ## ''' This standalone application will build a mesh from a nifti classification file. To keep the procedure as similar as possible to the way mrMesh used to do this, we will keep this as a standalon applicatio...
andregouws/mrMeshPy
matlabRoutines/pyMeshBuild.py
Python
mit
9,152
[ "VTK" ]
b57bcdf09ac0936ecdd96b5976263e3f6f57df48f5da76b7b15b5a1c8ce1d798
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
JT5D/scikit-learn
sklearn/ensemble/forest.py
Python
bsd-3-clause
50,932
[ "Brian" ]
79efc2b7f30cd7cf1f04b5b92e76550931b87d607457585f1e27202706b7cb6b
import pytest import re from capybara.exceptions import ElementNotFound from capybara.tests.app import AppError class TestClickLink: @pytest.fixture(autouse=True) def setup_session(self, session): session.visit("/with_html") @pytest.mark.requires("server") def test_raises_any_errors_caught_i...
elliterate/capybara.py
capybara/tests/session/test_click_link.py
Python
mit
5,251
[ "VisIt" ]
552a7ac544ea185eb24a0f03d148a41f1d685646dbf05e10120a1a35e8eb5d89
#!/usr/bin/env python import sys for i in range(0, len(sys.argv)): if sys.argv[i] == '-A' and i < len(sys.argv)-1: sys.path = sys.path + [sys.argv[i+1]] import vtk from vtk.util.misc import vtkRegressionTestImage, vtkGetDataRoot # create planes # Create the RenderWindow, Renderer # ren = vtk.vtkRenderer...
sgh/vtk
Graphics/Testing/Python/streamSurface.py
Python
bsd-3-clause
2,273
[ "VTK" ]
24e87789a61e701d6a80206db212dc2ab9947d65866a5110a4fe5e8427847bf8
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # editfile - [insert a few words of module description on this line] # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of ...
heromod/migrid
mig/cgi-bin/editfile.py
Python
gpl-2.0
1,104
[ "Brian" ]
3c2dc03e35777e8e50278482b669dde09344b97636c5ad707b34ba95dbc32fd8
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """blast.py Module that interacts with BLAST+ for diagnostic primer prediction. The module provides functions that generate BLASTN command lines, tuned for screening primer sequences. This module does NOT run the commands - that is handled by one of the schedulers (multi...
widdowquinn/find_differential_primers
diagnostic_primers/blast.py
Python
mit
7,969
[ "BLAST", "Biopython" ]
1c10c6efbd71e54f93e73af37e1ee60faac6fbaafc5cd21dae399c72bb3d9855
""" ========================================== Statistical functions (:mod:`scipy.stats`) ========================================== .. module:: scipy.stats This module contains a large number of probability distributions as well as a growing library of statistical functions. Each univariate distribution is an insta...
larsmans/scipy
scipy/stats/__init__.py
Python
bsd-3-clause
8,976
[ "Gaussian" ]
3a0c65b95d6e764649d29bbe3a3e798441c19b2ad6c9a5993072765d9b0b8525
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2014 Google Inc. 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/LICEN...
googleapis/google-api-python-client
samples/translate/main.py
Python
apache-2.0
1,337
[ "VisIt" ]
9342cfcd0b60a0fbe2794e12833ffb71685a0d076816728d62242fca0561838d
# Author: Travis Oliphant # 1999 -- 2002 import operator import math import timeit from scipy.spatial import cKDTree from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len, _upfirdn_modes from scipy import linalg, fft as sp_fft from scipy.fft._helper import _init_nd_shape_and_axes from scipy._lib._uti...
nmayorov/scipy
scipy/signal/signaltools.py
Python
bsd-3-clause
151,207
[ "Gaussian" ]
c5550193edf8cad81f3ecc0222c96cb6c783312ce48fc45cdb9a584e365f5d90
''' Author: Alexander Ballisat PLEASE READ THROUGH THIS SECTION AS IT EXPLAINS WHAT IS REQURIED TO RUN THIS SCRIPT. The 'path' variable in Step 0 must be set, otherwise everything should run if you have it set up correctly. All units are SI for consistency. This is an example script to show how a 3D Pogo model can...
ab9621/PogoLibrary
example3DPogoJob.py
Python
gpl-3.0
10,791
[ "Gaussian" ]
1f719007a514d29c6027b7c2f91f5e6b0bd8776703ea634c51055415a020377f
# -*- coding: utf-8 -*- """ End-to-end tests for the gating feature. """ from textwrap import dedent from common.test.acceptance.tests.helpers import UniqueCourseTest from common.test.acceptance.pages.studio.auto_auth import AutoAuthPage from common.test.acceptance.pages.studio.overview import CourseOutlinePage from c...
caesar2164/edx-platform
common/test/acceptance/tests/lms/test_lms_gating.py
Python
agpl-3.0
8,667
[ "VisIt" ]
c34c1af8075cd1cdce80d476122a4ccad9cfd571039d6fdc3ebdc81398b9eb65
#! /usr/bin/env python ######################################################################## # $HeadURL$ # File : dirac-admin-set-site-protocols # Author : Stuart Paterson ######################################################################## """ Defined protocols for each SE for a given site. """ __RCSID__ ...
avedaee/DIRAC
Interfaces/scripts/dirac-admin-set-site-protocols.py
Python
gpl-3.0
1,350
[ "DIRAC" ]
d960d42842197d6a90a0a1f1e1ed53dc692b71d36b45d333b5dd56ab79cb3815
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-08 14:24 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('stein', '0007_auto_20160615_2017'), ] operations = [ migrations.CreateModel( ...
GeoMatDigital/django-geomat
geomat/stein/migrations/0008_crystalsystem.py
Python
bsd-3-clause
1,428
[ "CRYSTAL" ]
bdc992ffedc423265d3ee2514d9f1db55e8333840e847fc3a6d797ff082f15ce
# -*- coding: utf-8 -*- # Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., University of Heidelberg, and University of # of Connecticut School of Medicine. # All rights reserved. # Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., Universit...
jonasfoe/COPASI
copasi/bindings/python/unittests/Test_CModel.py
Python
artistic-2.0
14,040
[ "COPASI" ]
abf5234b63edf3957c5c8df9305de81be03928a58b1aeb475fb5d51d7b3fb860
from __future__ import absolute_import from .Visitor import VisitorTransform from .Nodes import StatListNode class ExtractPxdCode(VisitorTransform): """ Finds nodes in a pxd file that should generate code, and returns them in a StatListNode. The result is a tuple (StatListNode, ModuleScope), i.e. ...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/Cython/Compiler/CodeGeneration.py
Python
agpl-3.0
1,108
[ "VisIt" ]
8177139f3283b2434e7b2573ab044e2c4c55dc1bbd34ee134e149a029211e2e6
import sys import os #import os.path #import random from string import * import numpy as np import scipy as sc import scipy.interpolate as scit import matplotlib import pylab as pl from matplotlib import rc import vtk try: sys.path.append('/manning/home/xavier/Python/WRL/PySrc') import PyReadData as PRD print '...
xabart/Gerris-WRL-Flume
PostProcess.py
Python
gpl-3.0
589
[ "VTK" ]
c1bde2f69b47e9e4ce6cfcce84f1c1afc279b4e6f20d41e32861d50f9496f764
#!/usr/bin/env python # # 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 applicab...
intel-analytics/BigDL
python/friesian/src/setup.py
Python
apache-2.0
3,927
[ "ORCA" ]
4f7c0ca476bc3eae3163f5969074605a0d5c61d3d1da77fb6eb5a49a0b9fb377
""" Container page in Studio """ from bok_choy.page_object import PageObject from bok_choy.promise import Promise, EmptyPromise from . import BASE_URL from selenium.webdriver.common.action_chains import ActionChains from utils import click_css, wait_for_notification, confirm_prompt class ContainerPage(PageObject):...
bdero/edx-platform
common/test/acceptance/pages/studio/container.py
Python
agpl-3.0
13,533
[ "VisIt" ]
df76fe6d30c85124b322dddbc75b65623cbeeee50c2f49c4db8c11b14dc1e29c
# Copyright 2018 Google Inc. # # 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 wri...
google/tangent
tangent/desugar.py
Python
apache-2.0
2,988
[ "VisIt" ]
7fda43588af14e7b3834135c4291df9b7a403a64ee21dc0b4fa5047dd8bdcea7
''' Preprocess a set of micrographs for screening This script (`ara-screenmics`) prepares micrograph image files for screening. It performs the following preprocessing on the micrograph: - High pass filter with cutoff = sigma / window_size (Default sigma = 1, if sigma = 0, then high pass filtering is disabled) ...
ezralanglois/arachnid
arachnid/util/screenmics.py
Python
gpl-2.0
9,399
[ "Gaussian" ]
9425e9bb14b017055be82c3a33cc26d4f45b1b2e2a28e60ee786f2deddc82659
# Copyright 2014-2015 Novartis Institutes for Biomedical Research # 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 applic...
Novartis/railroadtracks
src/model/quantify.py
Python
apache-2.0
18,433
[ "HTSeq" ]
b9e572c99cc7462e3d021e3fa9c802b9efd944fc3cafb49ffa7e1eb2ccba67c6
from __future__ import unicode_literals, division, absolute_import import logging import re from datetime import datetime, timedelta from dateutil.parser import parse as dateutil_parse from sqlalchemy import Table, Column, Integer, String, Unicode, Boolean, Date, DateTime, Time, or_, func from sqlalchemy.orm import re...
tsnoam/Flexget
flexget/plugins/api_trakt.py
Python
mit
35,928
[ "VisIt" ]
a2dab4881761a2a97a2d183d244676d4467da9c8f4d0559e1437031bc2631691
# coding: utf-8 # Copyright 2017 CERN. This software is distributed under the # terms of the GNU General Public Licence version 3 (GPL Version 3), # copied verbatim in the file LICENCE.md. # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergo...
dquartul/BLonD
blond/beam/beam.py
Python
gpl-3.0
18,616
[ "Gaussian" ]
efb6dd335316e0fef684bad7b278e443520c695a92712ed01023823ddb223dc0
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
gkc1000/pyscf
pyscf/lo/__init__.py
Python
apache-2.0
983
[ "PySCF" ]
210c91900585556e100c1345247ad6f0a62831d37531bbf415f98ea1da0e0738
''' Created on Jan 18, 2013 @author: brian ''' import openid from openid.fetchers import HTTPFetcher, HTTPResponse from urlparse import parse_qs from django.conf import settings from django.test import TestCase, LiveServerTestCase # from django.contrib.auth.models import User from django.core.urlresolvers import reve...
elimence/edx-platform
common/djangoapps/external_auth/tests/test_openid_provider.py
Python
agpl-3.0
11,386
[ "Brian" ]
9b5e345c04963dcd41dccae93275b0e07dba990ddba098b5f036cc6d768e703c
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
laurentgo/arrow
python/pyarrow/parquet.py
Python
apache-2.0
85,082
[ "VisIt" ]
19486f6c743c9b4f345ab30de8c463a9733ba53a3487cb31627f6c410e761fa6
#!/usr/bin/env python import math from implementation import * import collections class SimpleGraph: def __init__(self): self.edges = {} def neighbors(self, id): return self.edges[id] class FrontierQueue: def __init__(self, start=None): self.elements = [] self.came_from = ...
akulakov/sicp
code/pathfinding/greedy.py
Python
gpl-2.0
2,812
[ "VisIt" ]
7aef60cf21adc404cfc906582a8b0bb5767ee2c3fc926e800f79e3177795db37
import numpy as np from astropy.table import Table from astropy.io import fits import matplotlib.pyplot as plt import matplotlib import pickle from TheCannon_2 import dataset,apogee from TheCannon_2 import model import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import Normalize class Midpoi...
peraktong/Cannon-Experiment
0307_plot_all_new_ivar_bigger_0.py
Python
mit
52,091
[ "VisIt" ]
d43917e39497a68d68827d75bc44565ed6708f06a00a4750ac93f9cf1917d5e7
""" Contains the base class for flippers.""" # flipper.py # Mission Pinball Framework # Written by Brian Madden & Gabe Knuth # Released under the MIT License. (See license info at the end of this file.) # Documentation and more info at http://missionpinball.com/mpf import logging from mpf.system.devices import Device...
jabdoa2/mpf
mpf/devices/flipper.py
Python
mit
15,299
[ "Brian" ]
2c254717a45ac5fc45e4ea69af8c8f712c658eac187a939c8165d8e0717a0136
# # File : building.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team # # 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...
weety/rt-thread
tools/building.py
Python
apache-2.0
35,640
[ "CDK" ]
b5b4660f01a54cd9f77fc0e5b7606cd60a07c6c25ee7289ec6bc7b84e0efb84c
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # this demonstrates appending data to generate an implicit model # contrast this with appendImplicitModel.tcl which set the bounds # explicitly. this scrip should produce the ...
hlzz/dotfiles
graphics/VTK-7.0.0/Filters/Hybrid/Testing/Python/appendImplicitModelNoBounds.py
Python
bsd-3-clause
2,584
[ "VTK" ]
ef27025819a021635fbb7f9c88b5199278bfe402f19a9ec4775610aa04bac60d
#!/usr/bin/env python """ dirac-rss-set-token Script that helps setting the token of the elements in RSS. It can acquire or release the token. If the releaseToken switch is used, no matter what was the previous token, it will be set to rs_svc ( RSS owns it ). If not set, the token will be set to w...
sposs/DIRAC
ResourceStatusSystem/scripts/dirac-rss-set-token.py
Python
gpl-3.0
7,082
[ "DIRAC" ]
dd649e7d21bebb2ed4accae25f209ecb42350b17af86373a807ad4bbaeb08fdc
# pbrange.py TEST PROGRAM for Pyboard MQTT link # Intended for checking behaviour at the limit of WiFi range and to demonstrate # the technique of intercepting status messages. # Author: Peter Hinch. # Copyright Peter Hinch 2017 Released under the MIT license. # From PC issue (for example) # mosquitto_pub -h 192.168....
peterhinch/micropython-mqtt
pb_link/pbrange.py
Python
mit
2,680
[ "Amber" ]
085b8ed8b4d7598f28c50e1eada8b040ed2724d7bba4b3b313f894bfb10c0ed8
import random from itertools import chain from .genes import NeuronGene, ConnectionGene, GeneticEncoding from .specs import NumericParamSpec, NominalParamSpec from .utils import zip_with_probabilities, weighted_random class all_types_in_spec: pass class Mutator: def __init__(self, net_spec, in...
egdman/neat-lite
neat/operators.py
Python
mit
12,806
[ "NEURON" ]
207fdf8a6e5d08dee10e82eb3ed4c2352672223a793748df8deda76871aca348
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # -*- coding: utf-8 -*- # NB: This must be compatible with Python 2.7 and 3.5+. # NB: If you're needing to debug this, an easy way is to just invoke it on a file. # E.g. `MIN_DOTS=1 STRI...
pantsbuild/pants
src/python/pants/backend/python/dependency_inference/scripts/import_parser.py
Python
apache-2.0
7,285
[ "VisIt" ]
959a7de448a8d9cfe1e8772b630be49c98323f2128ad5479b4000025c4c4d8df
# Copyright 2005-2008 by Frank Kauff & Cymon J. Cox. 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. # # Bug reports welcome: fkauff@biologie.uni-kl.de or on Biopython's bugzilla. ...
updownlife/multipleK
dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Nexus/Nexus.py
Python
gpl-2.0
75,559
[ "Biopython" ]
192628ade38d8fbe90fe76c5bd8103035ca9903905a43649d943e303623dc98a
""" # LiveUtils, a collection of simple utility functions for controlling Ableton Live # Copyright (C) 2007 Rob King (rob@e-mu.org) # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation;...
avroshk/VRDAW
VRDAW_working/LiveUtils.py
Python
gpl-3.0
7,775
[ "VisIt" ]
33622babde5b3f030a4623ca250363ec35b3a780ef2b52675183112ae1ae124c
# # Copyright (c) 2016 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yasharmaster/scancode-toolkit
src/packagedcode/__init__.py
Python
apache-2.0
2,414
[ "VisIt" ]
60a539fe9f69c75d568095a45d5cf0c4fdb263a89ce194da3362eae8ea4d2ff7
from __future__ import unicode_literals ''' @author ama@esss.com.br fabioz@esss.com.br ''' # Custom cache for optimization purposes. __bases_cache = {} __hierarchy_cache = {} #=================================================================================================== # AllBasesNames #=====...
Kaniabi/ben10
source/python/ben10/foundation/klass.py
Python
lgpl-2.1
5,644
[ "VTK" ]
442760b0cb9dbe858bc91ef86722dc9d461ffdc78a5398626c643ffacc1fc761
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from typeModules.transformStackClass import transformStackClass import cPickle import fixitk as itk import md5 from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import wx ...
chrisidefix/devide
modules/insight/transformStackRDR.py
Python
bsd-3-clause
3,909
[ "VTK" ]
42dfd56c9f02c0d83996e1fdfd635fee0edb8e1610c222d3dc8c98cdb9e0279e
""" Turbulence ========== Turbulence in the atmosphere affects wave propagation. This module contains implementations of models that can be used to create random turbulence fields. References are made to the book 'Computational Atmospheric Acoustics' by 'Erik M. Salomons', published in 2001. ================ Abs...
FRidh/turbulence
turbulence/turbulence.py
Python
bsd-2-clause
32,642
[ "Gaussian" ]
d69a1e9f362bee7eb4282da1268ce53bffc206fd6d9a9529d452de725e8f659d
# This file is part of the myhdl library, a Python package for using # Python as a Hardware Description Language. # # Copyright (C) 2003-2015 Jan Decaluwe # # The myhdl 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 t...
hgomersall/myhdl
myhdl/conversion/_toVHDL.py
Python
lgpl-2.1
81,164
[ "VisIt" ]
ab53dff3a600fbe077cc0736e84a08d0dc92f31a416e2a3f99b828d603246fc6
#!/usr/bin/env python """ convert output of gamess/GAU$$IAN to ezfio Usage: qp_convert_output_to_ezfio.py <file.out> [--ezfio=<folder.ezfio>] Option: file.out is the file to check (like gamess.out) folder.ezfio is the name you whant for the ezfio (by default is file.out.ezfio) """ import sys im...
eginer/qp_old
quantum_package-master/scripts/ezfio_interface/qp_convert_output_to_ezfio.py
Python
gpl-2.0
7,122
[ "GAMESS" ]
e720ece14e7dddb39579f8441fe428f68c1431a9cdc9c739e86fb1dd99665e63
import os,sys import numpy as np import pandas as pd from tqdm import tqdm from rdkit import Chem from utils import (ohe_label, PAD_ID, remove_salts) max_char_len = 100 min_char_len = 20 data_dir = 'data/compounds' out_file = 'data/features_fp2048.npz' sdf_list = [os.path.join(data_dir,f) for f in os....
kdmarshall/FingerprintDecoder
scripts/featurize_fp.py
Python
mit
1,385
[ "RDKit" ]
01536eea8f2a7a248b41b468a787ea442cdd7d709e934ab68352d233abb73739
import sys import os import numpy import platform from PyQt5.QtWidgets import QApplication from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from orangecontrib.xoppy.util.xoppy_util import locations, XoppyPhysics from orangecontrib.xoppy.util....
srio/Orange-XOPPY
orangecontrib/xoppy/widgets/optics/xcrystal.py
Python
bsd-2-clause
25,209
[ "CRYSTAL" ]
652974f3d4675a9fbdcaf183de311f489b53a011f0adf632ae5b36df5651de52
#!/usr/bin/env python from setuptools import setup, find_packages readme = open('README.rst').read() setup(name='RPLCD', version='0.9.0', description='A Raspberry Pi LCD library for the widely used Hitachi HD44780 controller.', long_description=readme, author='Danilo Bargen', author_ema...
GoranLundberg/RPLCD
setup.py
Python
mit
1,343
[ "CRYSTAL" ]
8b6b0b32a8bc7558999ea186aa3436a227c74d12418ba7d2f8c502a1efb4ee9b
r""" The transient advection-diffusion equation with a given divergence-free advection velocity. Find :math:`u` such that: .. math:: \int_{\Omega} s \pdiff{u}{t} + \int_{\Omega} s \nabla \cdot \left(\ul{v} u \right) + \int_{\Omega} D \nabla s \cdot \nabla u = 0 \;, \quad \forall s \;. View the re...
BubuLK/sfepy
examples/diffusion/time_advection_diffusion.py
Python
bsd-3-clause
1,746
[ "VTK" ]
15d390a507635c4d9408d33b03002722d96f0acbdbe20fe9a4c62c29c713afd2
import datetime from django.db import models, transaction from django.urls import reverse from django_countries.fields import CountryField from workshops.consts import FEE_DETAILS_URL from workshops.mixins import ( AssignmentMixin, COCAgreementMixin, CreatedUpdatedMixin, DataPrivacyAgreementMixin, ...
pbanaszkiewicz/amy
amy/extrequests/models.py
Python
mit
18,981
[ "VisIt" ]
cce356c31c9da4982c0d02a15d0886afb0b662498bd92f2d5636a3a8c943b76e
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals __doc__ = """Code by Benjamin S. Murphy bscott.murphy@gmail.com Dependencies: numpy scipy (scipy.optimize.minimize()) Functions: _adjust_for_anisotropy(X, y...
basaks/PyKrige
pykrige/core.py
Python
bsd-3-clause
20,431
[ "Gaussian" ]
e21abb6eb12f2d32946527ecb2685f3f1c5e66bb7b5faf40f0ea5dace119d6fe
""" Instructor Dashboard Views """ import datetime import logging import uuid from functools import reduce import pytz import six from django.conf import settings from django.contrib.auth.decorators import login_required from django.http import Http404, HttpResponseServerError from django.urls import reverse from dj...
msegado/edx-platform
lms/djangoapps/instructor/views/instructor_dashboard.py
Python
agpl-3.0
33,670
[ "VisIt" ]
7be137ba756b392bbecab0d65c5c54e4f25f5d98b62689ffe0764de4b94d4571