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
# -*- coding: utf-8 -*- """ Created on Wed Jul 1 15:24:03 2015 This is a python implementation of an Artificial Neural Network We are using it to learn and solve math problems @author: andrew """ from numpy import * from pylab import * class Neuron: """The Neuron class defines a neuron which exists wi...
UnifyEverything/skynet
ann.py
Python
cc0-1.0
3,723
[ "NEURON" ]
314329982cdcc502d5015cd18bcc46cc80128d60bf6373fc89f29816a1929ef8
# -*- coding: utf-8 -*- # Copyright 2012 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """ This snippet show how to "test" a Facebook feature: the creation of an event. It creates an event by going to http://www.facebook.c...
bmcculley/splinter
samples/test_facebook_events.py
Python
bsd-3-clause
2,800
[ "VisIt" ]
7f5ad76cc57e1e2080634dadaf89836b6e4b925a710b4c965216758c594744f0
from datetime import timedelta import datetime from django.utils.translation import ugettext_noop from django.utils import html from casexml.apps.case.models import CommCareCase from django.core.urlresolvers import reverse, NoReverseMatch import pytz from django.utils.translation import ugettext as _ from corehq.apps.r...
SEL-Columbia/commcare-hq
custom/apps/crs_reports/reports.py
Python
bsd-3-clause
7,665
[ "VisIt" ]
82a5cd33ebe75405b45441ac1aa92eaaf14fad7438c2ab1c669e93762a7fbf87
#!/usr/bin/env python3 # # Argument Clinic # Copyright 2012-2013 by Larry Hastings. # Licensed to the PSF under a contributor agreement. # import abc import ast import collections import contextlib import copy import cpp import functools import hashlib import inspect import io import itertools import os import pprint ...
batermj/algorithm-challenger
code-analysis/programming_anguage/python/source_codes/Python3.8.0/Python-3.8.0/Tools/clinic/clinic.py
Python
apache-2.0
183,353
[ "VisIt" ]
7e1bd96f7c4cf76946a8b1c40b79c9df7b8e860f682c1571796984c87adbad7f
#!/usr/bin/env python # /******************************************************************* # * File: bulbchan_new.py # * Description: # * Author: Subhasis Ray # * E-mail: ray dot subhasis at gmail dot com # * Created: 2008-10-23 10:49:26 # ****************************...
BhallaLab/moose-thalamocortical
DEMOS/pymoose/channels/bulbchan.py
Python
lgpl-2.1
7,451
[ "MOOSE" ]
d971acd719d25d4f19e4ed3886c3259c247c185dfbf54e45d50e2c3f733be93e
""" 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. Written (W) 2013 Heiko Strathmann Written (W) 2013 Dino Sejdinovic """ fro...
karlnapf/kameleon-mcmc
kameleon_mcmc/kernel/GaussianKernel.py
Python
bsd-2-clause
2,895
[ "Gaussian" ]
86d32dc801a9023a4e9e61867cd433c7043e51eda304106e07f602d783049c4b
# coding: utf-8 # # put.io xbmc addon # Copyright (C) 2009 Alper Kanat <tunix@raptiye.org> # # 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 optio...
tunix/plugin.video.putio
addon.py
Python
gpl-3.0
2,598
[ "VisIt" ]
a64105a8eedacd3fbad99eede6bc3ed8e5d109b82bc71e12273111aa983e990b
""" This script takes in a set of sites in HA colors them on the protein structure. It is intended to be run from the top level of the Github repository. """ ParallelColor="orange" NSColor="orange" SColor="lightteal" # Import protein structure and perform basic formatting operations. def LabelNA(SiteFile, Color, OutF...
ksxue/parallel-evolution
analysis/figures/ProteinStructures/LabelNA.py
Python
mit
1,885
[ "PyMOL" ]
d0f11cf8c7ca6bb61516e835d5714e6bb14ac3ac6c7642ab99ea89e8dc05840d
"""Helpful utilities for building analysis pipelines. """ import glob import gzip import os import tempfile import time import shutil import contextlib import itertools import functools import random import fnmatch import subprocess import sys import types import six import toolz as tz import yaml from collections im...
vladsaveliev/bcbio-nextgen
bcbio/utils.py
Python
mit
32,939
[ "Galaxy" ]
f9af2e578682cb1e5b394ca8abc5b98b764c36cc4e723566b43b9ee2f55969c1
# # @file TestSpeciesReference.py # @brief SpeciesReference unit tests # # @author Akiya Jouraku (Python conversion) # @author Ben Bornstein # # $Id$ # $HeadURL$ # # ====== WARNING ===== WARNING ===== WARNING ===== WARNING ===== WARNING ====== # # DO NOT EDIT THIS FILE. # # This file was generated automatically...
alexholehouse/SBMLIntegrator
libsbml-5.0.0/src/bindings/python/test/sbml/TestSpeciesReference.py
Python
gpl-3.0
4,925
[ "VisIt" ]
bc766b030a236f09216c9897787ca1af79c19ab6339cd2d342ca5c77c1ed31cd
''' Created on Oct 25, 2010 @author: joel ''' import pypyr.functions as pf import pypyr.utils as pu import scipy.linalg as sl import math import pylab import matplotlib.pyplot as mp #import enthought.mayavi.mlab as emm import numpy as np def poisson(N, points): ''' Solves lap u = 1, on [0,1] with u=0 on boundar...
joelphillips/pypyramid
src/pypyr/extra/poisson.py
Python
bsd-3-clause
3,002
[ "Mayavi" ]
299cc4833c20937649f4a699859a0dd2d19fa3a45eef43937a05677b658c93e9
# Copyright 2021 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
googleinterns/local_global_ts_representation
gl_rep/gp_kernel.py
Python
apache-2.0
2,362
[ "Gaussian" ]
8ade5cd7c2ad3fc4a9de3bf8a1bc9e11e22d2426c64ef3b90e90fcf04743ad1a
#!/usr/bin/env python3 # # Copyright (C) 2013-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, e...
espressopp/espressopp
testsuite/lattice_boltzmann/test_LBMDcoupling.py
Python
gpl-3.0
7,544
[ "ESPResSo" ]
be0038bdc0e0a99f60795be765be753d55ef91be1553fdf58dce91bfec09561c
# coding: utf-8 # Default Django settings. Override these with settings in the module # pointed-to by the DJANGO_SETTINGS_MODULE environment variable. # This is defined here as a do-nothing function because we can't import # django.utils.translation -- that module depends on the settings. gettext_noop = lambda s: s ...
yaroslavprogrammer/django
django/conf/global_settings.py
Python
bsd-3-clause
23,326
[ "VisIt" ]
6abefa9b2f694c33ea5e46edcda369e098f6806482cea5008c44346a26be64f4
#!/ usr/bin/env python import os, sys, numpy as np, cPickle as pickle, copy, subprocess from scipy.spatial import cKDTree as Octree import sim, parse_potential as pp, measure, pickleTraj import cgmodel as cg # user input (globals) Traj = None NB = None NW = None TPType = 'None' Prefix = 'tpi' NBins = (10, 10, 10) meas...
tanmoy7989/benwat
tpi.py
Python
gpl-2.0
10,649
[ "LAMMPS" ]
e49aefaff572735ac0473a75ac38d549064066c8eb1485f614da5f73eaefa404
""" local path implementation. """ from contextlib import contextmanager import sys, os, re, atexit import py from py._path import common from stat import S_ISLNK, S_ISDIR, S_ISREG from os.path import abspath, normpath, isabs, exists, isdir, isfile, islink iswin32 = sys.platform == "win32" or (getattr(os, '_name', Fa...
pexip/os-codespeak-lib
py/_path/local.py
Python
mit
31,102
[ "VisIt" ]
9df8eb203a821aa9eb893e5616a89ee114ed7ffb612cff6963a372861a6c46ea
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # import El m = 200 n = 400 numLambdas = 5 startLambda = ...
birm/Elemental
examples/interface/DSDense.py
Python
bsd-3-clause
1,711
[ "Gaussian" ]
f5f0f47720a24c3d9ac657e7255e93b0514961edaebf105f1a25208661f6a12f
# -*- coding: utf-8 -*- import time import unittest import logging import functools from nose.tools import * # flake8: noqa (PEP8 asserts) import mock from framework.auth.core import Auth from website import settings import website.search.search as search from website.search import elastic_search from website.search...
petermalcolm/osf.io
tests/test_elastic.py
Python
apache-2.0
29,413
[ "Brian" ]
fd398fc517321870f65fbfaf4158116f563f1a7f1743ba943e7165cc7e2c8b37
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
sarvex/tensorflow
tensorflow/python/autograph/pyct/transformer_test.py
Python
apache-2.0
11,416
[ "VisIt" ]
3ad365ce1d62de7dd45b15981ef443512d33086e4799398095b2b20e21ccdd2f
# Copyright (c) 2003-2012 LOGILAB S.A. (Paris, FRANCE). # http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; either version 2 of the License, o...
tlksio/tlksio
env/lib/python3.4/site-packages/pylint/checkers/classes.py
Python
mit
28,539
[ "VisIt" ]
a65ef096842b6d6bebaf8f54aa75e5062ec18b540e54500fe1cfac3366632705
#!/usr/bin/python # Copyright 2015 Diogo N. Silva <o.diogosilva@gmail.com> # compare_pairs.py 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 v...
CoBiG2/RAD_Tools
compare_maps.py
Python
gpl-3.0
7,632
[ "Bowtie" ]
699562a17ca643e627815c066437f79b2941aead0883903e15fb9a263ba7e267
""" MIT License Copyright (c) 2017 Talha Can Havadar 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, publ...
talhaHavadar/RobotLocalization
robot.py
Python
mit
6,746
[ "Gaussian" ]
96fb8c854e2f165a5a92669513353e7d1178ba060efc46aef4601c8d5ab65c5d
# Copyright (C) 2018, Bastian Eicher # See the README file for details, or visit http://0install.net. from __future__ import print_function import os from os.path import join from xml.dom import minidom, Node from repo import cmd, registry, merge, incoming, formatting from repo.cmd import update def handle(args): ...
bastianeicher/0repo
repo/cmd/modify.py
Python
lgpl-2.1
1,573
[ "VisIt" ]
18e628a320b897e8a7c290e08835072539b7399c44225b926ee06466885455f8
# This file is part of BHMM (Bayesian Hidden Markov Models). # # Copyright (c) 2016 Frank Noe (Freie Universitaet Berlin) # and John D. Chodera (Memorial Sloan-Kettering Cancer Center, New York) # # BHMM is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public Licen...
bhmm/bhmm
bhmm/estimators/bayesian_sampling.py
Python
lgpl-3.0
17,478
[ "Gaussian" ]
558e1589c05ac66cf5ee1bd411648916a7eb66f1bcdba42ef10bca7e0301a98c
## # TRACK 1 # TWO TRAINS # From Data-Driven DJ (datadrivendj.com) by Brian Foo (brianfoo.com) # This file builds the sequence file for use with ChucK from the data supplied ## # Library dependancies import csv import json import math import os import random import re import time # Config BPM = 120 # Beats per minute...
technogesic/govhack2017
music-lab/11_wynyard-hornsby/subway.py
Python
mit
13,902
[ "Brian" ]
2b11ea564ca95344f4acf861df32e3cf8b74b74ac2571daef04139d4eac17725
# -*- coding: utf-8 -*- """ Created on Tue Jul 05 10:52:47 2016 @author: alcor """ #!/usr/bin/env python import inspect import os import sys import argparse from numpy import fromfile import numpy as np import scipy.misc import pickle import errno from contrast_normalization import contrast_normalize, contrast_deno...
alcor-dtu/ml-poster
code/generate_patches.py
Python
gpl-3.0
7,911
[ "Gaussian" ]
6e0c9d1fb43755952426f20972595de2295ebbe5fb3f98b887aeac957f421698
######################################################################## # $HeadURL $ # File: RequestAgentBase.py # Author: Krzysztof.Ciba@NOSPAMgmail.com # Date: 2011/05/31 07:40:33 ######################################################################## """ :mod: RequestAgentBase ======================= .. ...
avedaee/DIRAC
DataManagementSystem/private/RequestAgentBase.py
Python
gpl-3.0
15,483
[ "DIRAC" ]
db80c2e4192d29c1348cec82cf6ea19c61e009265ed434824c96aa777416e31f
#!/usr/bin/python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are m...
mikehulluk/morphforge
src/morphforge/traces/operators/op_piecewise_scalar.py
Python
bsd-2-clause
7,838
[ "VisIt" ]
a56832295612304b2b1590d8a887a4512ed27bbc69b4a5c931cd0200302eb430
#!/usr/bin/env python # -*- coding: utf-8 -*- #This module calculates statistics and saves it to a file import numpy as np import stat_functions as stat from scipy import stats as scstats import functions as fu import loglikelihood as logl from tkinter import font as tkfont import tkinter as tk STANDARD_LENGTH=8 c...
espensirnes/paneltime
paneltime/stat_object.py
Python
gpl-3.0
5,311
[ "ADF" ]
17ee9695d7928ca2bb25a526f2434cbc01c26f679aa328e4b68d45b0bb0f27d2
# !/usr/bin/env python import numpy as np # Contains: # - network parameters # - single-neuron parameters # - stimulus parameters ################################################### ### Network parameters ### ################################################### # area of network in mm^2; scales numbers of ...
synergetics/potjans_2014
network_params.py
Python
mit
6,108
[ "NEURON" ]
1c64224fc693b5c45f42804e7137fa09ff8e28a8eaf60f69a0163d9ddb292faf
""" A minimal EWMH-aware OO layer over xpyb. This is NOT intended to be complete - it only implements the subset of functionalty needed by qtile. """ from xcb.xproto import CW, WindowClass, EventMask import struct import utils import xcb.randr import xcb.xcb import xcb.xinerama import xcb.xproto import xkeysyms...
Fxrh/tispa-wm
libqtile/xcbq.py
Python
gpl-3.0
27,111
[ "FLEUR" ]
1b0fb90ff430c1612d477f86e10ad038c2c80fe5bb035fc6a428297c194bd2af
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
av8ramit/tensorflow
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
Python
apache-2.0
59,802
[ "DIRAC" ]
469341ec9d98f3db8e1dd7f84532a131b028a8a39ad1fb352944d0737249bca4
# neuronFromDotp.py --- # Upi Bhalla NCBS Bangalore 2014. # Commentary: # Demonstrates how to load a simple neuronal model in GENESIS dotp format. # The model has branches and a few spines. # It is adorned just with classic HH squid channels. # # This program is free software; you can redistribute it and/or # modif...
dilawar/moose-full
moose-examples/snippets/neuronFromDotp.py
Python
gpl-2.0
5,081
[ "MOOSE" ]
adb230e148b4e4718c4fef4bb6879b2ef0622c3a681553e034a31fa327a090f7
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
herilalaina/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
60,695
[ "Brian" ]
a28780dae1e2a7cfb822dfe9cdd0809188018d9681f28e83fcc9097c6745c886
import numpy as np import pylab as pl try: from ipdb import set_trace except: pass import os def plot_mea(neuron_dict, ext_sim_dict, neural_sim_dict): pl.close('all') fig_all = pl.figure(figsize=[15,15]) ax_all = fig_all.add_axes([0.1, 0.1, 0.8, 0.8], frameon=False) for elec in xrange(len(ext_s...
espenhgn/ViSAPy
examples/example_in_vitro_MEA/MoI/plot_mea.py
Python
gpl-2.0
3,290
[ "NEURON" ]
c82c98600793c657e1e3fce8567d3a2b7d98e0fa88aabd1b62038ed816306964
from enum import Enum import arrow class Region(Enum): brazil = "BR" europe_north_east = "EUNE" europe_west = "EUW" japan = "JP" korea = "KR" latin_america_north = "LAN" latin_america_south = "LAS" north_america = "NA" oceania = "OCE" turkey = "TR" russia = "RU" @prope...
sserrot/champion_relationships
venv/Lib/site-packages/cassiopeia/data.py
Python
mit
25,738
[ "CRYSTAL" ]
cf3a28bc4a3f0aefecb3cd934901fbcedbf5700d35a4f9adfc045d87dce5ef7c
import tensorflow as tf import math def weight_variable(shape): initial = tf.truncated_normal(shape, stddev=0.1) return tf.Variable(initial) def bias_variable(shape): initial = tf.constant(0.0, shape=shape) return tf.Variable(initial) def conv1d(x, W, s): return tf.nn.conv2d(x, W, strides=s, p...
davidparks21/qso_lya_detection_pipeline
dla_cnn/Model_v5.py
Python
mit
10,580
[ "NEURON" ]
82ab2412c4b583aee091c2dae388c0b7153208802c2a1c5d842f96bd756db950
import numpy as np from matplotlib import pyplot from spm1d import rft1d eps = np.finfo(float).eps #smallest float #(0) Set parameters: np.random.seed(0) nResponses = 2000 nNodes = 101 FWHM = 8.5 interp = True wrap = True heights = [2.0, 2.2, 2.4] c = 2 ### gen...
0todd0000/spm1d
spm1d/rft1d/examples/val_upx_0_gauss_set.py
Python
gpl-3.0
1,337
[ "Gaussian" ]
cd530c49f9b631f7f59a327c41c2831237393288be5083389865f9b694516f5f
# copies.py - copy detection for Mercurial # # Copyright 2008 Matt Mackall <mpm@selenic.com> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. import util import heapq def _nonoverlap(d1, d2, d3): "Return list of elements in d1...
ya790206/temp_hg
mercurial/copies.py
Python
gpl-2.0
13,684
[ "VisIt" ]
d1b7546ff5d2e8cd800e22f597ee38b8fa86355754f4936fdc3b90030776d1a2
""" ************** Synapse Client ************** The `Synapse` object encapsulates a connection to the Synapse service and is used for building projects, uploading and retrieving data, and recording provenance of data analysis. ~~~~~ Login ~~~~~ .. automethod:: synapseclient.client.login ~~~~~~~ Synapse ~~~~~~~ .....
zimingd/synapsePythonClient
synapseclient/client.py
Python
apache-2.0
162,067
[ "VisIt" ]
256a2958fc59af70f25663ed3a06d243da6be9589fca3f2bb42cb60c9baf6e3c
#!/usr/bin/env python # Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import os import pyauto_functional # Must be imported before pyauto import pyauto import test_utils class NTPTest(p...
aYukiSekiguchi/ACCESS-Chromium
chrome/test/functional/ntp.py
Python
bsd-3-clause
21,999
[ "VisIt" ]
b5ea8562d448f533cf294fcb66932997a6839ce1c57d52e53ef6c33042af1ac9
# Author: Brian Lynch # Edited: 6/1/16 import math import numpy as np import matplotlib.pyplot as plt ############################################################################## # Physical constants echarge = float("1.6022e-19") # Coloumbs evjoule = float("1.6022e-19") # eV = ev_to_joule Joules eperm = float(...
brianrlynch85/PlasmaScaling
src/larmor_dust.py
Python
mit
2,482
[ "Brian" ]
c1d15f2d253c1e2c15867cc0c4f141c886cab1f9caa78aaf90506d83e83cc9af
""" Single page performance tests for LMS. """ from bok_choy.web_app_test import with_cache from nose.plugins.attrib import attr from common.test.acceptance.fixtures.course import CourseFixture, CourseUpdateDesc, XBlockFixtureDesc from common.test.acceptance.pages.common.auto_auth import AutoAuthPage from common.test....
BehavioralInsightsTeam/edx-platform
common/test/acceptance/performance/test_lms_performance.py
Python
agpl-3.0
4,556
[ "VisIt" ]
32ea4ce0bef3a7d4d643bdf5d989fa982ed13246928361591d2f772c0e82ce43
# Sample module in the public domain. Feel free to use this as a template # for your modules (and you can remove this header and take complete credit # and liability) # # Contact: Brian Carrier [carrier <at> sleuthkit [dot] org] # # This is free and unencumbered software released into the public domain. # # Anyone is f...
APriestman/autopsy
pythonExamples/reportmodule.py
Python
apache-2.0
4,629
[ "Brian" ]
7e01aec780d3ce22b01308426a229865b0b4dc08d84c75243c11f1246055ae93
""" NotificationDB class is a front-end to the Notifications database """ __RCSID__ = "$Id$" import time import types from DIRAC import gConfig, gLogger, S_OK, S_ERROR from DIRAC.Core.Utilities.Mail import Mail from DIRAC.Core.Base.DB import DB from DIRAC.Core.Utilities import DEncode from DIRAC.Core.Security import...
vmendez/DIRAC
FrameworkSystem/DB/NotificationDB.py
Python
gpl-3.0
34,255
[ "DIRAC" ]
916ae9992866581ad38990116e8b801edb40988de225dbae057e753cfc97b0e7
# # This file is part of postpic. # # postpic 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. # # postpic is distributed in the hope th...
stetie/postpic
postpic/datareader/datareader.py
Python
gpl-3.0
12,320
[ "VisIt" ]
584742928e971aad8af19e1073c1f1b1ad697104c16efc184480b6edd6baa80c
# $HeadURL$ """ DIRAC.ConfigurationSystem.Client.Helpers package """ __RCSID__ = "$Id$" from DIRAC.ConfigurationSystem.Client.Helpers.Path import * from DIRAC.ConfigurationSystem.Client.Helpers.CSGlobals import getCSExtensions, getInstalledExtensions, getVO
Sbalbp/DIRAC
ConfigurationSystem/Client/Helpers/__init__.py
Python
gpl-3.0
264
[ "DIRAC" ]
a02168ef5201bef56542bc4c74b66f6639a5d931918a0bbefad947b3c8da322c
"""Impact of Dependencies. The main class inspect the impact of correlation on a quantity of interest of a model output. TODO: - Make test functions - Clean the code - Add a load/save to DependenceResult class - User np.tril to take the values of the matrices """ import json import operator import o...
NazBen/impact-of-dependence
depimpact/conservative.py
Python
mit
32,098
[ "Gaussian" ]
2d1c95c0ecab3f4fe66a7f34a80cc6cc10245cc761f0331b1aa82f406514838a
# 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, software # d...
yeming233/rally
tests/unit/test_mock.py
Python
apache-2.0
12,500
[ "VisIt" ]
7377118902120ebe9b14c4f6a5b3549fb7177b16c119dad6825b9235c349e515
#!/usr/bin/env python # Author: Igor Topcin <topcin@ime.usp.br> # PTC5892 Processamento de Imagens Medicas # POLI - University of Sao Paulo # This is the test package for this project # In order do run tests, go into tests directory and run "nosetests". import numpy as np import Image import ptc5892.kuan as kuan imp...
igortopcin/ptc5892
tests/kuan_tests.py
Python
unlicense
3,596
[ "Gaussian" ]
ff6856bb50e82e63be11b6d227bf0792d60aaab8d75b1287282a59d91e3670dc
# -*- coding: utf-8 -*- """ ORCA Open Remote Control Application Copyright (C) 2013-2020 Carsten Thielepape Please contact me by : http://www.orca-remote.org/ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as publish...
thica/ORCA-Remote
src/ORCA/EventTimer.py
Python
gpl-3.0
3,715
[ "ORCA" ]
8c06874f09fd63343308e0c622adf73a565ad391f613db5ea1b8c898a1354a88
from __future__ import print_function import psi4 from psi4.driver import qcdb #! A test of the basis specification. Various basis sets are specified outright and in blocks, both #! orbital and auxiliary. Constructs libmints BasisSet objects through the constructor that calls #! qcdb.BasisSet infrastructure. Checks th...
amjames/psi4
samples/python/mints9/test.py
Python
lgpl-3.0
8,974
[ "Psi4" ]
4119a8fb395235ef62df7e98d144678e8b3c3f8df17d423de2f068a5e5afd41e
# -*- coding: utf-8 -*- from __future__ import division, absolute_import, print_function import os from jinja2.loaders import BaseLoader, FileSystemLoader from jinja2.environment import Environment as BaseEnvironment from jinja2.exceptions import TemplateNotFound from pyjade.ext.jinja import Compiler as JinjaCompiler...
mediatum/mediatum
core/templating.py
Python
gpl-3.0
4,791
[ "VisIt" ]
c5c1caef7de3d9c23c431e2dcefa7ad5e8aad7aa5b9ae6b58d0c13c6bfcdf26a
class SpreadingStop: def __init__(self, stop_I, min_transfer_time): self.stop_I = stop_I self.min_transfer_time = min_transfer_time self.visit_events = [] def get_min_visit_time(self): """ Get the earliest visit time of the stop. """ if not self.visit_ev...
CxAalto/gtfspy
gtfspy/spreading/spreading_stop.py
Python
mit
2,680
[ "VisIt" ]
95f7ec484a86edbbb784aa74bbfc5913e21181158e4e315f23c419a68accd81c
""" The Job Sanity Agent accepts all jobs from the Job receiver and screens them for the following problems: - Output data already exists - Problematic JDL - Jobs with too much input data e.g. > 100 files - Jobs with input data incorrectly specified e.g. castor:/ - Input sandbox not correc...
arrabito/DIRAC
WorkloadManagementSystem/Executor/JobSanity.py
Python
gpl-3.0
5,470
[ "DIRAC" ]
6b4cbcea7647cf5e2083ba84a94f1701524fb13a1a28935013680f1f54649968
# -*- coding: utf-8 -*- import numpy import sys import os import moose scriptdir = os.path.dirname(os.path.realpath(__file__)) print('Script dir %s' % scriptdir) def test_kkit(): """This example illustrates loading, running, and saving a kinetic model defined in kkit format. It uses a default kkit model but ...
dilawar/moose-core
tests/core/test_kkit.py
Python
gpl-3.0
1,262
[ "MOOSE" ]
6807d7755d030bcbfa859b1f31c8c9bd747fd4c3224ac118e07edcca6d7454d9
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2011-2020, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. import numpy as np import pytest from wradlib import clutter, georef, io, ipol, util from . import requires_data, requires_gdal, requires_h5py, requires_net...
wradlib/wradlib
wradlib/tests/test_clutter.py
Python
mit
5,533
[ "NetCDF" ]
93fe7e491fe9deb321120a8db7c5b98817726223585af42a11ec9ca73278a081
import sys import glob import re import mdtraj DIRNAME = "{}/share/msmb_data".format(sys.prefix) def get_trajs(dataname): return sorted( glob.glob("{}/trajectory*.*".format(dataname)), key=lambda x: int(re.match(r'trajectory\-(\d+)\.\w\w\w', x).group(1)) ) def get_top(dataname): topname...
msmbuilder/msmb_data
devtools/conda-recipe/run_test.py
Python
lgpl-2.1
885
[ "MDTraj" ]
81c01724631d3c3d58577f3ccb8d1a0a900161eb32f8d811a85d0657428cc1df
from __future__ import division import types import numpy as np import scipy.integrate as integrate from pgmpy.factors.base import BaseFactor from pgmpy.factors.distributions import GaussianDistribution, CustomDistribution class ContinuousFactor(BaseFactor): """ Base class for factors representing various ...
khalibartan/pgmpy
pgmpy/factors/continuous/ContinuousFactor.py
Python
mit
14,114
[ "Gaussian" ]
3f2b1aa8d84b5ae83ded2c0488620e4722294dded85df86c34b80d14a223030b
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import random from pymatgen.core.lattice import Lattice from pymatgen.util.coord import * from pymatgen.util.testing import PymatgenTest class CoordUtilsTest(PymatgenTest): def test_get_linear_interpola...
mbkumar/pymatgen
pymatgen/util/tests/test_coord.py
Python
mit
13,889
[ "pymatgen" ]
46ce51477476142d6a5b2745a82226c26c6c05eb4461296b06550e1ac5576c5e
""" # Majic # Copyright (C) 2014 CEH # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This pr...
NERC-CEH/jules-jasmin
job_runner/job_runner/post_processing_scripts/Convert1Dto2D.py
Python
gpl-2.0
3,903
[ "NetCDF" ]
a34883736f5bf7ab7fa0681459818192a090c23d44f7abbad9c1c71737fef160
############################################################################### # ilastik: interactive learning and segmentation toolkit # # Copyright (C) 2011-2014, the ilastik developers # <team@ilastik.org> # # This program is free software; you can redistribute it and/or # mod...
nielsbuwen/ilastik
ilastik/applets/featureSelection/featureSelectionGui.py
Python
gpl-3.0
19,637
[ "Gaussian" ]
7df323441a2aa8ab5542d2b2eb3dc5798e82f426dd60b803145f6ef3d6ff3883
""" Functions for manipulating RL data. $Id: data.py,v 1.5 2005/04/01 22:12:33 jp Exp $ """ import os,sys from plastk import pkl from Scientific.IO.NetCDF import NetCDFFile from Numeric import concatenate,ones,array def open_rl_data(filespec): if isinstance(filespec,type([])): return map(open_rl_data,f...
ronaldahmed/SLAM-for-ugv
neural-navigation-with-lstm/MARCO/plastk/rl/data.py
Python
mit
3,510
[ "NetCDF" ]
1ec31766115e1feac4d162c35f3b6490bd835b9aca0aa269c04303ced960b491
from fiber_properties import FiberImage, circle_array, gaussian_array, show_image_array, plot_cross_sections import numpy as np import matplotlib.pyplot as plt def testMethod(method): tol = 1 test_range = 1 factor = 1.0 y_err = [] x_err = [] d_err = [] for i in xrange...
rpetersburg/FiberProperties
scripts/center_accuracy.py
Python
mit
4,249
[ "Gaussian" ]
3364a46432d965c951fdd3eb30fb44020279517a91e2e4bc789662392eadca03
#!python # coding=utf-8 import os import random import bisect import calendar from datetime import datetime import netCDF4 import numpy as np import pandas as pd from pyaxiom import logger from pyaxiom.urn import IoosUrn from pyaxiom.utils import urnify from pyaxiom.netcdf.dataset import EnhancedDataset def get_ty...
axiom-data-science/pyaxiom
pyaxiom/netcdf/sensors/timeseries.py
Python
mit
34,537
[ "NetCDF" ]
78c01bbe6f5de1d31c2928cb9fe58eb3cf9bd168ecf8ed2b4bca89532c62976c
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # stopexe - Back end to stop one or more resource exe units # Copyright (C) 2003-2009 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU G...
heromod/migrid
mig/shared/functionality/stopexe.py
Python
gpl-2.0
4,525
[ "Brian" ]
060b54860a4d91f5429ce4b711e64e8bf95faa53443bd0a29957671aaec0cae3
# Copyright (C) 2010-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 v...
KaiSzuttor/espresso
testsuite/python/integrator_steepest_descent.py
Python
gpl-3.0
6,879
[ "ESPResSo" ]
ec03fc161807c15b6dcbdc5cfbabc674e1c465cc834edc316b352fcacc17f94f
from troposphere import Join, Ref, FindInMap, Parameter, GetAtt, Base64, Output import troposphere.s3 as s3 import troposphere.sqs as sqs import troposphere.autoscaling as autoscaling import troposphere.ec2 as ec2 import troposphere.iam as iam import troposphere.elasticloadbalancing as elb import troposphere.cloudwatch...
DualSpark/ansible-elasticsearch-demo
cloudformation/elk/elk.py
Python
isc
27,600
[ "Elk" ]
0d779efbc6367aad11b0d447611f45f0252d602d5272396c0c147e912a5a78b2
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors from __future__ import unicode_literals import frappe def execute(): frappe.db.set_value("DocType", "Maintenance Schedule", "module", "Maintenance") frappe.db.set_value("DocType", "Maintenance Schedule Detail", "module", "Maintenance") frappe.db....
manassolanki/erpnext
erpnext/patches/v7_0/update_maintenance_module_in_doctype.py
Python
gpl-3.0
558
[ "VisIt" ]
fda0d3988a0d93955cd9597a56320f330aa466c92d36ac93920dbdf6fe7a2193
""" PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net) Copyright (C) 2004-2014 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved, Brett G. Olivier (bgoli@users.sourceforge.net) Triple-J Group for Molecular Cell Physiology Stellenbosch University, South Africa. Permission to us...
SystemsBioinformatics/stochpy
stochpy/core2/PyscesCore2Interfaces.py
Python
gpl-3.0
67,092
[ "PySCeS" ]
ae15d19512277e56cd2d43415065399ef663d1e9369b984f2cb1b96ac69bff7d
# coding: utf-8 from __future__ import division, unicode_literals """ Created on July 2015 """ __author__ = "ndardenne" import unittest import os from pymatgen import Molecule from pymatgen.io.fiesta import FiestaInput, FiestaOutput test_dir = os.path.join(os.path.dirname(__file__), "..", "..", ".." , 'test_fil...
matk86/pymatgen
pymatgen/io/tests/test_fiesta.py
Python
mit
3,355
[ "pymatgen" ]
8138eebf7c44c76e715679808df0433ae6dd6ff6a45f031ca5a92a8b2fc83fb3
"""Unit tests of MQProducer interface in the DIRAC.Resources.MessageQueue.MProducerQ """ import unittest from DIRAC import S_OK, S_ERROR from DIRAC.Resources.MessageQueue.MQProducer import MQProducer from DIRAC.Resources.MessageQueue.MQConnectionManager import MQConnectionManager from DIRAC.Resources.MessageQueue.MQCo...
andresailer/DIRAC
Resources/MessageQueue/test/Test_MQProducer.py
Python
gpl-3.0
4,134
[ "DIRAC" ]
81d2558add130c441e003c9f4095edac3a6ed3f4d610b0fe96840a1031a8e230
from __future__ import absolute_import from __future__ import division from __future__ import print_function import unittest import datetime import json from mock import MagicMock from DIRAC.DataManagementSystem.Agent.RequestOperations.ReplicateAndRegister import ReplicateAndRegister from DIRAC.DataManagementSystem.A...
yujikato/DIRAC
src/DIRAC/DataManagementSystem/Agent/RequestOperations/test/Test_RequestOperations.py
Python
gpl-3.0
8,224
[ "DIRAC" ]
b3c46e000861f7987c580954b650f7d24e9add06704374a446ac867591f6e59e
# a benchmark of the inh_gamma_generator independent multiple targets # feature. # Compare simulation times to the equivalent multiple generator # objects for independent realizations (bench.py). # # On my Opteron system, the timed simulation step is almost # 20 times faster (than the bench.py implementation). # # A...
gewaltig/cython-neuron
developer/examples/inh_gamma/bench_single_poisson.py
Python
gpl-2.0
2,162
[ "NEURON" ]
10069be28409d3ee54847880955afa428521b3bd037c609137ca4d45ee0865b3
#!/usr/bin/env python from tempfile import (NamedTemporaryFile, mkstemp) import logging as log import os from NGSPipelineParts import ( getOptions, referenceDatabase, seqs2Bams, mergeAndPileup, mkOutputDir, initLogger, defaultOptionsFile, runCommand) def sequential(options): referenceDatabase(options...
bjpop/ngs-pipeline
src/python/NGSPipeline.py
Python
bsd-3-clause
2,768
[ "BWA" ]
f512b5bcaf15b3f06647594ef7401eb459bd438025f934ee9d558f1e2d092dc1
#!/usr/bin/env python # Adam Bowen - Apr 2016 # This script provisions a vdb or dSource # Updated by Corey Brune Aug 2016 # --- Create vFiles VDB # requirements # pip install docopt delphixpy # The below doc follows the POSIX compliant standards and allows us to use # this doc to also define our arguments for the scri...
CloudSurgeon/delphixpy-examples
dx_provision_vdb.py
Python
apache-2.0
45,673
[ "ASE" ]
27cd48201fcb88892f668609f709af6c5831f734b302ad72db00e19b86711af9
# encoding: utf-8 from __future__ import unicode_literals import mock import datetime import pytest from nose.tools import * # noqa from dateutil.parser import parse as parse_datetime from addons.osfstorage.models import OsfStorageFileNode from framework.auth.core import Auth from addons.osfstorage.tests.utils impo...
cwisecarver/osf.io
addons/osfstorage/tests/test_views.py
Python
apache-2.0
34,687
[ "Galaxy" ]
2541ff361a642ac623e0b64a53bf890264949ca42f8541d6d592a6529fe697f3
# Copyright 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Runs Mozilla's Kraken JavaScript benchmark.""" import os from core import perf_benchmark from telemetry import page as page_module from telemetry.page ...
rbaindourov/v8-inspector
Source/chrome/tools/perf/benchmarks/kraken.py
Python
bsd-3-clause
5,169
[ "Brian", "Gaussian" ]
03df0bb32341f7b8ea926a232c2a326da1a0be2abe5030046fa781352b127af2
#This file creates the string for the index.html file using python from cgi import escape import settings from urllib import unquote from tweepy.streaming import StreamListener from tweepy import Stream import json import tweepy from urllib2 import Request, urlopen, URLError # The Publisher passes the R...
j0sh77/TSP
index.py
Python
mit
3,701
[ "Brian" ]
69979d105a9d3306889fb5cfafec2c4e4a293340089de9a1720cf8585fbb7e9b
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ Tests for RGB Images """ import sys import os import tempfile import pytest import numpy as np from numpy.testing import assert_equal from astropy.convolution import convolve, Gaussian2DKernel from astropy.visualization import lupton_rgb from astr...
pllim/astropy
astropy/visualization/tests/test_lupton_rgb.py
Python
bsd-3-clause
9,224
[ "Gaussian" ]
a82e3b1edddb65412a22dad90eb888845b5fdb40c469ea58fdecbb87c7678a54
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
sunqm/pyscf
pyscf/fci/test/test_spin1_symm.py
Python
apache-2.0
4,097
[ "PySCF" ]
a1a18ac0da9c1b66cbeafbb9140c4a258f6cc8d1b8b78017281cc69260990a2a
""" The B{0install whatchanged} command-line interface. """ # Copyright (C) 2012, Thomas Leonard # See the README file for details, or visit http://0install.net. from __future__ import print_function import os from zeroinstall import _, SafeException from zeroinstall.cmd import UsageError syntax = "APP-NAME" def ...
dsqmoore/0install
zeroinstall/cmd/whatchanged.py
Python
lgpl-2.1
2,907
[ "VisIt" ]
14f7a255805d8d7416114b7410bc6965de6055833b6202e4a10787168bac1356
""" This class is used to define the plot using the plot attributes. """ from DIRAC import S_OK, gLogger from DIRAC.MonitoringSystem.Client.Types.ComponentMonitoring import ComponentMonitoring from DIRAC.MonitoringSystem.private.Plotters.BasePlotter import BasePlotter __RCSID__ = "$Id$" class ComponentMonitoringPlo...
Andrew-McNab-UK/DIRAC
MonitoringSystem/private/Plotters/ComponentMonitoringPlotter.py
Python
gpl-3.0
6,041
[ "DIRAC" ]
d2053ee7d298463f57ef44d0c1a986cd2fec9de371358b368b7b0e9210958f9f
#!/usr/bin/env python import netCDF4 from glob import glob import sys import numpy as np import pymongo import hashlib def get_netcdf_filenames(): j = glob('cmap*/*/*nc') j.extend(glob('cfsr*/*/*nc')) j.extend(glob('era*/*nc')) j.extend(glob('gp*/*nc')) j.extend(glob('merra*/*nc')) # j.extend(g...
r-shekhar/ReanalysisUnifier
db_create.py
Python
mit
3,541
[ "NetCDF" ]
751f7f0a95b4791f29112618a0ee6bc4d20a5f7efa9e959d0b383c81f46cb1e0
""" intro_5_03_no_tax_SIM.py Build a vesion of the SIM model (G&L Chapter 3) with no taxes, using sfc_model classes. (Supply siders run amok!) Copyright 2017 Brian Romanchuk Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtai...
brianr747/SFC_models
sfc_models/examples/scripts/intro_5_03_no_tax_SIM.py
Python
apache-2.0
2,070
[ "Brian" ]
5a4af07ed91120353edbcc67ac2839c88487ef6543eef17d753230e327e9f9e2
# Author: Prabhu Ramachandran <prabhu [at] aero . iitb . ac . in> # Copyright (c) 2008, Enthought, Inc. # License: BSD Style. # Standard library imports. # Enthought library imports. from traits.api import Instance from traitsui.api import View, Group, Item # Local imports. from mayavi.core.pipeline_info import Pipe...
dmsurti/mayavi
mayavi/filters/vorticity.py
Python
bsd-3-clause
3,383
[ "Mayavi" ]
97eda399a33ae46f73f3d293f54983588904902dcccfe409dc70cc169d51cbf1
# -*- coding: utf-8 -*- """Constants for PyBEL tests.""" import logging from pybel.constants import * from pybel.dsl import ( Abundance, BiologicalProcess, ComplexAbundance, CompositeAbundance, EnumeratedFusionRange, Fragment, Gene, GeneFusion, GeneModification, Hgvs, Hgvs...
pybel/pybel
tests/constant_helper.py
Python
mit
29,914
[ "NEURON", "Pybel" ]
97d18cffa4b9bedc05edf3ec063a119f28bcf2d4213cb0f67e2590b68126794e
""" Python test discovery, setup and run of test functions. """ from __future__ import absolute_import, division, print_function import fnmatch import inspect import sys import os import collections import warnings from textwrap import dedent import py import six from _pytest.main import FSHookProxy from _pytest.con...
ddboline/pytest
src/_pytest/python.py
Python
mit
52,385
[ "VisIt" ]
70cf26a00aefc18153b4e895ce4b469e8d5db1c664fff4f7adc530610e95df57
# Copyright 2020 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...
cxxgtxy/tensorflow
tensorflow/python/autograph/pyct/static_analysis/type_inference.py
Python
apache-2.0
19,987
[ "VisIt" ]
3a89579a082e425025aacc8fd2ce59d37c0e64ee976b91009957f71133c70fc5
#!/usr/bin/env python # Copyright (C) 2013, 2014 the PISM Authors # This script creates a graph of the modeled margin radius time series # by using the iarea variable. Compare Figure 4(a) in Sayag & Worster (2012). # Try something like: # ./showradius.py -o foo.png ts_lab51.nc import numpy as np import pylab as ...
talbrecht/pism_pik07
examples/labgum/showradius.py
Python
gpl-3.0
1,887
[ "NetCDF" ]
32e8760d7648dc3e5878c05dc140e5d820e2d382aefa959ebe3a77a8d07f62df
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from edc_base.audit_trail import AuditTrail from edc_constants.choices import YES_NO from .infant_crf_model import InfantCrfModel class InfantFu(InfantCrfModel): """ A model completed by the user on the infant'...
botswana-harvard/microbiome
microbiome/apps/mb_infant/models/infant_fu.py
Python
gpl-2.0
2,111
[ "VisIt" ]
f7f93854a5481b6bd64f7bb62a977332a78a5e8439422748c73ad7a7a2093189
#!/usr/bin/env python3 """ This script is a python version of TimingAccuracyGLQC. We use numpy functions to simplify the creation of random coefficients. """ import time import numpy as np from pyshtools import expand from pyshtools import spectralanalysis # ==== MAIN FUNCTION ==== def main(): TimingAccuracyGLQ...
SHTOOLS/SHTOOLS
examples/python/TimingAccuracy/TimingAccuracyGLQC.py
Python
bsd-3-clause
2,991
[ "Gaussian" ]
ad0b767fe2030093efbd0788d53d2858404cecdcf56f650d0a0d36090ed17a25
import subprocess from setuptools import setup, find_packages try: subprocess.check_call( 'git describe --tags --long > bioy_pkg/data/version', shell=True) except subprocess.CalledProcessError: version = '' else: with open('bioy_pkg/data/version') as f: version = f.read().strip().s...
nhoffman/bioy
setup.py
Python
gpl-3.0
834
[ "Biopython" ]
9671294cd2c118c85f806c91ed64b462557cc040acfabee179322e13b587ba3a
ventas_larry = 0 ventas_curly = 0 ventas_moe = 0 opcion = 4 maxima_venta = 0 maximo_vendedor = "" print "1.- Ingresar ventas" print "2.- Venta mayor" print "3.- Peor vendedor" print "0.- Salir" while opcion != 0: opcion = int(raw_input("Operacion? ")) if opcion == 1: nombre = raw_input("Nombre vendedor: ") ...
csaldias/python-usm
Certámenes resueltos/Certamen 1 2013-2/pregunta-3.py
Python
mit
1,436
[ "MOE" ]
e28fd600983be75a43491a111c5bc6e841d14dc68eca77f56b7b19ece3330550
# 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...
ghchinoy/tensorflow
tensorflow/python/keras/optimizer_v2/learning_rate_schedule.py
Python
apache-2.0
38,812
[ "Gaussian" ]
7def898819bd3580344c84ad3da7547add09a74712253bef44eb858890c58b15
#!/bin/env python """ ./plots.py [--help] file Plots the supplied hdf5 file, assuming it consists of a 2d density array and a 2d array of 2d velocities. """ import tables import netCDF4 import numpy import matplotlib import pylab import sys import getopt def readHDF5file(filename): densData = None velData = ...
ljdursi/parallel-IO-tutorial
plots.py
Python
gpl-2.0
4,707
[ "NetCDF" ]
ace6d0f26917dd21afd335c390e6d012566282269e602d193785de0470407030
""" This example uses vor.py to plot geopotential height derived moment diagnostics for Feb-Mar 1979. This covers the splitting event around 21st February ** Using a faster method ** (takes approx. 2:30 mins) """ from netCDF4 import Dataset import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt impor...
wseviour/vortex-moments
moments_fast_example.py
Python
gpl-2.0
1,520
[ "NetCDF" ]
e9a981b6289313b287a537aa61077fc5e527648f44050f64be5c56b45e16bda3
# -*- coding: utf-8 -*- # python-holidays # --------------- # A fast, efficient Python library for generating country, province and state # specific sets of holidays on the fly. It aims to make determining whether a # specific date is a holiday as fast and flexible as possible. # # Authors: dr-prodigy <maurizio....
dr-prodigy/python-holidays
holidays/countries/botswana.py
Python
mit
4,122
[ "BWA" ]
bc65f2da8312700bb091a84f847cab55f2a67a5db8f2f511b09b0dd4c45ea54a
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from pymatgen.ext.matproj import MPRester from pymatgen.io.cif import CifParser try: from pymatgen.vis.structure_vtk import StructureVis no_vis = False except ImportError: StructureVis = None # t...
gVallverdu/pymatgen
pymatgen/analysis/chemenv/utils/scripts_utils.py
Python
mit
16,133
[ "pymatgen" ]
9d078555497b096bb3a30965d2c229889f17eb9950049817f110f2591ac4e861
# 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.org/licenses/LICENSE-2.0 ...
alexandrul-ci/robotframework
src/robot/model/keyword.py
Python
apache-2.0
6,433
[ "VisIt" ]
149cecaa5177e003010c5e94aa9225ea1c1eb1df7eedb2d9386c6ed4049ccf56