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 |
|---|---|---|---|---|---|---|---|
#!/usr/bin/env python
# In this example we show the use of the
# vtkBandedPolyDataContourFilter. This filter creates separate,
# constant colored bands for a range of scalar values. Each band is
# bounded by two scalar values, and the cell data lying within the
# value has the same cell scalar value.
import vtk
from... | CMUSV-VisTrails/WorkflowRecommendation | examples/vtk_examples/VisualizationAlgorithms/BandContourTerrain.py | Python | bsd-3-clause | 4,282 | [
"VTK"
] | f9e4f8fb48af2e5544d475696f5e8806b8d5773ef25ecbd32fb99fa4c55dd9bb |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated Sat Jul 18 17:11:29 2015 by generateDS.py version 2.16a.
#
# Command line options:
# ('-o', 'meetCI.py')
# ('-s', 'meetCI_sub.py')
#
# Command line arguments:
# meetCI.xsd
#
# Command line:
# generateDS.py -o "meetCI.py" -s "meetCI_sub.py" meetCI.xsd
... | RathinakumarVisweswaran/MeetCI | python/meetCI.py | Python | mit | 246,019 | [
"Gaussian"
] | 1bef7ea42946ac9355c5e3a19977f82c9e0eec4cd7777b140c83c17e52590397 |
# cerbero - a multi-platform build system for Open Source software
# Copyright (C) 2012 Andoni Morales Alastruey <ylatuya@gmail.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Library General Public
# License as published by the Free Software Foundation; eit... | nicolewu/cerbero | cerbero/packages/package.py | Python | lgpl-2.1 | 20,637 | [
"NAMD"
] | 7030d8c1ad9e87b03ba21e63177806eedf1c64a973f2ed62d2b834d728e86ad1 |
import numpy
from chainer import cuda
from chainer import function
from chainer import utils
from chainer.utils import type_check
class Gaussian(function.Function):
"""Gaussian sampling function.
In forward calculation, this function takes mean and logarithm of variance
as inputs, and draw a sample fro... | kiyukuta/chainer | chainer/functions/noise/gaussian.py | Python | mit | 2,288 | [
"Gaussian"
] | 3bfc457f2b224c05eedae7e6fb5adbaca78edaa46387523b04378e31ce0879c4 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Wrapper classes for Cif input and output from Structures.
"""
import math
import re
import os
import textwrap
import warnings
from collections import OrderedDict, deque
from io import StringIO
import numpy... | fraricci/pymatgen | pymatgen/io/cif.py | Python | mit | 58,757 | [
"Avogadro",
"CRYSTAL",
"pymatgen"
] | 74e8b67a48355d2d9183039b62b675a855313a60effb33f7c1d6db8c169e90d5 |
""" PilotsLoggingHandler is the implementation of the PilotsLogging service
The following methods are available in the Service interface
addPilotsLogging()
getPilotsLogging
deletePilotsLogging()
"""
from DIRAC import S_OK, S_ERROR, gConfig
from DIRAC.Core.Utilities.ObjectLoader import ObjectLoader
fr... | ic-hep/DIRAC | src/DIRAC/WorkloadManagementSystem/Service/PilotsLoggingHandler.py | Python | gpl-3.0 | 3,551 | [
"DIRAC"
] | 30d6ad659f2b2ef7a03dcb53e60abedd6d07699711c9e92592c393f20179ef5d |
#! /usr/bin/python
# -*- coding: utf-8 -*-
"""bam_handler.py module
This module contains the classes and functions to handle the
"""
import pysam
__author__ = "Ryan Abo"
__copyright__ = "Copyright 2015, Ryan Abo"
__email__ = "ryanabo@gmail.com"
__license__ = "MIT"
def trim_qual(read, min_qual, min_len):
qual_... | a-bioinformatician/BreaKmer | breakmer/processor/bam_handler.py | Python | mit | 31,353 | [
"pysam"
] | 413f2e60661545e0b22a3cbfe059cd62da05ac0ebb47d4fd77c8f55a84493534 |
blacklisted_passwords = [
'govuknotify',
'GOVUKnotify',
'GOV.UK Notify',
'GOV.UK notify',
'gov.uk notify'
] + [
'11111111',
'12345678',
'123456789',
'access14',
'alejandra',
'alejandro',
'baseball',
'bigdaddy',
'butthead',
'cocacola',
'computer',
'cons... | gov-cjwaszczuk/notifications-admin | app/main/_blacklisted_passwords.py | Python | mit | 33,857 | [
"COLUMBUS",
"ESPResSo"
] | 8b958b7d651ff08c2b1db4ec98d320746f5d34e5cfc954f6c39391088852b623 |
import matplotlib
matplotlib.use('Agg', warn=False)
import os
from os.path import dirname, join
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.testing.decorators import image_comparison
from matplotlib.testing.compare import compare_images
from iminuit import Minuit
from probfit.plotting impor... | piti118/probfit | probfit/test/testplotting.py | Python | mit | 2,342 | [
"Gaussian"
] | 1fbf1b7615c77818c524ded473f27eaf823d87011cc8b645b0400f62311a9dd0 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Cannon with Chemistry """
__author__ = "Andy Casey <arc@ast.cam.ac.uk>"
import logging
import multiprocessing as mp
import numpy as np
from collections import OrderedDict
import scipy.optimize as op
from . import (atomic, cannon, model, plot, utils)
logger = loggin... | andycasey/fireworks | fireworks/fireworks.py | Python | mit | 22,183 | [
"Gaussian"
] | a764581bd6d1f5767dcff4dd9210c16d2c2d6e681916558e32e08e888cac25ad |
"""
Nonlinear filters.
"""
import numpy as np
import scipy.signal as sig
def neighbours(img_dims, coord):
"""
Get all neighbours of a pixel.
Parameters :
img_dims : image dimensions
coord : coordinates of pixel
"""
rows, cols = img_dims
i, j = coord
# Check if coords a... | pauljxtan/pystuff | pycompvis/compvis/imgproc/filters/nonlinear.py | Python | mit | 3,097 | [
"Gaussian"
] | ae73edcd3bcb78f4fc62a881d12e6ccafcdd4f436381ea77744fc323bf43ee37 |
# Copyright 2018 Open Source Robotics Foundation, Inc.
#
# 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... | ros2/launch | launch/launch/launch_service.py | Python | apache-2.0 | 18,972 | [
"VisIt"
] | 7876ddd57e6d7bc57fc6cea96b9b6867cd23fc187e2f1ca7d6eadb399e8fd380 |
# -*- coding: utf-8 -*-
"""Word cloud is ungraded xblock used by students to
generate and view word cloud.
On the client side we show:
If student does not yet answered - `num_inputs` numbers of text inputs.
If student have answered - words he entered and cloud.
"""
import json
import logging
import datetime
import cs... | torchingloom/edx-platform | common/lib/xmodule/xmodule/master_class_module.py | Python | agpl-3.0 | 15,766 | [
"VisIt"
] | f853cf1d3ed49651ba55e4448fc29d517c05b41b8be865ef941518f1706e1706 |
#
# Copyright 2014 Universidad Complutense de Madrid
#
# This file is part of Numina
#
# SPDX-License-Identifier: GPL-3.0+
# License-Filename: LICENSE.txt
#
import numpy as np
from astropy.modeling import Fittable1DModel, Parameter
class EnclosedGaussian(Fittable1DModel):
'''Enclosed Gaussian model'''
ampli... | nicocardiel/numina | numina/modeling/enclosed.py | Python | gpl-3.0 | 722 | [
"Gaussian"
] | 96e68f88995906e9fcc57c49a1ff675cf2e5aaa13ddbdd9a1aa33b0730bc0be2 |
#!/usr/bin/env python
"""Tests pycits wrapper for bowtie2-build.
Bowtie does not have native support for gzipped files, so we
work directly with FASTA/FASTQ
"""
import hashlib
import os
import shutil
from pycits import bowtie2_build
from pycits.tools import NotExecutableError
from nose.tools import nottest, assert_... | widdowquinn/THAPBI-pycits | tests/test_wrapper_bowtie2_build.py | Python | mit | 2,585 | [
"Bowtie"
] | dc8f565b24533a584845cb3a7141ef3440ebd9eb50d89a2ea38d01f1f162c83f |
#!/usr/bin/env python
#author: Peter Thorpe September 2016. The James Hutton Insitute,Dundee,UK.
#Title:
#script to generate gff for ITS region BLAST hits)"
# The BLAST should already have been perfomed:
# blastn -query ITS.fasta -db genome.fasta -outfmt 6 -out ITS_vs_geome.out
#imports
import os
import sys
from sys ... | widdowquinn/THAPBI | ITS_region_genomic_coverage/generate_ITS_GFF.py | Python | mit | 5,803 | [
"BLAST"
] | c0e4c6e0ea79ff75f4ff5ccc474a216359d87f7c97bd2c10bf3b94f23d190057 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys, os
from VtkRenderer import *
import numpy as np
from RadarTransforms import *
from LidarTransforms import *
from Q50_config import *
class ImageGrabberCallback:
def __init__(self, map_file):
self.map_file = map_file
self.radar_params = LoadPa... | sameeptandon/sail-car-log | process/tests/testDrawRadar.py | Python | bsd-2-clause | 2,580 | [
"VTK"
] | 0f090b4d8f140da3b58dadde69b95d530ec44a966ff6fdaa67f2db328e72b7c7 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
try:
from StringIO import StringIO
except Exception:
from io import StringIO
import numpy as np
from ..sile imp... | zerothi/sisl | sisl/io/tbtrans/tbtproj.py | Python | mpl-2.0 | 29,596 | [
"SIESTA"
] | a50169b04a3f095be80ec452695f2032a8b7ebe4d3adbf710d11b78a73d2c847 |
# -*- coding: utf-8 -*-
from datetime import datetime, timedelta
from django.db.models import Q
import mock
from actstream.models import Action, Follow
from nose.tools import eq_, ok_, raises
from taggit.models import Tag
import kitsune.sumo.models
from kitsune.flagit.models import FlaggedObject
from kitsune.search.... | orvi2014/kitsune | kitsune/questions/tests/test_models.py | Python | bsd-3-clause | 23,222 | [
"VisIt"
] | 79e5d018a135e3ebcb209d87b2c7fc5333be2dde43ac63a81602fd7462a85a39 |
# Copyright (C) 2010-2019 The ESPResSo project
#
# This file is part of ESPResSo.
#
# ESPResSo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later v... | psci2195/espresso-ffans | samples/ekboundaries.py | Python | gpl-3.0 | 2,458 | [
"ESPResSo",
"VTK"
] | 4a48096d9985aaf688491f1d22f278d69097d7d10d6a35ee6be54651417b2853 |
''' file name : canny.py
Description : This sample shows how to find edges using canny edge detection
This is Python version of this tutorial : http://opencv.itseez.com/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html
Level : Beginner
Benefits : Learn to apply canny edge detection to images.
Usage... | vickydasta/musicboxandhumanbrain | edge.py | Python | mit | 1,285 | [
"VisIt"
] | 40292c71c224ee0edc093f384de940aa7499ac5cade80e2fef2a12b96caee5e6 |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
from . impo... | nuclear-wizard/moose | python/MooseDocs/extensions/__init__.py | Python | lgpl-2.1 | 691 | [
"MOOSE"
] | 916b666a160690ebc03b8a2db1f994a08c84fabd193fd91061f3fa98d7d6e0c4 |
from distutils.core import setup
setup(
name='dbb',
version='1.0.6',
author='Donovan Parks',
author_email='donovan.parks@gmail.com',
packages=['dbb', 'dbb.plots'],
scripts=['bin/dbb'],
package_data={'dbb': ['data/*.txt']},
url='http://pypi.python.org/pypi/dbb/',
license='GPL3',
... | dparks1134/DBB | setup.py | Python | gpl-3.0 | 565 | [
"pysam"
] | 2d7e3925d628cb24537523bc3da8a622785bebf62c5594b43a864bce4dce371b |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2021 The Psi4 Developers.
#
# The copyrights for code used from other parties are included in
# the corresponding files.
#
# This file is part of Psi4.
#
# Psi4 is free software; you can redistribute it and/or modify
#... | ashutoshvt/psi4 | psi4/driver/qcdb/psivarrosetta.py | Python | lgpl-3.0 | 18,416 | [
"Psi4"
] | c4c1999ccda591844d4b3288b75f53e265023cbf0e908bf624c8b863dcaca4e4 |
import libtcodpy as libtcod
import math
import string
import textwrap
import shelve
import pygame
import pygame.mixer
#actual size of the window
SCREEN_WIDTH = 60
SCREEN_HEIGHT = 60
PANEL_HEIGHT = 11
BAR_WIDTH = 7
PANEL_Y = 0
GUI_X_OFFSET = -1
GUI_Y_OFFSET = -12
MSG_X = 12
MSG_WIDTH = SCREEN_WID... | MisterMoxxie/ARel | ARelMain.py | Python | gpl-3.0 | 66,687 | [
"Amber"
] | 92c33612e4eb2b71cf1b2dde7d597163dd1c07a805af8cf60fb53d83e95c260f |
#!/usr/bin/env python
# Copyright 2014-2021 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... | sunqm/pyscf | pyscf/ci/ucisd.py | Python | apache-2.0 | 42,117 | [
"PySCF"
] | 1ae9699ca22af8913961ed62cd4dc3ee769cefdee0d3a19ecdf3d6cdb3a2b9e8 |
try:
import wpilib
except ImportError:
from pyfrc import wpilib
# import components here
from autonomous import AutonomousModeManager
from components import drive, intake, catapult
from common import delay
# keep in sync with the driver station
MODE_DISABLED = 0
MODE_AUTONOMOUS = 1
MODE_TELEO... | frc1418/2014 | robot/robot/src/robot.py | Python | bsd-3-clause | 11,280 | [
"Jaguar"
] | f4de5422dcb9fb7713a25e7374065771b6d1a2174ec32d498ad470a80c825a7e |
# Copyright 2012 Jose Blanca, Peio Ziarsolo, COMAV-Univ. Politecnica Valencia
# This file is part of seq_crumbs.
# seq_crumbs 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, ... | JoseBlanca/seq_crumbs | test/seq/test_blast.py | Python | gpl-3.0 | 6,804 | [
"BLAST"
] | 7b1365abf08b875aa52c61eb2bde716be249684c53900a2f9e639e443ce2d245 |
#pylint: disable=missing-docstring
#################################################################
# DO NOT MODIFY THIS HEADER #
# MOOSE - Multiphysics Object Oriented Simulation Environment #
# #
# (c) 2010... | Chuban/moose | python/chigger/exodus/ExodusColorBar.py | Python | lgpl-2.1 | 3,953 | [
"MOOSE"
] | a5929dd6795bd3980f977293ad277c46837c3328181826dd78860867855ea1b4 |
# mexception.py ---
#
# Filename: mexception.py
# Description: Implements some custom exceptions
# Author: Subhasis Ray
# Maintainer:
# Created: Fri Apr 19 14:34:51 2013 (+0530)
# Version:
# Last-Updated: Wed May 22 14:25:18 2013 (+0530)
# By: subha
# Update #: 22
# URL:
# Keywords:
# Compatibility:... | dilawar/moose-full | moose-gui/mexception.py | Python | gpl-2.0 | 1,959 | [
"MOOSE"
] | 4b565234fb0654d73e28ceadbbd6ae77525de2bbed6b63dae63675ab88a498ed |
"""
Test the about xblock
"""
import datetime
import pytz
from ccx_keys.locator import CCXLocator
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test.utils import override_settings
from mock import patch
from nose.plugins.attrib import attr
from course_modes.models import Co... | louyihua/edx-platform | lms/djangoapps/courseware/tests/test_about.py | Python | agpl-3.0 | 26,215 | [
"VisIt"
] | 7a25114afad7f7550f3c23312742010c430fb64d2fe8197991023184bad005fd |
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk)
# 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.
"""
Consumer class that builds a Structure object.
This is used by the PDBCoordsPar... | q10/fiddle | python/Parsers/StructureBuilder.py | Python | bsd-3-clause | 10,466 | [
"Biopython"
] | b5ac0eef9668ad87c5a0154f0ba3a93ec8fd9a2270ab8f0c66ae34bf8b9da21a |
"""
AccountingCLI class implementing command line administrative interface to
DIRAC Accounting DataStore Service
"""
import sys
from DIRAC import gLogger
from DIRAC.Core.Base.CLI import CLI, colorize
from DIRAC.AccountingSystem.Client.DataStoreClient import DataStoreClient
class AccountingCLI(CLI):
def __init__... | DIRACGrid/DIRAC | src/DIRAC/AccountingSystem/Client/AccountingCLI.py | Python | gpl-3.0 | 8,061 | [
"DIRAC"
] | 17ec4a4bdcc243d2e05628733630d016ebbc10a549bf27d2426fb3b00ad50d7a |
# 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
#
# Unless required by appl... | gkc1000/pyscf | pyscf/nao/m_get_atom2bas_s.py | Python | apache-2.0 | 2,437 | [
"PySCF"
] | 1ef9daa87ec933aeaf1ad0ddc986f9173e7d1b527315d10bf198db97c4d05a39 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2015 Simon Perkins
#
# This file is part of montblanc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the L... | ska-sa/montblanc | montblanc/impl/rime/tensorflow/RimeSolver.py | Python | gpl-2.0 | 51,658 | [
"Gaussian"
] | 48dca86ca1b6f26ae7cebe8ea4b72d12d496a5ce8b5e8f9dfbd1c35f8052ce8a |
# Rewritten by RayzoR
import sys
from com.l2scoria.gameserver.model.quest import State
from com.l2scoria.gameserver.model.quest import QuestState
from com.l2scoria.gameserver.model.quest.jython import QuestJython as JQuest
qn = "135_TempleExecutor"
# NPCs
SHEGFIELD = 30068
ALEX = 30291
SONIN = 31773
PANO = 30078
# ... | zenn1989/scoria-interlude | L2Jscoria-Game/data/scripts/quests/135_TempleExecutor/__init__.py | Python | gpl-3.0 | 4,982 | [
"CRYSTAL"
] | eadf984afb876f4069f00e489e16af8e581659a2166ad35ebc359ebd51d875fe |
"""Event arrays are 2D label arrays (time x ROI) that are generated from an
array of fluorescent traces of the same size.
Uses the following inequality to determine if an event occured at a specific time in a cell:
dF/F of cell > (baseline of cell + std_threshold * std of cell * alpha)
See the findEve... | dattalab/d_code | events/eventRoutines.py | Python | mit | 23,750 | [
"Gaussian"
] | a7698210882a6c41dae0fb8ce9b48a31c9f6b48b95dff8a99b21479b5ef7b711 |
##
# Copyright 2009-2017 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... | ULHPC/easybuild-easyblocks | easybuild/easyblocks/a/aladin.py | Python | gpl-2.0 | 15,303 | [
"NetCDF"
] | d2bfd9e467c6e9c1932b6807b709bce5d07141edd8c93d05c6966237eb76f80c |
# ----------------------------------------------------------------------
# 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/Tinker.py | Python | bsd-3-clause | 11,186 | [
"TINKER"
] | fcb8ed480f51a04f3ecc8849ac95843516440a75a39165ab970ed201319e4d31 |
#!/usr/bin/python2
# This is a neural network based on PyBrain,
# taking as input an X and Y and any tree complexity parameters, and
# returning a classifier that can then be analyzed with the classifier.
# See the example in the main method for that and error-checking.
import sys
from util import write_test_predict... | bravelittlescientist/kdd-particle-physics-ml-fall13 | src/nn_submission.py | Python | gpl-2.0 | 2,820 | [
"NEURON"
] | 6a6d29021fbc48d566cb83631bc4d7bc20e8a1bd8174f901dfb759ea52968a6c |
#!/usr/bin/env python
#-*- coding: utf-8 -*
#
# Copyright (c) 2009 Antonio Barbuzzi <antonio.barbuzzi@gmail.com>,
# Telematics Lab, DEE, Politecnico di Bari, Italy. All rights reserved.
#
#
# This file is part of DeSRTO.
#
# DeSRTO is free software: you can redistribute it and/or modify
# it under the terms ... | antoniobarbuzzi/desrto | run.py | Python | gpl-2.0 | 4,698 | [
"VisIt"
] | 2cf8568ca370fd6fcfbd866e02ed1fe7126b08e3989f9fd4c6db08f05c074d9d |
# Copyright 2001 by Gavin E. Crooks. 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.
# Gavin E. Crooks 2001-10-10
"""ASTRAL RAF (Rapid Access Format) Sequence Maps.
The ASTRAL... | NirBenTalLab/proorigami-cde-package | cde-root/usr/lib64/python2.4/site-packages/Bio/SCOP/Raf.py | Python | mit | 12,025 | [
"Biopython"
] | 01b66600128590e1337c6c10e844fb8ba126f3d5c23192066d6a4e812d5c4c4e |
from __future__ import print_function, absolute_import, division
import os
import sys
import time
import signal
import traceback
from socket import gethostname
from getpass import getuser
from datetime import datetime
from six import iteritems
from six.moves import cStringIO
from sqlalchemy import func
from sklearn.b... | pandegroup/osprey | osprey/execute_worker.py | Python | apache-2.0 | 9,192 | [
"MDTraj"
] | 535e83c1fd1c6472287b58ed5bd7022a9d8aeb3207dc7a34c9fb21d109d42345 |
import os
import shutil
import mkdocs
import MooseDocs
import logging
log = logging.getLogger(__name__)
def build_options(parser, subparser):
"""
Command-line options for build command.
"""
build_parser = subparser.add_parser('build', help='Generate and Build the documentation for serving.')
return build_par... | vityurkiv/Ox | python/MooseDocs/commands/build.py | Python | lgpl-2.1 | 1,652 | [
"MOOSE"
] | 46b6d25b564fc0722d4d8b6b481ebed2add8c1cd2229592d42e045d8c0f3b711 |
#!/usr/bin/env python
############################################################################
# Copyright (c) 2011-2014 Saint-Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################
import os
import shutil
f... | fmaguire/BayeHem | bayehem/assembler/rnaSPAdes-0.1.1-Linux/bin/rnaspades.py | Python | apache-2.0 | 42,177 | [
"BWA"
] | 8042d3db643abbe93898cf12ae1181f3edb12a0efc6c750da6a39b8861cadc56 |
# -*- 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: Salim Fadhley <salimfadhley@gmail.com>
# Matteo Dell'Amico <matteodellamico@gmail.com>
"... | NvanAdrichem/networkx | networkx/algorithms/shortest_paths/astar.py | Python | bsd-3-clause | 4,896 | [
"VisIt"
] | 17b9c0ff12f81c406ffd1c5431d6e53aae8919122b3d82985ef9b9daadb07253 |
from rewriter import *
from os.path import basename
import copy
from lan_parser import *
from cgen import *
from transformation import *
from analysis import *
fileprefix = "../test/C/"
SetNoReadBack = True
DoOptimizations = True
def LexAndParse(name, createTemp):
import ply.yacc as yacc
cparser = yacc.yacc(... | dikujepsen/OpenTran | v2.0/framework/main.py | Python | mit | 5,346 | [
"Gaussian",
"VisIt"
] | badeef735dd86698174c8c7fee618de1ae3e47d0e4d87fa6f367dc96bd5c50f8 |
from datetime import datetime,timedelta
import itertools
def get_1mo_dates(inyr,inmo,indate,byear,eyear):
"""
Used with netCDF4 files and py-netCDF.
From 1985-2011, a number of days range to search
for dates centered around the given date and forecast time,
returns the applicable dates in a list of daetime ob... | mogismog/retorcast | retorcast/utils/get_dates.py | Python | apache-2.0 | 6,926 | [
"NetCDF"
] | 14578948b5f6e664a383c2d2eb380e4a6b54e6595c45c2259c671e84aa1d7e61 |
r"""
Composition Statistics (:mod:`skbio.stats.composition`)
=======================================================
.. currentmodule:: skbio.stats.composition
This module provides functions for compositional data analysis.
Many 'omics datasets are inherently compositional - meaning that they
are best interpreted as... | jensreeder/scikit-bio | skbio/stats/composition.py | Python | bsd-3-clause | 10,803 | [
"scikit-bio"
] | 8e8f8b85be1ad1b75930c6951dc936da516554715d8b7c3ed45550fbcee581d4 |
""" Determine calibration values for data
This module can be used to determine calibration values from data.
Determine timing offsets for detectors and stations to correct arrival times.
Determine the PMT response curve to correct the detected number of MIPs.
"""
from __future__ import division
from datetime import... | tomkooij/sapphire | sapphire/analysis/calibration.py | Python | gpl-3.0 | 15,927 | [
"Gaussian"
] | 117a40670fdb8cead41d656228d9dc8c5153c8cc97c3ae6a3a656bc222cb018b |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | gunan/tensorflow | tensorflow/python/ops/linalg/linalg_impl.py | Python | apache-2.0 | 43,513 | [
"Gaussian"
] | 636e378eb50982b9efd58473b26999eddc638053f5e9315b618e1af504f9d4d6 |
#!/usr/bin/env python
import time
import numpy
#from pyscf.pbc import df as pdf
from mpi4pyscf.pbc import df as pdf
from pyscf.pbc import scf as pbchf
from pyscf.pbc import gto as pbcgto
nk = 2
kpts = [nk,nk,1]
Lz = 25 # Smallest Lz value for ~1e-6 convergence in absolute energy
a = 1.42 # bond length in graphene
e =... | sunqm/mpi4pyscf | examples/32-graphene.py | Python | gpl-3.0 | 2,386 | [
"PySCF"
] | 0bbbcf8a4c7003c4bc7ad78001069c7dc1a1f86ed5a44526649261745c43fb45 |
# #############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2014 Stanford University and the Authors
#
# Authors: Matthew Harrigan
# Contributors: Robert T. McGibbon
#
# MDTraj is fre... | kyleabeauchamp/mdtraj | mdtraj/core/selection.py | Python | lgpl-2.1 | 13,995 | [
"MDTraj",
"VisIt"
] | 296ed1d0d84cfe9b9581fb72d9d495ea8f5c3505dfb92072a64ff16c34238d71 |
##############################################################################
# Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC.
# Produced at the Lawrence Livermore National Laboratory.
#
# This file is part of Spack.
# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
# LLNL-CODE-64... | EmreAtes/spack | var/spack/repos/builtin/packages/r-jaspar2018/package.py | Python | lgpl-2.1 | 1,670 | [
"Bioconductor"
] | 85521f98e301360e4efd7290ee8fff8956d130601f5b926646067af6b0193120 |
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 4 19:53:51 2014
Phase correlation drift correction.
Used papers Cross-correlation image tracking for drift correction and
adsorbate analysis B. A. Mantooth, Z. J. Donhauser, K. F. Kelly, and P. S. Weiss
for inspiration.
@author: Monika Kauer
"""
import numpy as np
impor... | monikascholz/pWARP | fluowarp.py | Python | gpl-2.0 | 9,385 | [
"NEURON"
] | 7c13f1dbfeb7e4dbecf43e216b46ea61df793557efdf9f2da2f5b08b1a6fce44 |
"""Functions that expose information about templates that might be
interesting for introspection.
"""
import typing as t
from . import nodes
from .compiler import CodeGenerator
from .compiler import Frame
if t.TYPE_CHECKING:
from .environment import Environment
class TrackingCodeGenerator(CodeGenerator):
""... | pallets/jinja | src/jinja2/meta.py | Python | bsd-3-clause | 4,396 | [
"VisIt"
] | 18d3c4be27e649a53708cc656e17813998de676efb1d384e3d44dfd51929a4a4 |
# setuptools installation of GromacsWrapper
# Copyright (c) 2008-2011 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
#
# See the files INSTALL and README for details or visit
# https://github.com/Becksteinlab/GromacsWrapper
from __future__ import with_statement
... | jandom/GromacsWrapper | setup.py | Python | gpl-3.0 | 3,430 | [
"Gromacs",
"VMD",
"VisIt"
] | 1605fc325eb30dbf4adc43b91a177568cbf88a7482d10f2d184dbb16ee33b027 |
from collections import deque
class SimpleDAG(object):
''' A simple implementation of a directed acyclic graph '''
def __init__(self):
self.nodes = []
self.root_nodes = set([])
r'''
Track node_obj->node index
dict where key is a full workflow node object or whatever w... | GoogleCloudPlatform/sap-deployment-automation | third_party/github.com/ansible/awx/awx/main/scheduler/dag_simple.py | Python | apache-2.0 | 7,319 | [
"VisIt"
] | 68ab8bffbd8511470a73217b201e77bdd937a332e43e8ce76c71993eb352b849 |
"""Test check utilities."""
# Authors: MNE Developers
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
import os
import os.path as op
import shutil
import sys
import numpy as np
import pytest
from pathlib import Path
import mne
from mne.datasets import testing
from mne.io.pick im... | cjayb/mne-python | mne/utils/tests/test_check.py | Python | bsd-3-clause | 8,044 | [
"Mayavi"
] | ddac3a791a5acc766f9c1d6e1e47fc745b721efff953e3cb66e1c1e18c743842 |
# pylint: disable=missing-docstring
# pylint: disable=redefined-outer-name
# Disable the "wildcard import" warning so we can bring in all methods from
# course helpers and ui helpers
# pylint: disable=wildcard-import
# Disable the "Unused import %s from wildcard import" warning
# pylint: disable=unused-wildcard-impor... | fintech-circle/edx-platform | common/djangoapps/terrain/steps.py | Python | agpl-3.0 | 7,452 | [
"VisIt"
] | 34e76bf317e2ec56ca1bf3e2844f53e41454b5d6d1f7bb6c0c315390700b64eb |
# - Coding UTF8 -
#
# Networked Decision Making
# Development Sites (source code):
# http://code.google.com/p/global-decision-making-system/
# http://github.com/NewGlobalStrategy/NetDecisionMaking
#
# Demo Sites (Google App Engine)
# http://netdecisionmaking.appspot.com
# http://globaldecisionmaking.appspot.co... | NewGlobalStrategy/NetDecisionMaking | controllers/review.py | Python | mit | 14,815 | [
"VisIt"
] | ae86587cb9f00ad3f9981e88c5e77719b78faea0045b82cca1509cf7667dcff6 |
# USBMtp.py
#
# Contains class definitions to implement a USB keyboard.
import struct
from umap2.core.usb_device import USBDevice
from umap2.core.usb_configuration import USBConfiguration
from umap2.core.usb_interface import USBInterface
from umap2.core.usb_endpoint import USBEndpoint
from umap2.core.usb_vendor import ... | nccgroup/umap2 | umap2/dev/mtp.py | Python | agpl-3.0 | 7,018 | [
"Galaxy"
] | 2150ea84153e5e79b00b7fac4140d3059d515ec37c668d6d28e069add57b5322 |
import logging
import logging.config
import struct
import threading
import signal
import traceback
from ambercommon.common import runtime
import os
from amberdriver.common import drivermsg_pb2
__author__ = 'paoolo'
LEN_SIZE = 2
pwd = os.path.dirname(os.path.abspath(__file__))
logging.config.fileConfig('%s/amber.i... | project-capo/amber-python-drivers | src/amberdriver/common/amber_pipes.py | Python | mit | 6,725 | [
"Amber"
] | 0cf3a523f3cf8262bcbbecdaf00d0db9b6c27ab00ee03f74deaad09bc70a6a3b |
# Copyright (c) 2004 Divmod.
# See LICENSE for details.
from nevow import stan
from nevow.testutil import TestCase
class TestProto(TestCase):
def test_proto(self):
tagName = "hello"
proto = stan.Proto(tagName)
self.assertEquals(tagName, str(proto))
def test_callCreatesTag(self):
... | UstadMobile/exelearning-ustadmobile-work | nevow/test/test_stan.py | Python | gpl-2.0 | 3,491 | [
"VisIt"
] | 7f84b633fa945cae70b6d9faef416b7a633d54ae69a84b9abf7cfd42dd499439 |
#!/usr/bin/python
"""
This script analysis a folder containing bpch files and outputs the results
in a single netCDF file in the folder.
This allows for significantly faster and easier input of data,
and more common anaylsis techniques like pandas without extra
post processing.
"""
import logging
import sys
import gl... | tsherwen/AC_tools | AC_tools/bpch2netCDF.py | Python | mit | 10,563 | [
"NetCDF"
] | 7661a91be3c67e5f47c70337e84bd646716a20e3002195524dae5af4df7d1108 |
#! /usr/bin/env python
import sys, shutil
from numpy import *
from os import path, makedirs
from glob import glob
import subprocess
class color:
"""
define colors in the terminal
"""
purple = '\033[95m'
cyan = '\033[96m'
darkcyan = '\033[36m'
blue = '\033[94m'
green = '\033[92m'
ye... | chunshen1987/iEBE | EBE-Node/superMC/scripts/generate_3d_profiles/generate_smooth_3d_profiles.py | Python | gpl-3.0 | 3,034 | [
"Gaussian"
] | fb1c195b6b3a122bd301db0d06c6295549b2ffe54c714e45027ed24b3a505f3c |
import os
import shutil
import copy
import glob
from GangaCore.testlib.GangaUnitTest import GangaUnitTest
from GangaCore.testlib.file_utils import generate_unique_temp_file
class TestLocalFileClient(GangaUnitTest):
"""test for sjid in filename names explain each test"""
_managed_files = []
# Num of sj ... | ganga-devs/ganga | ganga/GangaCore/test/GPI/FileTests/TestLocalFileClient.py | Python | gpl-3.0 | 4,115 | [
"DIRAC"
] | f01ec363cd6e27c4d3e00583f13b74c093616053b76f30b9dfb8a8b59212893f |
import clientConfig as cConf
import Pyro4
from mmp_tracer_api import objID
from comsol_api import MMPComsolDummy
from mupif import PyroUtil, Property, PropertyID, FieldID, ValueType
import logging
logger = logging.getLogger()
import time as timeTime
start = timeTime.time()
logger.info('Timer started')
# locate names... | ollitapa/MMP-TracerApi | Tests/NetworkTest/networkTest.py | Python | apache-2.0 | 5,712 | [
"VTK"
] | 0a6ce461fd1a414cb75bd96a0c32a241fc8a56385ac59e6b033aa9ecaee19e6c |
'''
Created on Jul 21, 2011
@author: mkiyer
Copyright (C) 2011 Matthew Iyer
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
... | genome-vendor/chimerascan | chimerascan/pipeline/nominate_chimeras.py | Python | gpl-3.0 | 13,513 | [
"pysam"
] | dfee8ad3d5f898da1bbc982cbd8f72d51031ee5716c60c021cb8bde91152aad9 |
##############################################################################
# MDTraj: A Python Library for Loading, Saving, and Manipulating
# Molecular Dynamics Trajectories.
# Copyright 2012-2013 Stanford University and the Authors
#
# Authors: Robert McGibbon
# Contributors:
#
# MDTraj is free software: y... | kyleabeauchamp/mdtraj | mdtraj/tests/test_netcdf.py | Python | lgpl-2.1 | 7,177 | [
"Amber",
"MDTraj",
"NetCDF"
] | ff0138999ef29f92d8f55000d69665c8e265de74389ffb577c966d8929015d26 |
# Orca
#
# Copyright 2005-2009 Sun Microsystems Inc.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This... | pvagner/orca | src/orca/orca_gui_find.py | Python | lgpl-2.1 | 8,319 | [
"ORCA"
] | 809df005b681db0be2faa94aa4da193b802b14c50504781da8d05b2c7d952d4c |
import math
import vtk
def main():
# 3D source sphere
sphereSource = vtk.vtkSphereSource()
sphereSource.SetPhiResolution(30)
sphereSource.SetThetaResolution(30)
sphereSource.SetCenter(40, 40, 0)
sphereSource.SetRadius(20)
# generate circle by cutting the sphere with an implicit plane
... | lorensen/VTKExamples | src/Python/PolyData/PolyDataContourToImageData.py | Python | apache-2.0 | 3,633 | [
"VTK"
] | 8fff20629662a17d7d446aae2c33563a433b4ab3c80efd5e06fd3632c1884ffa |
#!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | MapofLife/MOL | earthengine/google-api-python-client/samples/new_project_template/main.py | Python | bsd-3-clause | 4,625 | [
"VisIt"
] | 50cf840e33627053df9a0542bf271e0c0c56fd3c307d546b1c9460c48943fd1d |
#!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions... | neuroidss/nupic.vision | nupicvision/regions/extra/GaborNode2.py | Python | gpl-3.0 | 141,814 | [
"Gaussian"
] | e567b0f0134b5797138cac16004db1c3c5fd6663ca4c323a2247bad3b03d102d |
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | gautam1858/tensorflow | tensorflow/python/autograph/pyct/transformer.py | Python | apache-2.0 | 17,057 | [
"VisIt"
] | f078f89c00921116d35d084f1ed3761ee0893214eae707484b0308c80b48b8d9 |
#!/usr/bin/env python
########################################################################
# $HeadURL$
# File : dirac-wms-job-delete
# Author : Stuart Paterson
########################################################################
"""
Retrieve parameters associated to the given DIRAC job
"""
__RCSID__ = "$I... | arrabito/DIRAC | Interfaces/scripts/dirac-wms-job-parameters.py | Python | gpl-3.0 | 1,226 | [
"DIRAC"
] | 7fbe3d8c4d4f459873a568706e281d170059da9210916d2e56068dbe06c3557b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
Created on Apr 28, 2012
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.1"
__maintainer__ = "S... | aykol/pymatgen | pymatgen/io/tests/test_babel.py | Python | mit | 2,273 | [
"Pybel",
"pymatgen"
] | e99ae2d5866f847030166e9176d1631dfa8be605e61d89dbb7a3a8d126f4a3f4 |
import ocl
import camvtk
import time
import vtk
import datetime
import math
def drawLoops(myscreen, loops, loopcolor):
nloop = 0
for lop in loops:
n = 0
N = len(lop)
first_point=ocl.Point(-1,-1,5)
previous=ocl.Point(-1,-1,5)
for p in lop:
if n==0: # don't dra... | tectronics/opencamlib | scripts/waterline/waterline_3_onetriangle_adapt.py | Python | gpl-3.0 | 4,077 | [
"VTK"
] | 59fbb581fb3d8093366d1031a7d24c85b50ba3df911deef15963279cd28b0a8c |
import astroid
from astroid.node_classes import NodeNG
import hypothesis.strategies as hs
from hypothesis import assume
from python_ta.transforms.type_inference_visitor import TypeInferer
from keyword import iskeyword
from hypothesis import settings
from typing import Callable, Tuple, List, Union
settings.register_prof... | RyanDJLee/pyta | tests/custom_hypothesis_support.py | Python | gpl-3.0 | 11,987 | [
"VisIt"
] | 715e10ce523ab18e74dac41394b01f73fba5e84c76c61cbe55a9e26eb1c7f797 |
"""
@name: Modules/Families/_test/test_Hue.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2017-2020 by D. Brian Kimmel
@note: Created on Dec 18, 2017
@license: MIT License
@summary:
Passed all tests - DB - 2018-02-13
"""
__updated__ = '2019-12-30'
# Import system type... | DBrianKimmel/PyHouse | Project/src/Modules/House/Family/_test/test_Hue.py | Python | mit | 833 | [
"Brian"
] | 2bfc12586f069cd920e9beb68ec67ef0ebcf369e97d31d5bac68e698909d26c3 |
#! /usr/bin/env python
#
# test_3d_gauss.py
#
# This file is part of NEST.
#
# Copyright (C) 2004 The NEST Initiative
#
# NEST is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, o... | gewaltig/cython-neuron | topology/examples/test_3d_gauss.py | Python | gpl-2.0 | 2,636 | [
"Gaussian"
] | a523a0e94f880543b53c51e18a55cb02b604fd34767c3e927f6d692b4dac5a6e |
# Copyright 2001 by Tarjei Mikkelsen. 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.
"""BioPython Pathway module.
Bio.Pathway is a lightweight class library designed to suppor... | Ambuj-UF/ConCat-1.0 | src/Utils/Bio/Pathway/__init__.py | Python | gpl-2.0 | 10,961 | [
"Biopython"
] | 13f5bf0123bd33c0c2a02e5ac89978809027f2875c6e998cefab3ee30609be2d |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | nuclear-wizard/moose | python/peacock/tests/exodus_tab/test_ExodusPluginManager.py | Python | lgpl-2.1 | 6,394 | [
"MOOSE"
] | a8d619d4f355351fd0c9bddc6d418ff047979776b6f90a7191242deb1b835a0a |
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | strint/tensorflow | tensorflow/contrib/distributions/python/ops/distribution.py | Python | apache-2.0 | 37,586 | [
"Gaussian"
] | 906fce79e06ba3b6c0f6b7433a77393970e1900dc9d23cbcb6cba414c34bebfa |
# coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | google-research/google-research | flare_removal/python/synthesis.py | Python | apache-2.0 | 6,330 | [
"Gaussian"
] | 932b8f0362511cbf7396a9ba80c9a3b29d308cb08d2336047df332b4fd15cdc7 |
# Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | ewiseblatt/spinnaker | dev/validate_bom__deploy.py | Python | apache-2.0 | 62,064 | [
"ORCA"
] | 68fefb7127602b72ebd1627d2f8460247c0b68bd7bc192d433a352af4218db6b |
# This file is part of TxtAlert.
#
# TxtALert is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# TxtAlert is distributed in the ... | praekelt/txtalert | txtalert/apps/therapyedge/tests/importing.py | Python | gpl-3.0 | 15,487 | [
"VisIt"
] | 8a993878177d49948d0107702bcba5adb6dd4f56e9a7f3dde95d8fc08de1e44b |
"""
IO for LAMMPS
"""
| gVallverdu/pymatgen | pymatgen/io/lammps/__init__.py | Python | mit | 22 | [
"LAMMPS"
] | 79ffbaef5951daa8908d4cae729dcfe4b17222d2e34ed46f5f935154ef0ef3b1 |
"""
Fourier Transform
-Find Fourier Transform of images using OpenCV
-utilize FFT functions in Numpy
-FT applications
functions:
cv2.
dft()
idft()
FT used to analyze freq characteristics of filters
for images
2D Discrete Fourier Transform used to find frequency domain
FFT calculates DFT
sinusoidal signal... | SSG-DRD-IOT/commercial-iot-security-system | opencv/tutorials/imageProcessing/transform/fourier.py | Python | mit | 4,853 | [
"Gaussian"
] | 3b5a6dff59e0d3faaf5419c58e626afa95b4ac6f983e074febe99465148f77a8 |
# -*- coding: utf-8 -*-
"""
ORCA Open Remote Control Application
Copyright (C) 2013-2020 Carsten Thielepape
Please contact me by : http://www.orca-remote.org/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... | thica/ORCA-Remote | src/ORCA/ui/RaiseQuestion.py | Python | gpl-3.0 | 5,312 | [
"ORCA"
] | d25aa4ca2da5f19aa715833b6a7c602506bc4e250e9f14f07915d3962466df46 |
"""
Copyright (C) 2018 Roberto Bruttomesso <roberto.bruttomesso@gmail.com>
This file is distributed under the terms of the 3-clause BSD License.
A copy of the license can be found in the root directory or at
https://opensource.org/licenses/BSD-3-Clause.
Author: Roberto Bruttomesso <roberto.bruttomesso@gmail.com>
Da... | formalmethods/intrepyd | intrepyd/iec611312py/stmtprinter.py | Python | bsd-3-clause | 3,378 | [
"VisIt"
] | 1ba272f2df278f74c1b32906c5445e6f0f8ea37e2bd51bac8b9fddfe53b82818 |
from __future__ import division
import numpy as np
import sklearn.pipeline
from mdtraj.testing import eq
from sklearn.externals.joblib import dump as jl_dump
from msmbuilder.decomposition import tICA
from msmbuilder.utils import Subsampler, dump, load
from .test_commands import tempdir
random = np.random.RandomState... | mpharrigan/mixtape | msmbuilder/tests/test_utils.py | Python | lgpl-2.1 | 2,830 | [
"MDTraj"
] | a04f0f6e98424efd16c092a1ff36f9ef4407d6436401d889d59067406d20a44c |
"""Test the dirac-transformation-replication script and helper"""
import unittest
from mock import MagicMock as Mock, patch
from DIRAC import S_OK, S_ERROR
from DIRAC.TransformationSystem.Utilities.ReplicationTransformation import createDataTransformation
from DIRAC.TransformationSystem.Utilities.ReplicationCLIPara... | arrabito/DIRAC | TransformationSystem/test/Test_replicationTransformation.py | Python | gpl-3.0 | 9,922 | [
"DIRAC"
] | 825fd6f035fd21a39d597d53ffa545810cb35aae1173f73b2e69d85b40c7fa27 |
## Meant to use with Daniel Lowe's patent database
# reaction SMILES strings only, used for template extracction
from __future__ import print_function
import argparse
from numpy.random import shuffle # for random selection
from numpy.random import random
import rdkit.Chem as Chem # molecule building
from rdki... | connorcoley/ochem_predict_nn | data/load_lowe_examples_into_db_smilesonly.py | Python | mit | 2,555 | [
"RDKit"
] | 02d55a5278d7e61709c882265c858518b62c12d10cb672fa318beb0d2bc721d7 |
'''
Machine learning on SDSS galaxy data
'''
from sklearn import svm
from sklearn.cross_validation import train_test_split
from sklearn.grid_search import GridSearchCV
from sklearn.metrics import classification_report
import numpy as np
def find_params(model, data, labels, param_grid={}, test_frac=0.6, seed=500):
... | e-koch/Phys-595 | project_code/Machine Learning/learn_solution.py | Python | mit | 1,294 | [
"Galaxy"
] | 657b802ed4e0e8724ac6173ea013e542446a261f293e61d2253144665dc4ba7f |
#!/usr/bin/env ipython
from pylab import *
from numpy import *
from scipy.io.netcdf import netcdf_file
from datetime import datetime, time, timedelta
#------------ shared libraries:
"""
--- antes de modificar cosas, tener en cuenta los bugs en:
'../../shared_lib/COMENTARIOS.txt'
"""
import sys
sys.path.append('../../... | jimsrc/seatos | mcs/src/histos_centrales/src/c_rebineo_test.py | Python | mit | 3,764 | [
"NetCDF"
] | f6f37d455061124d0a282022a1217b835e5428cfa815641426e1109238f79be2 |
#!/usr/bin/python
# __*__ coding: utf8 __*__
#
# This file is a part of Siesta Help Scripts
#
# (c) Andrey Sobolev, 2012
#
oneline = "Find nearest neighbors table"
#import os
import numpy as np
from base_numpy import model_base
try:
from voronoi.model_voronoi import model_voronoi as MV
except (ImportError,):
... | ansobolev/shs | shs/voronoi/numpy/ngbr.py | Python | mit | 5,555 | [
"SIESTA"
] | 0f154af26f1791e2a9e41e311899227155683546819fcf6031c14a42a50cbcac |
import calendar as tcalendar
import re
import binascii
import os
import hashlib
import json
import io
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.backends import default_backend
from calendar import monthrange
from datetime import date, datetime
from math import... | OWASP/django-DefectDojo | dojo/utils.py | Python | bsd-3-clause | 68,009 | [
"VisIt"
] | 72b0008b20914cffbaefa2ff27553c086f1a6bfd3553711f94d8fbf6d24ae098 |
"""
Copyright 2017-2018 Fizyr (https://fizyr.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 by applicable law or agreed to in w... | delftrobotics/keras-retinanet | keras_retinanet/models/retinanet.py | Python | apache-2.0 | 16,776 | [
"Gaussian"
] | 2682d627fcc472f203140a31faf256ce2d6eefa25d334e676bf9ae2f8bcec0c3 |
#!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# This file is part of the NNGT project to generate and analyze
# neuronal networks and their activity.
# Copyright (C) 2015-2019 Tanguy Fardet
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | Silmathoron/NNGT | nngt/simulation/nest_plot.py | Python | gpl-3.0 | 29,385 | [
"Gaussian",
"NEURON"
] | a704c3b171ae1e5506aef099b3b7e9d410a1768926b40dfda432c4fe1ab73d39 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.