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 |
|---|---|---|---|---|---|---|---|
from collections import defaultdict as ddict
from . import ast
from ..ssa import objtypes
from .. import graph_util
def flattenDict(replace):
for k in list(replace):
while replace[k] in replace:
replace[k] = replace[replace[k]]
# The basic block in our temporary CFG
# instead of code, it mere... | victorbriz/Krakatau | Krakatau/java/cfg.py | Python | gpl-3.0 | 9,014 | [
"VisIt"
] | 82d026830675b6bdea42316d3d4252c3b2f3b506f8d3a2ab9fcc53e936bb92d3 |
#!/usr/bin/env python3
import os
import sys
import logging
import logging.handlers
from uuid import uuid4
import csv
import time
import random
import datetime
from flask import Flask, redirect, url_for, request, render_template,make_response,jsonify,session,Response
from pymongo import MongoClient
from flask.ext.sessi... | tomrijntjes/robopreneur | web/app.py | Python | apache-2.0 | 7,614 | [
"VisIt"
] | 41e38664752e18380c41927d69fdddecb127029d8191b5f2781ea5139294e651 |
#!/usr/bin/env python3
# -*- coding: <encoding name> -*-
"""
--- Day 9: All in a Single Night ---
Every year, Santa manages to deliver all of his presents in a single night.
This year, however, he has some new locations to visit; his elves have provided him the distances between every pair of locations. He can start ... | Hwesta/advent-of-code | aoc2015/day9.py | Python | mit | 2,548 | [
"VisIt"
] | ce7f9c41807a32639270045cd8b9e72b0bafa78a3eb818987be3caa63ddc0885 |
# Copyright (c) 2012, GPy authors (see AUTHORS.txt).
# Licensed under the BSD 3-clause license (see LICENSE.txt)
from __future__ import division
import unittest
import numpy as np
import GPy
class MiscTests(unittest.TestCase):
def setUp(self):
self.N = 20
self.N_new = 50
self.D = 1
... | SheffieldML/GPy | GPy/testing/model_tests.py | Python | bsd-3-clause | 55,349 | [
"Gaussian"
] | f95cbbc5a23c871e3875e1a61aa74c7b53b88b1a290f8d0b790a32947c80cbba |
"""
Perform Levenberg-Marquardt least-squares minimization, based on MINPACK-1.
AUTHORS
The original version of this software, called LMFIT, was written in FORTRAN
as part of the MINPACK-1 package by XXX.
Craig Markwardt converted the FORTRAN code to IDL. The information for the
IDL version is:
... | kadubarbosa/hydra1 | mpfit.py | Python | gpl-2.0 | 78,427 | [
"Gaussian"
] | 47ec71cbf4ed16e831273b8e425c8023eea55adddb4448b2b3c29a1634408ea1 |
from collections import OrderedDict, defaultdict, namedtuple, Counter
from collections.abc import Iterable
from copy import deepcopy
from numbers import Real
from pathlib import Path
import re
import warnings
from xml.etree import ElementTree as ET
import numpy as np
import openmc
import openmc.data
import openmc.che... | smharper/openmc | openmc/material.py | Python | mit | 46,292 | [
"Avogadro"
] | 1ec5e435eaf0a38be7948ebc76888ac9166429b96d29ed7778dfe73079407add |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Objects and helper function used to store the results in a MongoDb database
"""
import collections
import copy
from .utils import as_bool
def mongo_getattr(rec, key):
"""
Get value from dict usin... | dongsenfo/pymatgen | pymatgen/io/abinit/db.py | Python | mit | 4,917 | [
"ABINIT",
"pymatgen"
] | 9c16b31ad1008cab28c783a0e1e2baefe776e86e333077ddcacf1b2019c9b18f |
#!/usr/bin/env python
'''
Showing equivalence between the K-point CCSD and
the gamma-point CCSD for a diamond lattice.
'''
from pyscf.pbc import gto, scf, mpicc
from mpi4py import MPI
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
cell = gto.M(
unit = 'B',
a = [[ 0., 3.37013733, 3.37013733],
... | gkc1000/pyscf | examples/pbc/25-k_points_mpi_ccsd.py | Python | apache-2.0 | 1,455 | [
"PySCF"
] | 676a1cbb409a32574cf707c40716a94ed01e6d89f81adaf4ba300efa13a53586 |
"""More experimental or esoteric DA methods."""
import numpy as np
from dapper.da_methods.ensemble import add_noise, post_process, serial_inds
from dapper.da_methods.particle import reweight
from dapper.stats import center
from dapper.tools.matrices import funm_psd
from dapper.tools.progressbar import progbar
from .... | nansencenter/DAPPER | dapper/da_methods/other.py | Python | mit | 5,030 | [
"Gaussian"
] | 5d67056a446151603907a675abc87b65952da1707104b478cca7fc8b8e90086c |
'''
Author: Bruno Santeramo <bruno.santeramo@ba.infn.it>
Last Update: 26 dec 2013
Tested Versions:
DIRAC v6r9p33
'''
'''
submit a simple job
'''
import DIRAC
from DIRAC.Core.Base import Script
Script.parseCommandLine()
from DIRAC.Interfaces.API.Dirac import Dirac
from DIRAC.Interfaces.API.Job import Job
j = Jo... | SuperDIRAC/TESTDIRAC | sample-script/api/simplest.py | Python | gpl-3.0 | 588 | [
"DIRAC"
] | 037ac82d7867eb30832dbde927586ba4f5951cd0bce51fc745d109e7a391b749 |
# $Id: get_events.py 2016-12-27 $
# Author: Coen Meerbeek <coen@buzzardlabs.com>
# Copyright: BuzzarLabs 2016
"""
This file retrieves events from an Octopus application
"""
import logging, json, requests, time, sys
import ConfigParser
import splunk.Intersplunk as isp
import octopus_common
# Parse octopus.conf for co... | cmeerbeek/splunk-addon-octopus-deploy | TA-OctopusNT-Fwd/bin/get_events.py | Python | mit | 1,966 | [
"Octopus"
] | 269834b6434e98d2feabbf335f8c1c1825bbf5a97f266d5be72c8189e1e2e202 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# freeseer - vga/presentation capture software
#
# Copyright (C) 2013 Free and Open Source Software Learning Centre
# http://fosslc.org
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publi... | Freeseer/freeseer | src/freeseer/plugins/importer/csv_importer.py | Python | gpl-3.0 | 2,668 | [
"VisIt"
] | d6cbc4038c2c0ad67b43681cd9db7532e363844f4571995b49cfbbfaa912b310 |
# coding: utf-8
# In[74]:
import numpy as np
import tensorflow as tf
import logging
logging.basicConfig(format='%(asctime)s %(message)s')
import pylab as plt
import cmocean
from scipy.spatial import cKDTree
from ionotomo.tomography.pipeline import Pipeline
from ionotomo.settings import TFSettings
from timeit import ... | Joshuaalbert/IonoTomo | src/ionotomo/notebooks/deep_smoothing/smoothing.py | Python | apache-2.0 | 36,531 | [
"Gaussian"
] | 895f6d9b5d4bcf7f44f03ff6548e10def9a6ac17011b1d8af6a7f25f5f67740c |
'''@package docstring
@author: Jyh-Miin Lin (Jimmy), Cambridge University
@address: jyhmiinlin@gmail.com
Created on 2013/1/21
================================================================================
This file is part of pynufft.
pynufft is free software: you can redistribute it and/or modify
it u... | jyhmiinlin/cineFSE | CsTransform/pynufft3.py | Python | gpl-3.0 | 57,204 | [
"Mayavi"
] | 974acd3b869761663c68f51f3e09254a83e51aa1c5d9b38ef4b54e60e13411cb |
import gdata.spreadsheets.client
import gdata.gauth
import ConfigParser
import os
Config = ConfigParser.ConfigParser()
cfg_file = open("credentials.ini","w")
print """
------------------------------------------------------------------------------------------------
Welcome! Let's configure connection details to the sp... | rotemtam/google-spreadsheet-python-example | install.py | Python | mit | 2,087 | [
"VisIt"
] | ca3f896a581aa2ce0f2346b1900870f8d2ea602289fe43a45ba9dea3242501f2 |
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# ------------------------------------------------------... | marmyshev/transitions | openlp/plugins/songs/lib/opensongimport.py | Python | gpl-2.0 | 11,184 | [
"Brian"
] | 6ed36c7356a194e623a73bb685b922a4b079fef2e2e69b6d1f7872617a72ed7a |
# coding: utf-8
from __future__ import unicode_literals
import unittest
from pymatgen import Composition
from pymatgen.analysis.reaction_calculator import Reaction, BalancedReaction, \
ReactionError, ComputedReaction
from pymatgen.entries.computed_entries import ComputedEntry
class ReactionTest(unittest.TestCa... | rousseab/pymatgen | pymatgen/analysis/tests/test_reaction_calculator.py | Python | mit | 10,766 | [
"pymatgen"
] | 67f49618c3729d14f04ddbe1b5be0e00bc581cef41e6fec6c9f6943b6475b82e |
import numpy as np
import scipy.stats as st
from keras import backend as K
import matplotlib.pyplot as plt
class Patches(object):
def __init__(self, sz_patch=[128,128,64], stride=None, inFov=True, mode='exclude_border'):
self.sz_patch = sz_patch
self.inFov = inFov
if inFov is True:
... | hoffba/cmi_R2015a | pycode/util/patch.py | Python | gpl-2.0 | 9,708 | [
"Gaussian"
] | 8784668677a81c125d3147d775f3816f688154320e53ebcbaf4be421f06ea1b3 |
#
# ast_symbol_table_visitor.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, or
# (at your... | kperun/nestml | pynestml/visitors/ast_symbol_table_visitor.py | Python | gpl-2.0 | 38,808 | [
"NEURON",
"VisIt"
] | 3967f659b2a5cd68151a0fc194c01879a8a6ead2e92c75489171fce5c6c92dc4 |
# Copyright 2015 Dalton Nikitas
#
# 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 wri... | rhiw/yggdrasil | scripts/python/aws_utils.py | Python | apache-2.0 | 2,552 | [
"Dalton"
] | 54a1b43ce3d084f338d532ee509485b4636d34530074d83c577f4648bb2eb4a5 |
import os
import sys
import glob
from ase.test.tasks.analyse import AnalyseSCFTask as Task
rundefs = {
#
'm103poisson': 'Mixer(0.10, 3)',
#
'm103mp': 'Mixer(0.10, 3)',
'd203mp': 'MixerDif(0.20, 3)',
'dzpd203mp': 'MixerDif(0.20, 3)',
'cgm203mp': 'MixerDif(0.20, 3)',
'cgdzpm203mp': 'Mi... | robwarm/gpaw-symm | gpaw/test/big/scf/analyse.py | Python | gpl-3.0 | 32,214 | [
"ASE"
] | ab6c25f3952e4e9e3bfb130c006c99dc10df4bb19cbbfbf643276c63500f17d7 |
# (c) 2012-2018, Ansible by Red Hat
#
# This file is part of Ansible Galaxy
#
# Ansible Galaxy is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by
# the Apache Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
... | chouseknecht/galaxy | galaxy/main/celerytasks/tasks.py | Python | apache-2.0 | 42,525 | [
"Galaxy"
] | 16d04539b0a7429d926447a1af9653663819383be6beb7e3e5d76203e31f87a9 |
# This file is part of CO𝘕CEPT, the cosmological 𝘕-body code in Python.
# Copyright © 2015–2022 Jeppe Mosgaard Dakin.
#
# CO𝘕CEPT 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 Lice... | jmd-dk/concept | src/mesh.py | Python | gpl-3.0 | 189,259 | [
"VisIt"
] | 6738c82df000e289a8c7308d5998ef9c9b7a74fd6821e9ddd830303180aed0d8 |
#!/usr/bin/env python3
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgp... | harterj/moose | modules/porous_flow/test/tests/thm_rehbinder/thm_rehbinder.py | Python | lgpl-2.1 | 6,239 | [
"MOOSE"
] | 67f3374260d42f4b02120cd0a40e9da0ed44a6eab9ee883822c6a92e4e19cfdb |
from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
import h2o
from tests import pyunit_utils
import random
import copy
from h2o.estimators.glm import H2OGeneralizedLinearEstimator
from h2o.grid.grid_search import H2OGridSearch
def grid_cars_GLM():
cars = h2o.import_file(path=pyunit_u... | michalkurka/h2o-3 | h2o-py/tests/testdir_algos/glm/pyunit_grid_carsGLM.py | Python | apache-2.0 | 4,585 | [
"Gaussian"
] | df5c8934fde5870b69f1d84fbd179e7c62768b0c6a2f3d5fc5be2e171b5e80b6 |
# coding: utf-8
import os
import datetime
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.abinit import events
_test_dir = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..",
'test_files', "abinit")
def ref_file(filename):
return os.path.join(_test_dir, filena... | dongsenfo/pymatgen | pymatgen/io/abinit/tests/test_events.py | Python | mit | 2,934 | [
"ABINIT",
"pymatgen"
] | 02d584b58b4cc5b9e126d67b133614431475db047ad04b722357095749d0def2 |
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from helpdesk.models import Queue, Ticket, TicketCC, FollowUp, Attachment
from django.test import TestCase
from django.core.management import call_command
from django.utils import six
from django.shortcuts import get_object_or_404
from django.contrib.aut... | mrkiwi-nz/django-helpdesk | helpdesk/tests/test_get_email.py | Python | bsd-3-clause | 24,111 | [
"VisIt"
] | 54806f927e27d1af7380a164db3fb562f9a67a3f8e8f3743d69544eaa523a03b |
"""
The Emboss 5.0.0 tools have been eliminated from the distribution and the Emboss datatypes have been removed from
datatypes_conf.xml.sample. You should remove the Emboss datatypes from your version of datatypes_conf.xml. The
repositories named emboss_5 and emboss_datatypes from the main Galaxy tool shed at http:/... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/tool_shed/galaxy_install/migrate/versions/0002_tools.py | Python | gpl-3.0 | 564 | [
"Galaxy"
] | 063f18738869e05c295eec226c79afae1d1ed41ca49154bdd35136b58b2821ae |
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hop... | UltrasoundSam/metaArray | metaArray/metaFunc.py | Python | gpl-2.0 | 10,231 | [
"Gaussian"
] | 5d64b9e16b89ab8089623e69cebd84fbd065e46c20cc2a3a7e9f6113c357e281 |
from sys import exit
from random import randint
class Scene(object):
def enter(self):
pass
class Engine(object):
def __init__(self, scene_map):
self.scene_map = scene_map
def play(self):
"""
object passed to engine class has its
... | udoyen/pythonlearning | ch-43/ex43_classes.py | Python | mit | 9,449 | [
"BLAST"
] | 48c40bf9edc56304eef30c31cdc2fbc5adc1c1f6776128b5cb756dd86aac2726 |
# $Id$
#
# Copyright (C)2003-2006 Rational Discovery LLC
#
# @@ All Rights Reserved @@
# This file is part of the RDKit.
# The contents are covered by the terms of the BSD license
# which is included in the file license.txt, found at the root
# of the RDKit source tree.
#
""" functionality for drawing hierarchi... | bp-kelley/rdkit | rdkit/DataStructs/HierarchyVis.py | Python | bsd-3-clause | 3,876 | [
"RDKit"
] | fa1f709e5cb5159487108bb24876fa86ede0f93ee497b02563d40ecf2402aa6c |
#!/usr/bin/env python
import vtk
from vtk.test import Testing
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# Demonstrate how to extract polygonal cells with an implicit function
# get the interactor ui
# create a sphere source and actor
#
sphere = vtk.vtkSphereSource()
sphere.SetThetaResol... | collects/VTK | Filters/Extraction/Testing/Python/extractPolyData.py | Python | bsd-3-clause | 1,475 | [
"VTK"
] | b22bc44fb254284368278b332178c3fea0627ece1ae66d11188983bd8aad7d1f |
from segmentation import getFootFramesFromReferenceFrame
import math
from ddapp.debugVis import DebugData
def getBoardCorners(params):
axes = [np.array(params[axis]) for axis in ['xaxis', 'yaxis', 'zaxis']]
widths = [np.array(params[axis])/2.0 for axis in ['xwidth', 'ywidth', 'zwidth']]
edges = [axes[i] ... | edowson/director | src/python/ddapp/debristask.py | Python | bsd-3-clause | 5,858 | [
"VTK"
] | 5991b7914a2f03a5fc4e0edf5e3d4f3480f473203ee86bca1a344b51c1fc60b7 |
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
####################################################################################
### Copyright (C) 2015-2019 by ABLIFE
####################################################################################
#########################################################... | ablifedev/ABLIRC | ABLIRC/bin/public/reads_or_peaks_distribution_relative2xxx.py | Python | mit | 12,060 | [
"HTSeq"
] | 4bcfc5b117b4c3052e6dab22cd45cdeb47483546d964e4414a6a2a5e3bf0ff84 |
# Copyright 2008-2009 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock,
# Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern
# University.
#
# This file is part of django-facebookconnect.
#
# django-facebookconnect is free software: you can redistribute it and/or modify
# it under the te... | ryanmark/django-facebookconnect | facebookconnect/urls.py | Python | gpl-3.0 | 1,458 | [
"Brian"
] | 7ffb5a1cacdff6c35b9771cf0b45e00512fab45c85dc8a79ec5bf777aa167c4f |
####################################################################################################
# Copyright 2013 John Crawford
#
# This file is part of PatchCorral.
#
# PatchCorral is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the ... | defcello/Children-of-Eden-Synth-Server | src/data/webpages/rolandfantomxr/PRA.py | Python | gpl-3.0 | 7,924 | [
"CRYSTAL"
] | ebdadd3ae9e51deb478b934e8c29432d4779024cc4abc592a8b5db278aefe975 |
# coding: utf-8
"""
Utility tasks for Fireworks.
"""
import copy
import os
import shutil
import logging
import traceback
import importlib
import json
import yaml
from monty.json import jsanitize
from monty.json import MontyDecoder
from custodian.ansible.interpreter import Modder
from fireworks.core.firework import Fir... | davidwaroquiers/abiflows | abiflows/fireworks/tasks/utility_tasks.py | Python | gpl-2.0 | 28,642 | [
"ABINIT",
"pymatgen"
] | f1f45112299f53e8793a0912cb21ccb0b9301e9a283a035debab32aa92366a99 |
import numpy as NP
"""
A module which implements the continuous wavelet transform
from http://www.phy.uct.ac.za/courses/python/examples/moreexamples.html#wavelet-analysis-continuous-wavelet-transform
---------------------------------------------------------
Code released under the BSD 3-clause licence.
Copyright (c... | kwinkunks/timefreak | pycwt.py | Python | apache-2.0 | 13,939 | [
"Gaussian"
] | 6ad9ecc78e75d8fa7190645a6cee6e2bb74c36f2a2f6846c90f803133c6a4a47 |
#!/usr/bin/env python
import sys,time,argparse
import numpy as np
import scipy.stats as sp
def main(args):
sys.stdout.write("Start analysis: " + time.strftime("%a,%d %b %Y %H:%M:%S") + "\n")
sys.stdout.flush()
generate_expr_matrix(args.input,args.nb_n,args.nb_p,args.tn_lower,args.tn_upper,args.tn_mu,args.tn_sigma,a... | yunhaowang/IsoSeqSim | utilities/py_isoseqsim_generate_expr_matrix_ase.py | Python | apache-2.0 | 2,844 | [
"ASE"
] | c7b913e2063982dedc2166a16b299bd7d25cbe1801712d871a37a88dd4dc6f03 |
import numpy as np
import pylab as pl
import networkx as nx
from scipy.spatial.distance import pdist
import sys, types, time, warnings
from sklearn.decomposition import IncrementalPCA, FastICA, NMF
sklNMF = NMF
from skimage.measure import perimeter
import multiprocessing as mup
from scipy.ndimage.filters import gaussia... | bensondaled/pyfluo | pyfluo/segmentation.py | Python | bsd-2-clause | 15,890 | [
"Gaussian"
] | 1084923f14fa49f0c5361f2114b31b7589bf53e92e9d036e7f99f684d4bf9558 |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
# Author: Yongkyu Kim, PhD
Max Planck Institute for terrestrial microbiology
#
# Date: 2014-04-02
# Version: 1.0
#
# Try 'taxa_assignment.py -h' for more information and See manual
#
# Purpose:
# Bugs: Please report to https://github.com/outbig/DAFG... | outbig/DAFGA | v1.0/dafga_taxonomy.py | Python | gpl-3.0 | 9,120 | [
"BLAST"
] | cf90c5fa9fb7db58c86908b6a97dfd6805aef4ba24922728e44307079e031618 |
# -*- coding: utf-8 -*-
"""Fake data generator.
To use:
1. Install fake-factory.
pip install fake-factory
2. Create your OSF user account
3. Run the script, passing in your username (email).
::
python -m scripts.create_fakes --user fred@cos.io
This will create 3 fake public projects, each with 3 fake con... | RomanZWang/osf.io | scripts/create_fakes.py | Python | apache-2.0 | 18,490 | [
"Galaxy"
] | ae9b04b29a3b4e95ab0e1e7b391b24defd2c3306fac36a4c9fe99f0467529a0d |
'''
Created on Sep 11, 2014
@author: David Zwicker <dzwicker@seas.harvard.edu>
'''
from __future__ import division
import itertools
import re
import numpy as np
from scipy.ndimage import filters
from utils.data_structures.nested_dict import LazyHDFValue
from utils.math import contiguous_true_regions
class Mouse... | david-zwicker/cv-mouse-burrows | mouse_burrows/algorithm/objects/mouse.py | Python | bsd-3-clause | 12,306 | [
"Gaussian"
] | 5eadfa5b0adfcf2203235ad271535f6df21c1b3a1e4a47ffc8c2d7897e6ffcce |
from rdkit import Chem
from mordred import Calculator, descriptors
# Start Code 7
calc = Calculator(descriptors)
result = calc(Chem.MolFromSmiles("c1ccccc1"))
result_dict = result.drop_missing().asdict()
print(len(result_dict))
print(result_dict["SLogP"])
| mordred-descriptor/mordred | examples/article/Code7.py | Python | bsd-3-clause | 258 | [
"RDKit"
] | 93029b52db9112dbb3f2988c520038ca064a66c438037b98f12f7f6454ae6377 |
#
# Copyright 2016 The BigDL 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 in ... | intel-analytics/BigDL | python/chronos/src/bigdl/chronos/forecaster/seq2seq_forecaster.py | Python | apache-2.0 | 6,004 | [
"NEURON",
"ORCA"
] | dd584401c7cde01ead9d1cfa3f549fc4706c0a7991ff8c46af869587aed4f043 |
from common import Modules, data_strings, load_yara_rules, PEParseModule, ModuleMetadata, is_ip_or_domain
class pony(PEParseModule):
def __init__(self):
md = ModuleMetadata(
module_name="pony",
bot_name="Pony",
description="",
authors=["Brian Wallace (@botne... | bwall/bamfdetect | BAMF_Detect/modules/pony.py | Python | mit | 1,549 | [
"Brian"
] | 90d48d8987e17691716438232400da16c41e050d63c7dc96753ed3a43cb56db9 |
"""
Methods to interconvert between json and other (cif, mol, smi, etc.) files
"""
import os
import sys
import numpy as np
from numpy.linalg import norm
import pybel
ob = pybel.ob
import json_formatter as json
ROOT = os.path.normpath(os.path.dirname(__file__))
IS_PY3 = sys.version > "3"
TABLE = ob.O... | getarun/blender-chemicals | format_converter/format_converter.py | Python | mit | 3,718 | [
"Open Babel",
"Pybel"
] | f0d35d4952fd015c45f5b25eb8e04bb6f1fd11f88c005e4ec985f2952991e152 |
#!/usr/bin/env python
#
# Copyright 2008,2009,2011,2012 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# GNU Radio 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, or (at ... | osmocom/gr-osmosdr | apps/osmocom_siggen_base.py | Python | gpl-3.0 | 22,293 | [
"Gaussian"
] | 729f6338a692a71dbb9feef1160ce05a44c022f01770fb0eba9c12d8f1dddc63 |
# -*- coding: UTF-8 -*-
#
# Copyright © 2003 - 2018 Michal Čihař <michal@cihar.com>
#
# This file is part of Wammu <https://wammu.eu/>
#
# 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 ve... | gammu/wammu | Wammu/Main.py | Python | gpl-3.0 | 96,308 | [
"VisIt"
] | 72169826b28430a986d833124cad4f5c5e7662e9fab4fa511d1f96add27aed7a |
from __future__ import unicode_literals
from __future__ import absolute_import
from functools import reduce
import logging
from docker.errors import APIError
from .config import get_service_name_from_net, ConfigurationError
from .const import DEFAULT_TIMEOUT, LABEL_PROJECT, LABEL_SERVICE, LABEL_ONE_OFF
from .containe... | bfirsh/fig | compose/project.py | Python | apache-2.0 | 11,943 | [
"VisIt"
] | 1f56a13125363ee8ec96a27e688aeb03dd98070d0aa356ac344f368282e9d308 |
# -*- coding: utf-8 -*-
#import models.sxrd_test5_sym_new_test_new66_2_3 as model
from models.utils import UserVars
import numpy as np
from operator import mul
from numpy.linalg import inv
from geometry_modules import *
"""
functions in the class
#######################tridentate mode#####################
adding_pb_sh... | jackey-qiu/genx_pc_qiu | models/domain_creator_sorbate.py | Python | gpl-3.0 | 132,306 | [
"CRYSTAL"
] | e8725e6e773a789ff986f862455436581766c4d8d17b29e58cdedb1f8bdcef10 |
"""This module provides the NetlistMixin class. This is used for
Netlist and SubNetlist.
Copyright 2020--2022 Michael Hayes, UCECE
"""
from .expr import expr
from .mnacpts import Cpt
from .impedance import impedance
from .admittance import admittance
from .equipotentialnodes import EquipotentialNodes
from .node imp... | mph-/lcapy | lcapy/netlistmixin.py | Python | lgpl-2.1 | 82,020 | [
"DIRAC"
] | b880af82a20575c00528f38fbc105f8f5e9721edd8b1f78a10f00099f3bb7ed3 |
"""Deals with boundary of continental United States (CONUS)."""
import os.path
import shapefile
import numpy
import netCDF4
import shapely.geometry
from shapely.ops import cascaded_union
from gewittergefahr.gg_utils import longitude_conversion as lng_conversion
from gewittergefahr.gg_utils import polygons
from gewitte... | thunderhoser/GewitterGefahr | gewittergefahr/gg_utils/conus_boundary.py | Python | mit | 13,602 | [
"NetCDF"
] | def8d767ce5da27c8ca9de26ac6d7df0c72916b640ae4dd5a73148f00a2f5907 |
#!/usr/bin/env python
from setuptools import setup, Command
import versioneer
commands = versioneer.get_cmdclass().copy()
class Trial(Command):
description = "run trial"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
... | warner/foolscap | setup.py | Python | mit | 3,085 | [
"Brian"
] | b4abd5131c08e9047381ac4d1d7ac0c6142f79d1f7af825afcd2de7020149195 |
import requests
import psutil
import time
import wx
import webbrowser
import os.path
# Put your own xyz url here in between the single quotes
# Leave the r there.
YOUR_XYZ_URL = 'THEREISNOURL'
SETTINGS_FILE_NAME = 'poeonline.settings'
TRAY_TOOLTIP = 'PoE Online'
TRAY_ICON_ONLINE = 'icon-online.png'
TRAY_ICON_OFFLINE =... | nejadb/PoE-Online | poe_online.py | Python | mit | 4,021 | [
"VisIt"
] | 02c572fc96041f62904b85bf6c33a63478d2f4f56e5dc17a9386e8e9660451cb |
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Newick format parser module.
Manipulates trees in the Newick format. This format is mainly used to
describe phylogenetic binary trees but can have a much wider use. Some
details on the format can be found here:
http://evolution.genetics.washington.edu/phylip/newicktree.ht... | flass/tree2 | Node.py | Python | gpl-3.0 | 137,164 | [
"Biopython"
] | cb33ec185f0fd9b63433895db66999709b77d07497a55dd6a7f99e1ec5d144aa |
# sybase/base.py
# Copyright (C) 2010-2011 the SQLAlchemy authors and contributors <see AUTHORS file>
# get_select_precolumns(), limit_clause() implementation
# copyright (C) 2007 Fisch Asset Management
# AG http://www.fam.ch, with coding by Alexander Houben
# alexander.houben@thor-solutions.ch
#
# This module is par... | darren-rogan/CouchPotatoServer | libs/sqlalchemy/dialects/sybase/base.py | Python | gpl-3.0 | 15,159 | [
"ASE"
] | 75a2bfe18e129b5113bd531f71ee7907feaffaa53c85922b8b2905e5642ce791 |
import numpy as np
class AdaptiveFloat(object):
def __init__(self, n_inputs, n_outputs, n_neurons,
seed=None, learning_rate=1e-3):
self.rng = np.random.RandomState(seed=seed)
self.compute_encoders(n_inputs, n_neurons)
self.initialize_decoders(n_neurons, n_outputs)
s... | tcstewar/minimal_adaptive_controller | adapt_float.py | Python | gpl-3.0 | 1,965 | [
"NEURON"
] | 7f7a4d1e45d14a035c20a49eb0f441ee61da90e57b6d9b35d6529f6e8466178d |
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
#
# 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 Licens... | tsdmgz/ansible | lib/ansible/modules/network/cnos/cnos_conditional_command.py | Python | gpl-3.0 | 7,325 | [
"VisIt"
] | eec6c09f99769ac138db485dcc469c47f00179fb99ff00a14a94a08a52f24d62 |
# -*- coding: utf-8
"""LinkMer reporting classes.
The default client is `anvi-report-linkmers`"""
import os
import sys
import pysam
import hashlib
import anvio
import anvio.tables as t
import anvio.utils as utils
import anvio.dbops as dbops
import anvio.terminal as terminal
import anvio.filesnpaths as filesnpaths... | caglar10ur/anvio | anvio/bamops.py | Python | gpl-3.0 | 13,351 | [
"pysam"
] | e33a9ffcfe65c0b40cc58c2e64cb1dbb242c48341208eb36fd874bbf7927a51b |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2006-2007 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... | tiagocardosos/stoq | stoqlib/gui/search/stationsearch.py | Python | gpl-2.0 | 2,121 | [
"VisIt"
] | f63e89a834a2ddde8393322cfd6fe02cb18b911852bda7f2709f586353dd3ed5 |
from collections import defaultdict
from random import randrange, uniform
import pytest
from diofant import (E1, RR, Abs, Add, And, Chi, Ci, Ei, Heaviside, I, Integer,
Integral, Mul, Piecewise, Rational, Shi, Si, Symbol,
acosh, acoth, arg, asin, atan, besseli, besselj, cbrt,
... | diofant/diofant | diofant/tests/integrals/test_meijerint.py | Python | bsd-3-clause | 29,157 | [
"Gaussian"
] | 5133da94f8f60081f22d978409ae39ca04cf0b253c68edc2303538ca35930d2b |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import unicode_literals, division, print_function
import ruamel.yaml as yaml
import unittest
import sys
from pymatgen.util.testing import PymatgenTest
from pymatgen.io.abinit.tasks import Paral... | gpetretto/pymatgen | pymatgen/io/abinit/tests/test_qadapters.py | Python | mit | 15,131 | [
"ABINIT",
"pymatgen"
] | 97fe8abac9b21c5bc2acb7386dcfb84dfd74b492e4da49a921f5b8110883660c |
# 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/test/test_0042_prod_basis_sparse.py | Python | apache-2.0 | 1,706 | [
"PySCF"
] | 9df6ef387e25b0054fac7875be7640bd70a9c511cb7c90b65679e697353e27a4 |
#coding:utf-8
import os
import sys
reload(sys)
sys.setdefaultencoding('utf8')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "idc_assets_management.settings.local")
sys.path.append('/opt/py_env/xiaojun/idc_assets_management/idc_assets_management')
"""
This file demonstrates writing tests using the unittest module. Th... | xu2243051/idc_assets_management | idc_assets_management/manager/tests.py | Python | gpl-2.0 | 1,485 | [
"MOE"
] | 19f369e6c844e2a83e502710415149192d48d5cc99befc750c045244951b78da |
#!/usr/bin/env python
import sys
import pysam
import argparse
import logging
DEFAULT_MIN_SPAN = 10
def add_options(main_parser):
local_parser = main_parser.add_argument_group("BreakSeq core options")
local_parser.add_argument("--min_span", help="Minimum span for junction", type=int, default=DEFAULT_MIN_SPAN... | bioinform/breakseq2 | breakseq2/breakseq_core.py | Python | bsd-2-clause | 3,682 | [
"pysam"
] | d9e36d4c117924fdc252ec28c9279080b804e03154a2ac77485ef7c5c7acd5c2 |
# todo:
# * vtkVolumeMapper::SetCroppingRegionPlanes(xmin,xmax,ymin,ymax,zmin,zmax)
from module_base import ModuleBase
from module_mixins import ScriptedConfigModuleMixin
import module_utils
import vtk
class MIPRender(
ScriptedConfigModuleMixin, ModuleBase):
def __init__(self, module_manager):
# ini... | chrisidefix/devide | modules/filters/MIPRender.py | Python | bsd-3-clause | 4,655 | [
"VTK"
] | 7d38a94979a75f0c663edc9b8bdb98e68ceb844957a38ea263ff1508f3cc97cd |
#!/usr/bin/env python3
from matplotlib.pyplot import figure, show
from numpy import linspace, meshgrid, pi, sin # for testing
"""
More sophisticated 3-D plots with Mayavi
https://github.com/scivision/mayavi-examples
or Plotly (offline or online):
https://github.com/scivision/plotly3d-examples-python
"""
de... | scienceopen/python-matlab-examples | Plot3D/matplotlib_3d.py | Python | mit | 539 | [
"Mayavi"
] | 3d348e70b2feb1cb0cd510f05750fe27e121059e3febc46a36d6f3e27a81c3de |
"""
this file does variant calling for RNAseq
"""
import pdb
#============= import required packages =================
import os
import sys
import subprocess
sys.path.append('/home/shangzhong/Codes/Pipeline')
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) # disable buffer
from Modules.f00_Message import Message
... | shl198/Pipeline | VariantCall/07_chane_GATK_RNA_vari_call.py | Python | mit | 8,420 | [
"BWA"
] | bad31368fb569e406e5eb14f88e41b4a5eb3869f2dc84a3598ac6a251c68ce2c |
#### THIS WILL DO THE MAXIMUM LIKELIHOOD FITTING
#
# and assorted other things related to that
#
# It's kind of awful code.
#
# Separate classes for
# - periodograms (distributed as chi^2_2 or chi^2_2m, for averaged periodograms)
# - light curves (not really accurate, use scipy.optimize.curve_fit if you can)
# -... | dhuppenkothen/UTools | mle.py | Python | bsd-2-clause | 55,419 | [
"Gaussian"
] | 1aaad501878e14db69aef2bcf779a4266a60ec9fca70d28e045c8a0a798ced87 |
__author__ = 'svfilhol'
import matplotlib.pyplot as plt
import numpy as np
import cv2
def kernel_square(nPix):
"""
Function to defin a square kernel of equal value for performing averaging
:param nPix: size of the kernel in pixel
:return: kernel matrix
"""
print("Averaging kernel of " + str(n... | ArcticSnow/dempy | dempy/decomposition/smooth2d.py | Python | mit | 3,186 | [
"Gaussian"
] | d0b41eee61fa9d4f3b8e9716f6dad38a51498819947475c4c38d0fa43a62cd32 |
# FIXME: serial number...
# reading the data: unpack the data using the ratio.
__version__ = "0.1"
__author__ = "Pierre Legrand (pierre.legrand@synchrotron-soleil.fr)"
__date__ = "18-04-2005"
__copyright__ = "Copyright (c) 2005 Pierre Legrand"
__license__ = "New BSD, http://www.opensource.org/licenses/bsd-license.php... | RAPD/RAPD | src/plugins/subcontractors/xdsme/new/xdsme-0.4.9/XIO/plugins/raxis_interpreter.py | Python | agpl-3.0 | 9,307 | [
"CRYSTAL"
] | 93a8343c3293006ee340f172d7bd6644c404d7d3d145fd6c0ea7e90d36be6cbc |
import unittest
from test import support
import sys
import random
import math
import array
# 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
# S... | mancoast/CPythonPyc_test | fail/340_test_long.py | Python | gpl-3.0 | 50,828 | [
"Brian"
] | 035362c339ad4b9ac30b2e6a1e0c1d2658f5dbe546812b7320519ab664526455 |
#!/usr/bin/env python
# -*- coding: utf8 -*-
# Copyright (C) 2013-2014 Craig Phillips. All rights reserved.
"""The GSync Drive module that provides an interface to the Google Drive"""
import os, sys, re, datetime, shelve, time, retrying
from dateutil.tz import tzutc
from contextlib import contextmanager
# Setup d... | ScryptInc/gsync | libgsync/drive/__init__.py | Python | bsd-3-clause | 29,907 | [
"VisIt"
] | 5463ac57dc09b266b0c893d6731866928effde6fa8f0b3b25242cb05ace1b78f |
"""
DIRAC class to execute services
In the most common case, DIRAC services are executed using the dirac-service command.
dirac-service accepts a list positional arguments. These arguments have the form:
[DIRAC System Name]/[DIRAC Service Name]
dirac-service then:
- produces a instance of ServiceReactor
... | ic-hep/DIRAC | src/DIRAC/Core/DISET/ServiceReactor.py | Python | gpl-3.0 | 11,271 | [
"DIRAC"
] | e54aed00c27b280b63ff339a89c75daeebaf69407df3168daaa89b268997caf0 |
"""
The collection of 9ML annotations used by PyPe9
"""
# The overall PyPe9 namespace
PYPE9_NS = 'http://pype9.org'
BUILD_TRANS = 'NeuronTranslations'
# Basic NEURON section quantities (L, cm, v, etc...)
MEMBRANE_VOLTAGE = 'MembraneVoltage'
MEMBRANE_CAPACITANCE = 'MembraneCapacitance'
# External current ports
EXTER... | tclose/PyPe9 | pype9/annotations.py | Python | mit | 1,162 | [
"NEURON"
] | dd564678e82910118328886501389274e08fa520d9d36810df88758f35550956 |
import tempfile, os
from __init__ import ToolAction
from galaxy.util.odict import odict
from galaxy.tools.imp_exp import JobImportHistoryArchiveWrapper, JobExportHistoryArchiveWrapper
import logging
log = logging.getLogger( __name__ )
class ImportHistoryToolAction( ToolAction ):
"""Tool action used for importing ... | mikel-egana-aranguren/SADI-Galaxy-Docker | galaxy-dist/lib/galaxy/tools/actions/history_imp_exp.py | Python | gpl-3.0 | 5,754 | [
"Galaxy"
] | 86f057affcaec64e39a13de1dd71d92b4119fd3e4981a796cb9ac0a3993dea3b |
from datetime import date
from jinja2 import Environment, PackageLoader
env = Environment(loader=PackageLoader('generator', 'templates'))
def generate_class(obj):
template = env.get_template('class.py')
context = {}
context["internal_name"] = obj.internal_name
context["class_name"] = obj.class_name
... | rbuffat/pyepw | generator/generator.py | Python | apache-2.0 | 1,306 | [
"EPW"
] | 798b74373abe83fcc162d774e3a2074e12a90c51f7f358ac64bcc67361633354 |
# -*- coding: utf-8 -*-
from __future__ import print_function
from acq4.Manager import getManager
from acq4.util.metaarray import *
from acq4.pyqtgraph.ImageView import *
from acq4.pyqtgraph.GraphicsView import *
from acq4.pyqtgraph.graphicsItems import *
from acq4.pyqtgraph.graphicsWindows import *
from acq4.pyqtgraph... | pbmanis/acq4 | acq4/analysis/old/modules.py | Python | mit | 102,655 | [
"Gaussian"
] | c871c334e0443b3d59d82b15b0421d8906bf50ecac3e3151fcda23becd51f2cc |
# -*- coding: utf-8 -*-
"""
<DefineSource>
@Date : Fri Nov 14 13:20:38 2014 \n
@Author : Erwan Ledoux \n\n
</DefineSource>
A Leaker
"""
#<DefineAugmentation>
import ShareYourSystem as SYS
BaseModuleStr="ShareYourSystem.Standards.Recorders.Brianer"
DecorationModuleStr="ShareYourSystem.Standards.Classors.Classer"
S... | Ledoux/ShareYourSystem | Pythonlogy/ShareYourSystem/Standards/Recorders/Leaker/draft/__init__ copy.py | Python | mit | 4,439 | [
"Brian"
] | 8ac6b5649afa1b01885dafad25d8100022c4dc07fd1b0910baab1f97e702f8a7 |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2011, 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... | zenoss/ZenPacks.zenoss.PostgreSQL | ZenPacks/zenoss/PostgreSQL/info.py | Python | gpl-2.0 | 2,098 | [
"VisIt"
] | 534105826666987e41183c88203db48827acfaa05551fbf7328a16515925754a |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import unittest
import os
import json
import numpy as np
from pymatgen.analysis.structure_matcher import StructureMatcher, \
ElementComparator, FrameworkC... | matk86/pymatgen | pymatgen/analysis/tests/test_structure_matcher.py | Python | mit | 30,767 | [
"pymatgen"
] | 1b4ee96306e74fe1366df74d17f816df345a9bf283b93894ab89ac51ebee75f4 |
import unittest
import pychemia
from pychemia.utils.serializer import generic_serializer
import numpy as np
import tempfile
import shutil
class PopulationTest(unittest.TestCase):
def test_orbital(self):
"""
Test (pychemia.population.OrbitalDFTU) :
"""
if not py... | MaterialsDiscovery/PyChemia | tests/test_population_orbitals.py | Python | mit | 2,921 | [
"ABINIT"
] | eb3ff2ae7dafcac7f24cb49ba666ede010ab787f0974fafb231ea4936ed12207 |
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | maropu/spark | python/pyspark/pandas/tests/test_series.py | Python | apache-2.0 | 120,687 | [
"Elk"
] | 011ab30c675a311fd75b7cb160ae174afeac53ad3b7fc03bd9deff281473df37 |
import numpy as np
import matplotlib.pyplot as plt
class RidgeRegressor(object):
"""Simple implementation of ridge regression.
TODO: Add cross-validation procedure to select regularization param reg.
"""
def __init__(self, reg=0.0):
""" Argument
reg: regularization para... | ntduong/ML | Misc/ridge_regression.py | Python | mit | 2,246 | [
"Gaussian"
] | cc64862c25d71ae04e23631d96f12047f089e15cf96565b8a423fe0a703fad84 |
"""
Power expansion class
Class to store and manipulate 3-dimensional Taylor (power) expansions of functions
Particularly useful for inverting the FT of the evolution matrix, and subtracting off
analytically calculated IFT for the Green function.
Really designed to get used by other code.
"""
__author__ = 'Dallas R.... | DallasTrinkle/Onsager | onsager/PowerExpansion.py | Python | mit | 65,842 | [
"Gaussian"
] | b60b79eb30e9ff383dbae1b948254630cabc4b8c886dabeff6c8743cb9587313 |
# pylint: disable=C0111
# pylint: disable=W0621
from lettuce import world, step
from lettuce.django import django_url
from django.conf import settings
import requests
import string
import random
import os
from django.contrib.auth.models import User
from student.models import CourseEnrollment
from nose.tools import ass... | jruiperezv/ANALYSE | cms/djangoapps/contentstore/features/upload.py | Python | agpl-3.0 | 7,455 | [
"VisIt"
] | 94a86521ba3a1d5313f21d39376ca7c0d9d3b1b3da402fdcf40e22ada0f81951 |
# Copyright (c) 2015, Ecole Polytechnique Federale de Lausanne, Blue Brain Project
# All rights reserved.
#
# This file is part of NeuroM <https://github.com/BlueBrain/NeuroM>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are ... | juanchopanza/NeuroM | neurom/core/tests/test_iter.py | Python | bsd-3-clause | 6,175 | [
"NEURON"
] | cbed26dc50038817611c1f2f1426770d238c74bb12e2281dd37222e5e5763ab7 |
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
ImageMagnitude()
| jeromevelut/Peavip | Testing/ImageMagnitude.py | Python | gpl-3.0 | 127 | [
"ParaView"
] | aacdc2c276b5ac30a2c7ad4b6e368850f93bfc0974eb654b2704084056a0ebf2 |
#!/usr/bin/env python
# This file is part of Openplotter.
# Copyright (C) 2015 by sailoog <https://github.com/sailoog/openplotter>
#
# Openplotter 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 versio... | e-sailing/openplotter | tools/kplex/kplex.py | Python | gpl-2.0 | 15,322 | [
"VisIt"
] | a8d8c71a38dbc15eab75635969bcfc8d06d26da02b5fc1843178142738b4d459 |
import unittest
import echidna.core.smear as smear
import echidna.core.spectra as spectra
import numpy
from scipy.optimize import curve_fit
class TestSmear(unittest.TestCase):
def gaussian(self, x, *p):
""" A gaussian used for fitting.
Args:
x (float): Position the gaussian is calculat... | drjeannewilson/echidna | echidna/test/test_smear.py | Python | mit | 6,518 | [
"Gaussian"
] | 9ec847b7630a68640bb806e0d934c7e7130fe31e2a08cb93e1c7a0b63b335b3a |
"""
Create a profile from an ASCII CTD datafile
===========================================
Use the TAMOC ambient module to create profiles in netCDF format for use by
TAMOC from data in text files downloaded from a CTD. This file demonstrates
working with the data from the R/V Brooks McCall at Station BM 54 on May ... | socolofs/tamoc | bin/ambient/profile_from_ctd.py | Python | mit | 6,097 | [
"NetCDF"
] | 8b55bb4769727140fc44f46f799fa8b431abcab82cc750c1528d4cfda05718b5 |
from c3bottles.model.drop_point import DropPoint
from c3bottles.model.report import Report
from c3bottles.model.visit import Visit
from c3bottles.model.category import categories_sorted
def drop_points_by_category_gen(category):
return lambda: DropPoint.query.filter(DropPoint.category_id == category.category_id, ... | der-michik/c3bottles | c3bottles/lib/statistics.py | Python | mit | 4,081 | [
"VisIt"
] | 960962e01ebc48ae571ea27224856b2ec1cddfd1a7ba1d2c16f03834ae31f2fe |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author: Andrew Jewett (jewett.aij at g mail)
# License: MIT License (See LICENSE.md)
# Copyright (c) 2013
"""
ltemplify.py
The "ltemplify.py" script can be used to convert existing LAMMPS
input script and data files into a single .lt file
(which typically includes geo... | jewettaij/moltemplate | moltemplate/ltemplify.py | Python | mit | 274,889 | [
"LAMMPS"
] | 248195cfa57a55a093d4ff391306ec71ec5fb39b5fb3adf2390aee4be8bec9ce |
import xml.etree.ElementTree as ET
from pprint import pprint
import os
import sys
import json
import argparse
import re
##########################
#LOGGER
##########################
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(format='%(asctime)s -- %(name)s - %(levelname)s : %(message)s', d... | CARPEM/GalaxyDocker | dockertools2galaxy/dockertools2galaxy.py | Python | mit | 8,188 | [
"Galaxy"
] | 604658c242bdb1180124204aba7cb581d56dd6318e89d6f1dd4538cf30c50b19 |
# bg.po
val = {" days." : " дни.",
"(all)" : "(всички)",
"(any)" : "(всеки)",
"(anyone)" : "(някой)",
"(available)" : "(налично)",
"(blank)" : "(празно)",
"(both)" : "(и двете)",
"(depleted)" : "(изчерпано)",
"(everyone)" : "(всеки)",
"(master user, not editable)" : "(главен потребител, нередактируем)",
"(no change)" ... | bobintetley/asm3 | src/asm3/locales/locale_bg.py | Python | gpl-3.0 | 299,123 | [
"Amber",
"VisIt"
] | 9211561474b43a0f73fd7aa35de3f4e40890edabc8d7eaa6be6a0083041d60b5 |
#
# Copyright (c) 2015 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/commoncode/command.py | Python | apache-2.0 | 11,745 | [
"VisIt"
] | 1d18df5333e3f51313e2e2862978561b59ecc498280a648d1a043b6c95c04130 |
# ----------------------------------------------------------------------------
# Copyright 2015 Nervana Systems Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.o... | dongjoon-hyun/neon | tests/test_gru.py | Python | apache-2.0 | 14,135 | [
"Gaussian"
] | 1ca52dc3a45b1a6255958da8836f448200e90875199abf56a44c50f01dd43d52 |
from .vasp.volume import charge, elf, check_directory_elf, check_directory_charge
from .vasp.bandstructure import bandstructure, check_directory_bandstructure
from .vasp.parchg import parchg
from .vasp.PCF import paircorrelation, check_directory_pcf
from .vasp.doscar import dos
from .vasp.unitcell import unitcell, chec... | rartino/ENVISIoN | envisionpy/hdf5parser/__init__.py | Python | bsd-2-clause | 1,102 | [
"Elk",
"VASP"
] | 763a2dafc5c86067a380eeafa5f406a70e07fc8c3c92e59cc5667293dc8a3550 |
# Orca
#
# Copyright (C) 2010 Joanmarie Diggs
# Copyright (C) 2011-2012 Igalia, S.L.
#
# Author: Joanmarie Diggs <jdiggs@igalia.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; eith... | h4ck3rm1k3/orca-sonar | src/orca/scripts/toolkits/WebKitGtk/script_utilities.py | Python | lgpl-2.1 | 8,117 | [
"ORCA"
] | c78978bcf3d041333e21af0a1132d3f1521a9aa564b532169609bb51a4bc64b0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.