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/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
thaim/ansible
lib/ansible/modules/network/avi/avi_errorpagebody.py
Python
mit
3,974
[ "VisIt" ]
c51227039f85741a560f0f2b2043e14eb3fb01999ec4b611bd7ecb01d952d43d
"""An example of how to generate a 2D structured points dataset using numpy arrays. Also shown is a way to visualize this data with the mayavi2 application. The script can be run like so:: $ mayavi2 -x structured_points2d.py Alternatively, it can be run as:: $ python structured_points2d.py """ # Author: Prabh...
dmsurti/mayavi
examples/mayavi/advanced_visualization/structured_points2d.py
Python
bsd-3-clause
1,902
[ "Mayavi", "VTK" ]
fc0d349a4035052322a84562eb94cee598be0d8e772d63f24e2912b37b3dfa76
#!/usr/bin/env python3 import sys import os import re import logging import argparse import pysam from ECUtils import * class SanitizeVariants(object): ''' This class contains the main methods for sanitizing potential error corrections based on read depth counts of near perfect read matches ''' ...
lukud/raccoon-
ECsanitize.py
Python
mit
4,527
[ "pysam" ]
b9b60e9f47bc415867aa4b454c884c3b54d81439419313088fc76d6401bae1c4
# -*- coding: utf-8 -*- import os import tempfile import types import json from mock import patch from nose.tools import eq_ from helper import TestCase import appvalidator.constants from appvalidator.errorbundle import ErrorBundle from appvalidator.specs.webapps import WebappSpec import appvalidator.webapp class T...
eviljeff/app-validator
tests/test_webapp.py
Python
bsd-3-clause
48,491
[ "exciting" ]
3e70d601f9bc69e8d08250c552f6529b7a1bd20e599ab6d5b6991b644a6d16d5
# -*- coding: utf-8 -*- ########################################################################## # # # Eddy: a graphical editor for the specification of Graphol ontologies # # Copyright (C) 2015 Daniele Pantaleone <danielepantaleone@me.com> ...
danielepantaleone/eddy
eddy/core/functions/graph.py
Python
gpl-3.0
6,194
[ "VisIt" ]
f4ebaaef138111f992eccdf6d9bddc91e7420dde10a84d97bbf19175d615c98a
from __future__ import unicode_literals import threading import logging from functools import wraps from tests import TestCase as BaseTestCase from werkzeug.serving import make_server from flask import g, session, redirect from catsnap.web import app from nose.tools import nottest from splinter import Browser from spl...
ErinCall/catsnap
tests/web/splinter/__init__.py
Python
mit
1,858
[ "VisIt" ]
d2ecd038efee40c36a0a0f4bff63e63b508fda07223fabde4339e14ecd1fda56
############################################################################## # 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...
dwhswenson/mdtraj
mdtraj/reporters/dcdreporter.py
Python
lgpl-2.1
2,555
[ "Amber", "CHARMM", "MDTraj", "NAMD", "NetCDF", "OpenMM" ]
285387772f2f32c9467121b02428097140a951623bd51801e5a9af2bbe38ddb7
from __future__ import absolute_import import json import logging import sys from django.dispatch import receiver, Signal from django.contrib.auth.models import User from django.conf import settings from django.db.models import signals from django.urls import reverse from django.utils.translation import ugettext as _...
artefactual/archivematica-storage-service
storage_service/locations/signals.py
Python
agpl-3.0
4,682
[ "VisIt" ]
8cc366f49262d76ed8792da87f2080891dba5fad505751d648d980540af5d7ca
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-today OpenERP SA (<http://www.openerp.com>) # # This program is free software: you can redistribute it and/or modify # it under the terms o...
xxshutong/openerp-7.0
openerp/addons/project/project.py
Python
agpl-3.0
74,018
[ "VisIt" ]
b25ca1140fc42860f3ad6208ea283efd45bc22af2c2c6d08bcf174be822f39d5
""" 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_isolation/test_uao_heap_isolation.py
Python
apache-2.0
1,639
[ "ORCA" ]
7ad065eadd29e5fc72ab83f1c67050ba18b5ad329f2779c316f93b3801256bfc
# -*- coding: utf-8 -*- # (c) Nelen & Schuurmans. GPL licensed, see LICENSE.rst. from __future__ import print_function from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division import os import logging import celery from osgeo import gdal from gislib import rast...
nens/threedi-wms
threedi_wms/threedi/tasks.py
Python
gpl-3.0
3,878
[ "NetCDF" ]
9bc733e3f37bbc93dad1aa121d2e55e3594701fa44d051ce3892e4eb9f2734d5
from ddapp import lcmUtils from ddapp import objectmodel as om from ddapp import visualization as vis from ddapp.utime import getUtime from ddapp import transformUtils from ddapp.debugVis import DebugData from ddapp import ioUtils from ddapp import robotstate from ddapp import applogic as app from ddapp import vtkAll a...
gizatt/director
src/python/ddapp/footstepsdriver.py
Python
bsd-3-clause
46,876
[ "VTK" ]
f62b90729c8d4de1d7c85304302dced9cfec64b08056b0de9c93f875329d6f4c
import ast import importlib.abc import sys from . import Importer class AssertionRewritingImporter(Importer): def setup_parser(self, parser): parser.add_argument('--no-assert', action='store_false', dest='rewriting', defau...
benjamin-hodgson/Contexts
src/contexts/plugins/importing/assertion_rewriting.py
Python
mit
12,102
[ "VisIt" ]
726c1966d47000eda20beff472a8c5d3af4965e4084d74a68f0b13e4f27a8249
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program 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 F...
andrebellafronte/stoq
stoqlib/domain/station.py
Python
gpl-2.0
3,857
[ "VisIt" ]
2547ec7072fe424391881f9bfe58b7a38693b09d99644905719efbbb44517a89
#!/usr/bin/env python # -*- coding: utf8 -*- # # ========================== pyDataViewer ========================== # # 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 Lic...
edwardsmith999/pyDataView
pyDataView.py
Python
gpl-3.0
1,554
[ "exciting" ]
60a7eb62c12516fab6d03ed6dcb2e83ccb14ae7ae06901a555a1795114c35f12
""" Schemas for mesoscope scans.""" import datajoint as dj from datajoint.jobs import key_hash import matplotlib.pyplot as plt import numpy as np import scanreader from . import experiment, injection, notify, shared from .utils import galvo_corrections, signal, quality, mask_classification, performance from .exception...
dimitri-yatsenko/pipeline
python/pipeline/meso.py
Python
lgpl-3.0
82,530
[ "Gaussian" ]
efb7b78f748192cd537564d9edba9e005006522dafea87f00f1acb7ea2a5d55a
# Copyright 2016 Intel Corporation # # 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...
TuKo/brainiak
brainiak/utils/fmrisim.py
Python
apache-2.0
74,062
[ "Gaussian" ]
394281290f98d410649b7352b496ef9140d3998eb0fbdd281febfb3d708307fb
import os import logging import time import random import urllib import urllib2 import httplib2 import hashlib import json from datetime import datetime from datetime import timedelta from StringIO import StringIO import webapp2 from webapp2_extras import security from webapp2_extras.auth import InvalidAuthIdError, ...
kordless/wisdom
web/handlers/userhandlers.py
Python
mit
11,039
[ "VisIt" ]
2857e6d4934a0bea57a70e4af0c67eaceea06380233dc1db6f25d6616c394bfb
# Copyright 2004 by Iddo Friedberg. # 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. """Reduced alphabets which lump together several amino-acids into one letter. Reduced (re...
Ambuj-UF/ConCat-1.0
src/Utils/Bio/Alphabet/Reduced.py
Python
gpl-2.0
5,024
[ "Biopython" ]
d6e79f5a02abc7a018be5fbe58f360f6569f266fa81b1de01c1d0922bdd3d745
# -*- coding: utf-8 -*- # # vinit_example.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, ...
hakonsbm/nest-simulator
pynest/examples/vinit_example.py
Python
gpl-2.0
3,200
[ "NEURON" ]
837f05401519c70aa3772917da6ebe6961ee55c122bcddf10169afc65640cc3e
from __future__ import print_function from ..core.constants import Ha2eV from ..core.util import report_runtime from ..core import EpcAnalyzer __all__ = ['compute_cumulant'] @report_runtime def compute_cumulant( # Options temperature = True, renormalization = True, broadening = Fals...
abinit/abinit
scripts/post_processing/ElectronPhononCoupling/ElectronPhononCoupling/interface/compute_cumulant.py
Python
gpl-3.0
8,649
[ "ABINIT" ]
e01f9f7669f974f2a7183503e1a24e50feb93203d5a00050f7a72d96f0fd948b
#!/homes/dthybert/software/Python-2.7.5/python import pysam import scipy.stats import sys import argparse class GenomeSegment: def __init__(self,size, chr,start): self.chr=chr self.start=start self.windowsSmoothing=5 self.lstPos=[0]*size self.lstNbRead=[0]*size self.lstFraction=[0.0]*size self.lstNor...
tk2/assembly-eval
consistent/GetconsistantRegions_new.py
Python
mit
9,046
[ "pysam" ]
191ebb99c54ca7df7b8ae2afed73b7214384cd4badc008c5686449c43b1bdfcb
from twilio.rest import TwilioRestClient def action(): # To find these visit https://www.twilio.com/user/account ACCOUNT_SID = "{{account_sid}}" AUTH_TOKEN = "{{auth_token}}" from_ = "{{from}}" to = "{{to}}" url = "{{url}}" client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN) ca...
obulpathi/cloudcron
templates/action/call.py
Python
apache-2.0
376
[ "VisIt" ]
d3ad7a5259dc4178586f912bbe723342261e66ee630c4ed231c4f0732dcdae4f
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2006-2009 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program 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 Softw...
andrebellafronte/stoq
stoqlib/domain/receiving.py
Python
gpl-2.0
19,830
[ "VisIt" ]
cfc93cd0f10658ca8651f1f95c7769f0752bab9b1aeef5f06fcd6071a6aef4e8
import argparse, os, sys, getpass from random import randint from subprocess import Popen, PIPE from lib.util import Util, OSUtil, DBUtil from config import SETTINGS, TEXT class File(OSUtil): def __init__(s, *args, **kwargs): super(File, s).__init__(*args, **kwargs) file_path = args[0] con...
daviddennis1/auto
auto.py
Python
mit
11,420
[ "VisIt" ]
34189cd047ec5ad4dbc78fe717b77eb80aeaa49acf052a19be172f043e363470
"""This directory is setup with configurations to run the main functional test. It exercises a full analysis pipeline on a smaller subset of data. """ import os import subprocess import unittest import shutil import contextlib import collections import functools from nose import SkipTest from nose.plugins.attrib impo...
lpantano/bcbio-nextgen
tests/test_automated_analysis.py
Python
mit
17,578
[ "Galaxy" ]
e884a9bb54233c239d7243881610bd215eec44412f62581f3efcf1083adec302
import numpy as np from scipy.stats import gaussian_kde, multivariate_normal import scipy.interpolate as interp import matplotlib.pyplot as plt from matplotlib import ticker import mpl_scatter_density from astropy import table as t from importer import * from functools import partial from sklearn.neighbors import K...
zpace/stellarmass_pca
cmlr.py
Python
mit
18,526
[ "Gaussian" ]
f81cd74268a1ab8ebf64d79677aca0eb7ba1cb1bb2e9dd8955a3f6fb8615897d
# Copyright 2000-2003 Jeff Chang. # Copyright 2001-2008 Brad Chapman. # Copyright 2005-2015 by Peter Cock. # Copyright 2006-2009 Michiel de Hoon. # 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 ...
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/Bio/SeqFeature.py
Python
apache-2.0
65,721
[ "BioPerl", "Biopython" ]
60269335a248d494c1cf981686e363f6f9cc293adde98090f5892825158db7de
#!/usr/bin/env python # -*- coding: utf-8 -*- """Utility to retrieve x-ray data from external libraries/databases =================================================================== Available libraries/dbs and order of usage ------------------------------------------ 1. `xraylib <https://github.com/tschoonj/xraylib>...
maurov/xraysloth
sloth/utils/xdata.py
Python
bsd-3-clause
31,445
[ "CRYSTAL" ]
a7bf1e5ada710681b8d461812a8593e0ca3ba8867dce50d772dc77db611f6737
#!/usr/bin/python # # This source file is part of appleseed. # Visit https://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-2018 Francois Beaune, The appleseedhq Organ...
est77/appleseed
scripts/rendermany.py
Python
mit
6,888
[ "VisIt" ]
d91a0e1d94bcd8d6d487bcf73797469c7ef74a91aaff815fb23dbc88e4a9c5cf
"By Konstantin" import multiprocessing as mp import numpy as np import time as tm import subprocess import matplotlib.pyplot as plt import os from pandas import read_csv from dolfin import * import h5py from tissue_dielectrics import DielectricProperties set_log_active(False) #turns off debugging info #Parallel_fi...
andreashorn/lead_dbs
ext_libs/OSS-DBS/OSS_platform/Parallel_field_calc.py
Python
gpl-3.0
13,117
[ "NEURON" ]
4a4cac2a5f311f1bf74978b0a9f4e3fa437f23c67b9e7565010dc216243a7ed2
# ----------------------------------------------------------------------------- # User configuration # ----------------------------------------------------------------------------- dataset_destination_path = '/Users/seb/Desktop/vtk_cone' # ----------------------------------------------------------------------------- ...
Kitware/in-situ-data-viewer
scripts/examples/vtk/samples/cone.py
Python
bsd-3-clause
1,665
[ "VTK" ]
ff8ad650ad36ed070f452d96b70c3ae96e6a127498200ada23b1b80540e477ad
# # Honeybee: A Plugin for Environmental Analysis (GPL) started by Mostapha Sadeghipour Roudsari # # This file is part of Honeybee. # # Copyright (c) 2013-2015, Mostapha Sadeghipour Roudsari <Sadeghipour@gmail.com> # Honeybee is free software; you can redistribute it and/or modify # it under the terms of the GNU Ge...
samuto/Honeybee
src/Honeybee_Annual Daylight Simulation.py
Python
gpl-3.0
5,020
[ "EPW" ]
76df1da2f413191fc7a94026adb1c2fbeddc3ff315f350b4bf5fa02475b7c723
############################################################################### # DoubleExponentialDiskPotential.py: class that implements the double # exponential disk potential # # rho(R,z) = rho_0 e^-R/h_R e^-|z|/h_z ########################...
followthesheep/galpy
galpy/potential_src/DoubleExponentialDiskPotential.py
Python
bsd-3-clause
13,474
[ "Gaussian" ]
652f4d3e155e654995ab3d7259d38254ea257ea23c2d96aa5b80b0fcc52e7f32
#!/usr/bin/python # -*- coding: utf-8 -*- # Author: # Linwood Creekmore # Email: valinvescap@gmail.com ################################## # Standard Library imports ################################## import datetime import numpy as np from dateutil.parser import parse from gdelt.helpers import _testdate ###########...
linwoodc3/gdeltPyR
gdelt/vectorizingFuncs.py
Python
gpl-3.0
6,602
[ "VisIt" ]
31dbfe80cfc0aa00300154fc52e00c0d50ee89692c08f4c724641a5da1ca281e
import codecs import os import sys from distutils.util import convert_path from fnmatch import fnmatchcase from setuptools import setup, find_packages def read(fname): return codecs.open(os.path.join(os.path.dirname(__file__), fname)).read() # Provided as an attribute, so you can append to these instead # of r...
GeoNode/geonode-announcements
setup.py
Python
mit
4,743
[ "Brian" ]
cc03eb12c07aa8b6bbff54b1884d6cbab47b0e4f147e855d05d0cf3c7cfda5ef
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Run the core of the alleleseq pipeline. ============================================================================ FILE: run_pipeline.py DIR: /scratch/users/dacre/alleleseq/newrun AUTHOR: Michael D Dacre, mike.dacre@gmail.com ORGANIZAT...
MikeDacre/mike_tools
bin/run_alleleseq_pipeline.py
Python
unlicense
14,712
[ "Bowtie" ]
6ee0d3692f6bca95b5fc3c65628e923552b77dbb6aee5ae47529278bcdcea33e
# creates: test.txt from __future__ import print_function import sys import numpy as np # Monkey-patch view() to avoid ase-gui windows popping up: import ase.visualize ase.visualize.view = lambda *args, **kwargs: None fd = open('test.txt', 'w') sys.path.append('selfdiffusion') import neb1 e1 = np.ptp([i.get_potenti...
misdoro/python-ase
doc/tutorials/test.py
Python
gpl-2.0
621
[ "ASE" ]
b534049efb22c04ac6946e47228a061ededc998e338a056e48ef2e8b8be8f6f1
#!/usr/bin/env ipython -wthread from enthought.mayavi.mlab import * from neuron3d import * #=============================================================================== # Create a mayavi figure #=============================================================================== fig = mlab.figure(bgcolor = (0.1, 0.1, 0....
tfoutz99/Neuron3D
Examples/5_Nuclei.py
Python
gpl-3.0
817
[ "Mayavi" ]
9bf515ab20876b78cb62cf6ff4ca58e490a46248c5aaa83f1b5ce6b63ed0d9a0
""" Client for interacting with Framework/BundleDelivery service """ import os import tarfile import cStringIO from DIRAC import S_OK, gLogger from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.Core.DISET.TransferClient import TransferClient from DIRAC.Core.Security import Locations, CS, Utilities class Bu...
arrabito/DIRAC
FrameworkSystem/Client/BundleDeliveryClient.py
Python
gpl-3.0
4,778
[ "DIRAC" ]
579d18fd383475850e3c9b1d46f73f5eb9b06c286145ac89d5cae483122bbb7f
from .base import SOLAR, EARTH, WATER, FIRE, AIR, LUNAR, Spell from .. import effects from .. import targetarea from .. import enchantments from .. import animobs from .. import stats from .. import invocations # CIRCLE ONE CURSE = Spell( "Curse", "Decreases the physical attack score of enemies within 6 tiles by ...
jwvhewitt/dmeternal
old_game/spells/lunarspells.py
Python
gpl-2.0
5,900
[ "BLAST" ]
bcc6f56ed76e3da22f12ba11a708540b67559e886900d7d0605a54ff6aafdefd
""" update-github-clone ---- A small Flask application to keep a github clone up to date. If you have a clone of a github repo on some remote server somewhere, you can keep that cloned repo up to date by using this app and github's webhook API. """ from setuptools import setup setup( name='update-github-clone'...
drivet/update-github-clone
setup.py
Python
mit
1,193
[ "Desmond" ]
7adeff0df81d8515ec952f1f9dfffe6970acbf57fe18dc6da222663cdec9d6f0
r""" This example shows how to use the post_process_hook to probe the output data. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) = 0 \;, \quad \forall \ul{v} \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\delta_{il} \delta_{jk}) + \l...
vlukes/sfepy
examples/linear_elasticity/linear_elastic_probes.py
Python
bsd-3-clause
5,151
[ "VTK" ]
d858294dc89db68e28f337bd736abda75f51d32bd65253be3efa1fc3a2650236
# Copyright (c) 2006-2014 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyright (c) 2014-2016 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2015 Aru Sahni <arusahni@gmail.com> # Copyright (c) 2015 Florian Bruhin <...
rogalski/pylint
pylint/utils.py
Python
gpl-2.0
46,055
[ "VisIt" ]
ac5119e405c58590c73b15594f3ec51a00e0033619e5b8e09f5ed3ce72b428cc
########################################################################### # # This program is part of Zenoss Core, an open source monitoring platform. # Copyright (C) 2007, Zenoss Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License versi...
jcurry/ZenPacks.skills1st.UserRoles
ZenPacks/skills1st/UserRoles/backups/Location.py
Python
gpl-2.0
5,834
[ "VisIt" ]
e260b02815dc607b504a9044f43ecf9aa46d016dfddd7905aeef719222c52f91
# -*- coding: latin-1 -*- from PyQt4 import QtCore, QtGui import urllib2 import re import os import xml.dom.minidom #if (os.name == "nt"): # import codecs, win32com.client from conpresencesrv import ConPresenceSrv from ui_vboxup import Ui_VBoxUp class Ui_VBoxMain(QtGui.QWidget): def __init__(self, parent, debug): s...
guigeek208/clickdial
ui_vboxmain.py
Python
gpl-3.0
22,108
[ "VisIt" ]
4e0e0495b989f60015bac0baddaf3a009b61f5ca9ebc7ee51fa89642dad8e418
from aces.materials.POSCAR import structure as Material class structure(Material): def getPOSCAR(self): return """POSCAR file written by OVITO 1.0 4.0949149132 0.0000000000 0.0000000000 -2.0474572182 3.5462999282 0.0000000000 0.0000000000 0.0000000000 ...
vanceeasleaf/aces
aces/materials/InSe.py
Python
gpl-2.0
1,218
[ "ASE", "OVITO" ]
b42757a41ee64c155e508440f01ad2a968d28f8aae4e489253ac73b534191ffa
"""Projects CNN forecasts onto the RAP grid.""" import argparse import numpy from gewittergefahr.gg_io import storm_tracking_io as tracking_io from gewittergefahr.gg_utils import time_conversion from gewittergefahr.gg_utils import target_val_utils from gewittergefahr.gg_utils import gridded_forecasts from gewittergefa...
thunderhoser/GewitterGefahr
gewittergefahr/scripts/make_gridded_cnn_forecasts.py
Python
mit
10,803
[ "Gaussian" ]
da655766bfca929306c3b3df90c100e351e8c509e08c0d430a2c0bf0ca3332c4
#!/usr/bin/env python3 import locale import sys from os import getenv from subprocess import call # Start ignoring PyImportSortBear as imports below may yield syntax errors from coalib import assert_supported_version assert_supported_version() # Stop ignoring import setuptools.command.build_py from coalib.misc impo...
AdeshAtole/coala
setup.py
Python
agpl-3.0
5,189
[ "VisIt" ]
5e677f31b8da13675c916a85125c3aa09ffe7b6748dc4ab41e5f39594cfb1a63
# Copyright 2010 by Dana Larose # This file is part of crashRun. # crashRun 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. ...
DanaL/crashRun
src/DungeonMaster.py
Python
gpl-3.0
107,238
[ "BLAST" ]
5b218cadcf823c90a3d2dd619af1522690e42335b7b37565d3eb67376e226d7d
# -*- coding: utf-8 -*- # Copyright (c) 2015-2022, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 """ Basis Set Representations ############################## This module provides classes that support representations of various basis sets. There are a handful of basis sets in com...
exa-analytics/exatomic
exatomic/core/basis.py
Python
apache-2.0
15,720
[ "Gaussian", "MOLCAS", "NWChem" ]
4a5a4106161f7139caf099076b8afbe79e26a0a213b2c780600f6f5e791fb97a
## INFO ######################################################################## ## ## ## cutils ## ## ====== ...
petervaro/cutils
internal/dynamic_array.py
Python
gpl-3.0
13,895
[ "VisIt" ]
b28c34ce32cc251978ecbe7e4cde09570d87b59ea60f784afa41c3d8587f3790
""" This sample sets up a polymer. """ # # Copyright (C) 2013-2018 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 L...
hmenke/espresso
samples/minimal-polymer.py
Python
gpl-3.0
3,253
[ "ESPResSo" ]
b58af4b64c521c5985e794f84d2a522e7cf3059b9769702e553f14b7093de78d
#!/usr/bin/env python # # Copyright (C) 2014 # Brian Caswell <bmc@lungetech.com> # Narf Industries <info@narfindustries.com> # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without res...
f0rki/cb-multios
disabled-challenges/SBTP/support/machine.py
Python
mit
8,351
[ "Brian" ]
0fe0f3205d222b36185e737a12070a6f95e8fd3c2b8e6464cdfc2fc07298bb62
"""Scan an ADF image an visit all files""" import StringIO from amitools.fs.blkdev.BlkDevFactory import BlkDevFactory from amitools.fs.ADFSVolume import ADFSVolume class ADFSScanner: def __init__(self): self.factory = BlkDevFactory() def can_handle(self, scan_file): base_name = scan_file.get_basename()...
alpine9000/amiga_examples
tools/external/amitools/amitools/scan/ADFSScanner.py
Python
bsd-2-clause
2,113
[ "ADF", "VisIt" ]
2b7ae62b6f6d1a797e95f1ece09fbbef4e489188526c94b4f953787ac09c0cf7
# -*- coding: utf-8 -*- # EDIS - a simple cross-platform IDE for C # # This file is part of Edis # Copyright 2014-2015 - Gabriel Acosta <acostadariogabriel at gmail> # License: GPLv3 (see http://www.gnu.org/licenses/gpl.html) import sys import os from subprocess import Popen, PIPE from PyQt4.QtCore import ( SIGNA...
centaurialpha/edis
src/ui/thread_parse.py
Python
gpl-3.0
2,755
[ "VisIt" ]
a6ea9d6106d3e9161e7fd7d0711bef25d24e14efba3531c7040ef1e6f74ddb12
import os, sys import unittest import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * import logging import csv from slicer.util import VTKObservationMixin import platform import time import urllib import shutil from CommonUtilities import * from packaging import version def _setSectionResizeMode(head...
bpaniagua/SPHARM-PDM
Modules/Scripted/ShapeAnalysisModule/ShapeAnalysisModule.py
Python
apache-2.0
88,012
[ "Gaussian", "VTK" ]
e5b8532382063c0c80f83f9bbe5727fab2b8751f44527640ec62114eea48b630
from openpiv import filters from openpiv.lib import replace_nans import numpy as np def test_gaussian_kernel(): """ test of a _gaussian_kernel """ assert np.allclose( filters._gaussian_kernel(1), np.array( [ [0.04491922, 0.12210311, 0.04491922], [0....
OpenPIV/openpiv-python
openpiv/test/test_filters.py
Python
gpl-3.0
1,917
[ "Gaussian" ]
50db2ef90664efbadf4dc2f427cffd1045c072883536b6dfdfbc9a5e749a725f
# Copyright 2017 Giorgia Fenoglio # # This file is part of NNsTaxonomicResponding. # # NNsTaxonomicResponding 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 opti...
gfbfenoglio/NNsTaxonomicResponding
SOMs/SOM.py
Python
gpl-3.0
11,046
[ "Gaussian", "NEURON" ]
c40465c6b61e8e44794e8ed2f8431453e5d10ea627684aef302e9109168ddf56
# -*- coding: utf-8 -*- # built-ins import os import sys #import argparse import re import json from os.path import split as split_path, join as join_path from fnmatch import filter as fnfilter import logging import json import itertools as it import subprocess import tempfile as tmp # libraries from PIL import Image ...
VCG/gp
raveler/ray/ray/imio.py
Python
mit
23,480
[ "VTK" ]
8577f69ae706a6e99f0fbd9669c8c15c956d48640dc045e682ec2aba0c5d5467
#!/usr/bin/env python # -*- coding: UTF-8 -*- #~~~~~~~GLOBAL IMPORTS~~~~~~~# # Standard library packages import from multiprocessing import Value, Process, Queue, cpu_count from time import time import gzip from os import path # Third party package import from Bio import SeqIO # Local Package import from pyDNA.Utili...
a-slide/pyDNA
FastqFT/FastqFilter.py
Python
gpl-2.0
12,538
[ "Biopython" ]
425aea2214bd5ca4f1a2ec13b07f98112b6b57012cab627bb30056bd0971913f
def build_models(process_only_these_targets=None, process_only_these_templates=None): r'''Uses the build_model method to build homology models for a given set of targets and templates. MPI-enabled. ''' import os import Bio.SeqIO import mpi4py.MPI comm = mpi4py.MPI.COMM_WORLD rank =...
danielparton/MSMSeeder
MSMSeeder/modelling.py
Python
gpl-2.0
13,355
[ "Biopython", "MDTraj" ]
430bb5e71738b49216afb6fe4cf15d72a665fb3118a5e954446cfaaa3ff849f9
#!/usr/bin/env python # -*- coding: utf-8 -*- # Preparing a file for codeml in PAML from a fasta alignment file __authors__ = "Eric Normandeau" __program_name__ = "alignment2paml" __version_info__ = ('0', '0', '2') __version__ = '.'.join(__version_info__) __revision_date__ = "2010-05-20" # Importing modules import...
wkh124/wkh124
alignment2paml.py
Python
gpl-3.0
7,768
[ "Biopython" ]
016187b51995e1a2dd9ed454ce381581a726f83d5a514f75fe25fed80c924c86
#!/usr/bin/env python import argparse, sys from argparse import RawTextHelpFormatter import pysam __author__ = "Author (email@site.com)" __version__ = "$Revision: 0.0.1 $" __date__ = "$Date: 2013-05-09 14:31 $" # -------------------------------------- # define functions def get_args(): parser = argparse.Argumen...
cc2qe/bamkit
bamheadrg.py
Python
mit
3,535
[ "pysam" ]
c7fcda027d3b8125a99f2812adb6c56d57ad26b71365070b1fccfe0e4fbe4dd4
##################################################################### # File: ReqManagerHandler.py ######################################################################## """Implementation of the RequestDB service in the DISET framework .. literalinclude:: ../ConfigTemplate.cfg :start-after: ##BEGIN ReqManager :...
DIRACGrid/DIRAC
src/DIRAC/RequestManagementSystem/Service/ReqManagerHandler.py
Python
gpl-3.0
13,808
[ "DIRAC" ]
a9ec7ac57f954399d2e58447528adb59bf9e6bd464f22e3da883781617b79026
""" Data structure for 1-dimensional cross-sectional and time series data """ from io import StringIO from shutil import get_terminal_size from textwrap import dedent from typing import ( IO, TYPE_CHECKING, Any, Callable, Iterable, List, Optional, Tuple, Type, Union, ) import war...
jreback/pandas
pandas/core/series.py
Python
bsd-3-clause
153,727
[ "Elk" ]
aeb1d06b0b3799cf1202bdf36d4901da032f20c1a22d46c4e20fcd3c27263e4d
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
HuaweiSwitch/ansible
lib/ansible/module_utils/basic.py
Python
gpl-3.0
100,853
[ "VisIt" ]
88e268dd587bf46beeaffb632f7142f3bc1bfe55e69f2c90100afce0a603fa64
""" Authors: Craig Heady (craig.heady@csiro.au) Copyright 2015 CSIRO 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...
taerwin/cwsl-mas
cwsl/vt_modules/vt_cdo_calc_pdf.py
Python
apache-2.0
3,338
[ "NetCDF" ]
a93facac1f9c84fa09ea6e3cece34b93d604fba0a94b6a09425c2a161e8090dc
# Adapted from the NLTK package v3.0.1: # https://github.com/nltk/nltk/blob/3.0.1/nltk/stem/snowball.py # # Natural Language Toolkit: Snowball Stemmer # # Copyright (C) 2001-2014 NLTK Project # Author: Peter Michael Stahl <pemistahl@gmail.com> # Peter Ljunglof <peter.ljunglof@heatherleaf.se> (revisions) # Algo...
summanlp/textrank
summa/preprocessing/snowball.py
Python
mit
166,890
[ "ASE" ]
14bb58f87ffedf1994fb457978e83a74668682145260a567f171fd60624d381f
name="Brian" print "The life of " Include("whoseName.py")
jhjguxin/PyCDC
Karrigell-2.3.5/test/data/include_namespace.py
Python
gpl-3.0
58
[ "Brian" ]
9d984a1589ab8039dae76232648b6d69c9934d50ddf96e0a750808b32d51c567
# -*- 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-2016 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under th...
kain88-de/mdanalysis
package/MDAnalysis/core/__init__.py
Python
gpl-2.0
13,498
[ "Amber", "CHARMM", "Gromacs", "MDAnalysis" ]
1ef017a13d364d9db433fe3e454d09bdf3459cb152bb9669e4c07b7725cddf46
import unittest from simplerepresentations import RepresentationModel import numpy as np from shorttext.utils.transformers import WrappedBERTEncoder # class SimpleRepresentationsSentenceEncoder: # def __init__(self): # self.representation_model = RepresentationModel( # model_type='bert', # ...
stephenhky/PyShortTextCategorization
test/test_bertrepresentations.py
Python
mit
1,705
[ "CRYSTAL" ]
6bb2643995c576e50de32eb07db294dd847a74cec03829ec2f4e5ab09e73f89f
# # AtHomePowerlineServer - networked server for CM11/CM11A/XTB-232 X10 controllers # Copyright (C) 2014 Dave Hocker # # 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, version 3 of the License. ...
dhocker/athomepowerlineserver
helpers/TimeZone.py
Python
gpl-3.0
943
[ "xTB" ]
050f076ad8e4c8d14c954a922e69c7c35f70908ed99c11ece58b025f0e9b223a
""" This script contains Rectfied Linear Unit and Support Vector Machine implementations. """ from random import randint import pdb import math import numpy import warnings warnings.filterwarnings("error") class Neuron: def __init__(self, weights, bias): self.weights = numpy.array(weights) self.b...
ashleyjsands/machine-learning
binary_classification_tutorial/svm.py
Python
mit
4,499
[ "NEURON" ]
6e0d466a2a2ae1b6d7c8bc327d0ada4dd40bbcb06b6e2e0e267530f14054c68b
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django import db from django.core.exceptions import ValidationError from django.test import SimpleTestCase from localflavor.nl import forms, models, validators from .forms import NLPlaceForm from .models import NLPlace class NLLocalFlavorValidato...
infoxchange/django-localflavor
tests/test_nl/tests.py
Python
bsd-3-clause
7,290
[ "BWA" ]
44f83ade46c4dcc71aa7dc85fc5b72d7244dd7154506fabc99db07e0565fad96
#!/usr/bin/env python import re, os, sys, argparse from reportlab.lib import colors from reportlab.lib.pagesizes import A4, landscape from reportlab.platypus import SimpleDocTemplate, Table, TableStyle, Paragraph from reportlab.lib.styles import getSampleStyleSheet def buildTable(args, data): # Change to what ev...
yipenggao/moose
scripts/traceability_matrix.py
Python
lgpl-2.1
7,226
[ "MOOSE" ]
679450792fce1ee7c4b153a1ceb7f9b6e751f0adca025e442e1ad6c0a7f60b96
import sys import logging logger = logging.getLogger('firefly-API') PY3 = sys.version_info[0] == 3 if(PY3): string_types = str else: string_types = basestring from .util import HTTP_VERBS, PAYLOAD_ENCODING from .api import API
digimondo/python-fireflyapi
fireflyapi/__init__.py
Python
mit
238
[ "Firefly" ]
5ad47f6c26a109546ad3b3467e4efb66bf52bec3e77e4dc325f04edc368bb9c2
# This file is part of PyEMMA. # # Copyright (c) 2015, 2014 Computational Molecular Biology Group, Freie Universitaet Berlin (GER) # # PyEMMA 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 versi...
markovmodel/PyEMMA
pyemma/coordinates/data/featurization/angles.py
Python
lgpl-3.0
9,965
[ "MDTraj" ]
9071555177a336896e208411c7ac0200f330d8ce8d3417a171fdb0ae7aaa41a6
import collections.abc as cabc from copy import copy import numpy as np import pandas as pd from cycler import Cycler from matplotlib.axes import Axes from matplotlib.figure import Figure from matplotlib.colors import Normalize from matplotlib import pyplot as pl from matplotlib import rcParams, cm from anndata import ...
theislab/scanpy
scanpy/plotting/_tools/__init__.py
Python
bsd-3-clause
48,427
[ "Gaussian" ]
a272130027709b404c10248f3ced2819c9fdde29e0b4890e1315a4fe66dcb441
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import itertools from pymatgen.core.lattice import Lattice import numpy as np from pymatgen.util.testing import PymatgenTest from pymatgen.core.operations impo...
aykol/pymatgen
pymatgen/core/tests/test_lattice.py
Python
mit
20,063
[ "pymatgen" ]
fa49a902dd6cf12b7b21339228a31981c88bd7dc8cce27e6d650efc9297f0966
# ###################################################################### # Copyright (c) 2014, Brookhaven Science Associates, Brookhaven # # National Laboratory. All rights reserved. # # # # @author: Li Li (lili@bnl.g...
yugangzhang/scikit-beam
skbeam/core/fitting/lineshapes.py
Python
bsd-3-clause
15,123
[ "Gaussian" ]
81a390a1e2366d3f1154e8ac02f23ce67d59774ece160fd6975becf903359f0b
#!/usr/bin/env python # This file is part of MSMBuilder. # # Copyright 2011 Stanford University # # MSMBuilder is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your opt...
mpharrigan/msmbuilder
Tutorial/PlotDihedrals.py
Python
gpl-2.0
2,998
[ "MDTraj" ]
f06a89931003da68421e1bdbc5f22f43adb46c694876509971e1f65267c6e25c
# Orca # # Copyright 2004-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/scripts/apps/Thunderbird/speech_generator.py
Python
lgpl-2.1
1,656
[ "ORCA" ]
5c513d75ceddb7171570cd3e1df612c88d519b49fa7f16688009e939709ff5dc
#!/usr/bin/python # Michael Shavlovsky, 2012 # Luca de Alfaro, 2015 # BSD License. import datetime import json_plus import json import os import numpy as np import unittest class AuthorshipAttribution(json_plus.Serializable): """Usage (see also unit tests at the end): a = TextAttribution.new_text_attribution...
jokerlin/WSE
authorship_attribution.py
Python
mit
30,423
[ "VisIt" ]
9f7254456f65c83a30b53f31ec8c745b290b7f35a12980523ca4af071f41c227
# Copyright (C) 2016 Christopher M. Biwer, Collin Capano # 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. # # This progr...
tjma12/pycbc
pycbc/distributions/gaussian.py
Python
gpl-3.0
9,281
[ "Gaussian" ]
d6fadb717e47efb8bfa702e68717338b552cd6752c1aa7464ff4efaa854cd8cc
import unittest from test import support import sys import random import math # Used for lazy formatting of failure messages class Frm(object): def __init__(self, format, *args): self.format = format self.args = args def __str__(self): return self.format % self.args # SHIFT should ma...
MalloyPower/parsing-python
front-end/testsuite-python-lib/Python-3.1/Lib/test/test_long.py
Python
mit
44,143
[ "Brian" ]
ec036e5947066b3bafacc3c9da04b0d16a2e77517fdd129558f6947f38dcdb4c
#!/usr/bin/env python """ Given a JSON BLAST output file, a FASTA sequence file, and interesting criteria, write a FASTA file (to sys.stdout) of the reads that match the criteria. Run with --help for help. """ from __future__ import print_function import sys import argparse from dark.reads import Reads from dark.f...
bamueh/dark-matter
bin/filter-hits-to-fasta.py
Python
mit
5,837
[ "BLAST" ]
dcec46be734cf577cb6b2ba48db3d68b1820d13da3b8fd62760e7b07e33ac055
from distutils.core import setup from distutils.extension import Extension # from Cython.Distutils import build_ext import numpy as np import os import re import sys import tensorflow as tf tf_include = tf.sysconfig.get_include() # gcc 4 or using already-built binary,then set USE_CXX11_ABI=1 USE_CXX11_ABI = 0 def f...
danmackinlay/AutoGP
setup.py
Python
apache-2.0
2,314
[ "Gaussian" ]
f59602d4298a9b1248e2d3d2abbae0c830314b76a255ac2957c6e62597252525
# -*- coding: utf-8 """Parser for HMMER's various outputs""" import anvio import anvio.utils as utils import anvio.terminal as terminal from anvio.errors import ConfigError from anvio.parsers.base import Parser import numpy as np import pandas as pd __author__ = "Developers of anvi'o (see AUTHORS.txt)" __copyright...
merenlab/anvio
anvio/parsers/hmmscan.py
Python
gpl-3.0
35,794
[ "Biopython" ]
e660ec9c04fe6dbd9a7fc859ae91ee01c014ad9349e3e4da5058f4e0509d8fb7
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Event' db.create_table('core_event', ( ('id', self.gf('django.db.models.fields...
praekelt/txtalert
txtalert/core/migrations/0006_auto__add_event.py
Python
gpl-3.0
13,390
[ "VisIt" ]
bfb50b1cc9924941591545edf8cdce217d28bd3026de3264f349d56e6a933a36
# 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 http://mozilla.org/MPL/2.0/. import sys if sys.version_info[0] < 3: range = xrange class Tree(object): """ A tree is defined as a set of...
yeukhon/algorithm
algorithm/tree/tree.py
Python
mpl-2.0
2,473
[ "VisIt" ]
7b076eca090edc2e0e009b0ddef9abef1c8feb5790ca516cfd48a4fe5ba0a750
class StrictTransportSecurityAnalyzer: def __init__(self): pass def analyze(self, parse_results, headers, content): results = parse_results["Strict-Transport-Security"] parts = [] max_age = results["max-age"] includeSubdomains = results["includeSubDomains"] preload = results["preload"] if results["st...
HoLyVieR/http-security-headers
analyzer/StrictTransportSecurityAnalyzer.py
Python
mit
1,081
[ "VisIt" ]
d1791e7491540ed1d755468a7f8df683d4bc2a96a02e19e583e861be5c910f88
""" provide a generic structure to support window functions, similar to how we have a Groupby object """ from __future__ import division import warnings import numpy as np from collections import defaultdict from datetime import timedelta from pandas.core.dtypes.generic import ( ABCSeries, ABCDataFrame, ...
linebp/pandas
pandas/core/window.py
Python
bsd-3-clause
68,328
[ "Gaussian" ]
6a2757d63acb946ba32636c58643b705d6bf519544924c88ca05c49a49dad5b7
"""Code for the B{0store} command-line interface.""" # Copyright (C) 2009, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function from zeroinstall import _ import sys, os, errno from zeroinstall.zerostore import manifest from zeroinstall.zerostore.manife...
timdiels/0install
zeroinstall/zerostore/cli.py
Python
lgpl-2.1
7,756
[ "VisIt" ]
a87d51b68345029b6268feadd7c5e703b5bd04c1e943155e5061d0beb18f8e4b
""" Check if a directed graph contains a cycle reference: http://codereview.stackexchange.com/questions/86021/check-if-a-directed-graph-contains-a-cycle """ def cyclic(graph): """Return True if the directed graph has a cycle. graph must be represented as a dictionary mapping vertices to iterables of neigh...
kwailamchan/programming-languages
python/algos/algorithms/graphs/circle/circle.py
Python
mit
741
[ "VisIt" ]
5c975c310e45a8550d0ab98c474bdfab9def5f2d3a1de245bd2b647ef8635e28
''' Created on Feb 9, 2015 @author: Max ''' # What's the fastest way to evaluate a function over a grid' import numpy as np import datetime import matplotlib.pyplot as plt def gaussian(x, y, z): return np.exp(-x ** 2 - y ** 2 - z ** 2) # evaluate with empty arrays xaxis = np.linspace(0, 1, 50) yaxis = np.linsp...
MaxParsons/amo-physics
amo/optics/gridtest.py
Python
mit
984
[ "Gaussian" ]
7e6ae253577cd70b16f2121ac5cbef4d40190ee683e2f1ce52c04723f6228e47
# $Id$ # Train a mixture of Gaussians to approximate a multi-mode dataset. # It seems fairly easy to fall into some local minimum. Good solutions # have errors around -200. # This example reproduces Fig. 5.21 from Bishop (2006). __author__ = 'Martin Felder' import pylab as p import numpy as np from pybrain.structure....
affordablewindurbines/jarvisproject
pybrain/examples/supervised/neuralnets-svm/example_mixturedensity.py
Python
gpl-3.0
3,548
[ "Gaussian" ]
dd4f53760af0032139366eeee352c09090a1db9e9b44d94400690bc70e454710
## # Copyright (C) 2012 Jasper Snoek, Hugo Larochelle and Ryan P. Adams # # This code is written for research and educational purposes only to # supplement the paper entitled # "Practical Bayesian Optimization of Machine Learning Algorithms" # by Snoek, Larochelle and Adams # Advances in Neural Information Processing...
claesenm/optunity-benchmark
optimizers/spearmint/spearmint_april2013_mod_src/gp.py
Python
gpl-3.0
10,627
[ "Gaussian" ]
41ca396a1e275225aed10bcd562b3d6eecb23b797d3ab5827ec6797eea8e7bbc
#!/usr/bin/env python import os, numpy as np from pymicro.crystal.microstructure import Microstructure, Grain, Orientation from pymicro.crystal.texture import PoleFigure from matplotlib import pyplot as plt, colors, cm ''' Pole figure of a gold sample containing 6 grains with a strong <111> fiber texture. A Microstruc...
heprom/pymicro
examples/plotting/Au_6grains_pole_figure.py
Python
mit
1,578
[ "CRYSTAL" ]
40d53a05f9d529c9716c58d6c1860acd0aae6573e30656638bdd4e71789f61fb
#!/usr/bin/env python #----------------------------------------------------------------------------- # Copyright (c) 2013, The PyNAST Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #------------------------...
biocore/pynast
pynast/logger.py
Python
bsd-3-clause
1,340
[ "BLAST" ]
ca8c4ae34eec5d25478034faae343fd053a1cebdac29dc64e344912a168472dc