repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
wradlib/wradlib | wradlib/io/xarray.py | 1 | 162563 | #!/usr/bin/env python
# Copyright (c) 2011-2021, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Xarray based Data I/O
^^^^^^^^^^^^^^^^^^^^^
Reads data from netcdf-based CfRadial1, CfRadial2 and hdf5-based ODIM_H5 and
other hdf5-flavours (GAMIC). More radar backends (sigme... | mit |
bnaul/scikit-learn | sklearn/cluster/tests/test_k_means.py | 1 | 41326 | """Testing for K-means"""
import sys
import numpy as np
from scipy import sparse as sp
from threadpoolctl import threadpool_limits
import pytest
from sklearn.utils._testing import assert_array_equal
from sklearn.utils._testing import assert_array_almost_equal
from sklearn.utils._testing import assert_allclose
from s... | bsd-3-clause |
jtladner/Scripts | chimeric_reads/chimeric_reads_v3.5.4.py | 1 | 35118 | #!/usr/bin/env python
# By Jason Ladner
#This script looks for single reads that are chimeric, with different portions mapping to different regions
#In v2, I tweaked the way I was making the plot in matplot lib to try to make it easy to create a legend
#In v3, Fixed bug related to reads with doubly aligned bases. On... | gpl-3.0 |
bert9bert/statsmodels | statsmodels/tsa/ar_model.py | 1 | 33688 | from __future__ import division
from statsmodels.compat.python import iteritems, range, string_types, lmap, long
import numpy as np
from numpy import dot, identity
from numpy.linalg import inv, slogdet
from scipy.stats import norm
from statsmodels.regression.linear_model import OLS
from statsmodels.tsa.tsatools import... | bsd-3-clause |
blaze/dask | dask/array/routines.py | 1 | 48452 | import inspect
import math
import warnings
from collections.abc import Iterable
from functools import wraps, partial
from numbers import Real, Integral
from distutils.version import LooseVersion
from typing import List
import numpy as np
from tlz import concat, sliding_window, interleave
from ..compatibility import a... | bsd-3-clause |
Alwnikrotikz/stoqs | utils/Viz/__init__.py | 4 | 62875 | __author__ = 'Mike McCann'
__copyright__ = '2012'
__license__ = 'GPL v3'
__contact__ = 'mccann at mbari.org'
__doc__ = '''
Module with various functions to supprt data visualization. These can be quite verbose
with all of the Matplotlib customization required for nice looking graphics.
@undocumented: __doc__... | gpl-3.0 |
Petr-By/qtpyvis | qtgui/widgets/image.py | 1 | 42587 | """QWidgets for displaying images.
"""
# standard imports
from typing import Union, List, Iterable, Tuple
import logging
# Generic imports
import numpy as np
# Qt imports
from PyQt5.QtCore import Qt, QPoint, QPointF, QSize, QRect
from PyQt5.QtCore import pyqtSignal, pyqtSlot
from PyQt5.QtGui import QImage, QPainter,... | mit |
dav-stott/phd-thesis | spectra_thesis_analysis2.py | 1 | 48727 | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 30 15:20:05 2014
@author: david
exit
jhkj"""
import numpy as np
import numpy.ma as ma
import matplotlib.pyplot as plt
import os
import csv
from scipy import stats
print 'STUFF'
def edge_colours(pvals):
# helper function to take P values for the bar plots and d... | mit |
GregMJP/PCWG | configuration.py | 1 | 58618 | import xml.dom.minidom
import dateutil
import os
import pandas as pd
import numpy as np
import datetime
isoDateFormat = "%Y-%m-%dT%H:%M:00"
class XmlBase:
def readDoc(self, path):
return xml.dom.minidom.parse(path)
def getPath(self, node):
return self.getValue(node).replace("\\", os.... | mit |
maxlikely/scikit-learn | sklearn/tree/tree.py | 1 | 32046 | """
This module gathers tree-based methods, including decision, regression and
randomized trees. Single and multi-output problems are both handled.
"""
# Code is originally adapted from MILK: Machine Learning Toolkit
# Copyright (C) 2008-2011, Luis Pedro Coelho <luis@luispedro.org>
# License: MIT. See COPYING.MIT file... | bsd-3-clause |
chaluemwut/fbserver | venv/lib/python2.7/site-packages/sklearn/ensemble/gradient_boosting.py | 1 | 54827 | """Gradient Boosted Regression Trees
This module contains methods for fitting gradient boosted regression trees for
both classification and regression.
The module structure is the following:
- The ``BaseGradientBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regressio... | apache-2.0 |
Becksteinlab/MDPOW | mdpow/fep.py | 1 | 62734 | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
# mdpow: fep.py
# Copyright (c) 2010 Oliver Beckstein
"""
:mod:`mdpow.fep` -- Calculate free energy of solvation
======================================================
Set up and run free energy perturbat... | gpl-3.0 |
zwickl/pygot | pygot/plotutils.py | 1 | 65438 | #!/usr/bin/env python
import sys
from os import path
import re
from itertools import izip, cycle, chain, repeat, islice
import argparse
from math import ceil
try:
import matplotlib.pyplot as plt
from matplotlib import font_manager
except ImportError:
sys.exit('matplotlib needs to be installed to use this ... | mit |
rozzac90/nba | nba/endpoints/player.py | 1 | 150222 | import pandas as pd
from nba import enums
from nba.utils import clean_locals
from nba.endpoints.baseendpoint import BaseEndpoint
class Player(BaseEndpoint):
def all_ranked_stats(
self,
league_id=enums.LeagueID.Default,
season=enums.Season.Default,
season_type=enums.SeasonType.Defa... | mit |
umuzungu/zipline | tests/test_algorithm.py | 1 | 117231 | #
# 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 |
simonsfoundation/CaImAn | caiman/source_extraction/cnmf/online_cnmf.py | 1 | 132832 | #!/usr/bin/env python
""" Online Constrained Nonnegative Matrix Factorization
The general file class which is used to analyze calcium imaging data in an
online fashion using the OnACID algorithm. The output of the algorithm
is storead in an Estimates class
More info:
------------
Giovannucci, A., Friedrich, J., Kaufm... | gpl-2.0 |
MJuddBooth/pandas | pandas/tests/frame/test_query_eval.py | 1 | 40556 | # -*- coding: utf-8 -*-
from __future__ import print_function
import operator
import numpy as np
import pytest
from pandas.compat import StringIO, lrange, range, zip
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, date_range
from pandas.core.co... | bsd-3-clause |
mreineck/healpy | healpy/visufunc.py | 1 | 46134 | #
# This file is part of Healpy.
#
# Healpy 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.
#
# Healpy is distributed in the hope... | gpl-2.0 |
aleju/face-generator | dataset/ImageAugmenter.py | 2 | 36707 | # -*- coding: utf-8 -*-
"""Wrapper functions and classes around scikit-images AffineTransformation.
Simplifies augmentation of images in machine learning.
Example usage:
img_width = 32 # width of the images
img_height = 32 # height of the images
images = ... # e.g. load via scipy.misc.imload(fi... | mit |
alexandrebarachant/mne-python | mne/viz/evoked.py | 2 | 51037 | """Functions to make simple plot on evoked M/EEG data (besides 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 Lars... | bsd-3-clause |
roshantha9/AbstractManycoreSim | src/analyse_results/AnalyseResults_Exp_HEVCSplitTiles_workloadDist_vs_Lateness.py | 1 | 76546 | import sys, os, csv, pprint, math
#sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from collections import OrderedDict
import numpy as np
import traceback
import re
import pylab
import random
import shutil
import math
import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.pyplot as plt
import ite... | gpl-3.0 |
jakevdp/seaborn | seaborn/tests/test_categorical.py | 1 | 75258 | import numpy as np
import pandas as pd
import scipy
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
pandas_has_categoricals = LooseVersion(pd.__version__) >= "0.15"
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decora... | bsd-3-clause |
dwillmer/numpy | numpy/core/tests/test_multiarray.py | 1 | 246130 | 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
import gc
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
from decima... | bsd-3-clause |
aswolf/xmeos | examples/test-RTpress-MgSiO3/fit-RTpress-mdsim-Spera2011.py | 1 | 148710 | import numpy as np
import matplotlib as mpl
# mpl.use('WXAgg',warn=False, force=True)
# mpl.use('GTKAgg',warn=False, force=True) # Gtk* backend requires pygtk to be installed.
# mpl.use('Qt4Agg',warn=False, force=True) # PyQt4
# mpl.use('GTK3Agg',warn=False, force=True) # PyQt4
# mpl.use('TKAgg',warn=False, force=True... | mit |
josephmfaulkner/stoqs | stoqs/utils/Viz/__init__.py | 1 | 66389 | __author__ = 'Mike McCann'
__copyright__ = '2012'
__license__ = 'GPL v3'
__contact__ = 'mccann at mbari.org'
__doc__ = '''
Module with various functions to supprt data visualization. These can be quite verbose
with all of the Matplotlib customization required for nice looking graphics.
@undocumented: __doc__... | gpl-3.0 |
jtwhite79/pyemu | autotest/pst_tests_2.py | 1 | 30678 | import os
import platform
if not os.path.exists("temp"):
os.mkdir("temp")
def from_flopy_kl_test():
import shutil
import numpy as np
import pandas as pd
try:
import flopy
except:
return
import pyemu
org_model_ws = os.path.join("..", "examples", "freyberg_sfr_update")
... | bsd-3-clause |
google/meterstick | confidence_interval_display.py | 1 | 37265 | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
Shekharrajak/mubosym | mubosym/mubosym_core.py | 1 | 95748 | # -*- coding: utf-8 -*-
"""
all mubosym related core classes
================================
Created on Sun Mar 8 11:50:46 2015
@author: oliver
"""
from __future__ import print_function, absolute_import
import os.path,sys,time,copy
try:
import pandas as pd
no_pandas = False
except:
print( 'can not use p... | mit |
SophieTh/und_Sophie_2016 | pySRU/Simulation.py | 1 | 37244 | # coding: utf-8
# /*##########################################################################
#
# Copyright (c) 2016 European Synchrotron Radiation Facility
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
#... | mit |
person142/scipy | scipy/stats/morestats.py | 1 | 117580 | import math
import warnings
from collections import namedtuple
import numpy as np
from numpy import (isscalar, r_, log, around, unique, asarray,
zeros, arange, sort, amin, amax, any, atleast_1d,
sqrt, ceil, floor, array, compress,
pi, exp, ravel, count_nonzero, ... | bsd-3-clause |
dholstein/elephant | elephant/asset.py | 1 | 68871 | """
ASSET is a statistical method [1] for the detection of repeating sequences
of synchronous spiking events in parallel spike trains.
Given a list `sts` of spike trains, the analysis comprises the following
steps:
1) Build the intersection matrix `imat` (optional) and the associated
probability matrix `pmat` with t... | bsd-3-clause |
dimonaks/siman | siman/picture_functions.py | 1 | 47676 | # -*- coding: utf-8 -*-
from __future__ import division, unicode_literals, absolute_import
import sys, os
import copy
import numpy as np
try:
import scipy
from scipy import interpolate
# print (scipy.__version__)
# print (dir(interpolate))
except:
print('picture_functions.py: scipy is not avail'... | gpl-2.0 |
winklerand/pandas | pandas/core/indexes/period.py | 1 | 43906 | # pylint: disable=E1101,E1103,W0232
from datetime import datetime, timedelta
import numpy as np
import warnings
from pandas.core import common as com
from pandas.core.dtypes.common import (
is_integer,
is_float,
is_object_dtype,
is_integer_dtype,
is_float_dtype,
is_scalar,
is_datetime64_dt... | bsd-3-clause |
ChyLau/weviation | weviation/gui.py | 1 | 66332 | import wx
import methods
import parse as p
import numpy as np
import matplotlib
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib import cm
from matplotlib.font_manager import FontProperties
import lxml.etree as ET
import os
class TabTo... | gpl-2.0 |
ruohoruotsi/librosa | librosa/feature/spectral.py | 1 | 41825 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Spectral feature extraction"""
import numpy as np
import scipy
import scipy.signal
from .. import util
from .. import filters
from ..util.exceptions import ParameterError
from ..util.deprecation import Deprecated, rename_kw
from ..core.time_frequency import fft_freque... | isc |
phobson/statsmodels | statsmodels/stats/contingency_tables.py | 4 | 43623 | """
Methods for analyzing two-way contingency tables (i.e. frequency
tables for observations that are cross-classified with respect to two
categorical variables).
The main classes are:
* Table : implements methods that can be applied to any two-way
contingency table.
* SquareTable : implements methods that can... | bsd-3-clause |
biocore-ntnu/pyranges | pyranges/genomicfeatures.py | 1 | 31717 | import pandas as pd
import pyranges as pr
import numpy as np
from pyranges.multithreaded import pyrange_apply
from sorted_nearest.src.introns import find_introns
__all__ = ["genome_bounds", "tile_genome", "GenomicFeaturesMethods"]
class GenomicFeaturesMethods():
"""Namespace for methods using feature informati... | mit |
dsm054/pandas | pandas/tests/sparse/series/test_series.py | 1 | 57903 | # pylint: disable-msg=E1101,W0612
import operator
from datetime import datetime
import pytest
from numpy import nan
import numpy as np
import pandas as pd
from pandas import Series, DataFrame, bdate_range, isna, compat
from pandas.errors import PerformanceWarning
from pandas.tseries.offsets import BDay
import pand... | bsd-3-clause |
inonchiu/NavarroFrenkWhite | NFW.py | 1 | 52804 | #!/usr/bin/env python
##################################################################
#
# This module is the class of Navarro-Frenk-White Model.
#
##################################################################
import numpy as np
from math import *
import cosmolopy.distance as cosdist
import cosmolopy.density a... | mit |
meren/anvio | anvio/interacdome.py | 1 | 30934 | #!/usr/bin/env python
# -*- coding: utf-8
"""Setup and utilize InteracDome.
The InteracDome is from Mona Singh's group at Princeton. In brief, they attribute empirical
residue-by-residue binding frequencies for Pfam families. Only families with members that have
crystallized structures with ligand co-complexes are use... | gpl-3.0 |
blaze/dask | dask/dataframe/multi.py | 1 | 38966 | """
Algorithms that Involve Multiple DataFrames
===========================================
The pandas operations ``concat``, ``join``, and ``merge`` combine multiple
DataFrames. This module contains analogous algorithms in the parallel case.
There are two important cases:
1. We combine along a partitioned index
2... | bsd-3-clause |
wronk/mne-python | mne/dipole.py | 1 | 38186 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: Simplified BSD
from copy import deepcopy
import re
import numpy as np
from scipy import linalg
from .cov import read_cov, _get_whitener_data
from .io.constants import FIFF
from .io.pi... | bsd-3-clause |
cython-testbed/pandas | pandas/tests/io/test_html.py | 1 | 39680 | from __future__ import print_function
import os
import re
import threading
from functools import partial
import pytest
import numpy as np
from numpy.random import rand
from pandas import (DataFrame, MultiIndex, read_csv, Timestamp, Index,
date_range, Series)
from pandas.compat import (map, zip,... | bsd-3-clause |
eternallyBaffled/itrade | itrade_wxgraph.py | 1 | 34231 | #!/usr/bin/env python
# ============================================================================
# Project Name : iTrade
# Module Name : itrade_wxgraph.py
#
# Description: wxPython Generic Graph Panel
#
# The Original Code is iTrade code (http://itrade.sourceforge.net).
#
# The Initial Developer of the Or... | gpl-3.0 |
d15123601/geotinkering | GUI_2.py | 1 | 43070 | """ Here we access geojson held in a textfile - it is then used to perform the
following tasks reqd for the GIS programming assignment.....
Specifically, we want to do the following:
Create a single polygon from the Union of all the polygons.
Compute the centroid of the single polygon.
Extract the... | mit |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/core/indexes/datetimes.py | 1 | 57574 | from datetime import datetime, time, timedelta
import operator
import warnings
import numpy as np
from pandas._libs import Timestamp, index as libindex, lib, tslib as libts
import pandas._libs.join as libjoin
from pandas._libs.tslibs import ccalendar, fields, parsing, timezones
from pandas.util._decorators import App... | apache-2.0 |
feranick/SpectralMachine | Archive/20171010c/SpectraLearnPredict.py | 1 | 85117 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
**********************************************************
*
* SpectraLearnPredict
* Perform Machine Learning on Spectroscopy Data.
* version: 20171010c
*
* Uses: Deep Neural Networks, TensorFlow, SVM, PCA, K-Means
*
* By: Nicola Ferralis <feranick@hotmail.com>
*
*****... | gpl-3.0 |
zorroblue/scikit-learn | sklearn/metrics/ranking.py | 1 | 30774 | """Metrics to assess performance on classification task given scores
Functions named as ``*_score`` return a scalar value to maximize: the higher
the better
Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize:
the lower the better
"""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.... | bsd-3-clause |
RNAer/Calour | calour/io.py | 1 | 38408 | '''
read & write (:mod:`calour.io`)
===============================
.. currentmodule:: calour.io
Functions
^^^^^^^^^
.. autosummary::
:toctree: generated
read
read_amplicon
read_qiime2
read_ms
save
save_fasta
save_biom
'''
# ------------------------------------------------------------------... | bsd-3-clause |
bbcdli/xuexi | fenlei_tf/script_2019Nov/src/tools.py | 1 | 61056 | # hy:change logs are in tensorflow_train.py
#####################################################################################################
#import ImageDraw
#import ImageFilter
#import ImageOps
import time
import random
import glob
from functools import wraps
from random import randint
import os
import sys
impor... | apache-2.0 |
jrherr/BinGeR | src/contigSpace.py | 1 | 46836 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
BinGeR (Binner for Genome Recovery):
in-situ Genome recovery tool for series metagenomes
Copyright(c) 2013 Chengwei Luo (luo.chengwei@gatech.edu)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Lic... | gpl-3.0 |
Ecogenomics/GroopM | groopm/binManager.py | 1 | 68425 | #!/usr/bin/env python
###############################################################################
# #
# binManager.py #
# ... | gpl-3.0 |
MuhammadVT/davitpy | davitpy/pydarn/plotting/rti.py | 1 | 47283 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
#
# 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
# ... | gpl-3.0 |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/frame/test_combine_concat.py | 2 | 33762 | from datetime import datetime
import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Index, Series, Timestamp, date_range
import pandas.util.testing as tm
from pandas.util.testing import assert_frame_equal, assert_series_equal
class TestDataFrameConcatCommon:
def test_concat_multiple... | apache-2.0 |
datapythonista/pandas | pandas/tests/groupby/test_categorical.py | 1 | 57725 | from datetime import datetime
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import (
Categorical,
CategoricalIndex,
DataFrame,
Index,
MultiIndex,
Series,
qcut,
)
import pandas._testing as tm
def cartesian_product_for_groupers(... | bsd-3-clause |
bennames/AeroComBAT-Project | AeroComBAT/tabulate.py | 1 | 39223 | # -*- coding: utf-8 -*-
"""
Tabulate:
The tabulate module written by Copyright (c) 2011-2014 Sergey Astanin
was repackaged within Haphaestus in order to facilitate software distribution.
"""
from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple
from platform... | mit |
SNU-sunday/fisspy | fisspy/read/read_factory.py | 1 | 43860 | from __future__ import absolute_import, division
import numpy as np
from astropy.io import fits
from scipy.signal import savgol_filter
from scipy.signal import fftconvolve as conv
from fisspy import cm
import matplotlib.pyplot as plt
from astropy.constants import c
from fisspy.analysis.doppler import lambdameter
from f... | bsd-2-clause |
SKIRT/PTS | magic/tools/plotting.py | 1 | 144110 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 |
MJuddBooth/pandas | pandas/tests/indexes/test_numeric.py | 1 | 42326 | # -*- coding: utf-8 -*-
from datetime import datetime
import re
import numpy as np
import pytest
from pandas._libs.tslibs import Timestamp
from pandas.compat import PY2, range
import pandas as pd
from pandas import Float64Index, Index, Int64Index, Series, UInt64Index
from pandas.api.types import pandas_dtype
from p... | bsd-3-clause |
gengliangwang/spark | python/pyspark/pandas/frame.py | 1 | 424912 | #
# 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 |
goodwinnk/intellij-community | python/helpers/pydev/pydevd.py | 1 | 69024 | '''
Entry point module (keep at root):
This module starts the debugger.
'''
import sys
if sys.version_info[:2] < (2, 6):
raise RuntimeError('The PyDev.Debugger requires Python 2.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.')
import atexit
import os
import... | apache-2.0 |
timcera/tsgettoolbox | tsgettoolbox/functions/coops.py | 1 | 35623 | # -*- coding: utf-8 -*-
import logging
import os
from collections import defaultdict
from io import BytesIO
from typing import List, Optional
try:
from typing import Literal
except ImportError:
from typing_extensions import Literal
import mando
import pandas as pd
import requests
import typic
try:
from m... | bsd-3-clause |
SiccarPoint/landlab | landlab/grid/base.py | 1 | 175581 | #! /usr/env/python
"""
Python implementation of ModelGrid, a base class used to create and manage
grids for 2D numerical models.
Getting Information about a Grid
--------------------------------
The following attributes, properties, and methods provide data about the grid,
its geometry, and the connectivity among the ... | mit |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/io/parsers.py | 1 | 128756 | """
Module contains tools for processing files into DataFrames or other objects
"""
from collections import defaultdict
import csv
import datetime
from io import StringIO
import re
import sys
from textwrap import fill
from typing import Any, Dict, Set
import warnings
import numpy as np
import pandas._libs.lib as lib... | apache-2.0 |
I--P/numpy | numpy/core/tests/test_multiarray.py | 1 | 229122 | 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-3-clause |
hanjiepan/LEAP | plotter.py | 1 | 35130 | """
plotter.py: plot functions of the results
Copyright (C) 2017 Hanjie Pan
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.
T... | gpl-3.0 |
tturowski/gwide | gwide/Classes/DefineTerminatorClass.py | 1 | 59772 | #!/usr/bin/env python
import numpy as np
import sys, collections, re
from pypeaks import Data
from pyCRAC.Parsers import GTF2
import matplotlib.pyplot as plt
import pandas as pd
class DefineTerminatorClass():
def __init__(self, gtf_file, five_prime_flank, three_prime_flank, hits_threshold, lookahead, prefix, print... | apache-2.0 |
gfyoung/pandas | pandas/tests/io/excel/test_writers.py | 1 | 50500 | from datetime import date, datetime, timedelta
from functools import partial
from io import BytesIO
import os
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, get_option, set_option
import pandas._testing as tm
from panda... | bsd-3-clause |
buguen/pylayers | pylayers/simul/simultraj.py | 1 | 44433 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
"""
Run simulation with full human trajectory
.. currentmodule:: pylayers.simul.simultraj
Simul class
===========
.. autosummary::
:toctree: generated/
Run simulation and data exploitation
------------------------------------
.. autosummary::
:toctree: generat... | lgpl-3.0 |
mackelab/autohmm | autohmm/tm.py | 1 | 34449 | from __future__ import division, print_function, absolute_import
import string
import warnings
from scipy import linalg
from scipy import stats
from scipy.stats import norm, multivariate_normal
import scipy.sparse as sp
from sklearn import cluster
from sklearn.utils import check_random_state
from sklearn.mixture imp... | bsd-2-clause |
pydata/xarray | xarray/tests/test_cftime_offsets.py | 1 | 37114 | from itertools import product
import numpy as np
import pandas as pd
import pytest
from xarray import CFTimeIndex
from xarray.coding.cftime_offsets import (
_MONTH_ABBREVIATIONS,
BaseCFTimeOffset,
Day,
Hour,
Microsecond,
Millisecond,
Minute,
MonthBegin,
MonthEnd,
QuarterBegin,
... | apache-2.0 |
Stargrazer82301/ChrisFuncs | ChrisFuncs/ChrisFuncs.py | 1 | 58864 | # Import smorgasbord
import pdb
import pdb
"""from IPython import get_ipython
get_ipython().run_line_magic('pdb','on')"""
import sys
import os
#sys.path.append( os.path.split( os.path.realpath(__file__) )[:-1][0] )
#sys.path.append( os.path.split( os.path.split( os.path.realpath(__file__) )[:-1][0] )[:-1][0] )
#sys.pat... | mit |
TomAugspurger/pandas | pandas/tests/reshape/test_pivot.py | 1 | 70218 | 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,
)
import pandas._testing as tm
from pandas.api.types im... | bsd-3-clause |
kenshay/ImageScripter | ProgramData/SystemFiles/Python/Lib/site-packages/scipy/signal/fir_filter_design.py | 3 | 41878 | # -*- coding: utf-8 -*-
"""Functions for FIR filter design."""
from __future__ import division, print_function, absolute_import
from math import ceil, log
import warnings
import numpy as np
from numpy.fft import irfft, fft, ifft
from scipy.special import sinc
from scipy.linalg import toeplitz, hankel, pinv
from scipy... | gpl-3.0 |
RRCKI/panda-server | pandaserver/taskbuffer/TaskBuffer.py | 1 | 102634 | import re
import sys
import json
import types
import shlex
import datetime
import ProcessGroups
import EventServiceUtils
from threading import Lock
from DBProxyPool import DBProxyPool
from brokerage.SiteMapper import SiteMapper
from dataservice.Setupper import Setupper
from dataservice.Closer import Closer
from dataser... | apache-2.0 |
pmarshwx/pyHWT | hwt/plot/ctables.py | 1 | 105156 | from numpy import array
import matplotlib as mpl
LUTSIZE = mpl.rcParams['image.lut']
del mpl
import matplotlib.colors as colors
#These are standard National Weather Service Radar Colortables
_NWSRef_data = {
'blue': [(0.0, 0.92549019607843142, 0.92549019607843142),
(0.07142857, 0.96470588235294119, 0... | bsd-2-clause |
bostonautolytics/fortebiopkg | fortebiopkg/datafitting.py | 1 | 43182 | import numpy as np
import math
import scipy.optimize
import matplotlib.pyplot as pl
import os
import warnings
from io import BytesIO as BIO
from scipy import stats
def __init__(self):
""" No parameters required """
pass
def linearfit(baselinex, baseliney, onlylast20percent=False):
base... | gpl-3.0 |
jreback/pandas | pandas/tests/reshape/merge/test_merge_asof.py | 1 | 46427 | import datetime
import numpy as np
import pytest
import pytz
import pandas as pd
from pandas import Timedelta, merge_asof, read_csv, to_datetime
import pandas._testing as tm
from pandas.core.reshape.merge import MergeError
class TestAsOfMerge:
def read_data(self, datapath, name, dedupe=False):
path = da... | bsd-3-clause |
Chilipp/psy-simple | psy_simple/plotters.py | 1 | 192850 | import six
import re
from warnings import warn
from psyplot.warning import PsyPlotRuntimeWarning
from abc import abstractproperty, abstractmethod
from functools import partial
from itertools import chain, starmap, cycle, islice, repeat
from pandas import (
date_range, to_datetime, DatetimeIndex, to_timedelta, Multi... | gpl-2.0 |
Kirubaharan/hydrology | check_dam_talk_plot.py | 1 | 48044 | __author__ = 'kiruba'
import matplotlib
# matplotlib.rcsetup.all_backends
matplotlib.use('tkagg')
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from matplotlib import rc
import brewer2mpl
from matplotlib import cm
from scipy.optimize import curve_fit
import matplotlib as mpl
from math import sq... | gpl-3.0 |
IntelPNI/brainiak | brainiak/reprsimil/brsa.py | 1 | 212121 | # Copyright 2016 Mingbo Cai, Princeton Neuroscience Instititute,
# Princeton 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... | apache-2.0 |
SKIRT/PTS | modeling/analysis/analysis.py | 1 | 452695 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 |
lemieuxl/pyGenClean | pyGenClean/RelatedSamples/find_related_samples.py | 1 | 35790 | #!/usr/bin/env python2.7
# This file is part of pyGenClean.
#
# pyGenClean 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.
#
# pyGenCl... | gpl-3.0 |
rdussurget/py-altimetry | altimetry/data/hydro.py | 1 | 91403 | # -*- coding: utf-8 -*-
import os
import glob
import inspect
import fnmatch
import datetime
from warnings import warn
import numpy as np
import matplotlib.pyplot as plt
from netCDF4 import Dataset as ncfile
import copy
import tempfile
from altimetry.tools.nctools import load_ncVar, load_ncVar_v2, nc a... | lgpl-3.0 |
jmorris0x0/CFDscraper | CFDscraper.py | 1 | 31725 | #! /usr/bin/env python3
# -*- coding: utf-8
"""
A module to scrape financial data from web tables and write to MySQL.
Usage: python CFDscraper.py ./config1.cfg
First and only arg is optional path to a config file.
One of the items is a list of lists with table info in it that seems like
a headache to parse with confi... | mit |
GuessWhoSamFoo/pandas | pandas/tests/tseries/offsets/test_offsets.py | 1 | 130620 | from datetime import date, datetime, timedelta
from distutils.version import LooseVersion
import numpy as np
import pytest
from pandas._libs.tslibs import (
NaT, OutOfBoundsDatetime, Timestamp, conversion, timezones)
from pandas._libs.tslibs.frequencies import (
INVALID_FREQ_ERR_MSG, get_freq_code, get_freq_s... | bsd-3-clause |
diorcety/intellij-community | python/helpers/pydev/pydevd.py | 1 | 100209 | #IMPORTANT: pydevd_constants must be the 1st thing defined because it'll keep a reference to the original sys._getframe
from __future__ import nested_scopes # Jython 2.1 support
import pydev_monkey_qt
from pydevd_utils import save_main_module
pydev_monkey_qt.patch_qt()
import traceback
from pydevd_frame_utils impor... | apache-2.0 |
rkuchan/Tax-Calculator | taxcalc/functions.py | 1 | 45524 |
import pandas as pd
from pandas import DataFrame
import math
import numpy as np
from .decorators import *
@iterate_jit(nopython=True)
def FilingStatus(MARS):
if MARS == 3 or MARS == 6:
_sep = 2
else: _sep = 1
return _sep
@iterate_jit(parameters=["ALD_StudentLoan_HC", "ALD_SelfEmploymentTax_HC",... | mit |
sangwook236/sangwook-library | python/test/language_processing/util_test.py | 2 | 44625 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
sys.path.append('../../src')
sys.path.append('./src')
import os, math, glob, time, string
import numpy as np
from PIL import Image, ImageDraw, ImageFont
import cv2
import matplotlib.pyplot as plt
import swl.util.util as swl_util
import swl.language_processing.u... | gpl-2.0 |
allisnone/pytrade | yhtrader.py | 1 | 38491 | # coding: utf-8
from __future__ import division
import os
import random
import re
import requests
from . import helpers
from .helpers import EntrustProp
from .webtrader import WebTrader, NotLoginError
import datetime
log = helpers.get_logger(__file__)
VERIFY_CODE_POS = 0
TRADE_MARKET = 1
HOLDER_NAME = 0
class YH... | gpl-2.0 |
harterj/moose | modules/porous_flow/test/tests/hysteresis/hys.py | 9 | 91444 | # Draws Pc curves and relperm curves
import os, sys
import math
import matplotlib.pyplot as plt
plt.rcParams.update({'figure.max_open_warning': 0})
def pc_fcn(sl, slmin, sgrdel, alpha, n, sm, pcm, pcmprime, lower_extension_type, sm_upper, pcm_upper, pcmprime_upper, upper_extension_type):
# Eqn(1) of Doughty2007
... | lgpl-2.1 |
tritemio/FRETBursts | fretbursts/tests/test_burstlib.py | 1 | 41583 | #
# FRETBursts - A single-molecule FRET burst analysis toolkit.
#
# Copyright (C) 2014 Antonino Ingargiola <tritemio@gmail.com>
#
"""
Module containing automated unit tests for FRETBursts.
Running the tests requires `py.test`.
"""
from __future__ import division
from builtins import range, zip
from collections impor... | gpl-2.0 |
dariox2/CADL | session-5/s5p1-gan.py | 1 | 33048 |
### Session 5: Generative Networks
### Assignment: Generative Adversarial Networks and Recurrent Neural
### Networks
#
# Table of Contents
#
# - [Overview](#overview)
# - [Learning Goals](#learning-goals)
# - [Part 1 - Generative Adversarial Networks (GAN) / Deep
# Convolutional GAN
# (DCGAN)](#part-1---generative-... | apache-2.0 |
wateraccounting/wa | Sheets/sheet7.py | 1 | 41955 | # -*- coding: utf-8 -*-
"""
Authors: Gonzalo Espinoza
UNESCO-IHE 2016
Contact: g.espinoza@unesco-ihe.org
Repository: https://github.com/wateraccounting/wa
Module: Sheets/sheet1
"""
import os
import pandas as pd
import xml.etree.ElementTree as ET
def create_sheet7(basin, period, units, data, output, template... | apache-2.0 |
geophysics/mtpy | mtpy/imaging/plotstrike.py | 1 | 62293 | # -*- coding: utf-8 -*-
"""
Created on Thu May 30 18:28:24 2013
@author: jpeacock-pr
"""
#==============================================================================
import matplotlib.pyplot as plt
import numpy as np
import os
from matplotlib.ticker import MultipleLocator
import mtpy.imaging.mtplottools as mtpl
... | gpl-3.0 |
preinh/gmpe-smtk | smtk/trellis/trellis_plots.py | 1 | 30457 | #!/usr/bin/env/python
# LICENSE
#
# Copyright (c) 2010-2014, GEM Foundation, G. Weatherill, M. Pagani,
# D. Monelli.
#
# The Hazard Modeller's Toolkit 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, eit... | agpl-3.0 |
tensorflow/data-validation | tensorflow_data_validation/statistics/generators/lift_stats_generator_test.py | 1 | 72112 | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | apache-2.0 |
pyspace/pyspace | pySPACE/missions/nodes/classification/svm_variants/SOR.py | 1 | 38928 | """ SVM variants using the SOR or dual gradient descent algorithm
All these variants have their offset in the target function.
SOR is used as abbreviation for Successive Overrelaxation.
"""
import numpy
from numpy import dot
import matplotlib.pyplot as plt
import scipy.spatial.distance
import logging
import warning... | bsd-3-clause |
mvdroest/RTLSDR-Scanner | src/panels.py | 1 | 37030 | #
# rtlsdr_scan
#
# http://eartoearoak.com/software/rtlsdr-scanner
#
# Copyright 2012 - 2015 Al Brown
#
# A frequency scanning GUI for the OsmoSDR rtl-sdr library at
# http://sdr.osmocom.org/trac/wiki/rtl-sdr
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | gpl-3.0 |
datapythonista/pandas | pandas/tests/reshape/test_melt.py | 2 | 37062 | import numpy as np
import pytest
import pandas as pd
from pandas import (
DataFrame,
lreshape,
melt,
wide_to_long,
)
import pandas._testing as tm
class TestMelt:
def setup_method(self, method):
self.df = tm.makeTimeDataFrame()[:10]
self.df["id1"] = (self.df["A"] > 0).astype(np.int... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.