repo_name
string
path
string
copies
string
size
string
content
string
license
string
inkenbrandt/loggerloader
loggerloader/llgui.py
1
107310
import matplotlib matplotlib.use("TkAgg") from matplotlib.backends.backend_tkagg import NavigationToolbar2Tk, FigureCanvasTkAgg # Implement the default Matplotlib key bindings. import matplotlib.pyplot as plt from matplotlib import style from matplotlib.backend_bases import key_press_handler from matplotlib.backends.b...
mit
chrisbarber/dask
dask/bag/core.py
1
55945
from __future__ import absolute_import, division, print_function from collections import Iterable, Iterator, defaultdict from functools import wraps, partial import itertools import math import os import types import uuid from random import Random from warnings import warn from distutils.version import LooseVersion f...
bsd-3-clause
jwdegee/2017_eLife
defs_pupil.py
1
143772
#!/usr/bin/env python # encoding: utf-8 """ ================================================ Created by Jan Willem de Gee on 2014-06-01. Copyright (c) 2009 jwdegee. All rights reserved. ================================================ """ import os import sys import datetime import pickle import math import numpy...
mit
alexsavio/scikit-learn
sklearn/model_selection/_split.py
1
62253
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # Ragha...
bsd-3-clause
mitschabaude/nanopores
nanopores/models/randomwalk.py
1
37095
# (c) 2017 Gregor Mitscha-Baude "random walk of many particles in cylindrical pore" # TODO: bug: walldist = 2 works like what would be expected for = 1 # have hardcoded *2 in .contains_point # => properly investigate matplotlib.path.contains_point # and make code transparent import numpy as np import matplotlib.pyplot ...
mit
tschaume/pymatgen
pymatgen/analysis/chemenv/coordination_environments/voronoi.py
1
40703
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. import logging import numpy as np import time from pymatgen.core.structure import Structure from pymatgen.core.sites import PeriodicSite from monty.json import MSONable from scipy.spatial import Voronoi from ...
mit
jrkerns/pylinac
pylinac/ct.py
1
69530
"""The CatPhan module automatically analyzes DICOM images of a CatPhan 504, 503, or 600 acquired when doing CBCT or CT quality assurance. It can load a folder or zip file that the images are in and automatically correct for translational and rotational errors. It can analyze the HU regions and image scaling (CTP404), t...
mit
Carreau/OOCytes
tifffile.py
1
130291
#!/usr/bin/env python # -*- coding: utf-8 -*- # tifffile.py # Copyright (c) 2008-2013, Christoph Gohlke # Copyright (c) 2008-2013, The Regents of the University of California # Produced at the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or wit...
bsd-3-clause
rajul/mne-python
mne/io/base.py
1
89565
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # Marijn van Vliet <w.m.vanvli...
bsd-3-clause
NixaSoftware/CVis
venv/lib/python2.7/site-packages/pandas/tests/series/test_indexing.py
1
91088
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest from datetime import datetime, timedelta from numpy import nan import numpy as np import pandas as pd import pandas._libs.index as _index from pandas.core.dtypes.common import is_integer, is_scalar from pandas import (Index, Series, DataFrame, isna, ...
apache-2.0
yaukwankiu/armor
pattern_.py
1
62433
# -*- coding: utf-8 -*- # defining the basic object we will be working with # adapted from : # /media/KINGSTON/ARMOR/ARMOR/python/weatherPattern.py , # /media/KINGSTON/ARMOR/ARMOR/python/clustering.py , # /media/KINGSTON/ARMOR/2013/pythonJan2013/basics.py # Yau Kwan Kiu, Room 801, 23-1-2013 ###################...
cc0-1.0
hyperspy/hyperspy
hyperspy/signal.py
1
252831
# -*- coding: utf-8 -*- # Copyright 2007-2021 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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...
gpl-3.0
aerosara/thesis
notebooks/thesis_functions/major_simulation_components.py
1
35972
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <codecell> import numpy as np import pandas as pd import scipy.integrate as integrate import math from IPython.display import display from IPython.core.display import HTML import thesis_functions.utilities from thesis_functions.initial_conditions import initial_...
mit
astronomeara/xastropy-old
xastropy/spec/voigt.py
1
34034
""" #;+ #; NAME: #; voigt #; Version 1.0 #; #; PURPOSE: #; Module for Voigt profiles #; 01-Nov-2014 by JXP #; ## Heavily adapted from Ryan Cooke (e.g. alis) #;- #;------------------------------------------------------------------------------ """ from __future__ import print_function, absolute_import, divi...
bsd-3-clause
rerpy/rerpy
rerpy/io/erpss.py
1
34069
# This file is part of rERPy # Copyright (C) 2012-2013 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. import os.path import struct import os import string import bisect import sys import numpy as np import pandas from rerpy.data import DataFormat, Dataset from rerpy.util import maybe...
gpl-2.0
rbirger/OxfordHCVNonSpatial
Non-Spatial Model Outline and Code_old.py
1
44084
# -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <markdowncell> # ###Description and preliminary code for Continuous-Time Markov Chain Model # # This model will test the importance of including a spatial component in the system. We will use ODEs to describe the dynamics of each lineage and competition between li...
bsd-2-clause
jdavidrcamacho/Tests_GP
MSc_results/results_kepler2.py
1
38491
import sys #sys.path.append('/home/camacho/Downloads/emcee-master') #sys.path.append('/home/up200908455/Desktop/Github/Gedi') #sys.path.append('/home/up200908455/Desktop/Github/Emcee') #sys.path.append('/home/up200908455/Desktop/Github/George') #sys.path.append('/home/up200908455/Desktop/Github/Corner') #sys.path.appen...
mit
quimaguirre/diana
scripts/old_scripts/select_classifier.py
1
31119
import argparse import copy import cPickle import matplotlib.pyplot as plt import ntpath import numpy as np import pandas as pd import pylab #from pylab import plot, show, savefig, xlim, figure, hold, ylim, legend, boxplot, setp, axes, xlabel, ylabel import scipy import time import sys, os, re from sklearn.decompositi...
mit
dcroc16/skunk_works
google_appengine/google/appengine/api/appinfo.py
1
64494
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
mit
bert9bert/statsmodels
statsmodels/regression/mixed_linear_model.py
2
91501
""" Linear mixed effects models are regression models for dependent data. They can be used to estimate regression relationships involving both means and variances. These models are also known as multilevel linear models, and hierarchical linear models. The MixedLM class fits linear mixed effects models to data, and p...
bsd-3-clause
rs2/pandas
pandas/tests/io/formats/test_to_latex.py
1
38013
import codecs from datetime import datetime from textwrap import dedent import pytest import pandas as pd from pandas import DataFrame, Series import pandas._testing as tm from pandas.io.formats.format import DataFrameFormatter from pandas.io.formats.latex import ( RegularTableBuilder, RowBodyIterator, R...
bsd-3-clause
lasersonlab/phip-stat
phip/cli.py
1
33134
# Copyright 2016 Uri Laserson # # 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,...
apache-2.0
wxgeo/geophar
wxgeometrie/geolib/feuille.py
1
70239
# -*- coding: utf-8 -*- ##--------------------------------------####### # Feuille # ##--------------------------------------####### # WxGeometrie # Dynamic geometry, graph plotter, and more for french mathematic teachers. # Copyright (C) 2005-2013 Nicolas Pourcelot # # ...
gpl-2.0
roshantha9/AbstractManycoreSim
src/analyse_results/AnalyseResults_Exp_ACTest_MultiSeed.py
1
33568
import sys, os, csv, pprint, math from collections import OrderedDict import numpy as np import random import shutil import math import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt plt.style.use('bmh_rosh') #from mpl_toolkits.mplot3d import Axes3D import itertools from itertools import cycle # ...
gpl-3.0
nektor211/imgaug
imgaug/parameters.py
1
101556
from __future__ import print_function, division, absolute_import from . import imgaug as ia from .external.opensimplex import OpenSimplex from abc import ABCMeta, abstractmethod import numpy as np import copy as copy_module import six import six.moves as sm import scipy import numbers from collections import defaultdic...
mit
florian-f/sklearn
sklearn/linear_model/stochastic_gradient.py
1
39372
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD Style. """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import scipy.sparse as sp from abc import ABCMeta, abstractmethod import w...
bsd-3-clause
datapythonista/pandas
pandas/tests/io/pytables/test_append.py
2
33062
import datetime from datetime import timedelta import re from warnings import catch_warnings import numpy as np import pytest from pandas._libs.tslibs import Timestamp import pandas.util._test_decorators as td import pandas as pd from pandas import ( DataFrame, MultiIndex, Series, _testing as tm, ...
bsd-3-clause
CalebBell/thermo
thermo/utils/t_dependent_property.py
1
145532
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2016, 2017, 2018, 2019, 2020 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (t...
mit
blaze/dask
dask/dataframe/tests/test_arithmetics_reduction.py
1
51724
from datetime import datetime import warnings import pytest import numpy as np import pandas as pd from pandas.api.types import is_datetime64_ns_dtype import dask.dataframe as dd from dask.dataframe._compat import PANDAS_GT_100, PANDAS_VERSION from dask.dataframe.utils import ( assert_eq, assert_dask_graph, ...
bsd-3-clause
openego/eDisGo
edisgo/tools/pypsa_io.py
1
82272
""" This module provides tools to convert graph based representation of the grid topology to PyPSA data model. Call :func:`to_pypsa` to retrieve the PyPSA grid container. """ import numpy as np import pandas as pd import itertools from math import pi, sqrt from pypsa import Network as PyPSANetwork from pypsa.io import...
agpl-3.0
brunojulia/ultracoldUB
DS_interfaz.py
1
67472
# -*- coding: utf-8 -*- """ Created on Sun Oct 30 16:00:59 2016 @author: laura18 """ import os import subprocess from PyQt4 import QtGui from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4.uic import loadUiType import math import numpy as np import time import matplotlib.pyplot as plt imp...
gpl-3.0
abalkin/numpy
numpy/lib/tests/test_function_base.py
1
127697
import operator import warnings import sys import decimal from fractions import Fraction import math import pytest import numpy as np from numpy import ma from numpy.testing import ( assert_, assert_equal, assert_array_equal, assert_almost_equal, assert_array_almost_equal, assert_raises, assert_allclose, IS_PY...
bsd-3-clause
yarikoptic/seaborn
seaborn/axisgrid.py
1
30491
from __future__ import division from itertools import product import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from . import utils from .palettes import color_palette class FacetGrid(object): """Subplot grid for applying plotting functions to subsets of data.""" ...
bsd-3-clause
brendanjmeade/stress_transfer
ProcessSrcmod.py
1
54610
from __future__ import division import math import code import datetime import urllib import utm import os.path import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.basemap.pyproj as pyproj from scipy import io as sio from okada_wrapper import dc3d0wrapper, dc3dwrapper from matplotlib import cm # For...
mit
Leguark/GeMpy
build/lib/GeMpy/GeMpy_core.py
1
40359
""" Module with classes and methods to perform implicit regional modelling based on the potential field method. Tested on Ubuntu 14 Created on 10/10 /2016 @author: Miguel de la Varga """ import theano import theano.tensor as T import numpy as np import sys, os import pandas as pn #import matplotlib.pyplot as plt c...
mit
tonnrueter/pymca_devel
PyMca/ScanWindow.py
1
78228
#/*########################################################################## # Copyright (C) 2004-2012 European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF by the Software group. # # This toolkit is free software; you can redistribute it and/or m...
gpl-2.0
temmeand/scikit-rf
skrf/network2.py
1
31542
from six.moves import xrange # for Python3 compatibility from .frequency import Frequency from .mathFunctions import * from .plotting import plot_complex_rectangular,plot_rectangular, smith from .util import get_fid, get_extn, find_nearest_index,slice_domain from scipy import signal import numpy as npy from numpy i...
bsd-3-clause
magenta/magenta
magenta/models/rl_tuner/rl_tuner.py
1
81040
# Copyright 2021 The Magenta Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
apache-2.0
vhaasteren/piccard
testing/readprepset.py
1
32639
#!/usr/bin/env python # encoding: utf-8 # vim: tabstop=4:softtabstop=4:shiftwidth=4:expandtab """ readprepset.py Requirements: - numpy: pip install numpy - matplotlib: macports, apt-get Created by vhaasteren on 2013-08-06. Copyright (c) 2013 Rutger van Haasteren Work that uses this code should reference va...
gpl-3.0
leeping/mdtraj
mdtraj/core/trajectory.py
1
78097
############################################################################## # MDTraj: A Python Library for Loading, Saving, and Manipulating # Molecular Dynamics Trajectories. # Copyright 2012-2014 Stanford University and the Authors # # Authors: Robert McGibbon # Contributors: Kyle A. Beauchamp, TJ Lane, Jo...
lgpl-2.1
cassandra-sh/corrset
jackknifer.py
1
38569
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ jackknifer.py @author Cassandra Henderson cassandra.s.henderson@gmail.com qualifier -> mpi_prep -> mpi_run -> mpi_read -> * jackknifer * Program Description: jackknifer will (first draft) take a set of count matrices and meta info and use it to compute the c...
mit
iosonofabio/singlet
singlet/dataset/plot.py
1
56332
# vim: fdm=indent # author: Fabio Zanini # date: 16/08/17 # content: Dataset functions to plot gene expression and phenotypes # Modules import warnings import numpy as np import pandas as pd import matplotlib as mpl from matplotlib import cm from .plugins import Plugin from ..config import config try: ...
mit
NiekB4/2016_Group07_Transit-BuiltEnvironment
PTStopCalc/pt_stop_calc_dockwidget.py
1
36158
# -*- coding: utf-8 -*- """ /*************************************************************************** PTStopCalc A QGIS plugin for the GEO 1005 Spatial Decision Support System, MSc Geomatics, TU Delft ------------------- begin : 2016-12-20 git sha ...
gpl-2.0
jfsehuanes/thunderfish
thunderfish/voronoi.py
1
44337
""" Analysis of Voronoi diagrams based on scipy.spatial. class Voronoi: Compute and analyse Voronoi diagrams. """ import numpy as np import scipy.spatial as sp class Voronoi: """ Input points ------------ The points from the Voronoi diagram is constructed. ndim: int The dimension o...
gpl-3.0
detrout/debian-statsmodels
statsmodels/duration/hazard_regression.py
1
62202
import numpy as np from statsmodels.base import model import statsmodels.base.model as base from statsmodels.tools.decorators import cache_readonly from scipy.optimize import brent """ Implementation of proportional hazards regression models for duration data that may be censored ("Cox models"). References ----------...
bsd-3-clause
kasperschmidt/GLASSinspectionGUIs
visualinspection.py
1
199703
""" ---------------------------- NAME ---------------------------- visualinspection.py ---------------------------- PURPOSE/DESCRIPTION ---------------------------- GUIs for visual inspection of data products from the Grism Lens-Amplified Survey from Space (GLASS) data releases and ancillary data. visualinsp...
mit
rfleissner/ChEsher
test/meshing_channel/calcMesh_new.py
1
34253
#!/usr/bin/python -d # # Copyright (C) 2016 Reinhard Fleissner # # 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. # # Th...
gpl-2.0
humdings/zipline
zipline/algorithm.py
1
92371
# # Copyright 2015 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
apache-2.0
CxAalto/gtfspy
gtfspy/routing/test/test_multi_objective_pseudo_connection_scan_profiler.py
1
39897
from unittest import TestCase import networkx from six import StringIO from gtfspy.routing.connection import Connection from gtfspy.routing.label import min_arrival_time_target, LabelTimeWithBoardingsCount, LabelTime from gtfspy.routing.multi_objective_pseudo_connection_scan_profiler import MultiObjectivePseudoCSAPro...
mit
JosePedroMatos/Tethys
gpu/manager.py
1
50830
# coding: utf-8 ''' Created on 24/02/2016 @author: Jose Pedro Matos ''' import datetime as dt import numpy as np import pickle import re import json import dateutil.parser import matplotlib.pyplot as plt from celery import current_task from dateutil.relativedelta import relativedelta from gpu.ann im...
mit
rema-git/panoptikum
panoptikum.py
1
40121
# -*- coding: utf-8 -*- """ Created on Tue Jul 23 16:12:46 2013 @author: Reinhardt A.W. Maier <rema@zaehlwerk.net> """ import gtk import apogee import loadColormap import imageAnalyse import math import gio import os import pandas as pd import pickle import matplotlib.pyplot as plt import matplotlib.gr...
gpl-3.0
jamestwebber/scipy
scipy/optimize/nonlin.py
1
48291
r""" Nonlinear solvers ----------------- .. currentmodule:: scipy.optimize This is a collection of general-purpose nonlinear multidimensional solvers. These solvers find *x* for which *F(x) = 0*. Both *x* and *F* can be multidimensional. Routines ~~~~~~~~ Large-scale nonlinear solvers: .. autosummary:: newton...
bsd-3-clause
DynaLite/DynaLite_1.0
Sources/SpeechProcessing/pyAudioAnalysis/dynaliteSpeakerDiarization.py
1
40895
############################################################################### # # This File is adapted from pyAudioAnalysis # https://github.com/tyiannak/pyAudioAnalysis # # Modifications were made to the function: speakerDiarization # # ###########################################################...
mit
inkenbrandt/Snake_Valley
Snake_Valley_Data_Import.py
1
32911
#-*- coding: utf-8 -*- import pandas as pd import numpy as np import os import glob import re import xmltodict from datetime import datetime def jumpfix(df, meas, threashold=0.005): ''' removes jumps or jolts in time series data (where offset is lasting) df = dataframe to manipulate meas = name of fie...
gpl-2.0
stefco/geco_data
geco_slow_channel_plot.py
1
80233
#!/usr/bin/env python # (c) Stefan Countryman 2017 ############################################################################### # # IMPORT ARGUMENT PARSER # ############################################################################### import argparse import textwrap import collections # ALL OTHER IMPORTS LISTED ...
mit
jjhelmus/artview
docs/sphinxext/gen_rst.py
1
38288
""" Example generation for Py-ART Generate the rst files for the examples by iterating over the Python example files. Files that generate images should state with 'plot' """ # This files was adapted from the scikit-learn file of the same name: # https://github.com/scikit-learn/scikit-learn/blob/master/doc/sphinxe...
bsd-3-clause
xray/xray
xarray/core/groupby.py
1
35230
import datetime import functools import warnings import numpy as np import pandas as pd from . import dtypes, duck_array_ops, nputils, ops from .arithmetic import SupportsArithmetic from .common import ImplementsArrayReduce, ImplementsDatasetReduce from .concat import concat from .formatting import format_array_flat ...
apache-2.0
mbeyeler/pulse2percept
pulse2percept/models/base.py
1
36720
"""`BaseModel`, `Model`, `NotBuiltError`, `Percept`, `SpatialModel`, `TemporalModel`""" import sys from abc import ABCMeta, abstractmethod from copy import deepcopy import numpy as np from ..implants import ProsthesisSystem from ..stimuli import Stimulus from ..percepts import Percept from ..utils import PrettyPrin...
bsd-3-clause
Amarchuk/2FInstability
core/velocityEllipsoidReconstr.py
1
43327
__author__ = 'amarch' # -*- coding: utf-8 -*- from sys import * import os from numpy import * import matplotlib.pyplot as plt from scipy.optimize import leastsq import scipy import math import heapq from scipy.interpolate import spline def run_once(f): def wrapper(*args, **kwargs): if not globals().has_ke...
gpl-3.0
J535D165/recordlinkage
recordlinkage/base.py
1
35857
# -*- coding: utf-8 -*- """Base module for record linkage.""" from __future__ import division import time import warnings from abc import ABCMeta, abstractmethod from joblib import Parallel, delayed, cpu_count import numpy as np import pandas from recordlinkage import rl_logging as logging import recordlinkage.c...
bsd-3-clause
TomAugspurger/pandas
pandas/tests/plotting/test_datetimelike.py
1
55387
""" Test cases for time series specific (freq conversion, etc) """ from datetime import date, datetime, time, timedelta import pickle import sys import numpy as np import pytest import pandas.util._test_decorators as td from pandas import DataFrame, Index, NaT, Series, isna import pandas._testing as tm from pandas.c...
bsd-3-clause
agiovann/Constrained_NMF
use_cases/eLife_scripts/preprocessing_files/preprocess_zebrafish_original.py
2
34166
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Complete pipeline for online processing using OnACID. @author: Andrea Giovannucci @agiovann and Eftychios Pnevmatikakis @epnev Special thanks to Andreas Tolias and his lab at Baylor College of Medicine for sharing their data used in this demo. KERAS_BACKEND=tensorflow...
gpl-2.0
jseabold/statsmodels
statsmodels/tsa/arima/specification.py
4
46348
""" SARIMAX specification class. Author: Chad Fulton License: BSD-3 """ import numpy as np import pandas as pd from statsmodels.tools.data import _is_using_pandas from statsmodels.tsa.base.tsa_model import TimeSeriesModel from statsmodels.tsa.statespace.tools import ( is_invertible, constrain_stationary_univariat...
bsd-3-clause
gem/oq-engine
openquake/calculators/tests/classical_test.py
1
42342
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2015-2021 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
agpl-3.0
schae234/Camoco
camoco/Expr.py
2
32980
#! /usr/bin/python3 from .Camoco import Camoco from .RefGen import RefGen from .Tools import memoize from .Locus import Locus from .Exceptions import CamocoGeneNameError,CamocoAccessionNameError,CamocoGeneAbsentError from scipy.spatial.distance import pdist, squareform, euclidean from scipy.stats import hypergeom, pea...
mit
NERC-CEH/arcapi
arcapi.py
1
102141
""" #------------------------------------------------------------------------------- # Name: arcapi.arcapi # Purpose: Core module for convenient API for arcpy # # Authors: Filip Kral, Caleb Mackey # # Created: 01/02/2014 # Licence: LGPL v3 #-----------------------------------------------...
lgpl-3.0
brynpickering/calliope
calliope/test/test_core_preprocess.py
1
47596
import pytest # pylint: disable=unused-import import os import pandas as pd import numpy as np import calliope import calliope.exceptions as exceptions from calliope.core.attrdict import AttrDict from calliope.core.preprocess import time from calliope.test.common.util import build_test_model as build_model from cal...
apache-2.0
jgliss/pyplis
pyplis/dataset.py
1
46074
# -*- coding: utf-8 -*- # # Pyplis is a Python library for the analysis of UV SO2 camera data # Copyright (C) 2017 Jonas Gliss (jonasgliss@gmail.com) # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU General Public License a # published by the Free Software Foundat...
gpl-3.0
Remper/sociallink
align-train/evaluation/evaluation.py
1
37242
#!/usr/bin/env python3 import sys from os import path import logging import argparse import warnings import os import time import pandas as pd import numpy as np import numexpr as ne import matplotlib.pyplot as plt from sklearn.calibration import calibration_curve from sklearn.metrics import brier_score_loss _modul...
apache-2.0
zdvresearch/fast15-paper-extras
ecfs_analyze_logs/src/analyze_NEW_CATEGORIES_SIZE_JSON_DATA.py
1
32060
#!/usr/bin/env python __author__ = 'Federico G. Padua' import matplotlib matplotlib.use('Agg') import json import os import numpy as np import matplotlib.pyplot as plt import argparse #plt.rc('text', usetex=True) #plt.rc('font', **{'family': 'serif', 'serif': ['Computer Modern']}) #plt.rc('text', usetex=True) def ...
mit
manpan-1/steel_toolbox
PySS/polygonal.py
1
37896
# -*- coding: utf-8 -*- """ A framework for the study of polygonal profiles. """ import os import numpy as np import PySS.steel_design as sd import PySS.lab_tests as lt import PySS.analytic_geometry as ag import PySS.scan_3D as s3d import pickle from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Ax...
mit
silky/airflow
airflow/www/app.py
1
69486
from __future__ import print_function from __future__ import division from builtins import str from past.utils import old_div import copy from datetime import datetime, timedelta import dateutil.parser from functools import wraps import inspect import json import logging import os import socket import sys import time ...
apache-2.0
xuewei4d/scikit-learn
sklearn/tests/test_multiclass.py
4
32525
import numpy as np import scipy.sparse as sp import pytest from re import escape from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_almost_equal from sklearn.utils._testing import assert_raises from sklearn.utils._testing import assert_warns from sklearn.utils._testing imp...
bsd-3-clause
argenta-web/argenta-web.github.io
MEFaplicado-html/estado_plano/codigos/Derivando-FuncoesFormaEstadoPlano4nos.py
2
32599
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 10 14:46:37 2019 Funções de forma ok! VERIFICAR POIS FOI ALTERADA A ORDEM DOS NÓS NAS FUNÇÕES DE INTERPOLAÇÃO!!! @author: markinho """ import sympy as sp import numpy as np import matplotlib.pyplot as plt from matplotlib import cm from mpl_toolk...
mit
chaluemwut/fbserver
venv/lib/python2.7/site-packages/sklearn/cross_validation.py
1
56321
""" The :mod:`sklearn.cross_validation` module includes utilities for cross- validation and performance evaluation. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause from...
apache-2.0
rohit21122012/DCASE2013
runs/2013/dnngd/dnn6.py
1
32571
#!/usr/bin/env python # -*- coding: utf-8 -*- # # DCASE 2016::Acoustic Scene Classification / Baseline System #import sys #sys.path.insert(0, '../') from src.ui import * from src.general import * from src.files import * from src.features import * from src.dataset import * from src.evaluation import * import numpy im...
mit
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
python-packages/xgboost-0.40/wrapper/xgboost.py
1
33036
# coding: utf-8 """ xgboost: eXtreme Gradient Boosting library Version: 0.40 Authors: Tianqi Chen, Bing Xu Early stopping by Zygmunt Zając """ from __future__ import absolute_import import os import sys import re import ctypes import platform import collections import numpy as np import scipy.sparse try: from ...
bsd-3-clause
nblago/utils
src/photometry/photometry.py
1
50203
# coding: utf-8 # # Photometry # @author: Nadia Blagorodnova # From astropy and [Photutils](http://photutils.readthedocs.io/en/stable/). from astropy import units as u from astropy.table import Table from astropy.table import Column from astropy.coordinates import SkyCoord from astropy.coordinates import EarthLoca...
mit
gfyoung/pandas
pandas/tests/series/test_arithmetic.py
1
30311
from datetime import timedelta import operator import numpy as np import pytest import pytz from pandas._libs.tslibs import IncompatibleFrequency from pandas.core.dtypes.common import is_datetime64_dtype, is_datetime64tz_dtype import pandas as pd from pandas import ( Categorical, Index, IntervalIndex, ...
bsd-3-clause
wjlei1990/pyflex
src/pyflex/window_selector.py
1
39135
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Class managing the actual window selection process. :copyright: Lion Krischer (krischer@geophysik.uni-muenchen.de), 2014 :license: GNU General Public License, Version 3 (http://www.gnu.org/copyleft/gpl.html) """ from __future__ import (absolute_import, divi...
gpl-3.0
agogear/corpkit
corpkit/interface.py
1
62813
#!usr/bin/env python #tkNotebook #Created By: Patrick T. Cossette <cold_soul79078@yahoo.com> #tkNotebook allows users to make notebook widgets in Tk #This software may be modified and redistributed, as long as any and all changes made #From here on are stated, and ("Created By: Patrick T. Cossette <cold_soul79078@yah...
mit
d-chambers/seisobs
seisobs/core.py
1
35220
# -*- coding: utf-8 -*- """ Created on Sat Jan 30 13:13:36 2016 @author: derrick functions to read a single S-file into a catalog object """ import obspy import os import seisobs import pandas as pd import warnings from builtins import str as text def seis2cat(sfile, authority='local', inventory_object=None, ...
mit
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/metrics/pairwise.py
1
45525
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Robert Layton <robertlayton@gmail.com> # Andreas Mueller <amueller@ais.uni-bonn.de> # Philippe Gervais <philippe.gervais@inria.fr> # Lars Buitinck ...
mit
snowflakedb/snowflake-connector-python
test/integ/test_cursor.py
1
42334
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import decimal import json import logging import os import time from datetime import datetime import mock import pytest import pytz import snowflake.connector from snowflake.connector import ( ...
apache-2.0
timcera/tsgettoolbox
tsgettoolbox/functions/modis.py
1
30089
# -*- coding: utf-8 -*- import datetime import mando try: from mando.rst_text_formatter import RSTHelpFormatter as HelpFormatter except ImportError: from argparse import RawTextHelpFormatter as HelpFormatter import numpy as np import pandas as pd from requests import Session from tstoolbox import tsutils fro...
bsd-3-clause
mjudsp/Tsallis
sklearn/tree/tree.py
1
40469
""" 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...
bsd-3-clause
tu-rbo/differentiable-particle-filters
methods/dpf.py
1
39079
import os import numpy as np import sonnet as snt import tensorflow as tf import matplotlib.pyplot as plt from utils.data_utils import wrap_angle, compute_staticstics, split_data, make_batch_iterator, make_repeating_batch_iterator from utils.method_utils import atan2, compute_sq_distance from utils.plotting_utils impo...
mit
lisa-lab/pings
models/work_in_progress/src/graph.py
1
60055
# coding=utf-8 import bisect from cgi import parse_qs from collections import defaultdict import cPickle import json import os import sys import time from wsgiref.simple_server import make_server import numpy from scipy.special import erf try: #The following import are needed only for training import matplotl...
bsd-3-clause
JaviFdezT/brush_up
BrushUp/mainPage.py
1
70204
import os import shutil import random import math import time import sqlite3 import webbrowser from tkinter import * from tkinter import filedialog,colorchooser,messagebox from tkinter.ttk import * import matplotlib.pyplot as plt import PIL import pronouncing from PIL import ImageFont from PIL import I...
mit
cosmonaut/chess_analog_daq
qt_analog_daq.py
1
48933
import sys import os import select import collections import math import struct import re import datetime import numpy as np import comedi as c from PyQt4 import QtGui, QtCore, Qt from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas COMEDI_PROC_F = "...
mit
PYPIT/COS_REDUX
cosredux/trace.py
1
32302
""" Trace the source in Data file """ from __future__ import (print_function, absolute_import, division, unicode_literals) import numpy as np import pdb import glob from astropy.table import Table from astropy.io import fits from matplotlib import pyplot as plt from scipy.optimize import curve_fit from xastropy.xutil...
bsd-2-clause
dgwakeman/mne-python
mne/preprocessing/ica.py
1
88611
# Authors: Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Juergen Dammers <j.dammers@fz-juelich.de> # # License: BSD (3-clause) from copy import deepcopy from inspect import getargspec, isfunction from collections import namedtuple impor...
bsd-3-clause
RRCKI/pilot
pUtil.py
1
168482
import sys, os, signal, time, shutil, cgi import commands, re import urllib from xml.dom import minidom from xml.dom.minidom import Document from xml.dom.minidom import parse, parseString # Initialize the configuration singleton import environment env = environment.set_environment() #env = Configuration() from proce...
apache-2.0
GuessWhoSamFoo/pandas
pandas/tests/frame/test_missing.py
1
31904
# -*- coding: utf-8 -*- from __future__ import print_function import datetime from distutils.version import LooseVersion import dateutil import numpy as np import pytest from pandas.compat import lrange import pandas.util._test_decorators as td import pandas as pd from pandas import Categorical, DataFrame, Series,...
bsd-3-clause
oaelhara/numbbo
code-postprocessing/bbob_pproc/pplogloss.py
1
33152
#! /usr/bin/env python # -*- coding: utf-8 -*- """Module for computing ERT loss ratio This module outputs figures and tables showing ERT loss ratios. Comparisons are based on computing the ratio between an ERT value and a reference (best) ERT value (or the inverse) """ from __future__ import absolute_import import...
bsd-3-clause
alee156/clviz
clarityviz/analysis.py
1
44461
#!/usr/bin/env python #-*- coding:utf-8 -*- import matplotlib from matplotlib import pyplot as plt import numpy as np from numpy import linalg as LA import cv2 from skimage import exposure import math import os import plotly from plotly.graph_objs import * from plotly.offline import download_plotlyjs, init_notebook_m...
apache-2.0
cbertinato/pandas
pandas/plotting/_matplotlib/core.py
1
48588
import re from typing import Optional # noqa import warnings import numpy as np from pandas._config import get_option from pandas.errors import AbstractMethodError from pandas.util._decorators import cache_readonly from pandas.core.dtypes.common import ( is_hashable, is_integer, is_iterator, is_list_like, is_n...
bsd-3-clause
openego/eTraGo
etrago/tools/io.py
1
32726
# -*- coding: utf-8 -*- # Copyright 2016-2018 Flensburg University of Applied Sciences, # Europa-Universität Flensburg, # Centre for Sustainable Energy Systems, # DLR-Institute for Networked Energy Systems # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero G...
agpl-3.0
alexblaessle/PyFRAP
pyfrp/modules/pyfrp_img_module.py
1
54981
#===================================================================================================================================== #Copyright #===================================================================================================================================== #Copyright (C) 2014 Alexander Blaessle...
gpl-3.0
bhermanmit/openmc
openmc/tallies.py
1
136218
from __future__ import division from collections import Iterable, MutableSequence import copy import re from functools import partial import itertools from numbers import Integral, Real import warnings from xml.etree import ElementTree as ET from six import string_types import numpy as np import h5py import openmc i...
mit