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
""" Distributions ------------- A widget for plotting attribute distributions. """ from math import sqrt import sys import collections from xml.sax.saxutils import escape from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt import numpy import pyqtgraph as pg import Orange.data from Orange.statistics import ...
PythonCharmers/orange3
Orange/widgets/visualize/owdistributions.py
Python
gpl-3.0
24,573
[ "Gaussian" ]
f4e8d7f7d0d49d57d16529e7279204a8147f0ca0a93622883de17374a657361b
# creates: s1.png s2.png s3.png s4.png general_surface.pdf from ase.lattice.surface import surface s1 = surface('Au', (2, 1, 1), 9) s1.center(vacuum=10, axis=2) from ase.lattice import bulk Mobulk = bulk('Mo', 'bcc', a=3.16, cubic=True) s2 = surface(Mobulk, (3, 2, 1), 9) s2.center(vacuum=10, axis=2) a = 4.0 from ase ...
grhawk/ASE
tools/doc/ase/general_surface.py
Python
gpl-2.0
1,214
[ "ASE" ]
d0dc08a2facdbb23ed3d41949ab262f02e74406c9b5c1be78cab31748c558e46
# This component calculates heating and cooling degree hours # # Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Ladybug. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Ladybug is free software; you can ...
samuto/ladybug
src/Ladybug_CDH_HDH.py
Python
gpl-3.0
11,925
[ "EPW" ]
b56ae1595f153e95e826f7fa81748da51a99a6ce25ee5bc9db687988ab3d82de
import os import scipy.stats as ss import sys from add_exp import add_exp import numpy as np from random import shuffle if len(sys.argv) != 6: print('python aseQtl.py [ase file] [date] [snps directory] [n] [ttest/utest]') sys.exit() date = sys.argv[2] cutoff = 1.0 #open ase file and read in aseDict = add_exp(sys.ar...
emjosephs/eQTL
aseQtl.py
Python
mit
3,048
[ "ASE" ]
03182f6ff7a7ed142e3309e682127a29bb5cd844b2edeeef2c4f3cf9db715d9d
#!/usr/bin/env python from __future__ import with_statement, print_function from plumbum import colors with colors.fg.red: print('This is in red') print('This is completly restored, even if an exception is thrown!') print('The library will restore color on exiting automatially.') print(colors.bold["This is bold...
astraw38/plumbum
examples/color.py
Python
mit
756
[ "exciting" ]
3608a1b903f2abf947ee041dad9dea15ec0bed570c3ff39ff66ef3ef297704c8
# rgToolFactory.py # see https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # # copyright ross lazarus (ross stop lazarus at gmail stop com) May 2012 # # all rights reserved # Licensed under the LGPL # suggestions for improvement and bug fixes welcome at https://bitbucket.org/fubar/galaxytoolfactory/wiki/Home # ...
mr-c/tools-iuc
tools/differential_count_models/rgToolFactory.py
Python
mit
28,273
[ "Galaxy" ]
d75a73c1688e1f9a4670cfce55735bdfac7753db06d634d04fdc77829083be83
import numpy as np def compute_ranks(x): """ Returns ranks in [0, len(x)) Note: This is different from scipy.stats.rankdata, which returns ranks in [1, len(x)]. (https://github.com/openai/evolution-strategies-starter/blob/master/es_distributed/es.py) """ assert x.ndim == 1 ranks = np.empty(len(x), dtype=...
google/brain-tokyo-workshop
learntopredict/cartpole/es.py
Python
apache-2.0
18,914
[ "Gaussian" ]
4f55bbb5d98d0623687ff25de5685faafdce020cfbd21aac8c0fc4242f200559
#!/usr/bin/env python ## Copyright (C) 2005-2006 Graham I Cummins ## This program is free software; you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the Free Software ## Foundation; either version 2 of the License, or (at your option) any later version. ##...
gic888/MIEN
parsers/numerical.py
Python
gpl-2.0
7,762
[ "NEURON" ]
e0ed7cae78de74165a0032c24c2c885dde7189b163180d2bde208d8f2320c299
# -*- coding: utf-8 -*- # # Copyright (C) 2014-2015 Bitergia # # 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 ...
pombredanne/Octopus
octopus/backends/docker.py
Python
gpl-3.0
4,587
[ "Octopus" ]
1f7f7784efaac31381e8aae7a831ad03a4e11bd4e6b6bbe10d6808be2a3721ef
# python3 # pylint: disable=g-bad-file-header # Copyright 2021 DeepMind Technologies Limited. 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...
deepmind/enn
enn/losses/vae_losses.py
Python
apache-2.0
4,414
[ "Gaussian" ]
15e779de4297179623ce27d85ac70b794207b49150e903fce932f8888336df3c
from WebAppDIRAC.Lib.WebHandler import WebHandler, WebSocketHandler, WErr, WOK, asyncGen from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC import gConfig, S_OK, S_ERROR, gLogger from DIRAC.Core.Utilities import Time, List, DictCache from DIRAC.Core.Utilities.CFG import CFG from DIRAC.ConfigurationSystem.priv...
atsareg/WebAppDIRAC
WebApp/handler/ConfigurationManagerHandler.py
Python
gpl-3.0
25,623
[ "DIRAC" ]
5e53ed73ef43360a98648d02451a18886f3dd87ede877252f039c0065d07ac4c
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.core import Structure from pymatgen.core.sites import PeriodicSite from pymatgen.analysis.defects.core import Vacancy, Interstitial, Substitution, \ ...
montoyjh/pymatgen
pymatgen/analysis/defects/tests/test_core.py
Python
mit
15,145
[ "pymatgen" ]
0c79239420dc8c9a7c4e6701069ae7edf162826eac3e329b3c0a2c9e667ad60f
# -*- coding: utf-8 -*- """ functions.py - Miscellaneous functions with no other home Copyright 2010 Luke Campagnola Distributed under MIT/X11 license. See license.txt for more infomation. """ from __future__ import division import warnings import numpy as np import decimal, re import ctypes import sys, struct from ...
neurotechuoft/MindType
Code/V1/src/deprecated/pyqtgraph/functions.py
Python
agpl-3.0
91,598
[ "Gaussian" ]
e263a372cfc7ee1533eceafa4e93fc9bc1f9295f97ac20b94ce89028b10a1501
import itertools, operator, math import warnings from .data import * import shapely, shapely.ops, shapely.geometry from shapely.geometry import asShape as geojson2shapely from shapely.prepared import prep as supershapely import pycrs from ._helpers import geodetic_buffer try: zip = itertools.izip except: p...
karimbahgat/PythonGis
pythongis/vector/manager.py
Python
mit
30,070
[ "Bowtie" ]
b32e2807531411ea1b12a15cb2698bbdfc05fba543b7acbdb6a50c2b0478424b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import math import numpy as np from monty.dev import deprecated from pymatgen.core.periodic_table import Element """ Utilities for generating nicer plots. ""...
matk86/pymatgen
pymatgen/util/plotting.py
Python
mit
13,986
[ "pymatgen" ]
78f72f198a3f7872ce376626247eb79b4fac998b096664874605b0722c9bec82
from sklearn.naive_bayes import GaussianNB import random import numpy as np import math from pylab import scatter,figure, clf, plot, xlabel, ylabel, xlim, ylim, title, grid, axes, show,semilogx, semilogy import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties # Generation of data to train t...
JonatanAntoni/CMSIS_5
CMSIS/DSP/Examples/ARM/arm_bayes_example/train.py
Python
apache-2.0
2,149
[ "Gaussian" ]
124863267d1acb19518bde7f46a4f787d901a0db9adce8a0fcb8bb540c1d129c
# Module to run tests on turbulent scattering from __future__ import print_function, absolute_import, division, unicode_literals # TEST_UNICODE_LITERALS import numpy as np import pytest from astropy import units as u from astropy import constants as const from frb.turb_scattering import Turbulence #def data_path(f...
FRBs/DM
frb/tests/test_frbtscatt.py
Python
bsd-3-clause
1,562
[ "Galaxy" ]
9f93c55928c7410f3ed562b7ba9aaba6df196d3843da34bbf5bdec5d75ae7819
from grow.pods.preprocessors import base from protorpc import messages import os class CompilationLevel(messages.Enum): SIMPLE_OPTIMIZATIONS = 1 ADVANCED_OPTIMIZATIONS = 2 WHITESPACE_ONLY = 3 _levels = { CompilationLevel.SIMPLE_OPTIMIZATIONS: 'SIMPLE_OPTIMIZATIONS', CompilationLevel.ADVANCED_OPTIMIZATI...
codedcolors/pygrow
grow/pods/preprocessors/closure_compiler.py
Python
mit
1,998
[ "GULP" ]
9d3359f18483e3f8b84839557a67672343b80c0e60dedea8a4698c10752abe49
######################################################################## # File : DownloadInputData.py # Author : Stuart Paterson ######################################################################## """ The Download Input Data module wraps around the Replica Management components to provide access to datas...
ic-hep/DIRAC
src/DIRAC/WorkloadManagementSystem/Client/DownloadInputData.py
Python
gpl-3.0
16,803
[ "DIRAC" ]
e9f33cc096dbf1f43f5af50c342bba87516f3a51be78d5052de6fcb45deae33e
# -*- coding: utf-8 -*- # Copyright (C) 2019 - 2020 by Pedro Mendes, Rector and Visitors of the # University of Virginia, University of Heidelberg, and University # of Connecticut School of Medicine. # All rights reserved. # Copyright (C) 2017 - 2018 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc.,...
copasi/COPASI
copasi/bindings/python/unittests/Test_CEvent.py
Python
artistic-2.0
2,991
[ "COPASI" ]
2ece2ee9e9462b691285848f8dbcf66a07b195b4c44ffbd215abad0e76668159
""" Acceptance tests for Studio's Settings Details pages """ from datetime import datetime, timedelta from flaky import flaky from nose.plugins.attrib import attr from unittest import skip from common.test.acceptance.fixtures.config import ConfigModelFixture from common.test.acceptance.fixtures.course import CourseFix...
synergeticsedx/deployment-wipro
common/test/acceptance/tests/studio/test_studio_settings_details.py
Python
agpl-3.0
9,999
[ "VisIt" ]
ba9c85bcb6019b63a901fba13bc5fa3d999640f79099dd79908528907c2f94e8
# sql/util.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """High level utilities which build upon other modules here. """ from .. import exc, u...
yelongyu/chihu
venv/lib/python2.7/site-packages/sqlalchemy/sql/util.py
Python
gpl-3.0
20,629
[ "VisIt" ]
1a14e4b729cd50af4b44e47d61848ed22772ea6bbaae20d4926fa0b7c6e47d82
#pylint: disable=invalid-name # # TUBE CALIBRATION DEMONSTRATION PROGRAM - Execute this # # Here we run the calibration of WISH panel03 # We base the ideal tube on one tube of this door. # from __future__ import absolute_import, division, print_function import tube reload(tube) # noqa from tube_spec import TubeSpec i...
dymkowsk/mantid
scripts/Calibration/Examples/TubeCalibDemoWish1.py
Python
gpl-3.0
1,985
[ "Gaussian" ]
e8c4e071263ecf627040ed3aa13b315c706044bc8c6d93888ec2e6ab9228d463
""" An autoindex & strategy rapd_plugin """ __license__ = """ This file is part of RAPD Copyright (C) 2009-2018, Cornell University All rights reserved. RAPD is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundatio...
RAPD/RAPD
src/plugins/index/plugin.py
Python
agpl-3.0
123,799
[ "CRYSTAL" ]
43153dd6e45747abee0722d519af32e3a98902ee4ce0a86ac45fdee3aa92557b
import numpy as np import matplotlib.pyplot as plt import os # enter values from simulation here diffusivity = 2.0 sink_strength = 0.05 mean = 1.2 # mean of EventInserter distribution Lx = 2.0 # length of problem in x Ly = 2.2 # length of problem in y scale = 3.0 # scale of Gaussian source term # postprocessor...
jessecarterMOOSE/PRARIEDOG
examples/ex04_2d_sigma_ratio_adaptivity/plot_concentration.py
Python
lgpl-2.1
812
[ "Gaussian" ]
14dfb7b17e44a241a642bf8d377d0204fa0c57ca14c0e609bcb5c63b107224a7
"""Payload management for sending Ansible files and test content to other systems (VMs, containers).""" from __future__ import (absolute_import, division, print_function) __metaclass__ = type import atexit import os import stat import tarfile import tempfile import time from . import types as t from .config import (...
thnee/ansible
test/lib/ansible_test/_internal/payload.py
Python
gpl-3.0
5,775
[ "Galaxy" ]
61a0b3f2a517d9db8ad6a13f02fd082b2be7fd5f36ea636c85c2dc6b439ed7d9
#import printStatWithName from AZutilities import dataUtilities from AZutilities import paramOptUtilities from trainingMethods import AZorngRF from trainingMethods import AZorngCvSVM import Orange import orange import math import copy import string """ Module for calculation of non conformity scores and the correspond...
JonnaStalring/AZOrange
azorange/AZutilities/TCPMondrian.py
Python
lgpl-3.0
33,237
[ "RDKit" ]
2d167af355f53eec75bd197b527df646ad18b52bb0648742677f7bdc07357e66
import logging import os from galaxy.model.item_attrs import Dictifiable from galaxy.util.bunch import Bunch from galaxy.util import asbool from tool_shed.util import common_util from urlparse import urljoin log = logging.getLogger( __name__ ) class ToolShedRepository( object ): dict_collection_visible_keys = ( ...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/tool_shed_install/__init__.py
Python
gpl-3.0
32,006
[ "Galaxy" ]
529fd8c1737936ea9ef67ede2a1664caa3078d6ec967d989de47929286f9160e
# -*- coding: utf-8 -*- import numpy as np import scipy.special from bokeh.plotting import * mu, sigma = 0, 0.5 # NOTE: you can tinker with these values if you like # sample the distribution measured = np.random.normal(mu, sigma, 1000) hist, edges = np.histogram(measured, density=True, bins=50) # compute idea...
jakevdp/bokeh
sphinx/source/tutorial/solutions/histogram.py
Python
bsd-3-clause
4,424
[ "TINKER" ]
1597f2998c0c6b447a3a132fcc3a2b8b5f03066a0629e4c073c7a9007a207daa
from __future__ import division, absolute_import, print_function import numpy as np from numpy.testing import ( TestCase, run_module_suite, assert_, assert_raises, assert_equal, assert_warns) from numpy import random from numpy.compat import asbytes import sys class TestSeed(TestCase): def test_sc...
naritta/numpy
numpy/random/tests/test_random.py
Python
bsd-3-clause
31,521
[ "Gaussian" ]
e3f84dd06a51ace4c19cae2aaad4daba63351e9bcd99d6e4d51b098ad673e1a1
import json import logging import numpy as np from sklearn.neighbors import NearestNeighbors from sklearn.neighbors.kde import KernelDensity log = logging.getLogger(__name__) def analyze(data): # Convert this to python data for us to be able to run ML algorithms json_to_python = json.loads(data) per_si...
dscrobonia/sawyer
analyzers/response_size_knn.py
Python
mit
2,216
[ "Gaussian" ]
3b6d38f8a59aa1be5dfa7ddead508f835bd8085de9937b97247e5df29b2fc613
# copyright 2003-2013 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of astroid. # # astroid 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 #...
JetChars/vim
vim/bundle/python-mode/pymode/libs/astroid/inspector.py
Python
apache-2.0
9,260
[ "VisIt" ]
8329c2fe8693ba8e5cfb4601b940893eb0519a10fb3c01d6ab1bf19792c0aa89
#!/usr/bin/env python ''' Project: Geothon (https://github.com/MBoustani/Geothon) File: Data Management Tools /netcdf_info.py Description: This code gives geotiff information. Author: Maziyar Boustani (github.com/MBoustani) ''' from netCDF4 import Dataset NETCDF_FILE = "../static_files/netcd...
MBoustani/Geothon
Data Management Tools/netcdf_info.py
Python
apache-2.0
1,544
[ "NetCDF" ]
3e1f9630fc0e0863a3078e05e3ab74d9adf17e4a896fcc8288d915c8f5fc7c1f
"""The suite of window functions.""" import numpy as np from scipy import special, linalg from scipy.fftpack import fft def boxcar(M, sym=True): """The M-point boxcar window. """ return np.ones(M, float) def triang(M, sym=True): """The M-point triangular window. """ if M < 1: retur...
scipy/scipy-svn
scipy/signal/windows.py
Python
bsd-3-clause
12,764
[ "Gaussian" ]
a5eea5a07c5f035fda6c82c7103449c37d9000e3880ebbcb16a85a97c5d6b144
# Copyright 2010-2017, The University of Melbourne # Copyright 2010-2017, Brian May # # This file is part of Karaage. # # Karaage is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License...
brianmay/karaage
karaage/plugins/kgsoftware/templatetags/software.py
Python
gpl-3.0
1,200
[ "Brian" ]
734a9085274efffe1c99b9ba274ef5408887db56b766a4856b41f4f7f670cc20
#!/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...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Modeling/Testing/Python/TestFillHolesFilter.py
Python
gpl-3.0
1,835
[ "VTK" ]
a3709cc2809846d9de9620a75d85bb9f80b622935cdd4bfe04d6109a7ce615ac
""" Holds user settings and various helper objects. """ # Copyright (C) 2011, Thomas Leonard # See the README file for details, or visit http://0install.net. from zeroinstall import _ import os from logging import info, warn import ConfigParser from zeroinstall import zerostore from zeroinstall.injector.model import...
timdiels/zeroinstall
zeroinstall/injector/config.py
Python
lgpl-2.1
4,196
[ "VisIt" ]
9a348c46f44a02358fd52e48a93981d37c4d4f3a6a9c4ef2c582a176d7cd39d7
#Just a copy of the version in python 2.5 to be used if it's not available in jython 2.1 """Simple XML-RPC Server. This module can be used to create simple XML-RPC servers by creating a server and either installing functions, a class instance, or by extending the SimpleXMLRPCServer class. It can also be used to hand...
siosio/intellij-community
python/helpers/pydev/_pydev_imps/_pydev_SimpleXMLRPCServer.py
Python
apache-2.0
21,576
[ "Brian" ]
358aa907882b0dbeacdf818ab37da757c9e7a7f2b88cef562bb64c3b64651a55
# -*- coding: utf-8 -*- """Implementation of execution-related magic functions.""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. import ast import bdb import builtins as builtin_mod import gc import itertools import os import shlex import sys import time import ...
lmregus/Portfolio
python/design_patterns/env/lib/python3.7/site-packages/IPython/core/magics/execution.py
Python
mit
56,470
[ "VisIt" ]
79b6eb6e49ab0f50054c61008fd2675c7f50e9bf13bb1b994b6d745c3d3697d6
#!/usr/bin/python """GUIMiner - graphical frontend to Bitcoin miners. Currently supports: - m0mchil's "poclbm" - puddinpop's "rpcminer" - ufasoft's "bitcoin-miner" Copyright 2011-2012 Chris MacLeod This program is released under the GNU GPL. See LICENSE.txt for details. """ import sys, os, subprocess, errno, re, thr...
dpk9/poclbm
guiminer.py
Python
gpl-3.0
101,317
[ "VisIt" ]
e5630eae9b23ce3f96296a0c7392d76f625f218a8cf87282c3cfcd8d29ff0476
import mock from collections import defaultdict from searx.engines import pdbe from searx.testing import SearxTestCase class TestPdbeEngine(SearxTestCase): def test_request(self): query = 'test_query' dicto = defaultdict(dict) params = pdbe.request(query, dicto) self.assertTrue('ur...
misnyo/searx
tests/unit/engines/test_pdbe.py
Python
agpl-3.0
3,595
[ "CRYSTAL" ]
c242764c30ea904c04ae4786c2826a202851ca56499e6326b050728735bbf17d
# !/usr/bin/python # -*- coding: latin-1 -*- # WAVELET LIBRARY - Based on Torrence and Combo (1998) # author: Mabel Calim Costa # GMAO - INPE # 23/01/2013 import os import sys import math import scipy import scipy.special import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib as mpl impo...
mabelcalim/waipy
lib/waipy/cwt/wavetest.py
Python
bsd-3-clause
23,438
[ "NetCDF" ]
418e118b1b89ecd367f56bf993062307e9f013ecf0d276d4236aa674b34a945a
######################################################################## # $HeadURL$ # File : OARComputingElement.py # Author : M. Sapunov ######################################################################## """ OAR CE interface, via SSH """ from DIRAC.Resources.Computing.SSHComputingElement import SSHComputingEl...
calancha/DIRAC
Resources/Computing/SSHOARComputingElement.py
Python
gpl-3.0
812
[ "DIRAC" ]
82d5b6ce8bcab1638008e53878ed092c880de54c2c13b9269ed95feb9eac813b
""" Module for email related functionality. """ from flask_mail import Message import api mail = None from api.common import check, validate, safe_fail from api.common import WebException, InternalException from voluptuous import Required, Length, Schema from datetime import datetime password_reset_request_schema ...
cganas/picoCTF-web
api/email.py
Python
mit
6,072
[ "VisIt" ]
0c78a470105b0a0523a647e85e00890bc626febb58287d01caac33dac51fd9a3
""" Tests for discussion pages """ import datetime from unittest import skip from uuid import uuid4 from flaky import flaky from nose.plugins.attrib import attr from pytz import UTC from .helpers import BaseDiscussionTestCase from ..helpers import UniqueCourseTest from ...pages.lms.auto_auth import AutoAuthPage from...
MakeHer/edx-platform
common/test/acceptance/tests/discussion/test_discussion.py
Python
agpl-3.0
46,864
[ "VisIt" ]
3341fe85576d911b443d044802fa0dd9a194f92bddacb54046437bb041f7b72e
# -*- coding: utf-8 -*- """Copyright 2015 Roger R Labbe Jr. FilterPy library. http://github.com/rlabbe/filterpy Documentation at: https://filterpy.readthedocs.org Supporting book at: https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python This is licensed under an MIT license. See the readme.MD file for mo...
Censio/filterpy
filterpy/stats/stats.py
Python
mit
9,179
[ "Gaussian" ]
47cecb0fe6c737970d9ddac8bcbc7152f8b7c9aa582428cd838dd3511d5736b4
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 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 #...
psi4/psi4
psi4/driver/util/__init__.py
Python
lgpl-3.0
913
[ "Psi4" ]
23b6c7a708ef3c8ec64541d40db6f89f347bcfcead682c5ea90928ba2e13e0dc
from array import array from math import sqrt import numpy as np from pi_rtvp.util import fullname from pi_rtvp.png import PNGImage import pi_rtvp.matrix as matrix class ImageKernel(object): def __init__(self, name, size, values): self.name = name self.size = size if values.size != size*siz...
circuitfox/csc2300-pi-project
pi_rtvp/kernel.py
Python
mit
4,847
[ "Gaussian" ]
77cde190f431e171cefd14e991c05a2d38e22ae5aa747917ea326f0cb0fabfef
""" Acceptance tests for Studio related to the Pages. """ from common.test.acceptance.tests.studio.base_studio_test import StudioCourseTest from common.test.acceptance.pages.studio.edit_tabs import PagesPage class PagesTest(StudioCourseTest): """ Test that Pages functionality is working properly on studio sid...
jolyonb/edx-platform
common/test/acceptance/tests/studio/test_studio_tabs.py
Python
agpl-3.0
7,511
[ "VisIt" ]
70e1e4a0c247501e62d806110e73dbc53607dff0ae59562bddd2ce17ff6dd75f
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
michaelWagner/oppia
core/domain/email_manager.py
Python
apache-2.0
36,353
[ "VisIt" ]
f40580292a2701da99e8ed4df0396c992fa377ef04729b924bec1e708a50c531
import numpy as np __author__ = 'Allison MacLeay' class DualPerceptron(object): def __init__(self, T=1, kname='dot'): self.T = T self.alphas = None self.w = None self.y = None self.kernel = Kernel(kname) def _add_bias(self, X): bias = np.ones(X.shape[0]) ...
alliemacleay/MachineLearning_CS6140
Homeworks/HW7/DualPerceptron.py
Python
mit
2,837
[ "Gaussian" ]
6996eb70d1949b6cf706f1fcc59f9d7da4bdffa097f506ddfa733d68f93efc38
# coding: utf-8 from __future__ import unicode_literals, division from custodian.custodian import Validator from pymatgen.io.vaspio.vasp_output import Vasprun class VasprunXMLValidator(Validator): """ Checks that a valid vasprun.xml was generated """ def __init__(self): pass def check(...
alberthxf/custodian
custodian/vasp/validators.py
Python
mit
436
[ "pymatgen" ]
b928fe9c04ce92743457f480851f8832cdf5694262ffd44755eeb237c6f994a0
#!/usr/bin/env python import sys import numpy as np try: # Matplotlib is not a dependency import matplotlib as mpl mpl.use('Agg') # force the antigrain backend except (ImportError, RuntimeError): mpl = None from ase.units import Bohr from gpaw.mpi import world, distribute_cpus from gpaw.utilities.to...
ajylee/gpaw-rtxs
gpaw/test/parallel/ut_invops.py
Python
gpl-3.0
19,654
[ "ASE", "GPAW", "Gaussian" ]
ba1d163717ab20421ec40b5a216edd060bfdb675414a5330c5b293456e3cec4a
import os import numpy as np from ase.units import Bohr, Hartree from ase.io.elk import read_elk from ase.calculators.calculator import FileIOCalculator, Parameters, kpts2mp, \ ReadError elk_parameters = { 'swidth': Hartree, } class ELK(FileIOCalculator): command = 'elk > elk.out' implemented_pr...
grhawk/ASE
tools/ase/calculators/elk.py
Python
gpl-2.0
14,256
[ "ASE", "DIRAC", "Elk", "Gaussian" ]
0249d75278a24c9b574c2c3cd72796b1e60c9451e50876e5819def8bf2e21da0
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-talent
tests/unit/gapic/talent_v4beta1/test_tenant_service.py
Python
apache-2.0
95,103
[ "Octopus" ]
febf42e79ca8e2cdb32c03e32ecb45b3df4b93450eb5630bb9c2ee022b9cf6ea
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # create planes # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.SetMultiSamples(0) renWin.AddRenderer(ren1) iren =...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Core/Testing/Python/probeComb.py
Python
gpl-3.0
3,597
[ "VTK" ]
b5e3af07ed0a56f439b2bd39cbcaf0c71527b1d15e0919b3853f34b7b13d74df
#### import the simple module from the paraview from paraview.simple import * renderView1 = GetActiveViewOrCreate('RenderView') body = GetActiveSource() generateSurfaceNormals1 = GenerateSurfaceNormals(Input=body) generateSurfaceNormals1.ComputeCellNormals = 1 cellCenters1 = CellCenters(Input=generateSurfaceNormals1)...
WEC-Sim/WEC-Sim
source/functions/paraview/pressureGlyphs.py
Python
apache-2.0
5,313
[ "ParaView" ]
a2b1b31160d854031c5cc67a4e3f53f306bddf5e9de4a3a3e50a6d3e85ffd246
# Copyright 2008-2010 by Peter Cock. 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. # # This module is for reading and writing IntelliGenetics format files as # SeqRecord object...
BlogomaticProject/Blogomatic
opt/blog-o-matic/usr/lib/python/Bio/SeqIO/IgIO.py
Python
gpl-2.0
3,718
[ "Biopython" ]
d875c58be66ec0c0c4b911698292a63db8bd964ab7cf484403a6e9d50cac5340
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2016 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
crisely09/horton
horton/io/molden.py
Python
gpl-3.0
22,362
[ "Gaussian", "ORCA", "Psi4" ]
b9aa84442841bb47e660ba5d848d77db72b3f9f148b07bc8943fc92b71d5edba
from __future__ import absolute_import from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractBaseUser, UserManager, \ PermissionsMixin from django.dispatch import receiver from zerver.lib.cache import cache_with_key, flush_user_profile, flush_realm, \ user...
atomic-labs/zulip
zerver/models.py
Python
apache-2.0
50,049
[ "VisIt" ]
ff71c7763dbeb2aa2b018874b5f37094a919cd8e84af2cbccdeb6ffbf89bd1a3
from unittest import skipUnless from bok_choy.web_app_test import WebAppTest from acceptance_tests import ENABLE_OAUTH_TESTS from acceptance_tests.mixins import LoginMixin from acceptance_tests.pages import LoginPage @skipUnless(ENABLE_OAUTH_TESTS, 'OAuth tests are not enabled.') class OAuth2FlowTests(LoginMixin, W...
Stanford-Online/edx-analytics-dashboard
acceptance_tests/test_auth.py
Python
agpl-3.0
1,143
[ "VisIt" ]
660732681938f7e35f0c822465a741a94e7c8f802c224224b8c88c464e8e2dde
import numpy as np import loudness as ln class BinauralInhibitionMG2007: def __init__(self, cams): nFilters = cams.size camStep = cams[1] - cams[0] g = np.arange(nFilters) * camStep gaussian = np.exp(-(0.08 * g) ** 2) self.fullGaussian = np.hstack((gaussian[::-1], gaussi...
deeuu/loudness
python/tests/test_BinauralInhibitionMG2007.py
Python
gpl-3.0
2,409
[ "Gaussian" ]
af2bb5ec7f64774e78cf8cd11fbf93ea41ffa1a538f65fbca888f55fe299a0ad
''' Tests for netcdf ''' from __future__ import division, print_function, absolute_import import os from os.path import join as pjoin, dirname import shutil import tempfile import warnings from io import BytesIO from glob import glob from contextlib import contextmanager import numpy as np from numpy.testing import (...
jlcarmic/producthunt_simulator
venv/lib/python2.7/site-packages/scipy/io/tests/test_netcdf.py
Python
mit
10,833
[ "NetCDF" ]
b53f0623c3eeb08d10b6ada41c706f4560bf12e870728aa43a651c7e21fbb1ef
# -*- coding: utf-8 -*- """Infrared intensities""" import pickle from math import sin, pi, sqrt, exp, log from sys import stdout import numpy as np import ase.units as units from ase.io.trajectory import PickleTrajectory from ase.parallel import rank, barrier, parprint, paropen from ase.vibrations import Vibration...
grhawk/ASE
tools/ase/infrared.py
Python
gpl-2.0
14,059
[ "ASE", "Gaussian", "SIESTA", "VASP" ]
3b922987625c98bb8b71136ad60c7ee2db370728e1b41dbcdc9af2b4fe434fb7
#!/home/rbdavid/bin/python # ---------------------------------------- # USAGE: # ./rmsd.ref.py config_file # ---------------------------------------- # PREAMBLE: import sys import importlib import numpy as np import MDAnalysis config_file = sys.argv[1] # ---------------------------------------- # FUNCTIONS: nece...
rbdavid/RMSD_analyses
Basic_RMSD/rmsd.ref.py
Python
gpl-3.0
6,702
[ "MDAnalysis" ]
e60c5c192017a5d60cb8bc0827a733f440c6accca9adb51cfa5f60deeaa6452b
from sqlalchemy import and_ from sqlalchemy import bindparam from sqlalchemy import case from sqlalchemy import Column from sqlalchemy import exc from sqlalchemy import extract from sqlalchemy import ForeignKey from sqlalchemy import func from sqlalchemy import Integer from sqlalchemy import literal from sqlalchemy imp...
graingert/sqlalchemy
test/sql/test_external_traversal.py
Python
mit
73,475
[ "ADF", "VisIt" ]
42c26e1f2aa503c0e7e4ed1bd7ed736f8e0c081b59c94868813ddff308d25167
# # 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) 2012-2013 Esteban Tovagliari, Jupiter Jazz Limited # Copyright (c) 2014-2017 Esteban Tovagliari, The appleseedhq Organization # # P...
aiivashchenko/appleseed
sandbox/samples/python/basic/basic.py
Python
mit
11,762
[ "VisIt" ]
95b3c41848062ede58ee474e72c0fe223e707bbb081651b1d865075b586b9432
"""Collection of functions to visualize generated samples.""" # Imports import numpy as np import numpy.linalg as LA import matplotlib.pyplot as plt # Local imports import data_transforms import McNeuron import batch_utils def plot_example_neuron_from_parent(X_locations, X_parent): """ Show an example neur...
RoozbehFarhoodi/McNeuron
plot_utils.py
Python
mit
2,731
[ "NEURON" ]
d7512485fc8698c8e457027bb2f99899fe79e9843ef926f756b9cac4011c5ec6
#!/usr/bin/env python """pyhdf: Python interface to the NCSA HDF4 library. The pyhdf package wraps the functionality of the NCSA HDF version 4 library inside a Python OOP framework. The SD (scientific dataset), VS (Vdata) and V (Vgroup) APIs are currently implemented. SD datasets are read/written through numpy arrays...
fhs/python-hdf4
setup.py
Python
mit
5,088
[ "NetCDF" ]
bacae9218c82446e576571fe0d4559980c96e243466b227f63d78bf56a665917
import os from rdkit import Chem from rdkit_fixer import (PreparePDBMol, ExtractPocketAndLigand, AtomListToSubMol) test_data_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'test_data') class BenchRdkitFixer(ob...
mkukielka/oddt
asv_bench/benchmarks/rdkit_fixer.py
Python
bsd-3-clause
1,003
[ "RDKit" ]
d8f05ce7c4aab7b831dbe1107d86f1cf1dbb0806f130650a4bc8418d0a3e07e0
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2008, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
anksp21/Community-Zenpacks
ZenPacks.BlakeDrager.fping/setup.py
Python
gpl-2.0
3,274
[ "VisIt" ]
cdce005d1ad9bad24765165069a70979a40d80099d98f8a7375a2b31082e810a
#!/usr/bin/env python import argparse, sys from argparse import RawTextHelpFormatter import pysam __author__ = "Author (email@site.com)" __version__ = "$Revision: 0.0.1 $" __date__ = "$Date: 2013-05-09 14:31 $" # -------------------------------------- # define functions def get_args(): parser = argparse.Argumen...
cc2qe/bamkit
bamcleanheader.py
Python
mit
4,109
[ "pysam" ]
8d5f1fb37aee41a5edfe45a49fec9e8b493b7be1af269a1454a61d969fef6080
#!/usr/bin/env python """ Compliance Checker """ import csv import itertools import pprint import re import sys import warnings from collections import defaultdict from functools import wraps from io import StringIO import validators from lxml import etree from netCDF4 import Dataset from owslib.namespaces import N...
ocefpaf/compliance-checker
compliance_checker/base.py
Python
apache-2.0
19,571
[ "NetCDF" ]
01585a23e0b5f37a05ae7d5dd7c64459ea1595adfe5dfcf093d4dd1076303d7e
# Orca # # Copyright 2005-2009 Sun Microsystems Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/braille.py
Python
gpl-3.0
63,374
[ "ORCA" ]
b439a453c7b8fd4c138e5f8e14c21059a808af109c4a7c468e21aff38e9b909b
import numpy as np def prep_single(data): return map(lambda x: {'x':x[0], 'y':x[1]}, zip(*data)) def prep_multi(events, key='V_m'): values = np.array(events[key]).reshape(-1,np.unique(events['senders']).size).tolist() times = np.unique(events['times']) data = map(lambda i: {'x': times[i], 'y':values[i...
babsey/nest-webapp
lib/helpers.py
Python
mit
702
[ "NEURON" ]
e8a27b21db4ed45722d3bb96e09bc91ca57bddcda236a61559bd25535df969a8
#!/usr/bin/env python # standard library import os import json import shutil import distutils import distutils.dir_util import webbrowser # external from sympy.physics.mechanics import ReferenceFrame, Point # local from .camera import PerspectiveCamera from .server import Server from .light import PointLight __all_...
nouiz/pydy
pydy/viz/scene.py
Python
bsd-3-clause
15,511
[ "VisIt" ]
2321470a63e103ae13f1a334b255f7441c6a7c45e5cd42b2b9738eb47672ae24
# -*- coding: utf-8 -*- import copy import datetime import json import os from email.utils import formataddr from django.conf import settings from django.core import mail from django.urls import reverse from unittest import mock import pytest from waffle.testutils import override_switch from olympia import amo fro...
bqbn/addons-server
src/olympia/activity/tests/test_utils.py
Python
bsd-3-clause
27,810
[ "VisIt" ]
c0d3dc144b379f5e0441afa8c5d4e6e2754dff0d3a91aeab0891b63cb32ff203
from __future__ import unicode_literals import sys import os import warnings import ruamel.yaml as yaml __author__ = "Pymatgen Development Team" __email__ ="pymatgen@googlegroups.com" __maintainer__ = "Shyue Ping Ong" __maintainer_email__ ="shyuep@gmail.com" __version__ = "2017.12.30" SETTINGS_FILE = os.path.join(o...
johnson1228/pymatgen
pymatgen/__init__.py
Python
mit
2,749
[ "CRYSTAL", "pymatgen" ]
eee97701938a27c7915ecf484a79d787f816b3a80068e813131aba71769f22ca
""" Module to set up run time parameters for Clawpack. The values set in the function setrun are then written out to data files that will be read in by the Fortran code. """ import os import numpy as np #------------------------------ def setrun(claw_pkg='amrclaw'): #------------------------------ ""...
clawpack/adjoint
examples/acoustics_2d_radial_timepoint/adjoint/setrun.py
Python
bsd-2-clause
11,213
[ "NetCDF" ]
e5c5d654f5c9a967d19c5666bc36a62ccfb7a168f9b167dc2975accad6817392
# -*- coding: utf-8 -*- # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2003-2005 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # # 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 Fr...
Forage/Gramps
gramps/plugins/rel/rel_pl.py
Python
gpl-2.0
33,717
[ "Brian" ]
2a507cf129605d226433d4018dbd0580b01add407a4166fdfaa573f3c5d08207
# Sample Runs of analyzeStructure3D module. import pymatgen as mg from analyzeStructure3D import analyzePerovskite3D from analyzeStructure3D import makePerovskite3D # Make poscar structures. poscar_01 = mg.Structure.from_file('POSCAR_01') poscar_03 = mg.Structure.from_file('POSCAR_03') # Run analyzePerovskite3D ...
ornl-abinitio/codesScripts
ramScripts/analyzePerovskiteRunSample.py
Python
lgpl-2.1
2,340
[ "pymatgen" ]
efa8fe2e63af52b74a1fcedd98aeb0efe3984efc41141dbc62d1a14591d47f71
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # skeleton of an AUI-based viewer module # copy and modify for your own purposes. # set to False for 3D viewer, True for 2D image viewer IMAGE_VIEWER = True MATCH_MODE_PASSTHROUGH = 0 MATCH_MODE_LANDMARK_SS = 1 MATCH_MODE_...
nagyistoce/devide
modules/viewers/CoMedI.py
Python
bsd-3-clause
16,717
[ "VTK" ]
719cac71e2e9fabd4b2428b71222ce38634049bcb665eab93a1720b088cc9da5
# coding: utf-8 """ Copyright (C) 2019, Timothy A. Davis, Nikki Zabel, James M. Dawson E-mail: DavisT -at- cardiff.ac.uk, zabelnj -at- cardiff.ac.uk, dawsonj5 -at- cardiff.ac.uk Updated versions of the software are available through github: https://github.com/TimothyADavis/KinMSpy If you have found this software usefu...
TimothyADavis/KinMSpy
kinms/utils/KinMS_figures.py
Python
mit
13,307
[ "Gaussian" ]
c52dd6cfb72b2a343cfb3f01b8617e974ffdc64d9767268b3519ea1c5720b787
# -*- coding: utf-8 -*- #------------------------------------------------------------ # pelisalacarta - XBMC Plugin # Canal para oranline # http://blog.tvalacarta.info/plugin-xbmc/pelisalacarta/ #------------------------------------------------------------ import urlparse,urllib2,urllib,re import os, sys from core imp...
CarlosCondor/pelisalacarta-xbmc-plus
pelisalacarta/channels/oranline.py
Python
gpl-3.0
19,523
[ "ADF" ]
394fadb000b87c4b1a3f38b71cdc698404aa4ac8f2f3a24b499feb878276ab6f
from expression import * import visitor __all__ = ["Printer","LatexPrinter"] class Printer(visitor.visitor_class()): def __init__(self,S): self.S = S def format_name(self,name): return name def register_printer(self,expr,printer): self.dispatcher.register_target(expr,printer) ...
TheLartians/Expresso
expresso/printer.py
Python
mit
5,479
[ "VisIt" ]
a311c413b18b80255b733bafcc78e7717df7782f6e52bc178f0b2bb14c23dec4
""" Test some properties of the netCDF4 library. """ import time from datetime import datetime from unittest import TestCase import netCDF4 import numpy class NetCDF4Test(TestCase): def test_num2date(self): # From Precip # ----------- self.assertEqual(datetime(1987, 1, 1, 0, 0), ...
CAB-LAB/cablab-core
test/test_netcdf4.py
Python
gpl-3.0
8,032
[ "NetCDF" ]
3f703a01b817b6b1f597b1da6f86946531f930e354a5273a38892ea3711f41d6
# This test calculates the force on the atoms in a hydrogen chain, comparing # the results to finite-difference values. # # The reference result is obtained from an FD calculation, which can be rerun # by setting the fd boolean below. # # The purpose is to test domain decomposition with large cells. The basis # functi...
qsnake/gpaw
gpaw/test/lcao_largecellforce.py
Python
gpl-3.0
1,949
[ "ASE", "GPAW" ]
cd93545e86bb56dde780b6d35c2db65098003024e804e43b4f2590834c58c0aa
#! /usr/bin/env python # -*- coding: iso-8859-1 -*- """ crypto.cipher.icedoll_test Tests for icedoll encryption algorithm Copyright © (c) 2002 by Paul A. Lambert Read LICENSE.txt for license information. """ from crypto.cipher.icedoll import Icedoll from crypto.cipher.base import noPadding ...
dknlght/dkodi
src/script.module.cryptopy/lib/crypto/cipher/icedoll_test.py
Python
gpl-2.0
4,014
[ "Brian" ]
c0672499b4e18213e94dc92c39b3ca5f16cc7256f321511faf8c8cfdf6b574f9
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/tests/exodus_tab/test_ContourPlugin.py
Python
lgpl-2.1
8,634
[ "MOOSE", "VTK" ]
dad2c49a822716f47fcbaf9f2236d059452dba2d2b7cbb5446b31d4161e319f7
#!/usr/bin/env python # coding: utf-8 """ :module:`openquake.sub.slab.rupture` """ import os import re import sys import h5py import numpy as np import rtree import logging import configparser # from mayavi import mlab from pyproj import Proj # from openquake.sub.plotting.tools import plot_mesh # from openquake.su...
GEMScienceTools/oq-subduction
openquake/sub/slab/rupture.py
Python
agpl-3.0
24,782
[ "Gaussian", "Mayavi" ]
42da59dee8f58caf09cc66f8ba500cb9b835497ab63e3937093c0f269fa6049b
# -*- 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 publ...
thica/ORCA-Remote
src/ORCA/download/RepManagerEntry.py
Python
gpl-3.0
3,339
[ "ORCA" ]
fe2a9da0ba68fb059e514e02de06b1db07599e1658cb49b77c3d3cf169a952cf
""" Tools for storing data cube tiles """ import inspect import os from .geotiff import GeoTIFFStore from .vrt import VRT STORAGE_TYPES = { 'GeoTIFF': GeoTIFFStore, # TODO: 'NetCDF': NetCDFStore } __all__ = [ 'GeoTIFFStore', 'VRT' ] def destination_path(config, tile, product, root_override=None): ...
ceholden/landsat_tiles
tilezilla/stores/__init__.py
Python
bsd-3-clause
1,008
[ "NetCDF" ]
8b417ce03e77b9df70b4a350b014e946fe4fb55488473b282057c3716531f94c
"""Iconos y pixmap usados en el programa""" from PyQt4 import QtGui f = open("./IntFiles/Iconos.bin","rb") binIconos = f.read() f.close() def icono(name): return eval( "%s()"%name ) def pixmap(name): return eval( "pm%s()"%name ) def PM(desde, hasta): pm = QtGui.QPixmap() pm.loadFromData( binIcono...
lukasmonk/lucaschess
Code/QT/Iconos.py
Python
gpl-2.0
43,242
[ "MOOSE" ]
d1015864ed7f306500e1b7a397069c3009ae0ab02af1e4eade4c65233e2097d2
""" Views related to the Custom Courses feature. """ import csv import datetime import functools import json import logging import pytz from copy import deepcopy from cStringIO import StringIO from django.conf import settings from django.core.urlresolvers import reverse from django.http import ( HttpResponse, ...
ampax/edx-platform
lms/djangoapps/ccx/views.py
Python
agpl-3.0
20,762
[ "VisIt" ]
360c16e2b25770cf0d42b65ff95ff42fa52f14bec2f24b7d709f7ed9b83f0f38
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/gto/pp_int.py
Python
apache-2.0
2,653
[ "PySCF" ]
005d007ac209d1f0ff306584f3ba55effee0d2cea4e31c6875b20be73cfab2b0
# Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. import zeroinstall import os from zeroinstall import _ from zeroinstall.support import tasks, unicode from zeroinstall.injector.model import Interface, Feed, stable, testing, developer, stability_levels from zeroinsta...
linuxmidhun/0install
zeroinstall/gui/properties.py
Python
lgpl-2.1
18,460
[ "VisIt" ]
33dfb771ae607349c2faed0c91f2e3b0141709b416b06c17abe2ddad354ab173
# -*- coding: utf-8 -*- """ pygments.lexers._vim_builtins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This file is autogenerated by scripts/get_vimkw.py :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ # Split up in multiple functions so it's import...
wandb/client
wandb/vendor/pygments/lexers/_vim_builtins.py
Python
mit
57,090
[ "BLAST" ]
988600970cdfebced447ca0f718eb2e3c1fe0634f23cd0f1d681e245ce70072c
#!/usr/bin/env python ######################################################################## # $Header: $ ######################################################################## __RCSID__ = "$Id$" from DIRAC import exit as DIRACExit from DIRAC.Core.Base import Script Script.setUsageMessage( """ Remove th...
Sbalbp/DIRAC
DataManagementSystem/scripts/dirac-dms-remove-catalog-replicas.py
Python
gpl-3.0
1,490
[ "DIRAC" ]
6b5ca878bff42f87cc6e3cbcfc2aacd39ea37c74bc3345b097abf1f23df01c34
#!/usr/bin python # -*- coding: utf-8 -*- from __future__ import print_function from utils import gauss_1d, gauss_2d_isotropic, gauss_2d_anisotropic import numpy as np import warnings import math try: from scipy.special import erf from scipy.optimize import leastsq is_scipy = True except ImportError: w...
ipashchenko/uvmod
uvmod/stats.py
Python
mit
19,146
[ "Gaussian" ]
77694ab91de3a01935a7a1ef1d9c3b29174a816f640370bd85f03acd4f0e98cc
######################################################################## # $HeadURL$ # File: TransferDB.py ######################################################################## """ :mod: TransferDB ================ TransferDB is a front end to the TransferDB mysql database, built on top of RequestDB. ...
avedaee/DIRAC
DataManagementSystem/DB/TransferDB.py
Python
gpl-3.0
71,822
[ "DIRAC" ]
718b082067896a79d8f2dbf4e0bcf97119fabedb138252a16fcff5126bdd0f60