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
import argparse import datetime import json import logging import os import random import subprocess import time import hashlib import zipfile from sys import stderr import requests import requests.exceptions from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui ...
Crunchy005/ADP-Autologin
autologin.py
Python
bsd-2-clause
8,722
[ "ESPResSo" ]
695f92410e2f5c5847b445ffd765bf9650f17aadae5fe06bb0b2390377634505
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A Beauchamp # # MDTraj is...
marscher/mdtraj
MDTraj/geometry/angle.py
Python
lgpl-2.1
3,449
[ "MDTraj" ]
b920dec5ff0edc4202fed81d933b79d80433283e956017a24afdc44eedcfcb66
import os import os.path import xbmcgui xbmcgui.Dialog().ok("Gamestarter", "Installing UAE4ARM, please do not power off your Pi. A working internet connection is needed.") script_file = os.path.realpath(__file__) directory = os.path.dirname(script_file) # xbmcgui.Dialog().ok("Gamestarter", "Done!") # os....
bite-your-idols/Gamestarter-Pi
repository.gamestarter/script.gamestarter/resources/bin/install_uae.py
Python
gpl-2.0
951
[ "ADF" ]
d22549ec250f450268eb2496fe4d072d6e5336abdf469d9fc37f88404e599f15
# GWR Bandwidth selection class #x_glob parameter does not yet do anything; it is for semiparametric __author__ = "Taylor Oshan Tayoshan@gmail.com" from pysal.model.spreg import user_output as USER import numpy as np from scipy.spatial.distance import pdist,squareform from scipy.optimize import minimize_scalar from...
lixun910/pysal
pysal/model/mgwr/sel_bw.py
Python
bsd-3-clause
18,174
[ "Gaussian" ]
4a1978410a0ae1171a0178b9a6264a9063ce7668b92037863f6f7fbb067d582d
""" codecs -- Python Codec Registry, API and helpers. Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. """#" import builtins, sys ### Registry and builtin stateless codec functions try: from _codecs import * except ImportError as why: raise SystemErr...
ArcherSys/ArcherSys
Lib/codecs.py
Python
mit
35,923
[ "FEFF" ]
229f4c3479cc8936342784d21d8fe2e44e5cf0d5c50f4e8e8465a5c6279539e1
# $HeadURL: $ ''' SMSAction ''' from DIRAC import S_ERROR, S_OK from DIRAC.ResourceStatusSystem.PolicySystem.Actions.BaseAction import BaseAction #from DIRAC.ResourceStatusSystem.Utilities.InfoGetter import InfoGetter __RCSID__ = '$Id: $' class SMSAc...
vmendez/DIRAC
ResourceStatusSystem/PolicySystem/Actions/SMSAction.py
Python
gpl-3.0
3,014
[ "DIRAC" ]
0ce6c9c00706249c564e41013ad60d33f688cbb3f2eacab92d70441ebcfbaeec
# coding=utf-8 # Copyright 2022 The Edward2 Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
google/edward2
experimental/rank1_bnns/resnet_cifar_model.py
Python
apache-2.0
7,810
[ "Gaussian" ]
bbffabb3fa37fa109b7bf47ba1535800f5d09dc33705388c16756519b7972cd5
# -*- coding: utf-8 -*- from acq4.util.debug import * from acq4.devices.Device import * import time, traceback, sys from taskGUI import * #from numpy import byte import numpy #from scipy.signal import resample, bessel, lfilter import scipy.signal, scipy.ndimage import acq4.util.advancedTypes as advancedTypes from ...
tropp/acq4
acq4/devices/NiDAQ/nidaq.py
Python
mit
16,049
[ "Gaussian" ]
ca6d6ef67268011050fc59ec19d5803121c46de2d829f9205bd5cb71bcfbfcf4
#!/usr/bin/env python2 # Solution to project euler problem 19 import time from math import floor """ Gaussian algorithm to determine day of week """ def day_of_week(year, month, day): """ w = (d+floor(2.6*m-0.2)+y+floor(y/4)+floor(c/4)-2*c) mod 7 Y = year - 1 for January or February Y = year for ot...
svb2357/projecteuler
19/answer.py
Python
gpl-2.0
1,120
[ "Gaussian" ]
ae0575ed0a59acf18af8233a40fd527a08d3129af631dd0431d60e48b4b79991
import unittest import numpy import numpy.testing import numpy.random import scipy import math import diffusion_analysis import MDAnalysis import os import sys class Test_anomalous_diffusion_non_linear_fit(unittest.TestCase): def setUp(self): self.linearly_increasing_time_array = numpy.arange(50) ...
tylerjereddy/diffusion_analysis_MD_simulations
test_diffusion_analysis.py
Python
mit
8,380
[ "MDAnalysis" ]
5c212d9cffbd8ce44a5d16d728deeb1ecb1650237652e5db5987d97d2a0831cc
"""PyMOL script generator. The script syntax is the command language used by PyMOL (based on Python's cmd module), not using the pymol API directly. You generate the script, then you load the script in PyMOL and the pretty happens. """ import os.path # --------------------------------------------------------- # Map...
etal/cladecompare
cladecomparelib/pmlscript.py
Python
bsd-2-clause
10,058
[ "PyMOL" ]
c1be595c7eec1f47457be7d98e2a5fd8cf6cf377430f5af2cb388b262eba355b
import numpy as np import matplotlib.pyplot as plt import matplotlib import sens_calc as sens import sys, os from astropy.io import fits import aplpy from astropy.wcs import WCS plt.ion() telescope = sys.argv[1] rootdir = '.' bands = np.array([250, 350, 500]) # microns t_map = np.array([10., 5., 3., 1]) # hours t_dust...
sbg2133/miscellaneous_projects
galaxies/plot_gals_time.py
Python
gpl-3.0
4,294
[ "BLAST" ]
af955047b6525583a4484c8fb0a6526a8717b7ddb1a943e9ecb3f7b74c293eb7
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import unicode_literals, division, print_function import os from pymatgen.util.testing import PymatgenTest from pymatgen.core.structure import Structure from pymatgen.core.units import Ha_to_eV...
matk86/pymatgen
pymatgen/io/abinit/tests/test_abiobjects.py
Python
mit
5,613
[ "ABINIT", "pymatgen" ]
57767e61b68b9e25ab0c811fc676af05638cd8266b870e6d900bc6605e9a6967
#!/usr/bin/env python3 from astropy.table import Table import numpy import matplotlib.pyplot as plt from pyTinker import tinker def generate_Tinker(mass, z1, z2, dz): h = 0.7 # Initialize and generate the dn/dm t = tinker.counts( Om=0.3, OL=0.7, Ob=0.0456, H0=100.0, ...
boada/planckClusters
analysis_op/plots/plot_cluster_forecast.py
Python
mit
4,471
[ "TINKER" ]
161ffd7f844313b0de62307ca7bb4a197ba1af4e20b374523fa2ffff22375477
#pylint: disable=missing-docstring #################################################################################################### # DO NOT MODIFY THIS HEADER # # MOOSE - Multiphysics Object Oriented Simulation Environment ...
Chuban/moose
python/MooseDocs/html2latex/BasicExtension.py
Python
lgpl-2.1
5,070
[ "MOOSE" ]
5023993997b8f4ece88878321f39fb6cb53684c2f678824b9a8f8cd21212759c
# -*- 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 from di...
emelkrml/dictionary2
config/urls.py
Python
mit
1,785
[ "VisIt" ]
8d9c0fb897d8ad8d90dd24240a1adefde087568b764b4b24e8f0c7f3f9fa6d02
global astrom global tmpdir import traceback, tempfile #print tmpdir #tmpdir = '/tmp/pkelly/' astrom='solve-field' import astropy, astropy.io.fits as pyfits def length_swarp(SUPA,FLAT_TYPE,CHIPS): import os, re, utilities, bashreader, sys, string from copy import copy from glob import glob dict = get_f...
deapplegate/wtgpipeline
non_essentials/calc_test/calc_tmpsave.py
Python
mit
211,856
[ "Galaxy" ]
aaba622eceac9a3f39988450d5241446a6b537737dc54913d2fdb0eb48e0c3cf
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
fedepad/espressopp
src/standard_system/Default.py
Python
gpl-3.0
2,317
[ "ESPResSo" ]
666894750eed102bb49b235e3be2c0ac53f5f87b4dd3d3e982104a0da61c2e9f
import os import numpy as np from scipy import misc, ndimage from skimage import exposure __author__ = 'Daniel' class Scanifier(object): def run(self, imgin_path, imgout_path=None, increase_exposure=False): imgin_path = self.__expand_user(imgin_path) img = misc.imread(imgin_path) img_bl...
idf/scanify
core/__init__.py
Python
bsd-3-clause
1,529
[ "Gaussian" ]
51c7fb5c103f7f4e9d52de25d65742c31c43a412ff865f4895ede75754408dd6
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides an interface to communicate with the device via the adb command. Assumes adb binary is currently on system path. """ # pylint: disable-all ...
appknox/xysec_adb
xysec_adb/pylib/android_commands.py
Python
apache-2.0
73,378
[ "Galaxy" ]
a7d288398c02ed27ecc7fe1bc21e5b67e6cc8b574403848814a39a3de8c2417c
#!/usr/bin/python import tweetproc import os import io from datetime import * from tweetproc.sitesdata import * import pprint # Global variable used for processing siteiter=-1 # Custom process for this script def process(inputdir,outfilename,brtime1,brtime2): # Empty dictionary to store the tweet counts f...
HPCGISLab/TwitterMethods
workflow-sites-to-bresponse.py
Python
bsd-3-clause
3,713
[ "Amber" ]
0dbeb9aa3814c62296b04ce886ba58e9e719999b4bbfac3fd7397d2f344e87a7
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Laurawly/tvm-1
gallery/how_to/work_with_microtvm/micro_ethosu.py
Python
apache-2.0
20,382
[ "VisIt" ]
a89821493505aecb8fe13672f9a75cfe032ba0d154e0983c1908abeeadafa195
from __future__ import absolute_import import atexit import logging from pprint import pformat from tornado.options import define, options, parse_command_line from celery.bin.base import Command from . import settings from .app import Flower define("port", default=5555, help="run on the given port", type=int) de...
andresriancho/flower
flower/command.py
Python
bsd-3-clause
2,753
[ "VisIt" ]
96685e118650e31dfc869182cee11f39e9993c0c7d629277710a3d73eae66552
# -*- coding: utf-8 -*- import numpy as np from .utility import calculate_weighting_factor from .calc import calculate_fr from .pattern import Pattern def i_q_peak(q, n, position, sigma, composition, element_1, element_2): """ Calculates the contribution of one element 1 - element 2 peak in real space to i(...
Luindil/Glassure
glassure/core/fitting.py
Python
mit
3,261
[ "Gaussian" ]
598ceb6efab77361cc5825aa86cdba2451d656a2eb1aaa2474d041bf28f1a19e
#!/usr/bin/env python # # Copyright 2012 Viewfinder Inc. All Rights Reserved. """Runs the Viewfinder watchdog. """ __author__ = 'matt@emailscrubbed.com (Matt Tracy)' import logging import os import signal import sys import time from functools import partial from tornado import ioloop, httpclient, options from scena...
0359xiaodong/viewfinder
backend/watchdog/watchdog.py
Python
apache-2.0
10,339
[ "VisIt" ]
1e301af990cd31120f800a2fe6e006679ac82d65be60b296c3c3d94dd236e975
# -*- coding: utf-8 -*- from __future__ import absolute_import import datetime from django.conf import settings from django.http import HttpResponse from django.test import TestCase from django.utils import timezone from mock import patch, MagicMock from zerver.lib.test_helpers import MockLDAP from confirmation.model...
jainayush975/zulip
zerver/tests/test_signup.py
Python
apache-2.0
69,459
[ "VisIt" ]
36f4a973c8a4dfb6b085c4b689de777438f09a5b21e600ecd6709fa69215f8f3
""" Acceptance tests for Studio's Setting pages """ import re from common.test.acceptance.pages.lms.create_mode import ModeCreationPage from common.test.acceptance.pages.studio.settings_advanced import AdvancedSettingsPage from common.test.acceptance.pages.studio.settings_certificates import CertificatesPage from co...
cpennington/edx-platform
common/test/acceptance/tests/studio/test_studio_settings_certificates.py
Python
agpl-3.0
13,196
[ "VisIt" ]
4bde9100bdeb868cb10ed23044ef49219694ce137a016ea8e332856bb76f178a
from gpiozero import TrafficLights, Button from time import sleep tl1 = TrafficLights(13, 19, 26) tl2 = TrafficLights(21, 20, 16) tl3 = TrafficLights(10, 9, 11) tl4 = TrafficLights(7, 8, 25) cross1 = TrafficLights(2, 3, 4) cross2 = TrafficLights(18, 15, 14) btn = Button(5) def pressed(): print("Don't push the but...
waveform80/presentations
traffic_lights/example.py
Python
cc0-1.0
742
[ "Amber" ]
45b9b6ede82bf92fd9b2cf678dcacc5c31b7cbd9b56a71482b7d30f4e479773c
from .. import factories as f from wye.base.constants import WorkshopStatus from .. utils import create_user_verify_login def test_report_home_page(base_url, browser, outbox): f.create_usertype(slug='tutor', display_name='tutor') user = create_user_verify_login(base_url, browser, outbox) location1 = f.cre...
pythonindia/wye
tests/functional/test_reports.py
Python
mit
3,359
[ "VisIt" ]
52977d66d54b13f62969d1e6f3b93c69ae0dbb5ac0156fb99ad223c88f718b84
"""Tracker for zero-copy messages with 0MQ.""" #----------------------------------------------------------------------------- # Copyright (C) 2013 Brian Granger, Min Ragan-Kelley # # This file is part of pyzmq # # Distributed under the terms of the New BSD License. The full license is in # the file COPYING.BSD, d...
ellisonbg/pyzmq
zmq/sugar/tracker.py
Python
lgpl-3.0
4,015
[ "Brian" ]
7d98d902a5a93eb9f9346ec8837e68b26edc41b8f0c1920e93eaa54e2d710d90
import numpy as np import sys import os import time from ase.units import Bohr from ase.structure import bulk from gpaw import GPAW from gpaw.atom.basis import BasisMaker from gpaw.response.df import DF from gpaw.mpi import serial_comm, rank, size from gpaw.utilities import devnull if rank != 0: sys.stdout = devnul...
ajylee/gpaw-rtxs
gpaw/test/aluminum_EELS.py
Python
gpl-3.0
1,456
[ "ASE", "GPAW" ]
e06506a2c3bb0a070fd939ad18bdfc188d7e311eee97e05e2808279bd1960ba4
import json from hs_build_tools.nose import eq_,ok_ from hashkernel.bakery import Cake, CakeRole, CakeType, CakePath from hashstore.tests import (sqlite_q, TestSetup, file_set1, file_set2, prep_mount, update_mount, fileset1_cake, fileset2_cake) import os from time import sleep import urllib.request import logging...
walnutgeek/hashstore
hashstore/bakery/tests/server_tests.py
Python
apache-2.0
8,661
[ "NEURON" ]
0ab17914a1a87326d98ea6740eea5fb6a9a76f5683ca97d5caf8cd6820e7447c
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2019-2020 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
ubuntu-core/snapcraft
tests/unit/plugins/v1/test_crystal.py
Python
gpl-3.0
8,050
[ "CRYSTAL" ]
c6a0d62d63ad1f1ecbd88be06b470d2c1f6c9a90df31e0926e43ab7c2439c8fe
# PyTransit: fast and easy exoplanet transit modelling in Python. # Copyright (C) 2010-2020 Hannu Parviainen # # 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 Licen...
hpparvi/PyTransit
pytransit/models/numba/gdmodel.py
Python
gpl-2.0
16,667
[ "FEFF" ]
9300debfc3c5b58836300eda2de98cc03ed506ee51267a34d5a4d6afaa209de3
""" SECTION 1 : Load and setup data for training the datasets separated in two files from originai datasets: iris_train.csv = datasets for training purpose, 80% from the original data iris_test.csv = datasets for testing purpose, 20% from the original data """ import pandas as pd #load datatrain = pd.read_csv('iris_...
rianrajagede/simplesamplecode
Tensorflow/iris_tf_v2.py
Python
mit
3,066
[ "NEURON" ]
4f24db4a30826a9d54397fb7b1ad0592e4bba223a8e059372740209290fb4565
""" Acceptance tests for Studio related to the split_test module. """ import json import math from unittest import skip from nose.plugins.attrib import attr from selenium.webdriver.support.ui import Select from xmodule.partitions.partitions import Group, UserPartition from bok_choy.promise import Promise, EmptyPromis...
c0710204/edx-platform
common/test/acceptance/tests/studio/test_studio_split_test.py
Python
agpl-3.0
45,159
[ "VisIt" ]
fbe68f8208f913271967bb866fddefca79a9480185f2892ff76580a04a9c7a99
#!/usr/bin/env python # -*- coding: utf-8 -*- # freeseer - vga/presentation capture software # # Copyright (C) 2011, 2013, 2014 Free and Open Source Software Learning Centre # http://fosslc.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
Freeseer/freeseer
src/freeseer/framework/config/options.py
Python
gpl-3.0
4,157
[ "VisIt" ]
2454b70fae863263bc7995fb7005c4c91664e2588325f5b66ffeabe64a80ec8d
#!/usr/bin/env python # vim: set fileencoding=utf-8 : # Elie Khoury <Elie.Khoury@idiap.ch> # Fri Aug 30 11:53:40 CEST 2013 # # Copyright (C) 2012-2013 Idiap Research Institute, Martigny, Switzerland # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public ...
antoniorohit/xbob.spkrec
xbob/spkrec/tools/UBMGMMRegular.py
Python
gpl-3.0
2,668
[ "Gaussian" ]
521d54875d6fd2fb7e29ccc6cfeb71c11f5c359e415df5dc5225f5c1b4553490
# ______________________________________________________________________ from .bytecode_visitor import BytecodeFlowVisitor, BenignBytecodeVisitorMixin # ______________________________________________________________________ synthetic_opname = [] synthetic_opmap = {} def def_synth_op (opname): global synthetic_o...
llvmpy/llvmpy
llpython/phi_injector.py
Python
bsd-3-clause
5,661
[ "VisIt" ]
c18b09b7603a4e3a4004c54d8f02b03b68a95fc856a16f247a6ba8696db9f55f
#!/usr/bin/env python """ Probabilistic matrix factorization. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import edward as ed import tensorflow as tf import numpy as np from edward.models import Variational, Normal from edward.stats import norm, poi...
ruohoruotsi/Wavelet-Tree-Synth
edward-examples/matrix_factorization.py
Python
gpl-2.0
2,573
[ "Gaussian" ]
6dc987cbe98b04a26ddbbe462293e603086c121ca945565d1b715c961b42c357
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest from pymatgen.core import Structure from pymatgen.util.string import ( Stringify, charge_string, disordered_formula, formula_double_format, htmlify, latexify, latexify_spacegroup, ...
materialsproject/pymatgen
pymatgen/util/tests/test_string.py
Python
mit
4,743
[ "pymatgen" ]
c712ea8749040b79b96e60b7b3538650ebf33e24be71c0fbfd873b45a062b659
#!/usr/bin/env 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. # # Written (W) 2013 Evangelos Anagnostopo...
MikeLing/shogun
applications/classification/random_fourier_classification.py
Python
gpl-3.0
3,540
[ "Gaussian" ]
fcedc8e20a4b4797c955b2cfe5f269d34725bf587c0c0112109a0f663214ce4a
""" This module integrates the Multi-Fidelity Co-Kriging method described in [LeGratiet2013]. (Author: Remi Vauclin <vauclin.remi@gmail.com>) This code was implemented using the package scikit-learn as basis. (Author: Vincent Dubourg <vincent.dubourg@gmail.com>) OpenMDAO adaptation. Regression and correlation functi...
HyperloopTeam/FullOpenMDAO
lib/python2.7/site-packages/openmdao.lib-0.13.0-py2.7.egg/openmdao/lib/surrogatemodels/multifi_cokriging_surrogate.py
Python
gpl-2.0
31,252
[ "Gaussian" ]
1403f09fdbe5b7be94a10563239d6490311d46457acb2d4c359fb034c5ec28e4
# (c) 2017, Brian Coca # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dist...
grimmjow8/ansible
lib/ansible/plugins/cache/yaml.py
Python
gpl-3.0
1,427
[ "Brian" ]
7da41428dd835258b7c10380da6bd49bfc7df02f382ea1cb68fd439dedf591f1
#!/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
modules/geochemistry/python/dbutils.py
Python
lgpl-2.1
3,575
[ "MOOSE" ]
92ecdae0fe7e4b5122d7e2ed8b9a2370b7546f9f358ece6c6c2ab744bbf3cf12
from __future__ import print_function from builtins import range """ SECTION 1 : Load and setup data for training the datasets separated in two files from originai datasets: iris_train.csv = datasets for training purpose, 80% from the original data iris_test.csv = datasets for testing purpose, 20% from the original ...
rianrajagede/simplesamplecode
Pytorch/iris_pytorch.py
Python
mit
3,000
[ "NEURON" ]
72f482e84b6570959911a2aa060e857317d6c86928dc9e3cd585bf989fdaac40
from __future__ import print_function import json import os import numpy as np from ..utils import Util2d, Util3d, Transient2d, MfList, \ HeadFile, CellBudgetFile, UcnFile, FormattedHeadFile from ..mbase import BaseModel from ..pakbase import Package from . import NetCdf, netcdf from . import shapefile_uti...
brclark-usgs/flopy
flopy/export/utils.py
Python
bsd-3-clause
37,058
[ "NetCDF" ]
15359fee0c06e16755bf72c66f9f857dd4035f97cb6d8b126ce23f67c09599bc
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2021 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 #...
jturney/psi4
psi4/share/psi4/databases/A24.py
Python
lgpl-3.0
29,690
[ "Psi4" ]
c9f3171e8712d0b7c1f12716318ea8084398b3c3c15eb35607f4a1b0bfc409d4
""" Tests i18n in courseware """ import json import re import six from django.conf import settings from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from django.test.client import Client from django.urls import reverse, reverse_lazy from django.utils import translation ...
stvstnfrd/edx-platform
lms/djangoapps/courseware/tests/test_i18n.py
Python
agpl-3.0
9,425
[ "VisIt" ]
4ffe058a97a55525b31c8e274c1266139be3b7d9b11ccc0dd8a033a1c30b8b2b
# -*- coding: utf-8 -*- """ Created on Thu Jan 09 11:51:10 2014 @author: Lam H. Dao <lam(dot)dao(at)nih(dot)gov> <daohailam(at)yahoo(dot)com> """ import numpy as np from StdFunctions import StdFx #------------------------------------------------------------------------------ class WinFx(object):...
lamdao/vipy
WinFunctions.py
Python
gpl-3.0
1,659
[ "Gaussian" ]
6693e65ee2a1b40fdcd4bc8d7ddadbb27388e7469482d8b8765113ff2b473b93
""" The B{0install slave} command-line interface. """ # Copyright (C) 2013, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import sys, os, collections from zeroinstall import _, logger, SafeException from zeroinstall.cmd import UsageError from z...
pombredanne/0install
zeroinstall/cmd/slave.py
Python
lgpl-2.1
21,919
[ "VisIt" ]
3c0ce115c8b814566b54dcd8a0d5b82621f681f50de3dee897bf78a48900ebc5
# (c) 2012-2018, Ansible by Red Hat # # This file is part of Ansible Galaxy # # Ansible Galaxy is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by # the Apache Software Foundation, either version 2 of the License, or # (at your option) any later version. # ...
chouseknecht/galaxy
galaxy/settings/__init__.py
Python
apache-2.0
1,344
[ "Galaxy" ]
de87e698921c35c087840caf94e2c7788395172f2f889cd520215dc03c9d87ea
import copy import hashlib import json import multiprocessing import os.path import random import shutil import string import tempfile from os import mkdir from os.path import exists from subprocess import CalledProcessError, check_call, check_output import pkgpanda.build.constants import pkgpanda.build.src_fetchers f...
xinxian0458/dcos
pkgpanda/build/__init__.py
Python
apache-2.0
48,396
[ "VisIt" ]
fd842b1343a5a5b0603400398642b21ef214fa648417d9d7d6a0587addc06513
#!/usr/bin/env python # # Data manager for reference data for the 'humann2' Galaxy tools import datetime import json import optparse import os import shutil import subprocess import sys HUMANN2_REFERENCE_DATA = { "full": "Full", "DEMO": "Demo", "uniref50_diamond": "Full UniRef50", "uniref50_ec_filtere...
pjbriggs/tools-iuc
deprecated/data_managers/data_manager_humann2_database_downloader/data_manager/data_manager_humann2_download.py
Python
mit
5,214
[ "Galaxy" ]
6b7428314d71030a5a3c3ff711c55243fb9fee190f1ac19aab85b33ef1a55c7f
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.local') import sys import django django.setup() from django.conf import settings from django.contrib.auth.models import check_password from django.contrib.auth import authenticate from items.models import BaseItem from it...
abirafdirp/inventory
inventory/populate_db.py
Python
bsd-3-clause
4,473
[ "Galaxy" ]
c743988658c5c775338abe819860f6e8a3771f5a0f2ff1458a059c502ab70178
#!/usr/bin/env python """ Restart DIRAC component using runsvctrl utility """ __RCSID__ = "$Id$" # from DIRAC.Core.Base import Script Script.disableCS() Script.setUsageMessage( '\n'.join( [ __doc__.split( '\n' )[1], 'Usage:', ' %s [option|cfgf...
Andrew-McNab-UK/DIRAC
FrameworkSystem/scripts/dirac-restart-component.py
Python
gpl-3.0
1,224
[ "DIRAC" ]
8c9f968386df432bd51123e6f64512775314215a343af4ca5f3aaf98a5dc4d2f
## # Copyright 2009-2021 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://www.vscentrum.be), # Flemish Research Foundation (F...
boegel/easybuild-easyblocks
easybuild/easyblocks/w/wien2k.py
Python
gpl-2.0
26,730
[ "WIEN2k" ]
be94f8c16256460d1062df4c9cf936e34c429d15f7ca4b2c5aef56e3fbc83023
""" Tools for using spherical harmonic models to fit diffusion data References ---------- Aganj, I., et. al. 2009. ODF Reconstruction in Q-Ball Imaging With Solid Angle Consideration. Descoteaux, M., et. al. 2007. Regularized, fast, and robust analytical Q-ball imaging. Tristan-Vega, A., et. al. 2010. A new me...
beni55/dipy
dipy/reconst/shm.py
Python
bsd-3-clause
30,473
[ "DIRAC" ]
bbfcbc77234c6879e122a35ff3699b7ec9c0c18e1de1bc2b63b0f7626e4ec46d
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """Unit tests for the `iris.fileformats.netcdf._load_cube` function.""" # Import iris.tests first so that some things can be i...
pp-mo/iris
lib/iris/tests/unit/fileformats/netcdf/test__load_cube.py
Python
lgpl-3.0
6,671
[ "NetCDF" ]
19385dc83a1f98403cf3ae4654d03b9626c5c9f3cb897045033debc484e60b02
# 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 agreed to in writing, ...
google-research/world_models
planners/planners.py
Python
apache-2.0
23,775
[ "Gaussian" ]
6314affafb3915f10474cf17780e3260787eeff10beda7c76d0efcaeef790244
from module_kits.misc_kit.mixins import SubjectMixin import geometry from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import Measure2DFrame reload(Measure2DFrame) import vtk import vtktudoss import wx class M2DMeasurementInfo: pass class M2DWidget: """Cla...
nagyistoce/devide
modules/viewers/Measure2D.py
Python
bsd-3-clause
15,370
[ "VTK" ]
861405975da143ced932f9499a16e158a759c7030b9ecb87de0e16628546a69e
from django.test import TransactionTestCase from django.contrib.auth.models import Group from django.conf import settings from hs_core import hydroshare from hs_core.hydroshare import utils from hs_core.models import CoreMetaData from hs_core.testing import TestCaseCommonUtilities class TestNetcdfMetaData(TestCaseCo...
FescueFungiShare/hydroshare
hs_app_netCDF/tests/test_netcdf_metadata_user_zone.py
Python
bsd-3-clause
6,489
[ "NetCDF" ]
f89f8c76e6e39e1344c51c0d8e9a6666b60f77c4f19914734d4207dde175b8fc
# -*- coding: utf-8 -*- """ Tests for student account views. """ import logging import re from unittest import skipUnless from urllib import urlencode import ddt import mock import pytest from django.conf import settings from django.contrib import messages from django.contrib.auth import get_user_model from django.co...
Stanford-Online/edx-platform
lms/djangoapps/student_account/test/test_views.py
Python
agpl-3.0
48,142
[ "VisIt" ]
c381115cc928fe31887b588dcb1769e167861b93d99a7cbb52d72d18b91ac6fa
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2016 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This program is free software; you can redistribute it and/or modify # it under the terms of ...
kannon92/psi4
psi4/driver/qcdb/cov_radii.py
Python
gpl-2.0
5,363
[ "Psi4" ]
344ab9ff4aab6af5db022017882c7ef770c376b26dbafeda2a9aa6b3356d57ad
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
anksp21/Community-Zenpacks
ZenPacks.AndreaConsadori.MRV/ZenPacks/AndreaConsadori/MRV/modeler/plugins/MrvL2L4DeviceMap.py
Python
gpl-2.0
1,378
[ "VisIt" ]
6939a638f8a593fbb6a7d5ef84ba534cfdc71f83242be239ea19f2545da9cbd2
#!/usr/bin/env python from __future__ import print_function import numpy as N import libRun as LR import os def build_cmd(patches, config, filt, input, output): cmd = "jointcalCoadd.py %s --output %s " % (input, output) + patches + " @" + \ filt + ".list" + " --configfile " + config + " --clobber-conf...
LSSTDESC/ReprocessingTaskForce
scripts/run_jointcalCoadd.py
Python
gpl-2.0
2,317
[ "VisIt" ]
6d861b5df5b1a8d13e82f6fa6a222c4f9c8f0d96c6c9b89d9bcdb92001776fdf
# FreeCAD TemplatePyMod module # (c) 2010 Werner Mayer LGPL """ The module can be executed with: FreeCAD -P <path_to_file> Automation.py FreeCADCmd -P <path_to_file> Automation.py """ import FreeCAD, Part import os import tempfile def makeSnapshotWithGui(): from PySide import QtGui import FreeCADG...
sanguinariojoe/FreeCAD
src/Mod/TemplatePyMod/Automation.py
Python
lgpl-2.1
2,533
[ "CRYSTAL" ]
8d1e5228dc8934e36d855c2ec11b8e5c594a37e639d3bbe5806aca52cd274636
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements plotter for DOS and band structure. """ import logging import math import itertools import warnings from collections import OrderedDict import numpy as np from monty.json import jsa...
gVallverdu/pymatgen
pymatgen/electronic_structure/plotter.py
Python
mit
183,086
[ "BoltzTrap", "CRYSTAL", "Gaussian", "Mayavi", "VASP", "pymatgen" ]
d9d7ea4680516e596e28bb31f1190c784044869c056ce869f66c6bce768e2702
# # The Python Imaging Library. # $Id$ # # the Image class wrapper # # partial release history: # 1995-09-09 fl Created # 1996-03-11 fl PIL release 0.0 (proof of concept) # 1996-04-30 fl PIL release 0.1b1 # 1999-07-28 fl PIL release 1.0 final # 2000-06-07 fl PIL release 1.1 # 2000-10-20 fl PIL release 1.1.1...
whitehorse-io/encarnia
pyenv/lib/python2.7/site-packages/PIL/Image.py
Python
mit
82,194
[ "Gaussian" ]
8e09aa8390ec76d9ec390fa91a4ddf9845017d3af1b2a4453a2b961cbfb311d1
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. """ Define a common VASP Sile """ from ..sile import Sile, SileCDF, SileBin from sisl._internal import set_module import...
zerothi/sisl
sisl/io/vasp/sile.py
Python
mpl-2.0
1,772
[ "VASP" ]
03a7f14c38ee5325958e68acbcf873c57d19360247579dea214ca938074fa6a0
import os from lutris.runners.runner import Runner class virtualjaguar(Runner): description = "Atari Jaguar emulator" human_name = "Virtual Jaguar" platforms = ['Atari Jaguar'] runnable_alone = True runner_executable = 'virtualjaguar/virtualjaguar' game_options = [ { "optio...
RobLoach/lutris
lutris/runners/virtualjaguar.py
Python
gpl-3.0
984
[ "Jaguar" ]
75c0a2ba07e34ea4a51316382054073a415f478724046109fda42d12f86dff1c
""" Maximum likelihood covariance estimator. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux <gael.varoquaux@normalesup.org> # Virgile Fritsch <virgile.fritsch@inria.fr> # # License: BSD 3 clause # avoid division truncation import warnings import numpy as np from scipy...
kevin-intel/scikit-learn
sklearn/covariance/_empirical_covariance.py
Python
bsd-3-clause
10,751
[ "Gaussian" ]
5e13f3c32260a6fdfd0f6bfd53013238d4a385096caa5594d60bf595239ac89d
""" Views related to the Custom Courses feature. """ import csv import datetime import functools import json import logging from copy import deepcopy from cStringIO import StringIO import pytz from ccx_keys.locator import CCXLocator from django.conf import settings from django.contrib import messages from django.contr...
philanthropy-u/edx-platform
lms/djangoapps/ccx/views.py
Python
agpl-3.0
21,546
[ "VisIt" ]
6f5d8fb9662e9cc7f5f3f96aa9081ec390f248b1d1fc753f09da7a5add650b1a
# DistTarBuilder: tool to generate tar files using SCons # Copyright (C) 2005, 2006 Matthew A. Nicholson # Copyright (C) 2006-2010 John Pye # # This file is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License version 2.1 as published by the Free Software...
sly2j/analyzer
site_scons/disttar.py
Python
gpl-2.0
4,719
[ "VisIt" ]
b928962245ebb2bcaff6b8afe90b617c687e5fb09b1ee014ed890f525e064ac0
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
sandeepdsouza93/TensorFlow-15712
tensorflow/contrib/learn/python/learn/learn_io/graph_io.py
Python
apache-2.0
32,061
[ "VisIt" ]
6190e94a2c7cc0e6f130b704e1aa1c6a30ae054e102381446a7b6fe3dad1ccd6
from setuptools import setup from codecs import open from os import path here = path.abspath(path.dirname(__file__)) with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='Binsanity', # This is the name of your PyPI-package. version='0.5.4', descript...
edgraham/BinSanity
setup.py
Python
gpl-3.0
967
[ "Biopython" ]
0db53717dd3b3b1d8632cfda6f376db93a74648bdbf453175d910e96b6f1aa15
__author__ = 'Robbie' search_placeholders = [ "why was the guy who created the libyan flag so lazy....", "people getting attacked by squirrels....", "dream with squirrels attacking....", "why are red and grey squirrels feuding....", "anger management for midget wrestlers....", "how can kenny di...
robbielynch/RoblySearch
robly_data/random_search_placeholder.py
Python
gpl-2.0
1,728
[ "Octopus" ]
48b43ff30e4f4fc100d6e684396e2d510f00d4faf3323df1ba39ac73cd3605d7
from numpy.testing import TestCase, run_module_suite, assert_,\ assert_raises from numpy import random from numpy.compat import asbytes import numpy as np class TestMultinomial(TestCase): def test_basic(self): random.multinomial(100, [0.2, 0.8]) def test_zero_probability(self): random...
pelson/numpy
numpy/random/tests/test_random.py
Python
bsd-3-clause
22,199
[ "Gaussian" ]
9d17b978edfb4adb1a6e7de80c911fd02bcd024a658ebb24e2ef5d55e2f22ab2
#!/usr/bin/env python ######################################## #Globale Karte fuer tests ######################################## from mpl_toolkits.axes_grid1 import ImageGrid import numpy as np import math import pylab as pl import Scientific.IO.NetCDF as sion import matplotlib as mpl import matplotlib.pyplot as plt...
CopyChat/Plotting
Python/colorbar.py
Python
gpl-3.0
2,022
[ "NetCDF" ]
75d1830495e4a18a71506d32b0a06e7356a828c9cfdf35c683ce749b3ec6227f
# coding: utf-8 """Test mdn.specifications""" from __future__ import unicode_literals from webplatformcompat.models import Section from mdn.html import HTMLText from mdn.kumascript import KumaVisitor, SpecName, kumascript_grammar from mdn.specifications import ( SpecSectionExtractor, Spec2Visitor, SpecDescVisitor...
renoirb/browsercompat
mdn/tests/test_specifications.py
Python
mpl-2.0
19,675
[ "VisIt" ]
7a7f212ef88619abca49461f48c2625e91acc0bcad2325c5023bf6244917aee9
""" Created on 07.08.2010 @author: RevEn This module provides functionality to train and test Cascade Correlation Neural Networks (Fahlman and Libiere, 1990) """ import pyopencl import numpy class CascadeCorrelationNeuralNetwork( object ): """ Cascaded Correlation Neural Network. This class manages...
reven86/gpgpu-neuralnet
nn/cascade.py
Python
gpl-3.0
2,554
[ "NEURON" ]
f7af187933f11acf7ed9942be0c54f4dbbc81a4daf50effb8feef129074e660c
######################################################################## # $HeadURL$ # File : VirtualMachineContextualization.py # Author : Victor Mendez ######################################################################## """ The VirtualMachineContextualization agent is used for the asyncronous vm contextualiz...
vmendez/VMDIRAC
WorkloadManagementSystem/Agent/VirtualMachineContextualization.py
Python
gpl-3.0
4,706
[ "DIRAC" ]
a3d7589d9d9c159b200ee590aacff1a07f888cab78d9113c56a757205d92b5e0
""" Module to call mcsqs, distributed with AT-AT https://www.brown.edu/Departments/Engineering/Labs/avdw/atat/ """ import os import warnings from subprocess import Popen, TimeoutExpired from typing import Dict, Union, List, NamedTuple, Optional from pathlib import Path from monty.dev import requires from monty.os.pat...
mbkumar/pymatgen
pymatgen/command_line/mcsqs_caller.py
Python
mit
8,263
[ "pymatgen" ]
c492088d45ffb4b104f9929ec9a70ae6fcd0e9c99545606725285bec08e46f27
"""Molecular Dynamics.""" import numpy as np from ase.optimize import Dynamics from ase.data import atomic_masses class MolecularDynamics(Dynamics): """Base-class for all MD classes.""" def __init__(self, atoms, timestep, trajectory): Dynamics.__init__(self, atoms, logfile=None, trajectory=trajector...
freephys/python_ase
ase/md/__init__.py
Python
gpl-3.0
766
[ "ASE" ]
542909794a2e58be70ee49ab7e9a4994099688299a4e4d771b1a80381c98bc1d
"""Process provided GeoJSON files into the database. Brian Gelder provides me some archive of processed HUC12s, this archive is dumped to disk and then glob'd by this script. It then creates a `myhucs.txt` file, which provides the downstream scripts the data domain to limit processing to. python flowpath_importe...
akrherz/idep
scripts/import/flowpath_importer.py
Python
mit
8,396
[ "Brian" ]
f1f898e0b68a88bd106de8f0d1c7b3e176043554a6b02721da94e5259cb7c36b
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2008 Brian G. Matherly # Copyright (C) 2008-2009 Gary Burton # Copyright (C) 2008 Robert Cheramy <robert@cheramy.net> # Copyright (C) 2010 Jakim Friant # Copyright (C) 2010 Nick Ha...
Nick-Hall/gramps
gramps/plugins/export/exportgedcom.py
Python
gpl-2.0
61,348
[ "Brian" ]
6118c3ed35529aa88c4e38d12d7622f5826b89131c579370e6026aa8256e385e
#!/usr/bin/env python # -*- coding: utf-8 -*- from django import forms from django.contrib.auth.models import Group from django.urls import reverse from django.utils import timezone from django.core.exceptions import ValidationError from django.conf import settings from crispy_forms.helper import FormHelper from cris...
gwu-libraries/sfm-ui
sfm/ui/forms.py
Python
mit
45,051
[ "Firefly" ]
cd4df4870a1c0a494c59de7d1f9bf99e004ac2ff920e14257c305666cc3c31d4
""" Convenient lineshape definitions. Several different lineshapes which are frequently found in spectroscopy. These can be used to build more complex models. """ from math import sqrt, log import numpy as np from scipy.special import wofz def lorentzian(x, gamma): """Evaluation of a lorentzian or cauchy distrib...
l3enny/lasana
lineshapes.py
Python
mit
1,462
[ "Gaussian" ]
f71893e3066358689b4400e814e5d7ce9506ee37cbe2b8b93908427c70d8ae44
""" Module for testing indtest module. """ __author__ = 'wittawat' import numpy as np import matplotlib.pyplot as plt import fsic.data as data import fsic.feature as fea import fsic.util as util import fsic.kernel as kernel import fsic.indtest as it import fsic.glo as glo import scipy.stats as stats import unittest ...
Diviyan-Kalainathan/dependency_criteria
lib/fsic/test/test_indtest.py
Python
mit
8,139
[ "Gaussian" ]
212b6c60b7463eed6aa4685478a2a933a78f8e2d7b1a21b2b14b3f90b216da0b
import sys from xml.dom.minidom import parseString from dicttoxml import dicttoxml import string import random import shelve import numpy as np import scipy.sparse as sparse import cPickle as pickle from collections import defaultdict, namedtuple def randomString(length=16): return "".join([random.choice(string.lett...
clinicalml/anchorExplorer
generate_patients.py
Python
bsd-2-clause
1,528
[ "VisIt" ]
201ff25edcad60871dbbd9857f6eb946b3962162d7425ebb96d5592ac4f674c8
# Author: Suyog Dutt Jain <suyog.jain@aero.iitb.ac.in> # Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2008-2015, Enthought, Inc. # License: BSD Style. # Standard library imports. from os.path import abspath from io import BytesIO import numpy import unittest # Enthought library imports. from m...
dmsurti/mayavi
mayavi/tests/test_builtin_surface.py
Python
bsd-3-clause
4,128
[ "Mayavi" ]
1b5de47f7de1194fc0e5bb5f33ff2bf62a1212aec8aec6c6b4d15e9291e73eab
### Here all kinds of fitting from __future__ import print_function try: from ..Priithon.all import N, U except ValueError: from Priithon.all import N, U try: from . import imgFilters, imgGeo except ValueError: from PriCommon import imgFilters, imgGeo except ImportError: # python 2 import imgFilters...
macronucleus/chromagnon
Chromagnon/PriCommon/imgFit.py
Python
mit
20,082
[ "Gaussian" ]
91db9e71282a6190330863c5becdb9597dda6e839373845803e37f17a18fe5ff
import pickle import datetime import nltk import pandas as pd import numpy as np import matplotlib.pyplot as plt import gensim import sys from itertools import chain from functools import reduce from collections import Counter from multiprocessing import Pool class WTVTimeline(): def __init__(self, *args, **...
devincornell/semanticanlysis
timelines.py
Python
mit
6,401
[ "Gaussian" ]
c66eea8a9e4f8ffd36e12dd31be71c0ad304b4b8246684856d73eff9e2f2f1ce
import ocl as cam import camvtk import time import vtk import math import datetime # 2018.08: Epos not wrapped def drawellipse(myscreen, ellcenter, a_axis, b_axis): resolution=50 for n in range(0,resolution): angle1= (float(n)/float(resolution))*2*math.pi angle2= (float(n+1)/float(resolution))...
aewallin/opencamlib
examples/python/offset-ellipse/oellipse5_tst.py
Python
lgpl-2.1
9,492
[ "VTK" ]
2d79d617f4f5650cf5657988b86176d58d2219002a8a8285c3bed873b880ee17
""" Acceptance tests for the teams feature. """ import json import random import time from dateutil.parser import parse import ddt from flaky import flaky from nose.plugins.attrib import attr from selenium.common.exceptions import TimeoutException from uuid import uuid4 from ..helpers import get_modal_alert, EventsTe...
ovnicraft/edx-platform
common/test/acceptance/tests/lms/test_teams.py
Python
agpl-3.0
82,549
[ "VisIt" ]
2847440b539a35aa126269c31c8808f621c767123e44ad14eaefb3ccdc0f305c
# -*- coding: ISO-8859-1 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 # # Unl...
altalang/pisa
sx/pisa3/pisa_parser.py
Python
apache-2.0
24,402
[ "VisIt" ]
feab277d98460235f14f542e334a96d1de55a7e4a42fbcae6ddff67727bb5ba5
# -*- coding: utf-8 -*- r"""Symmetry operations """ import numpy as np from ..constants import symmetry space_groups = symmetry()['space_groups'] class SpaceGroup(object): r"""Class defining a space group of a crystal Attributes ---------- full_name generators group_number hm_symbol ...
granrothge/neutronpy
neutronpy/crystal/symmetry.py
Python
mit
7,258
[ "CRYSTAL" ]
7b1b56af128b4a460acf1c4e98b7aa8f1917c47d62e6f512fa74fca19fdae0b8
"""Decorator for Biopython parsers.""" from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import ( # pylint: disable=redefined-builtin, unused-import bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, ...
simomarsili/scikit-msa
skmsa/parser.py
Python
bsd-3-clause
3,497
[ "Biopython" ]
fb975d705341d17f60ead9ee1a4f8cfe9dc99c6b83c26b0267e688d9df15bc65
''' synbiochem (c) University of Manchester 2016 synbiochem is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' # pylint: disable=invalid-name # pylint: disable=unused-argument import matplotlib.pyplot as plt import numpy as np i...
neilswainston/development-py
synbiochemdev/learning/ch2/__init__.py
Python
mit
1,538
[ "VisIt" ]
1616fe91864210de31ce7109e5f7743477c3fae23705e0bf556c73b0b7fbc17c
import os from django.contrib.auth.management import create_permissions from project import settings from django.apps import apps def post_migrate_create_organization(sender, **kwargs): for app_config in apps.get_app_configs(): create_permissions(app_config, apps=apps, verbosity=0) Organization = ...
pattisdr/lookit-api
accounts/signals.py
Python
mit
81,170
[ "VisIt" ]
f59f236dd04601a1e1a451ad7e25c5d4a16bb9e6488050761d11123d594eae12