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
# This module contains interfaces to external visualization programs # and a visualization base class # # Written by Konrad Hinsen # last revision: 1999-6-21 # """This module provides visualization of chemical objects and animated visualization of normal modes and sequences of configurations, including trajectories. V...
fxia22/ASM_xf
PythonD/site_python/MMTK/Visualization_win32.py
Python
gpl-2.0
15,239
[ "VMD" ]
a403d72bea6589ee15589b13384a4ecb84e1f09ab2e4cec172b67249c13c7da1
""" An avar is a facial control unit inspired from The Art of Moving Points. This is the foundation for the facial animation modules. """ import logging import pymel.core as pymel from omtk.core import classCtrl from omtk.core import classModule from omtk.core import classNode from omtk.models.model_ctrl_linear impor...
SqueezeStudioAnimation/omtk
python/omtk/modules/rigFaceAvar.py
Python
mit
39,364
[ "Brian" ]
b06e610dbd5c16f2e5ed102a225e4b5b09ef6f8ec8be6827e35b5f681539cd6e
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-talent
tests/unit/gapic/talent_v4beta1/test_profile_service.py
Python
apache-2.0
110,728
[ "Octopus" ]
658a0ff0f834dc3bad9acacb90eec4ce6aa855465eb82951e6b52e39a21e4f43
__author__ = 'Alexander Weigl' from unittest import TestCase import msml.sorts as S class ConversionTest(TestCase): def test_bool(self): self.assertTrue(S._bool("on")) self.assertTrue(S._bool("yes")) self.assertTrue(S._bool("true")) self.assertTrue(S._bool("True")) self.a...
CognitionGuidedSurgery/msml
src/msmltest/conversions.py
Python
gpl-3.0
1,385
[ "VTK" ]
6fa0397d85aca78da21e13e11cd731b9418fa4a8cc29d62dc33dbdde46e9c6fc
# Copyright 2016: # * Jim Unroe KC9HI, <rock.unroe@gmail.com> # * Pavel Milanes CO7WT <pavelmc@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, either version 2 of the License, or # ...
tylert/chirp.hg
chirp/drivers/vgc.py
Python
gpl-3.0
49,667
[ "Amber" ]
cc09a52834e5b41cb3a2f5d170f168bff46f9566b5015cb8e8569c8b87b24cbd
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
MDAnalysis/mdanalysis
package/MDAnalysis/coordinates/base.py
Python
gpl-2.0
78,557
[ "MDAnalysis" ]
8ac7d9560de2297a4af2222fc28b35e06b8a53855fdd75d00c17157208b96905
# -*- coding: utf-8 -*- # pyQchem - Input/Output-Tools for Q-Chem # Copyright (c) 2014, Andreas W. Hauser # 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 ...
EhudTsivion/QCkit
physical_constants.py
Python
lgpl-3.0
22,049
[ "Q-Chem" ]
13a4c1d1c6a6ef233d34fff2b1b42543e12db3a8e90a0a75c97dce0b9b091784
"""Creating mock dataframes/series for testing.""" from typing import List, Union import numpy as np import pandas as pd def create_qmc_frame(rng, cols: List[str], means: List[float], sine_periods: List[float], noise_facs: List[float], frac_not_convergeds: Union[int, List[flo...
hande-qmc/hande
tools/pyhande/tests/create_mock_df.py
Python
lgpl-2.1
9,691
[ "Gaussian" ]
f4b47e6d4af7aec11095e84f0fa24258bdd9039a729737f2bece4c4581e9e36b
#!/usr/bin/env python """Installer for gemini: a lightweight db framework for disease and population genetics. https://github.com/arq5x/gemini Handles installation of: - Required third party software - Required Python libraries - Gemini application - Associated data files Requires: Python 2.7 (or 2.6 and argparse),...
heuermh/gemini
gemini/scripts/gemini_install.py
Python
mit
18,448
[ "Galaxy", "pysam" ]
f143997a7f707f60c5a71cd101e416da8b5e6470ed64c3dd19671f7d8878e2c8
#!/usr/bin/env python """Run all of the servers required to use PennDOT cameras locally. If this script succeeds, visiting http://localhost:1776/lat/lng/num will return JSON describing a list of PennDOT cameras. Cameras are returned in order of increasing distance from the given lat/lng. num is the number of cameras...
krismolendyke/PennDOT-Traffic-Camera-API
run.py
Python
mit
1,824
[ "VisIt" ]
c27ead846d27e10c4722e6b581b528959db821d8179fd6048df39d91ec4eb833
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012-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 General Public License as published by ## the Free Software Fou...
andrebellafronte/stoq
stoqlib/gui/test/test_loanitemeditor.py
Python
gpl-2.0
3,091
[ "VisIt" ]
463826b1014a80eff4de657ea12e7b5f185e7fd0cd2c713088edd8915a0a94f8
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Package for analysis of magnetic structures. """ from pymatgen.analysis.magnetism.analyzer import *
mbkumar/pymatgen
pymatgen/analysis/magnetism/__init__.py
Python
mit
215
[ "pymatgen" ]
581cdaacd312c7d356b6e4cafff146a8200cc0803121cb289d00624c68b4bb1b
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
googleapis/python-appengine-admin
tests/unit/gapic/appengine_admin_v1/test_versions.py
Python
apache-2.0
81,900
[ "Octopus" ]
abe9d4f1ce49c28cb671abc79523d95b855863f7b751a1df192f6e98d9de715a
# # Pyrex - Parse tree nodes for expressions # import cython from cython import set cython.declare(error=object, warning=object, warn_once=object, InternalError=object, CompileError=object, UtilityCode=object, StringEncoding=object, operator=object, Naming=object, Nodes=object, PyrexTyp...
bzzzz/cython
Cython/Compiler/ExprNodes.py
Python
apache-2.0
303,913
[ "VisIt" ]
f07631408d52a1233aaa39bbaadda9d1040f13639e54a33393c5e53ff21153b8
# -*- coding: utf-8 -*- """ =========================================================================== Crystal cell classes (:mod:`sknano.core.crystallography._xtal_cells`) =========================================================================== .. currentmodule:: sknano.core.crystallography._xtal_cells """ from ...
androomerrill/scikit-nano
sknano/core/crystallography/_xtal_cells.py
Python
bsd-2-clause
13,580
[ "CRYSTAL" ]
1e838b1f522c2712b04b4bbb1bbb5ea788b2cc9da6b31c8e4c2b3a43872dc854
# # # # # # wrap downscaler for running on slurm # # # # # def run_model( fn, base_dir, variable, model, scenario, units, metric, level=None, level_name=None ): import os, subprocess head = '#!/bin/sh\n' + \ '#SBATCH --ntasks=32\n' + \ '#SBATCH --nodes=1\n' + \ '#SBATCH --ntasks-per-node=32\n' + \ '#SBA...
ua-snap/downscale
snap_scripts/downscaling_v2/wrap_downscaler_cmip5_slurm_tem_re-run-hur_Aug2018_helene.py
Python
mit
2,362
[ "NetCDF" ]
2e0238ceffaeb554aa7603d7a3612013b8cfcb3568587b61730a113a6f8aaacb
# -*- coding: utf-8 -*- # Copyright (C) 2009-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later ve...
FedoraScientific/salome-hexablock
doc/test_doc/pipe/pipes.py
Python
lgpl-2.1
1,380
[ "VTK" ]
da1037edce4e640eec272725799d4f1182d65376e2c0d89c645c865df513378e
#!/usr/bin/env python ################################################################ # # kim_compare_lammps # ################################################################ # # Copyright 2018 the potfit development team # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this softw...
potfit/potfit
util/kim/kim_compare_lammps/kim_compare_lammps.py
Python
gpl-2.0
6,762
[ "ASE", "LAMMPS", "OpenKIM" ]
c56008fb8f2a93c6802a6b1ae1b0815419bbede5c29495e40a0e6b9160326ecc
#!/usr/bin/env python import vtk from vtk.test import Testing from vtk.util.misc import vtkGetDataRoot VTK_DATA_ROOT = vtkGetDataRoot() reader = vtk.vtkSimplePointsReader() reader.SetFileName(VTK_DATA_ROOT + "/Data/points.txt") mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(reader.GetOutputPort()) actor ...
HopeFOAM/HopeFOAM
ThirdParty-0.1/ParaView-5.0.1/VTK/IO/Geometry/Testing/Python/TestSimplePointsReader.py
Python
gpl-3.0
646
[ "VTK" ]
aa3be62f90966160a894d0c15145ebf33d7b659d59c00fedbf2d24b6d8106919
# # @file TestEventAssignment.py # @brief SBML EventAssignment unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically by converting th...
TheCoSMoCompany/biopredyn
Prototype/src/libsbml-5.10.0/src/bindings/python/test/sbml/TestEventAssignment.py
Python
bsd-3-clause
4,597
[ "VisIt" ]
0f0d64355def3eda9ace71f508990457a58c5f395e31fefe1ae53b4baea3eef1
#!/nfs/farm/g/lsst/u1/software/redhat6-x86_64-64bit-gcc44/anaconda/2.3.0/bin/python ## setupVisit.py - Set up for a run of phoSim for a single visit ## ## Required env-vars ## TW_ROOT ## TW_CONFIGDIR ## TW_ICFILE ## TW_SIXDIGSTREAM import os,sys,shutil print '\n\nWelcome to setupVisit.py\n========================\n...
rbiswas4/Twinkles
workflows/Twinkles-phoSim/setupVisit.py
Python
mit
4,656
[ "VisIt" ]
c6474543825c9ff14b187a89003562ce6afc507e0e1b94a5f5e6050098b59d07
''' Collect all the local variables (including parameters), attaching them to the containing defintion. ''' from ..util.dispatch import method_store, multimethod from .. import node class CollectLocals(object): _store = method_store() def __init__(self): self.definition = None @multimethod(_sto...
dacjames/mara-lang
bootstrap/mara/passes/collect_locals.py
Python
mit
918
[ "VisIt" ]
90aefa04457640c552f0f45baf7ec23490667576a111d3dd5f851b49999aa564
## # Copyright 2009-2018 Ghent University # # This file is part of EasyBuild, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be), # Flemish Research Foundation (F...
bartoldeman/easybuild-easyblocks
easybuild/easyblocks/g/gamess_us.py
Python
gpl-2.0
15,008
[ "GAMESS" ]
6c16513d990316f99649635f470cda4415b3a663d3561d3851108b8eef7309f7
### Refer to Chulkov and Echenique, PRB 67, 245402 (2003) for comparison of results ### import numpy as np import sys import time from math import sqrt from ase import Atoms, Atom from ase.visualize import view from ase.units import Bohr from ase.lattice.surface import * from ase.parallel import paropen from gpaw impo...
robwarm/gpaw-symm
gpaw/test/big/response/be_1ml_surf_response.py
Python
gpl-3.0
2,083
[ "ASE", "GPAW" ]
6ec5291b534187aa41b7bcb0bd53d3cf38166aaa203119fc031e810055547fd6
# sql/compiler.py # Copyright (C) 2005-2021 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php """Base SQL and DDL compiler implementations. Classes provided include: :class:`....
zzzeek/sqlalchemy
lib/sqlalchemy/sql/compiler.py
Python
mit
184,809
[ "VisIt" ]
0e909e215d2b1d61fc2b4f89082741509a6ddcdd4fb0c506edd487d23cf95f46
from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import time from tornado import gen # We change the import name otherwise sphinx tries # to compile the tornado doc and fails from tornado.ioloop import IOLoop as _IOLoop from DIRAC.Config...
yujikato/DIRAC
src/DIRAC/ConfigurationSystem/private/TornadoRefresher.py
Python
gpl-3.0
3,721
[ "DIRAC" ]
9b0463810dd52092db49dcf1f949179b7e0926a5af45e11a3cfb5ae4ee0a6763
import math class PyNNet(object): def __init__(self, neuronCounts, connections, tanh = True): self.neuronCounts = neuronCounts self.connections = connections self.tanh = tanh self.values = None def calc(self, inputs): if len(inputs) != self.neuronCounts[0]: ...
jeyj0/PyNNet
PyNNet.py
Python
gpl-3.0
1,803
[ "NEURON" ]
f96ae102ecadc2233cf01466b7d1dace0c3d4f49faa7e036ec7219c9074cba35
# Copyright: (c) 2013, James Cammarata <jcammarata@ansible.com> # Copyright: (c) 2018-2021, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type import os.path import re impo...
atosorigin/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
78,570
[ "Galaxy" ]
ba2edd8a506c7b5c988819dbdbb1f04c666e7e13329fc3e0f5746bba128e481e
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
mdrumond/tensorflow
tensorflow/contrib/gan/python/eval/python/classifier_metrics_impl.py
Python
apache-2.0
17,413
[ "Gaussian" ]
4764e50addc392d144b1b92b57878511fb7e69c532b833a83389f5657b2dc688
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2017, Brian Coca <bcoca@ansible.com> # (c) 2017, Adam Miller <admiller@redhat.com> # (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __m...
mheap/ansible
lib/ansible/modules/system/sysvinit.py
Python
gpl-3.0
13,274
[ "Brian" ]
7a61cd44f6be05b3200dede240910595ac2ad4bb6e5f80a21324b401ba8d657d
#! /usr/bin/env python3 # dialog.py --- A Python interface to the ncurses-based "dialog" utility # -*- coding: utf-8 -*- # # Copyright (C) 2002, 2003, 2004, 2009, 2010, 2013, 2014 Florent Rougon # Copyright (C) 2004 Peter Åstrand # Copyright (C) 2000 Robb Shecter, Sultanbek Tezadov # # This library is free software;...
pidgornyy/mastermind
dialog.py
Python
gpl-2.0
146,865
[ "VisIt" ]
2e8e556373c423616caa62c422ba8483a26ecf0ebfaba6ac8623465cd4db223c
# Copyright (c) 2009-2019 The Regents of the University of Michigan # This file is part of the HOOMD-blue project, released under the BSD 3-Clause # License. """Manifolds.""" from hoomd.md import _md from hoomd import _hoomd from hoomd.operation import _HOOMDBaseObject from hoomd.data.parameterdicts import ParameterD...
joaander/hoomd-blue
hoomd/md/manifold.py
Python
bsd-3-clause
12,659
[ "HOOMD-blue" ]
dd23797b7d1158a8e4f435263d9590c7eb96b460a83fbfffaa0682fb232f3348
import ocl import camvtk import time import vtk import datetime import math import random import gc def drawVertex(myscreen, p, vertexColor, rad=1): myscreen.addActor( camvtk.Sphere( center=(p.x,p.y,p.z), radius=rad, color=vertexColor ) ) def drawEdge(myscreen, e, edgeColor=camvtk.yellow): p1 = e[0] p2 = ...
AlanZatarain/opencamlib
scripts/voronoi/voronoi_6_dt.py
Python
gpl-3.0
7,782
[ "VTK" ]
03babe39e3f7a0fb1e6f13f20f02b7d2ae309c0b91609d3a4238e9dc50e04b65
# -*- coding: utf-8 -*- from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views import defaults as default_views from django.views.generic import TemplateView urlpatterns = [ url(settings...
Nikola-K/django-template
project_name/urls.py
Python
mit
1,264
[ "VisIt" ]
1ba5a1e21cc5a5ae82324830b368f680fc5a72456863382ed1728f22c4b7e623
# 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 use ...
vongazman/libcloud
libcloud/security.py
Python
apache-2.0
2,940
[ "VisIt" ]
095c09a8021a5bb5727c2e6755e065572eaa7052a041bbec58775c1c04844184
import json from tracebin.utils import dict_merge class BaseSerializer(object): ALL_SERIALIZERS = {} def __init__(self, obj): self.obj = obj @classmethod def register(cls, subcls): assert subcls.name not in cls.ALL_SERIALIZERS cls.ALL_SERIALIZERS[subcls.name] = subcls ...
alex/tracebin
client/tracebin/serializers.py
Python
bsd-3-clause
2,631
[ "VisIt" ]
70cadafa1c6dc238079f3f605c5a42ddeef7db2e4dab14a06f866c1738ceb0ac
#!/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/x2c/sfx2c1e_hess.py
Python
apache-2.0
16,950
[ "PySCF" ]
dba18e9b3fed5940253dcfb3e36a026f248c7d5beadd23d42e6be360c39745db
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
hfp/tensorflow-xsmm
tensorflow/python/autograph/pyct/transformer_test.py
Python
apache-2.0
11,190
[ "VisIt" ]
64636419b03343417495c2e1925a34e55f326c451f6669c4f668e5845530e7e9
""" Check for IOOS-approved attributes """ import re from numbers import Number import validators from cf_units import Unit from lxml.etree import XPath from owslib.namespaces import Namespaces from compliance_checker import base from compliance_checker.acdd import ACDD1_3Check from compliance_checker.base import (...
ocefpaf/compliance-checker
compliance_checker/ioos.py
Python
apache-2.0
71,172
[ "NetCDF" ]
92ccfc040f3d719bab2d57a0f5ba048459586c731afb271192a6e7f287b61dcb
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module provides classes to define everything related to band structures. """ import numpy as np import re import math import itertools import collections import warnings from monty.json import MSONab...
gVallverdu/pymatgen
pymatgen/electronic_structure/bandstructure.py
Python
mit
49,932
[ "CRYSTAL", "pymatgen" ]
9e71ae63ff66b1e30e293f3a4ed4a7a8cdddba71102e666b90872bf9ce891cb8
""" Run VASP tests to ensure that relaxation with the VASP calculator works. This is conditional on the existence of the VASP_COMMAND or VASP_SCRIPT environment variables. """ from ase.test.vasp import installed assert installed() import numpy as np from ase import io # QuasiNewton nowadays is an alias for BFGSLine...
grhawk/ASE
tools/ase/test/vasp/vasp_Al_volrelax.py
Python
gpl-2.0
2,210
[ "ASE", "VASP" ]
ce8b30596bb498f624f0918af7e6a8576e5cf8713acce23dca5533fd7a59a524
# Copyright (c) 2014 OpenStack Foundation. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
nikesh-mahalka/cinder
cinder/hacking/checks.py
Python
apache-2.0
12,429
[ "VisIt" ]
2ae56716fe2c9a7ad157d3822aaa39764e476e6554abdf88bda878b6bab6cc4d
#!/usr/bin/env python from __future__ import print_function import sys import datetime import argparse #--------------------------------------------------------------------------------------------------- def amber2playmol( inp, out ): atoms = {} mass = {} note = {} params = {} bond = [] angle = [] di...
atoms-ufrj/playmol
src/playmoltools.py
Python
gpl-3.0
9,945
[ "Amber", "CHARMM" ]
eee58f08214f569c76cf92838e4286e02137b8b60e59ff91c29b2130da57c80c
# -*- coding: utf-8 -*- """ Created on Thu Sep 21 16:29:34 2017 @author: ishort """ import math """ procedure to generate Gaussian of unit area when passed a FWHM""" #IDL: PRO GAUSS2,FWHM,LENGTH,NGAUS def gauss2(fwhm, length): #length=length*1l & FWHM=FWHM*1l #NGAUS=FLTARR(LENGTH) ...
sevenian3/ChromaStarPy
Gauss2.py
Python
mit
996
[ "Gaussian" ]
29308bd0aecf19ef0088e72ce41d898182074292abc587cfacf8981b8ab7911d
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Ruggero Marchei <ruggero.marchei@daemonzone.net> # (c) 2015, Brian Coca <bcoca@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by #...
dmillington/ansible-modules-core
files/find.py
Python
gpl-3.0
13,155
[ "Brian" ]
8e894b0448ea9bba4fa39a4e5f7e7cad52d9f5d3257ffd211e052acc27cc0e2f
import os import PythonQt from PythonQt import QtCore, QtGui from director import callbacks from director import drcargs import director import director.applogic as app import director.objectmodel as om import director.visualization as vis import director.vtkAll as vtk from director import jointcontrol from director im...
patmarion/director
src/python/director/roboturdf.py
Python
bsd-3-clause
19,657
[ "VTK" ]
5a0fe85bfc15bd0c11f20c007f0b4f2c9da439c29ab9c34a6335f71f3c07a9cb
#!/usr/bin/env python # # $Id: check_copyright.py 9317 2011-06-10 02:09:04Z nathan_george $ # # Proprietary and confidential. # Copyright $Date:: 2011#$ Perfect Search Corporation. # All rights reserved. # import sys, os buildscriptDir = os.path.dirname(__file__) buildscriptDir = os.path.abspath(os.path.join(buildscrip...
perfectsearch/sandman
code/buildscripts/codescan/check_copyright.py
Python
mit
7,857
[ "VisIt" ]
b7c39322de4f487e5b5784505e88d69dc07c60d22ca66055c9fc5bedc05b4ce2
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Program to create invitations """ def get_party_stats(families, table_size=6): """ Args: families (list): A list of families invited. table_size (int): Number of seats per table Returns: tuple: Total number of guests and total numb...
rrafiringa/is210-week-06-synthesizing
task_01.py
Python
mpl-2.0
1,018
[ "Amber" ]
d2ad60b77d45be9d671d01a1ea8e8d06e9cce714c3a21cfc79df3724e1dd01d4
# 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_0151_bse_h2b_uhf_rpa.py
Python
apache-2.0
2,074
[ "PySCF" ]
aa7676a9977ad8e5831f7af081749d2adeee2f2308373a2d0565c56e4975a41e
""" Various bayesian regression """ # Authors: V. Michel, F. Pedregosa, A. Gramfort # License: BSD 3 clause from math import log import numpy as np from scipy import linalg from ._base import LinearModel, _rescale_data from ..base import RegressorMixin from ..utils.extmath import fast_logdet from scipy.linalg import...
bnaul/scikit-learn
sklearn/linear_model/_bayes.py
Python
bsd-3-clause
25,564
[ "Gaussian" ]
e4314d10dee34a07434dbc8d5198246d5781f69798831cad73780842106bf01d
# Paperwork - Using OCR to grep dead trees the easy way # Copyright (C) 2014 Jerome Flesch # # Paperwork 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 # ...
Starch/paperwork
src/paperwork/frontend/util/canvas/__init__.py
Python
gpl-3.0
19,129
[ "FLEUR" ]
e45a623e4a13b3d453f1708d2de75ebd923f92fdad4273185ce439dfb98283b4
""" Script to convert output of chimeraCL simulation to VTK files. VTK files can be plotted by any appropriate viewer, I use Paraview. Preferrably should be ran from the simulation folder, e.g. where ./diags/ folder is located. Script creates the folder VTK where is stores the resuts. USAGE: ...
hightower8083/chimeraCL
chimera2VTK.py
Python
gpl-3.0
5,879
[ "ParaView", "VTK" ]
1e1c3be2a291ede6601b9fb5491f2e6b3c0ec8127436f74a29b951d2c5d1a613
from util import * from InputParameters import InputParameters from MooseObject import MooseObject class Tester(MooseObject): @staticmethod def validParams(): params = MooseObject.validParams() # Common Options params.addRequiredParam('type', "The type of test of Tester to create for this test.") ...
vityurkiv/Ox
python/TestHarness/testers/Tester.py
Python
lgpl-2.1
12,787
[ "VTK" ]
dc382d95392b13fa07066750cc4b85ad4b858fe4af6d8dbc5304019aee6da01b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os import tempfile from monty.json import MontyDecoder from pymatgen.io.vasp.sets import * from pymatgen.io.vasp.inputs import Poscar, Kpoints from pymatgen.core import Specie, Lattice, ...
dongsenfo/pymatgen
pymatgen/io/vasp/tests/test_sets.py
Python
mit
45,666
[ "BoltzTrap", "VASP", "pymatgen" ]
12e81372d2336ec7ab77791026e5a0b6c80c19f6bce6295e68ad21519d36cfe4
from __future__ import division from subprocess import call from matplotlib.ticker import AutoMinorLocator from matplotlib.ticker import MultipleLocator from matplotlib.ticker import FixedLocator from matplotlib.ticker import LogLocator from matplotlib.ticker import FormatStrFormatter from sets import Set import sy...
tripatheea/Riemann-Zeta
python/plots.py
Python
mit
7,343
[ "Gaussian" ]
43e658469534160aff570b6e6f19b7af3c15d6e427cc76b07a2e08d510981c42
# -*- coding: utf-8 -*- # # This file is part of cclib (http://cclib.github.io), a library for parsing # and interpreting the results of computational chemistry packages. # # Copyright (C) 2006-2014, the cclib development team # # The library is free software, distributed under the terms of # the GNU Lesser General Pub...
ghutchis/cclib
src/cclib/parser/jaguarparser.py
Python
lgpl-2.1
29,993
[ "Gaussian", "Jaguar", "cclib" ]
fbfa437953a3c34452e1ca21faad7cc1c5881129ad502eb803965c65e3c76019
""" -*- python -*- This script adding functions and fitting. It also demonstrates retreiving an ntuple from the histogram to do something with its contents. Author: Paul_Kunz@slac.stanford.edu $Id: function_ntuple.py,v 1.6 2006/04/17 17:32:09 pfkeb Exp $nt """ import sys from load_hippo import app, canv...
plasmodic/hippodraw
examples/function_ntuple.py
Python
gpl-2.0
2,272
[ "Gaussian" ]
6e0a5010eec25bd94bdd1d1b1ea3312c48c8e5c4f3077571e861b36b8e80092e
import tempfile from wsgiref.util import FileWrapper from django.core.cache import cache from django.http import StreamingHttpResponse from django.shortcuts import get_object_or_404, render from django.views.decorators.cache import cache_page from django.views.defaults import page_not_found from newtbase.models impor...
michal-stuglik/newtbase
newtbase/views.py
Python
gpl-2.0
7,090
[ "BLAST" ]
5e132e965176008785c301f2155ede67842f15b835d4ddc45bbb46c3441b4894
""" #;+ #; NAME: #; build_casbah_galaxies #; Version 1.0 #; #; PURPOSE: #; Module for buildling CASBAH galaxy database #; 02-Jan-2015 by JXP #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, division, unicode_literal...
profxj/xastropy
xastropy/casbah/load_casbah.py
Python
bsd-3-clause
1,837
[ "Galaxy" ]
4f072b59f7125bcf255cdfd54eec58336621eff0897d3e8f6ec877787bcedb0e
# -*- coding: utf-8 -*- """Single-dipole functions and classes.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # # License: Simplified BSD from copy import deepcopy import functools from functools import partial import re import numpy as np from .cov ...
pravsripad/mne-python
mne/dipole.py
Python
bsd-3-clause
60,225
[ "Mayavi" ]
b1c91138c6d49e2f37cb5e600d45e29b0ac548b93099974dd686ec2e82df0d8f
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # Copyright (C) 2010-2014 OpenERP s.a. (<http://openerp.com>). # # This program is free software: you ca...
fossoult/odoo
openerp/tools/misc.py
Python
agpl-3.0
45,511
[ "VisIt" ]
801eda1a473981ea401af4110c2d75fbc63ab83cf9d1227ceaf251935ac1036c
from __future__ import division import tensorflow as tf import numpy as np class CRBM(object): """CONVOLUTIONAL RESTRICTED BOLTZMANN MACHINE""" def __init__(self, name, fully_connected = True, v_height = 1, v_width = 1, v_channels = 784, f_height = 1, f_width = 1, f_number = 400, init_biases_H ...
arthurmeyer/Convolutional_Deep_Belief_Network
crbm_backup.py
Python
mit
27,267
[ "Gaussian" ]
23c80ae9db9b8dc0a80b9784048b6a00f4e66206f2b2e97402557e201d127674
"""Makes figure with PMM composites of extreme examples for MYRORSS model. PMM = probability-matched means "Extreme examples" include best hits, best correct nulls, worst misses, worst false alarms, high-probability examples (regardless of true label), and low-probability examples (regardless of true label). """ imp...
thunderhoser/GewitterGefahr
gewittergefahr/prediction_paper_2019/make_extreme_myrorss_figure.py
Python
mit
18,109
[ "Gaussian" ]
ac2893d45e8c6837df9876eeb93efa8d5159733553bdb87c209bb09d28bbe1fb
#/usr/bin/python # -*- coding:utf-8 -*- #----------------------------------------------- APPLICATION HEADER DEFINITION --------------------------------------- ## pyTOMTOM - Manage your TomTom ! ## http://pytomtom.tuxfamily.org ## dev : Thomas LEROY ## sorry for my bad english in comments... ## thanks to Philippe, Sunil...
albfan/pytomtom
share/pytomtom/src/pytomtom.py
Python
gpl-3.0
88,678
[ "VisIt" ]
9c8854a3e1c502d7a6a2ba2611d05d30992d71c111789c891fb11d2c102652d3
# -*- coding: utf-8; -*- # # This file is part of Superdesk. # # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license from unittes...
mdhaman/superdesk-aap
server/aap/macros/am_fronters_test.py
Python
agpl-3.0
35,554
[ "VisIt" ]
79d2611f4e1fe1181c8373c1e7b404873cdc65633e84f42532ac36e7abbaee58
''' Author: Bruno Santeramo <bruno.santeramo@ba.infn.it> Last Update: 26 dec 2013 Tested Versions: DIRAC v6r9p33 ''' ''' get input file from LFC sample tested for gridit VO ''' print "tested with VO gridit" print "job download a file using lfn:/" print "a script set LFC_HOST and get file from LFC" print "command: ...
SuperDIRAC/TESTDIRAC
sample-script/cli/input_from_LFC/input_from_LFC.py
Python
gpl-3.0
443
[ "DIRAC" ]
4a18900bce23fbafacf43b2a5413d404ee0c439e34777e4f5f617aa3aa884ef9
''' Created on 26.05.2013 @author: bronikkk ''' import ast import config import ti.mir import ti.visitor class Parser(object): def __init__(self, filename): self.mir = ti.mir.JoinMirNode() self.filename = filename with open(self.filename) as inputFile: self.ast = ast.parse(...
bronikkk/tirpan
ti/parser.py
Python
gpl-3.0
842
[ "VisIt" ]
24512b6aa680363e354b7a2cd08b25536c6426d118abcdb9d5deb490b33786fe
############################################################################### # Copyright 2015-2020 University of Florida. All rights reserved. # This file is part of UF CTS-IT's NACCulator project. # Use of this source code is governed by the license found in the LICENSE file. #######################################...
ctsit/nacculator
nacc/lbd/v3_1/fvp/builder.py
Python
bsd-2-clause
20,033
[ "VisIt" ]
a2013b79ca73cf1bbd5443c9e6a89ecc1ed3b29bbd8441bcd71b9174cebb10e3
#!/usr/bin/python from pymongo import * class ConnectionDB: def ConnectionDB(self): client = MongoClient('localhost',27017) db = client["octopus"] return db
AlissonMMenezes/Octopus
server/octopus/Octopus_Classes/ConnectionDB.py
Python
gpl-2.0
168
[ "Octopus" ]
00cdd18161800fb3da5de2c6227c0cef7670ee71678d0f09fef5937525c29ba3
#!/usr/bin/env python desc="""Report distance matrix between proteins. Dependencies: - Biopython, numpy & scipy """ epilog="""Author: l.p.pryszcz@gmail.com Bratislava, 28/04/2016 """ import os, sys, gzip import numpy as np from datetime import datetime from Bio import SeqIO from multiprocessing import Pool from scip...
lpryszcz/rclups
rclups.py
Python
gpl-3.0
8,441
[ "Biopython" ]
7ea52c58261c7213a04f60059524093a4fee0d4e874a544e26688d0b254136a6
#!/usr/bin/env python from radical.entk import AppManager from Sync import SynchronousExchange import os, time, pprint import radical.utils as ru import radical.analytics as ra import radical.entk as re import pickle # ------------------------------------------------------------------------------ # Set default verbosi...
radical-cybertools/radical.repex
old/repex/run.py
Python
mit
5,463
[ "Amber" ]
39ac1fafeaaa47ab803665c83a5bfe3858b4356d25964fbef7d88a7287ba002a
# -*- 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. """Test Moller-Plesset logfiles in cclib""" import os import unittest import numpy __filedir__ = os.path.realpath(os.p...
Schamnad/cclib
test/data/testMP.py
Python
bsd-3-clause
2,464
[ "cclib" ]
29c0bf5e66694a1f39ae60b45ccce1c74f44d20a6f1b86bc6d1eabc978dc0277
# -*- coding: utf-8 -*- ## ## test_rapidpy.py ## RAPIDpy ## ## Created by Alan D. Snow 2016. ## Copyright © 2015 Alan D Snow. All rights reserved. ## from datetime import datetime from filecmp import cmp as fcmp from netCDF4 import Dataset import os from pytz import timezone from shutil import copy import pytest ...
erdc-cm/RAPIDpy
tests/test_rapidpy.py
Python
bsd-3-clause
46,814
[ "NetCDF" ]
a419e4e099aedcc2a887bf18c99f397c9a29cbe4d050b6cd481f5ce11ac824fb
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """Setup.py for pymatgen.""" import platform import sys from typing import List import numpy from setuptools import Extension, find_namespace_packages, setup extra_link_args: List[str] = [] if sys.platform.startswith("win")...
materialsproject/pymatgen
setup.py
Python
mit
8,262
[ "ABINIT", "ASE", "CP2K", "CRYSTAL", "FEFF", "Gaussian", "LAMMPS", "NWChem", "VASP", "VTK", "pymatgen" ]
35afc88d9b4e5e4d13aabf875fe06901b77ee0f7a229e74ff789ad4ea6e46095
import os import argparse import os.path as op import shutil from collections import namedtuple import pysam try: from seqcluster import prepare_data as prepare from seqcluster import make_clusters as main_cluster from seqcluster.libs.inputs import parse_ma_file from seqcluster.libs import parse excep...
fw1121/bcbio-nextgen
bcbio/srna/group.py
Python
mit
3,686
[ "pysam" ]
be6f400702bacc3b17bbb34ce74d5331107e2c4e8c7b0244692c152682ae48cf
# OpenFermion plugin to interface with Psi4. # Copyright 2017 The OpenFermion Developers. # # 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 Foundation, either version 3 of the License, or # (at your ...
quantumlib/OpenFermion-Psi4
openfermionpsi4/__init__.py
Python
lgpl-3.0
862
[ "Psi4" ]
4a014cf078889498f6351466566e9a98a1be9bdf1c99223afa25b89e1fe5a998
#!/usr/bin/env python # -*- coding: utf-8 -*- #-------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: ...
fabio-otsuka/invesalius3
invesalius/data/viewer_slice.py
Python
gpl-2.0
66,618
[ "VTK" ]
1d6ccef86ce8d4422945e4d5b32f73e1875ebedd5c6b11e08aa704cddba6dd62
#!/usr/bin/env python # Copyright (C) 2016-2017 # Jakub Krajniak (jkrajniak at gmail.com) # # This file is part of ChemLab. # # ChemLab 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 ...
cgchemlab/chemlab
src/start_simulation.py
Python
gpl-3.0
47,771
[ "Gaussian", "Gromacs" ]
9fb0f70ab504950b7fb54bb666271d41a505612f9ea228f614c22f164ae355c4
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import numpy as np import SimpleITK as sitk import tempfile import shutil from itertools import product from . import util, preprocessor, plotter def register_brain(atlas, img, spacing=None, outdir=None): """Register 3D mouse brai...
neurodata/ndreg
ndreg/ndreg.py
Python
apache-2.0
24,262
[ "VTK" ]
0fe98e9d11a0983fdfb2c46d4dc5257d6b25523ff32904ab9805caf4ced975cf
""" this file does variant calling for RNAseq """ #============= import required packages ================= import os import sys import subprocess sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) # disable buffer from Modules.f00_Message import Message from Modules.f01_list_trim_fq import list_files_human,Trimmoma...
shl198/Projects
VariantCall/04_Human_GATK_RNA_vari_call.py
Python
mit
7,140
[ "BWA" ]
afc7ac257b8a557aee213746f49b5fe967ef6ab20daabdd097f1900113aa39da
# -*- coding: UTF-8 -*- # # Copyright (c) 2008, Yung-Yu Chen <yyc@solvcon.net> # # 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 copyrigh...
yungyuc/solvcon
setup.py
Python
bsd-3-clause
11,344
[ "VTK" ]
ddc5dc2c0677b8737058645c5c99be5ef95824c0d4128c41fb4a62355d440423
# mako/ast.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """utilities for analyzing expressions and blocks of Python code, as well as generating Python from AS...
pcu4dros/pandora-core
workspace/lib/python3.5/site-packages/mako/ast.py
Python
mit
6,635
[ "VisIt" ]
99944e4dbfea943696fb2afc27785802fbead25850ccf3b37497e7292ed4ccfc
# -*- 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/sundayplusimport.py
Python
gpl-2.0
8,696
[ "Brian" ]
30577233f4012b5c72adce28e61bd81af0ce513e961da7f340b3b643d5394211
""" @package Utilities @brief Contains several usefull functions to interact with OS environement and to parse files @copyright [GNU General Public License v2](http://www.gnu.org/licenses/gpl-2.0.html) @author Adrien Leger - 2014 * <adrien.leger@gmail.com> * <adrien.leger@inserm.fr> * <adrien.leger@univ-na...
a-slide/Isis
src/Utilities.py
Python
gpl-2.0
8,630
[ "BWA", "Biopython" ]
06a21e944bdc6df558803cc74a1e32b20a9615302154802481ababf62d11635a
import sys from select import select #from rdkit import Chem import data_process import groups import rotor import symmetry_no import gauche import h_repel import optical_isomer import bond_dissociation import all_classes import create_dotlst import create_dotdoc ################################# def main_prog (line...
mcsanjay/Program-input-to-THERM
main.py
Python
gpl-3.0
6,243
[ "RDKit" ]
124cacac0bce0cd4c764607acb7c1198f928c5926fb0230b12a6c831a3431ed0
# -*- coding: utf-8 -*- # # This file is part of Sequana software # # Copyright (c) 2016 - Sequana Development Team # # File author(s): # Thomas Cokelaer <thomas.cokelaer@pasteur.fr> # # Distributed under the terms of the 3-clause BSD license. # The full license is in the LICENSE file, distributed with this s...
sequana/sequana
sequana/salmon.py
Python
bsd-3-clause
8,976
[ "Bowtie" ]
077e1a46fe88e1c354c28db9c3c061c8bf36767d7bfd304aad02aed0fdac6710
# -*- coding: utf-8 -*- """ pysteps.io.importers ==================== Methods for importing files containing two-dimensional radar mosaics. The methods in this module implement the following interface:: import_xxx(filename, optional arguments) where **xxx** is the name (or abbreviation) of the file format and f...
pySTEPS/pysteps
pysteps/io/importers.py
Python
bsd-3-clause
54,566
[ "NetCDF" ]
25d37770e6ea0512441f33448a87db142ff667b28db9b03917449b5dbfd60380
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
lakshmi-kannan/st2
st2common/st2common/hooks.py
Python
apache-2.0
14,743
[ "GULP" ]
da0442b7b893bdb584252aeaa767be5ef2a93bd2166bc9e8ad902062150c631b
import unittest, time, sys sys.path.extend(['.','..','../..','py']) import h2o, h2o_cmd, h2o_import as h2i, h2o_exec as h2e class Basic(unittest.TestCase): def tearDown(self): h2o.check_sandbox_for_errors() @classmethod def setUpClass(cls): h2o.init() @classmethod def tearDownClas...
vbelakov/h2o
py/testdir_single_jvm/test_GLM2_model_key_unique.py
Python
apache-2.0
1,980
[ "Gaussian" ]
9137b69987b83f632bc7400288599aef7b3a7ea977e942332cc3dcc8834472ae
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2012 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 General Public License as published by ## the Free Software Foundati...
andrebellafronte/stoq
stoqlib/gui/test/test_workorderpackagewizard.py
Python
gpl-2.0
3,033
[ "VisIt" ]
1a3751c46e30ea9ebe0fbaf5bd6400ba8bf9e4e36b1a10dd0dc426c39dae77f8
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 19 15:11:09 2017 @author: buckler """ import numpy as np import hashlib import fnmatch np.random.seed(888)#for experiment repetibility import CNN_classifier as cnn import BIN_classifier as bin import dataset_manupulation as dm from os import path, ...
vespero89/Snoring_Challenge
CNN_Snoring_hierarchic/main_experiment_SNORING_hier.py
Python
gpl-3.0
13,775
[ "Gaussian" ]
366c44a488723efad6ccbf7631897c9205e5478c238c0867ebf794dba93363cb
# -*- coding: utf-8 -*- """ Created on Mon Dec 1 14:22:20 2014 @author: micha Essentially a python wrapper for GeNN functionality. """ from string import Template import time import numpy from ..templates import model class GennNetwork(object): """ This class handles the translation of the network definitio...
Huitzilo/pynn-genn
genn/nittygritty/genn_network.py
Python
mit
11,284
[ "NEURON" ]
1322409c8f51ca0be3e21da75ce9c07ee2e0fa9d6b36583b9bb9f8e67163a468
from collections import defaultdict import csv import MDAnalysis from MDAnalysis.analysis import hbonds from timeit import default_timer as timer from rdkit import Chem import rdkit import numpy as np import os class HBonds(object): """ This module analyses hydrogen bonds the ligand forms with the protein (ver...
ldomic/lintools
lintools/analysis/hbonds.py
Python
gpl-3.0
13,276
[ "MDAnalysis", "RDKit" ]
daa4244fa0d00c08bd6a2beb1d8af9de1da6a741955e8f22944d10cd094b8810
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Code is originally adapted from MILK: Machine Learning Toolkit # Copyright (C) 2008-2011, Luis Pedro Coelho <luis@luispedro.org> # License: MIT. See COPYING.MIT file...
kmike/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
32,489
[ "Brian" ]
d31f4e256d01210b2b652fdad695adc7a977160f979f88196e590ffcdd07cd92
# -*- coding: utf-8 -*- try: from selenium.webdriver import PhantomJS from contextlib import closing linkbucks_support = True except: linkbucks_support = False try: from urllib.request import urlsplit, urlparse except: from urlparse import urlsplit, urlparse import json import os import re imp...
pitunti/alfaPitunti
plugin.video.alfa/lib/unshortenit.py
Python
gpl-3.0
9,005
[ "ADF" ]
630da857ef7e21825719f1cfb95b1a72e40f7c61e1c15108c1c3f8ea8132fd53
# -*- coding: utf-8 -*- __author__ = 'Mikhail Pedrosa <mikhail.jose@hotmail.com> e Tiago AlvesTiago Alves <tiagoinformativa@gmail.com >' __description__ = 'Operações com Imagens - Histograma, Operações Pontuais, Lógicas, Aritméticas, Translação, Rotação e Escala' __version__ = '0.1' __date__ = '15/09/2014' fro...
mikhailpedrosa/sistmult
histograma.py
Python
gpl-2.0
10,917
[ "Gaussian" ]
3f5f61359ea13ca339179ad33da99630424e3cc36cb81cf9e2611930fcc74d3c
import cPickle import gzip import os, sys, errno import time import math import glob import struct file_location = os.path.split(os.path.realpath(os.path.abspath(os.path.dirname(__file__))))[0]+'/' sys.path.append(file_location + '/../') # numpy & theano imports need to be done in this order (only for some num...
ashmanmode/TTSDNNRepo
src/work_in_progress/oliver/dnn_synth.py
Python
apache-2.0
25,741
[ "NEURON" ]
ac19b40e1a5ed38f97753258059d4c81dd3cd4fcc0cf4bb1b815e74ec393126e
# 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 ...
wizmer/NeuroM
neurom/apps/tests/tests.py
Python
bsd-3-clause
2,486
[ "NEURON" ]
323885e1ae8276e55c9988d94c72eeb69051e22fbca54e977813522107171c0e
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
nuclear-wizard/moose
python/peacock/tests/exodus_tab/test_GoldDiffPlugin.py
Python
lgpl-2.1
6,032
[ "MOOSE" ]
7044eaa6d351e9119cf61d569f0b00ebed35bb105cee53e9212b4e5f3061d3ae
# -*- coding: utf-8 -*- # Copyright (C) 2004-2018 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. # # Authors: Aric Hagberg (aric.hagberg@gmail.com) # Pieter Swart (swart@lanl.gov) # Dan Sch...
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/networkx/generators/degree_seq.py
Python
gpl-3.0
30,638
[ "Brian" ]
87a726b7e90fb4fcd4994f5dac6cd559836d58dd22c94b7c58c6a588c3605a68