text stringlengths 12 1.05M | repo_name stringlengths 5 86 | path stringlengths 4 191 | language stringclasses 1
value | license stringclasses 15
values | size int32 12 1.05M | keyword listlengths 1 23 | text_hash stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
import PythonQt
from PythonQt import QtCore, QtGui
import director.visualization as vis
import director.objectmodel as om
from director.debugVis import DebugData
import director.vtkAll as vtk
from director import callbacks
import numpy as np
from director.affordanceitems import AffordanceItem
class PointPicker(object... | patmarion/director | src/python/director/pointpicker.py | Python | bsd-3-clause | 19,598 | [
"VTK"
] | c09f15494e5d790f716cd5bd56f4539dd6e1d5e6f3201c2f1e928d88f1686932 |
#
# Jasy - Web Tooling Framework
# Copyright 2010-2012 Zynga Inc.
#
"""
**Jasy - Web Tooling Framework**
Jasy is a powerful Python3-based tooling framework.
It makes it easy to manage heavy web projects.
Its main goal is to offer an API which could be used by developers to write their custom build/deployment scripts.... | zynga/jasy | jasy/__init__.py | Python | mit | 1,048 | [
"VisIt"
] | adb4f48460e7d76e561866e89894d6658ec4b26903990e204552f3c22bdf56d9 |
# pylint: disable=missing-docstring, invalid-name
import os
import unittest
import pkg_resources
try:
import netCDF4
except ImportError:
netCDF4 = None
import numpy as np
import obsoper
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__))
ORCA12_FILE = os.path.join(SCRIPT_DIR, "data/ostdemo_orca12.nc")
OR... | met-office-ocean/obsoper | obsoper/test/test_public.py | Python | bsd-3-clause | 7,180 | [
"ORCA"
] | 88ba9d20897fc391a592c6156a025fdd659177a83327d2e3d579f798e5f4a692 |
# (C) British Crown Copyright 2017, Met Office
#
# This file is part of Iris.
#
# Iris 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 3 of the License, or
# (at your option) any later ve... | LukeC92/iris | lib/iris/tests/unit/config/test_NetCDF.py | Python | lgpl-3.0 | 2,143 | [
"NetCDF"
] | b8723fd3963e3e71bac6fff3060dd9922dd2f2ef604edb91334741f80fdfb3ab |
import os
import re
import sys
import string
import struct
import pymol
import math
from xray import space_group_map
if sys.byteorder == "big":
MACH_ARCH_CODE_INT = 1
MACH_ARCH_CODE_FLT = 1
else:
MACH_ARCH_CODE_INT = 4
MACH_ARCH_CODE_FLT = 4
class baseHeader:
"""
A simple base class used to p... | gratefulfrog/lib | python/pymol/headering.py | Python | gpl-2.0 | 15,105 | [
"CRYSTAL",
"PyMOL"
] | 3f4019f36201b04aac57ee1ff606bbe2716db3b1011fb54693a3074f889f58cd |
# -*- coding: utf-8 -*-
from __future__ import print_function
from acq4.util.debug import *
from acq4.devices.Device import *
import time, traceback, sys
from .taskGUI import *
#from numpy import byte
import numpy
#from scipy.signal import resample, bessel, lfilter
import scipy.signal, scipy.ndimage
import acq4.ut... | pbmanis/acq4 | acq4/devices/NiDAQ/nidaq.py | Python | mit | 16,808 | [
"Gaussian"
] | 5c109f4d172ce1d451c984f475b3b66ec2951dde71022d8114d79aa6e9ce51e3 |
#
# @file TestRDFAnnotation.py
# @brief fomula units data unit tests
#
# @author Akiya Jouraku (Python conversion)
# @author Ben Bornstein
#
# ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ======
#
# DO NOT EDIT THIS FILE.
#
# This file was generated automatically by converting the fi... | TheCoSMoCompany/biopredyn | Prototype/src/libsbml-5.10.0/src/bindings/python/test/annotation/TestRDFAnnotation.py | Python | bsd-3-clause | 29,848 | [
"VisIt"
] | a8a58796bf341361a539b5d25289f58c1c9986928bc0d7dfbad80a6ff6b448db |
# Copyright (C) 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 versio... | fweik/espresso | testsuite/python/unittest_decorators.py | Python | gpl-3.0 | 2,466 | [
"ESPResSo"
] | 34d3bee280cd4f59ac9921e7d59868270482d4c2a9a48e1709170a3c2b7383b4 |
# -*- coding: utf-8 -*-
"""
Electrical loads
"""
import numpy as np
from cea.constants import *
from cea.constants import HOURS_IN_YEAR, P_WATER_KGPERM3
from cea.demand import control_heating_cooling_systems, constants
from cea.utilities import physics
__author__ = "Jimeno A. Fonseca, Gabriel Happle"
__copyright_... | architecture-building-systems/CEAforArcGIS | cea/demand/electrical_loads.py | Python | mit | 12,622 | [
"FEFF"
] | f814179817860a3bdb7b186f4689e14009b57119d945606af690e3db3d497ebf |
"""
A linear algebra module implementing the :py:class:`Matrix` class.
Based on:
https://github.com/ozzloy/udacity-cs373/blob/master/unit-2.py
"""
# pylint: disable=W0141,C0103
class Matrix(object):
"""
A matrix class covering all major matrix operations. Currently the
operators +, - and * are supported.... | jepio/JKalFilter | matrix.py | Python | gpl-2.0 | 12,215 | [
"Gaussian"
] | ac3bd8290a818c779c6ec1472b600d63a6e9de32a41498a13430a64d0eaf1f57 |
# Copyright (c) 2014 OpenStack Foundation.
#
# 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 ... | ge0rgi/cinder | cinder/hacking/checks.py | Python | apache-2.0 | 18,653 | [
"VisIt"
] | 15a2d6065dd59453eca7962795428d3954926ba048bd8b4df4b62a8ae880f4cb |
# -*- python -*-
# Package : hpp-corbaserver
# __init__.py Created on: 2019
# Author : Joseph Mirabel
#
# Copyright (C) 2019 LAAS-CNRS
#
# This file is part of hpp-corbaserver.
#
# hpp-corbaserver is free software; you can redistribute it and/or modify it
# under... | humanoid-path-planner/hpp-corbaserver | cmake-modules/omniidl/cxx_impl/__init__.py | Python | lgpl-3.0 | 10,364 | [
"VisIt"
] | c750bf1bba08340904915e3772e3499282d8e4d46f7947b99ec64d342477f19c |
#
# Copyright 2018 Analytics Zoo Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | intel-analytics/analytics-zoo | pyzoo/zoo/orca/learn/tf/utils.py | Python | apache-2.0 | 2,422 | [
"ORCA"
] | 4a1584d9b39d9bc9450d79acf25e3564f4bb171a1a65a82bcbebbe1198b63437 |
#!/usr/bin/env python
#===============================================================================
# Copyright 2017 Geoscience Australia
#
# 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... | alex-ip/geophys_utils | geophys_utils/test/test_netcdf_grid_utils.py | Python | apache-2.0 | 4,893 | [
"NetCDF"
] | 59fdb19698512aec416e4ab902dba0e6732d6a012d159d728bac7afcede2fb79 |
from __future__ import annotations
import dials_algorithms_spot_prediction_ext
from dials_algorithms_spot_prediction_ext import (
IndexGenerator,
NaveStillsReflectionPredictor,
PixelLabeller,
PixelToMillerIndex,
ReekeIndexGenerator,
RotationAngles,
ScanStaticRayPredictor,
ScanVaryingRay... | dials/dials | algorithms/spot_prediction/__init__.py | Python | bsd-3-clause | 4,844 | [
"CRYSTAL"
] | a5a42708be59c320b1396e7d696049cf4260be005bd3a43ea30ce1b35ddafd17 |
#
# @BEGIN LICENSE
#
# Psi4: an open-source quantum chemistry software package
#
# Copyright (c) 2007-2017 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
#... | jH0ward/psi4 | psi4/driver/procrouting/sapt/sapt_mp2_terms.py | Python | lgpl-3.0 | 9,378 | [
"Psi4"
] | 5db57129352ee46038c49d2117b9ed728d73cd5665a03a2c0352991586d159c1 |
""" Container for TaskManager plug-ins, to handle the destination of the tasks
"""
from DIRAC import gLogger
from DIRAC.Core.Utilities.List import fromChar
from DIRAC.Core.Utilities.SiteSEMapping import getSitesForSE
from DIRAC.ConfigurationSystem.Client.Helpers.Resources import getSites
from DIRAC.TransformationSyst... | vmendez/DIRAC | TransformationSystem/Client/TaskManagerPlugin.py | Python | gpl-3.0 | 5,429 | [
"DIRAC"
] | a229140ee481d0b1cba2fb65400de733be546fadf862b519e7ec83d7098b841c |
# A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the
# next level, we have "leetcode.com", and at the lowest level, "discuss.leetcode.com". When we visit a domain like
# "discuss.leetcode.com", we will also visit the parent domains "leetcode.com" and "co... | jigarkb/CTCI | LeetCode/811-E-SubdomainVisitCount.py | Python | mit | 2,546 | [
"VisIt"
] | 1677405effc73e84722ac14af3fe0e934999cfce0f1b2d2ba814f0485804ff99 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2017 Lenovo, Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | t0mk/ansible | lib/ansible/modules/network/lenovo/cnos_interface.py | Python | gpl-3.0 | 27,016 | [
"VisIt"
] | d68b9977b38a76efb153bbc12a9b6716078ce4b10861588b0daa1c26010e0904 |
'''
Created on Jun 21, 2015
@author: oleg
'''
from . import models
from django.utils import timezone
from let_me_app.tasks import send_notification
def filter_event_for_user(queryset, user):
user_groups = user.groups.values_list('id', flat=True)
return (
queryset.filter(target_groups__in=user_groups)... | oleg-chubin/let_me_play | let_me_app/persistence.py | Python | apache-2.0 | 4,396 | [
"VisIt"
] | 797bdadea77436135f4545c2f346cb0231535af4c122360a039e19fa90a7a8b6 |
import pytest
from pysisyphus.benchmarks import Benchmark
from pysisyphus.calculators.PySCF import PySCF
from pysisyphus.helpers import geom_loader
# from pysisyphus.helpers_pure import filter_fixture_store
from pysisyphus.intcoords.augment_bonds import augment_bonds
from pysisyphus.testing import using
from pysisyphu... | eljost/pysisyphus | tests/test_baker_ts/test_baker_ts.py | Python | gpl-3.0 | 3,285 | [
"PySCF"
] | 56a0a06ae4a8d25bb6407384d4c13d94c480b201fd477dab335cce8dbb8a0364 |
#
# Copyright Capita Translation and Interpreting 2013
#
# This file is part of Pipeline Creation Language (PCL).
#
# Pipeline Creation Language (PCL) 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 ve... | ianj-als/pcl | src/pclc/parser/component.py | Python | gpl-3.0 | 3,739 | [
"VisIt"
] | 753bb197e584c374e989a94d991e64315cf73b60c76c3ee761ad5aa631eeaf8e |
"""Transformers for missing value imputation"""
# Authors: Nicolas Tresegnie <nicolas.tresegnie@gmail.com>
# Sergey Feldman <sergeyfeldman@gmail.com>
# License: BSD 3 clause
from __future__ import division
import warnings
from time import time
import numpy as np
import numpy.ma as ma
from scipy import spars... | BiaDarkia/scikit-learn | sklearn/impute.py | Python | bsd-3-clause | 33,961 | [
"Gaussian"
] | 8d749d5fa3b4853ce67899930c4313e68ee916f0e8294dba538a86d34440cb10 |
from __future__ import absolute_import
from __future__ import unicode_literals
import logging
from functools import reduce
from docker.errors import APIError
from .config import ConfigurationError
from .config import get_service_name_from_net
from .const import DEFAULT_TIMEOUT
from .const import LABEL_ONE_OFF
from .... | TheDataShed/compose | compose/project.py | Python | apache-2.0 | 12,503 | [
"VisIt"
] | 9304d29f0e67016f9f4f1eb9c532a3e1f95a16c4b1e0053c53a115d31b5ff2a9 |
import argparse
from collections import namedtuple
import importlib
import imp
import os
import sys
from cffi import FFI
ffi = FFI()
"""High-level interface to bwa (mem) aligner."""
def get_shared_lib(name):
"""Cross-platform resolution of shared-object libraries, working
around vagueries of setuptools.
... | nanoporetech/bwapy | bwapy/libbwa.py | Python | mpl-2.0 | 9,554 | [
"BWA"
] | fdd452b275a519526901012ac5eb7235beb649695411b02f704de7d7323526c7 |
import os
import sys
def main(args):
scampi_res_file = args[1]
octopus_res_file = args[2]
spoctopus_res_file = args[3]
predTopo = ""
# Check if Scampi predicts a nTM protein
with open(scampi_res_file, "rU") as predictedHandle:
for line in predictedHandle:
if line.find(">") ... | ElofssonLab/TOPCONS2 | topcons2_webserver/workflow/check_if_ntm.py | Python | gpl-2.0 | 1,085 | [
"Octopus"
] | 8b0edd5256507f138503b972feebd9686774cf55e37138ba8aba81f706d582f4 |
import sqlite3
from six import string_types
from operator import attrgetter
from cachetools import LRUCache, cachedmethod
from json import dumps
import re
from collections import namedtuple
from os import environ
from dark.database import getDatabaseConnection
TAXONOMY_DATABASE_ENV_VAR = 'DARK_MATTER_TAXONOMY_DATABAS... | terrycojones/dark-matter | dark/taxonomy.py | Python | mit | 23,555 | [
"BLAST"
] | 53c15ca453808c8a050329c09180195a99c6d3c94ad5b45b1613f195ff6e888c |
################################################################################
# #
# Copyright (C) 2010,2011,2012,2013,2014, 2015,2016 The ESPResSo project #
# ... | KonradBreitsprecher/espresso | doc/tutorials/06-active_matter/EXERCISES/rectification_geometry.py | Python | gpl-3.0 | 5,242 | [
"ESPResSo",
"ParaView",
"VTK"
] | 771195a1fcf32534fb1a982330e0ad3d91100fda50b817efd1431567d53f671c |
#!/usr/bin/env python
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# U... | gkc1000/pyscf | pyscf/tools/test/test_molden.py | Python | apache-2.0 | 2,826 | [
"PySCF"
] | 00640990459be9212e3742bd83664a23570c3ba28f15e11f2214492fb38e8eda |
import os
import json
import logging
from datetime import timedelta
from collections import namedtuple, defaultdict
import dill
import flask
import bmemcached
from arrow import Arrow
import dateutil.tz as dateutil_tz
from arrow import get as get_date
from arrow.parser import ParserError
from flask import request, redi... | Mause/parkd | server.py | Python | mit | 5,519 | [
"VisIt"
] | 21a7e0e1cc51838fcb2741157d695eea4c5c8b93b51ea0dbaab4fc9897d2438d |
"""
Student Views
"""
import datetime
import logging
import uuid
import json
import warnings
from collections import defaultdict
from pytz import UTC
from requests import HTTPError
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth import logout, authenticate, login
from django.cont... | adoosii/edx-platform | common/djangoapps/student/views.py | Python | agpl-3.0 | 92,492 | [
"VisIt"
] | c328d96b160ea2ed5a0e050ab87a067c0c5ae873f9489bad334a95018739c9fe |
#
# Copyright (c) 2017 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | yasharmaster/scancode-toolkit | src/scancode/cli_test_utils.py | Python | apache-2.0 | 3,138 | [
"VisIt"
] | 0ac564a37f11412c4d926e12856ac4d5532125ab489fe12db3004fd28dc91576 |
# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import errno
import filecmp
import os.path
import re
import tempfile
import sys
import subprocess
try:
from collections.abc import MutableSet
except ImportError... | enclose-io/compiler | lts/tools/gyp/pylib/gyp/common.py | Python | mit | 21,317 | [
"VisIt"
] | 4c3bfd610b1f59d0d3eaf90f6c0bda203e31e08263292555c9494fd380c99c6b |
#!/usr/bin/python
# vim: ts=4 : sts=4 : sw=4 : et :
import math
import datetime
import StringIO
import re
import xml.etree.ElementTree as ET
class System:
location = None
galaxy = None
def __init__(self):
self.wormholes = []
self.bodies = []
def __str__(self):
ret = str(self.... | pizzasgood/galactiscan | survey.py | Python | gpl-3.0 | 9,399 | [
"Galaxy"
] | a2a3df59f81e51ca901411319bcf31b3f5efdd67523dc57f602dc15f75cb81ec |
import time
from splinter import Browser
def splinter(url,browser):
#login 126 email websize
browser.visit(url)
#wait web element loading
time.sleep(5)
#fill in account and password
browser.find_by_id('idInput').fill('xxxxxx')
browser.find_by_id('pwdInput').fill('xxxxx')
#click the butt... | ericlzyu/yingxiao | get_gg_list_result.py | Python | mit | 1,681 | [
"VisIt"
] | e8d2e185a6764a288d07eaa589fb90c55c2d68056fe2300c8fc24757ac41eded |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This package implements tests for CREST outputs.
"""
| gmatteo/pymatgen | pymatgen/io/xtb/tests/__init__.py | Python | mit | 168 | [
"pymatgen"
] | 776915f9f2c5ece651ce46877e565138f1004587f4a1403c1834bd23b6aee790 |
import requests
import json
def post_query(query_dict, endpoint):
res = requests.post(url="http://0.0.0.0:6400/bench/v1/query_{}".\
format(endpoint), data=json.dumps(query_dict))
return res
def post_file(filename, endpoint):
res = requests.post(u... | joshgabriel/dft-crossfilter | CompleteApp/benchmark-api/test_api.py | Python | mit | 821 | [
"VASP"
] | b617e67ff868e7f92b9c4913e13b1e9149e632413a14cb8b4fb9ca5c7813e8e2 |
#!/usr/bin/env python
"""Universal feed parser
Handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds
Visit http://feedparser.org/ for the latest version
Visit http://feedparser.org/docs/ for the latest documentation
Required: Python 2.1 or later
Recommended: Python 2.3 or later
Recommended: CJKCodecs... | datadreamer/research-chronology-revisited | cgi-bin/pydeliciouslibs/feedparser/feedparser.py | Python | mit | 121,876 | [
"NetCDF",
"VisIt"
] | 482c39f85f29f100b55dcf16e8e99ca1000d4d90345e814d3756386046d376bf |
#
# Working version for Undulator preprocessors in python
#
# this code replaces SHADOW's undul_phot.
#
# It calculates the undulator radiation as a function of energy, theta and phi. Phi is the polar angle.
#
# Inputs: from xshundul.json (written by ShadowVui)
# Output: file uphot.dat, like in shadow
#
#
# TODO:
# ... | srio/shadow3-scripts | undul_phot.py | Python | mit | 8,405 | [
"Gaussian"
] | 2b00756965048db1cdc6c6689d843731fe4b2ab4423de049935e0ee34b289654 |
import opengm
import numpy
shape=[10,10]
unaries=numpy.random.rand(shape[0], shape[1],2)
potts=opengm.PottsFunction([2,2],0.0,0.2)
gm=opengm.grid2d2Order(unaries=unaries,regularizer=potts)
inf=opengm.inference.Icm(gm)
class PyCallback(object):
def __init__(self):
pass
def begin(self,inference):
... | joergkappes/opengm | src/interfaces/python/examples/python_visitor.py | Python | mit | 772 | [
"VisIt"
] | d72641f1d275b9ffe3c3c124e1538f896835a3ab571698d739db9666b89fa835 |
from ase.test import cli, require
from ase.db import connect
from ase.io.jsonio import read_json
from ase.calculators.gaussian import Gaussian
require('gaussian')
cli("""\
ase-build O | ase-run gaussian -d gaussian_cmdline.json &&
ase-build O2 | ase-run gaussian -d gaussian_cmdline.json""")
c = connect('gaussian_cmdli... | suttond/MODOI | ase/test/gaussian/gaussian_cmdline.py | Python | lgpl-3.0 | 732 | [
"ASE",
"Gaussian"
] | e14e569f643ee8228499abe7d668de8d299d2f15b7aca17f0a74932fcda14e76 |
import unittest
import datetime
import httpretty as HP
from bs4 import BeautifulSoup as BS
from urllib.parse import parse_qsl
from malaysiaflights.firefly import FireFly as FF
class FireflyRequestTests(unittest.TestCase):
def url_helper(self, from_, to, date):
host = 'https://m.fireflyz.com.my'
... | azam-a/malaysiaflights | malaysiaflights/tests/test_firefly.py | Python | mit | 3,629 | [
"Firefly"
] | f1b8dfb4b1f245bb29cc57648b54e4ef52927346ea0e29a9b310e0f95cddf921 |
# coding=utf-8
# Copyright 2017 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | waterblue13/tensor2tensor | tensor2tensor/models/aligned.py | Python | apache-2.0 | 14,291 | [
"MOE"
] | 0f9a027848eea09d435ee94c22a8361a20e8dd3eb58969657a6fb1544cda556c |
#!/usr/bin/env python3
import sys
import numpy as np
import argparse
import matplotlib.pyplot as plt
from plotTools import addToPlot, addImagePlotDict
from analysisTools import sensibleIds, groundOffset, discreteWaveletAnalysis
from waveletTools import wtDataset, Morlet
from netcdfTools import read3dDataFromNetCDF
from... | mjsauvinen/P4UL | pyNetCDF/waveletAnalysisNetCdf.py | Python | mit | 8,793 | [
"NetCDF"
] | fcbe46377c1520e8f1e992b0b2c4709043c93d1815a94a0340117a0701c942ff |
from pycbc.types import *
from pycbc.noise.gaussian import *
from pycbc.filter import *
from pycbc.waveform import *
from pycbc.vetoes import *
import pycbc.psd
from numpy.random import normal
sr = 4096.0
dt = 1.0/sr
bl = 256
df = 1.0/bl
N = int(sr * bl)
n = N/2 + 1
psd = pycbc.psd.from_string("aLIGOZeroDetHighPower"... | hagabbar/pycbc_copy | test/bankvetotest.py | Python | gpl-3.0 | 3,677 | [
"Gaussian"
] | f48e76f632d1fd70f78bdcbb494f8d0efc1a122adac9e6de0af916e1d4d24420 |
#! /usr/bin/env python
"""
Module with HCIDataset and HCIFrame classes.
"""
__author__ = 'Carlos Alberto Gomez Gonzalez'
__all__ = ['Dataset',
'Frame']
import numpy as np
import copy
import hciplot as hp
from .fits import open_fits
from .fm import (cube_inject_companions, generate_cube_copies_with_injecti... | vortex-exoplanet/VIP | vip_hci/hci_dataset.py | Python | mit | 55,139 | [
"Gaussian"
] | b58657f3778b0a36bf8081ceeeac61a6df2f5c928233b9ff19f62dd1a258f45d |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module implements more advanced transformations.
"""
__author__ = "Shyue Ping Ong, Stephen Dacek"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Shyue Ping Ong"
__email__ = "shyuep@gmail.com"
__... | yanikou19/pymatgen | pymatgen/transformations/advanced_transformations.py | Python | mit | 23,280 | [
"pymatgen"
] | c76829745c019fc53771cc4705cf8beb628cc27c86a2157bbcef5e5f85b8cb24 |
import sqlite3
con = sqlite3.connect('todo.db')
# con.execute("CREATE TABLE todo (id INTEGER PRIMARY KEY, task char(100) NOT NULL, status bool NOT NULL)")
con.execute("INSERT INTO todo (task,status) VALUES ('Read A-byte-of-python to get a good introduction',1)")
con.execute("INSERT INTO todo (task,status) VALUES ('Vis... | Ernestyj/PyStudy | basic/sqliteTest.py | Python | apache-2.0 | 574 | [
"VisIt"
] | cb1d0b3d949b7d7777254e221d985760169d58b086e4d1548047018ccbef4386 |
#!/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 | tutorials/darcy_thermo_mech/check.py | Python | lgpl-2.1 | 2,243 | [
"MOOSE"
] | 95736da5144283987cb361711e7040853671236ed39448966719a123f5a78a09 |
'''
Created
@author: Andrew Roth
JointSNVMix-0.6.2
joint_snv_mix.pre_processing.bam_to_jcnt.BamToJcntConverter
joint_snv_mix.pre_processing.bam_to_jcnt.JointPileupIterator
================================================================================
Modified on 2013-07-20
@author: Yi Li
'''
import sys
from coll... | uci-cbcl/PyLOH | pyloh/preprocess/io.py | Python | gpl-2.0 | 5,785 | [
"pysam"
] | 41ae0a2a3fd021a2d1830ff4a9fa32e8e9384436a0ede569bb6f918a8052fac4 |
# Copyright (c) 2016, the GPyOpt Authors
# Licensed under the BSD 3-clause license (see LICENSE.txt)
import numpy as np
import GPy
from .base import BOModel
class GPModel(BOModel):
"""
General class for handling a Gaussian Process in GPyOpt.
:param kernel: GPy kernel to use in the GP model.
:param n... | SheffieldML/GPyOpt | GPyOpt/models/gpmodel.py | Python | bsd-3-clause | 14,106 | [
"Gaussian"
] | 3b7ccd472d6f3d99306be61de018b34097f36842c3a6666d48ef75d5ce672e4a |
# coding: utf-8
"""
===================================
Enhanced chroma and chroma variants
===================================
This notebook demonstrates a variety of techniques for enhancing chroma features and
also, introduces chroma variants implemented in librosa.
"""
##########################################... | carlthome/librosa | docs/examples/plot_chroma.py | Python | isc | 7,684 | [
"Brian"
] | 2842bbaa3972e37a9bb182d8ea666bc92ab2e277bd002ceab2fc824ba7c641d0 |
# $Id$
#
# Copyright (C) 2002-2008 greg Landrum and Rational Discovery LLC
#
""" Various bits and pieces for calculating Molecular descriptors
"""
from rdkit import RDConfig
from rdkit.ML.Descriptors import Descriptors
from rdkit.Chem import Descriptors as DescriptorsMod
from rdkit.RDLogger import logger
logger = l... | soerendip42/rdkit | rdkit/ML/Descriptors/MoleculeDescriptors.py | Python | bsd-3-clause | 3,268 | [
"RDKit"
] | 06b652be296ee3716efc6a3817211840401af66b5795fe418a19598627a2fd7d |
import numpy
import os, inspect
from orbkit import read
from orbkit import analytical_integrals as ai
from orbkit import options
from orbkit.test.tools import equal
options.quiet = True
tol = 1e-4
tests_home = os.path.dirname(inspect.getfile(inspect.currentframe()))
output_folder = os.path.join(tests_home, '../outpu... | orbkit/orbkit | orbkit/test/analytical_properties/analytical_integral_norm.py | Python | lgpl-3.0 | 2,002 | [
"Gaussian",
"Molpro",
"TURBOMOLE",
"cclib"
] | 626d936e0198b151cde967edb9c6c2dd6d26f193c70c2b6bfc0a2ec3dd14a6c6 |
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2007 Donald N. Allingham
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
# Copyright (C) 2007-2009 Gary Burton <gary.burton@zen.co.uk>
# Copyright (C) 2007-2009 Stephane Charet... | SNoiraud/gramps | gramps/plugins/webreport/download.py | Python | gpl-2.0 | 8,209 | [
"Brian"
] | 2eabc33fecbc2f1b5b1c2fe8c0592421c3600570f36e129092d4d5991969eb72 |
# graphutil.py ---
#
# Filename: graphutil.py
# Description:
# Author: Subhasis Ray
# Maintainer:
# Created: Sun Mar 18 13:42:28 2012 (+0530)
# Version:
# Last-Updated: Wed Mar 28 18:27:26 2012 (+0530)
# By: subha
# Update #: 103
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
#
#
#... | dilawar/moose-full | moose-core/python/moose/graphutil.py | Python | gpl-2.0 | 5,918 | [
"MOOSE"
] | c6eafe4001c60300df69c846230d1d78c4e7e7bcfcd29ec1e71ddd7b5ab25652 |
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | google/embedding-tests | dp_optimizer/dp_optimizer_sparse.py | Python | apache-2.0 | 9,070 | [
"Gaussian"
] | 60e4e218b5be1189a9eca30f56b7003e75f6ebf528d95b4594cda4d05bd37034 |
#!/usr/bin/env python
# -*- coding: iso-8859-1 -*-
#
# $Id: 855bc891d87aa28cce823a56c76b6f9e89f23e6d $
"""
Exceptions used by *sqlcmd*.
COPYRIGHT AND LICENSE
Copyright © 2008 Brian M. Clapper
This is free software, released under the following BSD-like license:
Redistribution and use in source and binary forms, wi... | ychen820/microblog | y/google-cloud-sdk/platform/google_appengine/lib/sqlcmd/sqlcmd/exception.py | Python | bsd-3-clause | 2,825 | [
"Brian"
] | d9b14a09137c9f73b9bd9e6cb51dd190adf713b148af8c92b01f3f5c628f74b1 |
"""
Acceptance tests for Content Libraries in Studio
"""
from ddt import ddt, data
from nose.plugins.attrib import attr
from flaky import flaky
from common.test.acceptance.tests.studio.base_studio_test import StudioLibraryTest
from common.test.acceptance.fixtures.course import XBlockFixtureDesc
from common.test.accept... | itsjeyd/edx-platform | common/test/acceptance/tests/studio/test_studio_library.py | Python | agpl-3.0 | 27,892 | [
"VisIt"
] | bcf1d2b089b37c8073ff72bfa4122cceb3fd1430594a8e59d792f1d9b566e587 |
"""An agent to ensure consistency for transformation jobs, tasks and files.
Depending on what is the status of a job and its input and output files different actions are performed.
.. warning:: Before fully enabling this agent make sure that your transformation jobs fulfill the assumptions of the
agent. Otherwise ... | DIRACGrid/DIRAC | src/DIRAC/TransformationSystem/Agent/DataRecoveryAgent.py | Python | gpl-3.0 | 27,054 | [
"DIRAC"
] | 1988a142a1dcca1b5289dc53f8733b2889d496bb763406adb941dd8c2e3d0aad |
"""
Bases Classes for the I/O handling
"""
#Author: Miguel Molero <miguel.molero@gmail.com>
from collections import OrderedDict
import copy
import numpy as np
from vtk import vtkPolyData, vtkImageData
from ..utils.vtkhelpers import actor_from_imagedata, actor_from_polydata
from ..io.converters import numpy_from_poly... | mmolero/pcloudpy | pcloudpy/core/io/base.py | Python | bsd-3-clause | 6,101 | [
"VTK"
] | 0fd43a65787ac36dd895d4946505c69d32c707ce0edc4d1031722cd8b07f8c69 |
#
# Copyright (c) 2016 nexB Inc. and others. All rights reserved.
# http://nexb.com and https://github.com/nexB/scancode-toolkit/
# The ScanCode software is licensed under the Apache License version 2.0.
# Data generated with ScanCode require an acknowledgment.
# ScanCode is a trademark of nexB Inc.
#
# You may not use... | michaelrup/scancode-toolkit | src/packagedcode/models.py | Python | apache-2.0 | 33,420 | [
"VisIt"
] | 27d86a381c4867b887af8a1bcfac2f107c4f2d5a8c9617ebe23e57e72d46dedf |
#
# Copyright 2014 James Kermode (Warwick U.)
#
# matscipy - Materials science with Python at the atomic-scale
# https://github.com/libAtoms/matscipy
#
# 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 Founda... | libAtoms/matscipy | scripts/fracture_mechanics/plot_cohesive_stress.py | Python | lgpl-2.1 | 3,398 | [
"ASE",
"Matscipy"
] | dd35f8fec9bd2ffcb1579cd5e05e851b31d179ed0e3b7ed40770d9aa9dcdaa8b |
# 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 | aptamers_mlpd/simulation/pool.py | Python | apache-2.0 | 14,561 | [
"Gaussian"
] | 0fdccf1e194f1c25c32da5ef59970a68c13500d2470891c927c58a8cbd7c1a7c |
import morb
from morb import rbms, stats, updaters, trainers, monitors
import theano
import theano.tensor as T
import numpy as np
import gzip, cPickle
import matplotlib.pyplot as plt
plt.ion()
from utils import generate_data, get_context
# DEBUGGING
from theano import ProfileMode
# mode = theano.ProfileMode(opti... | benanne/morb | examples/example_gaussian_learntprecision.py | Python | gpl-3.0 | 5,501 | [
"Gaussian"
] | 2d18cd243c76dbe53edbc495912e84ef2286f6d0a9e183dab65e67480b842837 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/remotes/lib/remotetab.py | Python | gpl-2.0 | 9,346 | [
"Brian"
] | e80be29ef3f059f83197a6ac6758dbc2e67daed99daf02f9d6cb1cb1807d6203 |
##
# Copyright 2013-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | akesandgren/easybuild-easyblocks | easybuild/easyblocks/o/openbabel.py | Python | gpl-2.0 | 5,415 | [
"Open Babel"
] | 08a2f75dbffba3399f962ecf11d897f0ba2b04dd534e2569e644681372f0e18d |
import string
from charm.toolbox.enum import *
OpType = Enum('OR', 'AND', 'ATTR', 'THRESHOLD', 'CONDITIONAL', 'NONE')
class BinNode:
def __init__(self, value, left=None, right=None):
#types of node
# self.OR = 1
# self.AND = 2
# self.ATTR = 0
self.negated = False
self.index = None
#OF =... | lferr/charm | charm/toolbox/node.py | Python | lgpl-3.0 | 3,296 | [
"VisIt"
] | b62a71c207aeb4f8963ef31312beb75c34f72f274a6f7829d7348a2ce8976c1e |
# 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... | allenlavoie/tensorflow | tensorflow/contrib/data/python/kernel_tests/resample_test.py | Python | apache-2.0 | 4,281 | [
"DIRAC"
] | 58afb1c251d3da33ed96535406c95d459c88b18fd59fe66fbffdc069514c262c |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 fileencoding=utf-8
#
# 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)
#
... | kain88-de/mdanalysis | testsuite/MDAnalysisTests/test_authors.py | Python | gpl-2.0 | 1,413 | [
"MDAnalysis"
] | bd2f5e8a92c87d66e3f0de9ffbb1aeb2a8064f06ab039e579a18cd9872a3dcdc |
# Natural Language Toolkit: Discourse Representation Theory (DRT)
#
# Author: Dan Garrette <dhgarrette@gmail.com>
#
# Copyright (C) 2001-2015 NLTK Project
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
from __future__ import print_function, unicode_literals
import operator
from functools import r... | laiy/Database_Project | third_party/nltk/sem/drt.py | Python | apache-2.0 | 50,337 | [
"VisIt"
] | 989c2f1719698361b7a511d54a178999f726e448fcf662f5e57f599709ad9c06 |
#!/usr/bin/env python
"""
Fit the SED of J1613 using Prospector.
"""
import os, time, argparse, pdb
import numpy as np
import multiprocessing
ang2micron = 1e-4 # Angstrom --> micron
maggies2mJy = 10**(0.4*16.4) # maggies --> mJy
import seaborn as sns
sns.set(style='ticks', font_scale=1.6, palette='Set2')
#import ma... | moustakas/hizea | doc/proposals/hawc_cycle8.py | Python | gpl-2.0 | 21,091 | [
"Galaxy"
] | 8c7eb52a40a5aca49b9b119cdc168dcff2b5bd506ae0c6988e0e15941fb4cff9 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
################################################################################
#
# RMG - Reaction Mechanism Generator
#
# Copyright (c) 2002-2012 Prof. Richard H. West (r.west@neu.edu),
# Prof. William H. Green (whgreen@mit.edu)
# ... | comocheng/RMG-Py | rmgpy/qm/main.py | Python | mit | 7,659 | [
"Gaussian",
"MOPAC"
] | 278d12a4e775b4aa60c2b709709020457bb1a7ddd33f672f50411cec0e2c3401 |
#!/usr/bin/env python
"""
Quick script to generate several summaries for a list of cities
"""
from subprocess import call
import fips
cities = [
(['San Jose'], 'CA'),
(['San Francisco'], 'CA'),
(['Washington'], 'DC'),
(['Seattle'], 'WA'),
(['Salt Lake City'], 'UT'),
(['New York'], 'NY'),
([... | blargony/segrete | mobility/mobility.py | Python | mit | 1,659 | [
"COLUMBUS"
] | 1f181701ccf5892bf277c56fa845eae59a959080bf70edc27a36e564e900becd |
import os
import sys
import json
import time
import inspect
import requests
parent_auth = ()
DEBUG = True
final_rev = 1234
sec_doc = {
"admins" : {
"names" : ["joe", "phil"],
"roles" : ["boss"]
},
"members" : {
"names" : ["dave"],
"roles" : ["producer", "consumer"]
}
}
def doc_rev_num... | chewbranca/test_couch_file_migrations | test_migration.py | Python | apache-2.0 | 6,086 | [
"exciting"
] | 278dc9bdd23d15f87cb602880fdc9abb6683886218a1927b71a0200c7b603ece |
#########################################################################
## multiscaleOneCompt.py ---
## This program is part of 'MOOSE', the
## Messaging Object Oriented Simulation Environment.
## Copyright (C) 2014 Upinder S. Bhalla. and NCBS
## It is made available under the terms of the
## GNU General Pu... | BhallaLab/moose | moose-examples/snippets/multiscaleOneCompt.py | Python | gpl-3.0 | 7,296 | [
"MOOSE",
"NEURON"
] | b693518929764c66db1e8e424289891e4d74ccbe03b99905eb15a0a93425800c |
from pycqed.measurement import measurement_control as mc
import adaptive
from pycqed.instrument_drivers.meta_instrument.LutMans import flux_lutman as flm
from pycqed.instrument_drivers.virtual_instruments import noise_parameters_CZ_new as npCZ
from pycqed.simulations import cz_superoperator_simulation_new_functions a... | DiCarloLab-Delft/PycQED_py3 | pycqed/simulations/ramsey_simulations_new.py | Python | mit | 13,898 | [
"Brian",
"Gaussian"
] | 771611cb866bfcd9655f8d09276ae81f69e45fb455fd4bd07517149e3cc95d71 |
# coding: utf-8
from __future__ import division, unicode_literals
"""
This module provides classes to perform topological analyses of structures.
"""
__author__ = "Shyue Ping Ong, Geoffroy Hautier, Sai Jayaraman"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "1.0"
__maintainer__ = "Shyue Pin... | Dioptas/pymatgen | pymatgen/analysis/structure_analyzer.py | Python | mit | 16,293 | [
"pymatgen"
] | 90c1988df1fb3016c4b6294ca98bad20364dac0462c3b4b33f54177727da01c4 |
################################################################################
# Copyright (C) 2011-2014 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
"""
Module for the Gaussian distribution and similar distribution... | jluttine/bayespy | bayespy/inference/vmp/nodes/gaussian.py | Python | mit | 80,752 | [
"Gaussian"
] | 2f27a46c3d06e33e9e7609b914177cced3fee31a54d08d03cc7bc389d5c85619 |
# Copyright 2017 Ravi Sojitra. 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... | RaviSoji/probabilistic_LDA | tests/test_model/test_model_inference.py | Python | apache-2.0 | 9,742 | [
"Gaussian"
] | 9417230813838cc40a1d1dc4544f1a48721e6d929108a350037bcabdef89068f |
#!/usr/bin/env python
"""
Reduced Gravity Shallow Water Model
based Matlab code by: Francois Primeau UC Irvine 2011
Kelsey Jordahl
kjordahl@enthought.com
Time-stamp: <Sun Apr 15 20:52:48 EDT 2012>
"""
import numpy as np
from numpy import pi, sin, cos, sqrt, exp
from scipy.io.netcdf import netcdf_file
from ocean_model... | kjordahl/swm | storm_model.py | Python | bsd-3-clause | 1,763 | [
"NetCDF"
] | 2fa2437e8b6da2eaf9555987d0e0aca340ff088f8448776bd796dfad8e7de0c3 |
# $Id$
##
## This file is part of pyFormex 0.8.9 (Fri Nov 9 10:49:51 CET 2012)
## pyFormex is a tool for generating, manipulating and transforming 3D
## geometrical models by sequences of mathematical operations.
## Home page: http://pyformex.org
## Project page: http://savannah.nongnu.org/projects/pyformex/
##... | dladd/pyFormex | pyformex/plugins/trisurface.py | Python | gpl-3.0 | 88,306 | [
"Gaussian",
"VTK"
] | 543d50aeacad705f5fe2eedda32daf73197796303b93c79982e39781e45b7b11 |
# -*- coding: utf-8 -*-
from django.http import HttpResponse
from django.shortcuts import render_to_response
import dryscrape
import io
import time
def here(request):
return HttpResponse("I am here")
def welcome(request):
if 'query_name' in request.GET and request.GET['query_name'] != '':
query_name... | Neihcop/scrap | scrap/views.py | Python | gpl-2.0 | 1,306 | [
"VisIt"
] | 0ff26651b161c4bcc350a3af773c7712a99a7139167fd5744524bccee2d90ced |
import simtk.openmm.app as app
import simtk.openmm as mm
from simtk import unit as u
from openmmtools import testsystems
f = lambda x: (x.getPotentialEnergy(), x.getKineticEnergy(), x.getKineticEnergy() + x.getPotentialEnergy())
temperature = 300. * u.kelvin
testsystem = testsystems.LennardJonesFluid(nparticles=2048)... | kyleabeauchamp/HMCNotes | test_mts.py | Python | gpl-2.0 | 1,427 | [
"OpenMM"
] | 33b814c8957d5132c2639b3b8fd1d8ad5cca0c41e0ba8955c8be78cc285eadd1 |
"""
Magnetic inversion on a TreeMesh
================================
In this example, we demonstrate the use of a Magnetic Vector Inverison
on 3D TreeMesh for the inversion of magnetics affected by remanence.
The mesh is auto-generated based
on the position of the observation locations and topography.
We invert the ... | simpeg/simpeg | examples/03-magnetics/plot_inv_mag_MVI_Sparse_TreeMesh.py | Python | mit | 14,331 | [
"Gaussian"
] | 132534edf95550350a832245c12c8ffe32d8a8aa17687a142dbf63b2c4bf5763 |
from __future__ import absolute_import, division, print_function
import ast
import _ast
from jaspyx.ast_util import ast_call, ast_load, ast_store
from jaspyx.context.block import BlockContext
from jaspyx.visitor import BaseVisitor
class TryExcept(BaseVisitor):
def visit_TryExcept(self, node):
if node.orel... | ztane/jaspyx | jaspyx/visitor/tryexcept.py | Python | mit | 2,157 | [
"VisIt"
] | 1090e8f8ddbdb6ee7e152d94b2321ca35da940d01e611fd38c9166846299778d |
# -*- 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, ... | kristoforcarlson/nest-simulator-fork | pynest/examples/vinit_example.py | Python | gpl-2.0 | 2,868 | [
"NEURON"
] | 296172dea14c4af9f77c228c1d9cfe9ce95c7bc1f2831cbb3a116c1b4e5920a4 |
from django.shortcuts import render
from django.contrib.auth import authenticate, logout, login
from django.contrib.auth.models import User
from django.shortcuts import redirect, HttpResponseRedirect
from django.db.models import Q
from django.core import serializers
from django.shortcuts import render_to_response, get_... | G4brym/GetCompany.info | Main/views.py | Python | mit | 23,979 | [
"VisIt"
] | 5b47b83aa5115142d10af31a75c1a944dc74d63a38ef2fa432f3a2c92b4e4f1a |
'''This script demonstrates how to build a variational autoencoder
with Keras and deconvolution layers.
Reference: "Auto-Encoding Variational Bayes" https://arxiv.org/abs/1312.6114
'''
import numpy as np
import matplotlib.pyplot as plt
from scipy.stats import norm
from keras.layers import Input, Dense, Lambda, Flatte... | baojianzhou/DLReadingGroup | keras/examples/variational_autoencoder_deconv.py | Python | apache-2.0 | 7,159 | [
"Gaussian"
] | beeb09a8537922e94e28b2b0611c7908108a0d1985df4daf2c4d7a9c40f5c93e |
""" FileReport module defines the FileReport class, to report file status to the transformation DB
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import copy
from DIRAC import S_OK
from DIRAC.Core.Utilities import DEncode
from DIRAC.TransformationSyste... | yujikato/DIRAC | src/DIRAC/TransformationSystem/Client/FileReport.py | Python | gpl-3.0 | 2,453 | [
"DIRAC"
] | 253e67b12259ddc131b01a95a182f11fefde260535c3e7eeef87b092c5ff1ea9 |
#!/Users/seb/Work/code/ParaView/build/bin/pvpython
import sys, os
from vtk import vtkMetaImageReader, vtkProgrammableFilter, vtkUnsignedCharArray, vtkJPEGWriter, vtkPNGWriter, vtkXMLImageDataReader
# User data
basePath = '/home/scott/Documents/cinemaDemo/simpleCinemaWebGL/nuclear-input/single-pin'
outputDir = '/home/... | Kitware/cinema | scripts/data_generation/nuclear/generateProbeData.py | Python | bsd-3-clause | 3,579 | [
"ParaView",
"VTK"
] | 6dfb73249e9f735a81af8beb2ccff69408c7ad6be23f34f91170af07743f00a0 |
#!/usr/bin/env python2
##################################################
# GNU Radio Python Flow Graph
# Title: Top Block
# Generated: Sun Feb 28 19:47:20 2016
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platform.startswith('linux'):
... | SpinStabilized/stem_station | grc_files/top_block.py | Python | gpl-3.0 | 9,227 | [
"Brian"
] | f0ca9053af9cc4a918ac929d72cff4a7cdcbfcd24d65011160dae6804560f656 |
# This code is licensed under the New BSD License
# 2009, Alexander Artemenko <svetlyak.40wt@gmail.com>
# For other contacts, visit http://aartemenko.com
def _wrap(value):
"""Wraps value in a new AttributedDict or AttributedList."""
if isinstance(value, dict):
return AttributedDict(value)
elif is... | svetlyak40wt/pymongo-bongo | mongobongo/attributed.py | Python | bsd-3-clause | 1,562 | [
"VisIt"
] | 34f9c962a67bf66d32f6e1b772ffba2870fbbfce6df09ee4f36f6405b0449d87 |
# -*- coding: utf-8 -*-
#
# File: Contact.py
#
# Copyright (c) 2008 by []
# Generator: ArchGenXML Version 2.0-beta10
# http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#
__author__ = """unknown <unknown>"""
__docformat__ = 'plaintext'
from AccessControl import ClassSecurityInfo
fro... | uwosh/UWOshMusicRecruiting | content/Contact.py | Python | gpl-2.0 | 4,224 | [
"VisIt"
] | 8a0e330163a642489c3745260485d698a894821588b00c59fb306fe06df0f41b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
from functools import reduce
try:
# New Py>=3.5 import
from math import gcd
except ImportError:
# Deprecated import from Py3.5 onwards.
from fra... | xhqu1981/pymatgen | pymatgen/core/surface.py | Python | mit | 44,320 | [
"pymatgen"
] | 1acdd4e2d35d80e2c8bfc07003472af770622087b66557684e1f8746397dc531 |
''' line profile filters from creating synthetic spectra
Copyright 2009, 2010 Kenneth P. Dere
This software is distributed under the terms of the GNU General Public License
that is found in the LICENSE file
'''
import numpy as np
def gaussianR(wvl,wvl0, factor=1000.):
'''
a gaussian filter where factor is th... | wkerzendorf/chiantipy | chiantipy/chianti/filters.py | Python | gpl-3.0 | 2,643 | [
"Gaussian"
] | b64dcfb6821ec57a1fd2e4c8f9ec9a6bfd2591b4c8833e0b09badb28979c8f3b |
""" TransformationAgent processes transformations found in the transformation database.
"""
import time, Queue, os, datetime, pickle
from DIRAC import S_OK, S_ERROR
from DIRAC.Core.Base.AgentModule import AgentModule
from DIRA... | calancha/DIRAC | TransformationSystem/Agent/TransformationAgent.py | Python | gpl-3.0 | 29,966 | [
"DIRAC"
] | c752f71cfb7af7a1c258439860f1855072dcde4102dd1f540587f6cf9e654ef1 |
# 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_comp_coulomb_den.py | Python | apache-2.0 | 2,386 | [
"PySCF",
"SIESTA"
] | 029532d7f3b720676ac555ebaad55b9f77c3d40d12220829d667264186f0c7e6 |
# pmx Copyright Notice
# ============================
#
# The pmx source code is copyrighted, but you can freely use and
# copy it as long as you don't change or remove any of the copyright
# notices.
#
# ----------------------------------------------------------------------
# pmx is Copyright (C) 2006-2013 by Daniel ... | dseeliger/pmx | pmx/library.py | Python | lgpl-3.0 | 112,097 | [
"CHARMM"
] | 2f00d46a20c305a8886f6d26a6ae84e74fd9308aa4901fd656cd5ea25819cbd2 |
# coding=utf8
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Collection of subprocess wrapper functions.
In theory you shouldn't need anything else in subprocess, or this module failed.
"""
import... | jamethy/battle_room | tools/subprocess2.py | Python | mit | 16,495 | [
"VisIt"
] | b12615573c7fcc3753b58d5e74ffc83e3e1d736d779f615e0bd003ffc7c6cdfa |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.