text
stringlengths
12
1.05M
repo_name
stringlengths
5
86
path
stringlengths
4
191
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
12
1.05M
keyword
listlengths
1
23
text_hash
stringlengths
64
64
import os import shutil import sys import string import re import time import file import ut import menu # # Input to conversion are: # # dbl/flt, : select via argv # little/big, : pass to vtk function # single/multi : # num. of scalars: # num. of vectors: # rec_beg: # rec_end: # # Input to VTK: # # ...
kylekanos/mypluto
Tools/Python/fileconvert.py
Python
gpl-2.0
1,914
[ "VTK" ]
0f9ead933ef4717e64d71ccbc3c9a68f834bbbc7a5596f2f3d06129e0ddcd1a6
from dimerizer.alparser import atomlist_backparser as backparser def write(sigmas,natoms,atomlist,outdir, allatoms=False, q = 0.5, temp = 300, atoffset=0): """ A collection plumed template for the two basic ways of running a Dimer simulation. Check the Plumed documentation for more info about the Dimer Co...
marckn/dimerizer
dimerizer/plumed/templates.py
Python
gpl-3.0
1,545
[ "Gromacs" ]
04342e08d46356aa132ffeaa432073650da9723e148c2aa8eb2f1d90a9f6c363
#!/usr/bin/env python # -*- coding: utf-8 -*- """Creating an appointment system with email blast.""" def prepare_email(appointments): """Generates the text of an email to clients. Args: appointments: A list of two-item tuples with the client's name and their appointment time as members R...
slb6968/is210-week-06-synthesizing
task_02.py
Python
mpl-2.0
1,149
[ "BLAST" ]
99a16027ea47ff4e0cd544b38d4d0515e3015308df90a10549d60306ef9b5926
import math import random import numpy from base import EffectLayer, HeadsetResponsiveEffectLayer class FireflySwarmLayer(HeadsetResponsiveEffectLayer): """ Each tree is a firefly. When one blinks, it pulls its neighbors closer or further from blinking themselves, bringing the group into and out of sync. ...
chillpop/RELAX-HARDER
effects/firefly_swarm.py
Python
mit
5,371
[ "Firefly" ]
52dee4a593a6a7a29a08b46693e5b3abb2d87a6df88d71a768d20d508a182efd
# coding: utf8 { '': '', '%Y-%m-%d': '%Y-%m-%d', '%Y-%m-%d %H:%M:%S': '%Y-%m-%d %H:%M:%S', 'About': 'About', 'Account': 'Cuenta', 'Accounting': 'Contabilidad', 'Accounting period': 'Accounting period', 'Accounts plan': 'Accounts plan', 'Actions': 'Actions', 'Activate period': 'Activate period', 'Active user: ': 'Usuari...
reingart/gestionlibre.gui
languages/es-es.py
Python
agpl-3.0
26,342
[ "VisIt" ]
ae849df93bc969ebbee60fd4e31f3e38d24334b0baa4c08e92b09f24caa9749c
import re from copy import deepcopy import math as m import numpy as nu from scipy import stats, linalg from matplotlib import pyplot, patches from extreme_deconvolution import extreme_deconvolution try: from galpy.util import bovy_plot #Latest except ImportError: import bovy_plot _SQRTTWOPI= -0.5*nu.log(2.*nu....
jobovy/xdtarget
py/xdtarget.py
Python
bsd-3-clause
20,520
[ "Gaussian" ]
64ae67d864c2dc7da9363d8f2779c90ee1cefee4ef870b978c53ad83264f5979
# Copyright 2010 Google Inc. # # 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 restriction, including # without limitation the rights to use, copy, modify, merge, publish, dis- # trib...
rjschwei/boto
boto/gs/key.py
Python
mit
42,387
[ "VisIt" ]
65b7bd464e91c12f6a8915e9204ceab91bd0ff79e40dc61afaffd44a88aaf806
# -*- coding: utf-8 -*- """ Created on Thu Jul 6 11:50:10 2017 @author: Tristan Mackenzie QNMR 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...
tam10/nmr
nmr.py
Python
gpl-3.0
33,679
[ "Gaussian" ]
59a2b37fec4fb51b3930923d3c89918549420bc810356b9ded2d606506e9afa0
# -*- coding: utf-8 -*- import hashlib import json from collections import OrderedDict as _OrderedDict from collections.abc import Mapping as _Mapping from mpcontribs.io.core import replacements, mp_level01_titles # try: # from propnet.core.quantity import Quantity # except ImportError: # Quantity = None class...
materialsproject/MPContribs
mpcontribs-io/mpcontribs/io/core/recdict.py
Python
mit
5,442
[ "pymatgen" ]
2486d50cfb9c72f7b3547966d00fcc32951b363ee42d60ff045232243543ccf4
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/tools/tabulated.py
Python
gpl-3.0
1,832
[ "ESPResSo" ]
46d7d3132c8f1aa6cf426c0474f311d2d5903cf52c9083db4afac37474e577d3
""" Test the about xblock """ import datetime import pytz from ccx_keys.locator import CCXLocator from django.conf import settings from django.core.urlresolvers import reverse from django.test.utils import override_settings from milestones.tests.utils import MilestonesTestCaseMixin from mock import patch from nose.plu...
pepeportela/edx-platform
lms/djangoapps/courseware/tests/test_about.py
Python
agpl-3.0
25,870
[ "VisIt" ]
a3bb5cca93ca9287eee9f7852c2f3877de0950eb92fd625e2840cf4f1ce69a5e
# Copyright 2019 The MediaPipe Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to ...
google/mediapipe
mediapipe/examples/desktop/media_sequence/demo_dataset.py
Python
apache-2.0
12,945
[ "Galaxy" ]
bace92ec27e29bc0c1a7b563ac6dae96e38998072048b31ab456be34254d30fb
# -*- coding: utf-8 -*- ''' This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is dis...
azumimuo/family-xbmc-addon
plugin.video.genesisreborn/resources/lib/sources/rlsbbonline.py
Python
gpl-2.0
5,339
[ "ADF" ]
700369e24b6962f88d51c8a3810dfd46e5c663d1c56d197a060b7499bfd0889e
from math import sin, cos, pi import numpy as np from gpaw.fd_operators import NewGUCLaplace as Laplace from gpaw.fd_operators import Gradient from gpaw.grid_descriptor import GridDescriptor from gpaw.mpi import size cells = [ ('distorted hexagonal', 4, [(1, 0, 0), (1.02 * cos(pi / 3 - 0.02), 1.02 * sin...
qsnake/gpaw
gpaw/test/laplace.py
Python
gpl-3.0
2,907
[ "GPAW" ]
4a6a957fc4a269a3b3bc39d7dc7e9307f03b5dbba520a3bfa7fa39310883d729
#!/usr/bin/env python """ Generate a single CA file with all the PEMs """ import sys from DIRAC import gLogger from DIRAC.Core.Base.Script import Script from DIRAC.Core.Security import Utilities @Script() def main(): Script.parseCommandLine(ignoreErrors=True) result = Utilities.generateCAFile() if not r...
DIRACGrid/DIRAC
src/DIRAC/Core/scripts/dirac_generate_cas.py
Python
gpl-3.0
434
[ "DIRAC" ]
37962f0904d6c2fcd2d4c7de8e67bdfe30dff7fe087ae626a2f40e5e845167a3
r""" I/O Registry (:mod:`skbio.io.registry`) ======================================= .. currentmodule:: skbio.io.registry Classes ------- .. autosummary:: :toctree: generated/ IORegistry Format Functions --------- .. autosummary:: :toctree: generated/ create_format Exceptions ---------- .. autos...
jdrudolph/scikit-bio
skbio/io/registry.py
Python
bsd-3-clause
42,124
[ "scikit-bio" ]
0ccc37413bd1aa2ef367aa48aab3362a834bdc12e6244ac73df0d071f1dfd729
#!/usr/bin/env python3 # Copyright (C) 2015-2017(H) # Max Planck Institute for Polymer Research # # 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, eit...
espressopp/espressopp
examples/lennard_jones/lennard_jones.py
Python
gpl-3.0
13,603
[ "ESPResSo", "VMD" ]
141f6093df69eb2bfaabd15932f014a3cd7278cfd3f57a52104b0988615d2607
#!/usr/bin/env python "tune ELM + linear regressor on top" import pandas as pd import numpy as np import math import csv import hyperopt import os import sys from time import time from glob import glob from math import log from hyperopt import hp, fmin, tpe from elm import * from random_layer import * from sklear...
duthchao/kaggle-burn-cpu
pipeline_driver.py
Python
bsd-2-clause
2,877
[ "Gaussian" ]
4bbe51a229c6d39daa5705755c26c9ddd02c53a778b5d6270dde616430d4352c
#!/usr/bin/env python import os import re import netCDF4 as nc import numpy as np import pandas as pd import pickle from natsort import natsorted from collections import OrderedDict # mpi from joblib import delayed, Parallel from multiprocessing import cpu_count def get_value(nc_obj, label): return nc_obj.variabl...
rhyswhitley/savanna_iav
src/data_preproc/pickleit/pickle_leafoutputs.py
Python
cc0-1.0
2,668
[ "NetCDF" ]
f94e96e76bea444afb1b3d8a142e5a2a3bdd6609ff2375946438dc941a01d375
#!/usr/bin/python3 # This file is part of Munin. # Munin 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. # Munin is distributed in t...
munin/munin
utils/hugin.py
Python
gpl-2.0
14,435
[ "Galaxy" ]
13175e1b6fed435f206bbd82fef9df0c6a61eefb19db62c2d2da4b1dd95c9330
# -*- coding: utf-8 -*- import sys sys.path[0:0] = [""] import bson import os import pickle import unittest import uuid import weakref from datetime import datetime from bson import DBRef, ObjectId from tests import fixtures from tests.fixtures import (PickleEmbedded, PickleTest, PickleSignalsTest, ...
larsbutler/mongoengine
tests/document/instance.py
Python
mit
99,915
[ "exciting" ]
c4690ac4f9553b20a2f0355a1f2a32a13b6bfee256df2a70903b33de5597da79
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ Created on Feb 2, 2012 """ __author__ = "Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "0.1" __maintainer__ = "Sh...
matk86/pymatgen
pymatgen/apps/battery/tests/test_conversion_battery.py
Python
mit
3,213
[ "pymatgen" ]
861bd31079f433c4ec89c7bb244ac7297309683da4c131ab520c635b5347fe17
from __future__ import division import numpy as np import math import copy class KpointsError(Exception): def __init__(self,msg): self.msg = msg def __str__(self): return self.msg class Kpoints: """ The Kpoints class contains: self.header: (str) the first line from the K...
jbechtel/CASMcode
python/vasp/vasp/io/kpoints.py
Python
lgpl-2.1
7,809
[ "VASP" ]
e766a35945db913cde6287d3dd0d12e9f5eae26866e27186b2ab0db6545c29f3
######################################################################## # $HeadURL$ # File : CSCLI.py # Author : Adria Casajus ######################################################################## __RCSID__ = "$Id$" import cmd import sys import signal import types from DIRAC.Core.Utilities.ColorCLI import colori...
rajanandakumar/DIRAC
ConfigurationSystem/Client/CSCLI.py
Python
gpl-3.0
17,855
[ "DIRAC" ]
3dcc90f4bf05e958cd4b780a15ebc27f7d46258636f8d86c57130ae9aab576b3
# -*- coding: utf-8 -*- """ Mapping among MWE, lemma form and sense candidates """ # This code is a part of coolisf library: https://github.com/letuananh/intsem.fx # :copyright: (c) 2014 Le Tuan Anh <tuananh.ke@gmail.com> # :license: MIT, see LICENSE for more details. MWE_ERG_PRED_LEMMA = { '_flesh_v_out_rel' : 'fle...
letuananh/intsem.fx
coolisf/mappings/mwemap.py
Python
mit
44,329
[ "BLAST", "GULP" ]
5538f4b7ae4d7a825bbf0c322c95cafb61910675a164cf759be7e31c73861e3e
import cv2 import numpy import math from numpy.random import random_integers from scipy.signal import convolve2d def prepare_test_image(image, width ,resize_shape, negated=False): """ This function normalizes an an already padded image and flattens it into a row vector :param image: the input image ...
vsvinayak/mnist-helper
mnist_helpers.py
Python
mit
11,328
[ "Gaussian" ]
25224b620db1473c8ccd12baaf0c66aa9b75ac96160bc725cac8e749c8766f7d
# # Copyright (C) 2013-2019 The ESPResSo project # # 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 version 3 of the License, or # (at your option) any later...
pkreissl/espresso
samples/reaction_ensemble.py
Python
gpl-3.0
4,222
[ "ESPResSo" ]
1d6fecfa27fb1d4e7b58d8f932b9f5dc79cc9331c7c2c4752f8c2a9dd0e37388
from __future__ import division, print_function, absolute_import from scipy import stats import numpy as np from numpy.testing import assert_almost_equal, assert_, assert_raises, \ assert_array_almost_equal, assert_array_almost_equal_nulp def test_kde_1d(): #some basic tests comparing to normal distribution ...
apbard/scipy
scipy/stats/tests/test_kdeoth.py
Python
bsd-3-clause
7,895
[ "Gaussian" ]
b40dda1b931c6d76b8b55cdda645ddde1580accab54668813434a20be1bb7b56
#!/usr/bin/env python # Some code derived from hnetcdf_builder.py by Matt Paget & Edward King of CSIRO # https://stash.csiro.au/projects/CMAR_RS/repos/netcdf-tools/browse/create/netcdf_builder.py #=============================================================================== # Copyright (c) 2014 Geoscience Australi...
GeoscienceAustralia/gdf
gdf/_gdfnetcdf.py
Python
apache-2.0
33,533
[ "NetCDF" ]
df5c3ba71e1121ee42fd6e35a6f67459e1c8589f098394775aef9678c3fd615b
# This file is part of xrayutilities. # # xrayutilities is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed...
dkriegner/xrayutilities
tests/test_structure_factor.py
Python
gpl-2.0
1,990
[ "CRYSTAL" ]
20a6bb6b4958a17b0631b81f877d92b5c1927b325a58ea3c504d7b8713a35098
# Copyright (C) 2012,2013,2017 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of ...
espressopp/espressopp
src/interaction/VSpherePair.py
Python
gpl-3.0
4,812
[ "ESPResSo" ]
310e9496b97badd78b7efd6164b503cec1573cc178aaf156127a6f1b1c51698f
import struct, time, array, os from math import pi from Sire.Maths import Vector from Sire.Mol import * from Sire.IO import * # # Adapted from Peter Eastman's code in OpenMM python API to write a DCD file # class DCDFile(object): """DCDFile provides methods for creating DCD files. DCD is a file format for...
michellab/Sire
wrapper/Tools/DCDFile.py
Python
gpl-2.0
10,606
[ "CHARMM", "NAMD", "OpenMM" ]
2d0901d78d04d07e78ef0f3627782e612692e13536f2eb3492e2bccb063da109
# Copyright 2004-2015 Tom Rothamel <pytom@bishoujo.us> # # 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 restriction, # including without limitation the rights to use, copy, modify, m...
joxer/Baka-No-Voltron
tmp/android.dist/private/renpy/display/imagelike.py
Python
gpl-2.0
12,406
[ "VisIt" ]
e7572624eef10f6d49d08c2f773d0172db971e18d0e42cb5a957afd6b0280c92
""" Tutorial - Object inheritance You are free to derive your request handler classes from any base class you wish. In most real-world applications, you will probably want to create a central base class used for all your pages, which takes care of things like printing a common page header and footer. """ import os.pa...
JonnyWong16/plexpy
lib/cherrypy/tutorial/tut05_derived_objects.py
Python
gpl-3.0
2,141
[ "exciting" ]
bb42c19d44d6f039dec4402da30849d2c8de02aa7aad2d3ae533364177c36352
""" Encapsulate here the logic for matching jobs Utilities and classes here are used by MatcherHandler """ __RCSID__ = "$Id" import time from DIRAC import gLogger from DIRAC.FrameworkSystem.Client.MonitoringClient import gMonitor from DIRAC.Core.Utilities.ClassAd.ClassAdLight import ClassAd from DIRAC.Core.Sec...
vmendez/DIRAC
WorkloadManagementSystem/Client/Matcher.py
Python
gpl-3.0
14,676
[ "DIRAC" ]
8a8a9cbf8e9b9d2db90a20e9da09988d6ec6d7767290a59deb5f4d427eea3250
"""Generated message classes for testing version v1. Allows developers to run automated tests for their mobile applications on Google infrastructure. """ # NOTE: This file is autogenerated and should not be edited by hand. from googlecloudsdk.third_party.apitools.base.protorpclite import messages as _messages from go...
flgiordano/netcash
+/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/testing/v1/testing_v1_messages.py
Python
bsd-3-clause
53,170
[ "Galaxy" ]
9b14cfb3864f66f1cf0fb75eb059f42264f8c3819d7badcd5a315fc1ed85aa66
# -*- coding: utf-8 -*- """ Acceptance tests for Video. """ import os from mock import patch from nose.plugins.attrib import attr from unittest import skipIf, skip from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from ..helpers import UniqueCourseTest, is_yo...
waheedahmed/edx-platform
common/test/acceptance/tests/video/test_video_module.py
Python
agpl-3.0
51,809
[ "VisIt" ]
fcd681316fb561335e714ceb8b20da88620aed49c75c97c7eaeed7949daeeda1
# -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 ## ## Copyright (C) 2007-2012 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU Lesser General Public License as published by ## the Free Softw...
andrebellafronte/stoq
stoqlib/database/migration.py
Python
gpl-2.0
18,691
[ "VisIt" ]
ca9f383f612d6eaf1ab65c0032cfc491e15cb75d9b0eb8766146882fa0912332
from __future__ import division # no integer division import numpy as np from numpy import linalg as LA def getGCF(pt, power, corrlength): """Compute the generalized Gaussian covariance matrix of the form: $$Q = exp(h/l)^p$$ ** input ** pt: numpy.array(x_dim, dim) location of each grid block ...
judithyueli/pyFKF
common.py
Python
mit
1,581
[ "Gaussian" ]
249a7e07a0b2b11b9666e701c15929f113ee1698c9eeb4193f65354877b2737e
from __future__ import print_function import traceback import newspaper import re import time from Data2File import getDataBasePath, article2file class NPSpyder: # Initialize a source object defining the source website and the regex to filter articles # name: ID to be used to name folders etc. # sourceURL...
brvnl/master
crawler/NPSpyder.bkp.py
Python
gpl-3.0
4,620
[ "VisIt" ]
6ab9530a9b008397c66cfbd33c99545cf900b1e77392332e1b5ac43f785a038d
#!/usr/bin/env python ######################################################################## # File : dirac-framework-ping-service # Author : Stuart Paterson ######################################################################## """ Ping the given DIRAC Service Example: $ dirac-framework-ping-service Workloa...
ic-hep/DIRAC
src/DIRAC/Interfaces/scripts/dirac_framework_ping_service.py
Python
gpl-3.0
3,003
[ "DIRAC" ]
946c0daacfd1f71d365892cde64d096a36ead009ca4c588aa2b215a41c7e9d32
""" FileManager for ... ? """ from __future__ import absolute_import from __future__ import division from __future__ import print_function __RCSID__ = "$Id$" import six import os import datetime from DIRAC import S_OK, S_ERROR from DIRAC.DataManagementSystem.DB.FileCatalogComponents.FileManager.FileManagerBase impor...
ic-hep/DIRAC
src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/FileManager/FileManagerPs.py
Python
gpl-3.0
34,025
[ "DIRAC" ]
58e9802d892ef9b686430a5911c8374b996a1f27566ecf1d74f33fab5cc3645a
import sys import os import copy from subprocess import call from rdkit import Chem from rdkit.Chem import AllChem import coot_svn_repo_revision import pyrogen_swig as pysw import pyrogen_boost import atom_types from optparse import OptionParser import tautomer import urllib from jay_util import * global pyrogen...
tectronics/coot
pyrogen/pyrogen.py
Python
gpl-3.0
32,488
[ "RDKit" ]
c996e124e674d7965cadde0de14338c77e78ed332817da4dbe9e6c7f1bec6ae8
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2018, Chris Houseknecht <@chouseknecht> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
Jorge-Rodriguez/ansible
lib/ansible/modules/clustering/k8s/k8s.py
Python
gpl-3.0
7,383
[ "Galaxy" ]
c5da5716a236ab9d279e0e35f5d385d0b6a5ed3ce19c4122292436d2207c8417
# coding: utf-8 """ Vericred API Vericred's API allows you to search for Health Plans that a specific doctor accepts. ## Getting Started Visit our [Developer Portal](https://developers.vericred.com) to create an account. Once you have created an account, you can create one Application for Production and an...
vericred/vericred-python
test/test_aca_plan2018_show_response.py
Python
apache-2.0
10,097
[ "VisIt" ]
74f538c39329b749acefe8461dfb3fa7e4f4047c9297befc4bdd3edc76540c9b
LICENSE_STRING = """ Snap Dragon: A Picture Sorting Program Copyright (C) 2011 Isaac Muttschall This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the...
imuttschall/Snap-Dragon
Snap_Dragon_1_3_2.py
Python
gpl-3.0
76,972
[ "Brian" ]
83e6a1d9f9dbcec9fee2e3d07a17c4880816d8d7a898341c058e7dc8fb4675b6
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.views.generic import TemplateView from django.views import defaults as default_views urlpatterns = [ url(r'^$', TemplateView.as_view(template_name='page...
bokjk/nomadgram
config/urls.py
Python
mit
1,625
[ "VisIt" ]
defef6a6367e88b51be9f4316c6fa984bf6aed06c603505cb193026c0206b902
# (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...
vfulco/ansible
lib/ansible/constants.py
Python
gpl-3.0
16,716
[ "Galaxy" ]
52f4e5c389fd49397a5fa763f4bbc759237dbd2e8fa301006abd0c22b7ad41cf
"""The base file related data source object from which all MayaVi data sources derive. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Standard library imports. import re from os.path import split, join, isfile from glob import glob # Enthought ...
dmsurti/mayavi
mayavi/core/file_data_source.py
Python
bsd-3-clause
6,997
[ "Mayavi", "VTK" ]
f4ee601ee7400e368ea9763b7904aad38d313ffdfea1df006a97c5c703c3ad0f
# Copyright (C) 2012,2013 # Max Planck Institute for Polymer Research # Copyright (C) 2008,2009,2010,2011 # Max-Planck-Institute for Polymer Research & Fraunhofer SCAI # # This file is part of ESPResSo++. # # ESPResSo++ is free software: you can redistribute it and/or modify # it under the terms of t...
BackupTheBerlios/espressopp
src/analysis/MeanSquareDispl.py
Python
gpl-3.0
1,974
[ "ESPResSo" ]
d6bb514fd6d8a1c08c9936e2eb9f7827240e28c9390ba7c9551e90fdc27de111
# coding: utf-8 from __future__ import unicode_literals from __future__ import division """ Evaluate the defect concentration based on composition, temperature, and defect energies using "Dilute Solution Model" Reference: Phys Rev B, 63, 094103, 2001, "Density of constitutional and thermal point defects in L12 Al3Sc"...
Dioptas/pymatgen
pymatgen/analysis/defects/dilute_solution_model.py
Python
mit
53,718
[ "CRYSTAL", "VASP", "pymatgen" ]
06694cd0a8f4977e3ba5ac60484627607e6ae59c4cdf179b1523ec6e4909b013
#!/usr/bin/env python from app import app from flask.ext.script import Manager, Shell # The Flask-Script extension provides support for writing external scripts in # Flask, which includes running a development server. For more info, visit: # http://flask-script.readthedocs.org/en/latest/. manager = Manager(app) def ...
stormpython/brewmaster
manage.py
Python
mit
483
[ "VisIt" ]
0cb94212623e5fd9167922650c80b131cb26fd3234325749c56132621301b778
#!/usr/bin/python # -*- coding: utf-8 -*- """ ============================================================================== Gaussian Processes classification example: exploiting the probabilistic output ============================================================================== A two-dimensional regression exerci...
RPGOne/Skynet
scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/examples/gaussian_process/plot_gp_probabilistic_classification_after_regression.py
Python
bsd-3-clause
3,490
[ "Gaussian" ]
71ea27f3ff557b3f09b56a79aa22a194caa2b4a09d4c41d64b9b78355fc17dc7
import json import unicodedata # to detect Unicode category from zdict.dictionary import DictBase from zdict.exceptions import QueryError, NotFoundError from zdict.models import Record class MoeDict(DictBase): API = 'https://www.moedict.tw/uni/{word}' @property def provider(self): return 'moe'...
M157q/zdict
zdict/dictionaries/moe.py
Python
gpl-3.0
5,222
[ "MOE" ]
ecd8ee60cf9ec99c457e2a7c4d4cf7e6595a4c1e990030916a6eb5880b28fef4
#!/usr/bin/env python #Copyright (C) 2014 by Glenn Hickey # #Released under the MIT license, see LICENSE.txt import unittest import sys import os import argparse import logging import random import numpy as np from teHmm.common import myLog, EPSILON, initBedTool, cleanBedTool from teHmm.common import addLoggingOption...
glennhickey/teHmm
bin/createStartingModel.py
Python
mit
8,253
[ "Gaussian" ]
598d30c7e0d68f8887bc246721f52039ef51b511ac11da7ba18fc6a77399100b
""" Contains classes to deal with generic sequence alignment stuff not specific to a particular program or format. classes: o Alignment """ # standard library import string # biopython from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio import Alphabet from Bio.Alphabet import IUPAC class Alignment...
dbmi-pitt/DIKB-Micropublication
scripts/mp-scripts/Bio/Align/Generic.py
Python
apache-2.0
5,360
[ "BLAST", "BioPerl", "Biopython" ]
fd966396d0bea9fb92eeda4a63a7a1c11655af18507308f49e9dd1e990e1e5ff
# Copyright (c) 2006-2016 LOGILAB S.A. (Paris, FRANCE) <contact@logilab.fr> # Copyright (c) 2010 Daniel Harding <dharding@gmail.com> # Copyright (c) 2012-2014 Google, Inc. # Copyright (c) 2013-2020 Claudiu Popa <pcmanticore@gmail.com> # Copyright (c) 2014 Brett Cannon <brett@python.org> # Copyright (c) 2014 Arun Persau...
ruchee/vimrc
vimfiles/bundle/vim-python/submodules/pylint/pylint/checkers/base.py
Python
mit
100,473
[ "VisIt" ]
1f00de402d4bf732cca9c9fc9ee3b457b3673f76f28fda595080dc5a6ecda49d
import argparse,logging,os import mxnet as mx from symbol_resnet import resnet logger = logging.getLogger() logger.setLevel(logging.INFO) def multi_factor_scheduler(begin_epoch, epoch_size, step=[60, 75, 90], factor=0.1): step_ = [epoch_size * (x-begin_epoch) for x in step if x-begin_epoch > 0] ret...
tornadomeet/ResNet
train_resnet.py
Python
apache-2.0
9,917
[ "Gaussian" ]
efd481919735e1df51f57dd74997e550e34c5f0def8af38da8fed7aad3f07ea2
""" ==================================================================== Linear and Quadratic Discriminant Analysis with confidence ellipsoid ==================================================================== Plot the confidence ellipsoids of each class and decision boundary """ print(__doc__) from scipy import lin...
jmargeta/scikit-learn
examples/plot_lda_qda.py
Python
bsd-3-clause
4,758
[ "Gaussian" ]
4d45de854d002ce2ae99f4a3e49215cc448e9b6079a2115af534f0f2e944fb93
import argparse import os import sys import textwrap from collections import defaultdict from xlrd import XLRDError import pandas as pd from jinja2 import Environment, FileSystemLoader import consts encoding = sys.getfilesystemencoding() EXEC_DIR = os.path.dirname(unicode(__file__, encoding)) def save_or_print_json...
Duke-GCB/GGR-cwl
v1.0/json-generator/run.py
Python
mit
22,633
[ "Bowtie" ]
193b84ced1fc15d02b33343445417776f57c2975927292e191890f0123b32496
""" This script adds a new user_address table that is currently only used with sample requests, where a user can select from a list of his addresses to associate with the request. This script also drops the request.submitted column which was boolean and replaces it with a request.state column which is a string, allowi...
mikel-egana-aranguren/SADI-Galaxy-Docker
galaxy-dist/lib/galaxy/model/migrate/versions/0012_user_address.py
Python
gpl-3.0
4,173
[ "Galaxy" ]
389b1325470a5f7533429f1943383a52e0caf2eecf2c8b19aff4ad6c75a62d84
############################################################################## # 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/eccodes/package.py
Python
lgpl-2.1
6,557
[ "NetCDF" ]
c967aace12acabd7137d354d16b30655e1d59b5e0b0fa307926fd37ca7a98382
""" VOBOXAvailabilityCommand module """ # FIXME: NOT Usable ATM # missing doNew, doCache, doMaster from urllib import parse from DIRAC import S_OK, S_ERROR from DIRAC.Core.Base.Client import Client from DIRAC.ResourceStatusSystem.Command.Command import Command class VOBOXAvailabilityCommand(Command): """ Gi...
DIRACGrid/DIRAC
src/DIRAC/ResourceStatusSystem/Command/VOBOXAvailabilityCommand.py
Python
gpl-3.0
1,918
[ "DIRAC" ]
04d41da4abbfeac982b9e468551895d8cc1e3a8475dc903e7811befba8b3b0ea
from django.conf import settings from django.contrib.auth.signals import user_logged_in from django.core import signing from django.utils.crypto import constant_time_compare from django.utils.encoding import force_text, smart_text from django.utils.translation import ugettext import jwt from rest_framework import exc...
kumar303/addons-server
src/olympia/api/authentication.py
Python
bsd-3-clause
10,973
[ "VisIt" ]
cb8493f69027de3ca86e4cee7cf2c47f13232e2261d1b91a94c15572f45ce71a
VERSION = '0.1.3.0' PROGRAM = 'dsame' DESCRIPTION = 'dsame is a program to decode EAS/SAME alert messages' COPYRIGHT = 'Copyright (C) 2016 Joseph W. Metcalf' TEST_STRING = 'EAS: ZCZC-WXR-RWT-055027-055039-055047-055117-055131-055137-055139-055015-055071+0030-0771800-KMKX/NWS-' MSG__TEXT={ 'EN' : {'MSG1' ...
cuppa-joe/dsame
defs.py
Python
isc
274,490
[ "COLUMBUS", "Dalton", "Elk", "MOOSE" ]
783be82240923c562eabcc559ca8c1e2778fd73451903e387cd6a96bc0a89421
# http://hacktheuniverse.github.io/star-api/ from bowshock.helpers import dispatch_http_get def stars(): ''' This endpoint gets you a list of all stars in json ''' base_url = "http://star-api.herokuapp.com/api/v1/stars" return dispatch_http_get(base_url) def search_star(star): ''' It ...
emirozer/bowshock
bowshock/star.py
Python
gpl-2.0
2,844
[ "Galaxy" ]
f21aed1a3a80885377679c25999bbd1d28a0deffb06bd32a0664a3e39acddb43
# *************************************************************************** # * Copyright (c) 2018 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
sanguinariojoe/FreeCAD
src/Mod/Fem/femtest/app/test_mesh.py
Python
lgpl-2.1
24,566
[ "VTK" ]
0ce8f8f5a8e659bb336e9468965a2e2a085d82e24162ddd0d2d4344627f72b15
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import os from tempfile import mkdtemp from shutil import rmtree import locale import logging import subprocess from pelican import Pelican from pelican.settings import read_settings from pelican.tests.support import LoggedTestCase, mute ...
tonyseek/pelican
pelican/tests/test_pelican.py
Python
agpl-3.0
5,426
[ "exciting" ]
597bf85cc39936a9b453d2712629085647a6b08ada4eb8b502485e8cee037d1b
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Mads Jensen <mje.mads@gmail.com> # # License: BSD (3-clause) import copy import os.path as op from math import ceil import warn...
teonlamont/mne-python
mne/source_estimate.py
Python
bsd-3-clause
133,598
[ "Mayavi" ]
9b6298928554aba2127d8975f92780e3b5ec5c34599d6a80404106e2df40d72a
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- ### BEGIN LICENSE # Copyright (C) 2014 Brian Douglass bhdouglass@gmail.com # This program is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3, as published # by the Free Softwa...
bhdouglass/agui
agui/aextras/popup.py
Python
gpl-3.0
894
[ "Brian" ]
91649897539235261157993347bfe3d84b694482fe7f3af141f8206d6d2f333a
# -*- coding: utf-8 -*- from __future__ import print_function from collections import OrderedDict from acq4.util import Qt from .CanvasItem import CanvasItem import numpy as np import scipy.ndimage as ndimage import acq4.pyqtgraph as pg import acq4.pyqtgraph.flowchart import acq4.util.DataManager as DataManager import ...
pbmanis/acq4
acq4/util/Canvas/items/ImageCanvasItem.py
Python
mit
12,416
[ "Gaussian" ]
08e6c41a3066ed525e836790e6caca4c656193a17334156258fcf18bda758ee4
#!/usr/bin/env python ''' First script to reduce the data from the beta release of Radio Galaxy Zoo (Oct 2013) Written by Julie Banfield, CSIRO ''' # import necessary python packages import numpy as np import matplotlib # plotting package import pylab as plt # part of plotting package i...
willettk/rgz-analysis
python/betatest.py
Python
mit
14,268
[ "Galaxy" ]
5fdacf164e01b0bdf23efcf90a8e0ee3d525ad9e63207d99734124ce62c5ad7b
#!/usr/bin/env python '''Generate a Python ctypes wrapper file for a header file. Usage example:: wrap.py -lGL -oGL.py /usr/include/GL/gl.h >>> from GL import * ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' from ctypesparser import * import textwrap import sys class CtypesWrapper(CtypesPars...
shaileshgoogler/pyglet
tools/wraptypes/wrap.py
Python
bsd-3-clause
9,533
[ "VisIt" ]
60ec3d2e4cb2e98c2330ff16e252b608f1850d79264897b01502451c7b5a031f
import datetime import unittest from eobs import Eobs tg = Eobs(r'c:\m\ghs\data\e-obs\tg_0.25deg_reg_v12.0.nc') # Paris coordinates and corresponding indices obtained from manual lookup in # version 12 of the "tg" netCDF: lat = 48.66 lon = 2.35 lat_idx = 93 lon_idx = 171 class TestEobs(unittest.TestCase): de...
woodcrafty/eobs
tests/test_eobs.py
Python
bsd-3-clause
1,285
[ "NetCDF" ]
fb4bf271995a3f15f8998feb3ff28a65dbf0ca8aa85a8e42b28c888bba096b0f
#!/usr/bin/env python print "HANDLING IMPORTS..." import sys import os import time import operator import math import numpy as np import matplotlib.pyplot as plt import cv2 from scipy import interpolate from sklearn.utils import shuffle from sklearn.metrics import confusion_matrix import itertools import pickle i...
kahst/AcousticEventDetection
AED_train.py
Python
mit
24,412
[ "Gaussian" ]
9ffc25df7ffe1e42b9f3f8f4821ae286d96c47ac3edb4f98c4332ba6017b9344
""" process delegator service Must be executable by python -m pycsp.parallel.server Used to handle the creation of external processes (sshprocess / clusterprocess) Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.t...
runefriborg/pycsp
pycsp/parallel/server.py
Python
mit
2,298
[ "Brian" ]
307984056a3e8f8e37eafa7d5782a2c434ca9dc22bf3ecd88c9c39cd6f3d1618
import math import numpy as np import quaternion import spinsfast import spherical_functions as sf import scri import pytest ABD = scri.AsymptoticBondiData abd = scri.asymptotic_bondi_data def construct_and_validate(modifier, validator, ell_max=8): time = np.linspace(-100, 100, num=2001) sigma, sigmadot, sig...
moble/scri
tests/test_abd_ivp.py
Python
mit
9,661
[ "Psi4" ]
d9ebd13dfc9e170be2079ef573d37282616057dc805162a73805c9fcc6b2b0f9
import sys from sympy import symbols,sin,cos from printer import Format,xpdf,Get_Program,Print_Function from ga import Ga def Maxwells_Equations_in_Geom_Calculus(): Print_Function() X = symbols('t x y z',real=True) (st4d,g0,g1,g2,g3) = Ga.build('gamma*t|x|y|z',g=[1,-1,-1,-1],coords=X) I = st4d.i ...
rschwiebert/galgebra
examples/LaTeX/physics_check_latex.py
Python
bsd-3-clause
3,449
[ "DIRAC" ]
21062c483c6fcf99526dabbda45eac8e1d0f609e890cf9fb06529aa1a228c3c2
import psi4 raw_data = """ BMK, -76.3467785966000037 MGGA_MS1, -76.3862847739000017 B1LYP, -76.3535264398000066 HCTH93, -76.3690726046999941 MPW1K, -76.3552293636000030 MGGA_MS2h, -76.3869717052999988 TPSSh, -76.3808997507999976 PBE0, -76.3004989885999976 LRC-wPBEh, -76.309...
rmcgibbo/psi4public
tests/libxc/devl/fine_input.py
Python
lgpl-3.0
5,599
[ "Psi4" ]
82e89d034ed5b683df30f7a8590bc7355fdb000e4088490571814e32276ed58c
import theano import theano.tensor as T from theano.sandbox.rng_mrg import MRG_RandomStreams from theano.tensor.nnet.conv import conv2d from theano.tensor.signal.downsample import max_pool_2d from theano.tensor.shared_randomstreams import RandomStreams import numpy as np from toolbox import * from modelbase import * ...
mrgloom/Theano-Lights
models/ffn_ace.py
Python
mit
3,046
[ "Gaussian" ]
b4fd9f69cb849f23814070e3b6735115421609620cd4f424ee442d7b6028c9b9
from ase.calculators.singlepoint import SinglePointCalculator as SPC from ase.constraints import dict2constraint from ase.io import write from ase import Atoms import numpy as np import json supported_properties = ['energy', 'forces', 'stress', 'magmoms', 'magmom'] def array_to_list(data): """A function to covert...
jboes/CatKit
catkit/flow/fwio.py
Python
gpl-3.0
5,218
[ "ASE" ]
2f71116cf88bd51370f14e34b938379208a46f04cfd999d1a106fce106665eaa
import unittest from django.utils import html class TestUtilsHtml(unittest.TestCase): def check_output(self, function, value, output=None): """ Check that function(value) equals output. If output is None, check that function(value) equals value. """ if output is None: ...
LethusTI/supportcenter
vendor/django/tests/regressiontests/utils/html.py
Python
gpl-3.0
5,467
[ "ADF" ]
57452abf3d79da46b8b808106112e77cc16937e18329a1c125ab2047d440990d
# -*- coding: utf-8 -*- r""" .. _test-Laguerre-Gaussian: Tests of Kirchhoff integral with various Gaussian beams ------------------------------------------------------- Find the test module laguerre_gaussian_beam.py, as well as several other tests for raycing backend, in ``\tests\raycing``. .. note:: In this s...
kklmn/xrt
tests/raycing/laguerre_hermite_gaussian_beam.py
Python
mit
17,167
[ "Gaussian" ]
1c6a0b3059f5002a5ff999a7e79c2386a2d27f01e9087777f74b0a399cfe501b
import numpy as np bin_size = 10 num_average_together = 1 num_neurons = 1000 start_num = 0 num_trials = 50 folder = 'data/attractor' filename = 'attractor' # read in trajectories' neural data min_length = 1e20 for dimension in range(8): trajectories = [] for jj in range(start_num, num_trials): name ...
studywolf/REACH-paper
analysis/09b-gen_matlab_files_for_jpca_analysis.py
Python
gpl-3.0
2,427
[ "Gaussian" ]
7424a2cc180721ec3549531b3e5800635f6c9fc4d39721f7c4e730a854ed212b
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
TakayukiSakai/tensorflow
tensorflow/models/image/cifar10/cifar10.py
Python
apache-2.0
13,577
[ "Gaussian" ]
0edb3ce242c0e93f1ee064e17d14484c3db284e2b4c4893a64840b870fe0eb12
#!/usr/bin/env python """ :mod:`disco <discocli>` -- Disco command line utility ===================================================== :program:`disco` is a fully-Python startup/configuration script which supports several exciting features. The new startup script makes it even easier to get up and running with a Disco ...
discoproject/disco
bin/discocli.py
Python
bsd-3-clause
14,534
[ "exciting" ]
eb8d780be76d39301dfec5302892722b0071cdbffd92e2fa800fa40baf92d7ce
"""Attempt #2 at organizing neuron models - We specify types of neurons using subclasses of Neuron - This includes things like LIF vs HH and also Float vs Fixed, Rate vs Spiking - We build a NeuronPool object which actually has code for running neurons - We keep a list of known Neuron types around so if we're asked fo...
ctn-waterloo/neuron_models
v2-parameters.py
Python
mit
7,491
[ "NEURON" ]
0d3dd1909259e204a197618a34eba70cf5f6927f319c474b9533174cdc992f16
from __future__ import with_statement from distutils.core import setup import numpy def get_version(): d={} version_line='' with open('science/__init__.py') as fid: for line in fid: if line.startswith('__version__'): version_line=line print(version_line) ...
bblais/Python-for-Science
setup.py
Python
mit
579
[ "Brian" ]
5ce1a5f7a5716021f9df6a737a0067df8c7c7bfe080e69b4dd246bef844dc4c8
"""Support for control of ElkM1 lighting (X10, UPB, etc).""" from homeassistant.components.light import ( ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light) from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities async def async_setup_platform( hass, config, async_add_entities, discovery_info=None): ...
MartinHjelmare/home-assistant
homeassistant/components/elkm1/light.py
Python
apache-2.0
1,614
[ "Elk" ]
3c22c77487e1c6e7301f1fcdd6f1a14f138084114a98c2c2e93c15b9ceaa5134
# =========================================================================== # Copyright 2013 University of Limerick # # This file is part of DREAM. # # DREAM 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 Founda...
nexedi/dream
dream/simulation/Queue.py
Python
gpl-3.0
17,273
[ "VisIt" ]
0695e60f5c707184f71326125805bc9cd1c308a39d8917d56e73000524dcb890
# -*- coding: utf-8 -*- # HORTON: Helpful Open-source Research TOol for N-fermion systems. # Copyright (C) 2011-2017 The HORTON Development Team # # This file is part of HORTON. # # HORTON is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by th...
theochem/horton
horton/part/test/common.py
Python
gpl-3.0
2,120
[ "CP2K" ]
fda7c312c7587afa6990b4664759abbda214732105dcc7f352c330f0c4cd82a3
#!/usr/bin/env python3 from fontTools.ttLib import TTFont import sys import json # map of characters to extract metrics_to_extract = { # Font name "AMS-Regular": { u"\u21e2": None, # \dashrightarrow u"\u21e0": None, # \dashleftarrow }, "Main-Regular": { # Skew and italic metr...
Khan/KaTeX
src/metrics/extract_ttfs.py
Python
mit
4,278
[ "Bowtie" ]
89ac56c19c6be1f814c907cedaa101246193bd11011e32877e79bc45623214b0
""" Find modules used by a script, using bytecode analysis. Based on the stdlib modulefinder by Thomas Heller and Just van Rossum, but uses a graph data structure and 2.3 features XXX: Verify all calls to _import_hook (and variants) to ensure that imports are done in the right way. """ from __future__ import absolute...
etherkit/OpenBeacon2
client/win/venv/Lib/site-packages/PyInstaller/lib/modulegraph/modulegraph.py
Python
gpl-3.0
143,680
[ "VisIt" ]
5236b4c58f7342d264109a51fa3efd2b40ac5747969593af0e5fb4790ebdbed2
def gaussian_filter1d_ppxf(spec, sig): """ Convolve a spectrum by a Gaussian with different sigma for every pixel. If all sigma are the same this routine produces the same output as scipy.ndimage.gaussian_filter1d, except for the border treatment. Here the first/last p pixels are filled with zeros. ...
Delosari/dazer
bin/lib/Astro_Libraries/old_versions/attributes_declaration.py
Python
mit
13,802
[ "Gaussian" ]
e51e9486618f96742dc03fc2c15ec14e0bf2f65e581b582d9e6fa17aa659311b
''' libChEBIpy (c) University of Manchester 2015 libChEBIpy is licensed under the MIT License. To view a copy of this license, visit <http://opensource.org/licenses/MIT/>. @author: neilswainston ''' from ._base_object import BaseObject class Comment(BaseObject): '''Class representing a ChEBI comment.''' ...
libChEBI/libChEBIpy
libchebipy/_comment.py
Python
mit
926
[ "VisIt" ]
3c3bcc753bf017c801f928f394d3df69013160e229707a89f7fb1a492df69b84
from i3pystatus.core.util import internet, require from i3pystatus.scores import ScoresBackend import copy import pytz import time from collections import namedtuple from datetime import datetime LIVE_URL = 'http://live.premierleague.com/#/gameweek/%s/matchday/%s/match/%s' CONTEXT_URL = 'http://live.premierleague.com...
yang-ling/i3pystatus
i3pystatus/scores/epl.py
Python
mit
16,454
[ "CRYSTAL" ]
39107c120af190d6cc9ead426bce98f587997dacb92165d47731a3760228729d
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ampOpInversor.py # # Copyright 2015 Roberto Tavares <roberto.tavares.filho@gmail.com> # # Versão: 0.1, em 11/11/2015 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published b...
cadele/cadele
ampOpInversor.py
Python
gpl-2.0
18,584
[ "VisIt" ]
af4b486b45e47feb6844c37330cd97561fd0fb48cefd19e463d03e9175946d02
""" mbed SDK Copyright (c) 2011-2013 ARM Limited 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 wr...
arostm/mbed-os
tools/synch.py
Python
apache-2.0
11,095
[ "VisIt" ]
4a070fcce60f10f45bf653f397b04e5ec4c113fdfb94e6c893b9971bd47a517c
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os #import glob import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg import numpy as np import tkinter as tk from tkinter.filedialog import askopenfilename from tkinter import ttk import...
lstagner/FIDASIM-GUI
fidaviewer.py
Python
mit
78,953
[ "Gaussian" ]
358d633ffe40e70117e50b0e1d73c7146ec54bd28ad58828da40d73f9e8be089
import numpy as np from Wavelets import WaveletGenerator def syntheticSeismogram(v, rho, d, wavtyp='RICKER', wavf=[100], usingT=False, maxDepth=500, plotIt=False): """ syntheticSeismogram generates and displays a synthetic seismogram for a simple 1-D layered model. Inputs: v : velocity ...
jaabell/Seismogram
Layers.py
Python
mit
6,511
[ "Gaussian" ]
210aad2cbb9b61a9907c405e53b9aa8667d12c0ea3225c415001f67a8e448f53