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
"""The official API for working with notebooks in the current format version. Authors: * Brian Granger * Jonathan Frederic """ #----------------------------------------------------------------------------- # Copyright (C) 2008-2011 The IPython Development Team # # Distributed under the terms of the BSD License. ...
WillisXChen/django-oscar
oscar/lib/python2.7/site-packages/IPython/nbformat/current.py
Python
bsd-3-clause
6,059
[ "Brian" ]
e8fb15ecf6df41ef0cf549ba6cafa6196ca949170b28d980718218dcb6dfe25d
#!/usr/bin/env python # -*- coding: utf-8 -*- """Track selection menu. """ # Import: std import sys import collections # Import: PyCEGUI import PyCEGUI # Import: Configuration from configuration import TheConfig # Import: Menu from menustandard import MenuStandard from menumanager import Me...
xinderuila1/speed-dream
src/tools/ceguidemo/menutrackselect.py
Python
gpl-2.0
8,770
[ "BLAST" ]
3a7572cf6a9695817ba39be6103a9ba4c94284674c26d19344ba414ae9ae750a
#---------------------------------------------------------------------- # Copyright (c) 2016 Inria/iMinds by Arthur Garnier # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and/or hardware specification (the "Work") to # deal in the Work without restriction, including ...
open-multinet/docker-am
gcf_docker_plugin/testbed.py
Python
mit
61,260
[ "VisIt" ]
0b24679ad48278439e8cc3f1edbe3c727d9c23eed57830dbe77958f0e65fd06b
# This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences # Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU # GPL v2 or later. from __future__ import absolute_import from os import path import numpy as np import scipy.optimize as opt from sci...
sannecottaar/burnman
burnman/eos/dks_liquid.py
Python
gpl-2.0
24,571
[ "Avogadro", "DIRAC" ]
68e70d6dae46b6810edba8dd8accbe96750fcc6ce853d5244fc438424e6e80e6
# -*- coding: utf-8 -*- import os import moose print( "[INFO ] Using moose from %s" % moose.__file__ ) import numpy as np import moose.fixXreacs as fixXreacs def countCrossings( plot, thresh ): vec = moose.element( plot ).vector print( vec ) # print (vec[:-1] <= thresh) return sum( (vec[:-1] < thresh)...
upibhalla/moose-core
tests/python/test_Xreacs2.py
Python
gpl-3.0
1,798
[ "MOOSE" ]
12c0c540070db10e98e7d62058de17a22fae0538b5f505f1d19a4694a0da8a27
# -*- 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-compute
tests/unit/gapic/compute_v1/test_target_tcp_proxies.py
Python
apache-2.0
102,857
[ "Octopus" ]
35e8d7123273c4d6786dceb2861041878d8e310b9143e66397bc821b9fe11325
# Copyright (c) 2016 Adafruit Industries # Author: Brian Norman # # Heavily based on https://github.com/adafruit/micropython-adafruit-pca9685/blob/master/pca9685.py # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to...
gingemonster/PCA9685-Python-Microbit
servo.py
Python
mit
2,408
[ "Brian" ]
6381aa45b99877324e326ffacded24cbdafb08733279b69b6782e43a7f1eaddf
from ase import * from ase.structure import bulk import numpy as np from gpaw import * from gpaw.mpi import serial_comm from gpaw.test import equal from gpaw.xc.rpa_correlation_energy import RPACorrelation calc = GPAW(h=0.18, xc='LDA', kpts=(4,4,4), #usesymm=None, nbands=15, eigensolver='cg', ...
qsnake/gpaw
gpaw/test/rpa_energy_Kr.py
Python
gpl-3.0
642
[ "ASE", "GPAW" ]
150d5b4dc9405cefb75bb62a2cf38a3d69f89351dac7e6512a790063e473667b
# First a documentation string to describe the example """An example script demonstrating an NVT MD simulation with Asap. This example runs a molecular dynamics simulation on a small copper cluster in the NVT ensemble, i.e. with constant particle number, constant volume and constant temperature. It uses Langevin dyna...
auag92/n2dm
Asap-3.8.4/Examples/MD_Cluster3.py
Python
mit
2,004
[ "ASE", "CRYSTAL" ]
6f1b05f52a70869475f8a7e24476d3268ff1417121f8dcaa2e8ba0c95f8d6c3b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module defines classes for point defects. """ __author__ = "Bharat Medasani, Nils E. R. Zimmermann" __copyright__ = "Copyright 2011, The Materials Pr...
gpetretto/pymatgen
pymatgen/analysis/defects/point_defects.py
Python
mit
90,715
[ "CRYSTAL", "GULP", "VASP", "VTK", "pymatgen" ]
1f7e8cbe10838ac988df0368201a50254335453ab93b7ca5acccf8377a97f635
# 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. """Integration tests for :mod:`iris.analysis.trajectory`.""" # import iris tests first so that some things can be initialised ...
rcomer/iris
lib/iris/tests/integration/test_trajectory.py
Python
lgpl-3.0
11,733
[ "NetCDF" ]
fa0b03252a591041c16f63fcb8344513a789891dbc7573bfba9fa0dab024c061
# # The Multiverse Platform is made available under the MIT License. # # Copyright (c) 2012 The Multiverse Foundation # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without restrict...
longde123/MultiversePlatform
client/Scripts/Compositor.py
Python
mit
11,312
[ "Gaussian" ]
135c1d1ae23515f024a152ec86a39a4363fc84bcf654db55b0ecdf6a7d12061c
import os try: import cPickle as pickle except: import pickle from PIL import Image from subprocess import Popen import numpy as np from numpy.lib.stride_tricks import as_strided import os import gzip from random import shuffle from collections import OrderedDict import inspect import h5py import sys from skima...
MarvinBertin/Theano-Lights
toolbox.py
Python
mit
26,985
[ "Gaussian" ]
a547248c6d35c5930d094ca4b98c6b06b86f9b7d8ce8f40846f3cb9752833e0d
#!/usr/bin/env python # -*- coding: UTF-8 -*- import sys sys.path.append('../../src') sys.path.append('./src') import os, random, functools, glob, time import numpy as np import torch, torchvision from PIL import Image, ImageOps import cv2 import swl.language_processing.util as swl_langproc_util import text_data impo...
sangwook236/sangwook-library
python/test/language_processing/text_data_test.py
Python
gpl-2.0
72,993
[ "Gaussian" ]
2d967a4666a76865fe28af56a6767ff9c89a5ba89778f9b579e82517bd9079d3
# -*- coding:Utf-8 -*- """ .. currentmodule:: pylayers.antprop.antenna .. autosummary:: :members: """ from __future__ import print_function import doctest import os import glob import re import pdb import sys import numpy as np import scipy.linalg as la import matplotlib.pylab as plt from scipy import io from mat...
pylayers/pylayers
pylayers/antprop/antenna.py
Python
mit
183,342
[ "Gaussian", "Mayavi" ]
6ec2fe804371a8ca4231a5ebe916a5d40d8282af944d6e4b796bc189d2207aad
# -*- coding: utf-8 -*- # # Natural Language Toolkit: Snowball Stemmer # # Copyright (C) 2001-2013 NLTK Project # Author: Peter Michael Stahl <pemistahl@gmail.com> # Peter Ljunglof <peter.ljunglof@heatherleaf.se> (revisions) # Algorithms: Dr Martin Porter <martin@tartarus.org> # URL: <http://nltk.org/> # For li...
TeamSPoon/logicmoo_workspace
packs_sys/logicmoo_nlu/ext/pldata/nltk_3.0a3/nltk/stem/snowball.py
Python
mit
146,853
[ "ASE" ]
a52a6933f4795ae3ca1af3a9fcdff5d0addd34dc66ec27b06cbc9bcf60c703de
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
oleg-alexandrov/StereoPipeline
src/asp/Tools/bathy_threshold_calc.py
Python
apache-2.0
6,071
[ "Gaussian" ]
d3b20864db29292f324118232764cdf684d67a277d1caa86412b52f8654f135b
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe import frappe.utils import json from frappe.utils import cstr, flt, getdate, comma_and from frappe import _ from frappe.model.mapper im...
gangadhar-kadam/smrterp
erpnext/selling/doctype/sales_order/sales_order.py
Python
agpl-3.0
16,379
[ "VisIt" ]
a1d11b5e7a46dc8503396b01b6df6e32f5193473258f47c02ecca96b3ec0cad9
# $Id$ # Hop --- a framework to analyze solvation dynamics from MD simulations # Copyright (c) 2009 Oliver Beckstein <orbeckst@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...
Becksteinlab/hop
hop/trajectory.py
Python
gpl-3.0
36,579
[ "CHARMM", "MDAnalysis", "VMD" ]
fd7f379a5babdd01204a67b9c67f321780e95d7513160d3f130b1a73d552a260
# constants.py, constants available in Calculate, # by Reinier Heeres <reinier@heeres.eu> # Most of these come from Wikipedia. # # 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 ...
godiard/sugarlabs-calculate
constants.py
Python
gpl-2.0
1,661
[ "Avogadro", "DIRAC" ]
f1d28c3106f15fdccde1473edd6f7e7df6d09bd9142c807e383779fce13884e3
# -*- coding: utf-8 -*- """ Quickly setup a Pyccel source to work with pyccel. """ # TODO this file has not been refactored yet import sys import os import argparse from os import path from pyccel import __version__ as __display_version__ from pyccel.codegen.utilities_old import build_file from pyccel.codegen....
ratnania/pyccel
pyccel/commands/build.py
Python
mit
7,139
[ "VisIt" ]
a6b0c5ec0d5729a5156a9c3fff11c40ff01cc56948b8a18693a5184fd7d7bd27
#!/usr/bin/env python3 import math import warnings from copy import deepcopy from typing import Any, Optional import torch from torch import Tensor from ..distributions import MultivariateNormal, base_distributions from ..lazy import ZeroLazyTensor from ..utils.warnings import GPInputWarning from .likelihood import ...
jrg365/gpytorch
gpytorch/likelihoods/gaussian_likelihood.py
Python
mit
8,164
[ "Gaussian" ]
99890ecabe17ec2f8daf844d3450625ecff5aff5192dd9673698b2e313827e7e
import json import base64 import io import logging import posixpath import stat import tarfile import zipfile from pymisp import MISPEvent, MISPObject, MISPAttribute from pymisp.tools import make_binary_objects from collections import OrderedDict log = logging.getLogger(__name__) misperrors = {'error': 'Error'} modu...
MISP/misp-modules
misp_modules/modules/import_mod/cuckooimport.py
Python
agpl-3.0
26,979
[ "Galaxy" ]
1a01ca2781475649dac2c037216cbf417dc5d61f8818cf78d940e48e5b20025d
""" =================== Canny edge detector =================== The Canny filter is a multi-stage edge detector. It uses a filter based on the derivative of a Gaussian in order to compute the intensity of the gradients.The Gaussian reduces the effect of noise present in the image. Then, potential edges are thinned dow...
bennlich/scikit-image
doc/examples/plot_canny.py
Python
bsd-3-clause
1,634
[ "Gaussian" ]
7fa391bbbacdfae2806dbd7b83adc5d60729254a366f8096387c5934882a3e79
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import platform from matplotlib.font_manager import FontProperties from matplotlib.ticker import FormatStrFormatter """ This module provides classes for plot...
setten/pymatgen
pymatgen/analysis/pourbaix/plotter.py
Python
mit
34,814
[ "pymatgen" ]
bca3296cda6cb6d2bf99b03b36861abbf0c4bb8b49955730a9602eabb7204764
""" PEP PEP ( Policy Enforcement Point ) is the front-end of the whole Policy System. Any interaction with it must go through the PEP to ensure a smooth flow. Firstly, it loads the PDP ( Policy Decision Point ) which actually is the module doing all dirty work ( finding policies, running them, merging their ...
andresailer/DIRAC
ResourceStatusSystem/PolicySystem/PEP.py
Python
gpl-3.0
7,786
[ "DIRAC" ]
4aff6c1abe8bd45d1f4fe5084b8b05f9a1b15aadc706802f7923f2da0ab5b8e6
import os, sys from virus_stability import virus_stability class run_mutator(): def __init__(self, split_number, structure): try: self.sequence_file = open(split_number + "_sequences_file.txt", 'r') except: print("That sequence file does not exist in the current directory")...
blab/stability
augur/mutator/mutate_everything_2YP7/foldx_essentials/run_mutator_cluster.py
Python
agpl-3.0
4,401
[ "FoldX" ]
2df8282da1a864bd25353a32a36b373c3c83d9add2ea3ccb3722536d5cc6c51d
""" =============== GMM covariances =============== Demonstration of several covariances types for Gaussian mixture models. See :ref:`gmm` for more information on the estimator. Although GMM are often used for clustering, we can compare the obtained clusters with the actual classes from the dataset. We initialize th...
shyamalschandra/scikit-learn
examples/mixture/plot_gmm_covariances.py
Python
bsd-3-clause
4,752
[ "Gaussian" ]
70b222df10432fb771bc0e2669134213e9f66f489410a16a9831ff64acccd8a5
############################################################################## # 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/py-rseqc/package.py
Python
lgpl-2.1
1,892
[ "pysam" ]
e333cfd01be370b37f7d84eb1c0e387e156af585bcd45933b347b23d7046aaf0
######################################################################## # File: RemoveReplica.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2013/03/25 07:45:06 ######################################################################## """ :mod: RemoveReplica =================== .. module: RemoveReplica ...
DIRACGrid/DIRAC
src/DIRAC/DataManagementSystem/Agent/RequestOperations/RemoveReplica.py
Python
gpl-3.0
9,221
[ "DIRAC" ]
eb857145ab9899fb898f8d4271b2fc6ee487a7585a93efe7f78f29c554a9a894
import os import sys import json import zlib import types import logging import threading import collections import multiprocessing import synapse.link as s_link import synapse.common as s_common import synapse.dyndeps as s_dyndeps import synapse.telepath as s_telepath import synapse.lib.cell as s_cell import synapse...
vivisect/synapse
synapse/daemon.py
Python
apache-2.0
24,450
[ "NEURON" ]
2220caf3a54fcd340e8077e578bcb2719b36caa169782b5cf0fa93df94fc664f
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2019 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
CDSherrill/psi4
psi4/driver/psifiles.py
Python
lgpl-3.0
10,974
[ "Psi4" ]
ac7832bdc6eee6d1224a2dfcbda2426cd1e3326e8f99c0f94184bbc1e751081d
#!/usr/bin/env python import numpy as np from scipy import interpolate from glob import glob from VOTUtils import initLogger,checkParams class VOTSpectrum: '''This class takes a spectral shape and returns the spectral shape along with the absorbed spectral shape. You can either pass an array of energie...
kialio/VHEObserverTools
VOTSpectrum.py
Python
bsd-2-clause
13,143
[ "Galaxy" ]
6ea1d431be70e8461f274e101eadb147ff7070f1aa62bc17986e4556bcb7fd1c
import os import MooseDocs from MooseDocs.testing import MarkdownTestCase class TestBibtexExtension(MarkdownTestCase): """ Tests that Bibtex is working correctly. """ def readGold(self, name): """ The parsed markdown contains a path to ".../moose/docs/bib/moose.bib". This puts in the correct path a...
paulthulstrup/moose
docs/tests/bibtex/test_bibtex.py
Python
lgpl-2.1
2,093
[ "MOOSE" ]
1c1072f9c89ccf62ba41232c4b2b16cdb44ff7abf0b9d8cbec5059b78417e2e5
""" Tests for ORA (Open Response Assessment) through the LMS UI. """ import json from unittest import skip from bok_choy.promise import Promise, BrokenPromise from ..pages.lms.peer_confirm import PeerConfirmPage from ..pages.lms.auto_auth import AutoAuthPage from ..pages.lms.course_info import CourseInfoPage from ..p...
htzy/bigfour
common/test/acceptance/tests/test_ora.py
Python
agpl-3.0
15,617
[ "VisIt" ]
2c7b1cef2782d2963afa4455d56969e30641ccbe07bff3d97136711b8e979d21
from .spi_rack import SPI_rack from .chip_mode import ADF4351_MODE, ADF4351_SPEED, MAX521x_MODE, MAX521x_SPEED, BICPINS_SPEED import numpy as np class S5i_module(object): """S5i module interface class This class does the low level interfacing with the S5i RF generator module. It requires an SPI Rack objec...
peendebak/SPI-rack
spirack/S5i_module.py
Python
mit
9,976
[ "ADF" ]
b43ab15c21c82e11ec6650a0af8d8c84691aab0118813be35aa56d06e4d75d2c
import unittest from test.asserting.ast import get_fixture_path from vint.ast.parsing import Parser from vint.ast.node_type import NodeType from vint.ast.traversing import traverse, SKIP_CHILDREN from vint.linting.lint_target import LintTargetFile FIXTURE_FILE = get_fixture_path('fixture_to_traverse.vim') class Tes...
Kuniwak/vint
test/unit/vint/ast/test_traversing.py
Python
mit
4,589
[ "VisIt" ]
4f25f72c05aabcc159bf79af790e5c6d3fe0917c36c915ec3cbc1368e8993b12
""" Linter classes containing logic for checking various filetypes. """ import ast import io import os import re import textwrap from xsslint import visitors from xsslint.reporting import ExpressionRuleViolation, FileResults, RuleViolation from xsslint.rules import RuleSet from xsslint.utils import Expression, Parse...
cpennington/edx-platform
scripts/xsslint/xsslint/linters.py
Python
agpl-3.0
67,952
[ "VisIt" ]
96d1f6beec6cc46eb219512009837fe282a685aeb7ffd434f631e6a60f4fc1c6
# Copyright (C) 2015-2021 S[&]T, The Netherlands. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, # this list of condi...
stcorp/harp
python/_harppy.py
Python
bsd-3-clause
60,040
[ "NetCDF" ]
9a76005b09213344b46a4c9026de470f1ca782a50a7864cd19f63c724b83ae05
# -*- coding: utf-8 -*- # Copyright 2016-2021 The pyXem developers # # This file is part of pyXem. # # pyXem 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 optio...
pycrystem/pycrystem
pyxem/utils/radial_utils.py
Python
gpl-3.0
25,535
[ "Gaussian" ]
7475a0924258e71360bd6582ecb941cec5bcbd0928f6e58b4bd05e875b52e86f
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
google/portrait-shadow-manipulation
utils.py
Python
apache-2.0
22,340
[ "Gaussian" ]
87df843f6bf549c5009eef3d9a2a158a5d64fc3b0b51fd482eee2576ddddb642
import os from ddapp import lcmUtils import ddapp.objectmodel as om import ddapp.applogic as app from ddapp import transformUtils from ddapp.debugVis import DebugData from ddapp import ioUtils from ddapp import filterUtils from ddapp.shallowCopy import shallowCopy from ddapp import vtkAll as vtk from ddapp import visu...
RussTedrake/director
src/python/ddapp/drakevisualizer.py
Python
bsd-3-clause
14,593
[ "VTK" ]
9b192a4c8cb9fb35801f377196dd38c64fcca0250e0028260cff779fbbeb5333
# (c) 2013-2014, Michael DeHaan <michael.dehaan@gmail.com> # (c) 2015 Toshio Kuratomi <tkuratomi@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 Foundation, either...
ownport/ansiblite
src/ansiblite/executor/module_common.py
Python
gpl-3.0
35,771
[ "VisIt" ]
4768bc2b38850f3790b3eac5111fdbc9744af0b913ef3c748dd725b3a9c49159
#!/usr/bin/env python # Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework 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.or...
bikashgupta11/javarobot
src/main/resources/jython/Lib/robot/run.py
Python
gpl-3.0
31,766
[ "VisIt" ]
7b5cf9b377a2f0d76f2cea583ea0f8f55f399cc1a84ec76ed1407a5219480bea
import os import re import time import itertools import subprocess import random import numpy as np from .._population import Population from pychemia import pcm_log from pychemia.code.abinit import AbinitInput, AbinitOutput from pychemia.utils.mathematics import gram_smith_qr, gea_all_angles, gea_orthogonal_from_angle...
MaterialsDiscovery/PyChemia
pychemia/population/orbitaldftu/_population.py
Python
mit
35,753
[ "ABINIT", "NetCDF" ]
7211f973e0463169a717b7fc033df6e999b6376a8da9c216030c95fc20ca879e
# -*- coding: utf-8 -*- ''' Created on 29/04/2014 @author: Alex Montes Barrios ''' import sys import os import sqlite3 as lite import urllib import urllib2 import cookielib import base64 import pprint import re import CustomRegEx import urlparse import xml.dom.minidom as minidom import HTMLParser import CustomRegEx ...
pybquillast/xkAddonIDE
basicFunc.py
Python
gpl-3.0
19,074
[ "CASINO" ]
85115c4e9075e40a11423c0da59d07e98956bc7489ba2939a95cab6d594e9184
# -*- coding: utf-8 -*- """ Example ``Document`` with completion suggester. In the ``Person`` class we index the person's name to allow auto completing in any order ("first last", "middle last first", ...). For the weight we use a value from the ``popularity`` field which is a long. To make the suggestions work in di...
3lnc/elasticsearch-dsl-py
examples/completion.py
Python
apache-2.0
2,482
[ "Brian" ]
afc732c8c1d7bf4ef6107125da72a8218dd02fe592bcdb22322409445618e8d0
#!usr/bin/env python #encoding: utf-8 __author__="luzhijun" ''' cma restart test ''' import numpy as np from scipy import ndimage import matplotlib.pyplot as plt #Data: x = np.linspace(0,2*np.pi,100) f = np.sin(x) + .02*(np.random.rand(100)-.5) #Normalization: dx = x[1] - x[0] # use np.diff(x) if x is not uniform dxdx ...
luzhijun/Optimization
傅里叶拟合/fourier/cha.py
Python
apache-2.0
1,037
[ "Gaussian" ]
5a1d37c2db6cf2c187e91e77983e1837fb59f59365a9debe1ae394b5fbbd92ae
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2018 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
amjames/psi4
psi4/driver/procrouting/dft_funcs/dict_builder.py
Python
lgpl-3.0
16,139
[ "Psi4" ]
ce92e33fbd8e19e725d2bd206bab99162d2593bf783d5927831d768602799ca2
from validx import Dict, Str from enum import IntFlag, IntEnum from .animation import Animation from .utils.validator import UInt8, UInt16 class AIOptions(IntFlag): NONE = 0 FLAG_1 = 0x1 FLAG_2 = 0x2 FLAG_3 = 0x4 FLAG_4 = 0x8 FLAG_5 = 0x10 FLAG_6 = 0x20 FLAG_7 = 0x40 FLAG_8 = 0x80...
omf2097/pyomftools
omftools/pyshadowdive/afmove.py
Python
mit
8,999
[ "BLAST" ]
ba9ba6a9b04f3683f07238f49a9291ed01f78862d23588a6edbe1d411f483e13
######################################################################## # # (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 ...
scottcunningham/ansible
lib/ansible/cli/galaxy.py
Python
gpl-3.0
21,331
[ "Galaxy" ]
02b5d3c1f965081f345b4ce58ff9060ea4884645cf5ef6f3bdf792a31c5d1fad
from pymatgen.core.periodic_table import Element # Call elements by atomic # class ElementList(object): """ Class for creating element lists and ranges By default the first list created is in order of atomic number Args: N/A """ #start_fold - ElementList def __init__(self, atom_num_lst=[[]]): se...
raulf2012/pourbaix_pymatgen
element_list.py
Python
mit
3,455
[ "pymatgen" ]
78a536d2629a7b84295d12243c91f7c0254b496fc67ae1a80605ff5d11fe0af5
############################################################################### # import Python modules # import 3rd party modules from numpy import * #from pylab import * # import user modules from acalc import * ############################################################################### """ 20070202 HI: This...
jjdmol/LOFAR
CEP/Calibration/ExpIon/src/mpfit.py
Python
gpl-3.0
100,859
[ "Gaussian" ]
4adf0728d3143d7ce13773f8ce67b9de84f246ab82968904bbc94ee049291fc7
# -*- coding: utf-8 -*- """Some utility functions""" from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # # License: BSD (3-clause) import warnings import logging import time from distutils.version import LooseVersion import os import os.path as op from funct...
yousrabk/mne-python
mne/utils.py
Python
bsd-3-clause
67,241
[ "Mayavi" ]
a5dd33f8d4df868cb8dc4f68ce3eca913d1f15700f4ae55a2852e763f9d0df6b
import json import os import time from SWParser import * from SWPlugin import SWPlugin import logging logger = logging.getLogger() import threading rival_name = { #there may be more, given alt versions of rivals '5001': "(R) Gready", '5002': "(R) Morgana", '5003': "(R) Edmund", '5004': "(R) Volta", ...
lstern/SWProxy-plugins
plugins/ArenaLogger.py
Python
lgpl-3.0
7,293
[ "CRYSTAL" ]
6177ff65daf32f5c6f1b64ee646a8e1ef9bd96a1ae58815928c776bd40d8d925
""" The RucioFileCatalogClient is a class that allows to interface Dirac with Rucio """ from __future__ import print_function from __future__ import absolute_import from __future__ import division __RCSID__ = "$Id" import os import uuid import datetime from copy import deepcopy import DIRAC from DIRAC import S_OK, S...
ic-hep/DIRAC
src/DIRAC/Resources/Catalog/RucioFileCatalogClient.py
Python
gpl-3.0
27,128
[ "DIRAC" ]
4915b801b5ecad30c02992ffb749a6aecfeee59d7a80eb7ac5647b378e9361bd
#!/usr/bin/env python import sys import os import os.path import argparse parser = argparse.ArgumentParser() parser.add_argument('--lammps', type=str, nargs='+', help='directories containing LAMMPS simulation files', default=[]) parser.add_argument('--espp', type=str, nargs='+', ...
pdebuyl/cg_md_polymerization
code/analyse_chain.py
Python
bsd-3-clause
3,137
[ "ESPResSo", "LAMMPS" ]
3f327769a65c8bd34ef1cf5d68b9bd8621fec3307a2726d0da1967bbf47a3594
import copy import warnings from collections.abc import Iterable, Iterator, Generator import numpy as np import scipy import scipy.optimize import scipy.stats from astropy import log import matplotlib.pyplot as plt from stingray.exceptions import StingrayError from stingray.gti import bin_intervals_from_gtis, check_g...
abigailStev/stingray
stingray/crossspectrum.py
Python
mit
97,663
[ "Gaussian" ]
bb7182c05831a90d4adab0e11328d72f74f3778edb2ba4693d72b4d40d8c3239
# -*- coding: utf-8 -*- import datetime from travel_penguin.model.act import CommandType, ActionType from travel_penguin.travel.penguin_db import PenguinDb from travel_penguin.travel.penguin_act import PenguinAct from travel_penguin.travel.penguin_nlu import PenguinNLU from travel_penguin.travel.penguin_nlg import Peng...
icoxfog417/TravelPenguinBot
travel_penguin/travel/penguin.py
Python
mit
1,941
[ "VisIt" ]
0533cccdcfbdb26b95732c74ab367b2d858374530f58d2f06c5f3d101b10822d
#!/usr/bin/env python3 #* This file is part of the MOOSE framework #* https://www.mooseframework.org #* #* All rights reserved, see COPYRIGHT for full restrictions #* https://github.com/idaholab/moose/blob/master/COPYRIGHT #* #* Licensed under LGPL 2.1, please see LICENSE for details #* https://www.gnu.org/licenses/lgp...
harterj/moose
python/MooseDocs/test/extensions/test_core.py
Python
lgpl-2.1
5,599
[ "MOOSE" ]
dca133c53dd1fd6d61c2f9db407f587d54dad428c46c865a1a20b2dbf4152e12
""" ElasticSearch wrapper """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import logging from cmreslogging.handlers import CMRESHandler from DIRAC.Resources.LogBackends.AbstractBackend import AbstractBackend class ElasticSearchBack...
ic-hep/DIRAC
src/DIRAC/Resources/LogBackends/ElasticSearchBackend.py
Python
gpl-3.0
3,243
[ "DIRAC" ]
4e67f4df696217b8745a033ea747edcbae4850168f15b049c95a1f72dee0bf34
#!/usr/bin/python -O ############################################################################ # Copyright (c) 2015 Saint Petersburg State University # Copyright (c) 2011-2014 Saint Petersburg Academic University # All Rights Reserved # See file LICENSE for details. #################################################...
INNUENDOWEB/INNUca
src/SPAdes-3.10.1-Linux/share/spades/spades_pipeline/corrector_logic.py
Python
gpl-3.0
2,464
[ "BWA" ]
a7d41cd4c77a2200704906a3718085ca1e2f6e17ddd6c024856edf7057204521
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','description','copyright','...
ktiniatros/TTS-iOS7
build.py
Python
apache-2.0
6,802
[ "VisIt" ]
a62ae51f319d67474b446456ddf2fe0306ef8ffd413f144b305f272a5fc0fdf5
# # @BEGIN LICENSE # # Psi4: an open-source quantum chemistry software package # # Copyright (c) 2007-2022 The Psi4 Developers. # # The copyrights for code used from other parties are included in # the corresponding files. # # This file is part of Psi4. # # Psi4 is free software; you can redistribute it and/or modify #...
psi4/psi4
psi4/driver/qcdb/molpro_basissets.py
Python
lgpl-3.0
196,834
[ "Psi4" ]
0503eba0a260889df358f313e741e7ca004fb19f91c685a8f7672485134da21d
#!/usr/bin/python from numpy import * from scipy import * from scipy.special import * from scipy import optimize from scipy import signal from operator import itemgetter import re import os import helplib as hl from math import sqrt from math import log #now for the interesing part: we only load the matplotlib.py...
nano-bio/fitlib
fitlib.py
Python
bsd-3-clause
12,142
[ "Gaussian" ]
cae213981c5e75853d2e0d5a7f260555caebcae749aaaf4aeedba7be276df710
# Copyright (c) 2016-present, Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed...
davinwang/caffe2
caffe2/python/toy_regression_test.py
Python
apache-2.0
3,493
[ "Gaussian" ]
1558b5fe78ba8138add19b54618723cc91ae7e8435747cadc08b3a24fc3d896c
"""Script to migrate the meta.yaml files Script to migrate the meta.yaml files when the schema changes. Edit the callback function at the bottom of the file. """ import os import glob # pylint: disable=redefined-builtin from toolz.curried import pipe, valmap, itemmap, do, get, map import yaml def get_path(): ...
wd15/chimad-phase-field
_data/migrate_yaml.py
Python
mit
2,475
[ "MOOSE" ]
d31568151771117317ed42e290605f434d59dde270c8f0620cc15fcdd26251f4
# Import the necessary packages for the correct calculations from numpy import pi import numpy as np ### IMPORTANT NOTE: in your functions, always use the functions provided by numpy or compatible packages. For that, use e.g. np.sin(x), np.exp(x) etc. # This one is Gaussian with fixed polarization (spatially uniform ...
ivan-galinskiy/ray-opto-tweezer-sim
beam_profiles.py
Python
gpl-2.0
4,232
[ "Gaussian" ]
4bd279e8bdc4e80a4c9e8982248b013f8e3115ac997274c1e36cb54e2302f8a2
""" Extended docstrings for functions.py """ pi = r""" `\pi`, roughly equal to 3.141592654, represents the area of the unit circle, the half-period of trigonometric functions, and many other things in mathematics. Mpmath can evaluate `\pi` to arbitrary precision:: >>> from mpmath import * >>> mp.dps = 50; m...
GbalsaC/bitnamiP
venv/lib/python2.7/site-packages/sympy/mpmath/function_docs.py
Python
agpl-3.0
276,840
[ "Gaussian" ]
020dd05fd84dc20e1f9121e34f50464819f9371788d2b3e681a871d1f6660a0f
# coding=utf-8 import unittest """811. Subdomain Visit Count https://leetcode.com/problems/subdomain-visit-count/description/ A website domain like "discuss.leetcode.com" consists of various subdomains. At the top level, we have "com", at the next level, we have "leetcode.com", and at the lowest level, "discuss.leetc...
openqt/algorithms
leetcode/python/ac/lc811-subdomain-visit-count.py
Python
gpl-3.0
3,216
[ "VisIt" ]
c2683113af58ad6dc102f69b7545a909e063004c49b6b05b8dd79e019d164a10
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2014 The ProteinDF development team. # see also AUTHORS and README if provided. # # This file is a part of the ProteinDF software package. # # The ProteinDF is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publ...
ProteinDF/ProteinDF_bridge
scripts/brd2pdb.py
Python
gpl-3.0
2,341
[ "Amber" ]
38e137aad729fd14fcc98accc8c39681e5aadda5734b8ef64d6486ad42c5f596
#David Hickox # Question 1 car = input("What kind of car do you drive?") if car.lower() == "toyota" or car.lower() == "honda": msg = "you drive a fuel efficient car!" else: msg = "you ruin the enviroment" print(msg) # Question 2 name = input("What is your name?") savings = float(input("What is your savi...
dwhickox/NCHS-Programming-1-Python-Programs
Chap 3/ElifWorkSheet.py
Python
mit
2,563
[ "VisIt" ]
0545341c35a2adfebaaeea011b6edb904588a216264011908b14a42d97d74202
# # AtHomePowerlineServer - networked server for CM11/CM11A/XTB-232 X10 controllers # Copyright © 2014, 2021 Dave Hocker # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the...
dhocker/athomepowerlineserver
Version.py
Python
gpl-3.0
557
[ "xTB" ]
f0237c120a678a508c7758492231a48a19c838d39615919f8f7d7ee7938ed35c
import numpy as np import matplotlib.pyplot as plt import sys # Add the PyRsw tools to the path # At the moment it is given explicitely. # In the future, it could also be added to the # pythonpath environment variable sys.path.append('../src') import Steppers as Step import Fluxes as Flux from PyRsw import Simulation...
PyRsw/PyRsw
examples/example_2D_geoadjust.py
Python
mit
2,568
[ "Gaussian" ]
f40d3d17bd9725d0b047384eb08e9daabd241725d45bff65526e1ea2d03bfed6
#!/usr/bin/env python # -*- coding: utf-8 -*- #from xml.dom import minidom # -> elementTree ? import re #from utils import sanitize class XmlGW(): """ Class for xml objects . you want to create a xml wrapper for galaxy from any program help """ def __init__(self, mybigdict, vprog, vtool): ...
remyd1/XMLparser-wrapper
gaclass/wrapper_galaxy_class.py
Python
apache-2.0
16,952
[ "Galaxy" ]
b6b611a9c52458d8b29e3b8f6e378703da2735f12794de29d7a943c0c4162b80
""" ========================================== Statistical functions (:mod:`scipy.stats`) ========================================== .. module:: scipy.stats This module contains a large number of probability distributions as well as a growing library of statistical functions. Each univariate distribution is an insta...
mortonjt/scipy
scipy/stats/__init__.py
Python
bsd-3-clause
8,450
[ "Gaussian" ]
4ac849c79c4854750b5c6bef81c3c98bf89546b87ba5817991a33fa5aee09019
############################################################################## # 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...
krafczyk/spack
var/spack/repos/builtin/packages/r-affypdnn/package.py
Python
lgpl-2.1
1,690
[ "Bioconductor" ]
6cd82eca72790c913f935d437b12cf2707ed867da52ad3cb935fb1579e4c9147
import matplotlib.pyplot as plt import numpy as np from skimage import io,color,data,filters,exposure,util #plt.switch_backend('qt5agg') def pseudocolor(): image=io.imread('timg.jpeg') imagergb=image.copy() imagergb[:,:,0]=np.interp(image[:,:,0],[0,50,100,150,200,255],[0,0,0,55,155,255]) imagergb[:,:,...
xingnix/learning
imageprocessing/python/6/colorimage.py
Python
gpl-3.0
6,608
[ "Gaussian" ]
013c6a1a1ad6a10a7728135d8e4eec337e4d44f10379f478fd174995fd92deef
# 05.06.2007, c # last revision: 05.06.2007 input_name = 'input/le.py' output_name = 'test_le.vtk' from testsBasic import TestInput class Test( TestInput ): pass
certik/sfepy
tests/test_input_le.py
Python
bsd-3-clause
168
[ "VTK" ]
428bd21b56b2e69c3c6eefd909094b3f8f2159e5f4b63e58eb1a33faca7bf08a
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 # # Copyright (C) 2021 Stoq Tecnologia <http://www.stoq.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 Foundation;...
stoq/stoq-server
stoqserver/api/resources/invoice.py
Python
gpl-2.0
3,006
[ "VisIt" ]
ef8ce8f242b1a041efe5c4d25276ce37dbd74fd1f05df9713ccd54641c85261a
import sys import os import shutil import subprocess if len( sys.argv ) == 2: PG_DATA_DIR_DEFAULT = sys.argv[1] else: PG_DATA_DIR_DEFAULT = "/var/lib/postgresql/9.3/main" PG_DATA_DIR_HOST = os.environ.get("PG_DATA_DIR_HOST", "/export/postgresql/9.3/main/") PG_CONF = '/etc/postgresql/9.3/main/postgresql.conf' ...
afgane/docker-galaxy-stable
galaxy/export_user_files.py
Python
mit
5,491
[ "Galaxy" ]
253114a11192b1d11f91f473780d47d84f0f538e2699582caeb746b8839cccf8
#!/usr/bin/env python # -*- coding: utf-8 -*- """ braggutils: utilities around the Bragg's law ($ n \lambda = 2 d sin \theta $) """ import warnings import numpy as np import logging try: import scipy.constants.codata as const HAS_CODATA = True h = const.value("Planck constant in eV s") # eV s c = con...
maurov/xraysloth
sloth/utils/bragg.py
Python
bsd-3-clause
9,341
[ "CRYSTAL" ]
d56abab46960d430bca64f53a22527975324e6bb42cde3c13162986d36899e28
# Copyright (C) 2013 Jeremy S. Sanders # Email: Jeremy Sanders <jeremy@jeremysanders.net> # # 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 # ...
veusz/veusz
veusz/utils/safe_eval.py
Python
gpl-2.0
5,382
[ "VisIt" ]
a5e7be83eb89a6d47391af23ff90e956485022a5bb3584f15502c5b3ff24fd31
# # This Source Code Form is subject to the terms of the Mozilla Public License, # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at http://mozilla.org/MPL/2.0/. # # Copyright (c) 2015 Digi International Inc., All Rights Reserved. # from hamcrest import assert_that, ends_with, is...
brucetsao/XBeeZigBeeCloudKit
splinter_tests/test_dashboard_page.py
Python
mpl-2.0
7,060
[ "VisIt" ]
35fe77275b8bb7295479cc418d2b15fde6500939f7360b38e86dc2f18c3d741f
# Dual annealing unit tests implementation. # Copyright (c) 2018 Sylvain Gubian <sylvain.gubian@pmi.com>, # Yang Xiang <yang.xiang@pmi.com> # Author: Sylvain Gubian, PMP S.A. """ Unit tests for the dual annealing global optimizer """ from scipy.optimize import dual_annealing from scipy.optimize._dual_annealing import E...
nmayorov/scipy
scipy/optimize/tests/test__dual_annealing.py
Python
bsd-3-clause
12,820
[ "VisIt" ]
43f9384f84741bb231fc910417d7f9584b4c18a747a052bdfd38451b8abc8380
from lettuce import step, world from questionnaire.features.pages.questions import QuestionListingPage from questionnaire.features.pages.step_utils import create_user_with_no_permissions, assign, \ create_regional_admin_with_no_permissions from questionnaire.features.pages.users import LoginPage from questionnaire....
eJRF/ejrf
questionnaire/features/question_regional_steps.py
Python
bsd-3-clause
6,076
[ "VisIt" ]
e0746f84ae6205655b1afae4c80f1420349e74ac50236e4c4885eff4e70d397e
"""The WaveBlocks Project This file contains the class which represents a homogeneous Hagedorn wavepacket. @author: R. Bourquin @copyright: Copyright (C) 2010, 2011, 2012, 2013, 2014, 2016 R. Bourquin @license: Modified BSD License """ from numpy import zeros, complexfloating, array, eye, atleast_2d, angle, squeeze ...
WaveBlocks/WaveBlocksND
WaveBlocksND/HagedornWavepacket.py
Python
bsd-3-clause
7,026
[ "Gaussian" ]
258e50078a8c2b1ab07f465eeee0f24178a977b70e03b4bc84340bf0a9e389b0
# # File : building.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2015, RT-Thread Development Team # # 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...
yongli3/rt-thread
tools/building.py
Python
apache-2.0
30,756
[ "CDK" ]
811009c3a48c15027606386ef2533dd86c7bff7e479a02676942e3ee901c4230
"""MCMC sampling methods.""" import logging import numpy as np logger = logging.getLogger(__name__) # TODO: combine ESS and Rhat?, consider transforming parameters to allowed # region to increase acceptance ratio def eff_sample_size(chains): """Calculate the effective sample size for 1 or more chains. Se...
HIIT/elfi
elfi/methods/mcmc.py
Python
bsd-3-clause
16,593
[ "Gaussian" ]
7314e43855997115da31471e0852c9a73db5035c200fd61177add2f29ccd70c5
# # libtcod 1.5.1 python wrapper # Copyright (c) 2008,2009,2010 Jice & Mingos # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright...
KittyTristy/roguekit
libs/libtcodpy.py
Python
gpl-2.0
60,843
[ "Amber" ]
897118b13b134e54d610c8ba5bdd680aa2ab3a7b3287a9c800aa3843893feec9
# This file is part of wger Workout Manager. # # wger Workout Manager is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # wger W...
petervanderdoes/wger
wger/exercises/tests/test_muscles.py
Python
agpl-3.0
4,099
[ "VisIt" ]
658dc8114e5567beb7b4ee7196fb4264814ff80d0799915cf9f2a552d5ba320d
#!/hadron/knippsch/Enthought/Canopy_64bit/User/bin/python ################################################################################ # # Author: Christopher Helmes (helmes@hiskp.uni-bonn.de) # Date: Februar 2015 # # Copyright (C) 2015 Christopher Helmes # # This program is free software: you can redistribute i...
chjost/analysis-code
plot_lqmd.py
Python
gpl-3.0
5,803
[ "Gaussian" ]
bf9fd176690e207b933b1f44765bcccd16e0b647b597d8ce615bb28867825f17
from __future__ import print_function, division import sys, numpy as np from numpy import concatenate, ravel, diagflat, zeros, einsum, stack from pyscf.nao import scf from copy import copy class qchem_inter_rf(scf): """ Quantum-chemical interacting response function """ def __init__(self, **kw): """ Constru...
gkc1000/pyscf
pyscf/nao/qchem_inter_rf.py
Python
apache-2.0
3,401
[ "PySCF" ]
a840eeb01a243252b05fe715c8100fffe3f28315b809f4ec1b7f4cc876a29b59
import os import pickle import re import sys from Queue import Queue from zipfile import ZipFile DIR = 'pwd' files = [] for filename in os.listdir(DIR): files.append(filename) prev = {} in_count = {} out_edge = {} f = open('dict', 'r') password_dict = pickle.load(f) f.close() for filename in files: f = ope...
Qwaz/solved-hacking-problem
SSCTF/2016/Crypto&Exploit/Chain Rule/pwd.py
Python
gpl-2.0
2,519
[ "VisIt" ]
44e9bbb1b909113db28d85c7819f9b34b6c5d5b94a4ea29aff8b2657b398cefd
# id.po val = {"" : "Project-Id-Version: sheltermanager\nReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\nPOT-Creation-Date: 2013-01-24 10:55+0000\nPO-Revision-Date: 2012-01-03 11:49+0000\nLast-Translator: Russell Hunter <Unknown>\nLanguage-Team: Indonesian <id@li.org>\nMIME-Version: 1.0\nContent-Type: text/plain; cha...
aubzen/sheltermanager
src/locale/locale_id.py
Python
gpl-3.0
87,325
[ "Amber", "VisIt" ]
c8ebfe3e3ca6ccadec33b8d5d30d5ed270353b39f9ceafdb60acdb2f6bb3b074
from ase import Atoms from gpaw import GPAW, FermiDirac import numpy as np a = 2.0 L = 5.0 a1 = Atoms('H', pbc=(1, 0, 0), cell=(a, L, L)) a1.center() atoms = a1.repeat((4, 1, 1)) def energy(usesymm): atoms.set_calculator(GPAW(h=0.3, occupations=FermiDirac(width=0.1), ...
qsnake/gpaw
gpaw/test/usesymm.py
Python
gpl-3.0
565
[ "ASE", "GPAW" ]
78ac8f2171fb540e0c2804ca399eeb1f35883ddb965c801975c1fa9eb5e5a96b
from tcga_encoder.utils.helpers import * from tcga_encoder.data.data import * from tcga_encoder.definitions.tcga import * #from tcga_encoder.definitions.nn import * from tcga_encoder.definitions.locations import * #from tcga_encoder.algorithms import * import seaborn as sns from sklearn.manifold import TSNE, locally_li...
tedmeeds/tcga_encoder
tcga_encoder/analyses/kmeans_from_z_space_global_alternates.py
Python
mit
13,108
[ "Amber" ]
903d14904a31168c916a7528294558f9b3fd48bfcde37baeaf86d2ce79eec7ae
import os import unittest import logging import vtk, qt, ctk, slicer from slicer.ScriptedLoadableModule import * from slicer.util import VTKObservationMixin # # CurveCenterlineExtraction # class CurveCenterlineExtraction(ScriptedLoadableModule): """Uses ScriptedLoadableModule base class, available at: https://git...
vmtk/SlicerExtension-VMTK
CurveCenterlineExtraction/CurveCenterlineExtraction.py
Python
apache-2.0
39,907
[ "VTK" ]
04d95aae9fa40f79f989a83acd016940502729a37e2bfe4422bc1b9c73d7c86d
# coding: utf-8 from __future__ import division, unicode_literals """ Created on March 25, 2013 @author: geoffroy """ import numpy as np from math import ceil from math import cos from math import sin from math import tan from math import pi from warnings import warn from pymatgen.symmetry.analyzer import Spacegro...
Dioptas/pymatgen
pymatgen/symmetry/bandstructure.py
Python
mit
32,176
[ "pymatgen" ]
43681aaf6bcac9a026092014177d370239e5cd12f5a7785e44901aa699fc32ea
# -*- coding: utf-8 -*- ## Copyright (c) 2015-2020, Exa Analytics Development Team ## Distributed under the terms of the Apache License 2.0 """ Tests for :mod:`~exatomic.interfaces.cube` ############################################# """ import numpy as np from unittest import TestCase from exatomic.base import resource...
exa-analytics/atomic
exatomic/interfaces/tests/test_cube.py
Python
apache-2.0
2,188
[ "ADF" ]
ff98c32b6fad5d8508fc64d1a77ab365ab804b22fde118ebdeb8f2afc8ae46e1