text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
from WebAppDIRAC.Lib.WebHandler import WebHandler, asyncGen from DIRAC.Core.DISET.RPCClient import RPCClient from DIRAC.ResourceStatusSystem.PolicySystem.StateMachine import RSSMachine from DIRAC.Core.Utilities import Time from DIRAC import gLogger import collections import json class ResourceSummaryHandler( WebHandl...
zmathe/WebAppDIRAC
WebApp/handler/ResourceSummaryHandler.py
Python
gpl-3.0
16,917
[ "DIRAC" ]
e7dc37a324c9c2c7626f25cebd04fd77a2d29e662feba96885bb16f7633093a5
''' Modules for Numerical Relativity Simulation Catalog: * catalog: builds catalog given a cinfiguration file, or directory containing many configuration files. * scentry: class for simulation catalog entry (should include io) ''' # from nrutils.core import settings as gconfig from nrutils.core.basics import * fro...
Cyberface/nrutils_dev
nrutils/core/nrsc.py
Python
mit
126,535
[ "Psi4" ]
f6afb9188450e2f026a9b84e412c74e42099800fb3014acbac9cb32bc2baac16
# Copyright Iris contributors # # This file is part of Iris and is released under the LGPL license. # See COPYING and COPYING.LESSER in the root of the repository for full # licensing details. """ Unit tests for the :class:`iris.experimental.ugrid.cf.CFUGridConnectivityVariable` class. todo: fold these tests into cf t...
SciTools/iris
lib/iris/tests/unit/experimental/ugrid/cf/test_CFUGridConnectivityVariable.py
Python
lgpl-3.0
8,277
[ "NetCDF" ]
51e28dbd815c1d27127c915f791ea60f00b5ad978dc2d4f9c7d3b47d675a2d3a
#!/usr/bin/env python2 # vim:fileencoding=utf-8 from __future__ import (unicode_literals, division, absolute_import, print_function) __license__ = 'GPL v3' __copyright__ = '2013, Kovid Goyal <kovid at kovidgoyal.net>' import inspect, time from io import BytesIO from repr import repr from funct...
hazrpg/calibre
src/calibre/db/tests/legacy.py
Python
gpl-3.0
38,815
[ "MOOSE" ]
4df5b3610b9efc168792521389fbd69c43aa39bda775b403463e24f6ed74931b
#!/usr/bin/env python """A kernel that creates a new ASCII file with a given size and name. """ __author__ = "The ExTASY project <vivek.balasubramanian@rutgers.edu>" __copyright__ = "Copyright 2015, http://www.extasy-project.org/" __license__ = "MIT" from copy import deepcopy from radical.ensemblemd.exceptions...
radical-cybertools/ExTASY
examples/coam-on-stampede/kernel_defs/amber.py
Python
mit
4,751
[ "Amber" ]
b314fc602f4c55f71f01df85c814fa53349928b5a975d8ec14bdca2524b25ffe
import librosa from functools import partial import numpy as np from librosa.core.spectrum import stft PADDING = 0.1 def load_waveform(file_path, begin=None, end=None): """ Load a waveform segment from an audio file Parameters ---------- file_path : str Path to audio file begin : flo...
PhonologicalCorpusTools/PolyglotDB
polyglotdb/acoustics/utils.py
Python
mit
2,476
[ "Gaussian" ]
ad24a8825922a433c5632d10f0ef0aeedd413a9220ddb4f0dffbfe71323dc61e
# # dnfhelper.py # # Copyright (C) 2010-2015 Red Hat, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This pr...
maxamillion/lorax
src/pylorax/dnfhelper.py
Python
gpl-2.0
3,533
[ "Brian" ]
97f9e164791f9e7698137e16be8d1484eba7ae5a9ae5286c83cfc8624596fcd6
import sip import os from PyQt5.QtWidgets import QTabWidget, QWidget, QGridLayout, QLabel, QPushButton, QComboBox, QLineEdit, QCheckBox, \ QFileDialog from PyQt5.QtCore import pyqtSignal from .Plotters import * from .ErrorBox import ErrorBox from .ErrorMessages import ErrorMessages class ExportTabWidget(QTabWidg...
maxscheurer/pycontact
PyContact/gui/ExportTabWidget.py
Python
gpl-3.0
16,959
[ "VMD" ]
dc8f74a90b2ac39c09a3d65b3e8bfe75a7ed9208b82f2f926f304772abfc3c68
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 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 Software F...
andrebellafronte/stoq
stoqlib/lib/cardinals/cardinals.py
Python
gpl-2.0
1,824
[ "VisIt" ]
376ec232c486591a3882c0a8792536113943f74ec8d5f6701c78baf5f708bfdf
# -*- coding: utf-8 -*- { "'Cancel' will indicate an asset log entry did not occur": "'Hủy' sẽ chỉ dẫn một lệnh nhập không thực hiện được", "A location that specifies the geographic area for this region. This can be a location from the location hierarchy, or a 'group location', or a location that has a boundary for ...
code-for-india/sahana_shelter_worldbank
languages/vi.py
Python
mit
359,193
[ "VisIt" ]
e0d55d7d3c25ba3429fc1fca620656bdc220085178145ea0941364b54cf5c3a9
# # YamlFSSource.py - New-style YAML file-system data source # Copyright (C) 2009 Tony Garnock-Jones <tonyg@kcbbs.gen.nz> # # 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 th...
tonyg/gyre
YamlFSSource.py
Python
gpl-2.0
3,698
[ "VisIt" ]
35231e87fd5427cfd1d09dc03c8154c3a139e82d79a5023909970684b3afb419
# Mantid Repository : https://github.com/mantidproject/mantid # # Copyright &copy; 2018 ISIS Rutherford Appleton Laboratory UKRI, # NScD Oak Ridge National Laboratory, European Spallation Source # & Institut Laue - Langevin # SPDX - License - Identifier: GPL - 3.0 + from __future__ import (absolute_import, divi...
mganeva/mantid
Testing/SystemTests/tests/analysis/WishCalibrate.py
Python
gpl-3.0
8,722
[ "Gaussian" ]
f4fe9adb9cdac1eab57cc20d4cda779d2c57242666a84f8259e5e9bc9bde5ac8
""" InaSAFE Disaster risk assessment tool developed by AusAid - **IS Utilitles implementation.** Contact : ole.moller.nielsen@gmail.com .. note:: 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 Foun...
rukku/inasafe
safe_qgis/utilities.py
Python
gpl-3.0
45,636
[ "VisIt" ]
c8f8af75d89d86a31bb0923066d830f1a7a8cdc35fda762ef8c6dabb21025e4f
"""Convert to and from Roman numerals This program is part of "Dive Into Python", a free Python book for experienced programmers. Visit http://diveintopython.org/ for the latest version. """ __author__ = "Mark Pilgrim (mark@diveintopython.org)" __version__ = "$Revision: 1.3 $" __date__ = "$Date: 2004/05/05 21:57:19 ...
Iconik/eve-suite
src/model/generated/roman/roman.py
Python
gpl-3.0
3,339
[ "VisIt" ]
c0fe00c7aa4ffd95a505bb1c048153cad40d43b11fa5df50f0384fd856b2938b
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
jamesmarva/enjarify
enjarify/jvm/optimization/stack.py
Python
apache-2.0
9,011
[ "VisIt" ]
8bf2e9b420b7176fcb72c96b1ad3bcb55486641783deb443cf11331e43d151df
from __future__ import print_function import pyspeckit # Grab a .fits spectrum with a legitimate header sp = pyspeckit.Spectrum('G031.947+00.076_nh3_11_Tastar.fits') """ HEADER: SIMPLE = T / Written by IDL: Tue Aug 31 18:17:01 2010 BITPIX = -64 NAXIS = 1 / number of array dim...
vlas-sokolov/pyspeckit
examples/ammonia_vtau_fit_example.py
Python
mit
3,778
[ "Gaussian" ]
3c25db86de5d9d8d2beba48046a7c4e909d68827f52f0b63b92ddeba66ca89ce
"""A VTK interactor scene which provides a convenient toolbar that allows the user to set the camera view, turn on the axes indicator etc. """ # Authors: Prabhu Ramachandran <prabhu_r@users.sf.net>, # Dave Peterson <dpeterson@enthought.com> # Copyright (c) 2006, Enthought, Inc. # License: BSD Style. # System ...
liulion/mayavi
tvtk/pyface/ui/qt4/decorated_scene.py
Python
bsd-3-clause
11,285
[ "VTK" ]
3a85894b0ed87b3016c7e4e683d0d1cadc3b3acca34388c8f342cd077206afe8
""" Kernel Density Estimation ------------------------- """ # Author: Jake Vanderplas <jakevdp@cs.washington.edu> import numpy as np from scipy.special import gammainc from ..base import BaseEstimator from ..utils import check_array, check_random_state from ..utils.extmath import row_norms from .ball_tree import BallT...
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/sklearn/neighbors/kde.py
Python
mit
8,218
[ "Gaussian" ]
0e8971ce7a990bcab68d2aaf7cb11c05ac0f887443310507960110d9b326e05b
# $Id$ # # Copyright (C) 2000-2006 greg Landrum and Rational Discovery LLC # # @@ All Rights Reserved @@ # This file is part of the RDKit. # The contents are covered by the terms of the BSD license # which is included in the file license.txt, found at the root # of the RDKit source tree. # """ defines class _Db...
rdkit/rdkit-orig
rdkit/Dbase/DbConnection.py
Python
bsd-3-clause
8,808
[ "RDKit" ]
cf72fe82763c35cccab5b6ae1a82bf2ee7eb2b35b7bd86a511582c5b2edd389c
import logging from logging.handlers import SysLogHandler from logging import Formatter LOG_PATH = '/var/log/syslog' LOG_APP_LABEL = 'moosefstool' LOG_MFS_LABEL = 'mfsmaster' def get_logger(): """ get_logger function provides logging object with file/syslog handlers. Path to local Moose log file c...
ochirkov/MooseFSTool
app/utils/log_helper.py
Python
gpl-3.0
931
[ "MOOSE" ]
6ce34467107c4a47ac69008215e099851a081169d32c826a81b28d00411fb2b9
#!/usr/bin/python # # @author: Gaurav Rastogi (grastogi@avinetworks.com) # Eric Anderson (eanderson@avinetworks.com) # module_check: supported # # Copyright: (c) 2017 Gaurav Rastogi, <grastogi@avinetworks.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ANSIB...
alexlo03/ansible
lib/ansible/modules/network/avi/avi_clusterclouddetails.py
Python
gpl-3.0
3,609
[ "VisIt" ]
6cfcda1788aaa90ac71b372f1793e429386f93253784482c41f26c9914f54fbc
""" A simple manager for a task queue. The manager handles creating, submitting, and managing running jobs, and can even resubmit jobs that have failed. author: Brian Schrader since: 2015-08-27 """ from .reporting import BaseReportingMixin, HtmlReportingMixin, TextReportingMixin from .job_template import JobTemplate ...
TorkamaniLab/metapipe
metapipe/models/queue.py
Python
mit
7,561
[ "Brian" ]
0de567c6f31939d32b01b150789d7a8433dc49cf11b38c6e6d9b5feadade2570
# -*- coding: utf-8 from yade import ymport, utils,pack,export import gts,os from yade import geom #import matplotlib from yade import plot #from pylab import * #import os.path, locale #### set False when running in batch mode #defaultTable = True defaultTable = False ####------------------------------------- ####----...
anna-effeindzourou/trunk
examples/anna_scripts/triax/triaxial_uniformrm.py
Python
gpl-2.0
11,635
[ "ParaView" ]
33c4db11ba1749babcab7bc84c88e68ee35b26fc805db7c8e4541aecf7e2069a
""" The Script class provides a simple way for users to specify an executable or file to run (and is also a simple example of a workflow module). """ import os, sys, re from DIRAC.Core.Utilities.Subprocess import shellCall from DIRAC import gLogger from DIRAC.Core.Utilities.Os ...
avedaee/DIRAC
Core/Workflow/Modules/Script.py
Python
gpl-3.0
4,169
[ "DIRAC" ]
14aa6a0b80fe850e70e687bb94fa45553652398120ab7a23774e9e23b05c5ee7
# Small Genome Tools # Copyright (C) 2015 University of the Witwatersrand, Johannesburg, South Africa # Author: Dr Trevor G. Bell, TrevorGrahamBell@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...
DrTrevorBell/SmallGenomeTools
cgi-bin/climbMini.py
Python
gpl-2.0
65,005
[ "Biopython" ]
0ded0b620682a1fa9e6fd5047116cf90287786e679b0c9de5e32eb5b935d6a48
## INFO ######################################################################## ## ## ## Python and Cython Syntax Highlighters ## ## ===================================== ...
jotomicron/python
src/cython.py
Python
gpl-3.0
12,220
[ "VisIt" ]
87bf8d30ea5b58215631f9487a3fce336a17e840f9c881d574a02952b0305aa1
# 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 EcpIoSdk(CMakePackage): """ECP I/O Services SDK""" homepage = "https://github.com/chu...
rspavel/spack
var/spack/repos/builtin/packages/ecp-io-sdk/package.py
Python
lgpl-2.1
1,635
[ "NetCDF" ]
2ca16c47e4ec33e591283b5c9451112662e6b306a91ebb09a3a74dd7d4b71abd
# pyresample, Resampling of remote sensing image data in python # # Copyright (C) 2010, 2014, 2015 Esben S. Nielsen # Adam.Dybbroe # # 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 # ...
mitkin/pyresample
pyresample/kd_tree.py
Python
lgpl-3.0
35,833
[ "Gaussian" ]
1ec1eebf938dc3575ca2adcf85db6680fafa9dc95da12f8facc7bbc8fde98c84
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.core.structure import Structure from pymatgen.io.cif import CifParser from pymatgen.io.feff.inputs import Atoms, Header, Paths, Potential, Tags from pymatgen.util.t...
materialsproject/pymatgen
pymatgen/io/feff/tests/test_inputs.py
Python
mit
15,079
[ "FEFF", "pymatgen" ]
b3b1e1aa071eae9ffdc99542677359df849c3e4b186de74850de7a3a8e32dae2
# Copyright: (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.com> # Copyright: (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import ...
s-hertel/ansible
lib/ansible/cli/__init__.py
Python
gpl-3.0
20,965
[ "Galaxy" ]
b6e22a97287005af6388fc18595afda250f467d9341b1b3bd72e54ac2d134fdd
#!/usr/bin/env python import sys from .lammps_main import LammpsSimulation from .structure_data import ase_from_CIF, from_CIF, write_CIF, write_PDB, write_RASPA_CIF, write_RASPA_sim_files, MDMC_config from .InputHandler import Options def main(): # command line parsing options = Options() sim = LammpsSimu...
peteboyd/lammps_interface
lammps_interface/cli.py
Python
mit
1,209
[ "RASPA" ]
f7caa12194f10307615ab75c1c7c7bfcd681a6f35eb3e9286592cb6a555b4787
import numpy, vigra import os.path #******************************************************************************* # s i z e _ i n _ p i x e l s * #******************************************************************************* class size_in_pixels(): def __init__...
ilastik/ilastik-0.5
ilastik/modules/object_picking/core/objectOperators.py
Python
bsd-2-clause
9,958
[ "Mayavi" ]
180238d6bb374fb1605ae5a00b59ab786fd1056a132a07a6530da81487ef0455
r""" :mod:`~matplotlib.mathtext` is a module for parsing a subset of the TeX math syntax and drawing them to a matplotlib backend. For a tutorial of its usage see :ref:`mathtext-tutorial`. This document is primarily concerned with implementation details. The module uses pyparsing_ to parse the TeX expression. .. _p...
ryandougherty/mwa-capstone
MWA_Tools/build/matplotlib/lib/matplotlib/mathtext.py
Python
gpl-2.0
108,907
[ "Bowtie" ]
40e5d983019bea1f74a5af1120c3157bb5bbefd80aa55c33801355f5b4898b73
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os from monty.serialization import loadfn from pymatgen.analysis.structure_matcher import StructureMatcher """ This module uses data from the AFLOW LIBRARY OF CRYSTALLOGRAPHIC PROTOTYPES. If using thi...
dongsenfo/pymatgen
pymatgen/analysis/aflow_prototypes.py
Python
mit
4,002
[ "CRYSTAL", "pymatgen" ]
b20382543720e90430484dfccd9c6bbbfd0a677d86ac765707fa40d832db65bd
#=== CONTEXT ========================================================================================= # 2D NodeBox API in OpenGL. # Authors: Tom De Smedt, Frederik De Bleser # License: BSD (see LICENSE.txt for details). # Copyright (c) 2008 City In A Bottle (cityinabottle.org) # http://cityinabottle.org/nodebox # All...
est/nodebox-gl
graphics/context.py
Python
bsd-3-clause
151,331
[ "VisIt" ]
f2bcf51018e15de41fc36aafffabadf13d07a1386425566783b9282f16399c1d
# (c) 2012-2014, Michael DeHaan <michael.dehaan@gmail.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 # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
sidartaoliveira/ansible
lib/ansible/playbook/conditional.py
Python
gpl-3.0
10,450
[ "VisIt" ]
acc6ec1055f724bb1635e429d16cd34c65a954028864e6fbf1992b8512fc04bd
""" @name: Modules/families/UPB/UPB_data.py @author: D. Brian Kimmel @contact: D.BrianKimmel@gmail.com @copyright: (c) 2014-2020 by D. Brian Kimmel @license: MIT License @note: Created on Aug 6, 2014 @summary: This module is for communicating with UPB controllers. """ __updated__ = '2020-02-17' # ...
DBrianKimmel/PyHouse
Project/src/Modules/House/Family/Upb/upb_data.py
Python
mit
787
[ "Brian" ]
2bc4f8f7f8211fb6adfe8bafe17537d9c473f560f1b7c53fa388374034cad6b7
from __future__ import absolute_import from django.db import models from django.conf import settings from django.contrib.auth.models import AbstractBaseUser, UserManager, \ PermissionsMixin from django.dispatch import receiver from zerver.lib.cache import cache_with_key, flush_user_profile, flush_realm, \ user...
esander91/zulip
zerver/models.py
Python
apache-2.0
50,057
[ "VisIt" ]
fd71cbccde9c956a9ec9b2105de25e949a7e83b55f984581c806bc9bb1d6f509
#!/usr/bin/env python # -*- coding: utf-8 -*- import rdkit from rdkit.Chem import AllChem from rdkit import DataStructs __license__ = "X11" METADATA = { "id": "method_rdkit_ecfp2_1023_tanimoto", "representation": "ecfp2_1023", "similarity": "tanimoto" } def _compute_fingerprint(molecule): return Al...
skodapetr/lbvs-environment
methods/ecfp/ecfp2_1023_tanimoto.py
Python
mit
1,396
[ "RDKit" ]
db43f39d323efebf46886f8f30f98fb3593dbf9611f12c25c67bf564982db505
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import os import json from pymatgen.entries.computed_entries import ComputedEntry from pymatgen.apps.battery.insertion_battery import InsertionElectrode from pymatgen import MontyEncoder, Mont...
tschaume/pymatgen
pymatgen/apps/battery/tests/test_insertion_battery.py
Python
mit
5,523
[ "pymatgen" ]
91cc5f3e362cf62ac6c191ab1d10ff43744364ec5b755df34e37a685a70d4d4e
""" an XML-RPC server to allow remote control of PyMol Author: Greg Landrum (glandrum@users.sourceforge.net) Created: January 2002 $LastChangedDate$ License: This file is part of the RDKit. The contents are covered by the terms of the BSD license which is included in the file license.txt, f...
rvianello/rdkit
External/pymol/modules/pymol/rpc.py
Python
bsd-3-clause
17,644
[ "PyMOL", "RDKit" ]
47a1e6824e861b50cc67de0270e4204024db0ae33885764b18d9ba64bad33eeb
import librosa import scipy import scipy.linalg as linalg import scipy.signal as sig import numpy as np import sklearn.cluster as sklhc import scipy.cluster.hierarchy as scihc from collections import OrderedDict from .analysis import create_selfsim from ..VMO.utility.misc import entropy """Segmentation algorithms """ ...
wangsix/vmo
vmo/analysis/segmentation.py
Python
gpl-3.0
11,477
[ "Brian" ]
ba0f39c3011e6b4413ec025c1c3b39cb13dff30ba178021f7f6a975fd86535dd
#!/usr/bin/env python """ This module contains a class to parse a ppi predictions output file in tsv format and perform network related operations on it. """ from collections import OrderedDict as Od import numpy as np import pandas as pd from ..base.constants import P1, P2, G1, G2, SOURCE, TARGET from...
daniaki/pyPPI
pyppi/network_analysis/__init__.py
Python
mit
9,649
[ "Cytoscape" ]
12e537fd43120b9e583739027c18a8990fc7ff8adc59948186e1c102f3e5a7f6
from __future__ import print_function import IMP import IMP.test import IMP.core import IMP.atom class Tests(IMP.test.TestCase): def _test_simple(self): """Check that hierarchies don't have circular ref counts """ # make sure internal things are created m = IMP.Model() h = IMP.ato...
shanot/imp
modules/atom/test/test_refcount_hierarchy.py
Python
gpl-3.0
3,105
[ "CHARMM" ]
2760d4e7c823b86e11f06d7aa5e6182cf356fb5115b872aab61269ca0e7e585d
################################################################################ # Peach - Computational Intelligence for Python # Jose Alexandre Nalon # # This file: nn/nn.py # Basic topologies of neural networks ################################################################################ # Doc string, reStructur...
anki1909/peach
peach/nn/nnet.py
Python
lgpl-2.1
24,145
[ "Gaussian", "NEURON" ]
20eefaa470057c16dc3280a220453d208e90a54b33e0c11b01af93c8de8b86cb
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
EmreAtes/spack
var/spack/repos/builtin/packages/shortbred/package.py
Python
lgpl-2.1
2,142
[ "BLAST", "Biopython" ]
e24a555133717b8fcb726813ae91de84a50204e5e060f969ac0b0d475385cd48
#!/usr/bin/env python import os import sys sys.path.insert(0, os.path.abspath('lib')) from ansible.release import __version__, __author__ try: from setuptools import setup, find_packages except ImportError: print("Ansible now needs setuptools in order to build. Install it using" " your package man...
Censio/ansible-dev
setup.py
Python
gpl-3.0
2,025
[ "Galaxy" ]
b4a3cdef853db9d5022f2becc49baedf03880fb57b6eb6d302eb60e4bdfeca9f
#!/usr/bin/env python """ Plot ORA-IP annual mean profile (T or S) and Hiroshis or WOA13 1995-2004 profile. """ import os import sys import re import copy import glob import string import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt import netCDF4 as nc from datetime import datetime from netcdf...
puotila/PORA-IP
plotAnnuaMeanProfile.py
Python
gpl-3.0
28,427
[ "NetCDF" ]
f22ce30aacc6215bd3d4ecc7e838ae3a5f3d3a4f998dae04370f7fc97653dc11
""" Class that define a normal estimation method based on vtkPointSetNormalsEstimation by David Doria """ __all__ = ["vtkPointSetNormalsEstimation"] from pcloudpy.core.filters.base import FilterBase import numpy as np from vtk import vtkPolyDataAlgorithm, vtkFloatArray, vtkKdTree, vtkPlane, vtkPolyData, vtkIdList from...
mmolero/pcloudpy
pcloudpy/core/filters/vtkPointSetNormalsEstimation.py
Python
bsd-3-clause
5,076
[ "VTK" ]
65fcdc2aa0a197f405bf2d97deb5ae390af212248de0538d5a9585d38be7c372
# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2007 Johan Gronqvist (johan.gronqvist@gmail.com) # copyright (C) 2007 Brian G. Matherly # # 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 ...
Forage/Gramps
gramps/gen/filters/rules/person/_missingparent.py
Python
gpl-2.0
2,420
[ "Brian" ]
0de89f23bd8cf0217064af5e48c351d05952863b9d6a0fdc2e336249068a1e02
#!/usr/bin/env python import math __author__ = "Pablo Marchant" __credits__ = ["Pablo Marchant", "Fabian Schneider"] __license__ = "GPL" __version__ = "3.0" __maintainer__ = "Pablo Marchant" __email__ = "pamarca@gmail.com" """Define multiple constants. Much of this taken directly from MESA. This module simply define...
orlox/medusa
const/const_lib.py
Python
gpl-3.0
3,318
[ "Avogadro" ]
a4957e812e8d6cb122940a3c64225b3bda4d205dd84123e491ab5df080c5c4fe
import numpy as np import glob filename2 = 'data.poly-d200' #lammps 'charge' data file outputfile = 'data.GP-composite_200nm_charge' flist2 = glob.glob(filename2) #the 1st col. is string so its loaded seperately for f in flist2: load2 = np.genfromtxt(f, dtype=float, skip_header=10, usecols=(1,3,4,5)) #dtype=("|S...
msadat/python-scripts
write_multigrain__few-grains_charge.py
Python
gpl-3.0
3,874
[ "LAMMPS" ]
a2c6dc45e8cbe1c3ca0317baf567db148aa51fa5bd567b72b49d8d7c63430172
from slm_lab.agent import net from slm_lab.agent.algorithm import policy_util from slm_lab.agent.algorithm.reinforce import Reinforce from slm_lab.agent.net import net_util from slm_lab.lib import logger, math_util, util from slm_lab.lib.decorator import lab_api import numpy as np import pydash as ps import torch logg...
kengz/Unity-Lab
slm_lab/agent/algorithm/actor_critic.py
Python
mit
16,313
[ "Gaussian" ]
8ef06d656d8634eb1a86ae5523f3c77fb176378102ef732a839d0b64fececa26
import Bio from Bio import SeqIO, SeqFeature from Bio.SeqRecord import SeqRecord from Bio.Blast import NCBIXML from Bio.Blast import NCBIStandalone import sys import os import site import argparse import string import numpy import re import subprocess import genbank import blast import intergene loc_reg = re.compil...
idoerg/BOA
src/genome/genome.py
Python
gpl-3.0
3,607
[ "BLAST" ]
e9c90b8ba5978b04905b8a0d7e5fec1061d5aef7adce5c01c537d132461f97f1
#!/usr/bin/env ipython from pylab import * import numpy as np from scipy.io.netcdf import netcdf_file import os, sys import matplotlib.patches as patches import matplotlib.transforms as transforms from numpy import array from matplotlib.gridspec import GridSpec import matplotlib.pyplot as plt from os.path import isdir,...
jimsrc/seatos
mixed.icmes/src/report/tt.py
Python
mit
9,791
[ "NetCDF" ]
603331ce96ebc6307acdad4382fbd7a74a98d4cf9d96100b84f2b9db08a2e383
# -*- 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-essential-contacts
tests/unit/gapic/essential_contacts_v1/test_essential_contacts_service.py
Python
apache-2.0
113,777
[ "Octopus" ]
0e3ec8cb31c3c9c628ed2c4e884e8d4ecfd6fda0af47bd6387b998f41097a71a
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import unittest import numpy as np from pymatgen.io.pwscf import PWInput, PWInputError, PWOutput from pymatgen.util.testing import PymatgenTest class PWInputTest(PymatgenTest): def test_init(self): s ...
materialsproject/pymatgen
pymatgen/io/tests/test_pwscf.py
Python
mit
11,756
[ "CRYSTAL", "pymatgen" ]
05c20da09d3d31484e00bdc8d994146de92e9f882a7addaa5339917cbd67848a
import re import os import shutil import logging import netCDF4 from django.dispatch import receiver from django.core.files.uploadedfile import UploadedFile from hs_core.signals import pre_add_files_to_resource, \ pre_delete_file_from_resource, pre_metadata_element_create, pre_metadata_element_update, \ post...
ResearchSoftwareInstitute/MyHPOM
hs_app_netCDF/receivers.py
Python
bsd-3-clause
16,184
[ "NetCDF" ]
8992ed66ccb7301b95201d14b7a265e8adb6c62a25c8cb4376a7a854e9b0fcb0
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import numpy as np import pickle from pymatgen.util.testing import PymatgenTest from pymatgen.core.periodic_table import Element, Specie from pymatgen.core.sites import Site, PeriodicSite from pymatgen.core.l...
tschaume/pymatgen
pymatgen/core/tests/test_sites.py
Python
mit
11,857
[ "pymatgen" ]
65733ce8fa627d7edae90710d84d40f495689dcb661fd24fb290df5b7d227b3f
#!/usr/bin/env python ######################################################################## # File : dirac-admin-get-pilot-info # Author : Ricardo Graciani ######################################################################## """ Retrieve available info about the given pilot Example: $ dirac-admin-get-pilo...
ic-hep/DIRAC
src/DIRAC/Interfaces/scripts/dirac_admin_get_pilot_info.py
Python
gpl-3.0
4,570
[ "DIRAC" ]
96f9e5ee02fdd27849613321541d5ca4cdfeec5de22eef681d788e38b6826118
# -*- coding: utf-8 -*- # Copyright (c) 2015-2022, Exa Analytics Development Team # Distributed under the terms of the Apache License 2.0 """ Atomic Position Data ############################ This module provides a collection of dataframes supporting nuclear positions, forces, velocities, symbols, etc. (all data associ...
exa-analytics/exatomic
exatomic/core/atom.py
Python
apache-2.0
22,762
[ "Gaussian" ]
f6bf094800fab6dfb99e3621474581b009edfc8da588a154b729d91083e5df1b
# Copyright (C) 2003-2005 Peter J. Verveer # # 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 following d...
ales-erjavec/scipy
scipy/ndimage/filters.py
Python
bsd-3-clause
40,515
[ "Gaussian" ]
3dba0eecd8415443aa352b4095f7397a2e27cbb9bb4b76043dfe14e42a3ff8b9
try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() import os,sys,glob,struct,math,subprocess import vtk #os.chdir("/home/zeli/tmp/delme1/") cwd_folder=os.getcwd() #------------------------------------------------------------- def window(LT, title): RenderV...
zeli86/playground
paraview/mass_image_creation_mit_clipping_cs.py
Python
gpl-3.0
4,794
[ "ParaView", "VTK" ]
24accf156b5d8d36ea9ec8600562d9c0fb03b02692276088d9082440a81ed9fb
import itertools import numpy as np from six.moves import zip, range from nose.plugins.attrib import attr from unittest import TestCase from numpy.testing import (assert_equal, assert_raises, assert_almost_equal, assert_array_almost_equal, raises, assert_allclose, a...
alejob/mdanalysis
testsuite/MDAnalysisTests/coordinates/base.py
Python
gpl-2.0
40,567
[ "MDAnalysis" ]
a534e14aab044bd4fb9491b0aca4679f96373d62744f6a373dba20042860d979
from __future__ import absolute_import from typing import Any, Dict, List, Set, Tuple, TypeVar, Text, \ Union, Optional, Sequence, AbstractSet, Pattern, AnyStr from typing.re import Match from zerver.lib.str_utils import NonBinaryStr from django.db import models from django.db.models.query import QuerySet from dja...
sharmaeklavya2/zulip
zerver/models.py
Python
apache-2.0
57,439
[ "VisIt" ]
ddc439026a251177e653c5a1b061c0c6ff521eec9c0b69443313f7397cf8d64a
#!/usr/bin/env python # Copyright (c) 2015-2018 # Jakub Krajniak (jkrajniak at gmail.com) # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either versio...
govarguz/espressopp
testsuite/FileIOTests/h5md/dump_topology_test.py
Python
gpl-3.0
7,346
[ "ESPResSo" ]
63d62f5435365c981a4271f55be22ef065431cf2910cee4cf918d9e80c419b40
### Code written for STDP tutorial @ CAMP 2016 ### Adapted from Song et al 2000 (Competitive Hebbian Learning through spike-timing-dependent synaptic plasticity ### With independent Poisson inputs (relevant figures : Fig 2a,b,c) ### Author: Harsha Gurnani ### Date: June 15, 2016 #######################################...
h-mayorquin/camp_india_2016
tutorials/LTP-I/Demo1/For_abbott_repfig2.py
Python
mit
5,265
[ "Gaussian", "NEURON" ]
04f93c660838b77ff7c60ef6f260283b7b0f36f6f308fc5ed0d825e1462c71f8
from disposable_email_domains import blacklist def is_reserved_subdomain(subdomain: str) -> bool: if subdomain in ZULIP_RESERVED_SUBDOMAINS: return True if subdomain[-1] == 's' and subdomain[:-1] in ZULIP_RESERVED_SUBDOMAINS: return True if subdomain in GENERIC_RESERVED_SUBDOMAINS: ...
brainwane/zulip
zerver/lib/name_restrictions.py
Python
apache-2.0
4,774
[ "Octopus" ]
2dd47b0e301221ecefea359fd754612e1832f3ade019a6439d08526e1caf7d63
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Filename: local_handler.py # Purpose: handling local processing/plotting in obspyDMT # Author: Kasra Hosseini # Email: kasra.hosseinizad@earth.ox.ac.uk # License: GNU Lesser Gener...
kasra-hosseini/obspyDMT
obspyDMT/utils/local_handler.py
Python
gpl-3.0
31,984
[ "VTK" ]
ee20bf3cd8932422ebb74acc6ebf7767c597e3b45d44c44681216ef3c9158685
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Raspa Preço documentation build configuration file, created by # sphinx-quickstart on Mon Nov 6 10:52:29 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this ...
IvanBrasilico/raspa-preco
conf.py
Python
gpl-3.0
5,357
[ "RASPA" ]
41c3e6b6eecfac6662178addfe0b346b9907a74aa9f5b78e68fc0ebcd819477e
""" Created on 27/04/2013 @author: thom """ import unittest import math from rdkit.rdBase import DisableLog, EnableLog from kinetic_molecule import KineticMolecule from molecule import Molecule from chemistry_model.default_chemistry import DefaultChemistry from reactor_model.spatial_reaction_vessel import SpatialRea...
th0mmeke/toyworld
tests/test_reaction_vessel.py
Python
gpl-3.0
3,642
[ "RDKit" ]
297ef7eb02cffbe7875fa409d0729850479a82290b9c287a8fe25904c95f5c40
import numpy as np # type: ignore import re import math import warnings from .units import angstrom_to_bohr, ev_to_hartree from .band import Band from copy import deepcopy import fortranformat as ff # type: ignore from functools import reduce class KPoint(): def __init__( self, index, frac_coords, weight ): ...
bjmorgan/vasppy
vasppy/procar.py
Python
mit
23,579
[ "VASP" ]
7a66fc89ca96d4278146ddd79882285c426f99a1ef705ee9d4506c3b669a0e23
# Copyright 2013-2021 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 RAldex2(RPackage): """Analysis Of Differential Abundance Taking Sample Variation Into Acco...
LLNL/spack
var/spack/repos/builtin/packages/r-aldex2/package.py
Python
lgpl-2.1
2,126
[ "Bioconductor" ]
e227725599635936f5100ee64801b4a0acbb3ed4bb89d640b75acfb3ef1c4a02
# # Author: Henrique Pereira Coutada Miranda # Date: 18/10/2015 # Parallelize a GW calculation using Yambo # In this example we take advantage of the fact that the q points of the dielectric function # are totally independent calculations so its a good idea to calculate them in separate jobs # These example runs local...
alexandremorlet/yambopy
tutorial/bn/gw_par_bn.py
Python
bsd-3-clause
3,611
[ "Yambo" ]
51ea7bfc90487aa5e442fd734ecf24085c15a2a53dab7029bb09d85aba90d0e0
# -*- coding: utf-8 -*- from __future__ import division import cv2 import numpy as np import os from os.path import isfile, join from os import listdir import math import sys import itertools import urllib import caffe from time import gmtime, strftime from math import cos, sin from subprocess import check_output, STDO...
chintak/misc_codes
utils.py
Python
gpl-2.0
17,329
[ "Gaussian" ]
6c22ffd3a125417fb3bd16565a07156e5bd2a446cbdf8ad29bfa6c8f5dc47f88
# 10/24/2013 Sebastian Raschka # BondVis # PyMOL Plugin for visualization of molecular bonds between atom pairs. import tkSimpleDialog,tkFileDialog import tkMessageBox from pymol import cmd import sys import string import itertools def __init__(self): self.menuBar.addmenuitem('Plugin', 'command', ...
rasbt/BondPack
src/BondVis.py
Python
gpl-3.0
2,744
[ "PyMOL" ]
728cc69fe5b710facbcf48918afea97d4fb8b368e57304968a3a35b54104eeaf
import json from operator import attrgetter import click from click import echo, echo_via_pager from .api import JiffyBox from .format import PlainFormatVisitor API = None OUTPUT_FORMAT = None USE_PAGER = None def sort_data(data): return sorted(data, key=attrgetter('id')) def format_data(data): data = so...
AmadeusITGroup/python-jiffybox
jiffybox/cli.py
Python
gpl-3.0
3,486
[ "VisIt" ]
137828d072e29bec272d961f825c20f1c3d97e5b43262f4ee511a9fdbb8308de
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """A python based tool for interfacial molecules analysis """ # To use a consistent encoding import codecs import os import sys # Always prefer setuptools over distutils try: from setupt...
Marcello-Sega/pytim
setup.py
Python
gpl-3.0
5,678
[ "MDAnalysis" ]
cbeb4543f66d60210b2bde003a28238d7ed73c756ea2945961892cfd9ae297e8
#!/usr/bin/env python # -*- coding: utf-8 -*- # # gaussian_class.py # # Copyright 2017 ssd <ssd@ssd> # # 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, o...
cimadure/programming-on-purpose
gaussian_class.py
Python
gpl-3.0
1,792
[ "Gaussian" ]
bb2c7d5ecc51fb70db5e93e1e4af1c17ea1bc7b64009507fb6adb5a738f4dbec
#!/usr/bin/env python # # Copyright 2008 Jose Fonseca # # 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 option) any later version. # # This ...
isi-nlp/bolinas
common/hgraph/xdot.py
Python
mit
91,176
[ "FLEUR" ]
d3fd31a92ac9fd92c5dc16658444acd5a68000242dac761698952cd07537817a
# numkit --- time series manipulation and analysis # Copyright (c) 2010 Oliver Beckstein <orbeckst@gmail.com> # Released under the "Modified BSD Licence" (see COPYING). """ :mod:`numkit.timeseries` --- Time series manipulation and analysis ================================================================== A time serie...
jandom/GromacsWrapper
numkit/timeseries.py
Python
gpl-3.0
21,347
[ "Gromacs" ]
c1c1227b08a7b035fee2b883427429334a8ece99e2396b5da6a686c81605951f
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import unittest import requests from pymatgen.ext.jhu import get_kpoints from pymatgen.io.vasp.inputs import Incar from pymatgen.io.vasp.sets import MPRelaxSet from pymatgen.util.testing import PymatgenTest ...
richardtran415/pymatgen
pymatgen/ext/tests/test_jhu.py
Python
mit
949
[ "VASP", "pymatgen" ]
15e1e8e94a8b542332e124557771f1da8ef611c7ca3fbd38289637807a559017
"""Support for control of ElkM1 lighting (X10, UPB, etc).""" from __future__ import annotations from homeassistant.components.light import ( ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, LightEntity, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from homeassista...
rohitranjan1991/home-assistant
homeassistant/components/elkm1/light.py
Python
mit
1,934
[ "Elk" ]
ba7509667d728e8578bcdc92992f7ae329d2f6c04d947aaec3c693ff02e2f378
# -*- coding: utf-8 -*- """ Authors: Gonzalo E. Espinoza-Dávalos, Wim G.M. Bastiaanssen, Boaz Bett, and Xueliang Cai IHE Delft 2017 Contact: g.espinoza@un-ihe.org Repository: https://github.com/gespinoza/hants Module: hants Description: This module is an implementation of the Harmonic ANalysis of Tim...
gespinoza/hants
wa_arcpy/__init__.py
Python
apache-2.0
2,745
[ "NetCDF" ]
229f06299acced0146b42d35ceab36132faf6c3951d43e197fbf478d9e074159
from __future__ import (absolute_import, division, print_function) import numpy as np import re import warnings from six import string_types # RegEx pattern matching a composite function parameter name, eg f2.Sigma. FN_PATTERN = re.compile('f(\\d+)\\.(.+)') # RegEx pattern matching a composite function parameter nam...
dymkowsk/mantid
scripts/Inelastic/CrystalField/fitting.py
Python
gpl-3.0
63,447
[ "CRYSTAL", "Gaussian" ]
a33f41a502e8a6d1d46b299f6c58449a3c88f2b784be9984c18fce0fd057efa6
""" This is the Job Repository which stores and manipulates DIRAC job metadata in CFG format """ from diraccfg import CFG from DIRAC import gLogger, S_OK, S_ERROR import os import time import tempfile import shutil class JobRepository: def __init__(self, repository=None): self.location = repository ...
DIRACGrid/DIRAC
src/DIRAC/Interfaces/API/JobRepository.py
Python
gpl-3.0
4,790
[ "DIRAC" ]
5a42b83d4f34fce095616f5f1b983222163b3b77462eee2a70ca628ac2155919
from __future__ import division, print_function import xgboost as xgb # from sklearn.ensemble import GradientBoostingRegressor, RandomForestRegressor import sklearn.preprocessing as prep from sklearn import cluster # from sklearn import cross_validation as cv # from sklearn.feature_selection import RFE, RFECV # from...
marcocaccin/MLTI
step2_ML/ml_learnability.py
Python
gpl-3.0
8,004
[ "CRYSTAL" ]
1b770f9941e2c6025a82afc38a1c4ea9f8226f34c26999e0a9905868ac4b1b43
# 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...
millmanorama/autopsy
pythonExamples/reportmodule.py
Python
apache-2.0
4,633
[ "Brian" ]
517772009698e309e95a00a27afb434c1f8bc24613109cfa66e6802508ab5271
""" Sandboxed expression parser. Copyright 2017-2018 Leon Helwerda 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...
lhelwerd/expression-parser
expression/parser.py
Python
apache-2.0
12,920
[ "VisIt" ]
f11b2ef197c5f47247a1a94eb605a617de4fb372af7a51875b0cd0131f343527
import environ from celery.schedules import crontab root_dir = environ.Path(__file__) - 3 project_dir = root_dir.path('shopify') env = environ.Env() env.read_env('.env') DJANGO_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'dja...
CorbanU/corban-shopify
config/settings/base.py
Python
bsd-3-clause
4,845
[ "Brian" ]
1eecb0dfc03fe512b3c0eda7bcf9de598ca01bd2cf41b4133e62dc38d36347d8
#!/bin/env python """ create and put 'ReplicateAndRegister' request """ __RCSID__ = "$Id: $" import os from DIRAC.Core.Base import Script Script.setUsageMessage( '\n'.join( [ __doc__, 'Usage:', ' %s [option|cfgfile] requestName LFNs targetSE [tar...
avedaee/DIRAC
DataManagementSystem/scripts/dirac-dms-replicate-and-register-request.py
Python
gpl-3.0
3,550
[ "DIRAC" ]
c685ca827c69b78dfd37962f9738da3c1786ae2e641c1fbf54b60e157f182129
import copy import os from visitor import * from stringstream import * class Rewriter(NodeVisitor): """ Class for rewriting of the original AST. Includes: 1. the initial small rewritings, 2. transformation into our representation, 3. transforming from our representation to C-executable code, 4. cre...
dikujepsen/OpenTran
v2.0/framework/old/rewriter.py
Python
mit
39,575
[ "VisIt" ]
affc58229817c41ef4aebe57f6b617e1d532c69f04ede867744ec3e9ee1b5620
#!/usr/bin/env python import psycopg2 import sys time =sys.argv[1] #time = str(1086725208) #conn = psycopg2.connect("dbname=mwa host=mwa-metadata01.pawsey.org.au user=MWA-guest password=guest port=5432") conn = psycopg2.connect("dbname=mwa host=mwa-metadata01.pawsey.org.au user=mwa password=BowTie port=5432") cur ...
steve-ord/galaxy-scripts
scripts/fits_db.py
Python
gpl-2.0
934
[ "Bowtie" ]
08b0953848a5b7a6a099f2c5cb9ea3e78d8a93ee59faa5189a95be067b38269e
import json import os import unittest import warnings from sympy import Number, Symbol from pymatgen.analysis.surface_analysis import ( NanoscaleStability, SlabEntry, SurfaceEnergyPlotter, WorkFunctionAnalyzer, ) from pymatgen.entries.computed_entries import ComputedStructureEntry from pymatgen.util.t...
materialsproject/pymatgen
pymatgen/analysis/tests/test_surface_analysis.py
Python
mit
22,393
[ "pymatgen" ]
48adb9f905fec70aa2bd7d189492b1b180bfe8e45c803cedd703b083f1168b5d
""" /****************************************************************************** This source file is part of the Avogadro project. Copyright 2013 Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software di...
OpenChemistry/avogadrolibs
avogadro/qtplugins/scriptfileformats/formatScripts/zyx.py
Python
bsd-3-clause
2,841
[ "Avogadro" ]
c33746ca72e79b7fd8a51852521f86bded89b9ac2d5ce46a4dc39cc4359bb0b3
######################################################################## # # (C) 2013, James Cammarata <jcammarata@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 # the Free Software ...
nrwahl2/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
31,733
[ "Galaxy" ]
c93a0ab7bd8719b11996071d2aad3933ccca7c88e8cec1de93d6ff5937c8d9ef
#!/usr/bin/python import json import os import random import unittest import numpy as np from pymatgen.analysis.structure_matcher import StructureMatcher from pymatgen.core.lattice import Lattice from pymatgen.core.structure import Structure from pymatgen.core.surface import ( ReconstructionGenerator, Slab,...
gmatteo/pymatgen
pymatgen/core/tests/test_surface.py
Python
mit
36,585
[ "pymatgen" ]
320e626957fbb79632b32926cfd119cef1d599e73def32baf237f2142dc1c29b
# Copyright (C) 2018 Henrique Pereira Coutada Miranda, Alejandro Molina Sanchez # All rights reserved. # # This file is part of yambopy # # import os import re import shutil from math import sqrt from qepy import qepyenv from .pseudo import get_pseudo_path from .tools import fortran_bool from .lattice import red_car, c...
henriquemiranda/yambo-py
qepy/pw.py
Python
bsd-3-clause
24,853
[ "ASE", "CRYSTAL", "Quantum ESPRESSO" ]
f19cbd5313b4110a4e6fbbd3f44680db39e18325eabc54594d9612b8161f9ab0
# $HeadURL$ __RCSID__ = "$Id$" from DIRAC import gLogger, S_OK from DIRAC.Core.Base.AgentModule import AgentModule from DIRAC.Resources.Catalog.FileCatalog import FileCatalog from DIRAC.DataManagementSystem.Client.DataIntegrityClient import DataIntegrityClie...
avedaee/DIRAC
StorageManagementSystem/Agent/RequestPreparationAgent.py
Python
gpl-3.0
10,152
[ "DIRAC" ]
d2bf3bbc44b6beb3d5552e3b0120415d21b67db1c623f87df7666ed88e427cc2
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import sys import platform from setuptools import setup, find_packages, Extension from setuptools.command.build_ext import build_ext as _build_ext class build_ext(_build_ext): def finalize_options(self):...
Bismarrck/pymatgen
setup.py
Python
mit
8,781
[ "ABINIT", "ASE", "FEFF", "Gaussian", "NWChem", "VASP", "VTK", "pymatgen" ]
6fa9e983d9c03287f8aa2f5157fe333a1653e00df3caaf1c23517da87263b4e6