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 |
|---|---|---|---|---|---|---|---|
# -*- coding: ISO-8859-15 -*-
# =============================================================================
# Copyright (c) 2004, 2006 Sean C. Gillies
# Copyright (c) 2007 STFC <http://www.stfc.ac.uk>
#
# Authors :
# Dominic Lowe <d.lowe@rl.ac.uk>
#
# Contact email: d.lowe@rl.ac.uk
# =======================... | monoid/owslib | owslib/coverage/wcs100.py | Python | bsd-3-clause | 17,702 | [
"NetCDF"
] | 97b48f18e346e88705d165ad17d0742603567ca0391305ce5c8dbe5daeec0300 |
"""
Acceptance tests for adding components in Studio.
"""
from __future__ import absolute_import
import ddt
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.acceptance.pages.studio.container import ContainerPage
from common.test.acceptance.pages.studio.settings_advanced import Adv... | ESOedX/edx-platform | common/test/acceptance/tests/studio/test_studio_components.py | Python | agpl-3.0 | 7,191 | [
"VisIt"
] | be63894d09ca46891cc1edfe3f51d23bdb24e2b9000b976dfd0d9786c9c85580 |
"""
JSON serialization and deserialization utilities.
"""
from __future__ import absolute_import, unicode_literals
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2014, The Materials Virtual Lab"
__version__ = "0.1"
__maintainer__ = "Shyue Ping Ong"
__email__ = "ongsp@ucsd.edu"
__date__ = "1/24/14"
import j... | yanikou19/monty | monty/json.py | Python | mit | 7,670 | [
"pymatgen"
] | 397fb36355c3870b597460c0b46b84b4622bdcc7af9345ae5dc001b479df8f06 |
"""
Objects implementing likelihoods.
"""
# pylint: disable=wildcard-import
from .gaussian import *
from . import gaussian
__all__ = []
__all__ += gaussian.__all__
| mwhoffman/pygp | pygp/likelihoods/__init__.py | Python | bsd-2-clause | 167 | [
"Gaussian"
] | 838462fe303fcb8ffd4075edb776ad08c21a6e45a6a27ba15890d874c25a817c |
"""
This module can be used to extract the size of the blocks in an SXL file
@author: rhallmen
@date: 24.06.2017
"""
from antlr4 import *
from sxlLexer import sxlLexer
from sxlParser import sxlParser
from sxlVisitor import sxlVisitor
class BlockSizeVisitor(sxlVisitor):
"""
Parse a sxl file and return a dict o... | nussbrot/code-exchange | python/BlockSizeVisitor.py | Python | mit | 1,447 | [
"VisIt"
] | d33aca3b7f2d6567a6fb8a92d13818b0381da607aacefd31f5e8b8887a9d5a74 |
import numpy
import numpy.linalg
import scipy.linalg
import scipy.interpolate
from scipy.signal import wiener, filtfilt, butter, gaussian
from scipy.ndimage import filters
from matplotlib import pyplot as plt
plt.style.use('classic')
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem
fro... | matthewpklein/battsimpy | tests/dae_genPart_T.py | Python | gpl-3.0 | 77,602 | [
"Gaussian"
] | 9407a8cb03041ba7d426416b6caf3676962e0dabe2ff8ac8617fd080eeed0e71 |
"""
.. module: FSRStools.crosscorr
:platform: Windows
.. moduleauthor:: Daniel Dietze <daniel.dietze@berkeley.edu>
A collection of functions to process and analyze Kerr-gate cross-correlation data.
Data are analyzed by fitting each spectral slice of the cross-correlation with a
Gaussian pulse shape to extrac... | ddietze/FSRStools | crosscorr/__init__.py | Python | gpl-3.0 | 6,643 | [
"Gaussian"
] | 4dbcf4a8273adc993e29c3722f2816bd9407f2fcebf19175c5715fa2a8037257 |
"""Define imports."""
from PIL import ImageFilter, ImageOps, ImageEnhance
def grayscale(image, name, temp_url):
"""Return an image with a contrast of grey."""
image.seek(0)
photo = ImageOps.grayscale(image)
photo.save(temp_url + "GRAYSCALE" + name)
return temp_url + "GRAYSCALE" + name
def smooth... | andela-ggikera/photo-editing-app | editor/photo_effects.py | Python | mit | 3,217 | [
"Gaussian"
] | d80ddeda4140c37d8e58b335fd4b3f0c091bb5b11416b98dd93ef7e37f4b899a |
'''
Created on Jan 20, 2016
@author: rch
'''
from traits.api import \
Float, HasStrictTraits, Property, cached_property, Int, \
Instance, Array, Bool
import numpy as np
from oricreate.api import YoshimuraCPFactory, CustomCPFactory, \
fix, link, r_, s_, t_, MapToSurface,\
GuConstantLength, GuDofConst... | simvisage/oricreate | apps/waterbomb/ex01_pwaterbomb_ahc_demo.py | Python | gpl-3.0 | 26,581 | [
"Mayavi"
] | 9a33113568d2ea8d21589e0fcf12777109e7f2c692f60156450995426a37606c |
#!@Python_EXECUTABLE@
#
# @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 redistri... | susilehtola/psi4 | psi4/run_psi4.py | Python | lgpl-3.0 | 14,586 | [
"Psi4"
] | c8856a3c0bb1471072dff7bbb4d9e6bf1e8a4065a109709ae58dd9b5e2f2d708 |
"""fsa.py
This modules implements fine-structure analysis of undirected
graphs with (numeric) vertex attributes. It further contains
functionality to estimate the feature distribution using Gaussian
mixture models, or to build a Bag-of-Words representation from
a collection of feature vectors.
The idea of fine-struct... | aylward/ITKTubeTK | src/Python/pyfsa/core/fsa.py | Python | apache-2.0 | 14,937 | [
"Gaussian"
] | 8c2539ffe93e14b750d289650737cc389f680a2359ebe86d67609a106750ec48 |
# Copyright (c) 2015-2016 Cisco Systems, Inc.
#
# 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, merge... | rgreinho/molecule | molecule/config.py | Python | mit | 7,590 | [
"Galaxy"
] | bcb22308bfabaf4a250deb8232d3d74b2c25e8916d468d6f3f6b6dfd1e25edff |
#!/usr/bin/env python
import pysam
import sys
def markreads(bamfn, outfn):
bam = pysam.AlignmentFile(bamfn, 'rb')
out = pysam.AlignmentFile(outfn, 'wb', template=bam)
for read in bam.fetch(until_eof=True):
tags = read.tags
tags.append(('BS',1))
read.tags = tags
out.write(... | adamewing/bamsurgeon | bamsurgeon/markreads.py | Python | mit | 507 | [
"pysam"
] | da67727d22e047c796717695c293c2bd24d644bb8079e7d06bb8b0a8d4fd690a |
from __future__ import print_function
# provides support for Python 3.x style printing
"""
this sample demonstrates a simple custom skill built with the amazon alexa skills kit.
the intent schema, custom slots, and sample utterances for this skill, as well
as testing instructions are located at http://amzn.to/1LzFrj6... | meraki/alexa-skill | alexa_custom_skill_meraki_lambda_function.py | Python | gpl-3.0 | 19,975 | [
"VisIt"
] | 0ba2c2ca81247ce7c6ae9c3540b62b687438b4a44f605ac5bae5b895c0ee72a4 |
import warnings
import numpy as np
from scipy.sparse import issparse
from scvelo import logging as logg
from scvelo import settings
from scvelo.core import l2_norm
from .transition_matrix import transition_matrix
def quiver_autoscale(X_emb, V_emb):
import matplotlib.pyplot as pl
scale_factor = np.abs(X_emb... | theislab/scvelo | scvelo/tools/velocity_embedding.py | Python | bsd-3-clause | 6,734 | [
"Gaussian"
] | 8633f53eb35640ede104b153fcc824ba6020f5a6ad19996895e80a2ea969f542 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/core/lib/mediamanageritem.py | Python | gpl-2.0 | 29,297 | [
"Brian"
] | 1022eb5d1f9beb09150933f1268b9633136717d2486170090b3471a9ccb82c82 |
#-------------------------------------------------------------------------------
# . File : MopacOutputFile.py
# . Program : MolarisTools
# . Copyright : USC, Mikolaj Feliks (2015-2018)
# . License : GNU GPL v3.0 (http://www.gnu.org/licenses/gpl-3.0.en.html)
#---------------------------------------------... | mfx9/molaris-tools | MolarisTools/Parser/MopacOutputFile.py | Python | gpl-3.0 | 6,877 | [
"MOPAC"
] | bacc2173d119d01a39919b8bd3900c1a1db57f5b1877f275fa77c4826f7b6d77 |
#! /usr/bin/python
import numpy as np
import cv2
import pickle
import time
import sys
import os
import yaml
import rospy
import rospkg
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from autonomous_traversal.msg import Lane
from geometry_msgs.msg import Vector3
bridge = CvBridge()
... | RockRaidersInc/ROS-Main | autonomous_traversal/src/lane_detection.py | Python | gpl-3.0 | 17,744 | [
"Gaussian"
] | a28f18858b8dd5b0829a36f8390ea4094e7a003e801b7a61c88f03f6bf66729a |
# Python example script that uses the Gnu R random table source to create an output
# table with 5 columns and 30 rows. The columns are filled random numbers drawn
# from a Normal, Poisson, Chi-square, Uniform, and Binomial distribution, respecively.
# VTK must be built with VTK_USE_GNU_R turned on for this example ... | b3c/VTK-5.8 | Examples/Infovis/Python/Rrand_table.py | Python | bsd-3-clause | 1,517 | [
"VTK"
] | 9ccdc3b8e087e5caf12262a1dd00018bb5d50f2bef4f4898057b91fd22dbd1b3 |
#!/galaxy/home/mgehrin/hiclib/bin/python
"""
Reads a list of intervals and an axt. Produces a new axt containing the
portions of the original that overlapped the intervals
usage: %prog interval_file refindex [options] < axt_file
-m, --mincols=10: Minimum length (columns) required for alignment to be output
"""
im... | bxlab/HiFive_Paper | Scripts/HiCLib/bx-python-0.7.1/build/scripts-2.7/axt_extract_ranges.py | Python | bsd-3-clause | 1,710 | [
"Galaxy"
] | 7f0d2454aa8d88d4df896a0c349919d30cc6c287b7523537db9b1ab541d8e8ff |
"""Outputs (saves) files for each PIAA lens in the Light Forge .dat format
Author: Adam Rains
"""
import numpy as np
import piaa
import os
from itertools import cycle
import pylab as pl
import ft_filter
def generate_light_forge_file(grid_size=4):
"""Saves files in Light Forge file format (GridXYZ), surface height... | mikeireland/astro-optics | piaa_fabrication.py | Python | mit | 9,370 | [
"Gaussian"
] | 3de6b64c1027603fe9e9117597a61db0a20aa6b30e2275b53ea2b7ce555cf6ea |
# Copyright 2013 Devsim LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | devsim/devsim | examples/mobility/gmsh_mos2d.py | Python | apache-2.0 | 3,644 | [
"VTK"
] | 60fa9963d1d175cfbae1f72daf7a63f50da976763e50e248f70f212136c168a6 |
# Copyright (c) 2015-2018 Cisco Systems, Inc.
#
# 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, merge... | metacloud/molecule | test/functional/test_command.py | Python | mit | 32,755 | [
"Galaxy"
] | c1a9365bf11ca05ee2d9ad7125f83c990c93022b1be5fd9ed643a3d10c812c5c |
#
# logger.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 License, or
# (at your option) any later... | kperun/nestml | pynestml/utils/logger.py | Python | gpl-2.0 | 11,355 | [
"NEURON"
] | cbe73afaea6f3f0b12e3c9865ab78bdfaea586f279c7814acf20b134cc40b988 |
from unittest import skipUnless
import ddt
from bok_choy.web_app_test import WebAppTest
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from acceptance_tests.config import (VERIFIED_COURSE_ID, MARKETIN... | mferenca/HMS-ecommerce | acceptance_tests/test_payment.py | Python | agpl-3.0 | 5,152 | [
"VisIt"
] | e5436428ed42455edbae0c4521047375382ded3dc32dcc7a33e91c9761dba4c2 |
import re
import os
import six
class Compiler(object):
RE_INTERPOLATE = re.compile(r'(\\)?([#!]){(.*?)}')
RE_ASSIGNMENT = re.compile(r'^(\s*var\s+)(\w+) *= *([^;]+)')
doctypes = {
'5': '<!DOCTYPE html>'
, 'xml': '<?xml version="1.0" encoding="utf-8" ?>'
, 'default': '<!DOCTYPE html PUBL... | paradoxxxzero/pyjade | pyjade/compiler.py | Python | mit | 14,618 | [
"VisIt"
] | ff33bc6b5c30ebfdebb2cd544f7b27b8600f736159871852c1c20d8d26dbeb78 |
# Create the data.
from numpy import pi, sin, cos, mgrid
dphi, dtheta = pi/250.0, pi/250.0
[phi,theta] = mgrid[0:pi+dphi*1.5:dphi,0:2*pi+dtheta*1.5:dtheta]
m0 = 4; m1 = 3; m2 = 2; m3 = 3; m4 = 6; m5 = 2; m6 = 6; m7 = 4;
r = sin(m0*phi)**m1 + cos(m2*phi)**m3 + sin(m4*theta)**m5 + cos(m6*theta)**m7
x = r*sin(phi)*cos(the... | RobertABT/heightmap | mayavi_test.py | Python | mit | 490 | [
"Mayavi"
] | f38fbe1e9e5c45129526e6fb3bf8f7a047bf99a8716b7d7a85779493ffcb08f4 |
import re
# parse vcf file lines
class vcf:
# varian type
UNKNOWN=0
SNV=1
DEL=2
INS=3
MULTI=4
# vcf file columns
CHROM=0
POS=1
ID=2
REF=3
ALT=4
QUAL=5
FILTER=6
INFO=7
FORMAT=8
@staticmethod
def get_chrom (E): return E[vcf.CHROM]
@staticmethod
def get_pos (E): return E[vcf.POS]
@staticmethod
... | bjtrost/TCAG-WGS-CNV-workflow | myvcf.py | Python | mit | 4,673 | [
"BWA"
] | e0ec770461e282716b022ada7d5c0a1124e3c9e8c2dfe2172f3a2af6f6aed3b7 |
"""
=========================
Bayesian Ridge Regression
=========================
Computes a Bayesian Ridge Regression on a synthetic dataset.
See :ref:`bayesian_ridge_regression` for more information on the regressor.
Compared to the OLS (ordinary least squares) estimator, the coefficient
weights are slightly shift... | jaidevd/scikit-learn | examples/linear_model/plot_bayesian_ridge.py | Python | bsd-3-clause | 3,847 | [
"Gaussian"
] | 7762b51f5b23441e578c54ab768ae1ed56abc3f294b4d10a497a1eab0afa4a4a |
from django.shortcuts import render
from django.views.generic import TemplateView, View
from django.http import HttpResponse
from django.views.decorators.cache import cache_page
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from common.diagrams_gpcr import DrawSnakePlot
from co... | fosfataza/protwis | construct/views.py | Python | apache-2.0 | 120,825 | [
"CRYSTAL"
] | 8636e5ceb97b654c9d726eb3cf8005852965f1a55bcdf5eee3391743dabe8780 |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2017 Esteban Tovagliari, The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a c... | Aakash1312/appleseed | src/appleseed.python/studio/plugins.py | Python | mit | 2,548 | [
"VisIt"
] | 18620904aac661cf6b309afe1453ec1e7e55d9b15ed147ad62f445af8d570d4f |
__author__ = 'sibirrer'
from astrofunc.LensingProfiles.spep import SPEP
import numpy as np
import pytest
import numpy.testing as npt
class TestSPEP(object):
"""
tests the Gaussian methods
"""
def setup(self):
self.SPEP = SPEP()
def test_function(self):
x = 1
y = 2
... | sibirrer/astrofunc | test/test_spep.py | Python | mit | 3,571 | [
"Gaussian"
] | bace0caf2c74caf6fb87d1a43d2dfec5eb0371180145f1137a30893dd8ff5b37 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Evaluate the defect concentration based on composition, temperature,
and defect energies using "Dilute Solution Model"
Reference: Phys Rev B, 63, 094103, 2001,
"Density of constitutional and thermal point d... | gVallverdu/pymatgen | pymatgen/analysis/defects/dilute_solution_model.py | Python | mit | 53,404 | [
"CRYSTAL",
"VASP",
"pymatgen"
] | 3718745b1ba0d0ab3dba251c60ede3d24017af6e7539c068ee7008d83dd11da4 |
from django import forms
from osp.visits.models import Visit
class VisitForm(forms.ModelForm):
class Meta:
model = Visit
exclude = ('student', 'submitter',)
| marklocklear/Online-Student-Profile | osp/visits/forms.py | Python | lgpl-3.0 | 179 | [
"VisIt"
] | b2bc94d1aae2562a92af96fc489b4cba6608006149b3617f5680d5cc1d62aef8 |
from django.test import TestCase
from django.test.client import Client
from django.contrib.auth.models import User
from django.template import Template, Context
import unittest
import threading
from argcache import registry, queued
from .caches import (get_calls, get_calls_reset, get_squared_calls,
... | luac/django-argcache | tests/tests.py | Python | agpl-3.0 | 27,854 | [
"exciting"
] | dc5e5222a48e598b3a4e8f022bfbd026aa0316dfdbaf718bb159eca11abd4f73 |
""" This module contains various functions that are special cases
of incomplete gamma functions. It should probably be renamed. """
from __future__ import print_function, division
from sympy.core import Add, S, sympify, cacheit, pi, I
from sympy.core.function import Function, ArgumentIndexError
from sympy.functio... | vipulroxx/sympy | sympy/functions/special/error_functions.py | Python | bsd-3-clause | 68,154 | [
"Gaussian"
] | 9a84676ca97560508bfbbbba287e1f376208584829b487b7b4aad41d82fe77ac |
# This code is part of Ansible, but is an independent component.
# This particular file snippet, and this file snippet only, is BSD licensed.
# Modules you write using this snippet, which is embedded dynamically by Ansible
# still belong to the author of the module, and may assign their own license
# to the complete wo... | aioue/ansible | lib/ansible/module_utils/basic.py | Python | gpl-3.0 | 106,489 | [
"VisIt"
] | f2a6d7665165e561714a331e199046e4ae87b434e752158f11f404f5ad0c1bef |
#!/usr/bin/env python
'''
A simple example to run EPH calculation using finite difference.
'''
from pyscf import gto, dft
from pyscf.eph.eph_fd import kernel
mol = gto.M(atom='N 0 0 0; N 0 0 2.100825', basis='def2-svp', verbose=4, unit="bohr")
# this is a pre-computed relaxed molecule
# for geometry relaxation, refer... | sunqm/pyscf | examples/eph/01-finite_difference_eph.py | Python | apache-2.0 | 566 | [
"PySCF"
] | 3c015f6b2864968094ca0595eca4d32a83284907d4f636a9959d312670bb2407 |
## Copyright (c) 2020 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All contributing p... | youtube/cobalt | third_party/libvpx/tools/3D-Reconstruction/MotionEST/HornSchunck.py | Python | bsd-3-clause | 7,310 | [
"Gaussian"
] | 48ac058aeb22dd148166540694380a105fa71746d181de333a9b48af4cbb85e2 |
#! /usr/bin/env python3
########################################################################
# #
# #
# #
# K... | thompcinnamon/QM-calc-scripts | gautools/out_to_list.py | Python | apache-2.0 | 15,055 | [
"Gaussian"
] | 130b95b67bc28f81e52cde93129204e35e24634582751e782a517b275efee858 |
import os
import sys
import vtkAll as vtk
import math
import time
import types
import functools
import random
import numpy as np
from director import transformUtils
from director import lcmUtils
from director.timercallback import TimerCallback
from director import objectmodel as om
from director import visualization a... | manuelli/director | src/python/director/ikplanner.py | Python | bsd-3-clause | 67,794 | [
"VTK"
] | 40ed8899f92669077c4955788b5d231dacbf091c9211585a44b88ea0d55de17a |
#!/usr/bin/env python
import vtk
import numpy as np
from vmtk import vmtkscripts
import argparse
#estimate the volume of closed surface
def Execute(args):
reader = vmtkscripts.vmtkSurfaceReader()
reader.InputFileName = args.surface
reader.Execute()
Surface = reader.Surface
# estimates surface ar... | kayarre/Tools | vmtk/surface_volume.py | Python | bsd-2-clause | 2,979 | [
"VTK"
] | 158e6d0abf42f5f09980fd9696c9436bd7ce61f2b2cc28b65f48de7519d0ff24 |
# This is a component for visualizing the desirability of shading over a window by using the outdoor dry bulb temperature and an assumed building balance point.
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015... | boris-p/ladybug | src/Ladybug_Comfort Shade Benefit Evaluator.py | Python | gpl-3.0 | 47,366 | [
"EPW"
] | 49cd3bd3c6749b8c3c2b07f573d120481b794e6c867b0262b7fc0c8b83d48558 |
# -*- coding: iso-8859-1 -*-
# $Id: expression.py,v 1.1 2005/10/05 20:19:28 eytanadar Exp $
"""
Functions to manipulate expression data (microarray)
@author: Marcio Rosa da Silva
@organization: Systems Biology Group / GBF
@contact: mrs@gbf.de
@license: GPL
"""
import csv
import re
import sys
GEN... | carvalhomb/tsmells | guess/src/Lib/netconv/expression.py | Python | gpl-2.0 | 2,826 | [
"Cytoscape"
] | ff84b84007d7b7998f9e2166d3fc15ff0eb224f6973617d588e2f51b481cd30d |
# Copyright 2001 by Katharine Lindner. All rights reserved.
# Copyright 2006 by PeterC. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Hold GEO data in a straightforward fo... | updownlife/multipleK | dependencies/biopython-1.65/build/lib.linux-x86_64-2.7/Bio/Geo/Record.py | Python | gpl-2.0 | 2,915 | [
"Biopython"
] | d7e415c4dcbc5d4a2032c49034b71233bc93403fd6261e9bc5c684f237806337 |
#!/usr/bin/env python
# -*- coding: latin-1 -*-
#
# Copyright 2016-2021 Blaise Frederick
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICEN... | bbfrederick/rapidtide | rapidtide/workflows/rapidtide_parser.py | Python | apache-2.0 | 48,505 | [
"Gaussian"
] | 5185698e5e1c13af4519d996651deaf5f43b798232b975e3a6955938b6b27ec7 |
#!/usr/bin/env python3.4
""" Parse Blast output in XML with Biopython and converts to SAM (v1).
Tested with Biopython 1.64 and BLASTN 2.2.30+ command
blastn -task blastn -subject ref.fasta -query reads.fasta -outfmt 5 \
-out outblast.xml -word_size 7 -qcov_hsp_perc 0.3
There are m times n records in b... | TAMU-CPT/galaxy-tools | tools/blast/blast2sam.py | Python | gpl-3.0 | 8,221 | [
"BLAST",
"Biopython"
] | 17f0de5fce421e30e19969081c3dab40d920fd15cc8219b6a75b1cfcc95aa478 |
# encoding: utf-8
"""
Implementation of the "low-level" functionality used by the common
implementation of the API, for the Brian simulator.
Classes and attributes usable by the common implementation:
Classes:
ID
Connection
Attributes:
state -- an instance of the _State class.
All other functions and cl... | anupkdas-nus/global_synapses | pyNN-dispackgaes/brian/simulator.py | Python | gpl-3.0 | 3,263 | [
"Brian"
] | 7702c0d09c712cbe2d0c7491135dcd0dfcc5419b0c2237ae9fde3ce3f88be562 |
# Authors: O. Hoidn, J. Pacold, and R. Valenza
import numpy as np
import os
import pandas as pd
from scipy import interpolate
import functools
import data_access as data
import utils
import playback
import pdb
from scipy.ndimage.filters import gaussian_filter as filt
from output import log
import config
if config.p... | hoidn/LCLS | dataccess/dataccess/xes_process.py | Python | gpl-3.0 | 20,265 | [
"CRYSTAL",
"Gaussian"
] | 962e44f914d9b97891731d84bba80f62fc17bb4104313c86dfd29259870593e8 |
# Copyright 2010-2017, The University of Melbourne
# Copyright 2010-2017, Brian May
#
# This file is part of Karaage.
#
# Karaage is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License... | brianmay/karaage | karaage/tests/initial_ldap_data.py | Python | gpl-3.0 | 4,103 | [
"Brian"
] | 76c483351952a2dbaadf1c777dad453d89bcd8e3b13bc68481a392a88b1a2364 |
# -*- coding: utf-8 -*-
#
# hpc_benchmark.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 License, ... | luis-rr/nest-simulator | pynest/examples/hpc_benchmark.py | Python | gpl-2.0 | 16,970 | [
"NEURON"
] | 29e28a3df11a774439757e02f36c0a79f7b9c302eaf83f9088958a219e86b773 |
#!/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 | test/tests/time_integrators/convergence/explicit_convergence.py | Python | lgpl-2.1 | 1,685 | [
"MOOSE"
] | 59bdb8c974c892dc31f8990844411e84642ec1bc3579b10b55cc3d723e96dc55 |
import httplib2
import sys
from apiclient.discovery import build_from_document
from oauth2client.client import flow_from_clientsecrets
from oauth2client.file import Storage
from oauth2client.tools import run_flow
YOUTUBE_READ_WRITE_SSL_SCOPE = \
"https://www.googleapis.com/auth/youtube.force-ssl"
YOUTUBE_API_SER... | ybotkiller/ybotkiller | youtube-grabber/youtube_grabber/auth.py | Python | apache-2.0 | 1,405 | [
"VisIt"
] | ccfb7ee24f16d755a16bf72b1a8c4a193d697c57c2f76a503dc53fe8db71ef5d |
# Copyright (c) 2020 Greg Pintilie - gregp@slac.stanford.edu
# 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, mo... | gregdp/segger | Segger/qscores.py | Python | mit | 132,894 | [
"Gaussian"
] | bb3d72397d894813a2a0666acb752af56ee435c451370ea8155cf3188db500c8 |
#
# Copyright (C) 2014-2015 edX
#
# This software's license gives you freedom; you can copy, convey,
# propagate, redistribute and/or modify this program under the terms of
# the GNU Affero General Public License (AGPL) as published by the Free
# Software Foundation (FSF), either version 3 of the License, or (at your
#... | edx/xblock-utils | xblockutils/base_test.py | Python | agpl-3.0 | 7,680 | [
"VisIt"
] | f78f0fb1afc68ace1a20344c673b03fc35fe151a4bdb6ef15b4024dd70c05b24 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2018 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | amjames/psi4 | psi4/driver/qcdb/molecule.py | Python | lgpl-3.0 | 87,073 | [
"CFOUR",
"Molpro",
"ORCA",
"Psi4",
"Q-Chem"
] | 69dfbcaf62d43b65b5931bac17df1b02f798d4ca45d398745f288381e4e4c78f |
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007-2009 Brian G. Matherly
# Copyright (C) 2008 James Friedmann <jfriedmannj@gmail.com>
# Copyright (C) 2010 Jakim Friant
#
#
# This program is free software; you can redistribute it and/or m... | pmghalvorsen/gramps_branch | gramps/gen/plug/report/utils.py | Python | gpl-2.0 | 9,606 | [
"Brian"
] | 2dfe21581b65a5275869ea74d02c410d8acbd77818da2fa440ff41f584cb207a |
#
# @file TestFunctionDefinition.py
# @brief SBML FunctionDefinition unit tests
#
# @author Akiya Jouraku (Python conversion)
# @author Ben Bornstein
#
# ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ======
#
# DO NOT EDIT THIS FILE.
#
# This file was generated automatically by convert... | TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestFunctionDefinition.py | Python | bsd-3-clause | 7,058 | [
"VisIt"
] | 1f9ceec9ab148d8ad2492d7c9a661f781668be7ddc771642a4dc4418810910e8 |
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | googleads/google-ads-python | google/ads/googleads/v8/common/types/user_lists.py | Python | apache-2.0 | 19,142 | [
"VisIt"
] | 8645fe1355e865369706e7e792b7aae8920fdb3738de2f64e2ece602cb801353 |
from property import *
import nest
import numpy.random as random
# Neuron parameters
iaf_neuronparams = {'E_L': -70., # Resting membrane potential in mV
'V_th': -50., # Spike threshold in mV
'V_reset': -67., # Reset membrane potential after a spike in ... | vitaliykomarov/NEUCOGAR | nest/IntegrationCUBE/parameters.py | Python | gpl-2.0 | 3,528 | [
"NEURON"
] | 5bf5ecbef549e4b841b7aa42ad219e17332b1a7029df54696a19bc4e74e1aff9 |
import datetime
import hashlib
import itertools
import logging
import os
import time
from collections import defaultdict
from dataclasses import asdict, dataclass, field
from operator import itemgetter
from typing import (
IO,
AbstractSet,
Any,
Callable,
Collection,
Dict,
Iterable,
List,... | andersk/zulip | zerver/lib/actions.py | Python | apache-2.0 | 325,551 | [
"Octopus"
] | ed89093c7a40a7295e76eb241d20338dfdda0824c57866f37f2c2ae19efa92b5 |
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
#
# Author: Mark Olesen <mark.olesen@esi-group.com>
#
# Legal Notice
# ------------
# OPENFOAM is a trademark owned by Ope... | LLNL/spack | var/spack/repos/builtin/packages/openfoam/package.py | Python | lgpl-2.1 | 40,809 | [
"ParaView",
"VTK"
] | 578d9235e8c6286660a58d2aabf0f6c32e2b0407a93a198a102d378bb7ab0e22 |
import urllib.parse
import oauth2 as oauth
import requests
import urllib.request, urllib.parse, urllib.error
REQUEST_TOKEN_URL = 'http://localhost:8000/api/oauth/request_token/'
AUTHORIZE_TOKEN_URL = 'http://localhost:8000/api/oauth/authorize/'
CALLBACK_URL = 'http://example.com/request_token_ready'
def get_request_... | sfu-fas/coursys | oldcode/api/demo2_get_request_token.py | Python | gpl-3.0 | 1,361 | [
"VisIt"
] | 2af9bfbf0930202e2659f3a35f87d349dc12601f29eede2c319e3b1b3c2ebb09 |
# Copyright (c) 2009 StudioNow, Inc <patrick@studionow.com>
#
# 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, modi... | sandow-digital/pybrightcove-sandow | tests/test_video.py | Python | mit | 28,188 | [
"exciting"
] | 8ba3d6de1aea84c07fb9f6ec5221ec15dd99a08b47683c49ce5f3a470b52b62c |
#!/usr/bin/env python
########################################################################
# File : dirac-fix-ld-lib
# Author : Joel Closier
########################################################################
from __future__ import print_function
__RCSID__ = "$Id$"
""" This is a script to fix oversized LD_L... | petricm/DIRAC | Core/scripts/dirac-fix-ld-library-path.py | Python | gpl-3.0 | 4,236 | [
"DIRAC"
] | 72b08df970b08c68ed8ec4478ed18ccd74001da66acd1586901c217c553387d0 |
#!/usr/bin/env python
##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatib... | pli3/Openwebif | plugin/controllers/views/mobile/channelinfo.py | Python | gpl-2.0 | 9,194 | [
"VisIt"
] | e24df82e6c553b98d11e53ca3c85535f4bf19cdbdba9b1df8d84f3aacc59d053 |
# -*- coding: utf-8 -*-
# @Author: Inderpartap Cheema
# @Date: 2017-02-10
# @Last Modified by: Inderpartap Cheema
# @Last Modified time: 2017-04-16 19:30:00
# @GPLv3 License
SPAM_TEXT = \
"""
My Dear Friend,
How are you and your family? I hope you all are fine.
My dear I know that this mail will come to you as a... | inderpartap/ham-or-spam | tests/constants.py | Python | gpl-3.0 | 1,746 | [
"VisIt"
] | 789e870083621cdcb30d0902ea82db855e347c4710a4008e57e41369285defd6 |
"""
BlackWidow Chroma Effects
"""
import os
from openrazer_daemon.dbus_services import endpoint
@endpoint('razer.device.lighting.brightness', 'getBrightness', out_sig='d')
def get_brightness(self):
"""
Get the device's brightness
:return: Brightness
:rtype: float
"""
self.logger.debug("DBus c... | lah7/razer-drivers | daemon/openrazer_daemon/dbus_services/dbus_methods/chroma_keyboard.py | Python | gpl-2.0 | 15,302 | [
"Firefly"
] | e712f83789581ed1289b7db8380ba081e81fdeeab4c8fb72cce72c5d18acdc43 |
# S.D. Peckham
# October 13, 2009
# December 2, 2009 (updated open_new_file to use "info")
import os
import sys
import time
import numpy
import bov_files
import rti_files
# import Nio # (a module in the PyNIO package)
#-------------------------------------------------------------------
# unit_test()
# sav... | csdms-contrib/erode | ncgs_files.py | Python | apache-2.0 | 16,693 | [
"NetCDF"
] | 316ee20b01dc00fef94cd927c4974f7f74d09c38dfcc281bdf9aa0fa574f509d |
"""unit testing code for the DbResultSet object
"""
import random
import unittest
from rdkit import RDConfig, Chem
from rdkit.Chem.Suppliers.DbMolSupplier import ForwardDbMolSupplier, RandomAccessDbMolSupplier
from rdkit.Chem.Suppliers.MolSupplier import MolSupplier
from rdkit.Dbase.DbConnection import DbConnect
fro... | ptosco/rdkit | rdkit/Chem/Suppliers/UnitTestDbMolSupplier.py | Python | bsd-3-clause | 2,975 | [
"RDKit"
] | af52065410656349581c9455ea27859edf1601712d2d2ed9cfdca3f2cabc9693 |
""" This is the setup.py script for setting up the package and fulfilling any
necessary requirements.
References:
https://github.com/pypa/sampleproject/blob/master/setup.py
https://github.com/biopython/biopython/blob/master/setup.py
http://python-packaging.readthedocs.io/en/latest/index.html
"""
# Modules Used
from se... | datasnakes/Datasnakes-Scripts | setup.py | Python | mit | 3,035 | [
"Biopython"
] | fc7504ac308ff66c49b8762a46eed0dca3381d06597f891a47d7093c0d83301a |
# Copyright (c) 2010 Howard Hughes Medical Institute.
# All rights reserved.
# Use is subject to Janelia Farm Research Campus Software Copyright 1.1 license terms.
# http://license.janelia.org/license/jfrc_copyright_1_1.html
"""
This script adds all of the muscles and innervations of C. elegans to the current netw... | JaneliaSciComp/Neuroptikon | Source/Scripts/C. elegans/Muscles.py | Python | bsd-3-clause | 22,826 | [
"NEURON"
] | b92e2b567179371b45a5bddce5f4fe9fabe1171cf638cb8b89267401ee0dc266 |
import numpy as np
import matplotlib.pyplot as plt
import neuron
def calc_hh():
soma = neuron.h.Section(name="soma")
soma.nseg = 3 # odd number
soma.diam = 10 # [um]
soma.L = 10 # [um]
soma.insert("hh")
meca = soma(0.5).hh
stim = neuron.h.IClamp(soma(0.5))
stim.delay = 50... | DaisukeMiyamoto/docker-neuron | neuron-run-python/test_neuron.py | Python | apache-2.0 | 956 | [
"NEURON"
] | ceb643cc2d7c05fd757ae47950c6e2d2e665702140319b24f8a47beccb9a0bce |
# -*- coding: utf-8 -*-
"""
sphinx.pycode
~~~~~~~~~~~~~
Utilities parsing and analyzing Python code.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from os import path
from sphinx import package_dir
from sphinx.errors import PycodeErr... | GbalsaC/bitnamiP | venv/lib/python2.7/site-packages/sphinx/pycode/__init__.py | Python | agpl-3.0 | 12,900 | [
"VisIt"
] | b2fb0f3d3b17c0a277b5ca2b58374f4067a841464d9d1369ae09dfa69d05249e |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
Development script of the ChemEnv utility to get the explicit permutations for coordination environments identified
with the separation plane algorithms (t... | Bismarrck/pymatgen | dev_scripts/chemenv/explicit_permutations_plane_algorithm.py | Python | mit | 6,782 | [
"pymatgen"
] | 70048708394b896fbb92e24835d96bc16425517227a658204f5f0579e6a47852 |
import os
import math
import pickle
import numpy as np
import time
try:
import matplotlib.pyplot as plt
import pylab as pl
_graphics = True
except:
_graphics = False
from datetime import datetime
from ase.visualize.primiplotter import PrimiPlotter, GifFile
from asap3.nanoparticle_mc.cluster import Clu... | auag92/n2dm | Asap-3.8.4/Python/asap3/nanoparticle_mc/montecarlo/surface.py | Python | mit | 25,183 | [
"ASE",
"CRYSTAL"
] | 62cdb0d95df8343033211b9a9c62cb1f5a0c9810757bbec3f32aa8d93b2f2660 |
'''Coral: code-ify your synthetic DNA design workflow.
Documentation available at http://coral.readthedocs.org.
Coral is a library for encoding the process of designing synthetic DNA
constructs. Coral mirrors the traditional design steps used in GUI-based
sequence design (ApE, j5, Benchling, etc.) as operations on da... | klavinslab/coral | setup.py | Python | mit | 3,475 | [
"Biopython"
] | 37488a71fdb056a7402e59cdbff77c38ce0f6e691713fd610e5e997e47343d9e |
"""
IRMAS Loader
.. admonition:: Dataset Info
:class: dropdown
IRMAS: a dataset for instrument recognition in musical audio signals
This dataset includes musical audio excerpts with annotations of the predominant instrument(s) present.
It was used for the evaluation in the following article:
.. ... | mir-dataset-loaders/mirdata | mirdata/datasets/irmas.py | Python | bsd-3-clause | 11,286 | [
"VisIt"
] | b520c5bc2f14f98ec8ab34732de7aa14d33f90b988811882e9d9583f93c9e3be |
#!/bin/env python
# Module to help convert OpenSceneGraph C++ examples to python
import re
import textwrap
from collections import OrderedDict
import clang.cindex
from clang.cindex import CursorKind, TokenKind
INDENT_SIZE = 4
CURRENT_INDENT = 0
# Conversion from C++ to python
punctuation_translator = {
'->': ... | JaneliaSciComp/osgpyplusplus | examples/rough_translated1/translate_clang3.py | Python | bsd-3-clause | 26,184 | [
"VisIt"
] | 92e4c548711978f45f85c8ae791b17ee1b1b124a7c578476de001f6af7a2bba1 |
"""
A Matplotlib timetrace plot figure with the addition of a QT slider to scroll
the time axis back and forth.
"""
from PySide import QtGui, QtCore
import pylab as plt
import numpy as np
N_SAMPLES = 1e6
def test_plot():
time = np.arange(N_SAMPLES)*1e-3
sample = np.random.randn(N_SAMPLES)
plt.plot(time, ... | chungjjang80/FRETBursts | fretbursts/utils/examples/timetrace_scroll_demo2.py | Python | gpl-2.0 | 3,582 | [
"Gaussian"
] | 9eaf80cb16e4b8f115d8570eff5a88fdb9972e201735d570961afb09482ea2f5 |
#!/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright 2014-2016 Colin B. Macdonald
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.... | cbm755/octsympy | util/generate_functions.py | Python | gpl-3.0 | 9,584 | [
"DIRAC"
] | 13b8a162310e7407aba72ac0c62cd6cd8930bfb41544ce364cfdf84d870d2bda |
"""
A collection of useful functions for genetic analysis of transcriptomic data.
Author: David Angeles-Albores
contact: dangeles@caltech.edu
Citation: Forthcoming
"""
# -*- coding: utf-8 -*-
import pandas as pd
import numpy as np
import pymc3 as pm
import matplotlib as mpl
import matplotlib.pyplot as plt
import sea... | WormLabCaltech/mprsq | src/genpy.py | Python | mit | 9,792 | [
"Gaussian"
] | b53e198ca3d978d6b4b198a5f851bd68655a75b669f314c7f0e218edb24b99ee |
# ----------------------------------------------------------------------------
# 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.
# --------------------------------------------... | jdrudolph/scikit-bio | skbio/sequence/_genetic_code.py | Python | bsd-3-clause | 31,304 | [
"scikit-bio"
] | 06a6a0ff0a4358f8ae1727012518741dfa5338e6e155b66a834ad408b3bae0b0 |
"""
Views related to the Custom Courses feature.
"""
import csv
import datetime
import functools
import json
import logging
import pytz
from contextlib import contextmanager
from copy import deepcopy
from cStringIO import StringIO
from django.conf import settings
from django.core.urlresolvers import reverse
from djan... | simbs/edx-platform | lms/djangoapps/ccx/views.py | Python | agpl-3.0 | 23,512 | [
"VisIt"
] | e65b7190abe59b6402871d905021eeaa6b1c5ad3dd0ad969e84569257abf41a6 |
from __future__ import print_function, division
from sympy import (Poly, igcd, divisors, sign, symbols, S, Integer, Wild, Symbol, factorint,
Add, Mul, solve, ceiling, floor, sqrt, sympify, Subs, ilcm, Matrix, factor_list, perfect_power,
isprime, nextprime, integer_nthroot)
from sympy.core.function import _mex... | AunShiLord/sympy | sympy/solvers/diophantine.py | Python | bsd-3-clause | 79,383 | [
"Gaussian"
] | fac18f06c367e2573a206b09e5582975fb5d17d2062b0a4781da47071eb9a963 |
# coding=utf8
##----------------------------------------------------------------------------##
## █ █ ##
## ████████ ##
## ██ ██ ... | AmazingCow-Game/Game_Taz | src/splash_scene.py | Python | gpl-3.0 | 6,669 | [
"VisIt"
] | abd44c2c5587dabd160473c3d6a869165d06093c09afe99e4209c58a58898a99 |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
res = 100
# Create the RenderWindow, Renderer and both Actors
#
ren1 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRenderer(ren1)
iren = vtk.... | sumedhasingla/VTK | Filters/Core/Testing/Python/TestFlyingEdgesPlaneCutterInterpolation.py | Python | bsd-3-clause | 2,924 | [
"VTK"
] | ea4f7e40566abe113f1b88f466565c70479478f6e0e0c1b13c85b1245fe199f2 |
#!/usr/bin/env python
'''
Mulliken population analysis with NAO
'''
import numpy
from pyscf import gto, scf, lo
from functools import reduce
x = .63
mol = gto.M(atom=[['C', (0, 0, 0)],
['H', (x , x, x)],
['H', (-x, -x, x)],
['H', (-x, x, -x)],
... | gkc1000/pyscf | examples/local_orb/01-pop_with_nao.py | Python | apache-2.0 | 997 | [
"PySCF"
] | 7ec41ff3f187bf6a7a294c37ffb9dd968a117b1b5c2af776715550e22a8fc695 |
import sys
import ast
from collections import namedtuple
from distutils.version import LooseVersion
from axidrawinternal.plot_utils_import import from_dependency_import
ebb_serial = from_dependency_import('plotink.ebb_serial') # Requires v 0.13 in plotink https://github.com/evil-mad/plotink
Versions = namedtuple(... | KnoxMakers/KM-Laser | extensions/km_deps/axidrawinternal/axidraw_options/versions.py | Python | gpl-3.0 | 5,746 | [
"VisIt"
] | 88668f8e6a1c9ec3370cc5931913c80f79f0c485a711b838b9a4a03d7e2c22b7 |
# Open epwmap
#
# Ladybug: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari
#
# This file is part of Ladybug.
#
# Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com>
# Ladybug is free software; you can redistribute it and/or modify
# it under the ... | boris-p/ladybug | src/Ladybug_download EPW Weather File.py | Python | gpl-3.0 | 1,836 | [
"EPW"
] | ea1910bed1bdae4319474e2dbc0cfd47bb6873e3bb5e0e2945241c8f1c71697d |
from __future__ import division
import numpy as np
import lmfit
from distutils.version import StrictVersion
import equations
def update_param_values_and_limits(pars, prefix, **kwargs):
for key, val in kwargs.items():
if key.endswith('_max'):
key_name = key[:-len('_max')]
attr = '... | ColumbiaCMB/kid_readout | kid_readout/analysis/resonator/lmfit_models.py | Python | bsd-2-clause | 6,747 | [
"Gaussian"
] | 18e6bf82da9ec3c1096eb245d05587c2ac7c2d22a584bcacd5597d8e0fbdbbd5 |
# qmpy/__init__.py
"""
qmpy is a package containing many tools for computational materials science.
"""
import numpy as np
try:
import pyximport
pyximport.install()
except ImportError:
pass
import logging
import logging.handlers
import os, os.path
import stat
import sys
import configparser
import djan... | wolverton-research-group/qmpy | qmpy/__init__.py | Python | mit | 8,290 | [
"ASE",
"VASP"
] | e601f02b182a6c3242c669aeaa9fac04704fd3909391c6fb5887e736e21ff517 |
####################################################################################################
# Copyright 2013 John Crawford
#
# This file is part of PatchCorral.
#
# PatchCorral is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | defcello/Children-of-Eden-Synth-Server | src/data/webpages/rolandfantomxr/SRX05.py | Python | gpl-3.0 | 17,998 | [
"BLAST",
"CRYSTAL"
] | 418d45a6eed8ccb0bd0c87dcd9543f82cc2cfe88c4f527dfc8b438d857af2626 |
import sys
sys.path.append("../")
import meshing_ats
m2 = meshing_ats.Mesh2D.read_VTK("lobster_full.vtk")
# layer thicknesses, except for the last entry which is the coordinate of the bottom
types = ['constant',]*5 + ['snapped',]
thicknesses = [0.2, 0.8, 1.0, 5.0, 13.0, -40.0]
ncells = [int(0.2/0.02), int(0.8 / 0.02)... | amanzi/ats-dev | tools/meshing_ats/meshing_ats/lobster/make_lobster.py | Python | bsd-3-clause | 1,061 | [
"VTK"
] | 1ccfb7ace49f057cc0a490ad067e271d4e80c5dcbea0362fbf5625278d77f49b |
"""
Tests PatternGenerator (position and orientation), and some of the
basic patterns.
$Id$
"""
__version__='$Revision$'
import unittest
from numpy.oldnumeric import array, pi
from numpy.oldnumeric.mlab import rot90
from numpy.testing import assert_array_equal
from topo.base.patterngenerator import Constant,Pattern... | ioam/svn-history | topo/tests/testpatterngenerator.py | Python | bsd-3-clause | 8,500 | [
"Gaussian"
] | 6ef8d1f5469d3bafa10d6300f1e930e311f5923148ddd3f9195080287b34cf2b |
#!/usr/bin/env python
#pylint: disable=missing-docstring
#################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment #
# #... | Chuban/moose | python/chigger/tests/background/background.py | Python | lgpl-2.1 | 1,167 | [
"MOOSE"
] | 4f04b77bfa65cc9049448e42d40c490dea195bc1004ed3ef52ff86bf2d79baf1 |
#
# Copyright 2011-2013 Blender Foundation
#
# 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... | cschenck/blender_sim | fluid_sim_deps/blender-2.69/2.69/scripts/addons/cycles/properties.py | Python | gpl-3.0 | 30,132 | [
"Gaussian"
] | 8a083e2a6db848e0b07a6a31b1a43b480890401ab469c811637b1901bfc869ec |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2019 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
#... | dgasmith/psi4 | psi4/driver/qcdb/pytest/utils.py | Python | lgpl-3.0 | 1,848 | [
"Psi4"
] | 8391b1d6fb7d4d52340b52c757e8eeaff60de845b323f4ec7e40e09fadbe81b5 |
#!/usr/bin/env python
"""
Get information on resources available for the given VO: Computing and Storage.
By default, resources for the VO corresponding to the current user identity are displayed
"""
from DIRAC.Core.Base.Script import Script
@Script()
def main():
from DIRAC import S_OK, gLogger, gConfig, exit as... | DIRACGrid/DIRAC | src/DIRAC/Resources/scripts/dirac_resource_info.py | Python | gpl-3.0 | 4,965 | [
"DIRAC"
] | 167e193a27f913fc72b482405c851c46709977f3038f743548530972d2aa0e5e |
# class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkPLOT3DReader(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.v... | nagyistoce/devide | modules/vtk_basic/vtkPLOT3DReader.py | Python | bsd-3-clause | 476 | [
"VTK"
] | 887215510627f5c01e8c03d2c55281afef30e2290d252af20e16b8081ff8d96e |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.