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 numpy as np
# Delayed import: scipy.optimize
# It is imported in the minimization function, so the main functionality
# of this module is preserved even if SciPy is not installed.
def ElasticConstants(atoms, symmetry, minimize=False, **kwargs):
"""Calculate the anisotropic elastic constants of a system.
... | auag92/n2dm | Asap-3.8.4/Python/asap3/Tools/ElasticConstants.py | Python | mit | 7,938 | [
"ASE"
] | 451e99a5ea88ac24ec3ede369c8b7525a692543244d6858b62aff3aa9fb07502 |
#!/usr/bin/env python
#
# Appcelerator Titanium Module Packager
#
#
import os, subprocess, sys, glob, string
import zipfile
from datetime import date
cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename))
os.chdir(cwd)
required_module_keys = ['name','version','moduleid','description','copyright','... | dezinezync/DZWaveForm | iphone/build.py | Python | mit | 7,610 | [
"VisIt"
] | 708c57434eaa06a1fce223a5823f789ef362c60ca661b31782539eace6641baa |
# coding=utf-8
# Copyright 2020 The Gin-Config 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 la... | google/gin-config | tests/config_test.py | Python | apache-2.0 | 89,044 | [
"MOOSE"
] | 0ae0edf63d5b78db334a51ed92283489739ca2225e0b2fc27e631ca1a953bddc |
# creates: diffusion-path.png
import os
from ase.io import read, write
if 1:
execfile('diffusion4.py')
images = [read('mep%d.traj' % i) for i in range(5)]
a = images[0] + images[1] + images[2] + images[3] + images[4]
del a.constraints
a *= (2, 1, 1)
a.set_cell(images[0].get_cell())
write('diffusion-path.pov', a, s... | grhawk/ASE | tools/doc/tutorials/constraints/diffusion.py | Python | gpl-2.0 | 411 | [
"ASE"
] | 6a5b80467bd844c5596ee71a58cff980bf6fba955436b86ebf448fd38f24a19e |
import miasm2.expression.expression as m2_expr
from miasm2.expression.modint import int32
from miasm2.expression.simplifications import expr_simp
from miasm2.core import asmbloc
import logging
log = logging.getLogger("symbexec")
console_handler = logging.StreamHandler()
console_handler.setFormatter(logging.Formatter(... | kod3r/miasm | miasm2/ir/symbexec.py | Python | gpl-2.0 | 15,840 | [
"VisIt"
] | 5d456fe38944245e8d26285aad2689e2cd3606c4af74751e5ea9d67c58f5d00d |
# coding: utf-8
"""
Collection of low-level tools that faciliate the interface with resource managers.
The preferred way of importing this module is:
import qutils as qu
"""
from __future__ import print_function, division, unicode_literals
from monty.string import is_string
from pymatgen.core.units import Time, ... | rousseab/pymatgen | pymatgen/io/abinitio/qutils.py | Python | mit | 3,288 | [
"pymatgen"
] | de139bad5a6a749e7672c5eb9c6e495026618d1e4ef4bbc5c34cd6f2345a9fb2 |
import vtkAll as vtk
#from ddapp import botpy
import math
import numpy as np
#import drc as lcmdrc
def getTransformFromNumpy(mat):
'''
Given a numpy 4x4 array, return a vtkTransform.
'''
m = vtk.vtkMatrix4x4()
for r in xrange(4):
for c in xrange(4):
m.SetElement(r, c, mat[r][c]... | edowson/director | src/python/ddapp/transformUtils.py | Python | bsd-3-clause | 5,794 | [
"VTK"
] | 2ba99fc24cee001b4406bbf54103859625892b3a1ef8c7871b3321f3630646dc |
#!/usr/bin/env python
########################################################################
# File : dirac-configuration-cli
# Author : Adria Casajus
########################################################################
"""
Command line interface to DIRAC Configuration Server
"""
__RCSID__ = "$Id$"
from DIRA... | andresailer/DIRAC | ConfigurationSystem/scripts/dirac-configuration-cli.py | Python | gpl-3.0 | 689 | [
"DIRAC"
] | dfa5dcaff9564e1b38e604c2116f285c6d834fddcb04e69aabd48ea481d14216 |
"""
This file is part of gempy.
gempy is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
gempy is distributed in the ... | cgre-aachen/gempy | gempy/assets/coKriging.py | Python | lgpl-3.0 | 40,734 | [
"Gaussian"
] | 78432038f64a682e67522cd0a07fccda037cf0eb3ae5e1615cdc78b16b9fa44e |
#* This file is part of the MOOSE framework
#* https://www.mooseframework.org
#*
#* All rights reserved, see COPYRIGHT for full restrictions
#* https://github.com/idaholab/moose/blob/master/COPYRIGHT
#*
#* Licensed under LGPL 2.1, please see LICENSE for details
#* https://www.gnu.org/licenses/lgpl-2.1.html
from .sched... | nuclear-wizard/moose | python/TestHarness/JobDAG.py | Python | lgpl-2.1 | 10,749 | [
"MOOSE"
] | 410d6e7a26472ea529408f40e747d4ba6e6f6fb57ef0d06428fbc7116b39fb8a |
""" Transformation Database Client Command Line Interface.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from DIRAC.Core.Base.Script import parseCommandLine
parseCommandLine()
from DIRAC.Core.Base.CLI import CLI
from DIRAC.Core.Base.API import API
fr... | yujikato/DIRAC | src/DIRAC/TransformationSystem/Client/TransformationCLI.py | Python | gpl-3.0 | 21,625 | [
"DIRAC"
] | 0737a72a70485bf76901c48aa180b774798f16bd9f6c79640a8371c86c05e88b |
"""
Copyright (C) 2007-2010 Martin Laprise (mlaprise@gmail.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
This software is distributed in the hope that it will be ... | mlaprise/PyOFTK | PyOFTK/utilities.py | Python | gpl-2.0 | 35,679 | [
"Gaussian",
"VTK"
] | 66b8729b453d33c1893ef9c386baa680d871fe88e955ced4ae0a65fc63debfbc |
# ----------------------------------------------------------------------------
# Copyright 2015-2016 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.apa... | Jokeren/neon | tests/test_global_deltas.py | Python | apache-2.0 | 15,474 | [
"Gaussian"
] | b8f7098421fe90e792cab7d8259d4df395a577f1edfcb0fcc0b3f4e26387d345 |
#!/usr/bin/env python
# encoding: utf-8
"""
FieldEllipticals.py
Created by Sami-Matias Niemi on 2008-07-03.
Copyright (c) 2008 __Sami-Matias Niemi__. All rights reserved.
"""
#Optimizations:
# - maps possible field ellipticals
# - maps possible companions for these field ellipticals
# - tests if these mapped galaxies... | sniemi/SamPy | sandbox/src1/FieldEllipticals.py | Python | bsd-2-clause | 18,963 | [
"Galaxy"
] | 5f280e7a16e074c210c9984c50fab4c5f37b0b01c78c7e7e266ba4c3ea7d2b2c |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jun 14 05:54:11 2020
@author: mathieumoog
"""
import cpmd
import filexyz
import numpy as np
import matplotlib.pyplot as plt
# MSMbuilder ( lacks CK validation )
from msmbuilder.msm import MarkovStateModel
from msmbuilder.msm import BayesianMarkovStateM... | CondensedOtters/PHYSIX_Utils | Projects/Moog_2016-2019/CO2/CO2_NN/extended_states_markov.py | Python | gpl-3.0 | 9,347 | [
"CPMD"
] | 7571dc27e9d850ad2b0c4505a015549d88a7ebc62a4da5d27f4bf9c2acea6075 |
#!/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/prop/hfc/test/test_uhf.py | Python | apache-2.0 | 5,100 | [
"PySCF"
] | 0128d2d7a8c90889b213332e5dc733da3f4b4f4bc075f68e1de6a2e57db1e8b3 |
# ============================================================================
#
# Copyright (C) 2007-2012 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | jeroendierckx/Camelot | camelot/view/controls/delegates/many2onedelegate.py | Python | gpl-2.0 | 3,564 | [
"VisIt"
] | 58de671cbd55a58ba16873f0c2e761267799ae3111c9df3937fc39ad9506a0e5 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import os
import unittest
import xml.etree.cElementTree as ET
from pymatgen.core import Lattice, Structure
from pymatgen.io.exciting import ExcitingInput
from pymatgen.util.testing import PymatgenTest
"""
Tes... | gmatteo/pymatgen | pymatgen/io/exciting/tests/test_inputs.py | Python | mit | 6,586 | [
"CRYSTAL",
"exciting",
"pymatgen"
] | adbcd5f81760a9f3ed0a406a264b618f7680df4e36f325df6d879b72c2467552 |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import rdkit
from rdkit.Chem import AllChem
from rdkit import DataStructs
__license__ = "X11"
METADATA = {
"id": "method_rdkit_fcfp4_1023_tanimoto",
"representation": "fcfp4_1023",
"similarity": "tanimoto"
}
def _compute_fingerprint(molecule):
return Al... | skodapetr/lbvs-environment | methods/fcfp/fcfp4_1023_tanimoto.py | Python | mit | 1,423 | [
"RDKit"
] | 8659c08c2e4139548c9a4c97539e508233fb74db0065ddab29e23ec5bfed0067 |
#!/usr/bin/env python
#
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# A... | zozo123/buildbot | master/setup.py | Python | gpl-3.0 | 7,590 | [
"Brian"
] | 1c69c842700f6ff1b73640e7014d62e8f66cb097bd6d60d6e702092595b760d1 |
# Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Classes corresponding to phyloXML elements.
See U{ http://phyloxml.org/ } for the of... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/Phylo/PhyloXML.py | Python | gpl-2.0 | 44,982 | [
"Biopython"
] | 3b416dd3aa723740963f807880a0f8e536c875d651fd9fcea2e95707a9375c43 |
""" ComponentMonitoring class is a front-end to the Component monitoring Database
"""
import six
from urllib import parse
from DIRAC import gConfig, S_OK, S_ERROR
from DIRAC.Core.Base.DB import DB
from DIRAC.Core.Utilities import Time, Network
from DIRAC.ConfigurationSystem.Client.PathFinder import getSystemURLs
cla... | DIRACGrid/DIRAC | src/DIRAC/FrameworkSystem/DB/ComponentMonitoringDB.py | Python | gpl-3.0 | 24,991 | [
"DIRAC"
] | 8357a9aaadcfd9f7c8f71ac02a9fa325a9fbf7cb7acc41380c0dc084d3ab2824 |
import ast
import inspect
import warnings
import linecache
from uuid import uuid4
from textwrap import dedent
from collections import OrderedDict
from astmonkey.transformers import ParentChildNodeTransformer
from astmonkey.visitors import SourceGeneratorNodeVisitor
VALUE = 'value'
def value(val, name=None):
'''... | Mause/resumable | resumable.py | Python | mit | 5,627 | [
"VisIt"
] | 41ff51077722d5688ba8b71a501036b432a937648ef46987410ba2e952f0cbff |
#########################################################################
## This program is part of 'MOOSE', the
## Messaging Object Oriented Simulation Environment.
## Copyright (C) 2013 Upinder S. Bhalla. and NCBS
## It is made available under the terms of the
## GNU Lesser General Public License version 2... | BhallaLab/moose-examples | snippets/scriptKineticSolver.py | Python | gpl-2.0 | 4,453 | [
"MOOSE"
] | c1653c8c499fdd74b26f95252c99ef491362ad597c8d0a29c2ec033eb36a45fb |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (... | cloudera/hue | apps/useradmin/src/useradmin/tests.py | Python | apache-2.0 | 64,147 | [
"MOE"
] | 0e37943a409782ef5fbf0def8e7f1df39e1f6490a779f34385d986f074c5558b |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of pyunicorn.
# Copyright (C) 2008--2015 Jonathan F. Donges and pyunicorn authors
# URL: <http://www.pik-potsdam.de/members/donges/software>
# License: BSD (3-clause)
"""
Provides classes for analyzing spatially embedded complex networks, handling
multiva... | wbarfuss/pyunicorn | pyunicorn/core/network.py | Python | bsd-3-clause | 225,884 | [
"VisIt"
] | e8864ac2eb44ee1676f48ba10ee255690c059b6fa8ed22693acb8766a5063bb1 |
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
import MDAnalysis as mda
import numpy as np
from pytim import *
from pytim.datafiles import *
u = mda.Universe(WATER_GRO, WATER_XTC)
oxygens = u.select_atoms('name OW')
radii = pytim_data.vdw... | balazsfabian/pytim | pytim/examples/example_profile.py | Python | gpl-3.0 | 635 | [
"MDAnalysis"
] | 27f55ab68b70b893f13847bbde6ff4eec13793235d7dc19d69ca46ed22a529db |
import os
from director.componentgraph import ComponentFactory
from director import consoleapp
import director.objectmodel as om
import director.visualization as vis
from director.fieldcontainer import FieldContainer
from director import applogic
from director import appsettings
from director import drcargs
import fun... | manuelli/director | src/python/director/mainwindowapp.py | Python | bsd-3-clause | 17,561 | [
"VTK"
] | 89900ca2a258e9a4e909e10ecd7f00380afda07a49103c3311e28755ed8e615e |
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, the cclib development team
#
# This file is part of cclib (http://cclib.github.io) and is distributed under
# the terms of the BSD 3-Clause License.
"""Contains parsers for all supported programs"""
# These import statements are added for the convenience of users...
# ... | Schamnad/cclib | src/cclib/parser/__init__.py | Python | bsd-3-clause | 878 | [
"ADF",
"Dalton",
"GAMESS",
"Gaussian",
"Jaguar",
"MOPAC",
"Molpro",
"NWChem",
"ORCA",
"cclib"
] | 9fd779a0f82dbc6bc506969cdfc4c79e91875eed64a78ea9a1c0ea9f354508be |
# Copyright 2017 by Notmail Bot contributors. All rights reserved.
#
# This file is part of Notmail Bot.
#
# Notmail Bot 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... | ManuelLR/Notmail_Bot | commands/generic.py | Python | gpl-3.0 | 2,638 | [
"VisIt"
] | fdc5f77e65ca9d14f54d46f073f55d10726f2b3ef72b36b491ca914a261615c5 |
###############################################################################
# Copyright (c) 2007-2018, National Research Foundation (Square Kilometre Array)
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy
# of the ... | ludwigschwardt/scikits.fitting | scikits/fitting/gaussian.py | Python | bsd-3-clause | 8,511 | [
"Gaussian"
] | 73665371fb62cfbb69e34a2438b29ed0a74f0dd7b042e0119c1474baed07c78e |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The fruit fly of stiff numerical chemical kinetics problems.
$ python robertson.py -A 1.0 -B 1e-20 -C 1e-20 --t0 0 --plot --tend 3e10 --nt \
1024 --logt --logy --verbose
"""
from __future__ import (absolute_import, division, print_function)
from math import log10
imp... | bjodah/chemreac | examples/robertson.py | Python | bsd-2-clause | 3,609 | [
"ChemPy"
] | acf6422c9087482d207179d982ff1a13a8a7d5234ebb3a1bf8b06c8a21dabc88 |
import numpy as np
import vtk
from vtk.util.numpy_support import vtk_to_numpy
def calculate_vtk_max_pointwise_difference(file1,file2,tol=1e-6):
arrays = [0]*2
reader = vtk.vtkStructuredPointsReader()
for i, fname in enumerate([file1, file2]):
reader.SetFileName(fname)
reader.Update()
... | tbereau/espresso | testsuite/python/tests_common.py | Python | gpl-3.0 | 2,229 | [
"VTK"
] | d25c1ccab64ffd40ede9a8c00018a7aea04d52ff9db12d5ffa1eaf64cde087d0 |
"""
Build a class of plotting classes. These classes should be specific
to particular components or state variables. For example, we might
have a plotting class for the network. The classes should be initialized
with a model to determine how they should plot the results.
The classes should be able to:
- plot either a... | slinderman/theano_pyglm | pyglm/plotting/plotting.py | Python | mit | 5,031 | [
"NEURON"
] | d6c89ae026d4abec2614ec63fc9320d4255c2ba9f8392b37f81b831f69c64f89 |
#!/usr/bin/env python
#
# Copyright 2002 by Michael Hoffman. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
#
# note:
# I used Lincoln Stein's perl Bio::DB::GFF::Util::Binning a... | BlogomaticProject/Blogomatic | opt/blog-o-matic/usr/lib/python/Bio/GFF/binning.py | Python | gpl-2.0 | 1,991 | [
"BioPerl",
"Biopython"
] | cbd59082f16e360598d27968a19ec0264a29995f651bf3bdaa1924b9984db1ab |
#
# 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/visitors/pcl_executor_visitor.py | Python | gpl-3.0 | 19,074 | [
"VisIt"
] | 9172a42d841261e886d8e73cf354b012be97ed4b688e0cea1d1b120481abc3db |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2005-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/tillsearch.py | Python | gpl-2.0 | 6,586 | [
"VisIt"
] | b28ca38005d061777a7d46f0762ad89bf6f3f458f2581c5884ea523c60992662 |
import json
import operator
from typing import Any, Dict, Optional, Tuple
import pandas
from great_expectations.core import ExpectationConfiguration
#!!! This giant block of imports should be something simpler, such as:
# from great_exepectations.helpers.expectation_creation import *
from great_expectations.executio... | great-expectations/great_expectations | contrib/experimental/great_expectations_experimental/expectations/expect_column_values_to_be_alphabetical.py | Python | apache-2.0 | 17,185 | [
"VisIt"
] | fc8709bebc52329c0e6a7d18ce8db8fa9ce2bf7b0fa05d1a71bba64c9763216e |
# Sample module in the public domain. Feel free to use this as a template
# for your modules (and you can remove this header and take complete credit
# and liability)
#
# Contact: Brian Carrier [carrier <at> sleuthkit [dot] org]
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is f... | eugene7646/autopsy | pythonExamples/Sept2015ReportTutorial_CSV/CsvReportModule.py | Python | apache-2.0 | 4,250 | [
"Brian"
] | 694f48ec4ef83303c644bdc74606eaceca99ec9cb2783b5a110e656fa5608af2 |
import unittest
import rdflib
from neurondm.core import (LabelMaker,
Phenotype,
NegPhenotype,
Neuron,
LogicalPhenotype,
AND,
OR,)
class TestLabelMaker(unitt... | tgbugs/pyontutils | neurondm/test/test_label.py | Python | mit | 2,316 | [
"NEURON"
] | e19c0be999fa989d0764fa0a2df5492af1889613b6d8afe9e351501556639f89 |
# -*- coding: utf-8 -*-
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocol... | nagyistoce/netzob | src/netzob/UI/Vocabulary/Controllers/VocabularyController.py | Python | gpl-3.0 | 28,800 | [
"FLEUR"
] | beae479fa37b940aae0b0bc7dba3156fa8d29b54744739f4a3370181a3c32952 |
import simtk.openmm as openmm
import simtk.unit as unit
from perses.annihilation.relative import HybridTopologyFactory
import numpy as np
from perses.tests.utils import generate_solvated_hybrid_test_topology
kB = unit.BOLTZMANN_CONSTANT_kB * unit.AVOGADRO_CONSTANT_NA
temperature = 300.0 * unit.kelvin
kT = kB * tempera... | choderalab/perses | perses/app/relative_hydration.py | Python | mit | 5,178 | [
"OpenMM"
] | 133dc67d5d02bb2780b474c23ecedb84ea883fc113ad62b61fb28ee726f7fd9f |
from rdkit import Chem
from mordred import Chi, ABCIndex
benzene = Chem.MolFromSmiles('c1ccccc1')
# create descriptor instance
abci = ABCIndex.ABCIndex()
chi_p2 = Chi.Chi(type='path', order=2)
# create product term using descriptor arithmetic
abci_x_chi_p2 = abci * chi_p2
# calculate descriptor value
result = abci... | mordred-descriptor/mordred | examples/110-descriptor-arithmetic.py | Python | bsd-3-clause | 369 | [
"RDKit"
] | be7754189ae102361e53fc35c903ff45a17772b6ab3a79eba24f3ae211928c51 |
# Copyright (C) 2014 Brian Marshall
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in... | bmars/sisko | sisko/app.py | Python | gpl-3.0 | 4,908 | [
"Brian"
] | 9dd3340eff047da67fc329eebf6d93bb0a58f0d9afb6f0d42101924161a7b543 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
from numbers import Integral
import numpy as np
from .sile import SileVASP
from ..sile import add_sile, sile_fh_open
fr... | zerothi/sisl | sisl/io/vasp/chg.py | Python | mpl-2.0 | 3,296 | [
"VASP"
] | 1e33b58995d153cd1be503d410fe70d233084adf2a25880e81b40a62988c4488 |
#!/usr/bin/env python
##########################################################################################
# Developer: Luan,Jingchao Project: HuMaIN (http://humain.acis.ufl.edu)
# Description:
# Extract the individual line images from a binarized image, based on the default
# parameters or parameter... | acislab/HuMaIN_Microservices | OCRopyServices/SegmentationService/api/segmentation.py | Python | apache-2.0 | 15,744 | [
"Gaussian"
] | 518bd60bea7ea205fa656a5ff1e9d8cec201d31df92c2b88f873f4fa659b97f7 |
#-------------------------------------------------------------------------------
# Copyright (c) 2011 Anton Golubkov.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the GNU Lesser Public License v2.1
# which accompanies this distribution, and is available at
#... | anton-golubkov/Garland | src/test/test_filter_blocks.py | Python | lgpl-2.1 | 6,610 | [
"Gaussian"
] | 55dbbeb473b36d260e1e80a50e586e855245e5dc8c7b8dcb1681aedaeab05615 |
""" Astronomy related functions """
from functools import wraps
import numpy as np
try:
import dask
except ImportError:
dask = None
def dask_compatibility(fn):
""" Make functions transparent to using dask delayed objects """
@wraps(fn)
def wrapped(*args, **kwargs):
try:
retur... | mfouesneau/ezdata | ezdata/astro/astro.py | Python | mit | 12,200 | [
"Gaussian"
] | 6beca56be56e790dc19eea4bbc8a10be008b97e213e93a9d6dc6585086608f2c |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This is an example scripts using LFPy with a passive cell model adapted from
Mainen and Sejnowski, Nature 1996, for the original files, see
http://senselab.med.yale.edu/modeldb/ShowModel.asp?model=2488
Illustration of simultaneous Electrocorticography (ECoG) and LFP me... | LFPy/LFPy | examples/example_ECoG.py | Python | gpl-3.0 | 14,815 | [
"NEURON"
] | 4b4c9e344933920659e466862edd9d7e5077d9b98ddbf03b93cfe407e8523fb1 |
"""
Burr Settles
Duolingo ML Dev Talk #3: Clustering
EM-GMM (expectaction maximization with Gaussian mixture models) clustering example using
scikit-learn.
"""
import argparse
import math
import json
import numpy as np
from bs4 import BeautifulSoup
from sklearn.mixture import GaussianMixture
# cluster colors (for ... | burrsettles/ml-talks-duolingo | 03_clustering/voting_em.py | Python | gpl-3.0 | 3,646 | [
"Gaussian"
] | 145338fc94efacabeb212f7d04254d8e36a6827941179b345eab015adf63c1b8 |
# Copyright (c) 2013, GlaxoSmithKline Research & Development Ltd.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# ... | soerendip42/rdkit | Contrib/mmpa/rfrag.py | Python | bsd-3-clause | 9,597 | [
"RDKit"
] | 92af3a9e835b57dc6984d3b52859d29e6955520920d47a489487fde38840e65b |
import math, os
import numpy as np
from director import lcmUtils
import director.objectmodel as om
import director.applogic as app
from director import transformUtils
from director.debugVis import DebugData
from director import ioUtils
from director import filterUtils
from director.shallowCopy import shallowCopy
from ... | patmarion/director | src/python/director/drakevisualizer.py | Python | bsd-3-clause | 18,518 | [
"VTK"
] | 1673e516d6bb3eba2bcbdafed55cb1844b7a3bcbf13b72eab674c5be353f27c6 |
import os
import unittest
import vtk, qt, ctk, slicer
from slicer.ScriptedLoadableModule import *
import logging
class SegmentEditorSplitVolume(ScriptedLoadableModule):
"""Uses ScriptedLoadableModule base class, available at:
https://github.com/Slicer/Slicer/blob/master/Base/Python/slicer/ScriptedLoadableModule.py... | lassoan/SlicerSegmentEditorExtraEffects | SegmentEditorSplitVolume/SegmentEditorSplitVolume.py | Python | bsd-3-clause | 7,233 | [
"VTK"
] | f6ff853995f2ea0ef63edec7e510b1cea9901e8b44eaf9058d6ae98fdfde133e |
# ============================================================================
#
# Copyright (C) 2007-2010 Conceptive Engineering bvba. All rights reserved.
# www.conceptive.be / project-camelot@conceptive.be
#
# This file is part of the Camelot Library.
#
# This file may be used under the terms of the GNU General... | kurtraschke/camelot | camelot/admin/__init__.py | Python | gpl-2.0 | 1,570 | [
"VisIt"
] | dd24c08238143c797c237171589054d197ec85d0e31279f8d4a3c2146faf4cbc |
# Copyright (C) 2012,2013
# Max Planck Institute for Polymer Research
# Copyright (C) 2008,2009,2010,2011
# Max-Planck-Institute for Polymer Research & Fraunhofer SCAI
#
# This file is part of ESPResSo++.
#
# ESPResSo++ is free software: you can redistribute it and/or modify
# it under the terms of t... | capoe/espressopp.soap | src/interaction/VSphereSelf.py | Python | gpl-3.0 | 3,954 | [
"ESPResSo"
] | 69bd5f1906d7c80e495acff2d5c1d5f0be36a8d01980884e79bd261491fee733 |
#!/usr/bin/env python
import json
import sys
f = open(sys.argv[1], 'r')
tag_to_team = { }
team_names = {
1: 'Apolloon',
2: 'Ekonomika',
3: 'LBK',
4: 'VTK',
5: 'Wina',
7: 'Psychokring',
9: 'Atmosphere',
10: '4 Speed',
11: 'Industria',
12: 'Oker',
13: 'VRG',
14: ... | ULYSSIS-KUL/ipp | replays/24u2015/make_charts.py | Python | agpl-3.0 | 2,384 | [
"VTK"
] | 6cf8ec67f71d4ba9baeeecd4647d0fc0635de5b63bdf4b5089601a4c2f256e65 |
import requests
import sys
from constants import (
BASE_API_URL, BASE_URL, HEADERS
)
# Helper Functions: Usage & Testing
def usage(msg=None):
"""
Prints useful info for the user.
"""
if not msg:
print "Information here..."
else:
print msg
sys.exit(1)
def test_rm_up():
... | RealMassive/SimpleInventoryDemo | tests.py | Python | mit | 1,464 | [
"VisIt"
] | 6bfcb0e16dff4759f5810ecb078aaac16897205d2f48964b16fa5492faa72f18 |
#
# 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/orca/src/bigdl/orca/data/elastic_search.py | Python | apache-2.0 | 4,102 | [
"ORCA"
] | 926279389bd20864bd484f55cc20c16657d5158f92ce5a0d4324cf72122f448c |
from nansat.mappers.sentinel1 import Sentinel1
from nansat.mappers.mapper_netcdf_cf import Mapper as NetCDF_CF_Mapper
class Mapper(Sentinel1, NetCDF_CF_Mapper):
def __init__(self, filename, gdal_dataset, gdal_metadata, *args, **kwargs):
NetCDF_CF_Mapper.__init__(self, filename, gdal_dataset, gdal_metadata... | nansencenter/nansat | nansat/mappers/mapper_netcdf_cf_sentinel1.py | Python | gpl-3.0 | 2,222 | [
"NetCDF"
] | 06804de48c1647a5f78fc12f3382db161cf0c9ef4a990653b9029d7fbaf07257 |
from skimage.filter import gaussian_filter as _gaussian
def gaussian(img, sigma=8):
return _gaussian(img, sigma=sigma)
| charlienewey/penumbra-python | sweet/preprocess/gaussian.py | Python | bsd-3-clause | 124 | [
"Gaussian"
] | 0ac86e33c11b370d008cc7447485d6e07f097116d22275683093c326b8b8be5c |
##% Demo 7: Algorithms02
#
# In this demo the usage of the algorithms on the SART family among with their options are presented.
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# This file is part of the TIGRE Tool... | CERN/TIGRE | Python/demos/d07_Algorithms02.py | Python | bsd-3-clause | 6,636 | [
"Gaussian"
] | 527a69cc170a5c2b3e46c1a3e2cdd16575513e34c36bf7220fbce563b38d7a20 |
"""
GRT Models
"""
from __future__ import unicode_literals
import os
import uuid as pyuuid
from django.conf import settings
from django.db import models
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
class GalaxyInstance(models.Model):
"""A single galaxy site. Correspon... | erasche/galactic-radio-telescope | api/models.py | Python | agpl-3.0 | 4,977 | [
"Galaxy"
] | c82e6ccf4d88bb00961ef4b7966d499bd2d3f8b69a903516e46ee7ee009aad61 |
# -*- coding: utf-8 -*-
#
# gif_population.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,... | lekshmideepu/nest-simulator | pynest/examples/gif_population.py | Python | gpl-2.0 | 5,045 | [
"NEURON"
] | 2795959db9cf2d5e70e328e9dd53a23a6f486c8da6fe13245a9d93633ab51e50 |
# Copyright (c) 2015, Colm Coughlan
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following
# conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ... | colmcoughlan/scripts | fit_star.py | Python | bsd-2-clause | 4,659 | [
"Gaussian"
] | d41cc05342281b7d1dd4e0ca41f96a7971b5205626e998285d772a70c54af585 |
"""
=========================================
VectorView and OPM resting state datasets
=========================================
Here we compute the resting state from raw for data recorded using
a Neuromag VectorView system and a custom OPM system.
The pipeline is meant to mostly follow the Brainstorm [1]_
`OMEGA re... | mne-tools/mne-tools.github.io | 0.17/_downloads/4d95b96e5fc68f5495b416fb2aa6d9c3/plot_opm_rest_data.py | Python | bsd-3-clause | 8,385 | [
"Mayavi"
] | 9772b969ee746f9449b359af26acd46ea9eab772de0ee1d4a5298bb3f6b0b8b5 |
#
# Copyright (C) 2011 Smithsonian Astrophysical Observatory
#
#
# 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.
#... | hamogu/COSlsf | test_COSlsf.py | Python | gpl-2.0 | 4,150 | [
"Gaussian"
] | 73e41ef0887b92904470be2d59aa3aba3d130b953374dd1477fc93eebd376a6f |
# coding=utf-8
# Copyright 2022 The Mesh TensorFlow 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... | tensorflow/mesh | mesh_tensorflow/transformer/attention.py | Python | apache-2.0 | 49,788 | [
"MOE"
] | bb496c51fc0a00fd1a1c082ef79597347b8a5a31ca626979b8e6a2f6c025735a |
# NeHe Tutorial Lesson: 42 - Multiple Viewports
#
# Ported to PyOpenGL 2.0 by Brian Leair 18 Jan 2004
#
# This code was created by Jeff Molofee 2000
#
# The port was based on the PyOpenGL tutorials and from
# PyOpenGLContext (tests/glprint.py)
#
# If you've found this code useful, feel free to let me know
# at (Brian... | mgood7123/UPM | Sources/PyOpenGL-Demo-3.0.1b1/PyOpenGL-Demo/NeHe/lesson42.py | Python | gpl-3.0 | 19,990 | [
"Brian"
] | 45ff1557a1c4ceda19dd5be5e407473cf65e42de6bed3cb1e7a3f019005fb03b |
from __future__ import print_function
# Get Strain/Stress from ImageD11 UBI/map files
# Copyright (C) 2015 Younes ELHACHI
#
# 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 ... | jonwright/ImageD11 | ImageD11/eps_sig_solver.py | Python | gpl-2.0 | 10,113 | [
"CRYSTAL"
] | a8246aab4bf565ebe46d0b81608a3368f5ecc286535d63e8fa143ea3b77ad43d |
#!/usr/bin/env python
"""
Status of DIRAC components using runsvstat utility
"""
#
from DIRAC.Core.Base import Script
Script.disableCS()
Script.setUsageMessage( '\n'.join( [ __doc__.split( '\n' )[1],
'Usage:',
' %s [option|cfgfile] ... [system ... | andresailer/DIRAC | FrameworkSystem/scripts/dirac-status-component.py | Python | gpl-3.0 | 1,232 | [
"DIRAC"
] | ead92ff23ab07b3c0840fb28e302b5033a3999c5a30c3e5b7267263add719c52 |
# -*- 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... | pattisdr/osf.io | scripts/create_fakes.py | Python | apache-2.0 | 19,899 | [
"Galaxy"
] | c2af75bb6356458a680982173d55b0939eb91b4e0b87a8dabc0ba5afb3c5c708 |
from __future__ import annotations
import logging
import math
import pkg_resources
import iotbx.phil
import libtbx
from cctbx import sgtbx
from dxtbx.model import ExperimentList, ImageSequence
import dials.util
from dials.algorithms.indexing import (
DialsIndexError,
DialsIndexRefineError,
assign_indice... | dials/dials | algorithms/indexing/indexer.py | Python | bsd-3-clause | 40,507 | [
"CRYSTAL"
] | e72783069c94476dadf43c30ef2ea1407e44aa442534c91c0e5e5f46f20ab57a |
# -*- coding: utf-8 -*-
from PyQt5 import QtCore
tr = QtCore.QCoreApplication.translate
TR_MENU_FILE = tr("NINJA-IDE", "&File")
TR_MENU_EDIT = tr("NINJA-IDE", "&Edit")
TR_MENU_VIEW = tr("NINJA-IDE", "&View")
TR_MENU_SOURCE = tr("NINJA-IDE", "&Source")
TR_MENU_PROJECT = tr("NINJA-IDE", "&Project")
TR_MENU_EXTENSION... | centaurialpha/ninja-ide | ninja_ide/translations.py | Python | gpl-3.0 | 33,456 | [
"ASE"
] | 1380074508d0f029bd30d06da74d6934b1c07b6bfb735f708fd42505468d006f |
# proxy module
from __future__ import absolute_import
from mayavi.sources.parametric_surface import *
| enthought/etsproxy | enthought/mayavi/sources/parametric_surface.py | Python | bsd-3-clause | 102 | [
"Mayavi"
] | 64f8957d29abec4b5297dbbf5a0827957fbef63ab435f5641e9e143843d605ef |
""" Principal Component Analysis.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis A. Engemann <denis-alexander.engemann@inria.fr>
# Michael Eickenberg <michael.eickenberg@inria.fr... | manhhomienbienthuy/scikit-learn | sklearn/decomposition/_pca.py | Python | bsd-3-clause | 25,514 | [
"Gaussian"
] | 256192d72336d22a3fda656e2157a6a77b1073c989de2cfd088851074d931974 |
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class RAltcdfenvs(RPackage):
"""alternative CDF environments (aka probeset mappings).
Co... | iulian787/spack | var/spack/repos/builtin/packages/r-altcdfenvs/package.py | Python | lgpl-2.1 | 1,322 | [
"Bioconductor"
] | 621d5ccb34648c4756276037d49f1cf1989043d085485d290ed511f86e677587 |
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
##
## Copyright (C) 2013 Async Open Source <http://www.async.com.br>
## All rights reserved
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
## the Free Software F... | tiagocardosos/stoq | stoqlib/gui/dialogs/costcenterdialog.py | Python | gpl-2.0 | 8,031 | [
"VisIt"
] | fd609c975573f428e6dd9046b18c2d21c6ba5a921a7eb5ba8d8c07c7df31b552 |
# -*- coding: utf-8 -*-
from microcsound import constants
class State(object):
"""Store some state in a safe object interface.
These are the variables that would be annoying to have to redefine for
every voice line...
"""
def __init__(self):
self.div = 31
self.instr = 1
se... | akjmicro/microcsound | microcsound/state.py | Python | bsd-3-clause | 1,591 | [
"Gaussian"
] | 67b595ea84daf0da32aa9de011715c541e51d01ccf9ce187bf9376f6cbe21e3c |
""" BaseHistoryCorrector is a base class for correctors of user shares within
a given group based on the history of the resources consumption
"""
__RCSID__ = "$Id$"
import time as nativetime
from DIRAC import S_OK, S_ERROR, gLogger
from DIRAC.ConfigurationSystem.Client.Helpers.Registry import getDNForUsername
fr... | arrabito/DIRAC | WorkloadManagementSystem/private/correctors/BaseHistoryCorrector.py | Python | gpl-3.0 | 8,308 | [
"DIRAC"
] | 5802d35dd88c3ca3aa459ac23f27c2d5534a557e47d5155f3c47b1e83b6960e6 |
""" Principal Component Analysis
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Denis A. Engemann <d.engemann@fz-juelich.de>
# Michael Eickenberg <michael.eickenberg@inria.fr>
#
# Lice... | DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/decomposition/pca.py | Python | mit | 23,580 | [
"Gaussian"
] | 52fe0bf682e2628ffd56a3aa2248ed255388f8b7a5bddfaeaf6154082c611e1f |
# -*- coding: utf-8 -*-
##
## This file is part of Harvesting Kit.
## Copyright (C) 2013, 2014 CERN.
##
## Harvesting Kit is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation; either version 2 of the
## License, o... | jalavik/harvesting-kit | harvestingkit/oup_package.py | Python | gpl-2.0 | 11,973 | [
"VisIt"
] | 82824a1f5477a405f24a9a91ae1d876e43bf5687b41e28df7b2769501a789f31 |
# Copyright 2014 Roberto Brian Sarrionandia
#
# 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 t... | sarrionandia/tournatrack | hub.py | Python | apache-2.0 | 2,036 | [
"Brian"
] | b0f43f32452c8c09490564c46bb62cf09af8268a3e0454d98f12a25029cc5dbb |
'''
Created on 2012-11-10
@author: Andre R. Erler
'''
## imports
from numpy import array, arange, zeros, diff
import os
import re
# netcdf stuff
from netcdf import Dataset, add_coord, copy_dims, copy_ncatts, copy_vars
# data root folder
from socket import gethostname
hostname = gethostname()
if hostname=='komputer':... | aerler/WRF-Tools | Python/archive/avgWRF_1979-1985.py | Python | gpl-3.0 | 8,602 | [
"NetCDF"
] | 26580b9213b8696a52a433d6d644b17010a1986df24385e68e8e82acb166a430 |
# Copyright 2014-2017 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernment... | dquartul/BLonD | __EXAMPLES/main_files/EX_14_sparse_slicing.py | Python | gpl-3.0 | 4,671 | [
"Gaussian"
] | 85727f22571cb8beb4e914cbbbf52b0dbcae07c927f4e288cab726b45a4cc8a7 |
"""
Functions for calculating the statistical significant differences between two dependent or independent correlation coefficients.
The Fisher and Steiger method is adopted from the R package http://personality-project.org/r/html/paired.r.html
and is described in detail in the book 'Statistical Methods for Psychology... | se4u/mvlsa | src/MRDS/find_lc_spearman_significance.py | Python | mit | 6,244 | [
"MOE"
] | ce501608716d972af3447091fbd16013044cd3e241cae6482b85513f14bd8056 |
# Copyright (C) 2011, Thomas Leonard
# See the README file for details, or visit http://0install.net.
import sys, os, socket, ssl
from zeroinstall import _
from zeroinstall.injector import download
from zeroinstall.support import ssl_match_hostname
if sys.version_info[0] > 2:
from urllib import request as urllib2
... | linuxmidhun/0install | zeroinstall/injector/_download_child.py | Python | lgpl-2.1 | 4,895 | [
"VisIt"
] | 326ded17c832655da3404b732ee205dbb3f0eaeb355876991daabe7be2b6a6a8 |
# -----------------------------------------------------------------------------
# User configuration
# -----------------------------------------------------------------------------
dataset_destination_path = '/Users/seb/Desktop/vtk_data_prober'
# ----------------------------------------------------------------------... | Kitware/arctic-viewer | scripts/examples/vtk/samples/wavelet-raw-data-prober.py | Python | bsd-3-clause | 942 | [
"VTK"
] | 4203ac4bfa6012453e4fced6f979aaf19774bfb27634e118343c23f70fe8ec99 |
import numpy
from .window import FindResampler
def lic(vectors, kernel, length, ds, resampler=None, texture=None, normalize=True):
""" Line Intergral Convolution for visualizing vector fields.
The vectors must be normalized to norm of 1.0 for LIC to give a reasonable
image.
The image look... | rainwoodman/pypm | pmesh/lic.py | Python | gpl-3.0 | 2,449 | [
"Gaussian"
] | 02f95bb0a2e76df644ebc98f841995069890baa5eee7650d18d5ea3fd8fb5468 |
# Copyright (c) 2001-2014, Canal TP and/or its affiliates. All rights reserved.
#
# This file is part of Navitia,
# the software to build cool stuff with public transport.
#
# Hope you'll enjoy and contribute to this project,
# powered by Canal TP (www.canaltp.fr).
# Help us simplify mobility and open public tr... | stifoon/navitia | source/jormungandr/jormungandr/utils.py | Python | agpl-3.0 | 6,879 | [
"VisIt"
] | 1ed548a0cb930cb65f35e7d4652a90ca965aa93d01e56c365cb3ddc84a43ed5c |
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License versi... | anksp21/Community-Zenpacks | ZenPacks.AndreaConsadori.Funkwerk/ZenPacks/AndreaConsadori/Funkwerk/modeler/plugins/FunkwerkDeviceMap.py | Python | gpl-2.0 | 1,330 | [
"VisIt"
] | abe2d7dcb2592c1fd91c5728c9ab9b068d1971c0e2a1bceb2debe5e1c98099cf |
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | yugangw-msft/azure-cli | src/azure-cli/azure/cli/command_modules/appservice/tests/latest/test_webapp_commands_thru_mock.py | Python | mit | 21,363 | [
"ASE"
] | 98992450e6580e7586f6fb125efe325466ac8b5e3d9ac1419999389bea26160b |
#!/usr/bin/env python
#
#
# Copyright (c) 2013, Georgia Tech Research Corporation
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copy... | gt-ros-pkg/hrl-haptic-manip | hrl_dynamic_mpc/src/run_controller.py | Python | apache-2.0 | 53,035 | [
"Gaussian"
] | e7375b43216e4a31f5615b682e053021e9f59e3797f55f619dc5e10ad6f2e80a |
"""
C preprocessor nodes supported by ctree.
"""
from ctree.nodes import CtreeNode
class CppNode(CtreeNode):
"""Base class for all C Preprocessor nodes in ctree."""
def codegen(self, indent=0):
from ctree.cpp.codegen import CppCodeGen
return CppCodeGen(indent).visit(self)
def label(sel... | ucb-sejits/ctree | ctree/cpp/nodes.py | Python | bsd-2-clause | 1,133 | [
"VisIt"
] | 189e8e9045fd25bbbd07fe5753466585bc0b1357778dacd4872be9d63b051312 |
#!/usr/bin/env python3
#
# Copyright 2014 Blender 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 l... | hksonngan/cuew | auto/cuew_gen.py | Python | apache-2.0 | 17,217 | [
"VisIt"
] | 44789d1b88732dcce92ccaf6862dbd0d82ac12b107781e4680deee434724f5c8 |
import sys
import os
sys.path.insert(0, os.environ["QUEX_PATH"])
from quex.blackboard import setup, \
E_Compression
import quex.blackboard as blackboard
from quex.input.command_line.GetPot import GetPot
import quex.input... | coderjames/pascal | quex-0.63.1/quex/input/command_line/core.py | Python | bsd-2-clause | 23,342 | [
"VisIt"
] | 0fa9cb02fc13da0002814c6227c5bee7fb4d41eb1eb267a459616f18d5ad650f |
from Bio import Entrez # to access NCBIs Genebank database
class BlastHit(object):
'''
Object that contains all data about a particular Hit
'''
def __init__(self, hit):
'''
Notice: some of the properties included here do not appear in the short tabular BLAST representation. If one ... | Public-Health-Bioinformatics/blast_comparison | BlastHit.py | Python | mit | 8,029 | [
"BLAST"
] | 13bca775e6d9719662c390d02490cd3cae3434ea79fecdf0253674b52eb2ff9c |
"""
Views for the verification flow
"""
import datetime
import decimal
import json
import logging
import urllib
from pytz import UTC
from ipware.ip import get_ip
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.mail import send_mail
from django.core.urlresolv... | nttks/edx-platform | lms/djangoapps/verify_student/views.py | Python | agpl-3.0 | 60,737 | [
"VisIt"
] | 1c19196f918f86dbd4fd23e2f9b8914060057f21c654fa6ae4b11b04301063ef |
# 3D example of viewing aggregates from SA using VTK
from pyamg.aggregation import standard_aggregation
from pyamg.vis import vis_coarse, vtk_writer
from pyamg.gallery import load_example
# retrieve the problem
data = load_example('unit_cube')
A = data['A'].tocsr()
V = data['vertices']
E2V = data['elements']
# perfor... | pombreda/pyamg | Examples/VisualizingAggregation/demo2.py | Python | bsd-3-clause | 1,338 | [
"ParaView",
"VTK"
] | 467399d1cc41b95e1fa6f2d8722d1083beb8c0b6acb93f64e271bc96baf47f93 |
# coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
Module implementing an XYZ file object class.
"""
__author__ = "Shyue Ping Ong"
__copyright__ = "Copyright 2012, The Materials Project"
__version__ = "0.... | migueldiascosta/pymatgen | pymatgen/io/xyz.py | Python | mit | 2,750 | [
"pymatgen"
] | f5373d75ac47535593aac3f665c1e2ab311523a2cd27fd23dcf30958f60c6dab |
# -*- coding:UTF-8 -*-
#
# Define ENSO metrics collections as a function of science question/realm
#
# Draft version
#
# Define metrics collections
def defCollection(mc=True):
# Name, list of metrics
metrics_collection = {
'ENSO_perf': {
'long_name': 'Metrics Collection for ENSO performanc... | eguil/ENSO_metrics | lib/EnsoCollectionsLib.py | Python | bsd-3-clause | 88,341 | [
"Gaussian",
"NetCDF"
] | ed800910a9d8bef02830e39fdf035961617ecad6c6ec1465dc74baf4b4a22261 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.