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
# # File : mkdir.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
onelife/rt-thread
tools/mkdist.py
Python
gpl-2.0
14,478
[ "CDK" ]
46bbd5f25a799e15c9288ea1282b42be96fe6688dc0a06b77ec8d97e8c112a8a
import sys,os,unittest from lammps import lammps, LMP_VAR_ATOM, LMP_STYLE_GLOBAL, LMP_TYPE_VECTOR has_manybody=False try: machine=None if 'LAMMPS_MACHINE_NAME' in os.environ: machine=os.environ['LAMMPS_MACHINE_NAME'] lmp=lammps(name=machine) has_manybody = lmp.has_style("pair","sw") lmp.cl...
jeremiahyan/lammps
unittest/python/python-commands.py
Python
gpl-2.0
18,960
[ "LAMMPS" ]
5f893e6cc44a80f582eddaff3b2cdb5b3b8200da5f27e8ade290f52726d29886
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow, Renderer and both Actors # ren1 = vtk.vtkRenderer() ren2 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.SetMultiSamples(0) renWin.AddRenderer(ren...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Filters/Core/Testing/Python/TestFlyingEdgesExtents.py
Python
gpl-3.0
3,378
[ "VTK" ]
57817dcbe1f626e22c18f78fe56d4632f2709e803c563b6548a55999af340113
#!/usr/bin/env python from core import geo, pmap import numpy as np from datetime import timedelta, datetime import glob import os from netcdf import netcdf as nc from cache import Cache, Loader from helpers import short import logging class Heliosat2(object): def __init__(self, config, strategy_type): ...
ahMarrone/solar_radiation_model
models/heliosat.py
Python
mit
6,738
[ "NetCDF" ]
c6e76751f006c24d10a054080bfa6299b018e2e76ed98d78a7b697313023e7fd
# encoding: utf-8 """ Enable wxPython to be used interacive by setting PyOS_InputHook. Authors: Robin Dunn, Brian Granger, Ondrej Certik """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the...
dannyperry571/theapprentice
script.module.pydevd/lib/pydev_ipython/inputhookwx.py
Python
gpl-2.0
6,095
[ "Brian" ]
9d658235262de7eb08aa1c8aa77440867a8ae75021b18db1afe9b59959826786
import datetime import lxml.html import os import re from collections import defaultdict import scrapelib from billy.scrape.utils import convert_pdf from billy.scrape.bills import BillScraper, Bill from billy.scrape.votes import Vote motion_classifiers = { '(Assembly|Senate)( substitute)? amendment': 'amendment'...
showerst/openstates
openstates/wi/bills.py
Python
gpl-3.0
13,639
[ "VisIt" ]
c3fcc251e7515e04138a985838ba19fa53d6fa4ef5f3d72b772cb7bbdbdf088f
"""Virtual Adversarial Ladder""" import tensorflow as tf from src.utils import count_trainable_params, preprocess, get_batch_ops from src.conv import * import tensorflow.contrib.layers as layers import math import numpy as np VERBOSE = False # ----------------------------- # ----------------------------- # LADDER CL...
sakishinoda/tf-ssl
vat_ladder/src/lva.py
Python
mit
56,273
[ "Gaussian" ]
603a603a82cc96415ecbcbafb6598f1f5b0c6dcdea9e6532827695125488da6f
# # Copyright (C) 2008, Brian Tanner # #http://rl-glue-ext.googlecode.com/ # # 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 requi...
steckdenis/rlglue-py3
tests/test_empty_experiment.py
Python
apache-2.0
3,128
[ "Brian" ]
dad7b8ddba0379b7e37b30a84a44c002ea2f341528fe7361f312446229d6e2ef
""" This module implements the functionality to take any Python expression as a string and fix all numbers and other things before evaluating it, thus 1/2 returns Integer(1)/Integer(2) We use the Python ast module for that, which is in python2.6 and later. It is well documented at docs.python.org. Some tips to und...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/sympy/parsing/ast_parser.py
Python
agpl-3.0
3,404
[ "VisIt" ]
27081e2d6cfe190504fa931b6a09879bdb6d3e83a8af23ebad040dd2c09333ea
#!/usr/bin/env python # Copyright 2014-2019 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/prop/hfc/__init__.py
Python
apache-2.0
767
[ "PySCF" ]
7d77581ea19a9ac72e523d5b597c5e2bbda6430c5d93145dcff134769cdd46e7
#!/usr/bin/env python3 import argparse import errno import logging import os import subprocess def remove_pilon_from_fasta_headers(infile, outfile, number_of_pilons): '''Each time you run pilon, it adds "_pilon" to the end of each contig name. This makes a new file with them removed, and adds ".{number_o...
martinghunt/bioinf-scripts
python/pilon_iterative.py
Python
mit
6,819
[ "BWA" ]
1ef862a962ae9f944ed7a374506ead72d9172b870b3293a48424228cf0b4a72d
#!/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...
harterj/moose
python/moosesyntax/test/test_nodes.py
Python
lgpl-2.1
6,602
[ "MOOSE" ]
b477de9c03496790c04d8b753b9436f07f85ea1165efb79c46cc52e86e79b12f
# -*- coding: utf-8 -*- # The MIT License (MIT) # # Copyright (c) 2019, TU Wien # # 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 ...
TUW-GEO/ecmwf_models
tests/tests_era5/test_era5_interface.py
Python
mit
13,856
[ "NetCDF" ]
305343922465df3f724191fbac435900171de3fcb95db7400c1c44ed6b75c4cb
# -*- coding: utf-8 -*- import numpy as np import parabem from parabem.vtk_export import VtkWriter from parabem import PanelVector2, Vector2, Panel2 from parabem.airfoil import Airfoil from parabem.pan2d import NeumannDoublet0Case2 as Case from parabem.utils import check_path airfoil = Airfoil.vandevooren(tau=np.deg2...
booya-at/paraBEM
examples/vtk/vtk_airfoil_neumann.py
Python
gpl-3.0
1,590
[ "VTK" ]
e57f5688076e546504b9620c3a597f4885396dbaaa966546da2e52418aa584cd
"""Generate colored noise.""" from numpy import sqrt, newaxis from numpy.fft import irfft, rfftfreq from numpy.random import normal from numpy import sum as npsum def powerlaw_psd_gaussian(exponent, size, fmin=0): """Gaussian (1/f)**beta noise. Based on the algorithm in: Timmer, J. and Koenig, M.: O...
felixpatzelt/colorednoise
colorednoise.py
Python
mit
3,263
[ "Gaussian" ]
78ac3480670a45b719719639f7065a3474f1af8d450ec679e27fd28d66f73339
#Exercise 1.10: Evaluate a Gaussian Function #Author: Andreas Solberg Sagen - University of Oslo from math import sqrt, pi, exp #Importing functions from the math module. def f(x, m, s): return (1.0 / (sqrt(2 * pi) * s)) * exp(-1 / 2 * ((x-m) / s)**2) m = 0; s = 2; x = 1 #defining our known variables print(f(x,...
exTerEX/PrimeOnScientificProgramming
Chapter 1/gaussian1.py
Python
mit
361
[ "Gaussian" ]
d3587094b45fa70f6e31e7d752a0d9085bebdc706f968589126e3672dafdec0d
""" TransformationAgent processes transformations found in the transformation database. """ import time import Queue import os import datetime import pickle from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Core.Utilities.ThreadPool import ThreadPool from DIRAC.Core.Utili...
arrabito/DIRAC
TransformationSystem/Agent/TransformationAgent.py
Python
gpl-3.0
29,686
[ "DIRAC" ]
51a3ffdf3d9f050623bb073ad4d029382a5210b552eae609a47e27acf74ef90c
# c: 07.05.2007, r: 25.06.2008 filename_mesh = 'database/phono/mesh_circ21.mesh' dim = 2 field_1 = { 'name' : 'a_harmonic_field', 'dim' : (1,1), 'domain' : 'Omega', 'bases' : {'Omega' : '2_3_P1'} } variables = { 't': ('unknown field', 'a_harmonic_field', 0), 's': ('test field', 'a_harmonic...
certik/sfepy
tests/test_msm_laplace.py
Python
bsd-3-clause
5,232
[ "VTK" ]
4ca49c96788906f8a17cc3627bba048ca58ccd98562ebc32a8f03f79a25d380c
"""Music database connectivity and display.""" # Copyright (C) 2012 Stephen Fairchild (s-fairchild@users.sourceforge.net) # (C) 2012 Brian Millham (bmillham@users.sourceforge.net) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
radiocicletta/idjc-x
python/songdb.py
Python
gpl-2.0
76,796
[ "Brian" ]
f02d8666dd4e5a614cd3fbd5b0eb3631ac0b53abd266afcc69e68c47130264f5
""" Linear filters. """ import numpy as np import scipy.signal as sig from compvis.imgproc.filters import kernels def bilinear(img): # Convert to numpy array if necessary if not isinstance(img, np.ndarray): img = np.array(img) return sig.convolve2d(img, kernels.KERNEL_BILINEAR, mode='full') def gaussian...
pauljxtan/pystuff
pycompvis/compvis/imgproc/filters/linear.py
Python
mit
2,520
[ "Gaussian" ]
a4e26f6b0b992770c2073c9514291a68f126b12e9a8b7fe0ff3568adc512ef77
"""This demo program solves Poisson's equation - div C grad u(x, y) = f(x, y) on the unit square with source f given by f(x, y) = 10*exp(-((x - 0.5)^2 + (y - 0.5)^2) / 0.02) and boundary conditions given by u(x, y) = 0 for x = 0 or x = 1 du/dn(x, y) = 0 for y = 0 or y = 1 The conductivity C is a sym...
alogg/dolfin
demo/undocumented/tensor-weighted-poisson/python/demo_tensor-weighted-poisson.py
Python
gpl-3.0
3,164
[ "VTK" ]
176bacf1954e6099d81e978c9b1ed7d7f0c8fcaea6f8545030f0f656c5f257e9
import os import locale from gi.repository import Gtk from ConfigParser import ConfigParser from widgets.settings_page import SettingsPage class Column: ACTIVE = 0 LOCATION = 1 NAME = 2 AUTHOR = 3 VERSION = 4 CONTACT = 5 SITE = 6 DESCRIPTION = 7 class Section: NAME = 'Name' DESCRIPTION = 'Description' V...
cmallwitz/Sunflower
application/gui/preferences/plugins.py
Python
gpl-3.0
9,103
[ "VisIt" ]
3208654bd70b1aac891645d02f4328a1289bda8b1640bdc4c0df7887e58acd7d
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals, print_function """ Module implementing classes and functions to use Zeo++. Zeo++ can be obtained from http://www.maciejharanczyk.info/Zeopp/ """ from six.mov...
sonium0/pymatgen
pymatgen/io/zeo.py
Python
mit
17,431
[ "pymatgen" ]
b4566bf8ccfab861e6a9ebf6bea44f93b6ebfd6935d2d3a128ccec04cdf919d7
# = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = import numpy as np import sys import astropy.io.fits as afits import collections import tdose_utilities as tu import tdose_extract_spectra as tes import tdose_build_mock_cube as tbmc import pdb import scipy.ndi...
kasperschmidt/TDOSE
tdose_extract_spectra.py
Python
mit
43,824
[ "Gaussian" ]
f354b846ef1e8452260a937a3bc6f52a714650ae422c1bdc92f4d673a86e1bff
from distutils.core import setup import py2exe import numpy setup(console=['arcte.py'], description='Model generator for 3D printed crystal structures, with braille features.', license="GNU GENERAL PUBLIC LICENSE", author='Jesse Smith', author_email='jessesmith@my.unt.edu', url='https://github.com/je...
jessedsmith/Arcte
setup.py
Python
gpl-3.0
1,310
[ "CRYSTAL" ]
03bd324eb485b8f89179ebf6174341f544d0223c4373a333d6902d9fb357ef69
# -*- coding: utf-8 -*- """ pygments.lexers.compiled ~~~~~~~~~~~~~~~~~~~~~~~~ Just export lexer classes previously contained in this module. :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ from pygments.lexers.jvm import JavaLexer, Sc...
wakatime/wakatime
wakatime/packages/py27/pygments/lexers/compiled.py
Python
bsd-3-clause
1,385
[ "CRYSTAL" ]
886c1590227e497a28bc77a03814a7386e75f211e40ee75e81bf7fa92fbcbd6d
#!/usr/bin/env python """ Converts between chromosome names. """ import sys import argparse from argparse import RawDescriptionHelpFormatter as Raw import pkg_resources import gzip import pandas as pd import pysam import pybedtools from Bio import SeqIO def arguments(): """ Function to pull command line argument...
lcdb/lcdblib
lcdblib/utils/chrom_convert.py
Python
mit
6,289
[ "Biopython", "pysam" ]
46edb9ec02ba859442445d472465736e74a57cebc2e595d05a9d689b217bf532
import inspect from typing import Callable, List, Union import numpy as np import tensorflow as tf from odin.bay.helpers import kl_divergence from tensorflow import Tensor from tensorflow_probability.python.distributions import Distribution, Normal from typing_extensions import Literal __all__ = [ 'disentangled_inf...
imito/odin
odin/bay/vi/losses.py
Python
mit
10,177
[ "Gaussian" ]
4cf9f6459452ed8e45bb46e3599eeda87d5747fa20cda113c1eb67c2a38b3d43
#!/usr/bin/env python from __future__ import print_function import argparse from collections import Counter from datetime import datetime import logging import re, sys import os, pycurl, tarfile, zipfile, gzip, shutil from pkg_resources import resource_filename from sistr.version import __version__ from sistr.src.bl...
peterk87/sistr_cmd
sistr/sistr_cmd.py
Python
apache-2.0
18,966
[ "BLAST" ]
18a8b5645f07c9f22106c1c3b67a462e33a80a20c0218f41c3d9fb017272a964
#!/usr/bin/env python # -*-python-*- # # Copyright (C) 1999-2006 The ViewCVS Group. All Rights Reserved. # Copyright (C) 2000 Curt Hagenlocher <curt@hagenlocher.org> # # By using this file, you agree to the terms and conditions set forth in # the LICENSE.html file which can be found at the top level of the ViewVC # dis...
foresthz/fusion5.1
www/scm/viewvc/lib/vclib/ccvs/blame.py
Python
gpl-2.0
16,814
[ "VisIt" ]
e6b73ca4d0d5b825a7dece7b810125d683320a36e1f9d6a07f3e28a359f10369
#!/usr/bin/env python ############################################################################################## # # # regrid_emissions_N96e.py # # # Requirements: # Iris 1.10, time, cf_units, numpy # # # This Python script has been written by N.L. Abraham as part of the UKCA Tutorials: # http://www.ukca.ac.u...
acsis-project/emissions
emissions/python/timeseries_1950-2020/regrid_SO2_low_emissions_n96e_360d.py
Python
gpl-3.0
19,180
[ "NetCDF" ]
a4d83802a7ca3b3061c441a7c1a1b228834e31af37df195b94b96c97ec045abc
# -*- coding: utf-8 -*- # Copyright © 2017, 2018, 2019, 2020 Tom Most <twm@freecog.net> # # 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) a...
twm/yarrharr
yarrharr/sanitize.py
Python
gpl-3.0
16,695
[ "VisIt" ]
8f4071394a7f3bed67fff8323c43637146e4392126cce2a65b624e523845be8c
######################################################################## # File : CLI.py # Author : Andrei Tsaregorodtsev ######################################################################## """ CLI is the base class for all the DIRAC consoles ( CLIs ). It contains several utilities and signal handlers of ge...
andresailer/DIRAC
Core/Base/CLI.py
Python
gpl-3.0
3,625
[ "DIRAC" ]
91947cb4e339d75f75d2ef884177a52e0696dcd4b35ed0d4d418f476449ef20f
import argparse import numpy import pysam def Parser(): the_parser = argparse.ArgumentParser() the_parser.add_argument('-bams', '--bams', dest='bams', required=True, nargs='+', help='list of input BAM files') the_parser.add_argument('-bed', '--bed', dest='bed', required=True,...
drosofff/tools-artbio
tools/probecoverage/multicov.py
Python
mit
1,821
[ "pysam" ]
559ee1662597d8886263e292b05d14216deecce1c9eeb6a76a146154c0659234
import sys, os, time import argparse import tempfile,shutil def parse_args(reference_dir): parser = argparse.ArgumentParser() requiredNamed = parser.add_argument_group('Required named arguments') requiredNamed.add_argument('-f', '--forward', type=str, action='store...
namphuon/ViFi
scripts/run_vifi.py
Python
gpl-3.0
11,559
[ "BWA" ]
8ad3b42125f10194b4d3d9ff777fa81fdf79127b73dd22da958f2bc48a4d7974
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # create a rendering window and renderer ren1 = vtk.vtkRenderer() ren1.SetBackground(0,0,0) renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) renWin.SetSize(300,300) ...
hlzz/dotfiles
graphics/VTK-7.0.0/IO/EnSight/Testing/Python/EnSightIronProtASCII.py
Python
bsd-3-clause
1,603
[ "VTK" ]
226900c2f1ade4f068d966c9a0cbbcf69acb463043fdb42d3d6838061f35f9f5
# !/usr/bin/env python __author__ = 'NishantNath' ''' Using : Python 2.7+ (backward compatibility exists for Python 3.x if separate environment created) Required files : hdf5_getters.py, find_second_max_value.py Required packages : numpy, pandas, matplotlib, sklearn, pickle Steps: 1. # Uses naive bayes gaussian me...
nishantnath/MusicPredictiveAnalysis_EE660_USCFall2015
Code/Machine_Learning_Algos/10k_Tests/ml_classification_knn_training.py
Python
mit
8,136
[ "Gaussian" ]
ca75a8df92c756af322e0ce66fb866c353f9c75f5582347c3fa03f4485d68526
import numpy as np from cogue.crystal.utility import klength2mesh class ModeGruneisen: def __init__(self, phonopy_gruneisen, distance=100): self._phonopy_gruneisen = phonopy_gruneisen self._phonon = self._phonopy_gruneisen.get_phonon() self._lattice = np.ar...
atztogo/phonondb
phonondb/phonopy/gruneisen.py
Python
bsd-3-clause
3,967
[ "CRYSTAL", "phonopy" ]
91c57aef0d4c04a317008a5adc0216e768eb620b967ab0b89f4510c8af1e62fa
""" .. _statsrefmanual: ========================================== Statistical functions (:mod:`scipy.stats`) ========================================== .. currentmodule:: scipy.stats This module contains a large number of probability distributions, summary and frequency statistics, correlation functions and statist...
matthew-brett/scipy
scipy/stats/__init__.py
Python
bsd-3-clause
12,864
[ "Gaussian" ]
5dfa7aa0bacb815e561dedeb53da84137a17ff23fc49d2ef9d01d0b163752fab
""" test for secure opendap support """ import tempfile import os import os.path as op import shutil from unittest import TestCase import re from pyesgf.logon import LogonManager, DAP_CONFIG_MARKER from pyesgf.search import SearchConnection from test.config import TEST_SERVICE class TestOpendap(TestCase): def s...
sterlingbaldwin/esgf-pyclient
test/test_opendap.py
Python
bsd-3-clause
3,854
[ "NetCDF" ]
e9b928d5a641a3293015b1245a8e84759446b2f86123a719234aa35bd4e9e4ef
# Copyright 1999-2017. Parallels IP Holdings GmbH. All Rights Reserved. #!@@PYTHON@@ #------------------------------------------------------------------------ # Copyright (c) 1998 by Total Control Software # All Rights Reserved #-----------------------------------------------------...
LFC7RED/TheRock
test/fcgi/fcgi.py
Python
mit
15,059
[ "TINKER" ]
d62c25d08764fb5cc4e37abf792145fffa3363698561aee5ab03553f8f708273
"""Each ElkM1 area will be created as a separate alarm_control_panel.""" from __future__ import annotations from elkm1_lib.const import AlarmState, ArmedStatus, ArmLevel, ArmUpState from elkm1_lib.util import username import voluptuous as vol from homeassistant.components.alarm_control_panel import ( ATTR_CHANGED...
rohitranjan1991/home-assistant
homeassistant/components/elkm1/alarm_control_panel.py
Python
mit
10,092
[ "Elk" ]
2726d1991ff9d9129a95ff10c2b1dd80af8aa03929d47209b189e13d203c8b37
# coding=utf-8 """ InaSAFE Disaster risk assessment tool developed by AusAid - **IS Utilities implementation.** Contact : ole.moller.nielsen@gmail.com .. note:: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre...
danylaksono/inasafe
safe_qgis/utilities/utilities.py
Python
gpl-3.0
26,209
[ "VisIt" ]
cbb77ab7f5567c7698a6a338991b2d51ea18e851082b85b9eebc7f070510105d
# Copyright (C) 2012,2013,2014,2015,2016 # 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...
kkreis/espressopp
src/integrator/LangevinThermostat.py
Python
gpl-3.0
2,954
[ "ESPResSo" ]
9e65f4bcb9a0fae2da0720112e52a30a2aa645aea31d258b8afe0d72bd457331
from splinter import Browser from pyvirtualdisplay import Display from Adafruit_CharLCDPlate import Adafruit_CharLCDPlate import time import csv # *** GLOBAL VARIABLES *** btURLBASE = 'http://www.ctabustracker.com/bustime/eta/eta.jsp?id=' stops = ['5037','1646'] descriptions = [ "Downtown", "University" ]; cstop...
bobthechemist/bustracker
bustracker.py
Python
gpl-2.0
3,603
[ "VisIt" ]
403afd0643faecdffdbb46ef83a22b5422e6fb902710ff4367014c1fdb20953f
import numpy as np import pytest import vtk as _vtk from pyvista import pyvista_ndarray from pyvista import examples from unittest import mock def test_slices_are_associated(): dataset = examples.load_structured() points = pyvista_ndarray(dataset.GetPoints().GetData(), dataset=dataset) # check that slice...
akaszynski/vtkInterface
tests/test_pyvista_ndarray.py
Python
mit
2,366
[ "VTK" ]
bbc12f393adaa89e361362367cd134f749c94035b1336c545f26d15c85e0de85
from setuptools import setup from setuptools import find_packages import os import zither def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as filename: return filename.read() setup(name='zither', version=zither.__version__, ...
umich-brcf-bioinf/Zither
setup.py
Python
apache-2.0
1,668
[ "pysam" ]
8bec9713a0a394775b0ac77e39b80b7574479b8f03663a6876ef24a81ac3c5b0
# -*- coding: utf-8 -*- # * Authors: # * TJEBBES Gaston <g.t@majerti.fr> # * Arezki Feth <f.a@majerti.fr>; # * Miotte Julien <j.m@majerti.fr>; import logging import colander from sqlalchemy import distinct from sqlalchemy.orm import ( selectinload, joinedload, ) from autonomie.models.user.use...
CroissanceCommune/autonomie
autonomie/views/training/lists.py
Python
gpl-3.0
5,658
[ "VisIt" ]
fcef627a2042855c879c446ea7dba11068da442d9a9118b5e0ad1722e08bdab6
import numpy as np from scipy.stats import multivariate_normal from sklearn import linear_model, mixture class MVN( object ): """ linear algebra on gaussian multivariate """ def __init__( self, mean, cov, A=None ): self.mean_ = mean self.cov_ = cov self.dim_ = mean.shape[ mean.ndim - 1 ] if A is...
marcino239/gps
utils.py
Python
gpl-3.0
5,307
[ "Gaussian" ]
68b112aca7986d6efbcd3e0777a419ca9a05cc2d820d37d25ba6b72f8d0820d2
#!/usr/bin/env python """ Script that facilitates the modification of a element through the command line. However, the usage of this script will set the element token to the command issuer with a duration of 1 day. """ __RCSID__ = '$Id$' from datetime import datetime, timedelta from DIRAC import gLogger, exit as DIR...
fstagni/DIRAC
ResourceStatusSystem/scripts/dirac-rss-set-status.py
Python
gpl-3.0
8,092
[ "DIRAC" ]
f17ce43f91042a8e322fc478878e6230b9ba0e0599bf8d1745cdb2d75d5ada9a
# # Copyright (C) 2007, Mark Lee # #http://rl-glue-ext.googlecode.com/ # # 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...
shiwalimohan/RLInfiniteMario
system/codecs/Python/examples/skeleton/skeleton_environment.py
Python
gpl-2.0
2,634
[ "Brian" ]
5dbe8648d49e5f28869e20c0fa0ca4d95e896ad20350476667dffcf80e16c220
"""Functions for generating artificial data. For use in things like docstrings or to test HyperSpy functionalities. """ import numpy as np from hyperspy import components1d, components2d from hyperspy import signals from hyperspy.misc.math_tools import check_random_state from hyperspy.axes import UniformDataAxis ...
hyperspy/hyperspy
hyperspy/datasets/artificial_data.py
Python
gpl-3.0
14,755
[ "Gaussian" ]
dc87e8b6b25f4125ff84e050b3e292244cd27100d46c0945c6321e624c7659dc
# An example use of the /delta API call. Maintains a local cache of # the App Folder's contents. Use the 'update' sub-command to update # the local cache. Use the 'find' sub-command to search the local # cache. # # Example usage: # # 1. Link to your Dropbox account # > python search_cache.py link # # 2. Go to Dro...
calvdee/dropbox_python_sdk
example/search_cache.py
Python
mit
9,122
[ "VisIt" ]
287a91d24eb4965a114c5b4ac1d6fcb8d6eba82d021a131eec508f15769db020
#!/usr/bin/env python # -*- coding: utf-8 -*- """Starter data module""" BANDS = { 'Spinal Tap': { 'David St. Hubbins': ['vocals', 'guitar'], 'Nigel Tufnel': ['guitar', 'vocals', 'bass', 'violin', 'harmonica', 'clarinet', 'keyboards', 'piano'], 'Derek Smalls': ['bas...
is210-2015-fall-02/is210-week-10-warmup
data.py
Python
mpl-2.0
1,956
[ "Brian" ]
78ece812254e4af56cc9d0b8c9a80851ea26ea6b65a1623e9d69d5a911cdd462
""" Compute derived parameters from random samples from your chain. We also histogram the masses Will add histogram of initial phi vals as well There is now an option to get derived with your chain, so that step can be eliminated. (Derived params option in latest Mtheory Gaussian MCMC) This is still useful to histogra...
DoddyPhysics/AxionNet
random_derived.py
Python
mit
4,050
[ "Gaussian" ]
127fb2ef295379085ee01f8fb53d46a648abd46f7733d0dbd06a46e0d5d368ef
#-*- coding: utf-8 -*- # # Copyright (c) 2004 Conectiva, Inc. # # Written by Anders F Bjorklund <afb@users.sourceforge.net> # # This file is part of Smart Package Manager. # # Smart Package Manager is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as publishe...
blackPantherOS/packagemanagement
smartpm/smart/interfaces/qt4/priorities.py
Python
apache-2.0
15,834
[ "CRYSTAL" ]
549f7bde7130d7aa7124d330875238c8af8cbd986fb0d2c19377931b05c7f8c1
""" @name: PyHouse/src/communication/_test/test_ir_control.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2014-2018 by D. Brian Kimmel @license: MIT License @note: Created on Mar 22, 2014 @summary: Test """ __updated__ = '2019-10-08' # Import system type stuff impor...
DBrianKimmel/PyHouse
Project/src/Modules/Computer/Communication/_test/test_ir_control.py
Python
mit
1,829
[ "Brian" ]
4c88c81832ad643014a61ce00f12891217ff4c3918f071152962e73896c6ef4e
''' A tool to annotate and print variants in tabular format. Author: Khalid Mahmood (khalid.mahmood@unimelb.edu.au). Copyright: 2015 ''' #!/usr/bin/python import sys import os import argparse import getopt import vcf import array import pysam #class Error(Exception): # """Base-class for exceptions in this module....
khalidm/VarPub
src/readExac.py
Python
gpl-2.0
8,379
[ "pysam" ]
17505b87f936724f5337b5251cd36fa47b7a5f7f9ce1e76272401ec9ded31fa3
# Copyright (C) 2013 Matthew C. Zwier and Lillian T. Chong # # This file is part of WESTPA. # # WESTPA 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...
westpa/wwmgr
work_managers/__init__.py
Python
gpl-3.0
2,175
[ "Brian" ]
9c1ff26a758b78d868ca4d8c56f9acb2fb2df5f9515b013368b1a457637fd7d2
""" ================================= Map data to a normal distribution ================================= This example demonstrates the use of the Box-Cox and Yeo-Johnson transforms through :class:`preprocessing.PowerTransformer` to map data from various distributions to a normal distribution. The power transform is ...
vortex-ape/scikit-learn
examples/preprocessing/plot_map_data_to_normal.py
Python
bsd-3-clause
4,544
[ "Gaussian" ]
c5bb699a026508829349d5d4dd453883ddc50aa1b473ce82d774173181073091
"""A module that provides Matlab like 3d visualization functionality. The general idea is shamelessly stolen from the `high-level API`_ provided by Octaviz_. Some of the test cases and demos are also translated from there! .. _Octaviz: http://octaviz.sourceforge.net/ .. _high-level API: http://octaviz.sourceforge.net...
dmsurti/mayavi
tvtk/tools/mlab.py
Python
bsd-3-clause
47,052
[ "Mayavi", "VTK" ]
9c70c3df00b194f809902e2cb261da9b283692dcb41dc5ad2e8ef44cbf09f1a7
# drizzle/base.py # Copyright (C) 2005-2014 the SQLAlchemy authors and contributors # <see AUTHORS file> # Copyright (C) 2010-2011 Monty Taylor <mordred@inaugust.com> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ .. dialect:: dri...
ncdesouza/bookworm
env/lib/python2.7/site-packages/sqlalchemy/dialects/drizzle/base.py
Python
gpl-3.0
14,995
[ "VisIt" ]
bb38cc6e1de9646ccfe08c02705a710a72530fc331b53593b653c98d904ba3cb
from crystal_dashboard.dashboards.crystal.rings import tabs as rings_tabs from django.utils.translation import ugettext_lazy as _ from horizon import tabs class IndexView(tabs.TabbedTableView): # A very simple class-based view... tab_group_class = rings_tabs.RingsTabs template_name = 'crystal/rings/index....
Crystal-SDS/dashboard
crystal_dashboard/dashboards/crystal/rings/views.py
Python
gpl-3.0
490
[ "CRYSTAL" ]
b5cbd37a61bd9e6c50d42687431fe73835063154fdd3132720893793042ee4de
# Copyright (C) 2015-2017 # Jakub Krajniak (jkrajniak at gmail.com) # 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 soft...
MrTheodor/AdResSLab
adresslab/gromacs_topology.py
Python
gpl-3.0
49,194
[ "ESPResSo", "Gromacs" ]
016fad7547d59c99783da5511d69c685fa305a162e7e67888715994954bb0109
# -*- coding: utf-8 -*- # Copyright (C) 2004-2016 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # # Authors: Aric Hagberg <hagberg@lanl.gov> # Loïc Séguin-C. <loicseguin@gmail.com> # Da...
NvanAdrichem/networkx
networkx/algorithms/shortest_paths/weighted.py
Python
bsd-3-clause
53,946
[ "VisIt" ]
efb38acbfcdca4fd7d54b59463b2d3f5f2bb39ccd33991e9d1d1c74090075a68
# Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library ...
FedoraScientific/salome-hexablock
doc/pyplots/test_make_cylinder.py
Python
lgpl-2.1
1,379
[ "VTK" ]
427b49331c96ef742909a0e7951f6518b12ad971a3137b848f3ea87c3de1b8d8
# 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...
lewismc/climate
ocw/tests/test_utils.py
Python
apache-2.0
18,053
[ "NetCDF" ]
2ad0a4ad5f958dbee1887da65588cdf54089f984c97fd81dece3b2b16625f292
#===================================================================================================================================== #Copyright #===================================================================================================================================== #Copyright (C) 2014 Alexander Blaessle...
alexblaessle/PyFRAP
pyfrp/gui/pyfrp_app.py
Python
gpl-3.0
93,739
[ "VTK" ]
669661fdcc03b2145cb70fccb6f0fcd8db91102780e1f0b50873a3771210f42e
""" cclib (http://cclib.sf.net) is (c) 2006, the cclib development team and licensed under the LGPL (http://www.gnu.org/copyleft/lgpl.html). """ __revision__ = "$Revision: 733 $" import logging import sys class Method(object): """Abstract class for logfile objects. Subclasses defined by cclib: Dens...
faribas/RMG-Py
external/cclib/method/calculationmethod.py
Python
mit
1,252
[ "cclib" ]
9f16c28440ba3fff35c7229af5b87aa95542c23f54d018314e625e565f2960a4
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
gkc1000/pyscf
pyscf/cc/test/test_h2o.py
Python
apache-2.0
8,381
[ "PySCF" ]
0257baca855e567ad89f04651211a8b8a269c9c00610383a5b6bf6a108c06149
# pyshyacc.py - PLY grammar definition for pysh # # Copyright 2007 Patrick Mezard # # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. """PLY grammar file. """ import sys import pyshlex tokens = pyshlex.tokens from ply import yacc...
rphillips/bitbake
lib/bb/pysh/pyshyacc.py
Python
gpl-2.0
24,146
[ "VisIt" ]
a449ccd26b6b6b116fa59460cb1e6fe577b485cf455a691377b9360e48791589
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Kyle A. Beauchamp # Contributors: Robert McGibbon, John D. Cho...
rmcgibbo/mdtraj
mdtraj/formats/mol2.py
Python
lgpl-2.1
9,937
[ "MDTraj", "OpenMM" ]
c05c21c9493e72b32bdcae2120585d92dba6835d9b2d39847cec0fd721749bd1
#!/usr/bin/env python # -*- coding: UTF-8 -*- import os import re import webapp2 import jinja2 import logging import StringIO import json from apirdflib import load_graph, getNss, getRevNss from markupsafe import Markup, escape # https://pypi.python.org/pypi/MarkupSafe import parsers import threading import itertool...
lanthaler/schemaorg
sdoapp.py
Python
apache-2.0
99,524
[ "VisIt" ]
1076d5bad2b4bd4ad09a3c9df9efd825f9e3406c85e893b4264be31974ce01b6
""" This is only meant to add docs to objects defined in C-extension modules. The purpose is to allow easier editing of the docstrings without requiring a re-compile. NOTE: Many of the methods of ndarray have corresponding functions. If you update these docstrings, please keep also the ones in core/fromnum...
kiwifb/numpy
numpy/add_newdocs.py
Python
bsd-3-clause
224,419
[ "Brian" ]
45c45365b65fa6229e605265ea79a220ec64b6ec851de680074dc260d73e65e8
######################################################################## # $HeadURL $ # File: FTSAgent.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/05/31 10:00:13 ######################################################################## """ :mod: FTSAgent ============== .. module: FTSAgent :syno...
Sbalbp/DIRAC
DataManagementSystem/Agent/FTSAgent.py
Python
gpl-3.0
46,989
[ "DIRAC" ]
96feae511f31c4f9b32ac8c49074ddb84970fb0fd28762f99679800b01ea18f0
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import logging from math import ceil import sys import numpy as np import tensorflow as tf VGG_MEAN = [103.939, 116.779, 123.68] class FCN32VGG: def __init__(self, vgg16_npy_path=None): ...
jpapon/minimal_ros_nodes
cnn_classifier/src/cnn_classifier/tensorflow_fcn/fcn32_vgg.py
Python
bsd-3-clause
15,627
[ "Gaussian" ]
4e71bbc445fe25f60b19dc79426b7a05406cad5d41603a91d00be7fc95155960
#! /usr/bin/env python3 """Create a media website""" import media import fresh_tomatoes def main(): # Create grand_budapest_hotel = media.Movie( "The Grand Budapest Hotel", "The adventures of Gustave H, a legendary concierge at The \ Grand Budapest Hotel", "https://upload.wik...
avijaira/udacity
full-stack-web-developer/p1-movie-trailer-website/entertainment_center.py
Python
gpl-3.0
2,210
[ "Jaguar" ]
1b31b4a5b804f606d7fe0293caee09574d880d80b8f6d9f5a3440f17a1c934f0
# -*- coding: utf-8 -*- # # ODDT documentation build configuration file, created by # sphinx-quickstart on Mon Aug 25 13:49:30 2014. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All ...
oddt/oddt
docs/conf.py
Python
bsd-3-clause
12,245
[ "Pybel", "RDKit" ]
b44df46e31cb368b6479c3927395d2e00de7fd42ed8725a1ff5de1960c43f8d2
import matplotlib.pyplot as plt import numpy as np from numpy.linalg import det, pinv import scipy.io as sio def visualize_data(X, title): x1, x2 = X.T plt.plot(x1, x2, 'bx') plt.xlabel('Latency (ms)') plt.ylabel('Throughput (mb/s)') plt.xlim([0, 30]) plt.ylim([0, 30]) plt.tit...
mlyundin/Machine-Learning
ex8/ex8.py
Python
mit
3,091
[ "Gaussian" ]
fa2cd43ef72c15ed6a593539b36a13d56d96871ce8a96ea152128ba4698b8c11
""" Helpers functions for the euxfel_h5tools package. Copyright (c) 2017, European X-Ray Free-Electron Laser Facility GmbH All rights reserved. You should have received a copy of the 3-Clause BSD License along with this program. If not, see <https://opensource.org/licenses/BSD-3-Clause> """ import h5py import numpy ...
European-XFEL/h5tools-py
karabo_data/utils.py
Python
bsd-3-clause
3,862
[ "VisIt" ]
a9860830ab7ebf889a192a572077abf1585a745b7015df7541e775b9acf10be6
import os import sys from math import floor g2xpl_16_prefix='' g2xpl_16_suffix='' Ortho4XP_dir = '..' if getattr(sys,'frozen',False) else '.' Preview_dir = os.path.join(Ortho4XP_dir, 'Previews') Provider_dir = os.path.join(Ortho4XP_dir, 'Providers') Extent_dir = os.path.join(Ortho4XP_dir, 'Extents') Filter...
oscarpilote/Ortho4XP
src/O4_File_Names.py
Python
gpl-3.0
10,210
[ "ADF" ]
7e56bd6ff9e2391d30b12528982cd9bc9fe037e49d465e5015fc7bd29655d9e5
# gaussian filter import numpy as np import scipy.ndimage as ndi import matplotlib.pyplot as plt import time def grid_density_gaussian_filter(x0, y0, x1, y1, w, h, data): kx = (w - 1) / (x1 - x0) ky = (h - 1) / (y1 - y0) r = 20 border = r imgw = (w + 2 * border) imgh = (h + 2 * border) img ...
joernleu/Pythorient
src/point_densities.py
Python
mit
2,755
[ "Gaussian" ]
3ec7c2be1613dac00d9041d1085ecd35d2cb08501a331f3fd8ed787a75c2c112
from datetime import datetime from glob import glob import math import os from pathlib import Path import subprocess import shutil from string import Template import sys from uuid import uuid4 import numpy as np from htsohm.simulation.raspa import write_mol_file, write_mixing_rules from htsohm.simulation.raspa import...
WilmerLab/HTSOHM-dev
htsohm/simulation/simulate/gas_loading.py
Python
mit
9,888
[ "RASPA", "VTK" ]
7201ff0f92066d78cd3b86ed7205e14c437aaa27e4b21b2dc9f914f7d5ea0db6
from __future__ import print_function, division, absolute_import import errno import multiprocessing import os import platform import shutil import subprocess import sys import threading import warnings import inspect import pickle import weakref from itertools import chain try: import jinja2 except ImportError: ...
jriehl/numba
numba/tests/test_dispatcher.py
Python
bsd-2-clause
66,574
[ "VisIt" ]
deeb0d7c0e85f56067562f0ea8f8339f937b312a1ce92139b53b290d9720d583
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() # Create the RenderWindow, Renderer and both Actors ren1 = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) iren = vtk.vtkRenderWindowInteractor() iren.SetRen...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/Rendering/Core/Testing/Python/TestOnePoint.py
Python
gpl-3.0
829
[ "VTK" ]
c97ed8030029519562216b86dffff84c9b0141d1509e11527e2ee0f77522faa5
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/integrator/BerendsenThermostat.py
Python
gpl-3.0
3,826
[ "ESPResSo" ]
dc564454a1928282aad58ee1b8dc76958cba2238eb8bda30daef98dcdaa6ca56
#!/usr/bin/env python # coding=utf-8 # ly2video - generate performances video from LilyPond source files # Copyright (C) 2012 Jiri "FireTight" Szabo # Copyright (C) 2012 Adam Spiers # Copyright (C) 2014 Emmanuel Leguy # # This program is free software: you can redistribute it and/or modify # it under the terms of the ...
algomus/ly2video
synchro.py
Python
gpl-3.0
8,080
[ "VisIt" ]
8ff7809dc7d0a6a06850d314f3ace94513ffc24c4cb27247b67ac22c8cfd583c
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2020 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
bgoli/pysces
pysces/PyscesModel.py
Python
bsd-3-clause
357,151
[ "ORCA", "PySCeS" ]
2f91f51ce81d607077d469ac6efa73c5e4312a7f499f5e719448d2b66554be45
# Copyright 2012, 2013 The GalSim developers: # https://github.com/GalSim-developers # # This file is part of GalSim: The modular galaxy image simulation toolkit. # # GalSim 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...
mardom/GalSim
tests/test_hsm.py
Python
gpl-3.0
31,170
[ "Galaxy", "Gaussian" ]
a88510d193d5bccfc7200d9e6168bff76635ccc05efae1094135c229cfe453ef
from numba.tracing import trace from numba.errors import deprecated, NumbaDeprecationWarning import warnings import sys import numpy as np def _o2s(dtype, shape, order): # convert order parameter to strides if dtype is None or shape is None or order is None: return None if order == 'F': ...
jriehl/numba
numba/smartarray.py
Python
bsd-2-clause
8,048
[ "VisIt" ]
f68b67c8283d3218140846238646bcb90925f2ac133d4343d3d3d8cc40137a04
#!/usr/bin/env python3 # THIS FILE IS PART OF THE CYLC SUITE ENGINE. # Copyright (C) 2008-2019 NIWA & British Crown (Met Office) & Contributors. # # 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...
trwhitcomb/cylc
cylc/flow/tests/parsec/test_validate.py
Python
gpl-3.0
22,756
[ "Galaxy" ]
de76f489b7678bad8bb813066b25a8c6f0e3ced18e27fbf462284a1452884d8c
# # Copyright (c) 2017 nexB Inc. and others. All rights reserved. # http://nexb.com and https://github.com/nexB/scancode-toolkit/ # The ScanCode software is licensed under the Apache License version 2.0. # Data generated with ScanCode require an acknowledgment. # ScanCode is a trademark of nexB Inc. # # You may not use...
yashdsaraf/scancode-toolkit
tests/formattedcode/test_format_spdx.py
Python
apache-2.0
9,651
[ "VisIt" ]
8239a67dff0007b9608ff774504a160115dd68d92a2b2924145a9c8f7bd4fe2c
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com> # Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk> # Copyright (C) 2007-2009 Stephane Charet...
Nick-Hall/gramps
gramps/plugins/webreport/person.py
Python
gpl-2.0
97,074
[ "Brian" ]
490801cd273e6b97475f9ed655386d6c619753b080c0cc659d2fed76f9e7587a
"""Unit tests for testing support """ import logging import unittest import numpy from astropy import units as u from astropy.coordinates import SkyCoord import matplotlib.pyplot as plt from data_models.polarisation import PolarisationFrame from processing_components.image.operations import export_image_to_fits,...
SKA-ScienceDataProcessor/algorithm-reference-library
tests/processing_components/test_primary_beam_illumination.py
Python
apache-2.0
3,329
[ "Gaussian" ]
21266d94f80c630c1af9e64bd43a15d3d798b26ea202f99724da563f9595fb20
######################################################################## # $HeadURL$ ######################################################################## """ DIRAC FileCatalog Security Manager mix-in class """ __RCSID__ = "$Id$" import os from DIRAC import S_OK, S_ERROR from DIRAC.Core.Security.Properties import ...
miloszz/DIRAC
DataManagementSystem/DB/FileCatalogComponents/SecurityManager.py
Python
gpl-3.0
8,398
[ "DIRAC" ]
7483b8990def07c8b7a0f3c5e5f94475b8e463f5f814084b97c2e7d2ed3ff37d
# -*- coding: utf-8 -*- """ .. _tut-artifact-ica: Repairing artifacts with ICA ============================ This tutorial covers the basics of independent components analysis (ICA) and shows how ICA can be used for artifact repair; an extended example illustrates repair of ocular and heartbeat artifacts. .. contents...
cjayb/mne-python
tutorials/preprocessing/plot_40_artifact_correction_ica.py
Python
bsd-3-clause
30,105
[ "Gaussian" ]
6c91bf04cc20e4cac770126744bbe1f195197577149bd938e8d848ef0ded40ca
# vim:set et sts=4 sw=4: # # ibus - The Input Bus # # Copyright(c) 2007-2008 Huang Peng <shawn.p.huang@gmail.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2 of t...
luoxsbupt/ibus
ui/gtk/candidatepanel.py
Python
lgpl-2.1
19,699
[ "FLEUR" ]
b65348bf228db4ee5b3e2ed456a2bf259e11689acbcb4b21795dcb9bed649027
#!/usr/bin/env drgn # # Copyright (C) 2019 Tejun Heo <tj@kernel.org> # Copyright (C) 2019 Facebook desc = """ This is a drgn script to monitor the blk-iocost cgroup controller. See the comment at the top of block/blk-iocost.c for more details. For drgn, visit https://github.com/osandov/drgn. """ import sys import re ...
skalk/linux
tools/cgroup/iocost_monitor.py
Python
gpl-2.0
10,093
[ "VisIt" ]
804d47904c74379a12dd13e82f09ceb4c7bb3ffd1a9b7b124d56eaff7e0e3c15
# Copyright 2012 by Wibowo Arindrarto. 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. """Bio.SearchIO abstract base parser for Exonerate standard output format.""" import sys ...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/SearchIO/ExonerateIO/_base.py
Python
gpl-2.0
16,510
[ "Biopython" ]
0b71f73dfaebe5c49c65e7e3bc8a58402264bdc20ed22061a82749720e4084c6
# Purpose: put together a data table with the fiducial parameters for # the DEGAS sample. # Base material: # -- z0mgs data table from Leroy et al. 2019 (2019 ApJS 244 24) # -- gal_base from Adam Leroy (private communication) # -- gal_base_local from Adam Leroy (private communication) # -- deg...
low-sky/degas
scripts/get_fid_params.py
Python
gpl-3.0
5,427
[ "Galaxy" ]
ddbb686e8623e97cd28c4ac3f491710cd2354f64d3402f05d44165ee0bd70d21