text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals
"""
This module implements various transmuter classes.
Transmuters are essentially classes that generate TransformedStructures from
various data sources. They enable the... | xhqu1981/pymatgen | pymatgen/alchemy/transmuters.py | Python | mit | 16,333 | [
"VASP",
"pymatgen"
] | b11a468463f980096850861d1614d0228c8bddaa8f63e9d6bcd9b47b52072649 |
# -*- coding: utf-8 -*-
"""
***************************************************************************
GrassAlgorithm.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
************************... | landryb/QGIS | python/plugins/processing/algs/grass/GrassAlgorithm.py | Python | gpl-2.0 | 21,911 | [
"NetCDF"
] | 2d98a4ddfbcb85d16c15c23751101b38e4af16fbf535943d48630a70d3848e70 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2022 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | susilehtola/psi4 | psi4/driver/procrouting/findif_response_utils/db_helper.py | Python | lgpl-3.0 | 6,234 | [
"Psi4"
] | 9b08b26554a869b43c677e1f4e38ef94f1cacc9482cf669a840d89651a2f1e2c |
#!/usr/bin/env python
###############################################################################
# Copyright (C) 1994 - 2007, Performance Dynamics Company #
# #
# This software is licensed as described in the file ... | peterlharding/PDQ | examples/MultiServer/gross_te43.py | Python | mit | 5,483 | [
"VisIt"
] | 24bd430ea86017450edb423b92751788f7a034499d047f2f730cc7de5e8fa1b5 |
import discord
from discord.ext import commands
from __main__ import send_cmd_help
from bs4 import BeautifulSoup
import random
class Animal:
"""sfw commands."""
def __init__(self, bot):
self.bot = bot
self.session = self.bot.http.session
@commands.group(pass_context=True)
async def s... | Vidyapoky/keksimus | animal/animal.py | Python | mit | 6,952 | [
"MOE"
] | 91a9a2afa277f401e9c27399165f76fae7e9d55031133c5e8e2f13ac24269b25 |
"""
Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved.
This program and the accompanying materials are made available under
the terms of the 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
... | CraigHarris/gpdb | src/test/tinc/tincrepo/mpp/gpdb/tests/storage/uao/uao_heap_dml/test_uao_heap_dml.py | Python | apache-2.0 | 959 | [
"ORCA"
] | 9f331be9f756b5e8ca3f2e37599b9e8dddcc4434aee73ca3874f6b6cd8f577fa |
#!/usr/bin/env python
from vtk import *
reader2 = vtkXMLTreeReader()
reader2.SetFileName("vtkclasses.xml")
reader2.Update()
reader3 = vtkXMLTreeReader()
reader3.SetFileName("vtklibrary.xml")
reader3.Update()
view2 = vtkIcicleView()
view2.SetRepresentationFromInput(reader2.GetOutput())
view2.SetAreaSizeArrayName("siz... | HopeFOAM/HopeFOAM | ThirdParty-0.1/ParaView-5.0.1/VTK/Examples/Infovis/Python/icicle_view.py | Python | gpl-3.0 | 1,184 | [
"VTK"
] | 78c1a4d877fe7c81e00dd5a5d02dae0d454e34c8145d3dedecf04187de2331dd |
#!/usr/bin/env python
import sys
from ase.test import NotAvailable
if sys.platform in ['win32']:
raise NotAvailable('Fails on Windows https://trac.fysik.dtu.dk/projects/ase/ticket/62')
from ase.visualize.vtk import requirevtk, probe_vtk_kilobyte
requirevtk()
vtk_kilobyte = probe_vtk_kilobyte(1024)
import nump... | conwayje/ase-python | ase/test/vtk_data.py | Python | gpl-2.0 | 19,412 | [
"ASE",
"VTK"
] | 795426ebb10378831a79cefe023aa702278dd58046f4f88ede235f29abb23467 |
#!/usr/bin/env python
# generate Python Manifest for the OpenEmbedded build system
# (C) 2002-2010 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
# (C) 2007 Jeremy Laine
# licensed under MIT, see COPYING.MIT
import os
import sys
import time
VERSION = "2.6.4"
__author__ = "Michael 'Mickey' Lauer <mlauer@vanille-me... | libo/openembedded | contrib/python/generate-manifest-2.6.py | Python | mit | 14,959 | [
"VisIt"
] | 2388d5889245c0db287337b126fdeeea8ad8347980b23d9787ef1978750c4907 |
#! /usr/bin/env python
"""
Script to pre-average data using a sliding Gaussian kernel in frequency
"""
import argparse
from argparse import RawTextHelpFormatter
import numpy as np
import sys
import os
from scipy.ndimage.filters import gaussian_filter1d as gfilter
from scipy.special import erf
import casacore.tables as ... | lofar-astron/factor | factor/scripts/pre_average_freq.py | Python | gpl-2.0 | 6,208 | [
"Gaussian"
] | 6d13e8acc00d0d34f33f2d2ac8c92b5c041beb8653b643099c0dfdfa99c48976 |
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2014-2017 The appleseedhq Organization
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this s... | jasperges/blenderseed | properties/nodes/ashikhmin_brdf.py | Python | mit | 6,446 | [
"VisIt"
] | ff11bc389d4cc35a496febe55739a742b81cbc4a3f28272bcb398cb2108f3ce5 |
import os
import glob
import inspect
import fnmatch
import numpy as np
import matplotlib.pyplot as plt
from netCDF4 import Dataset as ncfile
try:
import seawater.gibbs as gsw
import seawater.csiro as csw
except ImportError:
pass # module doesn't exist, deal with it.
#import alti_tools as a... | rdussurget/py-altimetry | altimetry/data/hydro_nc.py | Python | lgpl-3.0 | 3,983 | [
"NetCDF"
] | 3ee91b9ff4dc0f1786e099cd00854fe7184240f5772ede1291b29e8bdaf79ec2 |
#!/usr/bin/env python3
# Coptyright 2016 (c) Brian McKean
'''
File name: getHost.py
Author: Brian McKean
Date created: 08/31/2016
Date last modified: 09/02/2016
Python Version: 3.5
Gets a list of IPs and dns names for a set of ec2 instances
input: None = gets all hoste
names ... | co-bri/quevedo | v2_scripts/gethost.py | Python | mit | 2,422 | [
"Brian"
] | 09de2ef0773acd793671ae00eb2332f1afdfe0541050edb047c5be858124e7c2 |
## Generating simulated data for variations in the object parameters:
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import scipy.io
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#imp... | tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/simulation_results/comparision_with_kNN_PCA/Combined/object_training/gen_data_object_training_new.py | Python | mit | 17,324 | [
"Mayavi"
] | ab99d483cc1ebc53ea2f3e1d4ee907bd339db69f9dafc3f932e5ee14a1340e8a |
# Implements a Gaussian process latent-variable model.
# The (high-dimensional) data, Y is explained by some low-dimensional latent
# data X, warped by a function drawn from a GP prior (f). So Y = f(X), but
# we don't know X or f.
#
# In this example, we optimize X and the hyperparameters of the GP, but
# we integrate... | barak/autograd | examples/gplvm.py | Python | mit | 3,558 | [
"Gaussian"
] | 8e957f84c559b69d385abeac3cc7f054fc42cb4fe8bd37452fcd88f29cd589a0 |
# -*- coding: utf-8 -*-
#
# brette_gerstner_fig_2c.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the ... | terhorstd/nest-simulator | pynest/examples/brette_gerstner_fig_2c.py | Python | gpl-2.0 | 3,145 | [
"NEURON"
] | 2307c6167aaedc9054fd3a3e089b9993144287e645fb1f8b46f99fa789ed4334 |
#!/usr/bin/env python
"""Skeleton program to demonstrate reading and analyzing simulation output.
This program reads a simulation output file 'demo.fits' and then loops over
all overlapping groups with exactly two members, with some additional cuts on
the galaxy properties, finally saving images of each pair to an out... | jmeyers314/willitdeblend | skeleton.py | Python | bsd-2-clause | 2,042 | [
"Galaxy"
] | d2eafdd3eb9fdfb40697434cd3e02316933747428568c2e07f2ad241ddf53954 |
"""
Python Obit FitModel class
This class contains a parameterized image model component
FitModel Members with python interfaces:
======= =================================================================
name An optional name for the object.
type Model type of the model component:
* PointMod - ... | kernsuite-debian/obit | python/FitModel.py | Python | gpl-2.0 | 11,509 | [
"Gaussian"
] | 3c2049c6e4165265c510182f5f6f7e22f4c03f4a07403cee97faab28818cbd8c |
#! /usr/bin/env python
# -*- coding: UTF-8 -*-
import os
import sys
import setuptools
from distutils.command.clean import clean as _clean
from distutils.command.build import build as _build
from setuptools.command.sdist import sdist as _sdist
from setuptools.command.build_ext import build_ext as _build_ext
try:
... | qisanstudio/qsapp-suibe | setup.py | Python | mit | 2,804 | [
"GULP"
] | f71536173f4ed45bee11a53e914fbd0f5f20eea68790a62801f456e9834a2c2e |
#!/usr/bin/env python
import rospy
from pyassimp import pyassimp
rospy.init_node("stl")
file_name = rospy.get_param("~file_name")
if False:
import vtk
reader = vtk.vtkSTLReader()
reader.SetFileName(fil_name)
reader.Update()
polydata = reader.GetOutput()
print polydata.GetPoints()
print ... | lucasw/simple_sim_ros | bullet_server/scripts/mesh.py | Python | gpl-3.0 | 560 | [
"VTK"
] | 1bdbcfe7c7fada024275ccf13af5e78153d60264e9ba86962b08785be227976b |
"""
Acceptance tests for Studio related to the container page.
The container page is used both for displaying units, and
for displaying containers within units.
"""
import datetime
import ddt
from nose.plugins.attrib import attr
from base_studio_test import ContainerBase
from common.test.acceptance.fixtures.course im... | lduarte1991/edx-platform | common/test/acceptance/tests/studio/test_studio_container.py | Python | agpl-3.0 | 70,544 | [
"VisIt"
] | 8ba58f97a4d9abd1c9e540640e559906bf5f41c9953ffb5a0d147f1abfa29e3e |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | dbtsai/spark | python/pyspark/ml/tests/test_persistence.py | Python | apache-2.0 | 19,696 | [
"Gaussian"
] | c36c42cde4495f3a1aad610238ce2cac564e0522e48783fa1a9d7529fb4b3c7a |
#!/usr/bin/env python
########################################################################
#
# (C) 2015, Chris Houseknecht <chouse@ansible.com>
#
# 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... | goozbach/ansible | lib/ansible/galaxy/login.py | Python | gpl-3.0 | 4,490 | [
"Galaxy"
] | 7a1a50461ee5cbc42804ce61b5b293de45679bc791c06b7a9f895ea1a12cf70b |
import sys
from services.spawn import MobileTemplate
from services.spawn import WeaponTemplate
from resources.datatables import WeaponType
from resources.datatables import Difficulty
from resources.datatables import Options
from java.util import Vector
def addTemplate(core):
mobileTemplate = MobileTemplate... | agry/NGECore2 | scripts/mobiles/yavin4/crystal_snake.py | Python | lgpl-3.0 | 1,636 | [
"CRYSTAL"
] | 962a8a78fd22b7dbe6ee38bbb25513e148814046db10b0445c506ab42d7d055c |
from math import sqrt
from ase import Atoms, Atom
from ase.constraints import FixAtoms
from ase.optimize import FIRE, QuasiNewton, BFGS
from ase.neb import SingleCalculatorNEB
from ase.calculators.emt import EMT
Optimizer = BFGS
# Distance between Cu atoms on a (111) surface:
a = 3.6
d = a / sqrt(2)
fcc111 = Atoms(sy... | grhawk/ASE | tools/ase/test/COCu111_2.py | Python | gpl-2.0 | 1,850 | [
"ASE"
] | 0d75b2ca547cc0124e180bc78c990273c66579b0fd6ac4c465d08496d814ad07 |
raise(Exception("This script is obsolete!"))
import shutil
import os
import tarfile
import tempfile
import mdtraj
import itertools
import pandas as pd
min_num_gen = 50
source_dir = "/cbio/jclab/projects/fah/fah-data/PROJ8900/"
destination_dir = "./Trajectories/"
provenance_file = file("./provenance.csv", 'a')
traj... | hainm/MSMs | attic/src/code/fahprocessing/old/FAH_to_MSMB2.py | Python | gpl-2.0 | 1,499 | [
"MDTraj"
] | 2f5bb6c2b4aad8d6fc9d25b1092f60f19d07cef6afa94bcf71e0aeaa4e312962 |
from mpi4py import MPI
from lammps import lammps
lmp = lammps()
lmp.file("in.colloid")
me=MPI.COMM_WORLD.Get_rank()
nprocs=MPI.COMM_WORLD.Get_size()
print "Proc %d out of %d procs has " % (me,nprocs),lmp
MPI.Finalize()
| zimmermant/dlvo_lammps | examples/mpi_test/test.py | Python | gpl-2.0 | 219 | [
"LAMMPS"
] | 48801c4988ed169f476e3f8d7c82ff74f8d39fae0c039d2ac28f1e54a29730f3 |
#!/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 | modules/porous_flow/doc/content/modules/porous_flow/tests/heat_advection/heat_advection.py | Python | lgpl-2.1 | 2,227 | [
"MOOSE"
] | 65e6e3fdd5921a0c570abd349c8391c4d23ecc0e2acd223660e2b16deffebc9c |
#!/usr/bin/env python
import vtk
import sys
from optparse import OptionParser
from vtk.util.colors import *
#
# parse command line options
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename", default="fort.14",
help="file to read")
parser.add_option("-i", "--interact", dest="int... | jasonfleming/asgs | output/adcirc_xml.py | Python | gpl-3.0 | 8,844 | [
"VTK"
] | 28f9ade6430f2ee9c0ee8aa64036d8d19aa911335d1de96006ced449afce82b3 |
../../../../../../../share/pyshared/orca/scripts/toolkits/WebKitGtk/script_settings.py | Alberto-Beralix/Beralix | i386-squashfs-root/usr/lib/python2.7/dist-packages/orca/scripts/toolkits/WebKitGtk/script_settings.py | Python | gpl-3.0 | 86 | [
"ORCA"
] | 32c06b2ac6d21fde571962521454b9db0a303b712b2469607fa872f164c5369b |
# -*- coding: utf-8 -*-
u"""
==================================
Input and output (:mod:`scipy.io`)
==================================
.. currentmodule:: scipy.io
SciPy has many modules, classes, and functions available to read data
from and write data to a variety of file formats.
.. seealso:: `NumPy IO routines <ht... | grlee77/scipy | scipy/io/__init__.py | Python | bsd-3-clause | 2,575 | [
"NetCDF"
] | 3ac687fb9d228568347fa25eb0067d2a458a74b11ca7d752529144b48b48a158 |
#!/usr/bin/env python
"""
Vision demo configuration routines.
"""
import csv
import os
import collections
import cPickle as pickle
import numpy as np
import gzip
import networkx as nx
from neurokernel.LPU.LPU import LPU
from neurokernel.pattern import Pattern
import neurokernel.plsel as plsel
class hex_array(objec... | cerrno/neurokernel | examples/vision/data/vision_configuration.py | Python | bsd-3-clause | 33,107 | [
"NEURON"
] | feb26236747f7cb303e0e07a835d4dce2b0eca38a66dc4784b798dcf8a446a90 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | vidartf/hyperspy | hyperspy/gui/egerton_quantification.py | Python | gpl-3.0 | 22,660 | [
"Gaussian"
] | fca77ab39ac6b50f32a7caec36633019a2d6278065df7df82a02fe4ea7ab96da |
##
# Copyright 2009-2016 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... | hpcleuven/easybuild-easyblocks | easybuild/easyblocks/q/quantumespresso.py | Python | gpl-2.0 | 15,489 | [
"ESPResSo",
"Quantum ESPRESSO",
"Wannier90",
"Yambo"
] | f5a41e9c1a1ccf6cd3fd212a312f5669a4d9ff99a1cc410efa0f470707d5231f |
import _ExocortexAlembicPython as alembic
import sys
import argparse
# ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
# global variables
show_time = False
show_meta = False
show_size = False
show_vals = False
show_just_obj = False
show_ts = False... | SqueezeStudioAnimation/ExocortexCrate | Python/samples/viewABC.py | Python | bsd-3-clause | 5,186 | [
"VisIt"
] | 49e7ca8a4e4776bebe095a9a98b6f1a3e6b4060ecbedd699ef2595b1cdfc9ab0 |
#!/usr/bin/env python
# Author: Junjun Zhang
import sys
import os
import re
import glob
import xmltodict
import json
import yaml
import copy
import logging
from argparse import ArgumentParser
from argparse import RawDescriptionHelpFormatter
from elasticsearch1 import Elasticsearch
from collections import OrderedDict
... | ICGC-TCGA-PanCancer/pcawg-central-index | pcawg_metadata_parser/parse_gnos_xml.py | Python | gpl-2.0 | 150,932 | [
"BWA"
] | 6556f9a8c649d0c9b51b2b23d8af80f3b4ab1a0a8f9d54d642080ff097c1dacb |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2017-2021 emijrp <emijrp@gmail.com>
# 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... | emijrp/wikidata | common.descriptions.py | Python | gpl-3.0 | 128,417 | [
"Galaxy"
] | 07e2bbbea019d421185fb5ee9f124507c21901a6a9f004e90d9a74a9c623155b |
# coding: utf-8
"""
Collection of low-level tools that faciliate the interface with resource managers.
The preferred way of importing this module is:
import qutils as qu
"""
from __future__ import print_function, division, unicode_literals
from monty.string import is_string
from pymatgen.core.units import Time, ... | matk86/pymatgen | pymatgen/io/abinit/qutils.py | Python | mit | 3,763 | [
"pymatgen"
] | 6e3d0afbadba7efccd1d153ef30c661de6a416de21209213bd72cee7bb28b098 |
# -*- coding: utf-8 -*-
__author__ = 'Steven Christe'
from astropy.io import fits
from skimage import filter
from skimage.transform import hough_circle
from skimage.feature import peak_local_max
from skimage.draw import circle_perimeter
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm
fro... | foxsi/SAASpy | saaspy/image.py | Python | mit | 5,888 | [
"Gaussian"
] | 6a6ac5dcad78fdddca3563112bb92b74c8aa39ea9d0f99a1d431bd5ed486de32 |
"""
********************************************************************************
* Name: Test Grid Template
* Author: Alan D. Snow
* Created On: September 16, 2016
* License: BSD 3-Clause
********************************************************************************
"""
import itertools
from netCDF4 import Datase... | CI-WATER/gsshapy | tests/template.py | Python | bsd-3-clause | 5,573 | [
"NetCDF"
] | 3b8bad5a41fee98227004debe4c32ef4171c44f80f8a4284e27d80f80512ebb3 |
#!/usr/bin/python
#
# This source file is part of appleseed.
# Visit http://appleseedhq.net/ for additional information and resources.
#
# This software is released under the MIT license.
#
# Copyright (c) 2010-2013 Francois Beaune, Jupiter Jazz Limited
# Copyright (c) 2014-2016 Francois Beaune, The appleseedhq Organi... | docwhite/appleseed | scripts/appleseed.package.py | Python | mit | 28,631 | [
"VisIt"
] | e41fa11a90c703269fff21a92ab7d25bd70e7d61398e7ce526de2731af207c41 |
#!/usr/bin/env python
#
# Copyright 2015 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.
import logging
import optparse
import os
import sys
import webbrowser
sys.path.append(os.path.join(os.path.dirname(__file__), os.par... | ltilve/ChromiumGStreamerBackend | tools/profile_chrome_startup.py | Python | bsd-3-clause | 4,249 | [
"VisIt"
] | c41ec21c039483bbfd32f198639729fb68b2368d622d0a4ad67b8b098eb4eddc |
# qmpy/analysis/thermodynamics/space.py
import networkx as nx
from scipy.spatial import ConvexHull
import matplotlib.pyplot as plt
import logging
from django.db import transaction
import qmpy
from qmpy.utils import *
from . import phase
from .reaction import Reaction
from .equilibrium import Equilibrium
logger = lo... | wolverton-research-group/qmpy | qmpy/analysis/thermodynamics/space.py | Python | mit | 57,105 | [
"VASP"
] | 3da8683b025af4047058fe7ce38d1d0247a57a2fe0d4e262786044bd2737d125 |
# -*- coding: utf-8 -*-
"""
The Starshot module analyses a starshot image made of radiation spokes, whether gantry, collimator, MLC or couch.
It is based on ideas from `Depuydt et al <http://iopscience.iop.org/0031-9155/57/10/2997>`_
and `Gonzalez et al <http://dx.doi.org/10.1118/1.1755491>`_.
Features:
* **Analyze s... | jrkerns/pylinac | pylinac/starshot.py | Python | mit | 25,570 | [
"Gaussian"
] | 7b24cfa63d5896ed639b8b694308fab331416ba778e19d9f263e4af4d3bdd3eb |
"""
**update**
1. update zeropadding()
2. add automatic zeropadding into xcorr and xcor
3. add infmax and infmin
4. add method keyword in zeropadding, can do corner/center zeropadding.
5. zeropadding can be done by providing axis and new_axis.
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.signal im... | gromitsun/multi-scale-image | multiimgs/tools.py | Python | lgpl-3.0 | 15,334 | [
"Gaussian"
] | e06aba296beb3a71b8d79200baa16e461e96401f2da9e06a837d4dc317ee1b33 |
# -*- coding: utf-8 -*-
"""
Objects to represent elements of Euclidean domains that can be expressed as
a + b u, where u is some unit and a and b are integers. Also implements
the Euclidean algorithm to factor those elements.
Gaussian: u = j
Eisenstein: u = exp(2pi/3)
Steineisen: u = exp(pi/3) (isomorphic t... | brsr/antitile | antitile/factor.py | Python | mit | 11,837 | [
"Gaussian"
] | 662b5aff89cd1d8da805b819a1aab200f2e4187870e1c6ccb8b47edd0a336821 |
#!/usr/bin/python
#
# (C) 2013, Markus Wildi
#
#
#
# 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, or (at your option)
# any later version.
#
# This program is dis... | RTS2/rts2 | scripts/rts2saf/rts2saf/config.py | Python | lgpl-3.0 | 21,229 | [
"VisIt"
] | bf944c6f23aeac06af78e49109e1b14e1d7fec1f686c9deb909afd56ba0740f3 |
# Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
#
# This work is licensed under the Creative Commons Attribution-NonCommercial
# 4.0 International License. To view a copy of this license, visit
# http://creativecommons.org/licenses/by-nc/4.0/ or send a letter to
# Creative Commons, PO Box 1866, Mountain... | microsoft/DiscoFaceGAN | dnnlib/tflib/autosummary.py | Python | mit | 7,537 | [
"VisIt"
] | a44808bc9198d10b7e8be52fab2fa6d9c484e486d7862ae216fc84c80d502df3 |
"""Download and install structured genome data and aligner index files.
Downloads prepared FASTA, indexes for aligners like BWA, Bowtie and novoalign
and other genome data in automated pipelines. Specify the genomes and aligners
to use in an input biodata.yaml configuration file.
The main targets are fabric functions... | heuermh/cloudbiolinux | cloudbio/biodata/genomes.py | Python | mit | 39,516 | [
"BLAST",
"BWA",
"Bowtie",
"Galaxy"
] | 252ca0dd5be0e03347680cb48971b81d6d685c98183813a283cf67998dd42af7 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A pedestrian version of The Cannon.
"""
from __future__ import (division, print_function, absolute_import,
unicode_literals)
__all__ = ["CannonModel"]
import logging
from numpy.linalg import inv
import numpy as np
import scipy.optimize as op
... | peraktong/AnniesLasso | AnniesLasso/cannon.py | Python | mit | 41,385 | [
"Gaussian"
] | 256a599c45ec32ccbb2b098790723c07a5d26f6bdf406075aeec0d01cdfae0f2 |
# -*- coding: utf-8 -*-
"""
Ottis — A simple bot for Telegram groups that does web and wiki searches.
Author — @karthikeyankc
"""
import telegram
from telegram.ext import Updater, CommandHandler, MessageHandler, Filters
from bs4 import BeautifulSoup
import logging
import requests
import itertools
import json
import ... | karthikeyankc/Ottis | ottis.py | Python | gpl-3.0 | 4,446 | [
"VisIt"
] | d3304e9561404f338956f45d26989410481b8f7f762403f1654e9761f41b134e |
from polypasswordhasher import PolyPasswordHasher
THRESHOLD = 10
PASSWORDFILE = 'securepasswords'
def test_1_decode():
# require knowledge of 10 shares to decode others. Create a blank, new
# password file...
pph = PolyPasswordHasher(threshold=THRESHOLD, passwordfile=None)
# create three admins so... | PolyPasswordHasher/PolyPasswordHasher-Python | polypasswordhasher/tests/test_polypasswordhasher.py | Python | mit | 4,469 | [
"MOE"
] | 66d3d48ff7afbdfdb4b9ffda027b3467b137b49971c9c6d01495198c7f826553 |
# coding: utf-8
from __future__ import print_function, division, unicode_literals, absolute_import
executable = "anaddb"
from abimkdocs.variables import ValueWithUnit, MultipleValue, Range
#from abipy.abio.abivar_database.variables import ValueWithUnit, MultipleValue, Range, ValueWithConditions
ValueWithConditions = ... | abinit/abinit | abimkdocs/variables_anaddb.py | Python | gpl-3.0 | 92,751 | [
"ABINIT",
"BoltzTrap",
"CRYSTAL",
"DIRAC",
"Gaussian",
"Yambo"
] | 7330c6bc181b683a34725b8800630796b37b5736c05bf5c1b5325d58446312c8 |
"""
Module to set up run time parameters for Clawpack -- classic code.
The values set in the function setrun are then written out to data files
that will be read in by the Fortran code.
"""
import os
import numpy as np
#------------------------------
def setrun(claw_pkg='classic'):
#--------------------------... | alsam/jlclaw | src/acoustics_1d_example1/fortran/setrun.py | Python | mit | 7,217 | [
"Gaussian",
"NetCDF"
] | d3681076e9f9d5a418e8cd44cf968bf8fd9daf32e6b95fe32667acf428cf4239 |
"""Omega matrix for functionals with Hartree-Fock exchange.
"""
from math import sqrt
import numpy as np
from numpy.linalg import inv
from ase.units import Hartree
import gpaw.mpi as mpi
from gpaw.lrtddft.omega_matrix import OmegaMatrix
from gpaw.pair_density import PairDensity
from gpaw.utilities import pack
from ... | qsnake/gpaw | gpaw/lrtddft/apmb.py | Python | gpl-3.0 | 10,953 | [
"ASE",
"GPAW"
] | 21ed36fa41b2b274d486b26d1a67b79fc0a63ab09d6e371b2712ac27a36ff424 |
"""Pyvista specific errors."""
CAMERA_ERROR_MESSAGE = """Invalid camera description
Camera description must be one of the following:
Iterable containing position, focal_point, and view up. For example:
[(2.0, 5.0, 13.0), (0.0, 0.0, 0.0), (-0.7, -0.5, 0.3)]
Iterable containing a view vector. For example:
[-1.0, 2.0... | akaszynski/vtkInterface | pyvista/core/errors.py | Python | mit | 1,403 | [
"VTK"
] | 125716d4e7737dc3f15d51846d035774c56e209d274308634857708b09a6b6a5 |
#! /usr/bin/env python
import sympy as sy
import sympy.physics.mechanics as mech
import numpy as np
import scipy as sp
import util
from symbol import t, V, I
# TODO simplify SimplePlanarCrawler
# TODO rename SimplePlanarCrawler
# TODO move definition of head mechanical model into this submodule
"""
Generic model ... | janeloveless/mechanics-of-exploration | neuromech/model.py | Python | unlicense | 24,479 | [
"NEURON"
] | e05fa4101d9ed8870433d6920df55bf1794ba1dcff2f5de35b7139b12178988e |
from __future__ import division
import pickle
from io import BytesIO
import numpy as np
import scipy.sparse
from sklearn.datasets import load_digits, load_iris
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn.externals.six.moves import zip
from sk... | herilalaina/scikit-learn | sklearn/tests/test_naive_bayes.py | Python | bsd-3-clause | 24,653 | [
"Gaussian"
] | 2e3d940430381df6b5541f4ef9d7a53d890d8dbf0ab34e4b120a963e0d2b93c7 |
import urllib2
from urllib2 import urlparse
from restful_lib import Connection
#from gae_restful_lib import GAE_Connection
from datetime import datetime
from StringIO import StringIO
from xml.etree import ElementTree as ET
SPARQL_ENDPOINT = "/services/sparql"
META_ENDPOINT = "/meta"
CONTENT_ENDPOINT = "/items"
J... | darvin/qtdjango | src/qtdjango/restclient/talis.py | Python | gpl-2.0 | 11,420 | [
"TINKER"
] | b627476bfc3b5cd7f6f89e34fc4a820ec4649fe0d0001b6217fb1c47ab7129be |
#
# This file contains the new classes programmed in python added to the
# main objects (Beam, OE and Source) defined in C (in ShadowLib)
#
# It also define GeometricSource and Beamline
#
import Shadow.ShadowLib as ShadowLib
import numpy
import inspect
import copy
class Beam(ShadowLib.Beam):
def __init__(self, N=... | radiasoft/pypi-shadow3 | Shadow/ShadowLibExtensions.py | Python | gpl-3.0 | 124,400 | [
"CRYSTAL",
"Gaussian"
] | f5202a922939511fc72c25b849149796ef88226d03e3eede6a43d9d12137537a |
from Sire.Base import *
from Sire.IO import *
from Sire.Mol import *
from glob import glob
from nose.tools import assert_equal, assert_almost_equal
# Check that we have PDB2 support in this version of Sire.
has_pdb2 = True
try:
p = PDB2()
except:
# No PDB2 support.
has_pdb2 = False
# General test of abi... | michellab/SireUnitTests | unittests/SireIO/test_pdb2.py | Python | gpl-3.0 | 4,335 | [
"NAMD"
] | cc415d5fcdf2e816cbc12dfa82aaa45e8b25f9f388e55c733428c1e602d2a34d |
# -*- mode: python; coding: utf-8 -*-
# Copyright 2012-2015 Peter Williams <peter@newton.cx> and collaborators.
# Licensed under the MIT License.
"""pwkit.ellipses - utilities for manipulating 2D Gaussians and ellipses
XXXXXXX
XXX this code is in an incomplete state of being vectorized!!!
XXXXXXX
Useful for sources ... | pkgw/pwkit | pwkit/ellipses.py | Python | mit | 16,299 | [
"Gaussian"
] | 123c47d036df0ecd0cf5d08bc00cde8368bc7e84b3b3b75b6a3daeecaf1df8fe |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
This module contains the error classes for the chemenv package.
"""
__author__ = "David Waroquiers"
__copyright__ = "Copyright 2012, The Materials Project... | matk86/pymatgen | pymatgen/analysis/chemenv/utils/chemenv_errors.py | Python | mit | 3,780 | [
"pymatgen"
] | 092e170f9327da6093e4b455bec47367809813a21527a0a4dbe66ee033835fe1 |
# Copyright (C) 2014 LiuLang <gsushzhsosgsu@gmail.com>
# Use of this source code is governed by GPLv3 license that can be found
# in http://www.gnu.org/licenses/gpl-3.0.html
'''
用于显示桌面歌词
'''
import json
import os
import sys
import time
import traceback
import cairo
from gi.repository import Gdk
from gi.repository i... | lennyhbt/kwplayer | kuwo/OSDLrc.py | Python | gpl-3.0 | 21,651 | [
"FLEUR"
] | 410a80f8c9d8dc496a100a58c27573869db9bc5fb44df7918482bd63491c8a21 |
#!/usr/bin/python
#
# Created on Aug 25, 2016
# @author: Gaurav Rastogi (grastogi@avinetworks.com)
# Eric Anderson (eanderson@avinetworks.com)
# module_check: supported
#
#
# 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... | e-gob/plataforma-kioscos-autoatencion | scripts/ansible-play/.venv/lib/python2.7/site-packages/ansible/modules/network/avi/avi_serviceengine.py | Python | bsd-3-clause | 5,728 | [
"VisIt"
] | 8ef9cf698533e458235b42d5ef64ea591ae129ecba90e7fcf75b198c0ac2b72c |
"""Coders for individual Variable objects."""
import warnings
from functools import partial
from typing import Any
import numpy as np
import pandas as pd
from ..core import dtypes, duck_array_ops, indexing
from ..core.pycompat import dask_array_type
from ..core.utils import equivalent
from ..core.variable import Vari... | shoyer/xray | xarray/coding/variables.py | Python | apache-2.0 | 11,417 | [
"NetCDF"
] | 0c3d9398b21b0d4b842780ab10796add146cc1e165d2a75d7282f5d9ae08cd45 |
""" CSAPI exposes update functionalities to the Configuration.
Most of these functions can only be done by administrators
"""
__RCSID__ = "$Id$"
import types
from DIRAC import gLogger, gConfig, S_OK, S_ERROR
from DIRAC.Core.DISET.RPCClient import RPCClient
from DIRAC.Core.Utilities import List
from DIRAC.Core.S... | coberger/DIRAC | ConfigurationSystem/Client/CSAPI.py | Python | gpl-3.0 | 30,978 | [
"DIRAC"
] | b0200d4185a07f85f65c193fd27193ba789f42f0d0fded07ecf7dc17a67a491d |
''' -- imports from python libraries -- '''
# from datetime import datetime
import datetime
import json
''' -- imports from installed packages -- '''
from django.http import HttpResponseRedirect # , HttpResponse uncomment when to use
from django.http import HttpResponse
from django.http import Http404
from django.sho... | olympian94/gstudio | gnowsys-ndf/gnowsys_ndf/ndf/views/course.py | Python | agpl-3.0 | 64,077 | [
"VisIt"
] | 4d040cd96c4bbff17a34a2f5ddb48cb105e468f196787073e9678026bb15f6ef |
# SimpleCV Cameras & Devices
#load system libraries
from SimpleCV.base import *
from SimpleCV.ImageClass import Image, ImageSet, ColorSpace
from SimpleCV.Display import Display
from SimpleCV.Color import Color
from collections import deque
import time
import ctypes as ct
import subprocess
import cv2
import numpy as np... | beni55/SimpleCV | SimpleCV/Camera.py | Python | bsd-3-clause | 132,863 | [
"VisIt"
] | cd14e8ec8436bc4ddb03a88456916517d75d26e7323a0038672f7942bde7a5d3 |
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 17 14:10:58 2017
@author: tkc
"""
import os
import pandas as pd
import numpy as np
from tkinter import filedialog
AESQUANTPARAMFILE='C:\\Users\\tkc\\Documents\\Python_Scripts\\Augerquant\\Params\\AESquantparams.csv'
class AESspectrum():
''' Single instance of AES spe... | tkcroat/Augerquant | Development/AES_dataset_class.py | Python | mit | 5,287 | [
"Gaussian"
] | d492c0a47926cd683040a073e46118656e32626b35acbf26f816767aa4324764 |
"""
Tests for intensity combination.
"""
from __future__ import annotations
from unittest.mock import Mock
import pytest
from dxtbx.model import Crystal, Experiment
from dials.algorithms.scaling.combine_intensities import (
MultiDatasetIntensityCombiner,
SingleDatasetIntensityCombiner,
combine_intensit... | dials/dials | tests/algorithms/scaling/test_combine_intensities.py | Python | bsd-3-clause | 8,762 | [
"CRYSTAL"
] | ec4061b4d0299e61d188d08043df49211e8229b557af8ea9f4a07ff4ebed7154 |
"""Unit tests of MQConnectionManager in the DIRAC.Resources.MessageQueue.MConnectionManager
Also, test of internal functions for mq connection storage.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# ignore use of __functions, _functions
# pylint: d... | ic-hep/DIRAC | src/DIRAC/Resources/MessageQueue/test/Test_MQConnectionManager.py | Python | gpl-3.0 | 32,786 | [
"DIRAC"
] | 7dbe7fc971cc8f301ce2dd29f35fa63b29ab727ff8fa800e02a63b1ba9ee75b9 |
""" Library of splinter browser steps.
Adapted for pytest-bdd and pytest-splinter from behaving_ 1.1.
.. _behaving: https://pypi.python.org/pypi/behaving
"""
from pytest_bdd.parsers import parse
from pytest_bdd import (
given,
then,
when,
)
try:
from urllib.parse import urljoin
except ImportError:
... | philiptzou/clincoded | src/clincoded/tests/features/browsersteps.py | Python | mit | 12,588 | [
"VisIt"
] | 741ba15698fc177300b4d6c3a681262c80f6ad802931b18e95521aa5e35d8035 |
# ----------------------------------------------------------------------
# Copyright (c) 2016, The Regents of the University of California All
# rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# ... | drichmond/tinker | python/Specification.py | Python | bsd-3-clause | 5,116 | [
"TINKER"
] | e300156835b960f47fc40c4766ca86ac830813610a1440da8e748b0da6bc25e5 |
"""
Dashboard view and supporting methods
"""
import datetime
import logging
from collections import defaultdict
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from django.urls import reverse
from dj... | eduNEXT/edunext-platform | common/djangoapps/student/views/dashboard.py | Python | agpl-3.0 | 35,762 | [
"VisIt"
] | 475e127c75e993a3363c1c58854b28f33e2d0c9f8c5e50ef5a6b3f4e17afc7f4 |
# noqa
EFF_WORDS = [
"abacus",
"abdomen",
"abdominal",
"abide",
"abiding",
"ability",
"ablaze",
"able",
"abnormal",
"abrasion",
"abrasive",
"abreast",
"abridge",
"abroad",
"abruptly",
"absence",
"absentee",
"absently",
"absinthe",
"absolute... | brycedrennan/pwdgen | pwdgen/eff_wordlist.py | Python | mit | 116,595 | [
"Amber",
"BLAST",
"CASINO",
"CRYSTAL",
"ESPResSo",
"Elk",
"GULP",
"NEURON",
"Octopus",
"SIESTA",
"TINKER",
"exciting"
] | 5afa5a51c2c2b38497322e72a2bb767ddda9ec6156b76c11e679ded79ba09d24 |
# Copyright (c) 2014, James Hensman, Alex Matthews
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
from ..util import choleskies
from .sparse_gp import SparseGP
from .parameterization.param import Param
from ..inference.latent_function_inference.svgp import SVGP as svgp_inf
class SVGP(... | ptonner/GPy | GPy/core/svgp.py | Python | bsd-3-clause | 4,620 | [
"Gaussian"
] | 37e86408ab030714e976a88b33e92fe9043593865aed87c446e9725ad5b1a175 |
# Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# generate_ufuncs.py to generate the docstrings for the ufuncs in
# scipy.special at the C lev... | piyush0609/scipy | scipy/special/add_newdocs.py | Python | bsd-3-clause | 70,838 | [
"Gaussian"
] | e3fb6accd95a61c1b8b39115ee22498b9ba9abd621c8d37676b0b310ba28eded |
#! PsiAPI energy example
import psi4
psi4.set_output_file("output.dat", False)
geom = psi4.geometry("""
C # testing escaping comments
""")
psi4.set_options({"SCF_TYPE": "DF",
"BASIS": "cc-pVDZ"})
scf_e, scf_wfn = psi4.energy('SCF', return_wfn=True)
psi4.compare_values(-37.5959861862713893, scf_e... | ashutoshvt/psi4 | tests/python/energy/input.py | Python | lgpl-3.0 | 466 | [
"Psi4"
] | f538932079fdeb1a518678f9a8d6e19569b21471bb618e3f4b18e3cf3c74aaf1 |
# -*- coding: utf-8 -*-
#
# Cherokee-admin
#
# Authors:
# Alvaro Lopez Ortega <alvaro@alobbs.com>
# Taher Shihadeh <taher@octality.com>
#
# Copyright (C) 2001-2011 Alvaro Lopez Ortega
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General ... | nuxleus/cherokee-webserver | admin/PageIndex.py | Python | gpl-2.0 | 17,513 | [
"VisIt"
] | 62b952edd23daf411bf52db12966fc6199c4f9bbfe500d63912f998ba9f40268 |
# Orca
#
# Copyright 2010-2011 Consorcio Fernando de los Rios.
# Author: Juanje Ojeda Croissier <jojeda@emergya.es>
# Author: Javier Hernandez Antunez <jhernandez@emergya.es>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as publi... | GNOME/orca | src/orca/backends/json_backend.py | Python | lgpl-2.1 | 8,205 | [
"ORCA"
] | aade825598bc4f5843fa5f43f0428d79339e8c4c9816122849e72fe197f020c1 |
# -*- coding: utf-8 -*-
# Copyright 2022 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... | googleapis/python-compute | tests/unit/gapic/compute_v1/test_ssl_certificates.py | Python | apache-2.0 | 91,822 | [
"Octopus"
] | 6b21b4df3393dec2e1280702beb257b1a47ec62874a3b4f4a66bdc4ddc88df1d |
#!/usr/bin/env python3
#pylint: disable=missing-docstring
#* 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
... | nuclear-wizard/moose | python/chigger/tests/colormap/colormap_number.py | Python | lgpl-2.1 | 707 | [
"MOOSE"
] | d6bf1106b5464c0e9176af3348e0ae8085d555c38ace626c0b43f2e48062b410 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides objects for extracting timing data from the ABINIT output files
It also provides tools to analye and to visualize the parallel efficiency.
"""
from __future__ import unicode_literals, di... | aykol/pymatgen | pymatgen/io/abinit/abitimer.py | Python | mit | 26,477 | [
"ABINIT",
"pymatgen"
] | 829735b1ac5882f7525880087f970c0cf779e8714529303bb4be0f9e8a4630e7 |
"""
This module gathers tree-based methods, including decision, regression and
randomized trees. Single and multi-output problems are both handled.
"""
# Authors: Gilles Louppe <g.louppe@gmail.com>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Brian Holt <bdholt1@gmail.com>
# Noel Da... | mhue/scikit-learn | sklearn/tree/tree.py | Python | bsd-3-clause | 34,690 | [
"Brian"
] | e4891eb1fd6d291023916aae89c62f6709287b5d5dae328fce8ae2642b5b2ff5 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpat... | IronCountySchoolDistrict/powerschool_apps | config/urls.py | Python | mit | 1,506 | [
"VisIt"
] | c82ec8e475e84c769ff13373920ce3cde25987beda4286b7727aa2ea8d7dce62 |
# -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | magnunor/hyperspy | hyperspy/_signals/lazy.py | Python | gpl-3.0 | 36,884 | [
"Gaussian"
] | 9822532fc6cb674a660e1ab6684742f663c0351267a98595b2f0ac419e17a564 |
from os.path import exists
import numpy as np
import pandas as pd
import pygrib
from pyproj import Proj
from scipy.ndimage import gaussian_filter
from scipy.spatial import cKDTree
class HailForecastGrid(object):
"""
HailForecastGrid loads and stores gridded machine learning hail forecasts from GRIB2 files. I... | djgagne/hagelslag | hagelslag/data/HailForecastGrid.py | Python | mit | 6,310 | [
"Gaussian"
] | 5221949e61904b30020fbbcb06a189fe84b7c60ecea81f5868b8746ed1a0547f |
from argparse import *
from sys import *
from os.path import *
from vtk import *
from paraview.simple import *
from paraview.servermanager import *
parser = ArgumentParser(description = 'Process the arguments')
parser.add_argument('vtkFile', help = 'Path to the VTK file')
parser.add_argument('outputDir', help = 'Path t... | fercook/SciViz | Voxels/NETCDF_2_VTK_2_Blender/job/dem/paraview/VTKDEM2TIFF.py | Python | gpl-2.0 | 1,106 | [
"ParaView",
"VTK"
] | caf642fb3740c1deafa529ac7620b58783eaf1806287b6cf6e102a1b5843ae7c |
# Author: Kyle A. Beauchamp <kyleabeauchamp@gmail.com>
# Contributors: Robert McGibbon <rmcgibbo@gmail.com>,
# Matthew Harrigan <matthew.p.harrigan@gmail.com>
# Brooke Husic <brookehusic@gmail.com>,
# Muneeb Sultan <msultan@stanford.edu>
# Copyright (c) 2016, Stanford Universit... | msmbuilder/msmbuilder | msmbuilder/featurizer/featurizer.py | Python | lgpl-2.1 | 62,069 | [
"Gaussian",
"MDTraj"
] | 89aba3e69afb8f836c56615dae53b6b4cc721ff46fc3c59f7cf2e81789ae8e8f |
from rdkit.SimDivFilters import rdSimDivPickers as rdsimdiv
import numpy
from rdkit import RDRandom
RDRandom.seed(23)
pkr = rdsimdiv.MaxMinPicker()
n = 1000
m = 80
dataPts = []
for i in range(n):
pt = numpy.zeros(2, 'd')
pt[0] = 10. * RDRandom.random()
pt[1] = 10. * RDRandom.random()
dataPts.append(pt)
# co... | ptosco/rdkit | Code/SimDivPickers/Wrap/testMaxMin.py | Python | bsd-3-clause | 755 | [
"RDKit"
] | 33b69ef49c102b4319d9fa90e664cc6937495cb71de45d6fcfd87d9674d55ed6 |
# -*- coding: utf-8 -*-
"""
Generators for random graphs.
"""
# 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.
from __future__ import division
import itertools
import math
import ran... | cmtm/networkx | networkx/generators/random_graphs.py | Python | bsd-3-clause | 32,107 | [
"VisIt"
] | 0d1badee8bbdebf807416c3d640536ecd381a26a778bd907b4b0196b791f68be |
''' DIRAC.ResourceStatusSystem.Command package
'''
__RCSID__ = '$Id$'
| andresailer/DIRAC | ResourceStatusSystem/Command/__init__.py | Python | gpl-3.0 | 71 | [
"DIRAC"
] | 788ad4f66c9fe49be9d2e5f7fc16b11cbf32cac610371c09fc006bf85203b1d1 |
#!/bin/env python
""" Exit example: people doing things, when arriving at an exit/border node
- random movement
- if person arrives at any exit node placed at the map borders,
it sleeps for a while, changes its color and moves on
- uses person.act_at_node() and and location/exit
- output to ... | bhenne/MoSP | mosp_examples/exit_wiggler.py | Python | gpl-3.0 | 2,930 | [
"VisIt"
] | 88a609a4f1fa8817d9ed3cf7ed11238e0aa2aeb1f99ea696bd3b1af4d3446f7f |
# Do some preliminary analysis on the results of the DECaLS-Galaxy Zoo data.
from astropy.io import fits
from astropy.cosmology import WMAP9
from matplotlib import pyplot as plt
from matplotlib import cm
from matplotlib.colors import LogNorm
from collections import Counter
import numpy as np
import re
import pandas... | willettk/decals | python/decals_analysis.py | Python | mit | 23,642 | [
"Galaxy"
] | 97b6f92100f9ac85e1649ca3013960db56e372253e52c1f5697392a131fa969c |
import numpy as np
import os
import pyfits
import pymconvolve
from rotate import ImSec
class clumpness:
"""The clumpness parameter and the algorithm used as follows
1. The image is smoothed by a boxcar of width
0.25 * r(Petrosian parameter = 0.2)
2. The smoothness is computed with the radi... | vvinuv/pymorph | test/clumfunc.py | Python | gpl-2.0 | 4,436 | [
"Galaxy"
] | 6c09abc48d1ebfc7f15541622055d3d4700b201779b586195160ba5b72a3f814 |
# -*- coding: utf-8 -*-
# Copyright 2022 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... | googleapis/python-videointelligence | tests/unit/gapic/videointelligence_v1p3beta1/test_video_intelligence_service.py | Python | apache-2.0 | 56,765 | [
"Octopus"
] | cc8ca174fb9fa0a0427be4b5fb9e62220ae1f2db3b2e0b4ccde629338508e2bc |
#!/bin/python
"""
foregrounds.py
jlazear
1/20/15
Tools for constructing CMB foregrounds.
Long description
Example:
<example code here>
"""
__version__ = 20150120
__releasestatus__ = 'beta'
import inspect
import os
import numpy as np
from astropy.io import fits
import healpy as hp
import lib
# Path to the cmb/... | jlazear/cmb | lib/foregrounds.py | Python | apache-2.0 | 7,013 | [
"Gaussian"
] | 7bfdb859c591d17286980d2b9bc6437938d7e18be0f3f62039e26a8e5b8fb774 |
#
# Copyright (c) 2009-2015, Jack Poulson
# All rights reserved.
#
# This file is part of Elemental and is under the BSD 2-Clause License,
# which can be found in the LICENSE file in the root directory, or at
# http://opensource.org/licenses/BSD-2-Clause
#
import El, time
m = 2000
n = 4000
numLambdas = 7
startL... | sg0/Elemental | examples/interface/BPDN.py | Python | bsd-3-clause | 2,166 | [
"Gaussian"
] | edce604eeeebb9b3facc1733207c36650b531928de3b07fd2fce6f72aee72603 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.MDAnalysis.org
# Copyright (c) 2006-2015 Naveen Michaud-Agrawal, Elizabeth J. Denning, Oliver
# Beckstein and contributors (see AUTHORS for the full list)
#
# Rele... | MDAnalysis/mdanalysis | testsuite/MDAnalysisTests/formats/test_libdcd.py | Python | gpl-2.0 | 20,233 | [
"CHARMM",
"MDAnalysis"
] | a282f1a5340f2ccdb82e61a09159749750609a8ddc5341126c67c01bd225c003 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.