repo_name
string
path
string
copies
string
size
string
content
string
license
string
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/tests/reshape/test_pivot.py
1
87636
from collections import OrderedDict from datetime import date, datetime, timedelta from itertools import product import numpy as np import pytest import pandas as pd from pandas import ( Categorical, DataFrame, Grouper, Index, MultiIndex, Series, concat, date_range, ) from pandas.api.t...
apache-2.0
sanja7s/SR_Twitter
src_taxonomy/pie_plot_taxonomies_BigClam.py
1
37407
#!/usr/bin/env python # -*- coding: UTF-8 -*- ''' plot the pie plots of the top concepts, entities, taxonomies etc. per community and for the whole dataset also output the stats for the top keywords, concepts, entities and for the sentiment per community (and the whole dataset) ''' from __future__ import unicod...
mit
Ademan/NumPy-GSoC
numpy/lib/function_base.py
1
106250
__docformat__ = "restructuredtext en" __all__ = ['select', 'piecewise', 'trim_zeros', 'copy', 'iterable', 'percentile', 'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp', 'extract', 'place', 'nansum', 'nanmax', 'nanargmax', 'nanargmin', 'nanmin', 'vectorize', 'asa...
bsd-3-clause
fandaL/beso
beso_main.py
1
37773
# optimization program using CalculiX solver # BESO (Bi-directional Evolutionary Structural Optimization Method) import numpy as np import matplotlib.pyplot as plt import multiprocessing import os import subprocess import sys import time import beso_lib import beso_filters import beso_plots import beso_separate # impo...
lgpl-3.0
StevenM1/flashtask
FlashSession.py
1
89193
#!/usr/bin/env python # encoding: utf-8 from __future__ import division from exp_tools import EyelinkSession from psychopy import monitors, data, info, logging from standard_parameters import * from warnings import warn import pylab import pandas as pd import os import sys from glob import glob import cPickle as pickle...
mit
jepegit/cellpy
dev_utils/ica_notebooks/fitting/icafit_old.py
1
41478
import os import logging import warnings import numpy as np import matplotlib.pyplot as plt import pandas as pd from cellpy import cellreader, log from cellpy.utils import ica from lmfit.models import ( GaussianModel, PseudoVoigtModel, ExponentialGaussianModel, SkewedGaussianModel, LorentzianModel...
mit
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/tests/groupby/test_function.py
1
45365
import builtins from io import StringIO from itertools import product from string import ascii_lowercase import numpy as np import pytest from pandas.errors import UnsupportedFunctionCall import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series, Timestamp, date_range, isna import pandas.core.nanop...
apache-2.0
amolkahat/pandas
pandas/tests/internals/test_internals.py
1
48791
# -*- coding: utf-8 -*- # pylint: disable=W0102 from datetime import datetime, date import operator import sys import pytest import numpy as np import re from distutils.version import LooseVersion import itertools from pandas import (Index, MultiIndex, DataFrame, DatetimeIndex, Series, Categorical...
bsd-3-clause
gracecox/MagPy
magpysv/plots.py
1
43109
# -*- coding: utf-8 -*- # Copyright (C) 2016 Grace Cox (University of Liverpool) # # Released under the MIT license, a copy of which is located at the root of # this project. """Module containing plotting functions. Part of the MagPySV package for geomagnetic data analysis. This module provides various plott...
gpl-3.0
MizioAnd/HousePrices
house_prices.py
1
58387
# Predict the SalePrice __author__ = 'mizio' # import csv as csv import numpy as np import pandas as pd # import matplotlib # matplotlib.use('TkAgg') import pylab as plt from fancyimpute import MICE # import sys # sys.path.append('/custom/path/to/modules') import random # from sklearn.model_selection import cross_val_s...
gpl-3.0
dmitryduev/pypride
src/pypride/vintlib.py
1
798425
# -*- coding: utf-8 -*- """ A library containing a handful of useful functions. Created on Wed Oct 2 16:23:02 2013 @author: Dr. Dmitry A. Duev """ from math import * import numpy as np import scipy as sp #from scipy import interpolate from scipy.interpolate import BarycentricInterpolator as bi # import matplotlib.p...
gpl-2.0
lhillber/qops
qca.py
1
40010
N0 = 1 N1 = 278 N2 = 5736 N3 = 26752 N4 = 32786 import states as ss import matrix as mx import measures as ms import h5py import numpy as np from mpi4py import MPI import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.colors import LogNorm from matplotlib.backends.backend_pdf import PdfPages import o...
mit
MaxStrange/ArtieInfant
Artie/experiment/thesis/phase1.py
1
44802
""" This is the phase 1 file. This file's API consists simply of the function run(), which will run phase 1 of the thesis experiment. """ from experiment.analysis import ae # pylint: disable=locally-disabled, import-error from experiment.analysis import production # pylint: disable=lo...
mit
jorisvandenbossche/numpy
numpy/core/numeric.py
1
71955
from __future__ import division, absolute_import, print_function import functools import itertools import operator import sys import warnings import numbers import contextlib import numpy as np from numpy.compat import pickle, basestring from . import multiarray from .multiarray import ( _fastCopyAndTranspose as ...
bsd-3-clause
scizen9/kpy
SEDMrph/rcred.py
1
46670
# -*- coding: utf-8 -*- """ Created on Sun Jun 14 13:11:52 2015 @author: nadiablago """ import matplotlib matplotlib.use('Agg') import fitsutils import os, glob, shutil, sys import numpy as np try: from pyraf import iraf from pyraf import IrafError except: pass from astropy.io import fits from astropy.w...
gpl-2.0
GuessWhoSamFoo/pandas
pandas/tests/indexes/test_numeric.py
1
40845
# -*- coding: utf-8 -*- from datetime import datetime import numpy as np import pytest from pandas._libs.tslibs import Timestamp from pandas.compat import range import pandas as pd from pandas import Float64Index, Index, Int64Index, Series, UInt64Index from pandas.tests.indexes.common import Base import pandas.util...
bsd-3-clause
yl565/statsmodels
statsmodels/tsa/statespace/varmax.py
1
39389
""" Vector Autoregressive Moving Average with eXogenous regressors model Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function from warnings import warn from statsmodels.compat.collections import OrderedDict import pandas as pd import numpy as np from .kalma...
bsd-3-clause
levic/isort
test_isort.py
1
81012
# coding: utf-8 """test_isort.py. Tests all major functionality of the isort library Should be ran using py.test by simply running py.test in the isort project directory Copyright (C) 2013 Timothy Edmund Crosley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associ...
mit
nbokulich/short-read-tax-assignment
tax_credit/tests/test_eval_framework.py
1
79603
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2014--, tax-credit development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # ---------------------...
bsd-3-clause
bsipocz/astropy
astropy/convolution/tests/test_convolve.py
1
40124
# Licensed under a 3-clause BSD style license - see LICENSE.rst import pytest import numpy as np import numpy.ma as ma from astropy.convolution.convolve import convolve, convolve_fft from astropy.convolution.kernels import Gaussian2DKernel from astropy.utils.exceptions import AstropyUserWarning from numpy.testing im...
bsd-3-clause
amueller/word_cloud
wordcloud/wordcloud.py
1
38213
# coding=utf-8 # Author: Andreas Christian Mueller <t3kcit@gmail.com> # # (c) 2012 # Modified by: Paul Nechifor <paul@nechifor.net> # # License: MIT from __future__ import division import warnings from random import Random import io import os import re import base64 import sys import colorsys import matplotlib import...
mit
gracecox/MagPy
magpysv/io.py
1
32623
# -*- coding: utf-8 -*- # Copyright (C) 2016 Grace Cox (University of Liverpool) # # Released under the MIT license, a copy of which is located at the root of # this project. """Module containing functions to parse World Data Centre (WDC) files. Part of the MagPySV package for geomagnetic data analysis. This...
gpl-3.0
gregcaporaso/scikit-bio
skbio/metadata/_testing.py
2
53266
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
bsd-3-clause
jhamman/xarray
xarray/core/dataarray.py
1
109033
import functools import warnings from numbers import Number from typing import ( TYPE_CHECKING, Any, Callable, Dict, Hashable, Iterable, List, Mapping, Optional, Sequence, Tuple, TypeVar, Union, cast, overload, ) import numpy as np import pandas as pd from ....
apache-2.0
grimfang/panda3d
makepanda/makepanda.py
1
337106
#!/usr/bin/env python ######################################################################## # # To build panda using this script, type 'makepanda.py' on unix # or 'makepanda.bat' on windows, and examine the help-text. # Then run the script again with the appropriate options to compile # panda3d. # ##################...
bsd-3-clause
YuepengGuo/zipline
zipline/algorithm.py
1
50333
# # Copyright 2014 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
Garrett-R/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
1
37352
""" Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting). """ import numpy as np import warnings from sklearn import datasets from sklearn.base import clone from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import GradientBoostingRegressor from sklearn.ensemble.gra...
bsd-3-clause
ptkool/spark
python/pyspark/sql/dataframe.py
2
89076
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
apache-2.0
SiccarPoint/numpy
numpy/linalg/linalg.py
1
75848
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
bsd-3-clause
YuepengGuo/bt
bt/core.py
1
38989
""" Contains the core building blocks of the framework. """ from __future__ import division import math from copy import deepcopy import pandas as pd import numpy as np import cython as cy class Node(object): """ The Node is the main building block in bt's tree structure design. Both StrategyBase and Se...
mit
Kirubaharan/hydrology
cumulative_impact_of_check_dam/cum_impact_no_checkdam.py
1
61733
#!/usr/bin/env python __author__ = 'kiruba' """ This script is an attempt to model the cumulative impacts of check dam""" import sys # sys.path.append('../checkdam/') import numpy as np import matplotlib.pyplot as plt import pandas as pd import itertools import scipy as sp import math from datetime import datetime impo...
gpl-3.0
jniediek/mne-python
mne/viz/raw.py
3
41211
"""Functions to plot raw M/EEG data """ from __future__ import print_function # Authors: Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.fi> # # License: Simplified BSD import copy from functools import partial import numpy as np from ..externals.six import string_types fro...
bsd-3-clause
gem/oq-engine
openquake/calculators/views.py
1
37759
# -*- 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
kamilien1/urbs
urbs.py
1
59808
"""urbs: A linear optimisation model for distributed energy systems urbs minimises total cost for providing energy in form of desired commodities (usually electricity) to satisfy a given demand in form of timeseries. The model contains commodities (electricity, fossil fuels, renewable energy sources, greenhouse gases)...
gpl-3.0
ECP-CANDLE/Benchmarks
Pilot1/Combo/combo_baseline_keras2.py
1
34562
#! /usr/bin/env python from __future__ import division, print_function import argparse import collections import logging import os import random import threading import numpy as np import pandas as pd from itertools import cycle, islice import keras from keras import backend as K from keras import optimizers from ...
mit
mikegraham/dask
dask/dataframe/tests/test_arithmetics_reduction.py
1
33958
from datetime import datetime import numpy as np import pandas as pd from dask.utils import raises import dask.dataframe as dd from dask.dataframe.utils import eq, assert_dask_graph def test_arithmetics(): dsk = {('x', 0): pd.DataFrame({'a': [1, 2, 3], 'b': [4, 5, 6]}, index=[0...
bsd-3-clause
NeuralEnsemble/NeuroTools
src/signals/analogs.py
1
43476
""" NeuroTools.signals.analogs ================== A collection of functions to create, manipulate and play with analog signals. Classes ------- AnalogSignal - object representing an analog signal, with its data. Can be used to do threshold detection, event triggered averages, ... AnalogSignalL...
gpl-2.0
CalebBell/thermo
thermo/property_package.py
1
307956
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, 2018, 2019 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 (the "Softwa...
mit
gaow/SEQPower
src/vat/tester.py
1
124393
#!/usr/bin/env python # # $File: tester.py $ # $LastChangedDate: 2012-06-05 12:31:19 -0500 (Tue, 05 Jun 2012) $ # $Rev: 1179 $ # # This file is part of variant_tools, a software application to annotate, # summarize, and filter variants for next-gen sequencing ananlysis. # Please visit http://varianttools.sourceforge.ne...
gpl-2.0
AlanKuurstra/vidi3d
vidi3d/Compare/_MainWindowCompare.py
1
35448
""" Sets up the main window for the compare viewer. Creates MplImage, MplPlot, and a ControlWidget objects and connects their Qt Signals to local functions. """ import matplotlib.animation as animation import matplotlib.pyplot as plt import numpy as np from PyQt5 import QtCore, QtWidgets from matplotlib import path f...
gpl-3.0
e2crawfo/dps
dps/datasets/base.py
1
64780
import numpy as np import inspect import os from tensorflow.python.util import deprecation deprecation._PRINT_DEPRECATION_WARNINGS = False import tensorflow as tf import matplotlib as mpl import matplotlib.pyplot as plt import shutil import time import abc from itertools import zip_longest import dill import itertools ...
apache-2.0
johnson1228/pymatgen
pymatgen/analysis/phase_diagram.py
1
77867
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import re import csv import collections import itertools from io import open import math from six.moves import zip import warnings from monty.json import MSON...
mit
synthicity/activitysim
scripts/verify_results.py
1
30088
############################################################# # ActivitySim verification against TM1 # Ben Stabler, ben.stabler@rsginc.com, 02/22/19 # C:\projects\activitysim\verification>python compare_results.py ############################################################# import pandas as pd import openmatrix as o...
agpl-3.0
HBNLdev/DataStore
db/eromat.py
1
42344
''' representing and working with .mat's containing 3D ERO data ''' import os import h5py import numpy as np import pandas as pd from scipy import interpolate from tqdm import tqdm import db.database as D from .cnth1_to_stmat import build_paramstr from .compilation import join_collection from .stmat_to_...
gpl-3.0
andyh616/mne-python
mne/viz/topomap.py
1
64546
"""Functions to plot M/EEG data e.g. topographies """ from __future__ import print_function # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com...
bsd-3-clause
jseabold/statsmodels
statsmodels/tsa/statespace/tests/test_simulate.py
5
71428
""" Tests for simulation of time series Author: Chad Fulton License: Simplified-BSD """ import numpy as np import pandas as pd from numpy.testing import assert_, assert_allclose, assert_equal import pytest from scipy.signal import lfilter from .test_impulse_responses import TVSS from statsmodels.tools.sm_exceptions ...
bsd-3-clause
lkilcommons/atmodexplorer
atmodexplorer/atmodexplorer.py
1
41802
import sys import os import random from matplotlib.backends import backend_qt4 import matplotlib.widgets as widgets import matplotlib.axes from PyQt4 import QtGui, QtCore, Qt from PyQt4.QtCore import SIGNAL,SLOT,pyqtSlot,pyqtSignal #Main imports import numpy as np #import pandas as pd import sys, pdb, textwrap import...
gpl-3.0
gregreen/bayestar
scripts/compareSEGUE.py
1
34680
#!/usr/bin/env python # -*- coding: utf-8 -*- # # compareSEGUE.py # # Copyright 2013 Greg Green <greg@greg-UX31A> # # 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 t...
gpl-2.0
openego/ego.powerflow
egopowerflow/tools/io.py
1
32851
""" io.py Input/output operations between powerflow schema in the oedb and PyPSA. Additionally oedb wrapper classes to instantiate PyPSA network objects. Attributes ---------- packagename: str Package containing orm class definitions temp_ormclass: str Orm class name of table with temporal resolution carr_o...
agpl-3.0
TomAugspurger/pandas
pandas/tests/io/parser/test_parse_dates.py
1
46157
""" Tests date parsing functionality for all of the parsers defined in parsers.py """ from datetime import date, datetime from io import StringIO from dateutil.parser import parse as du_parse from hypothesis import given, settings, strategies as st import numpy as np import pytest import pytz from pandas._libs.tslib...
bsd-3-clause
bokeh/bokeh
bokeh/models/sources.py
1
31097
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2021, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
bsd-3-clause
umich-brcf-bioinf/GeneRollup
test/rollup_test.py
1
58914
#pylint: disable=line-too-long, too-many-public-methods, invalid-name #pylint: disable=maybe-no-member, too-few-public-methods, no-member from __future__ import absolute_import from argparse import Namespace from collections import OrderedDict import filecmp from io import StringIO import os import unittest import nu...
apache-2.0
cdd1969/pygwa
lib/functions/detectpeaks.py
1
57189
#!/usr/bin python # -*- coding: utf-8 -*- import numpy as np import pandas as pd import matplotlib.pyplot as plt from datetime import timedelta from datetime import datetime as dtime from scipy import signal from general import isNumpyDatetime import logging from python_log_indenter import IndentedLoggerAdapter log...
gpl-2.0
dsm054/pandas
pandas/tests/series/test_constructors.py
1
44925
# coding=utf-8 # pylint: disable-msg=E1101,W0612 from collections import OrderedDict from datetime import datetime, timedelta import numpy as np from numpy import nan import numpy.ma as ma import pytest from pandas._libs import lib from pandas._libs.tslib import iNaT from pandas.compat import PY36, long, lrange, ran...
bsd-3-clause
thombashi/pytablewriter
test/writer/text/test_markdown_writer.py
1
45399
""" .. codeauthor:: Tsuyoshi Hombashi <tsuyoshi.hombashi@gmail.com> """ import collections import io from textwrap import dedent from typing import Optional import pytest from tabledata import TableData from tcolorpy import tcolor import pytablewriter as ptw from pytablewriter.style import Align, Cell, FontSize, Sty...
mit
srouchier/hamopy
hamopy/classes.py
1
45036
# Copyright (C) 2014 Simon Rouchier # # This file is part of Hamopy. # # Hamopy 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. # # H...
lgpl-3.0
charlyoleg/Cnc25D
cnc25d/display_backend.py
1
38563
# display_backend.py # -*- coding: utf-8 -*- # creates and displays the two Tkinter Canvas windows used by outline_backends.py # created by charlyoleg on 2013/07/11 # # (C) Copyright 2013 charlyoleg # # This file is part of the Cnc25D Python package. # # Cnc25D is free software: you can redistribute it and/or modify ...
gpl-3.0
zack3241/incubator-airflow
airflow/www/views.py
1
99411
# -*- coding: utf-8 -*- # # 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 ...
apache-2.0
LumPenPacK/NetworkExtractionFromImages
osx_build/nefi2_osx_amd64_xcode_2015/site-packages/numpy_1.11/numpy/core/tests/test_multiarray.py
1
237554
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import ctypes import os if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import D...
bsd-2-clause
heathsc/gemBS
gemBS/bsCallStats.py
1
63878
# -*- coding: utf-8 -*- """ Created on Wed Nov 29 15:35:46 2017 @author: marcos """ import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import matplotlib.pylab as pylab import numpy as np import os import math class StatsMother: """Common methods to all type of class stats""" def ...
gpl-3.0
credp/lisa
lisa/trace.py
1
191630
# SPDX-License-Identifier: Apache-2.0 # # Copyright (C) 2015, ARM Limited and contributors. # # 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 # # ...
apache-2.0
materialsproject/pymatgen
pymatgen/io/lammps/data.py
1
60296
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module implements a core class LammpsData for generating/parsing LAMMPS data file, and other bridging classes to build LammpsData from molecules. This module also implements a subclass CombinedData for...
mit
girving/tensorflow
tensorflow/python/estimator/canned/linear_testing_utils.py
1
90643
# 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...
apache-2.0
thalesians/tsa
src/test/python/thalesians/tsa/testtsa.py
1
48194
import unittest import numpy as np import pandas as pd from pandas.util.testing import assert_frame_equal import thalesians.tsa.tsa as tsa class TestTSA(unittest.TestCase): def test_data_set(self): df = pd.DataFrame({ 'col1': [10., 20., 30., 40., 50., 60., 70., 80., 90., 100., 110., 120., 130...
apache-2.0
venthur/wyrm
wyrm/plot.py
1
35940
#!/usr/bin/env python """Plotting methods. This module contains various plotting methods. There are two types of plotting methods: the Primitives and the Composites. The Primitives are the most basic and offer simple, single-plot representations. The Composites are composed of several primitives and offer more comple...
mit
317070/kaggle-heart
util_scripts/segmentation_labelling.py
1
34815
import cPickle as pickle from scipy.special import erf import glob import os import matplotlib.pyplot as plt from matplotlib import animation import numpy as np from skimage.feature import register_translation import matplotlib.pyplot as plt import scipy.stats import numpy as np from scipy.fftpack import fftn, ifftn f...
mit
ekostat/ekostat_calculator
.ipynb_checkpoints/event_handler-checkpoint.py
1
73272
# -*- coding: utf-8 -*- """ Created on Wed Jan 31 15:05:36 2018 @author: a001985 """ import os import shutil import json import codecs import logging import importlib # TODO: Move this! #current_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) #current_path = os.path.dirname(os...
mit
ProjectPyRhO/PyRhO
pyrho/fitting.py
1
84236
"""Rhodopsin model fitting and optimising routines""" from __future__ import print_function, division import os import pickle import warnings import logging import copy import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from lmfit import minimize, Parameters, fit_report, Model from scipy.opti...
bsd-3-clause
anhaidgroup/py_entitymatching
py_entitymatching/dask/dask_overlap_blocker.py
1
37755
import collections import dask from dask import delayed from dask.diagnostics import ProgressBar import logging import multiprocessing import pandas as pd import numpy as np import re import six import string import py_stringsimjoin as ssj from py_stringsimjoin.filter.overlap_filter import OverlapFilter from py_string...
bsd-3-clause
MJuddBooth/pandas
pandas/tests/frame/test_combine_concat.py
1
34024
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import numpy as np import pytest from pandas.compat import lrange import pandas as pd from pandas import DataFrame, Index, Series, Timestamp, date_range from pandas.tests.frame.common import TestData import pandas.util.test...
bsd-3-clause
camisatx/pySecMaster
pySecMaster/extractor.py
1
77466
import csv from datetime import datetime, timedelta, timezone import pandas as pd import psycopg2 #import re from sqlalchemy import create_engine import time from download import QuandlDownload, download_google_data, \ download_yahoo_data, download_csidata_factsheet,\ download_nasdaq_industry_sector from utili...
agpl-3.0
Stuermer/EchelleSimulator
examples/model_creation/PyEchelle.py
1
49658
import tables from matplotlib import patches import matplotlib.mlab as ml from mpl_toolkits.axes_grid1 import make_axes_locatable import numpy as np import pickle as pickle import os from scipy import interpolate import matplotlib.pyplot as plt from PIL import Image import astropy.io.fits as pyfits from sc...
gpl-3.0
jbernhard/qm2017
qm/plots.py
1
33231
""" plots / visualizations / figures """ import colorsys import itertools import logging from pathlib import Path import subprocess import tempfile import warnings import h5py import numpy as np import matplotlib.pyplot as plt from matplotlib import lines from matplotlib import patches from matplotlib import ticker f...
mit
cdemulde/wwdata
wwdata/Class_OnlineSensorBased.py
1
67549
""" Class_OnlineSensorBased provides functionalities for data handling of data obtained with online sensors in the field of (waste)water treatment. Copyright (C) 2016 Chaim De Mulder This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as publ...
agpl-3.0
BryanCutler/spark
python/pyspark/pandas/tests/test_series.py
1
120972
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
apache-2.0
CGATOxford/CGATPipelines
obsolete/PipelineRrbs.py
1
77723
''' PipelineRrbs.py - Utility functions for analysing rrbs sequence data ===================================================================== ''' import os import re import sqlite3 import itertools import copy import CGATPipelines.Pipeline as P import CGAT.Experiment as E import CGAT.IOTools as IOTools import CGAT.Fas...
mit
rs2/pandas
pandas/core/internals/blocks.py
1
97137
from datetime import datetime, timedelta import inspect import re from typing import TYPE_CHECKING, Any, List, Optional import warnings import numpy as np from pandas._libs import NaT, algos as libalgos, lib, writers import pandas._libs.internals as libinternals from pandas._libs.internals import BlockPlacement from ...
bsd-3-clause
summychou/TBTracker
src/TBTracker_MainWindow_bk.py
1
51077
# -*- coding: utf-8 -*- import warnings warnings.filterwarnings('ignore') # ********************第三方相关模块导入******************** import logging Logger = logging.getLogger("TBTracker") Logger.setLevel(logging.DEBUG) InfoHandler = logging.FileHandler("TBTracker_Log/info.log") InfoHandler.setLevel(logging.INFO) INFOFORMATT...
mit
leschzinerlab/FreeHand
freeHand_spiderAPSH.py
1
37718
#!/usr/bin/env python import optparse from sys import * import os,sys,re from optparse import OptionParser import glob import subprocess from os import system import linecache import numpy as np import matplotlib.pyplot as plt import Image import pylab from matplotlib.ticker import MultipleLocator, FormatStrFormatter...
mit
ArteliaTelemac/PostTelemac
PostTelemac/meshlayerdialogs/posttelemacpropertiesdialog.py
1
54301
# -*- coding: utf-8 -*- """ /*************************************************************************** PostTelemac A QGIS plugin Post Traitment or Telemac ------------------- begin : 2015-07-07 git sha : $For...
gpl-3.0
toobaz/pandas
pandas/core/resample.py
1
56452
import copy from datetime import timedelta from textwrap import dedent from typing import Dict, no_type_check import warnings import numpy as np from pandas._libs import lib from pandas._libs.tslibs import NaT, Period, Timestamp from pandas._libs.tslibs.frequencies import is_subperiod, is_superperiod from pandas._lib...
bsd-3-clause
dnjohnstone/hyperspy
hyperspy/signal_tools.py
1
67918
# -*- coding: utf-8 -*- # Copyright 2007-2020 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
akpetty/ibtopo2016
IB_functions.py
1
33964
############################################################## # Date: 10/05/16 # Name: Alek Petty # Description: Functions called by the various ibtopo Python scripts # Extra: May not need all these libraries, so check before using if having issues. from osgeo import osr, gdal import numpy as np from pyproj import P...
gpl-3.0
caganze/splat
splat/empirical.py
1
73057
# -*- coding: utf-8 -*- from __future__ import print_function, division """ .. note:: These are the empirical relations functions for SPLAT """ # imports: internal import copy import sys # imports - external import numpy from astropy import units as u # standard units #from astropy import const...
mit
INM-6/viziphant
viziphant/gpfa.py
1
41203
""" Gaussian Process Factor Analysis (GPFA) plots --------------------------------------------- Visualizes transformed trajectories output from :class:`elephant.gpfa.gpfa.GPFA` .. autosummary:: :toctree: toctree/gpfa/ plot_dimensions_vs_time plot_trajectories plot_trajectories_spikeplay plot_cumu...
bsd-3-clause
yavalvas/yav_com
build/matplotlib/lib/matplotlib/axis.py
1
80110
""" Classes for the ticks and x and y axis """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from matplotlib import rcParams import matplotlib.artist as artist from matplotlib.artist import allow_rasterization import matplotlib.cbook as cbook i...
mit
jluscher/SCANIT
scanit_v035.py
1
92792
#! /usr/bin/env python3 # # SCANIT - Control A spectrometer and collect data # # LICENSE: # This work is licensed under the Creative Commons Attribution-ShareAlike # 3.0 United States License. To view a copy of this license, visit # http://creativecommons.org/licenses/by-sa/3.0/us/ # or send a letter to: # Creative Com...
cc0-1.0
esteinig/netviewP
program/linux/0.7.1/netview.py
1
37588
#!/usr/bin/env python # NetView P v.0.7.1 # Dependencies: PLINK # Eike Steinig # Zenger Lab, JCU # https://github.com/esteinig/netview import os import time import json import shutil import argparse import subprocess import numpy as np import multiprocessing as mp import scipy.sparse.csgraph as csg import scipy.spatia...
gpl-2.0
dwettstein/pattern-recognition-2016
mlp/model_selection/kernels.py
1
66352
"""Kernels for Gaussian process regression and classification. The kernels in this module allow kernel-engineering, i.e., they can be combined via the "+" and "*" operators or be exponentiated with a scalar via "**". These sum and product expressions can also contain scalar values, which are automatically converted to...
mit
abhmul/PyJet
pyjet/single_script.py
1
119271
# Python standard library modules import copy import os import logging import threading import time import queue from collections import deque import warnings import itertools from functools import partial # Third party libraries import numpy as np from tqdm import tqdm try: import matplotlib import matplotlib...
mit
RPGOne/Skynet
scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/sklearn/gaussian_process/gaussian_process.py
1
34397
# -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # Licence: BSD 3 clause from __future__ import print_function import numpy as np from scipy import linalg, optimize from ..base import BaseEstimator, RegressorMixin from ..metrics...
bsd-3-clause
cpcloud/ibis
ibis/expr/tests/test_value_exprs.py
1
42953
import functools import operator import os from collections import OrderedDict from datetime import date, datetime, time from operator import methodcaller import numpy as np import pandas as pd import pytest import toolz import ibis import ibis.common.exceptions as com import ibis.expr.analysis as L import ibis.expr....
apache-2.0
zerothi/sisl
sisl/supercell.py
1
37862
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at https://mozilla.org/MPL/2.0/. """ Define a supercell This class is the basis of many different objects. """ import math import warnings from numbers...
lgpl-3.0
dssg/diogenes
diogenes/grid_search/experiment.py
1
38981
"""Provides classes necessary for organizing an Experiment""" import inspect import json import copy import abc import datetime import csv import os import itertools as it from collections import Counter from multiprocessing import cpu_count import warnings import numpy as np from joblib import Parallel, delayed fr...
mit
DIYElectronicsZA/PSU.T-Power_Supply_Unicorn_Tamer-
software/graph_plotting.py
1
36731
from __future__ import print_function import wx import serial import os from wx.lib.plot import PolyLine, PlotCanvas, PlotGraphics import wx.grid as grid import io import logging import sys import glob import numpy as np import csv #import matplotlib.py as plt from serialfunctions import SerialPort im...
gpl-3.0
datapythonista/pandas
pandas/core/indexes/multi.py
1
133622
from __future__ import annotations from functools import wraps from sys import getsizeof from typing import ( TYPE_CHECKING, Any, Callable, Collection, Hashable, Iterable, List, Sequence, Tuple, cast, ) import warnings import numpy as np from pandas._config import get_option ...
bsd-3-clause
Eric89GXL/scipy
scipy/spatial/kdtree.py
3
38090
# Copyright Anne M. Archibald 2008 # Released under the scipy license from __future__ import division, print_function, absolute_import import sys import numpy as np from heapq import heappush, heappop import scipy.sparse __all__ = ['minkowski_distance_p', 'minkowski_distance', 'distance_matrix', ...
bsd-3-clause
geophysics/mtpy
mtpy/imaging/plotptpseudosection.py
1
59761
# -*- coding: utf-8 -*- """ Created on Thu May 30 18:10:55 2013 @author: jpeacock-pr """ #============================================================================== import matplotlib.pyplot as plt import numpy as np import os import matplotlib.colors as colors import matplotlib.patches as patches import matplotl...
gpl-3.0
tomasjames/citsciportal
app/showmestars/views.py
1
260502
''' Citizen Science Portal: App containing Agent Exoplant and Show Me Stars for Las Cumbres Observatory Global Telescope Network Copyright (C) 2014-2015 LCOGT 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 Foun...
gpl-3.0
cmunk/protwis
build/management/commands/build_g_proteins.py
1
51519
from django.core.management.base import BaseCommand, CommandError from django.conf import settings from django.db import connection from django.db import IntegrityError from common.models import WebResource, WebLink, Publication from protein.models import (Protein, ProteinGProtein,ProteinGProteinPair, ProteinConform...
apache-2.0