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 |
|---|---|---|---|---|---|---|---|
"""
Acceptance tests for Studio related to edit/save peer grading interface.
"""
from ...fixtures.course import XBlockFixtureDesc
from ...pages.studio.export import ExportPage
from ...pages.studio.component_editor import ComponentEditorView
from ...pages.studio.overview import CourseOutlinePage
from base_studio_test i... | dsajkl/reqiop | common/test/acceptance/tests/studio/test_studio_with_ora_component.py | Python | agpl-3.0 | 3,131 | [
"VisIt"
] | 004fc45bf7f55d50f8b235b1f2705c0854332a6e72378cfda9a4c5481a401c55 |
#!/usr/bin/env python
import os
import re
import urllib
import csv
import datetime
from string import Template
from optparse import OptionParser
username = 'xclaesse'
upload_server = 'master.gnome.org'
template = '''\
$name $version is now available for download from:
$download
$md5sums
What is it?
===========
$abo... | gcorvala/gsoc2008 | release.py | Python | gpl-2.0 | 8,011 | [
"VisIt"
] | 8649f10d2a6aeacb421f7e91114d340995f0f6183019beea417586432ed073e8 |
import matplotlib
matplotlib.use('Agg')
import numpy as np
import netCDF4
from datetime import datetime
import pyroms
import pyroms_toolbox
import sys
def create_HYCOM_file(name, time, lon, lat, z, var):
print 'Write with file %s' %name
#create netCDF file
nc = netCDF4.Dataset(name, 'w', format='NETCD... | kshedstrom/pyroms | examples/Palau_HYCOM/get_hycom_GLBa0.08_u_2015.py | Python | bsd-3-clause | 4,472 | [
"NetCDF"
] | ce4f415611ba74ec9975262cd9e9f5a850fc5aa4c38c2ee4173f7116fb6e6997 |
# Copyright (c) 2013, the GPy Authors (see AUTHORS.txt)
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from ..core import GP
from .. import likelihoods
from .. import kern
import numpy as np
from ..inference.latent_function_inference.expectation_propagation import EP
class GPClassification(GP):
"""
... | esiivola/GPYgradients | GPy/models/gp_classification.py | Python | bsd-3-clause | 2,545 | [
"Gaussian"
] | fa5d0d7a4c58e2de89ee6ed6e61bb4e7c93fea67578cc25ae55a90c9aa9ffc73 |
#! /usr/bin/env python
"""
Plot several runs of the iaf_cond_exp_sfa_rr neuron with no input and
various initial values for the membrane potential.
"""
import cynest as nest
import numpy
import pylab
for vinit in numpy.arange(-100, -50, 10, float):
nest.ResetKernel()
cbn = nest.Create('iaf_cond_exp_sfa_rr... | gewaltig/cython-neuron | cynest/examples/vinit_example.py | Python | gpl-2.0 | 806 | [
"NEURON"
] | 4b0ea6df5fa7a5c4323264353e5a739aac3e1f3d297b5ddfbb839234ee39dcdf |
# -*- coding: utf-8 -*-
##
## This file is part of Invenio.
## Copyright (C) 2010, 2011 CERN.
##
## Invenio is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, or (at your opt... | kaplun/Invenio-OpenAIRE | modules/bibupload/lib/batchuploader_webinterface.py | Python | gpl-2.0 | 15,561 | [
"VisIt"
] | 4dff59553563f3db203060ddb4c58bdbf167d1487e15f830ff501c5e4a411f72 |
#!/usr/bin/python
# Submits a command to the queue
import argparse
parser = argparse.ArgumentParser(description='Run a command on the queue')
parser.add_argument('name', help='Job name')
parser.add_argument('command', help='Command to execute')
parser.add_argument('--mem', type=int, default=1, help='Amount of memory t... | luizcieslak/AlGDock | Pipeline/qsub_command.py | Python | mit | 8,783 | [
"NAMD",
"VMD"
] | 61fcab32a3e5ed2f42f07f453d27a0a79dda14dcde9000bdde1d453c723387e5 |
"""
Test the about xblock
"""
import datetime
import pytz
from ccx_keys.locator import CCXLocator
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from mock import patch
from nose.plugins.attrib import attr
from course_modes.models import Co... | caesar2164/edx-platform | lms/djangoapps/courseware/tests/test_about.py | Python | agpl-3.0 | 27,317 | [
"VisIt"
] | 6419011371fb32abf05e6bf54c2e05c11172a0c1279c80ea6e0e8e30e3cfc9c3 |
#!/usr/bin/python
#=================================================================#
# Script to plot the bandstructure from an abinit bandstructure #
# _EIG.nc netcdf file or from a wannier bandstructure, or from #
# an _EIG.nc file+GW file+ bandstructure _EIG.nc file #
#=============================... | jmbeuken/abinit | scripts/post_processing/abinit_eignc_to_bandstructure.py | Python | gpl-3.0 | 47,417 | [
"ABINIT",
"NetCDF",
"Wannier90"
] | 5a6da0104972297d17464200624bdb387e72bfe5dc439f7ab34d2ed7b2a50014 |
##############################################################################
# Copyright (c) 2013-2017, 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... | lgarren/spack | var/spack/repos/builtin/packages/bwa/package.py | Python | lgpl-2.1 | 2,671 | [
"BWA"
] | d8f02d51f608be8ed2a4a962b5fad33575fcaa08a83a234733ba42ef736acefd |
"""
.. See the NOTICE file distributed with this work for additional information
regarding copyright ownership.
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.... | Multiscale-Genomics/mg-process-fastq | tool/bowtie_indexer.py | Python | apache-2.0 | 5,081 | [
"Bowtie"
] | 10e4aa1096cd4d36e8eb746dc3014486a9643ceabb1b2c9ae2197de26e20462a |
from __future__ import print_function, division
import os
import scipy as sp
from ase import units
from time import sleep
kcalmol2eV = units.kcal / units.mol
def replace_positions_lammps(atoms, datafile='data.input', preloaded_data=None):
if preloaded_data is None:
with open(datafile, 'r') as file:
... | marcocaccin/LearningMetaDynamics | lammps2py_interface.py | Python | gpl-2.0 | 2,355 | [
"ASE",
"LAMMPS"
] | 64dceea397784673e0a387defffd78239d3a97682b3ba1c07cef7cd80a46ed47 |
# -*- coding: utf-8 -*-
"""
.. _disc-stats:
=====================
Statistical inference
=====================
Here we will briefly cover multiple concepts of inferential statistics in an
introductory manner, and demonstrate how to use some MNE statistical functions.
.. contents:: Topics
:local:
:depth: 3
"""
... | mne-tools/mne-tools.github.io | 0.20/_downloads/64111b11ecb97eff546771c32aa6b7ff/plot_background_statistics.py | Python | bsd-3-clause | 29,518 | [
"Gaussian"
] | 34d00dac1db716755d75d71ab1b53d7c54d130a186e1925c75ce67dfead01bb7 |
import logging
import os
from pulsar.managers.util.pykube_util import (
ensure_pykube,
find_job_object_by_name,
find_pod_object_by_name,
galaxy_instance_id,
Job,
job_object_dict,
produce_unique_k8s_job_name,
pull_policy,
pykube_client_from_dict,
stop_job,
)
from .action_mapper i... | galaxyproject/pulsar | pulsar/client/client.py | Python | apache-2.0 | 25,908 | [
"Galaxy"
] | 9336592731c6afeee3d8347a1c559333b067248fb253b330a36115522554c394 |
#!/usr/bin/python
# Converts AMBER prmtop (and inpcrd) files to a MMTK database,
# which is basically a python script defining a molecule's
# atoms, bonds, and default coordinates
import os, sys, time, numpy
#################
### CONSTANTS ###
#################
# Map flag to variable names
varnames = ['POINTERS','T... | gkumar7/AlGDock | Pipeline/prmtop2database.py | Python | mit | 6,847 | [
"Amber"
] | 3e2a4422d0020b04e205e798a90c162bec8f502b730201dfb0ac7f1722501bda |
"""
Example 3: Saving all minima found to an xyz file
"""
from pele.systems import LJCluster
from pele.utils.xyz import write_xyz
natoms = 12
niter = 100
system = LJCluster(natoms)
db = system.create_database()
bh = system.get_basinhopping(database=db)
bh.run(niter)
with open("lowest", "w") as fout:
for minimum ... | js850/pele | examples/basinhopping/3_savelowest.py | Python | gpl-3.0 | 863 | [
"PyMOL"
] | 48afad2b7e14c917f2acd0aa64da6200e7c89502cb457b44c48dbd4a4525a9aa |
#!/usr/bin/env python
########################################################################
# $HeadURL$
""" File Catalog Client Command Line Interface. """
__RCSID__ = "$Id$"
import cmd
import sys
import pprint
import os
import atexit
import readline
import datetime
from DIRAC.Core.Utilities.ColorCLI import colori... | vmendez/DIRAC | FrameworkSystem/Client/SystemAdministratorClientCLI.py | Python | gpl-3.0 | 43,605 | [
"ASE",
"DIRAC"
] | 189b90bf20c823e1c587680869842ac9390d709742781921517937884127df6d |
#
# Regression test driver for cmd-line tools
#
# Usage: test_cmdline_tool.py [<options>] <tool> <arguments>
#
# If the -g option is given or the TEST_GENERATE environment variable is set to 1,
# *-expected.<suffix> files will be generated instead of running the tests.
#
# Any generated output is written to the file `... | thdtjsdn/openscad | tests/test_cmdline_tool.py | Python | gpl-2.0 | 13,344 | [
"Gaussian"
] | e557f15626c40ca17f2d75b4b4c0775f914a0af413106cd6d9cdcd7dad101ef3 |
# vim: ft=python fileencoding=utf-8 sts=4 sw=4 et:
# Copyright 2014-2020 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
#
# This file is part of qutebrowser.
#
# qutebrowser 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 S... | t-wissmann/qutebrowser | scripts/dev/pylint_checkers/qute_pylint/config.py | Python | gpl-3.0 | 2,843 | [
"VisIt"
] | 64ce9fe511121df87aadade4c2a139e52df4f46c90f2bdaa56727bd2c08c909a |
# -*- coding: utf-8 -*-
from collections import defaultdict
import itertools
import math
import networkx as nx
import re
from typing import Any, DefaultDict, Dict, List, Union
from django.db import connection
from django.http import HttpRequest, JsonResponse
from django.shortcuts import get_object_or_404
from rest_f... | tomka/CATMAID | django/applications/catmaid/control/treenode.py | Python | gpl-3.0 | 53,294 | [
"NEURON"
] | 355a18f7939364ac02012f66b914533437e16c6c9020f823cce3e328d4807b34 |
"""Example code to convert Structured Commons objects to JSON."""
from __future__ import print_function
import sys
import json
import base64
from sc import fp
try:
unichr(0)
except:
unichr = chr
class pyjson_visitor(object):
"""Convert an abstract object tree to a JSON-serializable Python concrete object.
... | structured-commons/tools | sc/js.py | Python | unlicense | 3,963 | [
"VisIt"
] | f447ee022132255552a912bdf42e3dab63ff0f86275caded89509411ef9fdef9 |
# -*- Mode: Python; coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-2007 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## 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 Fre... | andrebellafronte/stoq | stoq/gui/sales.py | Python | gpl-2.0 | 26,301 | [
"VisIt"
] | a42292da3db39e4738c6acf56cabca73acb1de08fbdc9e6e6ecda7bd0d1db792 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2011-2015 Slack
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
... | Slack06/yadg | descgen/tests.py | Python | mit | 429,432 | [
"Brian",
"Dalton"
] | 33f956eb1b31950ed7027e52e76e4d63c42b1d4c49d8f2882538f99d4701c563 |
import numpy as np
from time import time
from gpaw.utilities.lapack import diagonalize, diagonalize_mr3
seed = 43
gen = np.random.RandomState(seed)
def main(i,seed=42,dtype=float):
if (dtype==complex):
epsilon = 0.1j
else:
epsilon = 0.1
x = i + 1
N = x*100
print "N =",N
H0 = n... | qsnake/gpaw | gpaw/test/eigh_perf.py | Python | gpl-3.0 | 941 | [
"GPAW"
] | 951e141faa567cd00108a227aa5d3fa6d3eb01db3f3526ec853545514de6abf1 |
# Copyright 2000-2004 by Kevin Atkinson
# Python wrapper by Johann C. Rocholl
#
# Permission to use, copy, modify, distribute and sell these word
# lists, the associated scripts, the output created from the scripts,
# and its documentation for any purpose is hereby granted without fee,
# provided that the above copyrig... | jcrocholl/nxdom | dictionaries/english.py | Python | mit | 564,985 | [
"Amber",
"BLAST",
"CASINO",
"CRYSTAL",
"ESPResSo",
"Elk",
"Firefly",
"GULP",
"Galaxy",
"Jaguar",
"MOOSE",
"NEURON",
"Octopus",
"SIESTA",
"TINKER",
"VisIt",
"exciting"
] | a11e96d607634f41652987e748eb5fd1c3ba49a205bc603c8ff4221bfb002c06 |
"""
Preprocess the fluorescence traces to get a spike train matrix.
Based on the ChaLearn Connectomics challenge starter kit
by Bisakha Ray, Javier Orlandi and Olav Stetter. I tried to clean it
up since it didn't make use of numpy functions and it was woefully
lacking in useful comments.
"""
import os
import sys
import... | mattjj/pyhawkes | data/chalearn/preprocess.py | Python | mit | 8,562 | [
"NEURON"
] | 2c044425d90532328f57cefe0b6013fa410122469e192fecfa0d236047171168 |
import unittest
import paydunya
from . import PAYDUNYA_ACCESS_TOKENS
paydunya.debug = True
paydunya.api_keys = PAYDUNYA_ACCESS_TOKENS
class TestGeneral(unittest.TestCase):
"""General/Miscellaneous tests"""
def setUp(self):
# Your PAYDUNYA developer tokens
self.store = paydunya.Store(name="Fab... | paydunya/paydunya-python | tests/test_general.py | Python | mit | 1,158 | [
"Galaxy"
] | 295dc7cb5fdcdbd22dc9d59c18603519107f1d0bb7a05d2f57186aa45229dab0 |
from __future__ import division
import numpy as np
import parabem
from parabem.pan2d import doublet_2_0, doublet_2_0_v, source_2_0, source_2_0_v
from parabem.vtk_export import VtkWriter
from parabem.utils import check_path
p1 = parabem.PanelVector2(-1, -10)
p2 = parabem.PanelVector2(0, -10)
p3 = parabem.PanelVector2(1... | looooo/panel-method | examples/vtk/vtk_heat_test.py | Python | gpl-3.0 | 3,051 | [
"VTK"
] | cdec3c424ed1dc8488d7f660ce88068c721b560254c844daebc39e5faaa619c9 |
#!/bin/env python
import os
from math import *
# Read in topology files and make changes
import parmed
import sys
import numpy as np
# If ParmEd is older than 2.0.4 then it will not work, raise an error
try:
ver = parmed.version
if ver < (2,0,4):
raise RuntimeError("ParmEd is too old, plea... | MobleyLab/Hydroxynator | hydroxynator.py | Python | gpl-3.0 | 16,894 | [
"Amber",
"Gromacs"
] | c344b6db44962d41257883846eb957fa1125a8042f417c3b22ddf3c6afd1bbb9 |
import Scientific.IO.NetCDF as nc
import numpy as np
import sys
import math
import pylab as pl
import matplotlib.colors as colors
from numpy import floor, sqrt, sin, cos, arccos, arctan2, pi
class gth_hemisphere:
"""Class implementing the gathering hemisphere."""
def __init__(self, resTheta=1, nThetaI=1, nDataL... | dronir/EM | python/xringleDirPlot.py | Python | gpl-3.0 | 6,957 | [
"NetCDF"
] | 40c0da805d853c603c2259db9cc171372993a4817b6fa30521144f6ff974a69e |
#!/usr/bin/env python
import numpy as np
from numpy import linalg as la
import numexpr as ne
import sys, csv
import pdb
import copy
import warnings
class CSVInput:
def __init__(self, filename, first_row_titles=False, num_convert=True, set_true_false_01=True):
self.titles = []
self.data = []
self.boolean... | lukefrasera/cs775Homework | midterm/scripts/classifier.py | Python | lgpl-3.0 | 13,567 | [
"Gaussian"
] | 2c8d5c1d4c31cd1009b57bb8c4a4d966317c7283ca685680e55a0d0cd44907fa |
# -*- coding: utf-8 -*-
#
# store_restore_network.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 L... | sanjayankur31/nest-simulator | pynest/examples/store_restore_network.py | Python | gpl-2.0 | 14,596 | [
"NEURON"
] | 070df34bc723d564bc41db5990df7d23fa239c2f4be9aa4da1825df29625ee1a |
from .r_dependencies import *
from .r_base import r_base
class r_dataNormalization(r_base):
def calculate_glogNormalization_v1(self,data_I):
'''normalize the data using a glog transformation using LMGene
https://www.bioconductor.org/packages/release/bioc/html/LMGene.html
Citation: Rock... | dmccloskey/r_statistics | r_statistics/r_dataNormalization.py | Python | mit | 28,099 | [
"Bioconductor"
] | 06a67b87d6265329d8f5e174ed295953a2a5a33fc893267e2ca4c420e8e49286 |
import unittest
from unittest import mock
from django.utils import timezone
from tethys_config.init import initial_settings, reverse_init, setting_defaults, custom_settings, \
reverse_custom, tethys4_site_settings
class TestInit(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
... | tethysplatform/tethys | tests/unit_tests/test_tethys_config/test_init.py | Python | bsd-2-clause | 15,927 | [
"VisIt"
] | 05be15209497ecbf43362b29dc654c31609b3585eae37b9e2d439eb0f4f258b6 |
# import unittest
#
# from hyperopt import hp
# import hyperopt
# import numpy as np
# import six
#
# import HPOlib.format_converter.configuration_space as configuration_space
# import HPOlib.format_converter.pyll_parser as pyll_parser
# from HPOlibConfigSpace.hyperparameters import CategoricalHyperparameter, \
# U... | mfeurer/HPOlibConfigSpace | test/converters/test_pyll_util.py | Python | gpl-3.0 | 28,534 | [
"BLAST"
] | ffd965d18dd83dbb7dc6dd8880e6cbed03b4f0d7f561f211fe39dfedc49fc3bf |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements an interface to the VAMPIRE code for atomistic
simulations of magnetic materials.
This module depends on a compiled vampire executable available in the path.
Please download at https... | gmatteo/pymatgen | pymatgen/command_line/vampire_caller.py | Python | mit | 15,181 | [
"pymatgen"
] | 10686821c1d4152559c66dcef3f6dd6382e343cab296516c1cbd0004f8cb6048 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module is the CLI of the library, that can be called after installing it from the command line
"""
import os
from sys import path, argv
import argparse
import numpy as np
try:
import sportran as st
except ImportError:
abs_path = os.path.abspath(__file__)
... | lorisercole/thermocepstrum | sportran/analysis.py | Python | gpl-3.0 | 29,366 | [
"LAMMPS"
] | 0367eb8740235a65a36770e686951e4f48ab4759f419b2a994855b0cbb87cfc4 |
"""Base classes for organizing data (for instance to visualize data
with Qt, or to run hierarchical checks) in a global graph, and a
detail tree at each node of the global graph.
The classes defined here assume that data can be organized in two
stages: a global level which only shows 'top-level' objects
(i.e. large fi... | griest024/PokyrimTools | pyffi-develop/pyffi/utils/graph.py | Python | mit | 8,280 | [
"VisIt"
] | e969c065900386713e532d511a4287969acb816cc248629132fea1201080bda3 |
from posterior import *
from astropy.cosmology import FlatLambdaCDM
import numpy as N
import sys
# Use sys to assign arguments for the galaxy data from the command line
u_r, err_u_r, nuv_u, err_nuv_u, z, dr8, ra, dec = sys.argv[1:]
# Use astropy to calculate the age from the redshift in the data
cosmo = FlatLambdaCD... | zooniverse/starpy | starpy.py | Python | apache-2.0 | 1,388 | [
"Galaxy"
] | 8317d29833230f9dc1d00455751e90d4bdcd4c667d87967fb135ca999bc2fae4 |
#!/usr/bin/env python
# Copyright (C) 2007 CAMP
# Please see the accompanying LICENSE file for further information.
from distutils.core import setup, Command
from distutils.command.build_py import build_py as _build_py
from glob import glob
from os.path import join
import os
import sys
import shutil
long_descript... | askhl/ase | setup.py | Python | gpl-2.0 | 4,998 | [
"ASE"
] | c49cd65edb61b1f4200fea8d2dc04cc23da33d317d02fa7a523adfc462772c46 |
import pytest
from graphapi.tests.utils import populate_db
from openstates.data.models import Person, VoteEvent
from testutils.factories import create_test_bill
@pytest.mark.django_db
def setup():
populate_db()
@pytest.fixture
def sortable_bills(kansas):
# A's introduced first
# B's latest action is fir... | openstates/openstates.org | public/tests/test_bill_views.py | Python | mit | 8,757 | [
"MOOSE"
] | db89a70f8a3b6c2cac645aa766def65ae24935dc632f14aa3c6d6ae90e67bc06 |
################################################################################
# #
# Copyright (C) 2010,2011,2012,2013,2014, 2015,2016 The ESPResSo project #
# ... | KonradBreitsprecher/espresso | doc/tutorials/06-active_matter/SOLUTIONS/rectification_simulation.py | Python | gpl-3.0 | 8,352 | [
"ESPResSo",
"VTK"
] | dab1c633925d4b1f2bcb6e3fa6b9e82798f4b5603d667f32de6c1a4e75345dec |
# staticchecking/DogsAndRobots.py
# (c)2017 MindView LLC: see Copyright.txt
# We make no guarantees that this code is fit for any purpose.
# Visit http://OnJava8.com for more book information.
def speak(anything):
anything.talk()
class Dog:
def talk(self): print("Arf!")
def reproduce(self): pass
class R... | mayonghui2112/helloWorld | sourceCode/testMaven/onjava8/src/main/java/staticchecking/DogsAndRobots.py | Python | apache-2.0 | 464 | [
"VisIt"
] | 44074c2524d791a94ceb21a266e891d3ed15bbe5731b430e159bd71d5aad66cf |
#!/usr/bin/python3
#Copyright (C) 2020- The University of Notre Dame
#This software is distributed under the GNU General Public License.
#See the file COPYING for details.
import os
import sys
import json
from work_queue_server import WorkQueueServer
from time import time
from create_splits import create_splits
task... | dthain/cctools | apps/wq_bwa_json/wq_bwa_json.py | Python | gpl-2.0 | 2,833 | [
"BWA"
] | 285e4371e531a118bcd26af6102d82fd3a2e5dbaf6ac145d1ef4f0421ff5b013 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vtk
def main():
colors = vtk.vtkNamedColors()
# Set the colors.
colors.SetColor("AzimuthArrowColor", [255, 77, 77, 255])
colors.SetColor("ElevationArrowColor", [77, 255, 77, 255])
colors.SetColor("RollArrowColor", [255, 255, 77, 255])
colo... | lorensen/VTKExamples | src/Python/Visualization/CameraModel1.py | Python | apache-2.0 | 9,220 | [
"VTK"
] | 3a4b15bf0bdfa1ce6855dda8ab7b6f254b99ca9869c1643e8770b5c347ac52f9 |
'''
synbiochem (c) University of Manchester 2016
synbiochem is licensed under the MIT License.
To view a copy of this license, visit <http://opensource.org/licenses/MIT/>.
@author: neilswainston
'''
# pylint: disable=invalid-name
# pylint: disable=too-many-arguments
import os
from shutil import rmtree
import panda... | synbiochem/biochem4j | sbcdb/utils.py | Python | mit | 2,044 | [
"VisIt"
] | 7f5026b6d074621cce0d604880268ad0820f60ed1c631940cca1b8f93d4e4d2b |
from numpy import (linspace, zeros, meshgrid, abs, empty, arange, int32,
unravel_index, dtype)
from multiprocessing import Pool
from ..solvers import solver_dict, get_solver_name
# attempt to import plotting libraries
try:
from matplotlib import pyplot
from mpl_toolkits.mplot3d import axes3... | pstjohn/cobrapy | cobra/flux_analysis/phenotype_phase_plane.py | Python | gpl-2.0 | 12,577 | [
"Mayavi"
] | 01a572efe05ad8820ae0ab1490f8ea06d55cdca7d9806751f78619df4ffecbd0 |
import sys
import unittest
from collections import OrderedDict
from . import new_pkg_universe_builder
from britney2.installability.solver import compute_scc, InstallabilitySolver, OrderNode
class TestInstTester(unittest.TestCase):
def test_basic_inst_test(self):
builder = new_pkg_universe_builder()
... | Debian/britney2 | tests/test_inst_tester.py | Python | gpl-2.0 | 25,980 | [
"VisIt"
] | cecd3f9eac42e9fda657e09930b3c2bb4763ff0ed5af94dce1ca64a2767d13c7 |
""" unit test for Watchdog.py
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# imports
import os
from mock import MagicMock
# sut
from DIRAC.WorkloadManagementSystem.JobWrapper.Watchdog import Watchdog
mock_exeThread = MagicMock()
mock_spObject = Mag... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_Watchdog.py | Python | gpl-3.0 | 958 | [
"DIRAC"
] | cb21cc872602f4e6bc6b12fb6210dfe955c6f0a572bd558d1c34af08f86b429b |
#!/usr/bin/env python
# Copyright 2014-2019 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | sunqm/pyscf | pyscf/lo/vvo.py | Python | apache-2.0 | 4,717 | [
"CRYSTAL",
"PySCF"
] | 368ee9c7c6b5c2277831d5a3404c5dff7896b71406af6b89c39d138bc0242948 |
# -*- coding: utf-8 -*-
# Copyright 2017 by Rob Gilmore and Shaurita Hutchins. All rights reserved.
# Based on ClustalOmega wrapper copyright 2011 by Andreas Wilm.
#
# Wrapper for Guidance2 by Rob Gilmore (2017). http://guidance.tau.ac.il/ver2/
# Used _ClustalOmega.py as template.
#
# This code is part of the Biopytho... | datasnakes/Datasnakes-Scripts | examples/example-data/Alignment_Filter/pal2nal.py | Python | mit | 4,390 | [
"Biopython"
] | fe111283ecb5d0cc2030df2941e77510d5cb3758910ab8f47d4d6d715be9a125 |
#!/usr/bin/env python
#
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# A... | rkashapov/buildbot | worker/setup.py | Python | gpl-2.0 | 5,594 | [
"Brian"
] | 3d6ae295483aff128eb059b91a256d9b809d5756d2c0d5aace21eac5c39fe8ee |
""" General Message Queue Interface to create Consumers and Producers
"""
from DIRAC import gLogger, S_OK
from DIRAC.Resources.MessageQueue.MQProducer import MQProducer
from DIRAC.Resources.MessageQueue.MQConsumer import MQConsumer
from DIRAC.Resources.MessageQueue.MQConnectionManager import MQConnectionManager
from D... | petricm/DIRAC | Resources/MessageQueue/MQCommunication.py | Python | gpl-3.0 | 2,780 | [
"DIRAC"
] | c8dc285226f1a5d2ba9059167d3eee03da1fbacc9a4a68c3896365d1f9536141 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015-2020, Exa Analytics Development Team
# Distributed under the terms of the Apache License 2.0
"""
The Atomic Universe
#########################
The :class:`~exatomic.container.Universe` object is a subclass of
:class:`~exa.container.Container` that stores data coming from com... | exa-analytics/atomic | exatomic/core/universe.py | Python | apache-2.0 | 15,830 | [
"ADF",
"Gaussian",
"MOLCAS",
"NWChem",
"cclib"
] | 1f31d57d05da38fb42cc5e419829227514fb87fcf362521adeb57061626515e4 |
import logging
import types
import simplejson
from dirac.lib.base import *
from dirac.lib.diset import getRPCClient, getTransferClient
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.Core.Utilities import Time, List
from DIRAC.AccountingSystem.Client.ReportsClient import ReportsClient
from dirac.lib.webBase impor... | myco/VMDIRAC | Web/controllers/systems/virtualmachines.py | Python | gpl-3.0 | 8,504 | [
"DIRAC"
] | 2a1cf9326cfc68916a1e67235867cd514d481fc5e48cf36f069532c81017516b |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright 2015-2016 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#... | guoxuesong/deepstacks | examples/neon/mnist_mlp.py | Python | mit | 3,945 | [
"Gaussian"
] | edf3a391a6b8ab884a9a3b7c2beb2d2b458ae5ea58685bfa1548da3685b04a62 |
import vtk
from glob import glob
import os
file_path = "/raid/home/ksansom/caseFiles/mri/VWI_proj/case1/fluent_dsa2/ensight"
out_dir = "/raid/home/ksansom/caseFiles/mri/VWI_proj/case1/fluent_dsa2/vtk_out"
file_pattern = "case1_dsa-5-?.????.dat.encas"
filelist = sorted(glob(os.path.join(file_path, file_pattern)))
if... | kayarre/Tools | vtk/ensight2vtk_parallel.py | Python | bsd-2-clause | 1,995 | [
"VTK"
] | c51872c8afaeae0ca17e224a8647f5b69fa2b8a871c4569958d88a92a77cc015 |
# -*- coding: utf-8 -*-
"""Main IPython class."""
#-----------------------------------------------------------------------------
# Copyright (C) 2001 Janko Hauser <jhauser@zscout.de>
# Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu>
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distribu... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/IPython/core/interactiveshell.py | Python | bsd-2-clause | 130,796 | [
"VisIt"
] | 67116d21803b44da879bbc700944de50a242df8f999354905ede2e3d6e7135e4 |
""" Modified from simphony-kratos/simkratos/tests/cfd/test_kratos_cfd.py
"""
import os
from mayavi.scripts import mayavi2
from simphony.core.cuba import CUBA
from simphony.engine import kratos
from KratosMultiphysics import *
from KratosMultiphysics.IncompressibleFluidApplication import *
from KratosMultiphysics.Flu... | simphony/simphony-mayavi | examples/krato-cfd-example.py | Python | bsd-2-clause | 1,440 | [
"Mayavi"
] | f0077c374cf1fbb1459ec302b7441802ab6fce7f51895b5938edb91df5819ff7 |
from visualizer import *
from plugins.IRTKPlugin import IRTKPluginMixin
from plugins.VTKPlugin import DatasetTypes,VTKProps
from plugins.SegmentPlugin import SegmentTypes,SegSceneObject,DatafileParams
from ..ui import Ui_CTMotionProp
class CTmotionProjPropWidget(QtWidgets.QWidget,Ui_CTMotionProp):
def __init__(s... | ericspod/Eidolon | eidolon/plugins/CTMotionTrackPlugin.py | Python | gpl-3.0 | 9,497 | [
"VTK"
] | 4608ba0362a874a76f80ae78b159d3047eb042ca17bd55e7a22edc7c0d6db3b1 |
from bot.command_map import command_map
import logging
import os
import requests
from bs4 import BeautifulSoup
logger = logging.getLogger()
cryptos = (
'1ST', '2GIVE', '808', 'AC', 'ACT', 'ADA', 'ADK', 'ADL', 'ADT', 'ADX',
'AE', 'AEON', 'AGRS', 'AMBER', 'AMP', 'ANC', 'ANS', 'ANT', 'APX', 'ARDR',
'ARK', 'AT... | LEXmono/q | bot/commands/stock.py | Python | apache-2.0 | 6,452 | [
"Amber"
] | a2faa90a4e240e8a15ead6d6ec5016321f8c8114ea3edd55824ac32b41a1ada5 |
# ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | wdwvt1/scikit-bio | skbio/diversity/alpha/_ace.py | Python | bsd-3-clause | 3,748 | [
"scikit-bio"
] | 33bb0fcdbe9afaedf4c7d81505202a67fdad1468511beffd713b7771d7fef7b7 |
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law. You may use it, redistribute it and/or modify
# it, in whole or in part, provided that you do so at your own risk and do not
# hold the developers or copyright holders liable for any claim, damages, or
# other l... | zhengbx/BBQ | dmet_hyd.20130129/settings.py | Python | gpl-3.0 | 2,546 | [
"CP2K",
"Molpro"
] | 3c2f49110aa11c99e4a7bfb525a3ad74ae3f8743af6e3826474fc88c229a599e |
import contextlib
import functools
import warnings
import pandas as pd
from . import indexing
from . import groupby
from . import ops
from . import utils
from . import variable
from .alignment import align
from .common import AbstractArray, BaseDataObject
from .coordinates import DataArrayCoordinates, Indexes
from .d... | clarkfitzg/xray | xray/core/dataarray.py | Python | apache-2.0 | 38,383 | [
"NetCDF"
] | 5daed3593dbcc1c0d78afae472787a0a16072c6d548574379537b524c2a5e5ff |
import vtk
import numpy as np
nx = 101
ny = 11
x = np.linspace(0,100,nx)
y = np.linspace(0,10,ny)
points = vtk.vtkPoints()
points2 = vtk.vtkPoints()
polys = vtk.vtkCellArray()
polys2 = vtk.vtkCellArray()
temps = vtk.vtkFloatArray()
temps.SetNumberOfComponents(1)
temps.SetName("Temps")
# temps2 = vtk.vtkFloatArray... | tjssmy/CuviewerPy | vtkTests/BandedStrip.py | Python | mit | 3,330 | [
"VTK"
] | a33f3f522aecb2db4351ac5e5504ab2eebcd0b1396c51628463f1271ec14768c |
"""
A shell tool that constructs a query from arguments and flags and
outputs results. This is different from a PipeTool as StartTool can
only occur at the beginning of a chain.
"""
from octopus.server.DBInterface import DBInterface
from octopus.shelltool.CmdLineTool import CmdLineTool
class StartTool(CmdLineTool):
... | octopus-platform/bjoern | python/octopus-tools/octopus/shelltool/StartTool.py | Python | gpl-3.0 | 962 | [
"Octopus"
] | 1fc0c0b656184314dbbae053ae1b9c2a46c9af158610c4535c61f79822d4177d |
"""
This script find best fitting Halo Occcupation Distribution (HOD) parameters
that simultaneously fit the number density n(z) and projected correlation
function.
mpirun -n 4 python3 fit_hod_mpi.py param.json
Options:
param [=param.json]: parameter file
nmocks [=1]: number of mock catalogues used for corr_p... | junkoda/mockgallib | script/fit_hod.py | Python | gpl-3.0 | 8,407 | [
"Galaxy"
] | 7f6fadbdc6348ab3225d226c29dc3ce99eed34e6cdfcae1f1bdcefc7f99ef3d1 |
# coding: utf-8
from __future__ import unicode_literals
import base64
import datetime
import hashlib
import json
import netrc
import os
import random
import re
import socket
import sys
import time
import math
from ..compat import (
compat_cookiejar,
compat_cookies,
compat_etree_fromstring,
compat_getp... | oskar456/youtube-dl | youtube_dl/extractor/common.py | Python | unlicense | 122,985 | [
"VisIt"
] | 0b1a6e91ae65e5e5ea63af1884f12bdc422b22a1ca0d2f1ca866424b5660bea4 |
# Copyright 2015 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | firebase/grpc | src/python/grpcio/grpc_core_dependencies.py | Python | apache-2.0 | 66,878 | [
"ORCA"
] | 5a54b63d2133962e61d2cbcb35ebb46141937f91084492c2b0872b5c66f20e59 |
"""MPF plugin for sounds. Includes SoundController, Channel, Sound, Track, and
StreamTrack parent classes."""
# sound.py
# Mission Pinball Framework
# Written by Brian Madden & Gabe Knuth
# Released under the MIT License. (See license info at the end of this file.)
# Documentation and more info at http://missionpinbal... | jabdoa2/mpf | mpf/media_controller/core/sound.py | Python | mit | 31,100 | [
"Brian"
] | a54bc410bd978b5a128459d0ccbda916c0b5a9a89921da677831512c142a62a8 |
# -*- coding: utf-8 -*-
"""
Bok choy acceptance tests for problems in the LMS
"""
from textwrap import dedent
from common.test.acceptance.fixtures.course import CourseFixture, XBlockFixtureDesc
from common.test.acceptance.pages.common.auto_auth import AutoAuthPage
from common.test.acceptance.pages.lms.courseware imp... | stvstnfrd/edx-platform | common/test/acceptance/tests/lms/test_lms_problems.py | Python | agpl-3.0 | 7,862 | [
"VisIt"
] | baf762a86274e225b71aaa9cb6307580c123bcc30d82c4d02154219220eda456 |
from behave import when, given, then
from selenium.webdriver.support.ui import Select
@when(u'I visit the "{page_name}" page')
def step_impl(context, page_name):
context.browser.get(context.get_url(page_name))
@when(u'I click the x button next to "{text}"')
def step_impl(context, text):
button = context.bro... | libretees/libreshop | libreshop/tests/steps/store.py | Python | gpl-3.0 | 452 | [
"VisIt"
] | 80a8c0b0651574674cea19c633380a58180e1c16afdf990d8aa17bd9d1c3e507 |
import sys
import nest
import nest.raster_plot
# ###########################################
# Configuration
# ###########################################
nest.SetKernelStatus({"resolution": 0.1})
if len(sys.argv) > 1:
nb_threads = sys.argv[1]
else:
nb_threads = 1
nest.SetKernelStatus({"local_num_threads": int... | vitay/ANNarchy | benchmarks/brunel/Nest-Brunel-static.py | Python | gpl-2.0 | 2,779 | [
"NEURON"
] | 96a97737325fdb40426d50854ef9d2d687c7ead180a2114756f0b047594c1332 |
# Copyright 2018 Joseph Wright <joseph@cloudboss.co>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | cloudboss/bossimage | bossimage/core.py | Python | mit | 24,516 | [
"Galaxy"
] | 6bd2e9a4034a60ee84b7954e94e4f382d654f3d5966973da539aaf7583c34fb1 |
"""
A VTK RenderWindowInteractor widget for wxPython.
Find wxPython info at http://wxPython.org
Created by Prabhu Ramachandran, April 2002
Based on wxVTKRenderWindow.py
Fixes and updates by Charl P. Botha 2003-2008
Updated to new wx namespace and some cleaning up by Andrea Gavana,
December 2006
"""
"""
Please see... | Wuteyan/VTK | Wrapping/Python/vtk/wx/wxVTKRenderWindowInteractor.py | Python | bsd-3-clause | 24,647 | [
"VTK"
] | 116b6b4d1398211db15c2247b0fe0e0f89ba5d2c54ba8f98bb73283f42abd06d |
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | aldian/tensorflow | tensorflow/python/distribute/input_lib.py | Python | apache-2.0 | 78,526 | [
"VisIt"
] | d30e47304ac642ac0c57960b43a72791d79baf58e07d0ab5528bfe3eba54078f |
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
The vis package implements various visualization tools. For example, a VTK
Structure viewer.
"""
| vorwerkc/pymatgen | pymatgen/vis/__init__.py | Python | mit | 195 | [
"VTK",
"pymatgen"
] | 7ec361730efbba900e1d02459be9d54a4404fe44105b5a2dbe556f5d7392c4ba |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Enumerator with the libxc identifiers.
This is a low level object, client code should not interact with LibxcFunc directly
but use the API provided by the Xcfunc object defined in core.xcfunc.py.
Part of thi... | xhqu1981/pymatgen | pymatgen/core/libxcfunc.py | Python | mit | 13,121 | [
"pymatgen"
] | 1073e56107cc370aa334d243186edadec5b1711978a744f822c02b5926c7f0c0 |
"""
=============================================
Integration and ODEs (:mod:`scipy.integrate`)
=============================================
.. currentmodule:: scipy.integrate
Integrating functions, given function object
============================================
.. autosummary::
:toctree: generated/
quad ... | grlee77/scipy | scipy/integrate/__init__.py | Python | bsd-3-clause | 3,957 | [
"Gaussian"
] | 51fc242311883fae1b305034734e0d8ab786b5a887a37e35446707e079e24ba0 |
# Copyright 2017 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | forseti-security/forseti-security | tests/services/model_tester.py | Python | apache-2.0 | 5,808 | [
"VisIt"
] | 915500d52a305d351fb2b020526899479439c0428caa0d4b605a692d0c51ad37 |
# -*- coding: utf-8 -*-
"""A plugin that extracts browser history from events."""
from __future__ import unicode_literals
import collections
import re
from urllib import parse as urlparse
from plaso.analysis import interface
from plaso.analysis import logger
from plaso.analysis import manager
from plaso.containers ... | rgayon/plaso | plaso/analysis/browser_search.py | Python | apache-2.0 | 11,072 | [
"VisIt"
] | ade9d054bc0917c11d6ba5a741737d29aa0852a3d5a39e4b2a81a77c275f855a |
"""Detect presence and estimate sample-of-arrival of a DSSS signal."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import numpy as np
from thrifty import toads_data
from thrifty.signal_utils impor... | swkrueger/Thrifty | thrifty/soa_estimator.py | Python | gpl-3.0 | 6,511 | [
"Gaussian"
] | 231cef32a1afb910b7458698c906105ed6ea4d7297f756ea368bef6c9baddf13 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
import sys
class TestClip(Testing.vtkTest):
def testImage2DScalar(self):
planes = ['XY', 'XZ', 'YZ']
expectedNCells = [38, 46, 42]
for plane, nCells in zip... | mspark93/VTK | Filters/General/Testing/Python/tableBasedClip.py | Python | bsd-3-clause | 6,508 | [
"VTK"
] | 9b23e7cae906379492a15c6ccd4b22671c57281428b568884ea772fde0742d6e |
#!/usr/local/bin/jython
# -*- coding: utf-8 -*-
# Written by Shunsuke Haga
# Date: 2017/04/12
#
# Written for Python 2.7
# This script download Chicago marathon race result(2016) and store it as a mdb format.
import urllib, urllib2
import os
try:
from bs4 import BeautifulSoup
except:
print "Need to install lib... | shunsuke218/CIT285-2017-final | download_data.py | Python | mit | 4,586 | [
"Amber"
] | e37e644aa51a3b465f93f1c0df34d5c3ce74af223aa713a939debc3cf267648c |
"""Python toolkit for Tinker Pop 3 Gremlin Server."""
from goblin.app import Goblin
from goblin.driver import AsyncGraph, Cluster, DriverRemoteConnection, Graph
from goblin.element import Edge, Vertex, VertexProperty
from goblin.properties import Boolean, Float, Integer, Property, String
| ZEROFAIL/goblin | goblin/__init__.py | Python | agpl-3.0 | 290 | [
"TINKER"
] | 54b8814370a3d59f5d85114733365483697f3861340bcda149a09bdcfc81b724 |
# GridCal
# Copyright (C) 2022 Santiago Peñate Vera
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 3 of the License, or (at your option) any later version.
#
# This ... | SanPen/GridCal | src/GridCal/Engine/Sparse/csc_numba.py | Python | lgpl-3.0 | 30,959 | [
"VisIt"
] | ca563ec2fe37f9637d8e71b981407494cec3f9546d07ff864d05df18e89cbedb |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Views tests for the OSF."""
from __future__ import absolute_import
import datetime as dt
import httplib as http
import json
import math
import time
import unittest
import urllib
import datetime
import mock
from nose.tools import * # noqa PEP8 asserts
from modularodm... | abought/osf.io | tests/test_views.py | Python | apache-2.0 | 183,143 | [
"Brian"
] | bcb8a8d81e2d765111211c8c0b22c351b4129b927f0a363ee2d1c1022b6ab685 |
#!/usr/bin/python
"""
Copyright 2013 Paul Willworth <ioscode@gmail.com>
This file is part of Galaxy Harvester.
Galaxy Harvester 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 th... | clreinki/GalaxyHarvester | resourceFinder.py | Python | agpl-3.0 | 2,766 | [
"Galaxy"
] | c9fd04471b954a4420aa2a136f0b4c9ae534d67498496d26b9d20682580e4d4c |
#
#@BEGIN LICENSE
#
# PSI4: an ab initio quantum chemistry software package
#
# 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 ver... | spring01/libPSI | lib/python/driver.py | Python | gpl-2.0 | 93,244 | [
"Gaussian",
"Psi4"
] | bd38b0f7499dd38684c8302b33d998c3a01c4cba602d11da562e6763766dc4e4 |
# -*- coding: utf-8 -*-
r"""This file is part of SkyLab
Skylab is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed... | kkrings/skylab | skylab/utils.py | Python | gpl-3.0 | 18,124 | [
"Gaussian"
] | bee88ab5ba7794f61267b7dcf73de0e40a6450495cef5e518dd2206393d36a73 |
"""Tests for user-friendly public interface to polynomial functions. """
from sympy.polys.polytools import (
Poly, PurePoly, poly,
parallel_poly_from_expr,
degree, degree_list,
LC, LM, LT,
pdiv, prem, pquo, pexquo,
div, rem, quo, exquo,
half_gcdex, gcdex, invert,
subresultants,
resu... | postvakje/sympy | sympy/polys/tests/test_polytools.py | Python | bsd-3-clause | 106,722 | [
"Gaussian"
] | 49ef06db3e68749e15765dbfb3543e21b2f8e1ff77068982932a5591b82349e8 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/mooseutils/tests/test_MooseDataFrame.py | Python | lgpl-2.1 | 3,516 | [
"MOOSE"
] | 8d6dd20b805cfb926c5a558f5a2805011144f166500e62f0fb4bed51b9e9bf2e |
'''
Created on Jul 14, 2011
@author: sean
'''
from __future__ import print_function
from opcode import *
import _ast
import sys
from graphlab.meta.utils import py3, py3op, py2op
from graphlab.meta.asttools.visitors.print_visitor import print_ast, dump_ast
from graphlab.meta.asttools import cmp_ast
if py3:
class... | ypkang/Dato-Core | src/unity/python/graphlab/meta/decompiler/simple_instructions.py | Python | agpl-3.0 | 29,481 | [
"VisIt"
] | facdf6e351439cf1b99132484f8f8478b39f36a529e4ef7376fac672f656a010 |
# 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.
# import iris tests first so that some things can be initialised before importing anything else
import iris.tests as tests
i... | pp-mo/iris | lib/iris/tests/test_analysis.py | Python | lgpl-3.0 | 55,620 | [
"NetCDF"
] | 09e3034030d49d75df4f452be61514df974399223cc66e9b7e392c2cad05752d |
#
# @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/qcdb/testing.py | Python | lgpl-3.0 | 9,111 | [
"Psi4"
] | cc31e83dfab1e19fb815a13e0552714d130c1e8eada6a383ca78713e3d9e1b1d |
"""
sentry.conf.server
~~~~~~~~~~~~~~~~~~
These settings act as the default (base) settings for the Sentry-provided web-server
:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import absolute_import
from django.conf.global_se... | wong2/sentry | src/sentry/conf/server.py | Python | bsd-3-clause | 23,387 | [
"GULP"
] | a58770d38c4fe0f4d1ad23e80dd1c4b6b167907881a7c4881c0f63582b8d0a28 |
#
# Copyright 2015-2016, 2020 James Kermode (Warwick U.)
# 2019 James Brixey (Warwick U.)
# 2016 Henry Lambert (King's College London)
# 2015 Lars Pastewka (U. Freiburg)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# This program... | libAtoms/matscipy | matscipy/socketcalc.py | Python | lgpl-2.1 | 41,228 | [
"ASE",
"CASTEP",
"Matscipy",
"VASP"
] | 61aa1cbb3ad98aecd1ddd35ae78ab7b3c549f26f8c432be0a0de306c0d0ec082 |
"""
DIRAC - Distributed Infrastructure with Remote Agent Control
The distributed data production and analysis system of LHCb and other VOs.
DIRAC is a software framework for distributed computing which
allows to integrate various computing resources in a single
system. At the same time it integrates al... | arrabito/DIRAC | __init__.py | Python | gpl-3.0 | 5,925 | [
"DIRAC"
] | 707974fec48bc8d2d52ce875c2263412613d20c27a31557fe5d1b17b5d46038e |
from matplotlib import pyplot as plt
from skimage.feature import blob_dog, blob_log, blob_doh
from math import sqrt
from skimage.color import rgb2gray
from PIL import Image, ImageOps
import numpy as np
im = Image.open("assets/mycheck.jpg", 'r')
im = ImageOps.invert(im)
width, height = im.size
pixel_values = np.array(n... | avicorp/firstLook | src/dataManipulation/checkLayout.py | Python | apache-2.0 | 1,423 | [
"Gaussian"
] | 2e873594b8be08f5fecfbde0b7a3f8c2df2fadffb8011ff4ab42fac5ea4abddb |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2008-2010, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License ... | NetNow/wmi-samba | pysamba/rpc/rpc_request.py | Python | gpl-2.0 | 1,782 | [
"VisIt"
] | 061a50d7de3946748e6456fab862622b5e7691fa4f9f86e281515941adbb0a81 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.