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
""" Copyright (c) 2014 Brian Muller Copyright (c) 2015 OpenBazaar """ import heapq from operator import itemgetter from protos import objects class Node: def __init__(self, id, ip=None, port=None, signed_pubkey=None, vendor=False): self.id = id self.ip = ip self.port = p...
jorik041/Network
dht/node.py
Python
mit
3,684
[ "Brian" ]
5776d4b759dfdf69168c32f3fdf95cd6643c5555548ddadf47fc8d7738a616b4
#!/usr/bin/env python import sys import tornado from DIRAC import gConfig, S_OK from DIRAC.Core.Base import Script from DIRAC.ConfigurationSystem.Client.LocalConfiguration import LocalConfiguration from DIRAC.FrameworkSystem.Client.Logger import gLogger from WebAppDIRAC.Core.App import App if __name__ == "__main__": ...
zmathe/WebAppDIRAC
scripts/dirac-webapp-run.py
Python
gpl-3.0
1,166
[ "DIRAC" ]
526dd6705325bfc567c21f82687c65195c1688673cf44d82dd46c3ac1f232bc9
# Setup script for megaman: scalable manifold learning # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE import io import os import re import sys import subprocess PY2 = sys.version_info[0] == 2 PY3 = not PY2 if PY3: import importlib.machinery def read(path, encoding='utf-8'): pa...
jmcq89/megaman
setup.py
Python
bsd-2-clause
3,912
[ "VisIt" ]
66a2a18fd324bb1c1e0a9d1a3999152e1ad5d99afc4c35593a0cb249378cec4f
import click from parsec.cli import pass_context, json_loads from parsec.decorators import custom_exception, json_output @click.command('get_current_user') @pass_context @custom_exception @json_output def cli(ctx): """Display information about the user associated with this Galaxy connection. Output: a dicti...
galaxy-iuc/parsec
parsec/commands/users/get_current_user.py
Python
apache-2.0
423
[ "Galaxy" ]
1c7fe37a3a0b95e3fa913c0775bdab3a15ca26c8dd0fed07ae3381454ce63de3
# -*- encoding:utf-8 -*- from __future__ import division, absolute_import, print_function import sys, textwrap from numpydoc.docscrape import NumpyDocString, FunctionDoc, ClassDoc from numpydoc.docscrape_sphinx import SphinxDocString, SphinxClassDoc from nose.tools import * if sys.version_info[0] >= 3: sixu = la...
rubennj/pvlib-python
docs/sphinx/sphinxext/numpydoc/tests/test_docscrape.py
Python
bsd-3-clause
19,792
[ "Gaussian" ]
608014a5a6ddb640e2a98311e98d0027c5c99abcbfacb6b44cacf551d798d9d2
# -*- coding: utf-8 -*- # # Copyright (C) 2014 Red Hat, Inc. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions of # the GNU General Public License v.2, or (at your option) any later version. # This program is distributed in ...
bcl/anaconda
tests/pyanaconda_tests/simpleconfig_test.py
Python
gpl-2.0
5,281
[ "Brian" ]
6dd8e63baaa41d77aef1c4773ee36e932b813d11e8925da76775ea1a4060c6a4
# -*- coding: utf-8 -*- # Copyright 2008-2014 Jaap Karssenberg <jaap.karssenberg@gmail.com> '''This module defines the ExportTemplateContext, which is a dictionary used to set the template parameters when exporting. Export template parameters supported:: generator .name -- "Zim x.xx" .user title naviga...
fabricehong/zim-desktop
zim/export/template.py
Python
gpl-2.0
14,460
[ "VisIt" ]
40d4bb8c1c1231dec7bbddb63dafb0fe395aa210f622d5b66a700f8b6928a6c3
#!/usr/bin/env python # # MIMEHandler.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANT...
qistoph/thug
src/DOM/MIMEHandler.py
Python
gpl-2.0
30,176
[ "NetCDF" ]
701b9533ed8d8487895a6c49d5cb1806d9a0fed0a5ecdaa5f0ffdd305490d01d
r""" Example of central limit theorem -------------------------------- Figure 3.20. An illustration of the central limit theorem. The histogram in each panel shows the distribution of the mean value of N random variables drawn from the (0, 1) range (a uniform distribution with :math:`\mu = 0.5` and W = 1; see eq. 3.39...
gtrichards/PHYS_T480
code/fig_central_limit.py
Python
mit
2,845
[ "Gaussian" ]
16a0fd2cede79983358d30329bd12c35da0226dc27fa2e50787623252e72fc92
import json from ace_overlay.widgets import AceOverlayWidget from django import forms from django.db.models import Q from django.forms import ModelForm, Textarea from guardian.shortcuts import get_objects_for_user from accounts.queries import compile_expression from studies.models import Lab, Response, Study from stu...
CenterForOpenScience/lookit-api
studies/forms.py
Python
apache-2.0
15,530
[ "VisIt" ]
f7fc9dbf40fb28e08972cc38dadb3bf467de5d4146d421408b320cb917b4a0e0
# coding=utf-8 """ Common methods for this project. """ from __future__ import print_function, division # Util Methods # import argparse import collections import csv import difflib import glob from datetime import datetime import re import shutil import errno import fnmatch from itertools import chain, islice import...
team-mayes/md_utils
md_utils/md_common.py
Python
bsd-3-clause
48,535
[ "CP2K", "LAMMPS" ]
c9747256ccb8bbcb566d7f8ad3aba92e339ecacd43fa83437aab3afb2c5465e4
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 """ Location of data files for Pytim examples and tests ==================================================== Real MD simulation data are stored in the ``data/`` subdirectory. Exampl...
Marcello-Sega/pytim
pytim/datafiles/__init__.py
Python
gpl-3.0
12,583
[ "Amber", "CHARMM", "GROMOS", "Gromacs", "LAMMPS", "MDAnalysis" ]
f4a11b9f60b737fd8becffe1f9cf1ee77110dcf6865335048a8bc7a7f4f122c5
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
ibyer/xhtml2pdf
xhtml2pdf/parser.py
Python
apache-2.0
25,074
[ "VisIt" ]
cee610398c21d65e33eae0d2173b2de2d4d5356738b9113d531fa12f1675ce89
# Copyright 2008-2009 Brian Boyer, Ryan Mark, Angela Nitzke, Joshua Pollock, # Stuart Tiffen, Kayla Webley and the Medill School of Journalism, Northwestern # University. # # This file is part of django-facebookconnect. # # django-facebookconnect is free software: you can redistribute it and/or modify # it under the te...
ryszard/django-facebookconnect
facebookconnect/templatetags/facebook_tags.py
Python
gpl-3.0
6,440
[ "Brian" ]
89d3805116da19e0b39b9bc52c6c5945879a78c2513b819b061f1ffec7312c09
import sys import os from io import StringIO import numpy as np import matplotlib # Force matplotlib to not use any Xwindows backend. matplotlib.use('Agg') import matplotlib.gridspec as gridspec from matplotlib import pylab import matplotlib.pyplot as plt import scipy as sp from scipy.interpolate import interp1d def p...
yuginboy/from_GULP_to_FEFF
feff/libs/plot_data.py
Python
gpl-3.0
2,856
[ "FEFF" ]
d866b9f1bae23540a1c776b348fcdb6b7e7ef78d8e412f4080f4abd6d8ceab3f
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import with_statement from acq4.devices.DAQGeneric import DAQGeneric, DAQGenericTask, DAQGenericTaskGui from acq4.util.Mutex import Mutex, MutexLocker #from acq4.devices.Device import * from PyQt4 import QtCore, QtGui import time import numpy as np from acq4...
hiuwo/acq4
acq4/devices/MockClamp/MockClamp.py
Python
mit
14,370
[ "NEURON" ]
7edae6590b8e9a109d2c629f09397331fd09445393533e82db041a7e1c2ff8f3
import numpy as np import resource, multiprocessing import os, sys, glob, time, shutil from itertools import izip from collections import defaultdict, Counter from ete2 import Tree from Bio import Phylo, SeqIO, AlignIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from Bio.Align import MultipleSeqAlignmen...
neherlab/pan-genome-analysis
scripts/sf_geneCluster_align_makeTree.py
Python
gpl-3.0
31,005
[ "Biopython" ]
7f2182a11512c8c12d579daa137f0bae280cfb6f8cd155733a39d428e8078ea6
################################################################# # $HeadURL$ ################################################################# """ .. module:: Pfn :synopsis: ProcessPool and related classes ProcessPool ProcessPool creates a pool of worker subprocesses to handle a queue of tasks much like the produce...
fstagni/DIRAC
Core/Utilities/ProcessPool.py
Python
gpl-3.0
33,005
[ "DIRAC" ]
6c7169b9bfcbe7f5f42e6fdb531ce01f5359411185b050c1cd97e4d400f688d4
""" Tests for discussion pages """ import datetime from pytz import UTC from uuid import uuid4 from nose.plugins.attrib import attr from .helpers import UniqueCourseTest from ..pages.lms.auto_auth import AutoAuthPage from ..pages.lms.courseware import CoursewarePage from ..pages.lms.discussion import ( Discussion...
xiandiancloud/edxplaltfom-xusong
common/test/acceptance/tests/test_discussion.py
Python
agpl-3.0
24,307
[ "VisIt" ]
3c2daafd3d608be90129d5ce746d50d2aba2383a2c9e37d9c74f9984dcc74434
#!/usr/bin/env python import numpy as np from astropy.io import fits class Up_parse: """ The class is to parse a UVES_popler output file. It provides wavelength, flux, sigma_error, mask (valid pixels) arrays. """ def __init__(self, path_to_fits,off_set=0.0): shift = 1. + off_set/2997...
ezavarygin/specplot
specplot_tools/up_parse.py
Python
mit
2,000
[ "Gaussian" ]
badc6e2e0ef79582d59260b2edb57ffd6e2a77523171102558a79bc986818681
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
SKIRT/PTS
modeling/fitting/reinitialization.py
Python
agpl-3.0
6,747
[ "Galaxy" ]
72bf6a5089b0eabd4c15f7b464505989a881fb9f65af45fb8a9e0fcdedc0d9b9
from ANNarchy.core.Projection import Projection from ANNarchy.core.Synapse import Synapse import ANNarchy.core.Global as Global import numpy as np from ANNarchy.generator.Utils import tabify # _generate_bank_code, _generate_convolve_code # Indices used for each dimension indices = ['i', 'j', 'k', 'l', 'm', 'n'] ###...
ANNarchy/ANNarchy
ANNarchy/extensions/weightsharing/SharedProjection.py
Python
gpl-2.0
51,558
[ "NEURON" ]
2322917244c94ccbd49f7170b2e08af171ac9a11665d644fb51f67c5bf442a5e
# numkit --- data fitting # Copyright (c) 2010 Oliver Beckstein <orbeckst@gmail.com> # Released under the "Modified BSD Licence" (see COPYING). """ :mod:`numkit.fitting` --- Fitting data ====================================== The module contains functions to do least square fits of functions of one variable f(x) to da...
CTCNano/GromacsWrapper
numkit/fitting.py
Python
gpl-3.0
10,025
[ "Gaussian" ]
ce78bc13fbbb5d75bb657fdb9d4f9443ef1b817473bf848c2be417999cf31a52
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
rishikksh20/scikit-learn
sklearn/ensemble/forest.py
Python
bsd-3-clause
67,993
[ "Brian" ]
684509af9361c7e627de7cf7264a58768a132df0a66495d17f3d3ed28c81af65
"""Tests for LogFilters.""" import pytest from DIRAC.FrameworkSystem.private.standardLogging.LogLevels import LogLevels from DIRAC.Resources.LogFilters.PatternFilter import PatternFilter from DIRAC.Resources.LogFilters.ModuleFilter import ModuleFilter, LEVEL class Record(object): def __init__(self, msg, varmessa...
chaen/DIRAC
Resources/LogFilters/test/Test_PatternFilter.py
Python
gpl-3.0
2,081
[ "DIRAC" ]
47af82493636a2d868e4cb341f21efa0175720d91594848833330f572f1e1533
""" DIRAC Transformation DB Transformation database is used to collect and serve the necessary information in order to automate the task of job preparation for high level transformations. This class is typically used as a base class for more specific data processing databases """ import re, time, thre...
marcelovilaca/DIRAC
TransformationSystem/DB/TransformationDB.py
Python
gpl-3.0
68,496
[ "DIRAC" ]
0232987408b9e22ebe2b00e1d1fa02c4fbdc344599319a64c44a20554a205fbc
# $Id: nodes.py 7788 2015-02-16 22:10:52Z milde $ # Author: David Goodger <goodger@python.org> # Maintainer: docutils-develop@lists.sourceforge.net # Copyright: This module has been placed in the public domain. """ Docutils document tree element class library. Classes in CamelCase are abstract base classes or auxilia...
jmwright/cadquery-freecad-module
Libs/docutils/nodes.py
Python
lgpl-3.0
77,350
[ "VisIt" ]
364512a9b611d744996d5126fa9a01d0822675f598c5bf49602081379feea35d
# Copyright 2020 The TensorFlow Probability 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 o...
tensorflow/probability
tensorflow_probability/python/experimental/sts_gibbs/gibbs_sampler.py
Python
apache-2.0
39,186
[ "Gaussian" ]
108909f65619070077de296717f3118ae3684c7a8dacded2a5fa03eb93b003a3
# univariate linear regression import numpy as np # http://blog.csdn.net/anneqiqi/article/details/64125186 import matplotlib.pyplot as plt # %matplotlib inline ''' # test r1 = np.linspace(0, 10, 1000) s1 = np.random.normal(0, 0.1, 1000) # Gaussian distribution s2 = 100 * s1 #print("r1:", r1) #print("s1:", s1) plt.his...
yejingfu/samples
ml/lession1/linearregression.py
Python
mit
2,833
[ "Gaussian" ]
71252bea28978f5c9889dca501489959e5947346e5f8f5960c910a56d216da7b
#!/usr/bin/env python """ This file demonstrates drawing graphs using circular vertices via vtkRenderedGraphRepresentation. """ from vtk import * #------------------------------------------------------------------------------ # Script Entry Point #--------------------------------------------------------------...
hlzz/dotfiles
graphics/VTK-7.0.0/Examples/Infovis/Python/circular_vertices.py
Python
bsd-3-clause
1,383
[ "VTK" ]
e7efe3f6895eda12164f1df5c1e07759565f1afc3f732703cbf1d3abd7071da7
# -*- coding: utf-8 -*- """ Unit tests for instructor.api methods. """ import datetime import functools import io import json import random import shutil import tempfile import ddt import pytest from boto.exception import BotoServerError from django.conf import settings from django.contrib.auth.models import User from...
ahmedaljazzar/edx-platform
lms/djangoapps/instructor/tests/test_api.py
Python
agpl-3.0
230,248
[ "VisIt" ]
033bfd68ad230d26209767734876e25f26db694f12e887eba85493292b44863c
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2009-2011 Umeå University # # 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...
natebeacham/saml2
src/saml2/attribute_resolver.py
Python
bsd-2-clause
2,892
[ "exciting" ]
f802010e38b64bd263f5148a01f623fb3fb5cb0fa12d7d7b516f158abdddba62
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2019 Satpy developers # # This file is part of satpy. # # satpy 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...
pytroll/satpy
satpy/readers/viirs_edr_active_fires.py
Python
gpl-3.0
5,530
[ "NetCDF" ]
1baed7dabb44317edc027ecf6efe3b6138c4f60cd2d1fed0d4557f485a7a912b
# Copyright 2004, Magnus Hagdorn # # This file is part of GLIMMER. # # GLIMMER 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. # # G...
glimmer-cism/PyCF
PyCF/CF_options.py
Python
gpl-2.0
14,671
[ "NetCDF" ]
2fb71ebd18957c0c313fc79f97145da3a569fd13bbd4734a076342eaa224c461
# Orca # # Copyright (C) 2010-2013 Igalia, S.L. # # Author: Alejandro Pinheiro Iglesias <apinheiro@igalia.com> # Author: Joanmarie Diggs <jdiggs@igalia.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free S...
ruibarreira/linuxtrail
usr/lib/python3/dist-packages/orca/scripts/apps/gnome-shell/script.py
Python
gpl-3.0
6,767
[ "ORCA" ]
6a1cd19e8bf904c69dafa1251d7d322d695be4e8baeb530bd374fb2273344726
#!/usr/bin/env python import math, numpy as np #from enthought.mayavi import mlab import matplotlib.pyplot as pp import matplotlib.cm as cm import matplotlib import scipy.linalg as lin import scipy.ndimage as ni import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3') import rospy import tf #import hrl_lib.mayav...
tapomayukh/projects_in_python
sandbox_tapo/src/skin_related/Cody_Data/time_varying_data_two_objects_new.py
Python
mit
13,725
[ "Mayavi" ]
e65831564908fe9457fee61ba4696918be0fe8c4df242bf29a6740e8218c4279
#!/usr/bin/python # -*- coding: utf-8 -*- # ramaplot.Ramaplot.py # # Copyright (C) 2015 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Generates one or more Ramachandran figures to specification...
ASinanSaglam/Ramaplot
Ramaplot.py
Python
bsd-3-clause
20,979
[ "Amber" ]
d6ec7396349972014879225d132ca052e2be9397e27af6c9ad3e8a8e887bec98
import os from os import path from fsgamesys.amiga.amiga import Amiga # from fsgamesys.amiga.amigaconfig import AmigaConfig from fsgamesys.amiga.amigaconstants import AmigaConstants from fsgamesys.amiga.config import Config from fsgamesys.amiga.launchhandler import ( amiga_path_to_host_path, encode_file_comme...
FrodeSolheim/fs-uae-launcher
fsgamesys/amiga/harddrives.py
Python
gpl-2.0
13,642
[ "ADF" ]
5c934655ad36ab7b1f3d0634c957de8a315b089f3b07887fbde688f22926e1ca
""" ======================================= Purpose: make a histogram of fits image ======================================= Input: fits image file Output: histogram of pixel values ------------------- *By: Jianrong Deng 20170601 ------------------- """ import numpy as np ###########################################...
jianrongdeng/LAMOST
ana/scripts/histogram_fits-image.py
Python
gpl-3.0
2,680
[ "Gaussian" ]
5d8773f3d141d979ced02613a18ccfd0ce34213fe53d464823b8aa6b567e7362
import math import re # Used to fix SVG exporting from PyQt4 import QtCore, QtGui, QtSvg import qt4_circular_render as crender import qt4_rect_render as rrender from main import _leaf, NodeStyle, _FaceAreas from qt4_gui import _NodeActions as _ActionDelegator from qt4_face_render import update_node_faces, _FaceGroup...
xguse/ete
ete_dev/treeview/qt4_render.py
Python
gpl-3.0
35,308
[ "VisIt" ]
11963b43292567c912cdaa79ecc99d8732faf03f3f7f8795eecab31890baa687
""" A set of misc. methods in pure python to perform generic operations over datasets, vectors, strings, etc. I have added a lot of stuff in it, and a little is used as of now. You are free to take and use anything you like. """ from __future__ import division import sys import random from numpy.linalg import inv, det ...
saifuddin778/pwperceptrons
tools.py
Python
mit
10,032
[ "BLAST" ]
57183b32dfca4228ee1d486242e4cef2158226b3602c89d77fb45fd10c236bfa
"""Support for control of ElkM1 lighting (X10, UPB, etc).""" from homeassistant.components.light import ( ATTR_BRIGHTNESS, SUPPORT_BRIGHTNESS, Light) from homeassistant.components.elkm1 import ( DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities) DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform( ...
HydrelioxGitHub/home-assistant
homeassistant/components/elkm1/light.py
Python
apache-2.0
1,678
[ "Elk" ]
c47da9e960f5941d95c38758a2be3d559c7a77e0391b1325f07ee2d9d974ca68
#!/usr/bin/env python # Copyright (c) 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. """Makes sure that all files contain proper licensing information.""" import optparse import os.path import subprocess import sys...
robclark/chromium
tools/checklicenses/checklicenses.py
Python
bsd-3-clause
15,399
[ "Galaxy" ]
a0c84b5bf341ea35d2f7c7bf66a24ecf37e5e67f15e90b0f45bcbb6e1e3a3c7d
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # checkprgver.py file is part of spman # # spman - Slackware package manager # Home page: https://github.com/MyRequiem/spman # # Copyright (c) 2018 Vladimir MyRequiem Astrakhan, Russia # <mrvladislavovich@gmail.com> # All rights reserved # See LICENSE for details. """ ...
MyRequiem/spman
src/checkprgver.py
Python
mit
2,260
[ "VisIt" ]
22f1582c458cf2d20f0007c76a6c0e031acb8fdd6f2e88e8c1ebd3ef8732d020
# -*- coding:Utf-8 -*- import doctest import os import logging import pdb import sys import numpy as np import scipy as sp import scipy.io as io import scipy.signal as si import scipy.linalg as la import matplotlib.pylab as plt import pylayers.signal.bsignal as bs from pylayers.measures import mesuwb class Waveform(di...
dialounke/pylayers
pylayers/signal/waveform.py
Python
mit
10,616
[ "Gaussian" ]
000046847467ed04f9e1c128c4de08ad530f96bfae34a0a9b83d5a5f7ce593d9
""" Acceptance tests for grade settings in Studio. """ from common.test.acceptance.pages.studio.settings_graders import GradingPage from common.test.acceptance.tests.studio.base_studio_test import StudioCourseTest from common.test.acceptance.fixtures.course import XBlockFixtureDesc from bok_choy.promise import EmptyPro...
philanthropy-u/edx-platform
common/test/acceptance/tests/studio/test_studio_grading.py
Python
agpl-3.0
12,145
[ "VisIt" ]
cc33ee00a58c1a5b14222fdf6d3f61ce56665559c6381a482751c0ec8ccab78c
# Code for astronomically useful functions -- especially functions dealing # with surface-brightness or similar (e.g., spectroscopic) profiles. # # For consistency, all of the main functions should have the following # signature: # # functionName( rValuesVector, parameterList, mag=True, magOutput=True ) # # where rV...
perwin/imfit
python/imfit_funcs.py
Python
gpl-3.0
16,771
[ "Gaussian" ]
5bb1a229411aa8d5d4c79b54401bcc48c993e9fe738d90eb41444ff8e42af7f1
from parsimonious.grammar import Grammar from parsimonious.nodes import * from decimal import Decimal # =================================================================== class Percentage(Decimal): pass # =================================================================== class ConditionVisitor(NodeVisitor): ...
DanielBaird/climas-global
webapp/climasng/parsing/conditionparser.py
Python
apache-2.0
9,530
[ "VisIt" ]
1532aa7ac928126c7b812a053e2551dd65c18c25f16bf87490530ae767765d5e
from aiida.parsers.parser import Parser from aiida.parsers.exceptions import OutputParsingError from aiida.orm.data.array import ArrayData from aiida.orm.data.parameter import ParameterData import numpy as np def parse_FORCE_CONSTANTS(filename): fcfile = open(filename) num = int((fcfile.readline().strip().sp...
abelcarreras/aiida_extensions
plugins/parsers/phonopy.py
Python
mit
2,752
[ "phonopy" ]
3e509cd6d1125979f679883a963c30cc6d362eaadab7c191d8b4b9f7d6483e9a
# # Copyright 2014 Lars Pastewka (U. Freiburg) # 2014 James Kermode (Warwick U.) # # matscipy - Materials science with Python at the atomic-scale # https://github.com/libAtoms/matscipy # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
libAtoms/matscipy
examples/fracture_mechanics/energy_barrier_multiple/params.py
Python
lgpl-2.1
1,694
[ "ASE", "Matscipy" ]
6c50fd237a63523de699bf0b747656cd175f1047b112d0aa3f1dd47de3899eea
#!/usr/bin/env python3.5 ############################################################################### # TransportLayerBot - An all-in-one user bot for Discord. # # Copyright (C) 2016 TransportLayer # # ...
TransportLayer/TransportLayerBot-Discord
main.py
Python
agpl-3.0
16,517
[ "VisIt" ]
7caba217ca5a6020a63cd416a94d87602fda0a15d8379132deb5145adf94c24d
# from helpers import download_mesh # import meshplex # # import numpy as np # import unittest # # # class GradientTest(unittest.TestCase): # # def setUp(self): # return # # def _run_test(self, mesh): # num_nodes = len(mesh.points) # # Create function 2*x + 3*y. # a_x = 7.0 # ...
nschloe/voropy
tests/mesh_tri/test_gradient.py
Python
mit
1,254
[ "VTK" ]
04fa3eec10e8a792fd5e2930fc8f34068db6b184576f7c6be07271c480f4383b
#!/usr/bin/env python3 """ Template by pypi-mobans """ import os import sys import codecs import locale import platform from shutil import rmtree from setuptools import setup, Extension # Work around mbcs bug in distutils. # http://bugs.python.org/issue10945 # This work around is only if a project supports Python ...
pyexcel/libxlsxwpy
setup.py
Python
bsd-3-clause
3,872
[ "VisIt" ]
cb151fd0d3d67e6b7873125929627113f242a9330439ab217cb94480fe13a526
import logging import time import pysam from mitty.lib.bedfile import read_bed logger = logging.getLogger(__name__) # NOTE TO SELF: Though it seems like we could convert the psyam variant handling structures to something # that looks like it is more useful for us re: read generation, it is not worth the effort and...
sbg/Mitty
mitty/lib/vcfio.py
Python
apache-2.0
8,078
[ "pysam" ]
2908e881b96e1ed735a6f94c47473fe0c34a243e0aeafbd80d16431c4ce17985
"""Only External Repos url specific constants module""" CUSTOM_FILE_REPO = 'https://fixtures.pulpproject.org/file/' CUSTOM_KICKSTART_REPO = 'http://ftp.cvut.cz/centos/8/BaseOS/x86_64/kickstart/' CUSTOM_RPM_REPO = 'https://fixtures.pulpproject.org/rpm-signed/' CUSTOM_RPM_SHA_512 = 'https://fixtures.pulpproject.org/rpm...
rplevka/robottelo
robottelo/constants/repos.py
Python
gpl-3.0
1,532
[ "Galaxy" ]
b6376f900b9896fd252d8eb178ecdb83bcf166e665130da4caf1f741ab1d85a4
import numpy as np from evaluate import binary_metrics, precision_recall import matplotlib.pyplot as plt from matplotlib.pyplot import cm def plot_retina_results(predicted, event, max_angle, search_traces = None, against = 'true'): thetas, phis, response = event.get_grid() m, test, predicted_mapping, test_mappi...
maxim-borisyak/pyretina
pyretina/plot.py
Python
mit
4,355
[ "Mayavi" ]
d1833a815cc89afdca7387cba6fe53d96dd79e24f84b80e4b16fdf44a2ee4f53
import json from coalib.bearlib import deprecate_settings from coalib.bearlib.abstractions.Linter import linter from coalib.bears.requirements.NpmRequirement import NpmRequirement from coala_utils.param_conversion import negate def bool_or_str(value): try: return bool(value) except: return st...
dosarudaniel/coala-bears
bears/js/JSHintBear.py
Python
agpl-3.0
20,188
[ "VisIt" ]
f0e16fa4a4d653db26e4f0bbb009d47cf79e8930ad96ad4ec2acfd9fe5ae46f3
from setuptools import setup setup( name='metasort', version='0.3.6.3', packages=['metasort', ], license='MIT', url='http://github.com/phelimb/metasort', description='Filter reads based on taxonomy assignment from One Codex.', author='Phelim Bradley, Gil Goncalves', author_email='wave@p...
Phelimb/metasort
setup.py
Python
mit
537
[ "Biopython" ]
cfb1d7ff5cefc3258c8fdc5162c5dfd18bebafc3a38f2d9f75f0f074ba681a13
#!/usr/bin/env python """Shows how to view data created by `tvtk.tools.mlab` with mayavi2. """ # Author: Prabhu Ramachandran <prabhu@aero.iitb.ac.in> # Copyright (c) 2006-2007, Enthought Inc. # License: BSD Style. import numpy from mayavi.scripts import mayavi2 from tvtk.tools import mlab from mayavi.sources.vtk_dat...
dmsurti/mayavi
examples/mayavi/advanced_visualization/surf_regular_mlab.py
Python
bsd-3-clause
1,366
[ "Mayavi" ]
b668fffed00badfef65767d2529f3457f46e6f15a6bbbab18bef731dc095e862
#!/usr/bin/env python import argparse import logging import sys from BCBio import GFF from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqFeature import ( FeatureLocation, SeqFeature ) from Bio.SeqRecord import SeqRecord logging.basicConfig(level=logging.INFO) log = logging.getLogger(__name__) def par...
dpryan79/tools-iuc
tools/progressivemauve/xmfa2gff3.py
Python
mit
5,764
[ "Biopython" ]
6141168b8c591383578a6e859cbcbec35a5c60fb3984f769e136568dfb5420dc
# Copyright 2011 Rackspace # Copyright (c) 2011 X.commerce, a business unit of eBay Inc. # Copyright 2013 IBM Corp. # 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 # # ...
akash1808/nova
nova/tests/unit/network/test_manager.py
Python
apache-2.0
160,748
[ "FEFF" ]
dba8716a433bc6d1a7fc4f3309493d34f3956cacad00641278c3d5592a63593b
from matplotlib import pyplot from math import cos, sin, atan class Neuron(): def __init__(self, x, y): self.x = x self.y = y def draw(self, neuron_radius): circle = pyplot.Circle((self.x, self.y), radius=neuron_radius, fill=False) pyplot.gca().add_patch(circle) class Layer(...
dewtx29/python_ann
python/pydev_ann/LearnNN/learnNN6.py
Python
gpl-3.0
3,999
[ "NEURON" ]
8fca13405026b6d402f9c819fd91d85a04a7086d441ddc1018da938df7971e06
tutorial_tests = """ Let's try a simple generator: >>> def f(): ... yield 1 ... yield 2 >>> for i in f(): ... print i 1 2 >>> g = f() >>> g.next() 1 >>> g.next() 2 "Falling off the end" stops the generator: >>> g.next() Traceback (most recent call la...
adaussy/eclipse-monkey-revival
plugins/python/org.eclipse.eclipsemonkey.lang.python/Lib/test/test_generators.py
Python
epl-1.0
49,410
[ "VisIt" ]
8e827bf8c4ace6a9f0278b2540a0761be32314f9fa87b0fe145e26de9aac5439
# 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...
nburn42/tensorflow
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
Python
apache-2.0
61,484
[ "DIRAC" ]
99e476b6791c6b78262e89d83dde0f5be8dd4444cc7dba8d339a2adabb17e547
# Copyright 2014-2018 The PySCF Developers. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
gkc1000/pyscf
pyscf/nao/m_ao_matelem.py
Python
apache-2.0
5,878
[ "PySCF" ]
c66714f2551b27c3e1f7ad9c3fa379929a7c6e3bf3b2e899b4799aeada94ef05
# Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import os import warnings from pymatgen.core.structure import Structure from pymatgen.core.units import Ha_to_eV, bohr_to_ang from pymatgen.io.abinit.abiobjects import * from pymatgen.util.testing import PymatgenTest class ...
vorwerkc/pymatgen
pymatgen/io/abinit/tests/test_abiobjects.py
Python
mit
7,463
[ "ABINIT", "pymatgen" ]
8d2195dcfca17469d572591f8652f944f4815ce1b6d191a6c1ef87a5a8c359ce
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A Flow is a container for Works, and works consist of tasks. Flows are the final objects that can be dumped directly to a pickle file on disk Flows are executed using abirun (abipy). """ from __future__ impo...
xhqu1981/pymatgen
pymatgen/io/abinit/flows.py
Python
mit
105,989
[ "ABINIT", "pymatgen" ]
ce357298f6d62cb96159327ebf6d8006309936f1401a3f6ecbab8227d507c279
""" 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...
jmschrei/scikit-learn
sklearn/tree/tree.py
Python
bsd-3-clause
40,412
[ "Brian" ]
cd8a8a72712f77237fb1a1b0c06a0877a07282027c232739130cb16de797dd2c
""" DIRAC FileCatalog Database """ __RCSID__ = "$Id$" from DIRAC import gLogger, S_OK, S_ERROR from DIRAC.Core.Base.DB import DB from DIRAC.DataManagementSystem.DB.FileCatalogComponents.DirectoryMetadata import DirectoryMetadata from DIRAC.DataManagementSystem.DB.FileCatalogComponents.FileMetadata import FileMetadata...
andresailer/DIRAC
DataManagementSystem/DB/FileCatalogDB.py
Python
gpl-3.0
39,108
[ "DIRAC" ]
66eacd375b48ce8d25efe48e8fbb1aebd13da65b93f3e1c38c379605cf8f6fc7
# # Copyright (c) 2008--2014 Red Hat, Inc. # # This software is licensed to you under the GNU General Public License, # version 2 (GPLv2). There is NO WARRANTY for this software, express or # implied, including the implied warranties of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. You should have received a c...
moio/spacewalk
backend/server/rhnChannel.py
Python
gpl-2.0
70,026
[ "VisIt" ]
fcae0832c1895d2c86d4ceb8d81b6a6af59450af2c1f101c06d139ca76437ed4
# # 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...
fweik/espresso
samples/electrophoresis.py
Python
gpl-3.0
9,523
[ "ESPResSo" ]
5fb82f4d9cb5f9be0df809ab0e163bac4d4a0eec07650d77303c75ab3dc11658
# $HeadURL: $ ''' AccountingCacheCommand The AccountingCacheCommand class is a command module that collects command classes to store accounting results in the accounting cache. ''' from datetime import datetime, timedelta from DIRAC import S_OK, S_ERROR from...
Sbalbp/DIRAC
ResourceStatusSystem/Command/AccountingCacheCommand.py
Python
gpl-3.0
34,774
[ "DIRAC" ]
c0ed4ac83473eb104ceccb4d5bca45b950d9473a6f45143d4472d45e029d9a00
import numpy as np from gpaw.io.tar import Writer, Reader class IncrementalWriter(Writer): _iterkey = 'niter' _partkey = 'part' _iterpattern = '/%06d.part' def __init__(self, name): Writer.__init__(self, name) self.dims[self._iterkey] = 0 self.dims[self._partkey] = 1 ...
robwarm/gpaw-symm
gpaw/io/tarext.py
Python
gpl-3.0
5,602
[ "GPAW" ]
bf80a9db2d5f73b495af7f5f7602577d40bc1871a9172b3bcdd5d68fa81c5bef
print("Hello") def downsample(w_m, f_m, w_TRES): '''Given a model wavelength and flux (w_m, f_m) and the instrument wavelength (w_TRES), downsample the model to exactly match the TRES wavelength bins. ''' spec_interp = interp1d(w_m, f_m, kind="linear") @np.vectorize def avg_bin(bin0, bin1): ...
BrownDwarf/Starfish
attic/old_code.py
Python
bsd-3-clause
13,197
[ "Gaussian" ]
cbe422c4a6f5697935996787e3a5a4d01bd1dc95501ced0b8d3978a2ca15fba2
"""This contains a set of tests for paratemp.coordinate_analysis""" ######################################################################## # # # This test was written by Thomas Heavey in 2018. # # theavey@bu.edu thom...
theavey/ParaTemp
tests/test_coordinate_analysis.py
Python
apache-2.0
12,849
[ "MDAnalysis" ]
ea09fc53c0ca734458a759f8ecf4cb0c35ae1f6dbdad559ad570f43908be769a
from django.shortcuts import get_object_or_404, redirect, render from django.http import HttpResponse, JsonResponse from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.contrib.syndication.views import Feed from django.core.urlresolvers import reverse from dj...
michcioperz/nyuuu
hug/views.py
Python
apache-2.0
7,756
[ "Amber" ]
274faf92af94be213f9790ab14f7f0661b1e766bf2eee5c3f44c68d1459e1820
#!/usr/bin/env python import sys import gfxprim.core as core import gfxprim.loaders as loaders import gfxprim.filters as filters def main(): if len(sys.argv) != 3: print("usage: blur blur-radii image") sys.exit(1) radii = float(sys.argv[1]) # Load Image img = loaders.load(sys.argv[2]...
gfxprim/gfxprim
demos/py_simple/blur.py
Python
lgpl-2.1
497
[ "Gaussian" ]
d059bc31a63f3d2843d3be9b744a54ae04f8788232ab8b454c1d95c84f7a77c0
import numpy as np from alis import almsgs from alis import alfunc_base import astropy.units as u msgs = almsgs.msgs() try: from linetools.spectra.lsf import LSF as ltLSF except ImportError: msgs.warn("linetools is not installed. Install it if you wish to use LSF") class LSF(alfunc_base.Base) : """ Co...
rcooke-ast/ALIS
alis/alfunc_lsf.py
Python
gpl-3.0
14,125
[ "Gaussian" ]
0560f432a9b24c8749028557bc111d34c9eb3445844004d043f673bd86d57014
# -*- coding: utf-8 -*- # # # TheVirtualBrain-Scientific Package. This package holds all simulators, and # analysers necessary to run brain-simulations. You can use it stand alone or # in conjunction with TheVirtualBrain-Framework Package. See content of the # documentation-folder for more details. See also http://ww...
rajul/tvb-library
tvb/simulator/plot/tools.py
Python
gpl-2.0
37,849
[ "Gaussian", "Mayavi" ]
69144efd17b94943be1833d4adfe3fa516d2b3a30e440777feaa0cb304a7494d
#-*- encoding: utf-8 -*- from urllib2 import Request, urlopen, URLError from urllib import urlencode from cStringIO import StringIO from gzip import GzipFile import time, sys, os import argparse def getArgs(): parser = argparse.ArgumentParser() parser.add_argument('url', help="the url to visit") parser.a...
dlutxx/memo
curl/test.py
Python
mit
586
[ "VisIt" ]
cde3d2a7d8a4994ead4307761233d8bae4b3acf60f5f726ff95da6fccfcf8b46
# Copyright 2004 by Bob Bussell. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """NOEtools: For predicting NOE coordinates from assignment data. The input and output are model...
zjuchenyuan/BioWeb
Lib/Bio/NMR/NOEtools.py
Python
mit
3,420
[ "Biopython" ]
ee15a5cc23f96c4f2d2d49756a039077431d16dca663312d64ad53dbb6b5bdef
# Copyright (C) 2014 Jian-Ming Tang <jmtang@mailaps.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 option) any later versio...
jianmingtang/PIC-tools
Python/Figure/Figure3D.py
Python
gpl-3.0
5,619
[ "VTK" ]
142e40ced68dbb1f8c73dcd8d164dd11149a1d7e8b5d242bb4718add1f21bd92
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2013 Stanford University and the Authors # # Authors: Kyle A. Beauchamp # Contributors: Robert McGibbon # # MDTraj i...
ctk3b/mdtraj
mdtraj/geometry/tests/test_alignment.py
Python
lgpl-2.1
1,884
[ "MDTraj" ]
683a7ea0cf91826da8b8944fdc43d0ff2f6d25882d6a31cae5babc6d68703136
from go_to_adjacent_systems import * from go_somewhere_significant import * import vsrandom import launch import faction_ships import VS import Briefing import universe import unit import Director import quest import gettext class defend (Director.Mission): def __init__ (self,factionname,numsystemsaway, enemyquanti...
costalfy/Vega-Strike
data/modules/missions/defend.py
Python
gpl-2.0
8,780
[ "VisIt" ]
f3d9ee8fa82faeccab6e64b76b6a93e9e7a7d8f21012528b15724a4c0d4f7992
# -*- coding: utf-8 -*- # Copyright 2010 Dirk Holtwick, holtwick.it # # 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 ...
Bounder/xhtml2pdf
xhtml2pdf/parser.py
Python
apache-2.0
24,031
[ "VisIt" ]
0849a42763bbf988b52b3f5dd2989cd510452eb327cc872d01edcf97c214a2c0
""" Tests PatternGenerator (position and orientation), and some of the basic patterns. Original written as a unit test as part of the Topographica project. """ import os import unittest cwd = os.path.abspath(os.path.split(__file__)[0]) import param import numpy as np from numpy.testing import assert_array_equal fr...
ioam/imagen
tests/testpatterngenerator.py
Python
bsd-3-clause
8,450
[ "Gaussian" ]
634d0d9bf720e0f5efb29d4b74b539af6d58f53568e9ef9bcf2950efc97c2341
############################################################################## # Copyright (c) 2013-2017, 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...
skosukhin/spack
var/spack/repos/builtin/packages/r-deseq2/package.py
Python
lgpl-2.1
2,540
[ "Bioconductor" ]
13f648bf5911986ea72ac04b1f8fe0e785c6722a495e35ec50ebc44fba8ebf54
#!/usr/bin/env python helptext ='''This script will take a list of FASTA files and concatenate them for use in phylogenetic inference. The sequence headers (up until the first space) must be identical in each individual FASTA file. Individual gene sequences should be aligned prior to running this script! This scrip...
mossmatters/HybPiper
fasta_merge.py
Python
gpl-3.0
5,712
[ "Biopython" ]
4b5394e7cf77be750529234e3fdaad7172a1e81f38a6cbb43d970c1f321e4c8c
""" Read/write functions for Gaussian. Written by: Glen R. Jenness University of Wisconsin - Madison See accompanying license files for details. """ import numpy as np import ase.units from ase.atoms import Atoms from ase.atom import Atom from ase.calculators.singlepoint import SinglePointCalculator from ase....
grhawk/ASE
tools/ase/io/gaussian.py
Python
gpl-2.0
3,516
[ "ASE", "Gaussian" ]
3f71f84f10774c40d84097338dad9dadbbab0e7524c3224250ebfd577a446e1c
######################################################################### # # perceptron.py - This file is part of the Spectral Python (SPy) package. # # Copyright (C) 2001-2014 Thomas Boggs # # Spectral Python is free software; you can redistribute it and/ # or modify it under the terms of the GNU General Publ...
ohspite/spectral
spectral/algorithms/perceptron.py
Python
gpl-2.0
16,914
[ "NEURON" ]
a8559bb196e216907a0abd9fd77bd0834851cf828a46d58a5084a8d010506b0a
# sql/expression.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Defines the base components of SQL expression trees. All components are derived ...
igemsoftware/SYSU-Software2013
project/Python27_32/Lib/site-packages/pypm/external/2/sqlalchemy/sql/expression.py
Python
mit
153,547
[ "VisIt" ]
a0b9de762105560e598c17082025921599fc40a8c82eb1232b8cf1a37b0397d6
############################################################################## # 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/r-graph/package.py
Python
lgpl-2.1
1,712
[ "Bioconductor" ]
421ee35875d9a271086f79b775908f7cf2d101ffaeb44b34e14991e03b00c18e
import logging from autotest.client.shared import error from virttest import virsh try: from virttest.staging import utils_memory from virttest.staging import utils_cgroup except ImportError: from autotest.client.shared import utils_memory from autotest.client.shared import utils_cgroup def run(test,...
PandaWei/tp-libvirt
libvirt/tests/src/virsh_cmd/domain/virsh_memtune.py
Python
gpl-2.0
5,890
[ "VisIt" ]
dee0451860cdc8b4e1b2936286294690f572c09936aea610ef2c6ed91979d753
import matplotlib matplotlib.use('Agg') import numpy as np import supp_functions as fce import sys import os import xarray as xr import pandas as pd import argparse import time import platform import statsmodels.api as sm import statsmodels.stats.stattools as sms i...
kuchaale/X-regression
scripts/lin_reg_univ_ccmi_xarray.py
Python
gpl-3.0
10,655
[ "NetCDF" ]
71aa6e92a049a09d886292372ed47be7ee2edb1d8e061c8013fe4533aad83120
# coding: utf-8 """Test mdn.compatibility.""" from __future__ import unicode_literals from django.utils.six import text_type from mdn.compatibility import ( CellVersion, CompatFeatureVisitor, CompatFootnoteVisitor, CompatSectionExtractor, CompatSupportVisitor, Footnote, compat_feature_grammar, compat_supp...
mdn/browsercompat
mdn/tests/test_compatibility.py
Python
mpl-2.0
41,629
[ "VisIt" ]
caffc8daa02c79a8bc02abb26a12184618911578624d2dc195d70f53672c5d27
# Copyright (C) 2017 Alex Nitz # # # 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 distributed in t...
cmbiwer/pycbc
pycbc/noise/reproduceable.py
Python
gpl-3.0
6,976
[ "Gaussian" ]
1eafff912da454982ef923632404b6be199e30f7d4a708c2ba7ceb95a9c1bb2c
import sys sys.path.insert(1, "../../../") import h2o def link_correct_default(ip,port): print("Reading in original prostate data.") h2o_data = h2o.upload_file(path=h2o.locate("smalldata/prostate/prostate.csv.zip")) print("Compare models with link unspecified and canonical link specified.") print("GAUSSIAN: ...
PawarPawan/h2o-v3
h2o-py/tests/testdir_algos/glm/pyunit_link_correct_default_largeGLM.py
Python
apache-2.0
1,986
[ "Gaussian" ]
b0759b726ec6288c3fe914f0504f781b688e91540542322b53f93eb2eba1bb41
#!/usr/bin/env python3 # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # # LOLO: add an empty array for SSH in output netcdf file !!! ## + same...
brodeau/aerobulk
python/misc/download_prepare_ERA5_for_SASF.py
Python
gpl-3.0
17,247
[ "NetCDF" ]
d5e29cf044577ff71ed8910b1ab40bde3d4f7773dbe15298c4d21a4f14a48785
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Feb 16 17:56:14 2016 @author: agiovann """ from __future__ import division from __future__ import print_function from past.builtins import basestring from builtins import zip from builtins import map from builtins import str from builtins import range ...
simonsfoundation/CaImAn
use_cases/granule_cells/utils_granule.py
Python
gpl-2.0
44,321
[ "NEURON" ]
e38fca532daf0a1d1f8a6da82e4ce2403d50549c9d3316ec1e91e2c8e56dab12
""" Assesment of Generalized Estimating Equations using simulation. This script checks Gaussian models. See the generated file "gee_gaussian_simulation_check.txt" for results. """ from statsmodels.compat.python import lrange import scipy import numpy as np from itertools import product from statsmodels.genmod.familie...
bashtage/statsmodels
statsmodels/genmod/tests/gee_gaussian_simulation_check.py
Python
bsd-3-clause
9,902
[ "Gaussian" ]
de4f0460ae3a0fab5607f7f30099172196207f97703c0913e59d5a32ed0244a6