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
""" Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1. AUTHORS The original version of this software, called LMFIT, was written in FORTRAN as part of the MINPACK-1 package by XXX. Craig Markwardt converted the FORTRAN code to IDL. The information for the IDL version is: ...
crpurcell/RM-tools
RMutils/mpfit.py
Python
mit
78,910
[ "Gaussian" ]
59ef2deab65f7495e506ba512cd07c56ab5b665724be396d2c93d1b7afe5c434
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...
nelsonsar/ansible
lib/ansible/template/safe_eval.py
Python
gpl-3.0
4,361
[ "VisIt" ]
544d7646f9231af80fc9a10230d712bd325e81d76bfce1c4683060823761c44d
# (c) 2015, Brian Coca <briancoca+dev@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later v...
majidaldo/ansible
v2/ansible/plugins/action/patch.py
Python
gpl-3.0
2,390
[ "Brian" ]
0d712f0f1fcc9b2585bc541766a0760f64be668f8a9132359efe05fe70824533
import os from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-blastplus', version='3.0.0', packages=['blastplus'], ...
michal-stuglik/django-blastplus
setup.py
Python
mit
1,180
[ "BLAST" ]
4f0a498c7011ee439085cc53938e1e76fbf8f2e1aab60da8290914bfd31ee9fb
from __future__ import print_function import sys, os, os.path, time, errno, psutil import csv from subprocess import call import multiprocessing import optparse time_init = time.strftime("%Y%m%d_%H%M%S") pyDir = os.path.dirname(os.path.abspath(__file__)) #python file location inputDir = os.path.join(pyDir, 'data_inpu...
hstau/covar-cryo
covariance/ManifoldEM_GUI.py
Python
gpl-2.0
452,414
[ "Gaussian", "Mayavi", "VisIt" ]
0f8717e4b66af3da36aa9b646267c39fb332853a78ff7bf63ece795d80432d60
# coding=utf-8 # Copyright 2022 RigL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
google-research/rigl
rigl/experimental/jax/pruning/masked.py
Python
apache-2.0
27,027
[ "NEURON" ]
744bb1a62aa52959e3bc7b3effdaa2cd630062c4429daffdbd4e1f7abde03bbf
from ase.atoms import Atoms from ase.quaternions import Quaternions from ase.parallel import paropen import numpy as np """ This could be later merged with ase.io.lammps """ def read_lammps_dump(fileobj, index=-1): """Method which reads a LAMMPS dump file.""" if isinstance(fileobj, str): f = paropen(fileobj) els...
csmm/multiase
multiasecalc/lammps/io/lammps.py
Python
gpl-2.0
3,874
[ "ASE", "LAMMPS" ]
3337c821cc8b731ca28aa8b452fc754f61308d9a0e54ec3d64a643f445e8f7b2
# 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. """ A collection of routines which create standard Cubes for test purposes. """ from datetime import datetime import os.path ...
pp-mo/iris
lib/iris/tests/stock/__init__.py
Python
lgpl-3.0
24,244
[ "NetCDF" ]
7986e38e301e1e834b96ccb5f123290c0bde67cbdd4bfeb550a44330d759b034
#!/usr/bin/env python # BSD Licence # Copyright (c) 2011, Science & Technology Facilities Council (STFC) # All rights reserved. # # See the LICENSE file in the source distribution of this software for # the full license text. """ Execute a programme that makes NetCDF-API OPeNDAP calls, capturing request events and timi...
cedadev/dapbench
dapbench/record_dap.py
Python
bsd-3-clause
4,715
[ "NetCDF" ]
ac2b079bd21eba403e271f4d4111055d52bba9c9b17f0f5cc867be450996c0eb
# pylint: disable=invalid-name,no-init,too-many-arguments,too-many-branches, unused-variable,too-many-return-statements # This script creates numerous PeaksWorkspaces for different Crystal Types and Centerings. Random errors # are also introduced into the peak's. Each PeaksWorkspace is sent through the algorithm's Fin...
ScreamingUdder/mantid
Testing/SystemTests/tests/analysis/Peak2ConvCell_Test.py
Python
gpl-3.0
34,919
[ "CRYSTAL" ]
e199154a13e8f87eebebfa82f873a52cecb0e3405d11adff6d257b05a81de6ac
# -*- coding: utf-8 -*- # vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4 ############################################################################### # OpenLP - Open Source Lyrics Projection # # ------------------------------------------------------...
marmyshev/item_title
openlp/core/ui/servicenoteform.py
Python
gpl-2.0
3,935
[ "Brian" ]
4f6dd141ca35faaf857a528547a9ed474e98eae3879c190415b0d86b87990163
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. '''Collections of messages and their translations, called cliques. Also collections of cliques (uber-cliques). ''' import re impo...
heke123/chromium-crosswalk
tools/grit/grit/clique.py
Python
bsd-3-clause
18,007
[ "xTB" ]
4f09f28fe0e612fa587c7f95e1ba0ebe892ef7903f1da039c35ab6b54a825099
from __future__ import division import numpy as np from numpy.testing import TestCase, assert_almost_equal from numpy.testing.decorators import slow from utils import assert_within_tol, run_module_suite from skmonaco import mcquad HALF_ROOT_PI = 0.5*np.sqrt(np.pi) class TestMCQuad(TestCase): """ The expect...
scikit-monaco/scikit-monaco
skmonaco/tests/test_uniform.py
Python
bsd-3-clause
10,829
[ "Gaussian" ]
101dcab215f0f480f876c9bd496f7e3d3d460bb33da4e3d845af893eb452bae2
# # @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/p4util/numpy_helper.py
Python
lgpl-3.0
17,062
[ "Psi4" ]
46af7fb95dc23def2ef64fdce31c60d0b7afd66bcb556d9406d3fa576bf46cd5
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
chenc10/Spark-PAF
python/pyspark/mllib/clustering.py
Python
apache-2.0
29,266
[ "Gaussian" ]
0c811da26bfcb8352c2c8963d9f671d3ab0668f7880ba70d70d17a34237f8ab1
#!/usr/bin/python # -*- coding: utf-8 -*- import datetime import hashlib import random from CTFd import create_app from CTFd.models import Teams, Solves, Challenges, WrongKeys, Keys, Files, Awards app = create_app() USER_AMOUNT = 50 CHAL_AMOUNT = 20 AWARDS_AMOUNT = 5 categories = [ 'Exploitation', 'Reversi...
liam-middlebrook/CTFd
populate.py
Python
apache-2.0
15,678
[ "Amber", "Brian", "CRYSTAL" ]
3d53483dcb5fdb5a8dab896a7b1f614e4b4b859c383a9205f6478fff34a00bc5
# -*- coding: utf-8 -*- """ equip.instrument ~~~~~~~~~~~~~~~~ Main interface to handle the instrumentation and run the visitors. :copyright: (c) 2014 by Romain Gaucher (@rgaucher) :license: Apache 2, see LICENSE for more details. """ from .prog import Program from .bytecode import BytecodeObject from .visit...
neuroo/equip
equip/instrument.py
Python
apache-2.0
6,703
[ "VisIt" ]
7d6302575eb18005720e82b0bbab227ffd6247b905ab3673951edf0004f1fd2c
import numpy as np import vtk from vtky.BaseArray import BaseArray class DoubleArray(BaseArray): def __init__(self, array=np.array([])): super(DoubleArray, self).__init__(array, vtk.VTK_DOUBLE) class FloatArray(BaseArray): def __init__(self, array=np.array([])): super(FloatArray, self).__ini...
marcelotrevisani/vtky
vtky/DataArray.py
Python
mit
1,844
[ "VTK" ]
f0b6eb9763348f24129c65268cb7634c071a9a96102cdfb2ab1b56de65f47260
import vtk, qt, slicer from .Effect import AbstractEffect import WarpDrive class AbstractPointerEffect(AbstractEffect): def __init__(self, sliceWidget): AbstractEffect.__init__(self, sliceWidget) self.parameterNode = WarpDrive.WarpDriveLogic().getParameterNode() self.previousVisibleIDs = vtk.vtkIdList...
andreashorn/lead_dbs
ext_libs/SlicerNetstim/WarpDrive/WarpDriveLib/Effects/PointerEffect.py
Python
gpl-3.0
3,117
[ "VTK" ]
931d43fb8c13aafc3518d9be111f5bbc562eace0e0e8631de1e44c85fcf5194e
from synapse.tests.common import * import synapse.tools.autodoc as s_autodoc class TestAutoDoc(SynTest): def test_tools_autodoc(self): with self.getTestDir() as path: save = os.path.join(path, 'model.rst') outp = self.getTestOutp() argv = ['--doc-model', '--savefile'...
vivisect/synapse
synapse/tests/test_tools_autodoc.py
Python
apache-2.0
1,425
[ "NEURON" ]
46ff8ec413cbe3dbb01cc6613a449f03badfd01c127986aedba2f3a252bfa03c
# 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, software # distribu...
quantumlib/OpenFermion
src/openfermion/__init__.py
Python
apache-2.0
10,661
[ "VisIt" ]
714fce92dd2d446d41bb96c5d89e2675201a2b97d6e44265a7d0fdde0d9a26b4
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/r-alpine/package.py
Python
lgpl-2.1
2,390
[ "Bioconductor" ]
4a9d4bfda131c0bfacd85e1ebd4febaeb286e232e9da6fbdb8743aa0a9674079
# -*- coding: utf-8 -*- # # Copyright (c) 2017, the cclib development team # # This file is part of cclib (http://cclib.github.io) and is distributed under # the terms of the BSD 3-Clause License. """A writer for chemical JSON (CJSON) files.""" import os.path import json import numpy as np from cclib.io import filew...
langner/cclib
cclib/io/cjsonwriter.py
Python
bsd-3-clause
9,748
[ "Open Babel", "cclib" ]
30470c875f486bb361558b09f8252e4132ab1ecef285ca356ad449df0c799604
# ============================================================================ # # Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved. # www.conceptive.be / project-camelot@conceptive.be # # This file is part of the Camelot Library. # # This file may be used under the terms of the GNU General...
kurtraschke/camelot
camelot/view/controls/editors/codeeditor.py
Python
gpl-2.0
3,851
[ "VisIt" ]
008131fd96368d4d1873499633f8d1eee8545a6e60b63f147606f09bd301261d
# $HeadURL$ __RCSID__ = "$Id$" import time import copy import os.path import GSI from DIRAC.Core.Utilities.ReturnValues import S_ERROR, S_OK from DIRAC.Core.Utilities.Network import checkHostsMatch from DIRAC.Core.Utilities.LockRing import LockRing from DIRAC.Core.Security import Locations from DIRAC.Core.Security.X50...
arrabito/DIRAC
Core/DISET/private/Transports/SSL/SocketInfo.py
Python
gpl-3.0
13,473
[ "DIRAC" ]
56a185201db08713b4801b39b5c6ec31a52799d90c522a1d0fe403bc86cd2ae9
#!/usr/bin/env python2 # # Copyright (C) 2013-2017(H) # Max Planck Institute for Polymer Research # # 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,...
kkreis/espressopp
testsuite/python_tools/io/test_python_tools_io.py
Python
gpl-3.0
4,075
[ "ESPResSo" ]
a0941c11f961b9140377010dca80c0c51f0092559ee6f25e3dfe93f74cad9e2c
#!/usr/bin/env python # *- coding: utf-8 -*- # vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 textwidth=79: """ [License: GNU General Public License v3 (GPLv3)] This file is part of Dr. Disco. FuMa is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
yhoogstrate/dr-disco
tests/test_drdisco_bam-extract.py
Python
gpl-3.0
4,995
[ "pysam" ]
2ae5225c57f768324693d0f18b3d6e5579536bdcedfd043e9dd0b243f8663413
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import re import django.contrib.auth.models import galaxy.main.mixins import django.utils.timezone import django.core.validators class Migration(migrations.Migration): dependencies = [ ('auth', '0006...
chouseknecht/galaxy
galaxy/accounts/migrations/0001_initial.py
Python
apache-2.0
2,990
[ "Galaxy" ]
e9ac624594e7bd515cf48d71d42048dbc7d77d6d281e633c63a2acae83caf0e9
# -*- coding: utf-8 -*- """ End-to-end tests related to the cohort management on the LMS Instructor Dashboard """ from datetime import datetime from pytz import UTC, utc from bok_choy.promise import EmptyPromise from nose.plugins.attrib import attr from .helpers import CohortTestMixin from ..helpers import UniqueCour...
IndonesiaX/edx-platform
common/test/acceptance/tests/discussion/test_cohort_management.py
Python
agpl-3.0
54,443
[ "VisIt" ]
14bf75963addb1d9d39e33c4846c03aa4c237e9c5155425bf4f3a95de1edf59b
""" utilities """ import functools import io from collections import namedtuple from contextlib import contextmanager from datetime import datetime from pathlib import Path from typing import Dict, Generator, Optional, Union from typing.io import BinaryIO from urllib.parse import urlparse import pandas as pd import...
pyoceans/erddapy
erddapy/utilities.py
Python
bsd-3-clause
4,106
[ "NetCDF" ]
52127d1a6e4926800ae4c3741efcbc1b84f2b653bb2a79f0c2e3e959f88cc8be
#!/usr/bin/env python # -*- coding: utf-8 -*- # QUANTCONNECT.COM - Democratizing Finance, Empowering Individuals. # Lean Algorithmic Trading Engine v2.0. Copyright 2014 QuantConnect Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with th...
kaffeebrauer/Lean
setup.py
Python
apache-2.0
7,158
[ "VisIt" ]
37f4466bbd1436e5d5791f193d7d13cc34eb8298cfb693a1a27a365b85fba245
import topo import param import imagen from topo import projection, responsefn, learningfn, transferfn, sheet, sparse import topo.learningfn.optimized import topo.transferfn.optimized import topo.responsefn.optimized import topo.sheet.optimized import topo.transferfn.misc from topo.submodel import Model, ArraySpec, o...
Tasignotas/topographica_mirror
topo/submodel/gcal.py
Python
bsd-3-clause
12,678
[ "Gaussian" ]
14a8fd269b3636bbb78b47c00401b24a9b4de785c4a955e8259cd2c93d0618c4
"""Diffusion along rows""" from __future__ import print_function from math import sqrt from ase import Atoms, Atom from ase.io import write from ase.visualize import view from ase.constraints import FixAtoms from ase.optimize import QuasiNewton, MDMin from ase.neb import NEB from ase.calculators.emt import EMT a = 4....
misdoro/python-ase
doc/tutorials/selfdiffusion/neb1.py
Python
gpl-2.0
1,615
[ "ASE" ]
8394759c7b0030f8564a6beb981e434574d1a66f5a9494a3df1660fec9773cd2
""" .. module:: collect_season_fcst_rainfall.py :synopsis: It should create the directories hierarchy structure. And It should get the partners data of observation rainfall data, i.e. model fcst rainfall data for 24, 48, etc hours which is set in the global configuration fil...
arulalant/mmDiagnosis
diagnosis1/diagnosis/collect_season_fcst_rainfall.py
Python
gpl-3.0
11,382
[ "NetCDF" ]
aa6c63964f3db9f862a76a0b09cc80459e01d1877bb860a16f282a8f70a69798
# coding: utf-8 # Copyright (c) Henniggroup. # Distributed under the terms of the MIT License. from __future__ import division, print_function, unicode_literals, \ absolute_import """ Workflow to study the convergence of VASP parameters: ENCUT and KPOINTS for a range of systems. """ from six.moves import range ...
henniggroup/MPInterfaces
examples/workflows/vasp_workflow.py
Python
mit
3,992
[ "VASP", "pymatgen" ]
d898bcfd187b8d13f23936f8610058d6d035254d7cae4bff48aa42822dcf10d5
# 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...
sxjscience/tvm
python/tvm/contrib/hexagon.py
Python
apache-2.0
8,340
[ "VisIt" ]
293d7efb301134e256738c70e24da1517111a8aa4ed57381b2c874cb8f724871
# test_suppyrrs.py --- # # Filename: test_suppyrrs.py # Description: # Author: # Maintainer: # Created: Mon Jul 16 16:12:55 2012 (+0530) # Version: # Last-Updated: Thu Nov 8 18:40:34 2012 (+0530) # By: subha # Update #: 517 # URL: # Keywords: # Compatibility: # # # Commentary: # # # # #...
BhallaLab/moose-examples
traub_2005/py/test_suppyrrs.py
Python
gpl-2.0
1,526
[ "MOOSE" ]
b7fe65a3054a07c8cf2fc24a81a56c8af0d84b66291a95e8b29df81fd9cdd497
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: # # MDTraj is free software: y...
mdtraj/mdtraj
tests/test_hdf5.py
Python
lgpl-2.1
10,187
[ "MDTraj", "OpenMM" ]
5aac7a408ff310cfa07de92fec113d2022aba2b680145176edb3cf3e8653edff
#!/usr/bin/env python from ase import * from gpaw import GPAW import tab def get_eigs(calc): # returns eigs_skn return np.array([[calc.get_eigenvalues(kpt=k, spin=s) for k in range(calc.wfs.nibzkpts)] for s in range(calc.wfs.nspins)]) noconv = dict(fixdensity=True, c...
qsnake/gpaw
oldtest/nonself_eigs.py
Python
gpl-3.0
1,628
[ "ASE", "GPAW" ]
3335fe8d06fa6aa5883a25b1c9fe4d07e57ea5793209321e36fb347e9630206e
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import cint, now, get_gravatar from frappe import throw, msgprint, _ from frappe.auth import _update_password from frappe.core.doctype.notificat...
gangadhar-kadam/lgnlvefrape
frappe/core/doctype/user/user.py
Python
mit
17,443
[ "VisIt" ]
9032cd6009e88a53cb5f0ac7d24493bcadaffac7f04b8229a4a21852ab1b579e
# -*- coding: utf-8 -*- # # test_siegert_neuron.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the Lic...
jakobj/nest-simulator
pynest/nest/tests/test_siegert_neuron.py
Python
gpl-2.0
4,819
[ "NEURON" ]
61b8ece54addc44e5039ff5ef57401ef6a40d8ae5f7afc263846bd8684ce4ae5
# -*- coding: utf-8 -*- ######################################################################### ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2014 Upinder S. Bhalla. and NCBS ## It is made available under the terms of the ## GNU Lesser General ...
upibhalla/moose-core
tests/python/test_Xreacs4a.py
Python
gpl-3.0
3,359
[ "MOOSE" ]
af390dc7c10600a80c62c40f7ba6a6a8cd62d1acbdc28f733caec02c8fc4c067
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- http://www.mdanalysis.org # Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
kain88-de/mdanalysis
package/MDAnalysis/topology/PDBParser.py
Python
gpl-2.0
11,336
[ "MDAnalysis", "VMD" ]
9a5d38f69741f085de29aa1a04c9f8e77ffd8f7d7f11a7bea6cbc3ea69d2c906
import tensorflow as tf # neural network for function approximation import gym # environment import numpy as np # matrix operation and math functions from gym import wrappers import gym_morph # customized environment for cart-pole import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import time star...
GitYiheng/reinforcement_learning_test
test03_monte_carlo/t33_rlvps01.py
Python
mit
7,662
[ "NEURON" ]
b4311ca5868d75f5173ef1289c3c8d7e1a32ea476ed537bdfd9e8d4747be6bfa
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/integrator/FreeEnergyCompensation.py
Python
gpl-3.0
2,500
[ "ESPResSo" ]
17e4af773440bf1de5bc598f88cb0638ee7d5982f69658af9469bdbaa7a06cc7
#!/bin/env python """ Module simtk.unit.prefix This is part of the OpenMM molecular simulation toolkit originating from Simbios, the NIH National Center for Physics-Based Simulation of Biological Structures at Stanford, funded under the NIH Roadmap for Medical Research, grant U54 GM072970. See https://simtk.org. Port...
casawa/mdtraj
mdtraj/utils/unit/prefix.py
Python
lgpl-2.1
6,747
[ "OpenMM" ]
fce0a6e318b04be11615f18372736433a24f5567ae5d9b1425ebb83f1a5723a3
#!/usr/bin/env python """ Check that all the functions defined in the C API are effectively used in the chemfiles binding. """ import os import sys import re IGNORED = ["chfl_trajectory_open"] ERROR = False ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") def error(message): print(message) ...
chemfiles/Chemharp.jl
scripts/check_used_functions.py
Python
mpl-2.0
1,538
[ "Chemfiles" ]
2dbb19c7f884df5403edeffc940612c027f3cc62fa4cd965312214397d4e66d1
# -*- coding: utf-8 -*- import numpy as np import scipy.special from bokeh.plotting import * mu, sigma = 0, 0.5 measured = np.random.normal(mu, sigma, 1000) hist, edges = np.histogram(measured, density=True, bins=50) x = np.linspace(-2, 2, 1000) pdf = 1/(sigma * np.sqrt(2*np.pi)) * np.exp(-(x-mu)**2 / (2*sigma**2))...
jakevdp/bokeh
examples/plotting/file/histogram.py
Python
bsd-3-clause
3,982
[ "TINKER" ]
90ff9ca41e1e4a1e3ae3b246e0e425b84b97603aa44e34bef28c57a6364a5542
# Copyright (c) 2013, GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from kernpart import Kernpart import numpy as np from ...util.linalg import tdot from ...core.mapping import Mapping import GPy class Gibbs(Kernpart): """ Gibbs non-stationary covariance function. ...
mikecroucher/GPy
GPy/kern/src/todo/gibbs.py
Python
bsd-3-clause
7,153
[ "Gaussian" ]
8ed7c799cea46535c9643e8bacbe39e2afa988341e33c2d1643bb5f6a16606ff
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseNotFound, HttpResponseNotAllowed from rest_framework import viewsets from db.serializers import * from django.core import serializers from datetime import datetime import time from django.views.decorators.csrf import csrf_exempt import json from ...
UWMediBook/backend
db/views.py
Python
apache-2.0
28,250
[ "VisIt" ]
5033bcd22e5a1224374b603717aa9cb11475a1b303d269211d26d7598b6fa481
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) from textwrap import...
jtrobec/pants
tests/python/pants_test/targets/test_wiki_page.py
Python
apache-2.0
2,958
[ "exciting" ]
d1047284de56e16f912fa803b7f1335150123400d7f592bf45be5c6810011dd7
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2012-2016 GEM Foundation # # OpenQuake 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 Foundation, either version 3 of the Licen...
vup1120/oq-hazardlib
openquake/hazardlib/gsim/base.py
Python
agpl-3.0
40,533
[ "Gaussian" ]
a1b60c94e365af0c3e354073a9c374675c060f75af7a660dd8591480c730dbd9
#!/usr/bin/env python # -*- coding: utf-8 -*- # This file is part of the SPORCO package. Details of the copyright # and user license can be found in the 'LICENSE.txt' file distributed # with the package. """ Gaussian White Noise Restoration via CSC ======================================== This example demonstrates t...
alphacsc/alphacsc
alphacsc/other/sporco/examples/scripts/csc/gwnden_clr.py
Python
bsd-3-clause
4,515
[ "Gaussian" ]
c9ac90f7b40d8357f958990ea9927cbd0aff7cf703745a4a1547fe7a052d36e1
# -*- coding: utf-8 -*- from collections import defaultdict import csv from datetime import datetime, timedelta from itertools import chain import dateutil.parser import json import networkx as nx import pytz import re from typing import Any, DefaultDict, Dict, List, Optional, Set, Tuple, Union from django.conf impor...
tomka/CATMAID
django/applications/catmaid/control/skeleton.py
Python
gpl-3.0
174,638
[ "NEURON" ]
8a4fa0f157c9657cd793550d96d49d265fc1c5450b60fca2ec2f34fe8583b304
''' Created on Apr 20, 2015 @author: ayan ''' from __future__ import (absolute_import, division, print_function) from netCDF4 import Dataset import numpy as np import hashlib from collections import OrderedDict from .read_netcdf import NetCDFDataset, parse_padding, find_grid_topology_var from .utils import calculat...
NOAA-ORR-ERD/pysgrid
pysgrid/sgrid.py
Python
bsd-3-clause
38,395
[ "NetCDF" ]
946d356a7061680338d020fb7592a01b252132666b88a85a22d49f5e9d339e74
import sys import argparse import numpy as np from ase.parallel import world from ase.io import read from ase.utils import devnull, prnt from ase.data import chemical_symbols, atomic_numbers, covalent_radii from ase.structure import molecule from ase.lattice import bulk from ase.atoms import Atoms, string2symbols...
conwayje/ase-python
ase/asec/asec.py
Python
gpl-2.0
8,563
[ "ASE", "CRYSTAL" ]
ad5ea4acc06432d658d8ca012751a295ba0aaee93d4fb2860d227723cc29a3b6
# Copyright: 2005-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # Author(s): Brian Harring (ferringb@gentoo.org) __all__ = ["Mapping", "MutableMapping", "UserDict", "ProtectedDict", "LazyLoad", "slot_dict_class"] import sys import warnings import weakref class Mapping(obj...
fastinetserver/portage-idfetch
pym/portage/cache/mappings.py
Python
gpl-2.0
10,865
[ "Brian" ]
edd6de6664129ef1e4ed2f1d2a5bfcb15ad2f66ae8dc8465857103ff2b1451e3
""" """ import os from tempfile import tempdir from pulsar.manager_factory import build_managers from pulsar.cache import Cache from pulsar.tools import ToolBox from pulsar.tools.authorization import get_authorizer from pulsar import messaging from galaxy.objectstore import build_object_store_from_config from galaxy.t...
jmchilton/pulsar
pulsar/core.py
Python
apache-2.0
5,500
[ "Galaxy" ]
245687badd2b947a8b7a65c31f1ea772e4b9b11f76039b2b4ff9f5a4b2bad0c9
""" A computing element class that attempts to use glexec if available then defaults to the standard InProcess Computing Element behaviour. """ __RCSID__ = "$Id$" import os import stat import distutils.spawn import DIRAC from DIRAC import S_OK, S_ERROR from DIRA...
vmendez/DIRAC
Resources/Computing/glexecComputingElement.py
Python
gpl-3.0
13,887
[ "DIRAC" ]
ec08c5d4adc328afc0e4e2e6ae17d7ebd5227664ddf29620242fd8563f3bd12f
#!/usr/bin/env python # -*- coding: utf-8 -*- # # views.py # # Copyright 2014 Gary Dalton <gary@ggis.biz> # # 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 Licen...
gary-dalton/Twenty47
twenty47/views.py
Python
mit
14,498
[ "Dalton" ]
9a1687a48ce253a1fa2b621ad9207fcbbd08cee8c9dd18a81f573645b5e9446a
#!/usr/bin/python # # Copyright (C) 2015, Jaguar Land Rover # # This program is licensed under the terms and conditions of the # Mozilla Public License, version 2.0. T full text of the # Mozilla Public License is at https://www.mozilla.org/MPL/2.0/ # # # 1. Generate a device key through openssl. # 2. Sign the pub...
linearregression/rvi_core
scripts/rvi_create_device_key.py
Python
mpl-2.0
4,411
[ "Jaguar" ]
0e15d90d3bb68d94fdab6e4ea094ca4088571bed30ad3b002bf33bfa1f3d939f
#!/usr/bin/python3.4 # -*-coding:Utf-8 -* '''module to manage antialiasing settings''' import xml.etree.ElementTree as xmlMod class OSA: '''class to manage antialiasing settings''' FILTERS = { 'BOX' : 'Box', 'TENT' : 'Tent', 'QUADRATIC' : 'Quadratic', 'CUBIC' : 'Cubic', 'CATMULLROM' : 'C...
CaptainDesAstres/Blender-Render-Manager
Preferences/PresetList/Preset/OSA.py
Python
mit
6,230
[ "Gaussian" ]
f99d8c07bf56c1ed6fa744c6e9d61d0fb1fda772e5483e6aeb8cd55cc7d1500d
#!/usr/bin/env python ######################################################################## # File : dirac_accounting_decode_fileid # Author : Adria Casajus ######################################################################## """ Decode Accounting plot URLs """ from __future__ import absolute_import from __f...
ic-hep/DIRAC
src/DIRAC/AccountingSystem/scripts/dirac_accounting_decode_fileid.py
Python
gpl-3.0
1,418
[ "DIRAC" ]
2961dd9e758d00017b9d2fc6dafa8ba16c41132485c87350c5eaa3e2e707058b
#!/usr/bin/env python import glob print "id\ttype\ttranscript\ttpm" for abundance in glob.glob("alignments/bwa/*/quants/abundance.filtered.tsv"): path = abundance.split('/') sample = path[2].split('_') sample_id = sample[0] sample_type = sample[1] with open(abundance,'r') as in_file: for ...
pjtatlow/bio465-capstone
analysis/combineBWAFiltered.py
Python
mit
481
[ "BWA" ]
93f7bac2ddf7e7696fe3c1906a8686805c1f8e32517de511d78c1d20cbddb09e
import pytest def pytest_configure(config): # Register marks to avoid warnings in psi4.test() # sync with setup.cfg config.addinivalue_line("markers", "check_triplet") config.addinivalue_line("markers", "dft") config.addinivalue_line("markers", "gga") config.addinivalue_line("markers", "hf") ...
jturney/psi4
tests/pytests/conftest.py
Python
lgpl-3.0
2,346
[ "Psi4" ]
9f0fe16323fe396405e385a7191231aefd940c2ba6ebd546fd877a3eb246943a
# Known working version # conda 4.6.7 # conda-build 3.17.8 # NOTE: This script is an advanced version of build_all_simplified.sh # It can build conda and non conda binaries for both Linux and MacOS in # a single run. ''' Building AmberTools binary for conda and non-conda install for python 2.7, 3.4, 3.5, 3.6, 3.7 for ...
Amber-MD/ambertools-conda-build
build_all.py
Python
mit
15,594
[ "Amber" ]
0bd7cc1b65a158548e068d238cbfb814c6f849ad63eafd9fce8472af0e68f798
# coding=utf-8 # Copyright 2021 The Ravens Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
google-research/ravens
ravens/models/mdn_utils.py
Python
apache-2.0
4,903
[ "Gaussian" ]
0babb29e4da1c7fa192a7a3192802319b791b56059824fed8a4b609f2d9390ac
from __future__ import division from copy import deepcopy import numpy as np from scipy.ndimage import binary_erosion from menpo.image.base import Image from menpo.image.boolean import BooleanImage from menpo.visualize.base import ImageViewer import menpo.features as fc class MaskedImage(Image): r""" Represen...
jabooth/menpo-archive
menpo/image/masked.py
Python
bsd-3-clause
27,793
[ "Gaussian" ]
a45e1530426c3ec963b916191c0d172c4349c536cd7ee54afc3ff6ac8d22e4f1
from datetime import timedelta from dateutil.relativedelta import relativedelta from django.utils import timezone from edc_consent.models import ConsentType from edc_registration.models import RegisteredSubject from edc_constants.constants import SCHEDULED, YES, NO, UNKNOWN, NOT_APPLICABLE, NEG, POS from td_maternal....
TshepangRas/tshilo-dikotla
td_maternal/tests/test_maternal_ultrasound_initial.py
Python
gpl-2.0
3,229
[ "VisIt" ]
283562a976fd2e59bced03ad8d761ab23cffc8720ab49972d004fa9998469755
#!/usr/bin/env python """ Functions to do automatic visualization of activation-like maps. For 2D-only visualization, only matplotlib is required. For 3D visualization, Mayavi, version 3.0 or greater, is required. For a demo, see the 'demo_plot_map' function. """ # Author: Gael Varoquaux <gael dot varoquaux at nor...
arokem/nipy
nipy/labs/viz_tools/activation_maps.py
Python
bsd-3-clause
15,081
[ "Mayavi" ]
37ae3dc9439cc9e55c163de4fef635bc26243bb0d0cda10b71da77b1bb22ea80
import numpy as np import numpy.random as ra from gpaw.setup import create_setup from gpaw.xc import XC from gpaw.test import equal, gen if 1: for functional in [ 'LDA_X', 'LDA_X+LDA_C_PW', 'LDA_X+LDA_C_VWN', 'LDA_X+LDA_C_PZ', 'GGA_X_PBE+GGA_C_PBE', 'GGA_X_PBE_R+GGA_C_PBE', 'GGA_X_B88+GGA_C...
robwarm/gpaw-symm
gpaw/test/lxc_xcatom.py
Python
gpl-3.0
2,712
[ "GPAW" ]
da184c8c3c1cb676e06995f2f1f3fc50d58708cbddb5e088670d32b582919e0c
# visit https://morvanzhou.github.io/tutorials/ for more! # 22 scope (name_scope/variable_scope) from __future__ import print_function import tensorflow as tf with tf.name_scope("a_name_scope"): initializer = tf.constant_initializer(value=1) var1 = tf.get_variable(name='var1', shape=[1], dtype=tf.float32, in...
MediffRobotics/DeepRobotics
DeepLearnMaterials/tutorials/tensorflowTUT/tf22_scope/tf22_scope.py
Python
gpl-3.0
1,988
[ "VisIt" ]
b5716d9c618da7de94ef787d43a8d6c879677d4131b7ec9b6dcc33b7afbe5acc
"""Leetcode 160. Intersection of Two Linked Lists Easy URL: https://leetcode.com/problems/intersection-of-two-linked-lists/ Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A1 -> A2 \ C1 -> C2 -> C2 ...
bowen0701/algorithms_data_structures
lc0160_intersection_of_two_linked_lists.py
Python
bsd-2-clause
5,606
[ "VisIt" ]
0875c2ba73b3fa6d404fdee4c915ba5a6ee56a3e41d99716e1561ad97c3feaad
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
drufat/sympy
sympy/utilities/runtests.py
Python
bsd-3-clause
82,184
[ "VisIt" ]
1b120d063130b0d80c12de02c8b62e95d5a13b186d914e2a780fb72df2d0853f
import inspect import os from datetime import datetime from os.path import basename, isfile, join, normpath, splitext from time import sleep import chemcoord as cc import numpy as np import sympy from chemcoord.xyz_functions import to_molden from scipy.optimize import minimize from sympy import latex from tabulate imp...
mcocdawc/chemopt
src/chemopt/zmat_optimisation.py
Python
lgpl-3.0
37,035
[ "MOLCAS", "Molpro" ]
b920079352a6ea24cdf7576ff116a2a029038d7051bfb16e4edc1f23437343fd
import random from django import template register = template.Library() @register.inclusion_tag("utils/_object_controls.html", takes_context=True) def object_controls(context, obj, app_label, label=None): """Renders a dropdown button with `Update` and `Delete` Links for the given object. This tag accepts the...
tndatacommons/tndata_backend
tndata_backend/utils/templatetags/util_tags.py
Python
mit
2,655
[ "CRYSTAL" ]
5b2c3094776fdfb30f759a9bf39ef47446086e69cc477fcab4c6fd26c25251c8
from unittest import TestCase from remoteappmanager.docker.docker_labels import SIMPHONY_NS, SIMPHONY_NS_ENV from remoteappmanager.docker.image import Image from remoteappmanager.tests.mocking.virtual.docker_client import ( VirtualDockerClient) class TestImage(TestCase): def test_from_docker_dict_images(self...
simphony/simphony-remote
remoteappmanager/docker/tests/test_image.py
Python
bsd-3-clause
2,193
[ "Mayavi" ]
33ba4ddfd4c6eca8b7c53099f2f3f0bc5a9600465b6510002ab44329600d8de5
#!/usr/bin/env python2 import argparse import os, sys, time panX_script_dir= os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0,panX_script_dir+'/scripts/') from pangenome_computation import pangenome from sf_miscellaneous import times, check_dependency ''' panX clusters genes from a set of microbial genome...
neherlab/pan-genome-analysis
panX.py
Python
gpl-3.0
17,983
[ "BLAST" ]
bf1c2a68a04aa0bbb5b42757343d2bcb1755623d5d03433d3efaeb5823676a0f
""" A simple script to analyse lab PRNU data. Currently uses the ESA CCD273 data. """ import matplotlib matplotlib.rc('text', usetex=True) matplotlib.rcParams['font.size'] = 17 matplotlib.rc('xtick', labelsize=14) matplotlib.rc('axes', linewidth=1.1) matplotlib.rcParams['legend.fontsize'] = 11 matplotlib.rcParams['leg...
sniemi/EuclidVisibleInstrument
analysis/analysePRNUdata.py
Python
bsd-2-clause
5,967
[ "Gaussian" ]
1e03460c7b678eb557f552c8ea785df3d81b16f4ef2484a030efcbece40fd2f8
""" Test functions for stats module """ from __future__ import division, print_function, absolute_import import warnings import re import sys import pickle from numpy.testing import (TestCase, run_module_suite, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_allclose,...
Gillu13/scipy
scipy/stats/tests/test_distributions.py
Python
bsd-3-clause
94,551
[ "Gaussian" ]
e206f2be69180bdf3fee6a109deb97d69b9154ddbd2f3629d8f07c387535838b
#!/usr/bin/env python # # Copyright 2016 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/LICENSE-2.0 # # Unless requir...
Aloomaio/googleads-python-lib
examples/adwords/v201809/campaign_management/validate_text_ad.py
Python
apache-2.0
2,764
[ "VisIt" ]
a069017ea3e4abbbd27bdfeddaba067bcd54977700f6f5525c9d1b2fc98596c7
#!/usr/bin/env python # # Copyright (c) 2013 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re import sys from sets import Set _ENTRIES = [ ('Total', '.* r... .*'), ('Read-only', '.* r--. .*'), ('Rea...
GeyerA/android_external_chromium_org
tools/android/memdump/memreport.py
Python
bsd-3-clause
4,296
[ "Galaxy" ]
0282dbb344d817824e61bcd17d6e813715d82693a3420f4bfcf49dd62343d09c
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/ldif
ldif/torch/sif_evaluation.py
Python
apache-2.0
7,971
[ "Gaussian" ]
f72a97fb6db221369ccd8d84a22ddfecfc0a0428c18b51503419673fb924d7b2
# -*- Python -*- # # This file is part of the "UpLib 1.7.11" release. # Copyright (C) 2003-2011 Palo Alto Research Center, Inc. # # 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...
zmughal/xerox-parc-uplib-mirror
python/uplib/basicPlugins.py
Python
gpl-2.0
184,260
[ "VisIt" ]
52d259538a3ab35bf97d202ec8b981659dbe3a16b00486d4c003275a768aba17
import sys import os import re import logging import gzip import pysam from .alignment_file_utils import get_bamfile from parse_vcf import VcfReader class BlameVariants(object): ''' Identify the number of contaminant reads versus non-contaminant carrying given variants. ''' def __init__(self, cont...
gantzgraf/bacta
bacta/blame_variants.py
Python
gpl-3.0
6,243
[ "pysam" ]
b1b9c19997f4ed19c1c4a8f412b5d2d1344816bb1468abadcae59be8dd860ff0
# Copyright 2017 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/LICENSE-2.0 # # Unless required by applicable law or a...
michellemorales/OpenMM
models/lfads/synth_data/synthetic_data_utils.py
Python
gpl-2.0
11,363
[ "Gaussian" ]
d790b66a45479b4b399aac84c16f3081ec34752a5c88756d2e61dd63f36579dd
# This file is part of OtfBot. # # OtfBot 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. # # OtfBot is distributed in the hope that it...
otfbot/otfbot
otfbot/plugins/ircClient/marvin.py
Python
gpl-2.0
2,085
[ "Galaxy" ]
d1d9d9b08b40719afb17f0747db9362d3c55b3510fd431a41772234e7bfc03eb
# -*- coding: utf-8 -*- """ Authors: Hung-Hsin Chen <chenhh@par.cse.nsysu.edu.tw> License: GPL v2 """ import os from datetime import date from time import time import numpy as np import pandas as pd import scipy.stats as spstats import statsmodels.stats.stattools as stat_tools import statsmodels.tsa.stattools as tsa_t...
chenhh/PySPPortfolio
PySPPortfolio/pysp_portfolio/exp_analysis.py
Python
gpl-3.0
64,902
[ "ADF" ]
4658a78c3f4928b2bc608a651545a61176d7f792ad3697b3ccee8e812b661778
########################################################################### # (C) 2016 Elettra - Sincrotrone Trieste S.C.p.A.. All rights reserved. # # # # # # This file is ...
ElettraSciComp/STP-Core
STP-Core/tools_multiangle.py
Python
gpl-3.0
20,442
[ "Gaussian" ]
245c22728bc05df65214b04273561d717350a5b0abf49578e049456dcd8f1fba
from Firefly.const import AUTHOR from .const import ROUTINE_EXECUTE, ROUTINE_ICON, ROUTINE_MODE, ROUTINE_ROUTINE # TODO: Make automation const for other const types. TITLE = 'Firefly Routines' COMMANDS = [ROUTINE_EXECUTE] METADATA = { 'title': TITLE, 'author': AUTHOR, 'commands': COMMANDS, 'interface'...
Firefly-Automation/Firefly
Firefly/automation/routine/metadata.py
Python
apache-2.0
5,174
[ "Firefly" ]
3e33f118868b25139a0026c1076c8070c6996cd49a9b9b4d9a1a44ecbeffc959
""" ======================================= Signal processing (:mod:`scipy.signal`) ======================================= Convolution =========== .. autosummary:: :toctree: generated/ convolve -- N-dimensional convolution. correlate -- N-dimensional correlation. fftconvolve -- N-dimensional convol...
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/scipy/signal/__init__.py
Python
gpl-2.0
11,295
[ "Gaussian" ]
1006cc42b365e78f3cb05ffbdcb15eac1bafefe4046e1250fc7c2bb6e90ab713
from logging import getLogger logger = getLogger(__name__) import chainer from chainer import functions as F from chainer import links as L import policy_output class Policy(object): """Abstract policy class.""" def __call__(self, state): raise NotImplementedError class SoftmaxPolicy(Policy): ...
muupan/async-rl
policy.py
Python
mit
1,753
[ "Gaussian" ]
f19577d764648e71176f5ae10e1564d3a0f0146f9d4253fda797c58c18e33e4b
#! /usr/bin/env python # -*- coding: utf-8 -*- # # graph_tool -- a general graph manipulation python module # # Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de> # # 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...
antmd/graph-tool
src/graph_tool/draw/cairo_draw.py
Python
gpl-3.0
86,373
[ "EPW" ]
c7dee2d608a530836658ef20cc719fce93cf717f04658198941bf481f0f306e2
import sys import os import shutil import datetime import glob import zipfile import argparse import re QLXL = "QuantLibXL" VERSION = "1.8.0" VERSION_ = "1_8_0" #VC_VERSION = "vc120" VC_VERSION = "vc90" QLXL_VERSION = QLXL + "-" + VERSION ROOT_DIR = QLXL_VERSION + "\\" class ZipFile: root = None zipFile = N...
eehlers/QuantLibXL
make_zip.py
Python
bsd-3-clause
9,636
[ "VisIt" ]
743de1bcf41653163d2654f9f4ea8fb980c24d102920993ecec9c65bef84f204
''' A collection of Distribution classes for the Continuous No Regret Problem. @author: Maximilian Balandat, Walid Krichene @date: Oct 24, 2014 ''' import numpy as np from matplotlib import pyplot as plt from matplotlib import cm from scipy.stats import multivariate_normal from scipy.linalg import inv class Distr...
Balandat/cont_no_regret
old_code/Distributions.py
Python
mit
11,991
[ "Gaussian" ]
0641fc85d4f9a199c09ac53ca5b321de5aa84fa505a5db76cc1f2a81b424978a
# -*- coding: utf-8 -*- """ Created on Mon Sep 28 00:51:20 2015 module to transform raw vtk to rotated vtk along mom bud axis @author: sweel """ import os import os.path as op import numpy as np from mayavi import mlab import pandas as pd from tvtk.api import tvtk from mombud.vtk_viz import vtkvizfuncs as vz import wra...
moosekaka/sweepython
cell_pick_viz/vtk_rotate_mombudaxis.py
Python
mit
8,447
[ "Mayavi", "VTK" ]
44468bde3905d6e53bfb5640a5d2ad9e3734f882573e083c2f082af11ae8c6c2
# $HeadURL$ __RCSID__ = "$Id$" import os import os.path import time import threading from DIRAC import S_OK, S_ERROR, gLogger, rootPath, gConfig from DIRAC.Core.Utilities.DictCache import DictCache class DataCache: def __init__( self ): self.graphsLocation = os.path.join( gConfig.getValue( '/LocalSite/Instan...
avedaee/DIRAC
AccountingSystem/private/DataCache.py
Python
gpl-3.0
3,173
[ "DIRAC" ]
18ccc15f4495fe3bd719ca3b0e0110460b8180c3dec12605282e7b98ae4918aa
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/pbc/cc/test/test_kgccsd.py
Python
apache-2.0
30,930
[ "PySCF" ]
4b03129817f72e4a1f43a46814dfeede94d776414d3c89e7a5f41b15bc4e532d
# -*- coding: utf-8 -*- """ End-to-end tests for the LMS. """ import urllib from datetime import datetime, timedelta from textwrap import dedent import pytz from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture, CourseUpdateDesc, XBlockFixtureDesc from common.test.accep...
procangroup/edx-platform
common/test/acceptance/tests/lms/test_lms.py
Python
agpl-3.0
49,342
[ "VisIt" ]
c484470f7d40a451c358793fbe790ef4b0cd1303d06ee4c83fa4aa8f75d731cf
# --- # jupyter: # jupytext: # formats: ipynb,.pct.py:percent # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.3 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% [markdown] ...
GPflow/GPflow
doc/source/notebooks/advanced/convolutional.pct.py
Python
apache-2.0
7,955
[ "Gaussian" ]
5a5cda67c7fdd82a315a55199df01469a6ce58c7d14b3a697f2035ba873d5f2b