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 |
|---|---|---|---|---|---|---|---|
# Copyright (C) 2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | KaiSzuttor/espresso | testsuite/scripts/tutorials/test_04-lattice_boltzmann_part3.py | Python | gpl-3.0 | 1,042 | [
"ESPResSo"
] | cc7a4e7c15b6290ee2c05f42663f74f46f3baad4547f19d353a188bcbcd08e79 |
"""
Test the about xblock
"""
import datetime
import pytz
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 opaque_keys.edx.locations import SlashSeparatedCourseKey
from course_... | htzy/bigfour | lms/djangoapps/courseware/tests/test_about.py | Python | agpl-3.0 | 23,595 | [
"VisIt"
] | 43221702578b27945be7f42c9453681745e848d9389cd1f824288cac33f29af7 |
#* 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/lgpl-2.1.html
from PyQt5 ... | harterj/moose | python/peacock/base/MediaControlWidgetBase.py | Python | lgpl-2.1 | 9,084 | [
"MOOSE"
] | 33246a3b29831f46b4ae3bb4230b3603ff25eb7932d9d2da3cd074164f4cd637 |
import random
import numpy as np
from nose import with_setup
from numpy.testing import assert_almost_equal
from pybbn.gaussian.inference import GaussianInference
def setup():
"""
Setup.
:return: None.
"""
random.seed(37)
np.random.seed(37)
np.set_printoptions(
precision=10,
... | vangj/py-bbn | tests/gaussian/test_inference.py | Python | apache-2.0 | 6,123 | [
"Gaussian"
] | 70c930f5f52dcc00cbd885de2a40234fd31a40e89a8d3dc17e8c91b00338f67d |
import unittest
import numpy as np
import warnings
warnings.simplefilter('error')
from nose.plugins.attrib import attr
from moltools import read_dal
HF_FILE = """
************************************************************************
*************** Dalton - An Electronic Structure Program ************... | fishstamp82/moltools | moltools/test/test_read_dal.py | Python | mit | 51,427 | [
"Dalton"
] | e4f406d527f56a25e6856a9d096cd12298eed58cd80985b76f6c3ce81f727d80 |
import os
from DIRAC import gConfig, gLogger
from DIRAC.Core.Utilities import List
from DIRAC.Core.DISET.AuthManager import AuthManager
from DIRAC.ConfigurationSystem.Client.Helpers import Registry
from DIRAC.Core.Utilities.Extensions import extensionsByPriority
# from DIRAC.FrameworkSystem.Client.ProxyManagerClient ... | DIRACGrid/WebAppDIRAC | src/WebAppDIRAC/Lib/SessionData.py | Python | gpl-3.0 | 8,005 | [
"DIRAC"
] | f3e6c0140c307bb17375d04dc99164df14a4c14ce816e89ca0c155e545433e14 |
import calendar
import csv
import datetime
import gzip
import itertools
import math
import operator
import os
import random
import re
import pickle
import numpy
import scipy
import scipy.stats
import scipy.signal
import scipy.spatial
import pandas
from . import romannumerals
from functools import reduce
# ToDo: Split... | phageghost/pg_tools | pgtools/toolbox.py | Python | mit | 105,168 | [
"Brian",
"Gaussian",
"VisIt"
] | 43244ed6291f33cc8dba69a15d3c0ad4ad011e7f39f0f17a78d579c2ba6456c3 |
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from nose.tools import * # noqa PEP8 asserts
from osf_tests import factories
from tests.base import OsfTestCase
from website.util import api_url_for
from website.views import find_bookmark_collection
class Te... | TomBaxter/osf.io | osf_tests/test_search_views.py | Python | apache-2.0 | 15,093 | [
"Brian"
] | b0dfa51c8ad881dcb11c359738e410bfbf98e66d2b2d23df2e9bd4308772dfdb |
import os
from flask import render_template, flash, request
from subprocess import check_output
from uuid import uuid1
from app import app
from app.config import UPLOAD_FOLDER, SECRET_KEY
from werkzeug.utils import secure_filename
app.secret_key = SECRET_KEY
ALLOWED_EXTENSIONS = ['faa', 'txt', 'fasta', 'fa']
print("U... | Raghavan-Lab/BioDashboard | app/views/find_orthologs_view.py | Python | gpl-2.0 | 3,586 | [
"BLAST"
] | 9200f5787d0495c8b1ffaab1d8ecf891c7076dabcfbeacc69149b332dc209e9c |
#!/usr/bin/python3
# Online Python Tutor
# Copyright (C) 2010-2011 Philip J. Guo (philip@pgbovine.net)
# https://github.com/pgbovine/OnlinePythonTutor/
#
# 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 Fou... | cemc/python3jail | static/maketrace/p4_logger.py | Python | gpl-3.0 | 16,405 | [
"EPW"
] | ef4b2a752521983621babfe30fc116e80ad5f5aea9a26f341c1c6c0accf8f970 |
import math
import heapq
import vmdutil
import re
from collections import namedtuple
from vmdutil import vmddef
from vmdutil import pmxutil
from vmdutil import pmxdef
from vmdutil import vmdmotion
FRAME_MIN = 0
FRAME_MAX = 4294967295 # UINT32_MAX
class PriorityQueue():
def __init__(self):
self.items = s... | Hashi4/vmdgadgets | vmdgadgets/lookat.py | Python | apache-2.0 | 34,404 | [
"VMD"
] | a3f1f7600c064dc7d0f8d5dc75df4a60f1dc587e1a712cfa166df7471ce853f3 |
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2014 Michael Cook <mcook@mackal.net>
#
# GPLv3
"""
Processes an eqlog file and generates SQL to update factions
Should work with a full log, but cleaning up the log will be quicker
The file needs at least the zone enter messages, faction ... | mackal/faction.py | faction3.py | Python | gpl-3.0 | 35,996 | [
"CRYSTAL"
] | 3ff706a08803752823f369f7536a476e173f20303ca77523475fc50eea930399 |
#!/usr/bin/python
'''This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be us... | Thymo-/PiTraffic | pitraffic.py | Python | gpl-3.0 | 12,759 | [
"Amber"
] | 3bc30025f859aada5979bc0ebeacf648f8c24d9eaaf09639d7175b170ec0c5ab |
import os
import sys
from ase import Atom
from gpaw import GPAW
from gpaw.cluster import Cluster
from gpaw.test import equal
fname='H2_PBE.gpw'
fwfname='H2_wf_PBE.gpw'
txt = None
# write first if needed
try:
c = GPAW(fname, txt=txt)
c = GPAW(fwfname, txt=txt)
except:
s = Cluster([Atom('H'), Atom('H', [0,... | robwarm/gpaw-symm | gpaw/test/mgga_restart.py | Python | gpl-3.0 | 1,316 | [
"ASE",
"GPAW"
] | 8232fea05d1d070a225d955052581ce1cbe5fd2e1916dc756b5847cb0c336882 |
# Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com>
# Copyright: (c) 2018-2021, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import json
import os.path
im... | abadger/ansible | lib/ansible/cli/galaxy.py | Python | gpl-3.0 | 80,811 | [
"Galaxy"
] | 8ac2584b2a52cd4eba3dba91710dad0906eb868192a82a1843934bdebebdb5ff |
#!/usr/bin/env python
########################################################################
# File : dirac-wms-get-wn
# Author : Philippe Charpentier
########################################################################
"""
Get WNs for a selection of jobs
Usage:
dirac-wms-get-wn [options] ... LFN|File
"""
... | yujikato/DIRAC | src/DIRAC/WorkloadManagementSystem/scripts/dirac_wms_get_wn.py | Python | gpl-3.0 | 6,911 | [
"DIRAC"
] | 1b159a5bfd0054a33d5f45269fa51a29d845d582fd82f9f8ac6899c41e65f862 |
##
# Copyright 2009-2015 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en),
# the Hercules foundation (htt... | valtandor/easybuild-easyblocks | easybuild/easyblocks/n/neuron.py | Python | gpl-2.0 | 8,594 | [
"NEURON"
] | 68c85e9c91b8fae45106c22ac657ca384b6a7ea97fab077e697a1bbc2b85af40 |
from __future__ import division, absolute_import, print_function
import numpy as np
import scipy.sparse as ss
import scipy.sparse.csgraph as ssc
from scipy.linalg import solve
from collections import deque
from ..mini_six import range
class TransformMixin(object):
def kernelize(self, kernel):
'''Re-weight acc... | all-umass/graphs | graphs/mixins/transformation.py | Python | mit | 9,542 | [
"Gaussian"
] | 36a9643692fb3b35ecf53c7fe37c840c56832d795266c71ad2cebe820b7e3937 |
# python3
# Copyright 2019 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 applicab... | GoogleCloudPlatform/ml-pipeline-generator-python | examples/taxi/xgb/model/taxi_preprocess.py | Python | apache-2.0 | 8,947 | [
"CRYSTAL"
] | 4e7a005c867dc7cc5b785b5f8a0b2b9f80b505207b1d4d1c96d0dde01ccf6ccd |
import numpy as np
from signal_likelihood import SignalLikelihood
import unittest
from numpy.testing import assert_array_almost_equal,assert_almost_equal, assert_equal
import math
"""
Models the ambient audio scenery with multiple, independent
Gaussian distributions. Based on that model we can distinguish
between th... | rfcx/defunct | sound-localization/localization/gaussian.py | Python | apache-2.0 | 4,871 | [
"Gaussian"
] | 474c5cfadb85ce0f381f62396f4590011fd6b42fa4c29642d8df84e4844216ff |
"""
.. moduleauthor:: Johan Comparat <johan.comparat__at__gmail.com>
General purpose:
................
The class ModelSdssSpectra is dedicated to modelling and extracting information from stacks of spectra.
"""
import matplotlib
matplotlib.use('pdf')
import matplotlib.pyplot as p
import os
import astropy.cosmology ... | JohanComparat/pySU | galaxy/python/ModelSdssSpectra.py | Python | cc0-1.0 | 12,042 | [
"Firefly",
"Gaussian"
] | 17b7adbaf9ca2784a20b71ab16da237c5075194955ad883399191a9f35f9aec2 |
#!/usr/bin/env python
#-*- coding: utf-8 -*-
""" run_sim.py - an example python-meep simulation of a dielectric sphere scattering a broadband impulse,
illustrating the use of the convenient functions provided by meep_utils.py
(c) 2014 Filip Dominec, see http://fzu.cz/~dominecf/meep/ for more information """
import ... | FilipDominec/python-meep-utils | spdc.py | Python | gpl-2.0 | 7,804 | [
"Gaussian",
"exciting"
] | b858154cbd483a1a5152320ac002ce32050a575b8b1948e6c83e8c17b2334421 |
#
# Copyright 2016-2019 Universidad Complutense de Madrid
#
# This file is part of Numina
#
# SPDX-License-Identifier: GPL-3.0+
# License-Filename: LICENSE.txt
#
"""A representation of the a hardware device"""
import inspect
from .device import DeviceBase
class HWDevice(DeviceBase):
def __init__(self, name, or... | guaix-ucm/numina | numina/instrument/hwdevice.py | Python | gpl-3.0 | 1,772 | [
"VisIt"
] | 78be0ca8f15468575f4b7ba85866e4364cef03089e6fb19425db974b853ba7c2 |
# -*- coding: utf-8 -*-
"""
Bible
-----
A minimalist app to store and recall bible verses
:copyright: (c) 2015 by Brian Kim
:license: BSD
"""
from flask import Flask
from api import api
import model
def create_app(conf='conf/debug.cfg'):
"""
use this method to create an instance of the app for se... | briansan/bible | bible/__init__.py | Python | bsd-2-clause | 656 | [
"Brian"
] | 1cc8bf0d2512d6f4f27c5d5053d171cc84dfab243df43d2bbc6291fc7a41417d |
#!/usr/bin/python
# Use 1 or 2 arguments:
# 1 (read): Gaussian output file
# 2 (read): Gaussian fchk file
# 3 (write): generic output file (default: append ".gen" to Gaussian output)
import sys
import re
#=============================
# Get input files
try:
gau_output = sys.argv[1]
except IndexError:
sys.e... | Jellby/ASEP-MD | Tests/scripts/gaussian2gen.py | Python | gpl-3.0 | 5,391 | [
"Gaussian"
] | 033744360fcee3ee4f523bd80817601c170d618ed6a96077db53594919288e4c |
"""Implements API endpoints under ``/api/admin``"""
from typing import Any
from datetime import datetime
from flask import Blueprint, jsonify
from werkzeug.exceptions import abort
from shrunk.client import ShrunkClient
from shrunk.util.decorators import require_login, request_schema
__all__ = ['bp']
bp = Blueprint... | oss/shrunk | backend/shrunk/api/admin.py | Python | mit | 2,263 | [
"VisIt"
] | 46b70d33506cb912785cfe7c071787557f991c2d9bf8b0ef88f501783faa4e30 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import ast
def parse_arg(arg):
t = type(arg).__name__
if t == 'Num':
return arg.n
elif t == 'Str':
return arg.s
elif t == 'Tuple':
return tuple([parse_arg(e) for e in arg.elts])
elif t == 'Name' and arg.id in ('True', 'False'):... | debiatan/utbp | parser.py | Python | gpl-3.0 | 1,225 | [
"VisIt"
] | c22120034eab19aa3a902204a3b79c4c8b7d1a7d88ccdaf68e53cf1211d43e2b |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | francisco-dlp/hyperspy | hyperspy/tests/component/test_components.py | Python | gpl-3.0 | 15,650 | [
"Gaussian"
] | a276f90b3f8a1d7bec86fc2a891181c5922c82d455b9876be000867c4f56b933 |
from PyML.utils import misc
from baseClassifiers import Classifier,IteratorClassifier
from composite import CompositeClassifier
from PyML.containers import ker
from PyML.classifiers import svm
'''classes for model selection'''
__docformat__ = "restructuredtext en"
class Param (IteratorClassifier) :
"""
A ... | cathywu/Sentiment-Analysis | PyML-0.7.9/PyML/classifiers/modelSelection.py | Python | gpl-2.0 | 10,797 | [
"Gaussian"
] | 4115c5b9936cec98a903e3c72aee38c82d43b60f9eb65e1c39fa100edfd4b82c |
##
## teem.py: automatically-generated ctypes python wrappers for Teem
## Copyright (C) 2013, 2012, 2011, 2010, 2009 University of Chicago
##
## 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 S... | Slicer/teem | python/ctypes/teem.py | Python | lgpl-2.1 | 448,845 | [
"VTK"
] | aaf924e4f6577692285c45b34df8494c41e086836ffaa475ed5a9a9964c46664 |
# -*- coding: utf-8 -*-
import unittest
from pybel import BELGraph
from pybel.dsl import ComplexAbundance, Fragment, Protein
from pybel.dsl.namespaces import hgnc
from pybel_tools.selection.group_nodes import get_mapped_nodes
ccl2 = hgnc(name='CCL2')
ccr2 = hgnc(name='CCR2')
ccl2_mgi = Protein('MGI', 'Ccl2')
ccl2_cc... | pybel/pybel-tools | tests/test_mapping.py | Python | mit | 1,918 | [
"Pybel"
] | 5c8a32fb27ed11e00baad82adb06b7162e7e644b7080f060bb2796fa4728c50a |
import numpy as np
import cv2
import core.trackers.fhog as fhog
# ffttools
def fftd(img, backwards=False):
# shape of img can be (m,n), (m,n,1) or (m,n,2)
# in my test, fft provided by numpy and scipy are slower than cv2.dft
return cv2.dft(np.float32(img), flags=(
(cv2.DFT_INVERSE | cv2.DFT_SCALE... | asmateus/flight-stone | fstone/director/core/trackers/kcftracker.py | Python | mit | 14,721 | [
"Gaussian"
] | 30709caf1568ee6bd55bb0273acb81354a553d1bd731a8c2714428e4726c7c57 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# 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)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/coordinates/test_reader_api.py | Python | gpl-2.0 | 7,820 | [
"MDAnalysis"
] | f73030904afdb37584bbee1c8a141bb0c54d78a60c039b6386d8bcf918fe902c |
# Copyright (c) 2003-2010 LOGILAB S.A. (Paris, FRANCE).
# http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# 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, o... | dbbhattacharya/kitsune | vendor/packages/pylint/checkers/classes.py | Python | bsd-3-clause | 22,469 | [
"VisIt"
] | d25c8ab47f31b0e6c27af0a7ebdfe6ba0d34e8d7a5d82590b5580672da074696 |
"""Manage IPython.parallel clusters in the notebook.
Authors:
* Brian Granger
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, d... | cloud9ers/gurumate | environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/clustermanager.py | Python | lgpl-3.0 | 5,867 | [
"Brian"
] | c0adb9e9e6438dc18fdaac3074adaf9583ea917e1df2d10b31814a67f919ca97 |
# Orca
#
# Copyright 2005-2008 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | h4ck3rm1k3/orca-sonar | src/orca/speechserver.py | Python | lgpl-2.1 | 9,557 | [
"ORCA"
] | aba7e16d55fa465dda7de543f25ea4f9c51a6fd1d962592a2bdf319c848f7e0a |
from numpy import linspace
from scipy.special import jn
from tvtk.api import tvtk
from mayavi import mlab
from enable.vtk_backend.vtk_window import EnableVTKWindow
from chaco.api import ArrayPlotData, Plot, OverlayPlotContainer
from chaco.tools.api import PanTool, ZoomTool, MoveTool
def main():
# Create some x-y... | tommy-u/chaco | examples/demo/vtk_example.py | Python | bsd-3-clause | 1,995 | [
"Mayavi",
"VTK"
] | f161c8a350f99a0063c1f12bbc7594992de9f987160b4b63754ffae63356d70a |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El
m = 500
n = 250
display = True
worldRank = El... | mcopik/Elemental | examples/interface/NNLSDense.py | Python | bsd-3-clause | 1,404 | [
"Gaussian"
] | ac906e92aa67cadd01035d97457bb23344371ccbf3eca29073112e2e69a5e524 |
# coding=utf-8
# Copyright 2018 The Tensor2Tensor 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... | rsepassi/tensor2tensor | tensor2tensor/models/research/rl.py | Python | apache-2.0 | 6,100 | [
"Gaussian"
] | f7534f8fb3ec314788d0e6147bb97e3296367b7b626fa54d7a17c113bdaf07bd |
# encoding: utf-8
import StringIO
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import unittest
sys.path.append("../")
import HTMLTestRunner
from Order_List import TestCase_Web_Orderlist as web_Orderlist
# from esss import all_test as web_esss
from esss import TestCase_Client_EsssSales as client_esss
from visi... | NJ-zero/Android | requests_demo/runner/ST_Web_HTMLTestRunner.py | Python | mit | 5,462 | [
"VisIt"
] | a079fdac73d5f5067428b848e0cc4a0ca058c0d469ff902a7d55a9184b7e2b6c |
# Copyright 2004-2017 Tom Rothamel <pytom@bishoujo.us>
#
# 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, m... | kfcpaladin/sze-the-game | renpy/display/layout.py | Python | mit | 50,634 | [
"VisIt"
] | c26a75e006905ff7053c465c5f14266e9c2405e6b30a27c49035808c4a910cdc |
"""
Useful functions for polynomial interpolation.
NOTE: Because system of equations if computed using Gaussian elimination, errors
can be quite large.
"""
def coefficients_to_string(coefficients):
s = []
for i, j in enumerate(coefficients[::-1]):
if j:
if j == int(j): j = int(j)
... | matejm/curve_fitting | src/polynomial_interpolation.py | Python | mit | 3,909 | [
"Gaussian"
] | 8bf579703e7587ed169e1a907ca28cf7a9e2104c26a37139f574807b210afa2e |
import ctypes
import numpy
_cint = numpy.ctypeslib.load_library('libcint', os.path.abspath(os.path.join(__file__, '../../build')))
#_cint4 = ctypes.cdll.LoadLibrary('libcint.so.4')
from pyscf import gto, lib
mol = gto.M(atom='''H 0 0 0;
H .2 .5 .8;
#H 1.9 2.1 .1;
#H 2.0 .3 1.4'''... | sunqm/libcint | testsuite/test_int2e.py | Python | bsd-2-clause | 6,949 | [
"PySCF"
] | 3c28f46661ab566ceda190084e0dd5a0ea30669c514d5a8b953842231114bed2 |
# Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com>
# Copyright: (c) 2018, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os.path
import re
import sh... | apollo13/ansible | lib/ansible/cli/galaxy.py | Python | gpl-3.0 | 71,608 | [
"Galaxy"
] | 1d4b5a4d0c5f71c94be4b73a2fe3d3c94f121dbc8dced3a1e4699df925ea5616 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | pkreissl/espresso | samples/immersed_boundary/addBending.py | Python | gpl-3.0 | 1,450 | [
"ESPResSo"
] | c0dc770efa7b939d8f677efa16e4c7db10768a27a6b3c998838d2cb03800edaa |
#!/usr/bin/env python
#/************************************************************
#*
#* 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 licens... | cac2003/incubator-singa | tool/python/examples/mnist_rbm4.py | Python | apache-2.0 | 1,708 | [
"Gaussian"
] | ecd3783cbf72b1b6ece0bc7fa69261ffe8dc2dd2aff70469a61a59495ff7ea17 |
# spud - keep track of photos
# Copyright (C) 2008-2013 Brian May
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | brianmay/spud | spud/serializers.py | Python | gpl-3.0 | 33,434 | [
"Brian"
] | ac9f60bbe4d9296e90d9aa055670b84e06f18699bd465bc1fe2d926aa722c5d8 |
class Node(object):
def __init__(self, parent, char, value):
self._parent = parent
self._char = char
self._children = {}
self._value = value
self._isset = False
def add_child(self, ch, value):
if ch in self._children:
return self._children[ch]
... | uubram/RTCR | rtcr/trie/trie.py | Python | gpl-3.0 | 12,106 | [
"VisIt"
] | f7b436586efc9261c0987c5bd61fab64e21e907172d5f29c5a7ff5bb91d05fe0 |
from sympy import (meijerg, I, S, integrate, Integral, oo, gamma, cosh,
hyperexpand, exp, simplify, sqrt, pi, erf, erfc, sin, cos,
exp_polar, polygamma, hyper, log, expand_func)
from sympy.integrals.meijerint import (_rewrite_single, _rewrite1,
meijerint_indefinite, _inflat... | Shaswat27/sympy | sympy/integrals/tests/test_meijerint.py | Python | bsd-3-clause | 27,490 | [
"Gaussian"
] | 6c4b20f70647ccecdba784e9fff3cadeddb0678dc5e68704f9915c68a46e2465 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | adhoc434/growninnyc | config/urls.py | Python | bsd-3-clause | 1,273 | [
"VisIt"
] | d980ca505a51da62d2f8c6af2061db80d986e8c92c398e19ca4e4e2450132b32 |
#*************************************************************************
# Copyright (C) 2015 by Arash Bakhtiari
# You may not use this file except in compliance with the License.
# You obtain a copy of the License in the LICENSE file.
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | arashb/tbslas | scripts/vis.py | Python | bsd-3-clause | 7,860 | [
"VTK",
"VisIt"
] | 6670eb8feba665f073df35645617d5ffb0922985630fe550a5f646e9e1dd09ff |
# Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import argparse
import logging
import numpy as np
import torch
import pyro
import pyro.distributions as dist
from pyro.contrib.examples.bart import load_bart_od
from pyro.contrib.forecast import ForecastingModel, backtest
from pyro.o... | uber/pyro | examples/contrib/forecast/bart.py | Python | apache-2.0 | 7,475 | [
"Gaussian"
] | 54b510c874eed8dfa3921aa3e0632681bd7c9784937514358b59d25ccbaea128 |
## This file is part of Invenio.
## Copyright (C) 2005, 2006, 2007, 2008, 2009, 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 ... | cul-it/Invenio | modules/websession/lib/websession_templates.py | Python | gpl-2.0 | 103,402 | [
"VisIt"
] | f6903356098f5d872c02a64c407739c4ef00e3896fc91c217fc0bf93f01ddc94 |
"""Dummy setup.py file solely for the purposes of getting an on-the-fly
computed version number into the conda recipe.
"""
import sys
from distutils.core import setup
def version_func():
import subprocess
command = 'python psi4/versioner.py --formatonly --format={versionlong}'
process = subprocess.Popen(... | andysim/psi4 | conda/_conda_vers.py | Python | gpl-2.0 | 566 | [
"Psi4"
] | 909176ae2b424a23e92a25b036e0740edc0f29eadd4bba6b9aedb18055fd0732 |
# region gplv3preamble
# The Medical Simulation Markup Language (MSML) - Simplifying the biomechanical modeling workflow
#
# MSML has been developed in the framework of 'SFB TRR 125 Cognition-Guided Surgery'
#
# If you use this software in academic work, please cite the paper:
# S. Suwelack, M. Stoll, S. Schalck, N.S... | CognitionGuidedSurgery/msml | src/msml/io/writer.py | Python | gpl-3.0 | 7,774 | [
"VisIt"
] | 8b0153d57d67e72e02bbae6d17c5c58306ef37c3796b00e0435014e6cba9f5e9 |
# $Id$
#
# Copyright (C) 2002-2008 greg Landrum and Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
"""unit testing code ... | jandom/rdkit | rdkit/Chem/UnitTestCrippen.py | Python | bsd-3-clause | 5,710 | [
"RDKit"
] | 415ccccea81cf7c3dc8831a50cdbcdf1b08a007c785dcd8bd8ce4279f2ddd6cb |
# Author: Samuel Genheden samuel.genheden@gmail.com
"""
Script to find the space where to insert the solutes
"""
import sys
import MDAnalysis
import MDAnalysis.lib.distances as mddist
import numpy as np
u = MDAnalysis.Universe(sys.argv[1])
lipids = u.select_atoms("name PO4 and resid 9108:10688")
com = np.asarray([l... | SGenheden/Scripts | Projects/Liposome/get_solutespace.py | Python | mit | 570 | [
"MDAnalysis"
] | b369a4efe3dab727a98e5d6b533965c2f3444ab3164fc9c247c37b625cee86f0 |
from aces.materials.POSCAR import structure as Material
class structure(Material):
def getPOSCAR(self):
return self.getMinimized()
return """Mo N
1.0
2.98 0 0
1.49 2.5807557 0
0 0 25
Mo N
1 2
Direct
0.1666666666666643 0.666666666666664... | vanceeasleaf/aces | aces/materials/MoN2_alpha.py | Python | gpl-2.0 | 1,375 | [
"ASE",
"OVITO"
] | bb75611b6031ab22886856eaf62e5e32e8f1fb14a4b558c122453f8121705885 |
#!/usr/bin/env python
#
# This example demonstrates how to use multiple renderers within a
# render window. It is a variation of the Cone.py example. Please
# refer to that example for additional documentation.
#
import vtk
import time
#
# Next we create an instance of vtkConeSource and set some of its
# properties.... | CMUSV-VisTrails/WorkflowRecommendation | examples/vtk_examples/Tutorial/Step3/Cone3.py | Python | bsd-3-clause | 2,703 | [
"VTK"
] | ef391e50be51a01d633a45b99d2148ddcf261f97ab11815ebf098ef663f4392b |
# Copyright (C) 2012,2013 Olaf Lenz
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
#... | roehm/espresso_cpp | config/check_myconfig_complete.py | Python | gpl-3.0 | 1,592 | [
"ESPResSo"
] | 2d4fa5fc37710716de5352d869cc38ad1f344e3486686ebb386a7981c2d23f11 |
# -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
# This is moose.server.
# It accepts simulation request on a specified TCP port (default 31417).
# It simulates the given file (usually a archive file e.g., tar.bz2) and sends
# back artefacts generated by simulation (mostly image... | BhallaLab/moose-core | python/moose/server.py | Python | gpl-3.0 | 12,862 | [
"MOOSE"
] | 089938d61f3154a44665aa2e0f1e113bfc349a3231d7e1997d8446797edcf9b6 |
import sys,os,glob, inspect
import pylab as pl
from numpy import *
from scipy import optimize
import pickle
import time
import copy
cmd_folder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile( inspect.currentframe() ))[0]) + "/templates")
if cmd_folder not in sys.path:
sys.path.insert(0, cmd_folder... | fedhere/SESNCfAlib | fitgauss2sntemplate.py | Python | mit | 6,119 | [
"Gaussian"
] | 3425e0f15822f86f5df453dff2d4ce6ae8c51d91e8e047318503020fd4dd178e |
# cell_test_util.py ---
#
# Filename: cell_test_util.py
# Description: Utility functions for testing single cells
# Author:
# Maintainer:
# Created: Mon Oct 15 15:03:09 2012 (+0530)
# Version:
# Last-Updated: Sun Jun 25 16:04:13 2017 (-0400)
# By: subha
# Update #: 309
# URL:
# Keywords:
# Compatib... | BhallaLab/moose-examples | traub_2005/py/cell_test_util.py | Python | gpl-2.0 | 8,995 | [
"MOOSE",
"NEURON"
] | 5c9c4618e5358f5567a468bebc0c06a28359f387b09dd7387935fdce220f7aa3 |
#######################################################################
#
# Copyright 2009-2010 by Ullrich Koethe
#
# This file is part of the VIGRA computer vision library.
# The VIGRA Website is
# http://hci.iwr.uni-heidelberg.de/vigra/
# Please direct questions, bug reports, and contributions... | timoMa/vigra | vigranumpy/lib/__init__.py | Python | mit | 98,721 | [
"Gaussian",
"NEURON"
] | 8b79e620f28fdcf96b8be77dd5a28360c0e12b29f3c26881aac1c3cfa3e2599f |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
sessions2trash.py
Run this script in a web2py environment shell e.g. python web2py.py -S app
If models are loaded (-M option) auth.settings.expiration is assumed
for sessions without an expiration. If models are not loaded, sessions older
than 60 minutes are removed. U... | jefftc/changlab | web2py/scripts/sessions2trash.py | Python | mit | 7,366 | [
"VisIt"
] | 6730852dce77c5cc870d3bee51385de902a111ee5c0d40666e7eba641c00d7c1 |
#
# 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... | jbonofre/beam | sdks/python/apache_beam/pipeline.py | Python | apache-2.0 | 33,443 | [
"VisIt"
] | 6aae54837eb836dce713ef984e3fa163335fc38c44fff051c83da35f4c710a4e |
"""Ewald summation solver for 3D periodic cells.
"""
import numpy as np
from pydft.geometry import get_cell
def Eq(basis, n, cell=None, sigma=None):
"""Calculates the approximate total energy due to the nuclei using
the Arias quick-and-dirty method.
Args:
basis (str): one of the *modules* in `pydft... | rosenbrockc/dft | pydft/solvers/ewald.py | Python | mit | 3,603 | [
"Gaussian"
] | 9196ba9a9bdf04c8989de42ce8d16c0aeea26bbd2f4ae423e492f08fa7eec83d |
# Copyright 2008-2014 Nokia Solutions and Networks
#
# 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 l... | eric-stanley/robotframework | src/robot/result/merger.py | Python | apache-2.0 | 2,998 | [
"VisIt"
] | 30d67b14b46ec784616bab6324838b3bf10ac970a0cc410f8614acfb852bd96a |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/custom/lib/customtab.py | Python | gpl-2.0 | 5,354 | [
"Brian"
] | cb507a3536f539ad143c2f5349b0a0e93f783cf90aae264ba447d54e80263c3c |
"""
Point quadtree
The class PointQuadTree is currently just a wrapper around
some of the functions developed in the GIS Algorithms book.
Contact:
Ningchuan Xiao
The Ohio State University
Columbus, OH
"""
__author__ = "Ningchuan Xiao <ncxiao@gmail.com>"
__all__ = ['pointquadtree']
INF = float('inf')
from cgl.poin... | compgeog/cgl | cgl/pointquadtree.py | Python | gpl-3.0 | 4,627 | [
"COLUMBUS"
] | 066eb0b26a1d71b28db7a23126b3d48a90b6f508ca23d503c31810e9a3922b4e |
"""Filter design.
"""
from __future__ import division, print_function, absolute_import
import warnings
import numpy
from numpy import (atleast_1d, poly, polyval, roots, real, asarray, allclose,
resize, pi, absolute, logspace, r_, sqrt, tan, log10,
arctan, arcsinh, sin, exp, cosh,... | vhaasteren/scipy | scipy/signal/filter_design.py | Python | bsd-3-clause | 124,671 | [
"Gaussian"
] | 9d38c8ee5dfdf83d6733e302170c3fe3e3ab16d4c7a3b558d92cc59ce6da5f7a |
# coding: utf-8
# # Tidal currents from ADCIRC u,v tidal constituent netcdf file
# In[3]:
get_ipython().magic('matplotlib inline')
import matplotlib.pyplot as plt
import iris
import warnings
import pytz
from datetime import datetime
from pandas import date_range
from matplotlib.dates import date2num
from utide imp... | rsignell-usgs/tri_tide_movie | python/tri_tide_movie.py | Python | cc0-1.0 | 6,977 | [
"NetCDF"
] | 6b9490b3e125b8e86251ce3048c84c19af3ba8728e21c707bac925f5c17b24a8 |
'''
Created on Jan 9, 2017
This module contains meta data and access functions for normals and monthly historical time-series data from the
Canadian Forest Service (Natural Resources Canada, NRCan)
@author: Andre R. Erler, GPL v3
'''
# external imports
import numpy as np
import numpy.ma as ma
import os
# internal i... | aerler/GeoPy | src/datasets/NRCan.py | Python | gpl-3.0 | 62,692 | [
"NetCDF"
] | 4e15f7908faa325e69081fa855515fbe971c2c941ed0505b6e97b6ad598eda07 |
#!/usr/bin/env python
#
# Copyright 2012 Google Inc. All Rights Reserved.
"""Python script for interacting with BigQuery."""
import cmd
import codecs
import datetime
import httplib
import json
import os
import pdb
import pipes
import platform
import shlex
import sys
import time
import traceback
import types
impor... | wemanuel/smry | smry/server-auth/ls/google-cloud-sdk/platform/bq/bq.py | Python | apache-2.0 | 87,866 | [
"VisIt"
] | b06e9389785e978b2f1759a08e0c500faf7d128522cbde1ed24879d4c2259063 |
#!/usr/bin/env python
##
## @file convertSBML.py
## @brief Converts SBML documents between levels
## @author Michael Hucka
## @author Sarah Keating
## @author Ben Bornstein
##
## This file is part of libSBML. Please visit http://sbml.org for more
## information about SBML, and the latest version of libSBML.
... | dilawar/moose-full | dependencies/libsbml-5.9.0/examples/python/convertSBML.py | Python | gpl-2.0 | 3,107 | [
"VisIt"
] | cfef6c3858e838f14f2d46e2da6a2ca1f82b5695c0ab3a7a69d44a26b6038a2c |
'''
Working from Miguel Rocha's script: findGalaxyProps.py. Find the center of the galaxy
at the peak in the stellar number density. Generate galaxy properties.
'''
import sys
import os
import glob
import yt
import numpy as np
from numpy import *
import astropy
from astropy.cosmology import Planck13 as cosmo
#reload... | gsnyder206/vela-yt-sunrise | findGalaxyProps.py | Python | gpl-3.0 | 21,206 | [
"Galaxy"
] | 73e9379cf4ab8fe135bacfeabb279e676307898639f13b345af20cfd9eedfcb9 |
"""
End-to-end test for cohorted courseware. This uses both Studio and LMS.
"""
from nose.plugins.attrib import attr
import json
from studio.base_studio_test import ContainerBase
from ..pages.studio.settings_group_configurations import GroupConfigurationsPage
from ..pages.studio.settings_advanced import AdvancedSett... | jazkarta/edx-platform-for-isc | common/test/acceptance/tests/test_cohorted_courseware.py | Python | agpl-3.0 | 10,267 | [
"VisIt"
] | 79061a4aae968281f0146421a3c6feb6a13454043fdc44b61ee0396ae6b5619d |
#!/usr/bin/env python
import sys
try:
import rdkit
print "import rdkit available"
from rdkit import Chem
print "import Chem from rdkit available"
sys.exit(0)
except ImportError, e:
print "ERROR: import rdkit NOT available"
sys.exit(1) | MMunibas/FittingWizard | scripts/check_rdkit_dependency.py | Python | bsd-3-clause | 243 | [
"RDKit"
] | 019fbc79f4cf384b47704cc030799816993f87cb8f1632e1ba45884d1c289f5f |
from urllib import request
import random,platform,os
from bs4 import BeautifulSoup
PREFIX = "ceph"
path = ""
if path == "":
if platform.system() == "Windows":
path = os.getcwd()+"\\"
else:
path = os.getcwd()+"/"
filepath = path+PREFIX+".html"
def saveFile(data):
#TODO SELECT SINGLE FILE O... | WZQ1397/automatic-repo | project/urlfetchANDcolor/webspider-csdncontent-download.py | Python | lgpl-3.0 | 2,042 | [
"Galaxy"
] | 99b4778ec7bb9fb6bf4e62ad2ceeacf0415859ba3f6260a467ba4067ddf84233 |
# -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
import numpy as np
from os import path as op
from ..util import load_data_file
# This is the package data dir, not the dir for config, etc.
DATA_DIR = op.join(op.dirname(__f... | sbtlaarzc/vispy | vispy/io/datasets.py | Python | bsd-3-clause | 1,520 | [
"Gaussian"
] | f0b245a32c97a28f96e6a13997001395e25135b458793e2eba63163461bfbbda |
"""
Miscellaneous tests
"""
from unittest import skipIf
from regression.pages.whitelabel.const import (
LOGO_ALT_TEXT, LOGO_LINK, NO_OF_COUNTRIES, NO_OF_LANGUAGES,
ORG, SAMPLE_COUNTRIES, SAMPLE_LANGUAGES, SELECTED_COUNTRY, SOCIAL_MEDIA_LINK
)
from regression.pages.whitelabel.profile_page import ProfilePage
fr... | edx/edx-e2e-tests | regression/tests/whitelabel/test_misc.py | Python | agpl-3.0 | 2,988 | [
"VisIt"
] | 414fe21e81cb155cc62b12246c49757d5ec27767a0d58d46c2c71670da9380e7 |
#!/usr/bin/env python
"""Utility script to convert an old VTK file format to the new VTK XML
file format (serial format). The output XML file will contain *all*
the existing scalars, vectors and tensors in the input file.
This requires VTK 4.x or above.
Created May 2003, Prabhu Ramachandran <prabhu@aero.iit... | hlzz/dotfiles | graphics/VTK-7.0.0/Utilities/vtk2xml.py | Python | bsd-3-clause | 5,409 | [
"VTK"
] | f1410e64c15bb01a24e88454e1d2f30655821853aaf01d246a366f85755f93dc |
#!/usr/bin/python
"""
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* isingrand: postprocessing of isingrand data
* Copyright (c) 2013 Analabha Roy (daneel@utexas.edu)
*
* This is free software: you can redistribute it and/or modify it under the
* terms of version 3 of the GNU L... | hariseldon99/archives | isingrand/scripts/disorder_stdev.py | Python | gpl-2.0 | 3,579 | [
"Gaussian"
] | 7f9a72facb5dddca8c452a21f4e5d3032d63dc8ecc3c9b684809b7700a493be6 |
# 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
# distributed under t... | openstack/keystone | keystone/tests/hacking/checks.py | Python | apache-2.0 | 12,074 | [
"VisIt"
] | c703317a0deebd03176b5f590f0e4531cce73a76bf01643b2f8d1fb639a7c574 |
"""Undocumented Module"""
__all__ = ['indent',
'StackTrace', 'traceFunctionCall', 'traceParentCall', 'printThisCall',
'doc', 'adjust', 'difference', 'intersection', 'union',
'sameElements', 'makeList', 'makeTuple', 'list2dict', 'invertDict',
'invertDictLossless', 'uniqueElements', 'disjoint', 'contains',
'replace', '... | mgracer48/panda3d | direct/src/showbase/PythonUtil.py | Python | bsd-3-clause | 94,176 | [
"Gaussian"
] | 996220a7b47780418e1c92b85747575e76b094e6f8c4bc270bb03102426f27a5 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRenderer(ren1)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
pnmRead... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Core/Testing/Python/PolyDataMapperAllWireframe.py | Python | gpl-3.0 | 5,236 | [
"VTK"
] | 00fb9cc030a55fde93eba69d17718a5778f6abbe483f8122a04f5e71599e5250 |
class mesh(object,mesh_tools):
def __init__(self,hex27=False,cpml=False,cpml_size=False,top_absorbing=False):
super(mesh, self).__init__()
self.netcdf_db=False
self._netcdf_num_nod_hex=8
self._netcdf_num_nod_quad=4
self.abs_block_ids=[1001,1002,1003,1004,1005,1006]
se... | casarotti/GEOCUBIT--experimental | geocubitlib/dev/exodus2specfem3d.py | Python | gpl-3.0 | 43,672 | [
"NetCDF"
] | 8ae860072ee39dd4aa8f999ca921df0119fdee93499ba6771ffa4ca26ffe8b5c |
# coding: utf-8
from __future__ import division, unicode_literals
"""
TODO: Modify module doc.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__date__ = "11/19/13"
from pymatgen.analysis.... | rousseab/pymatgen | pymatgen/analysis/tests/test_energy_models.py | Python | mit | 2,986 | [
"pymatgen"
] | 14c73587abaa310e95d54809bcc7281a07aef079a1e493c4cedc5cba5b512a2c |
import unittest
import echidna.core.shift as shift
import echidna.core.spectra as spectra
import numpy as np
from scipy.optimize import curve_fit
class TestShift(unittest.TestCase):
def gaussian(self, x, *p):
""" A gaussian used for fitting.
Args:
x (float): Position the gaussian is ca... | mjmottram/echidna | echidna/test/test_shift.py | Python | mit | 4,914 | [
"Gaussian"
] | bd4eed011c007c5b8e0e8ab0b2e395060c5d6cfcf70a4b4508a28b4f481300cc |
from __future__ import print_function
import sys
import time
import requests
from numpy import pi, sin, cos
import numpy as np
from bokeh.objects import (Plot, DataRange1d, LinearAxis,
ColumnDataSource, Glyph, PanTool, WheelZoomTool)
from bokeh.glyphs import Line
from bokeh import session
from bokeh import docu... | the13fools/Bokeh_Examples | glyphs/line_animate.py | Python | bsd-3-clause | 1,955 | [
"VisIt"
] | 5a04ebd839c91693135ce81159d0e0b8b5497efad598046f551b0c46145f9ee5 |
#!/usr/bin/env python
"""
Dalton manages your security groups.
Usage:
dalton [-d | --dry-run] [--vpc=<vpc_id>] <config-dir> <environment> <region>
dalton -h | --help
dalton --version
Options:
-d --dry-run Performs a "dry run" to show (but not perform) security group changes
-v --version Sh... | signal/dalton | dalton.py | Python | apache-2.0 | 2,184 | [
"Dalton"
] | 90c63680e22af18bcb5065db278073f654b09fdada135139a610f1728e255e48 |
import openvoronoi as ovd
import ovdvtk
import time
import vtk
import datetime
import math
import random
import os
import sys
import pickle
import gzip
import ngc_writer
def drawCircle(myscreen, c, r, circlecolor):
ca = ovdvtk.Circle(center=(c.x, c.y, 0), radius=r, color=circlecolor, resolution=50)
myscreen.... | aewallin/openvoronoi | python_examples/ma-pocket/ma_pocket_09_external.py | Python | lgpl-2.1 | 21,908 | [
"VTK"
] | 4da5b4c61f0c64722071466a1e78ccae57710cd99f34dec6d323ae2cb27ba81e |
from scipy.io import netcdf
import glob
def getRestartTime():
datadir = '/home/daugue6/capeislerestart/output/'
#get the correct restart file, the second newest one (if there is more than one)
files = glob.glob(datadir + "*.nc")
#find the restart files
restart_files = []
for i in files:
... | wesleybowman/aidan-projects | placentia/restartConfig.py | Python | gpl-2.0 | 974 | [
"NetCDF"
] | 5cd6d09b4e1117969aa513969fdb75cc0274d3abff9c99797de6676f5939ffa0 |
from django.db import models
from django.contrib.auth.models import User
CAMPAIGN_TYPE = (
('S', 'Standard'),
('P', 'Mini-Site'),
)
STATUS = (
('A', 'Active'),
('I', 'Inactive'),
)
PCAMPAIGN_LINK = (
('FB', 'Facebook Page'),
('TW', 'Twitter Page'),
('NOTE', 'Send us a Note'),
('WEB', ... | TheAmbitiousInc/com.theambitious.qrtrace.web | web/campaign/models.py | Python | mit | 3,777 | [
"VisIt"
] | ffeba68da876133fca81e9c0ec84acdbb794d7b3bf6f16c60bbeeb98001538d5 |
from PeacockActor import PeacockActor
import vtk
from vtk.util.colors import peacock, tomato, red, white, black
class GeneratedMeshActor(PeacockActor):
def __init__(self, renderer, mesh):
PeacockActor.__init__(self, renderer)
self.mesh = mesh
self.geom = vtk.vtkDataSetSurfaceFilter()
self.geom.SetI... | gleicher27/Tardigrade | moose/gui/vtk/GeneratedMeshActor.py | Python | lgpl-2.1 | 1,233 | [
"VTK"
] | b620e1da08ea00aa62ea3c415c4feb64d363a247ca97f0e665083ea481438749 |
#!/usr/bin/env python
__author__ = "waroquiers"
import os
import shutil
import networkx as nx
from pymatgen.analysis.chemenv.connectivity.environment_nodes import (
EnvironmentNode,
get_environment_node,
)
from pymatgen.util.testing import PymatgenTest
try:
import bson # type: ignore # Ignore bson i... | vorwerkc/pymatgen | pymatgen/analysis/chemenv/connectivity/tests/test_environment_nodes.py | Python | mit | 2,025 | [
"pymatgen"
] | 4798211c12cd0ad241dbd50a0a2ce4cd58187d09fb4390ac17780df47259c62b |
from __future__ import absolute_import
input_name = '../examples/multi_physics/piezo_elasticity.py'
output_name = 'test_piezo_elasticity.vtk'
from tests_basic import TestInput
class Test( TestInput ):
def from_conf( conf, options ):
return TestInput.from_conf( conf, options, cls = Test )
from_conf =... | vlukes/sfepy | tests/test_input_piezo_elasticity.py | Python | bsd-3-clause | 1,463 | [
"VTK"
] | f6b786e18a2cb821654d56f1fa2b25b08a0abc91c344a39a8c5802ea004dbdbf |
# 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 the G... | espressopp/espressopp | src/integrator/MDIntegrator.py | Python | gpl-3.0 | 3,045 | [
"ESPResSo"
] | e06c22e3a1df666a2ade83930f922ee4b657afded7c66ef05a774b860b482ade |
"""User-friendly public interface to polynomial functions. """
from __future__ import print_function, division
from sympy.core import (
S, Basic, Expr, I, Integer, Add, Mul, Dummy, Tuple
)
from sympy.core.mul import _keep_coeff
from sympy.core.symbol import Symbol
from sympy.core.basic import preorder_traversal
... | souravsingh/sympy | sympy/polys/polytools.py | Python | bsd-3-clause | 174,099 | [
"Gaussian"
] | e4426b2827545a1b3a48b5e6e852db7140b0c40c8915db1a67a571c7f60d8d58 |
# Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Documentation on PRESUBMIT.py can be found at:
# http://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
import os
import subproc... | yeyus/naclports | PRESUBMIT.py | Python | bsd-3-clause | 4,690 | [
"VisIt"
] | ba97df838e0c0a356ced8fd36fb8fb1f8c732f5f673970034b7d3dbd9fd9e9f0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.