repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
Mobleyta/GasChromino | PythonCode/gcawindow.py | 1 | 55183 | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 7 10:15:34 2016
This module contains the various classes and functions that run the tk windows
for the GCReaderTK program.
@author:
T. Andrew Mobley
Department of Chemistry
Noyce Science Center
Grinnell College
Grinnell, IA 50112
mobleyt@grinnell.edu
"""
import matplotl... | gpl-3.0 |
adlyons/AWOT | awot/graph/flight_level.py | 1 | 60141 | """
awot.graph.flight_level
=======================
A group of scripts to create plots of flight level data.
TODO:
Fix the time_stamp module to work with savefig. Okay on screen output,
but for some reason it bombs when trying to save.
Improve time series variable plotting?
"""
from __future__ import print_functio... | gpl-2.0 |
HaroldMills/Vesper | vesper/mpg_ranch/nfc_coarse_classifier_3_0/train_classifier.py | 1 | 39930 | """
Trains a Vesper coarse clip classifier.
A coarse clip classifier is a binary classifier that tries to determine
whether or not a clip contains a nocturnal flight call.
"""
from pathlib import Path
import bisect
import math
import os
import shutil
import time
from matplotlib.backends.backend_pdf import PdfPages
... | mit |
hammerlab/mhcflurry | downloads-generation/data_curated/curate_ms_by_pmid.py | 1 | 46973 | """
Filter and combine various peptide/MHC datasets to derive a composite training set,
optionally including eluted peptides identified by mass-spec.
"""
import sys
import argparse
import os
import json
import collections
from six.moves import StringIO
import pandas
from mhcflurry.common import normalize_allele_name
... | apache-2.0 |
koadman/proxigenomics | simulation/hic_simulator/src/fragment_map.py | 1 | 34931 | #!/usr/bin/env python
import argparse
import pysam
import numpy as np
import networkx as nx
import community as com
import math
import sys
from Bio import SeqIO
from Bio.Restriction import RestrictionBatch
from scipy.misc import factorial
from scipy.stats import poisson
from scipy.stats import geom
# use matplotlib wi... | gpl-2.0 |
BiaDarkia/scikit-learn | sklearn/utils/estimator_checks.py | 1 | 86219 | from __future__ import print_function
import types
import warnings
import sys
import traceback
import pickle
from copy import deepcopy
import struct
from functools import partial
import numpy as np
from scipy import sparse
from scipy.stats import rankdata
from sklearn.externals.six.moves import zip
from sklearn.exte... | bsd-3-clause |
pktrigg/pygsf | pygsf.py | 1 | 38850 | #name: pygsf
#created: July 2017
#by: p.kennedy@fugro.com
#description: python module to read and write a Generic Sensor Formaty (GSF) file natively
#notes: See main at end of script for example how to use this
#based on GSF Version 3.05
# See readme.md for more details
import sys
from glob import glob
import ... | apache-2.0 |
Erotemic/dtool | dtool_ibeis/depcache_table.py | 1 | 116756 | # -*- coding: utf-8 -*-
"""
Module contining DependencyCacheTable
python -m dtool_ibeis.depcache_control --exec-make_graph --show
python -m dtool_ibeis.depcache_control --exec-make_graph --show --reduce
FIXME:
RECTIFY: ismulti / ismodel need to be rectified. This indicate that this
table recieves multiple... | apache-2.0 |
jonyroda97/redbot-amigosprovaveis | lib/matplotlib/axis.py | 2 | 85455 | """
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
f... | gpl-3.0 |
tdaylan/pcat | pcat/util.py | 1 | 657672 | # plotting
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
# numpy
import random as randommod
import numpy as np
from matplotlib.widgets import Slider, Button, RadioButtons
# scipy
import scipy as sp
import scipy.interpolate
from scipy.special import erfinv, erf
from scipy.stats import... | mit |
jamestwebber/scipy | scipy/interpolate/_bsplines.py | 1 | 34702 | from __future__ import division, print_function, absolute_import
import functools
import operator
import numpy as np
from scipy._lib.six import string_types
from scipy.linalg import (get_lapack_funcs, LinAlgError,
cholesky_banded, cho_solve_banded)
from . import _bspl
from . import _fitpack_... | bsd-3-clause |
simpeg/discretize | discretize/operators/differential_operators.py | 1 | 129333 | import numpy as np
from scipy import sparse as sp
import warnings
from discretize.utils import (
sdiag,
speye,
kron3,
spzeros,
ddx,
av,
av_extrap,
make_boundary_bool,
)
from discretize.utils.code_utils import deprecate_method, deprecate_property
def _validate_BC(bc):
"""Checks if b... | mit |
brain-research/mirage-rl-qprop | rllab/algos/cma_es_lib.py | 2 | 377327 | """Module cma implements the CMA-ES (Covariance Matrix Adaptation
Evolution Strategy).
CMA-ES is a stochastic optimizer for robust non-linear non-convex
derivative- and function-value-free numerical optimization.
This implementation can be used with Python versions >= 2.6, namely
2.6, 2.7, 3.3, 3.4.
CMA-ES searches ... | mit |
interrogator/corpkit | corpkit/plotter.py | 1 | 45579 | from __future__ import print_function
from corpkit.constants import STRINGTYPE, PYTHON_VERSION
def plotter(df,
title=False,
kind='line',
x_label=None,
y_label=None,
style='ggplot',
figsize=(8, 4),
save=False,
legend_pos='be... | mit |
vondrejc/FFTHomPy | ffthompy/matvecs/objects.py | 1 | 39570 | """
This module contains classes and functions for trigonometric polynomials and
relating operators for homogenization.
"""
import copy
import itertools
from ffthompy.trigpol import Grid, enlarge, get_inverse, decrease, mean_index
import numpy as np
import numpy.fft as fft
import numpy.matlib as npmatlib
from warning... | mit |
DTOcean/dtocean-core | dtocean_core/interfaces/installation.py | 1 | 139701 | # -*- coding: utf-8 -*-
# Copyright (C) 2016 Mathew Topper, Vincenzo Nava, Adam Collin
# Copyright (C) 2017-2018 Mathew Topper
#
# 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, e... | gpl-3.0 |
scollis/iris | lib/iris/tests/test_analysis.py | 1 | 53456 | # (C) British Crown Copyright 2010 - 2014, Met Office
#
# This file is part of Iris.
#
# Iris is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | gpl-3.0 |
kseetharam/genPolaron | xanalysis_groundstate_paper_figs.py | 1 | 79206 | import numpy as np
import pandas as pd
import xarray as xr
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from matplotlib.lines import Line2D
import matplotlib.colors as colors
from matplotlib.animation import writers
from matplotlib.patches import ConnectionPatch
impor... | mit |
McDermott-Group/LabRAD | LabRAD/Servers/ADR/ADRServer.py | 1 | 31712 | # Copyright (C) 2015 Chris Wilen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in th... | gpl-2.0 |
dieterich-lab/riboseq-utils | riboutils/ribo_utils.py | 1 | 82716 | import logging
import os
import pandas as pd
import riboutils.ribo_filenames as filenames
logger = logging.getLogger(__name__)
class _return_key_dict(dict):
def __missing__(self,key):
return key
###
# The following labels are used to group similar ORF types.
###
orf_type_labels_mapping = {
'cano... | mit |
jcrist/dask-learn | dask_searchcv/tests/test_model_selection_sklearn.py | 2 | 37784 | # NOTE: These tests were copied (with modification) from the equivalent
# scikit-learn testing code. The scikit-learn license has been included at
# dask_searchcv/SCIKIT_LEARN_LICENSE.txt.
import pickle
import pytest
import dask
import dask.array as da
import numpy as np
from numpy.testing import (assert_array_equal,... | bsd-3-clause |
nicproulx/mne-python | mne/inverse_sparse/mxne_optim.py | 2 | 37295 | from __future__ import print_function
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Daniel Strohmeier <daniel.strohmeier@gmail.com>
#
# License: Simplified BSD
from copy import deepcopy
from math import sqrt, ceil
import numpy as np
from scipy import linalg
from .mxne_debiasing imp... | bsd-3-clause |
JarronL/pynrc | pynrc/pynrc_core.py | 1 | 123871 | """pyNRC - Python ETC and Simulator for JWST NIRCam"""
from __future__ import division, print_function#, unicode_literals
#from astropy.convolution import convolve_fft
#from scipy import fftpack
#import pdb
# Import libraries
from astropy.table import Table
from .nrc_utils import *
from .opds import *
from .psfs imp... | mit |
mjirik/pyseg_base | imcut/pycut.py | 1 | 62968 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Organ segmentation
Example:
$ pycat -f head.mat -o brain.mat
"""
from __future__ import absolute_import, division, print_function
import logging
logger = logging.getLogger(__name__)
# import unittest
# from optparse import OptionParser
import argparse
import sys
... | bsd-3-clause |
SEMAFORInformatik/femagtools | femagtools/dxfsl/geom.py | 1 | 126200 | # -*- coding: utf-8 -*-
"""
femagtools.dxfsl.geom
~~~~~~~~~~~~~~~~~~~~~
a geometry is composed of connected shapes (lines, arcs, circles) which
build areas
Authors: Ronald Tanner, Beat Holm
"""
from __future__ import print_function
import numpy as np
import networkx as nx
import logging
import sys
from .co... | bsd-2-clause |
roshantha9/AbstractManycoreSim | src/libNoCModel/OnChipInterconnect_NoC.py | 1 | 40851 | import pprint
import sys
import math
from collections import OrderedDict
import numpy as np
#import networkx as nx
import matplotlib.pyplot as plt
## local imports
from SimParams import SimParams
class NoC:
def __init__(self, node_list, noc_w, noc_h):
self.node_list = node_list
... | gpl-3.0 |
datapythonista/pandas | pandas/plotting/_matplotlib/core.py | 3 | 54954 | from __future__ import annotations
from typing import (
TYPE_CHECKING,
Hashable,
)
import warnings
from matplotlib.artist import Artist
import numpy as np
from pandas.errors import AbstractMethodError
from pandas.util._decorators import cache_readonly
from pandas.core.dtypes.common import (
is_categoric... | bsd-3-clause |
ilogue/pyrsa | pyrsa/vis/model_plot.py | 1 | 37288 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Barplot for model comparison based on a results file
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.path import Path
import matplotlib.transforms as transforms
from matplotlib import cm
import ne... | lgpl-3.0 |
idea4bsd/idea4bsd | python/helpers/pydev/pydevd.py | 1 | 63185 | '''
Entry point module (keep at root):
This module starts the debugger.
'''
from __future__ import nested_scopes # Jython 2.1 support
import atexit
import os
import sys
import traceback
from _pydevd_bundle.pydevd_constants import IS_JYTH_LESS25, IS_PY3K, IS_PY34_OLDER, get_thread_id, dict_keys, dict_pop, dict_conta... | apache-2.0 |
shoyer/xray | xarray/tests/test_variable.py | 1 | 83056 | import warnings
from collections import OrderedDict
from copy import copy, deepcopy
from datetime import datetime, timedelta
from distutils.version import LooseVersion
from textwrap import dedent
import numpy as np
import pandas as pd
import pytest
import pytz
from xarray import Coordinate, Dataset, IndexVariable, Va... | apache-2.0 |
peastman/deepchem | deepchem/models/tests/test_reload.py | 2 | 35146 | """
Test reload for trained models.
"""
import os
import pytest
import unittest
import tempfile
import numpy as np
import deepchem as dc
import tensorflow as tf
import scipy.io
from flaky import flaky
from sklearn.ensemble import RandomForestClassifier
from deepchem.molnet.load_function.chembl25_datasets import CHEMBL2... | mit |
avehtari/GPy | GPy/util/datasets.py | 1 | 65029 | from __future__ import print_function
import csv
import os
import copy
import numpy as np
import GPy
import scipy.io
import zipfile
import tarfile
import datetime
import json
import re
import sys
from io import open
from .config import *
ipython_available=True
try:
import IPython
except ImportError:
ipython_av... | bsd-3-clause |
cmoutard/mne-python | mne/decoding/time_gen.py | 1 | 55599 | # Authors: Jean-Remi King <jeanremi.king@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Clement Moutard <clement.moutard@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
import copy
from ..io.pick import pick_... | bsd-3-clause |
yossitamarov/calc_local_library | polls/src/pycel/excelcompiler.py | 1 | 38529 |
# We will choose our wrapper with os compatibility
# ExcelComWrapper : Must be run on Windows as it requires a COM link to an Excel instance.
# ExcelOpxWrapper : Can be run anywhere but only with post 2010 Excel formats
try:
import win32com.client
import pythoncom
from pycel.excelwrapper import... | gpl-3.0 |
carloscanova/elephant | elephant/asset.py | 1 | 69319 | """
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 ... | bsd-3-clause |
digitie/magneto | native/wxmplplot/wxmplitf.py | 1 | 50063 | """
.. inheritance-diagram:: pyopus.wxmplplot.wxmplitf
:parts: 1
**wxPython canvas for displaying Matplotlib plots**
This module provides a wxPython canvas for Matplotlib to render its plots on.
The canvas supports zooming and displays cursor position in axes coordinates
as the cursor moves across the canvas.
A... | unlicense |
rabernat/xray | xarray/tests/test_variable.py | 1 | 73442 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import namedtuple
from copy import copy, deepcopy
from datetime import datetime, timedelta
from textwrap import dedent
import pytest
from distutils.version import LooseVersion
import numpy as n... | apache-2.0 |
rtrwalker/geotecha | geotecha/speccon/speccon1d_vr.py | 1 | 61497 | #!/usr/bin/env python
# geotecha - A software suite for geotechncial engineering
# Copyright (C) 2018 Rohan T. Walker (rtrwalker@gmail.com)
#
# 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, eit... | gpl-3.0 |
zfrenchee/pandas | pandas/tests/internals/test_internals.py | 1 | 47833 | # -*- 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 |
vortex-exoplanet/VIP | vip_hci/negfc/mcmc_sampling.py | 2 | 53793 | #! /usr/bin/env python
"""
Module with the MCMC (``emcee``) sampling for NEGFC parameter estimation.
"""
__author__ = 'O. Wertz, Carlos Alberto Gomez Gonzalez, V. Christiaens'
__all__ = ['mcmc_negfc_sampling',
'chain_zero_truncated',
'show_corner_plot',
'show_walk_plot',
'... | mit |
mikofski/pvlib-python | pvlib/irradiance.py | 1 | 108445 | """
The ``irradiance`` module contains functions for modeling global
horizontal irradiance, direct normal irradiance, diffuse horizontal
irradiance, and total irradiance under various conditions.
"""
import datetime
from collections import OrderedDict
from functools import partial
import numpy as np
import pandas as ... | bsd-3-clause |
kmuehlbauer/wradlib | wradlib/io/xarray.py | 1 | 66407 | #!/usr/bin/env python
# Copyright (c) 2011-2019, wradlib developers.
# Distributed under the MIT License. See LICENSE.txt for more info.
"""
Xarray powered Data I/O
^^^^^^^^^^^^^^^^^^^^^^^
Reads data from netcdf-based CfRadial1, CfRadial2 and hdf5-based ODIM_H5 and
other hdf5-flavours (GAMIC).
Writes data to CfRadi... | mit |
saullocastro/pyNastran | pyNastran/op2/op2.py | 1 | 50120 | #pylint: disable=W0201,W0223,R0901,R0902,R0904
"""
Main OP2 class
ftp://161.24.15.247/Nastran2011/seminar/SEC04-DMAP_MODULES.pdf
Datablock Type Description
EFMFSMS Matrix 6 x 1 Total Effective mass matrix
EFMASSS Matrix 6 x 6 Effective mass matrix
RBMASS Matrix 6 x 6 Rigid body mass matrix
EFMFACS Matrix 6 X N Modal e... | lgpl-3.0 |
charlyoleg/Cnc25D | cnc25d/gear_profile.py | 1 | 73100 | # gear_profile.py
# generates a gear_profile and simulates it.
# created by charlyoleg on 2013/08/20
#
# (C) Copyright 2013 charlyoleg
#
# This file is part of the Cnc25D Python package.
#
# Cnc25D is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as publish... | gpl-3.0 |
winklerand/pandas | pandas/io/parsers.py | 1 | 122801 | """
Module contains tools for processing files into DataFrames or other objects
"""
from __future__ import print_function
from collections import defaultdict
import re
import csv
import sys
import warnings
import datetime
from textwrap import fill
import numpy as np
from pandas import compat
from pandas.compat import... | bsd-3-clause |
adlyons/AWOT | awot/graph/common.py | 1 | 34752 | """
awot.graph.common
=================
Common graphing routines.
"""
from __future__ import print_function
import numpy as np
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
from matplotlib.dates import (
DateFormatter, SecondLocator, MinuteLocator,
HourLocator, DayLocator)
from mat... | gpl-2.0 |
Purg/SMQTK | python/smqtk/algorithms/descriptor_generator/colordescriptor/colordescriptor.py | 1 | 50447 | import abc
import logging
import json
import math
import mimetypes
import multiprocessing
import multiprocessing.pool
import os
import os.path as osp
import subprocess
import sys
import tempfile
import numpy
import sklearn.cluster
from smqtk.algorithms.descriptor_generator import DescriptorGenerator
from smqtk.repres... | bsd-3-clause |
Geosyntec/python-tidegates | docs/sphinxext/ipython_directive.py | 1 | 37586 | # -*- coding: utf-8 -*-
"""
Sphinx directive to support embedded IPython code.
This directive allows pasting of entire interactive IPython sessions, prompts
and all, and their code will actually get re-executed at doc build time, with
all prompts renumbered sequentially. It also allows you to input code as a pure
pyth... | bsd-3-clause |
MJuddBooth/pandas | pandas/tests/groupby/test_grouping.py | 1 | 32219 | # -*- coding: utf-8 -*-
""" test where we are determining what we are grouping, or getting groups """
import numpy as np
import pytest
from pandas.compat import long, lrange
import pandas as pd
from pandas import (
CategoricalIndex, DataFrame, Index, MultiIndex, Series, Timestamp, compat,
date_range)
from p... | bsd-3-clause |
pylayers/pylayers | pylayers/measures/vna/E5072A.py | 1 | 34181 | #-*- coding:Utf-8 -*-
import os
import sys
import socket
import doctest
import time
import struct
import numpy as np
import sqlite3
import matplotlib.pyplot as plt
from types import *
from numpy import array
import h5py
import select
from pylayers.util.project import *
import pylayers.signal.bsignal as bs
import pylay... | mit |
jamestwebber/scipy | scipy/cluster/hierarchy.py | 1 | 146751 | """
Hierarchical clustering (:mod:`scipy.cluster.hierarchy`)
========================================================
.. currentmodule:: scipy.cluster.hierarchy
These functions cut hierarchical clusterings into flat clusterings
or find the roots of the forest formed by a cut by providing the flat
cluster ids of each ... | bsd-3-clause |
karllessard/tensorflow | tensorflow/python/keras/engine/data_adapter.py | 1 | 53325 | # Copyright 2019 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 |
bmazin/ARCONS-pipeline | wavelengthcal/waveCal.py | 1 | 67956 | #!/bin/env python
'''
Author: Alex Walter Date: March 18, 2014
Based on Danica Marsden's earlier code
Reads in a wavelength calibration file (blue, red and IR laser light
) that has a beam map solution, and makes a histogram of photon phase
amplitudes for each pixel. Bad pixels are flagged. Ga... | gpl-2.0 |
honahursey/pyFDA | pyfda/pyfda_lib.py | 1 | 35844 | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 30 10:29:42 2012
@author: Muenker_2
"""
#
# Copyright (c) 2011 Christopher Felton, Christian Münker
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software F... | apache-2.0 |
mattilyra/gensim | gensim/test/test_sklearn_api.py | 1 | 60933 | import unittest
import numpy
import codecs
import pickle
from scipy import sparse
try:
from sklearn.pipeline import Pipeline
from sklearn import linear_model, cluster
from sklearn.exceptions import NotFittedError
except ImportError:
raise unittest.SkipTest("Test requires scikit-learn to be installed, w... | lgpl-2.1 |
buguen/pylayers | pylayers/gui/editor_select.py | 1 | 62972 | #!usr/bin/python
# -*- coding: latin1 -*-
import os
import pdb
import Image
import numpy as np
from pylayers.util import geomutil as geu
from pylayers.util import pyutil as pyu
import pylayers.util.plotutil as plu
import matplotlib.pyplot as plt
from pylayers.util.easygui import *
from matplotlib.widgets import Rectan... | lgpl-3.0 |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/io/sql.py | 1 | 62921 | # -*- coding: utf-8 -*-
"""
Collection of query wrappers / abstractions to both facilitate data
retrieval and to reduce dependency on DB-specific API.
"""
from __future__ import print_function, division
from datetime import datetime, date, time
import warnings
import traceback
import re
import numpy as np
import pan... | mit |
nipy/PySurfer | surfer/viz.py | 1 | 148235 | from copy import deepcopy
import logging
from math import floor
import os
from os.path import join as pjoin
import warnings
from warnings import warn
import numpy as np
import nibabel as nib
from mayavi import mlab
from mayavi.tools.mlab_scene_model import MlabSceneModel
from mayavi.core import lut_manager
from maya... | bsd-3-clause |
guillaumelenoir/WAVEPAL | wavepal/Wavepal.py | 1 | 256419 | import numpy as np
class Wavepal:
def __init__(self,t,mydata,t_axis_label="",mydata_axis_label="",t_units=None,mydata_units=None):
""" Constructor of Wavepal class. It Initializes all the variables of Wavepal class with an access outside Wavepal (the user can access them). The list of available variables is g... | mit |
rs2/pandas | pandas/tests/indexes/common.py | 1 | 33466 | import gc
from typing import Type
import numpy as np
import pytest
from pandas._libs import iNaT
from pandas.errors import InvalidIndexError
from pandas.core.dtypes.common import is_datetime64tz_dtype
from pandas.core.dtypes.dtypes import CategoricalDtype
import pandas as pd
from pandas import (
CategoricalInde... | bsd-3-clause |
MJuddBooth/pandas | pandas/core/panel.py | 1 | 55874 | """
Contains data structures designed for manipulating panel (3-dimensional) data
"""
# pylint: disable=E1103,W0231,W0212,W0621
from __future__ import division
from collections import OrderedDict
import warnings
import numpy as np
import pandas.compat as compat
from pandas.compat import map, range, u, zip
from panda... | bsd-3-clause |
UW-Hydro/bmorph | bmorph/evaluation/plotting.py | 1 | 113615 | import numpy as np
import xarray as xr
import pandas as pd
from typing import List
import matplotlib as mpl
import matplotlib.pyplot as plt
import scipy
import probscale
import networkx as nx
import graphviz as gv
import pygraphviz as pgv
import probscale
from networkx.drawing.nx_agraph import graphviz_layout
from bm... | mit |
gbrammer/grizli | grizli/multifit.py | 1 | 192102 | """Functionality for manipulating multiple grism exposures simultaneously
"""
import os
import time
import glob
from collections import OrderedDict
import multiprocessing as mp
import scipy.ndimage as nd
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table
import astropy.io.fits as pyfi... | mit |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/linear_model/least_angle.py | 1 | 57314 | """
Least Angle Regression algorithm. See the documentation on the
Generalized Linear Model for a complete discussion.
"""
from __future__ import print_function
# Author: Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux
#
# License: BSD 3 ... | mit |
stijnvanhoey/pystran | pystran/sensitivity_morris.py | 1 | 49424 | # -*- coding: utf-8 -*-
"""
@author: VHOEYS
"""
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.ticker import MaxNLocator
from mpl_toolkits.axes_grid1.inset_locator import zoomed_inset_axes
from mpl_toolkits.axes_grid1.inset_locator import mark_inset
from matplotlib.transforms i... | bsd-3-clause |
gkunter/coquery | coquery/functions.py | 1 | 49741 | # -*- coding: utf-8 -*-
"""
functions.py is part of Coquery.
Copyright (c) 2016-2018 Gero Kunter (gero.kunter@coquery.org)
Coquery is released under the terms of the GNU General Public License (v3).
For details, see the file LICENSE that you should have received along
with Coquery. If not, see <http://www.gnu.org/lic... | gpl-3.0 |
runningwolf666/parsePYPI | tongji.py | 1 | 281767 | d = {'fluent-logger-pyramid_0.0.3':'201', 'django-post_office_1.1.2':'4868', 'mycloud_0.51':'199', 'mixin_1.1':'156', 'sixer_0.4':'2019', 'django-oracle-drcp_1.0.1':'161', 'Edis_1.0-alpha':'90', 'stcrestclient_1.2.5':'2290', 'pyrasite_2.0':'1141', 'networking-brocade_2015.1.1.dev23':'1553', 'profitbricks_2.1':'563', 'n... | gpl-2.0 |
dmlc/xgboost | tests/python/test_with_sklearn.py | 1 | 42753 | import collections
import importlib.util
import numpy as np
import xgboost as xgb
import testing as tm
import tempfile
import os
import shutil
import pytest
import json
rng = np.random.RandomState(1994)
pytestmark = pytest.mark.skipif(**tm.no_sklearn())
class TemporaryDirectory(object):
"""Context manager for t... | apache-2.0 |
pizzathief/scipy | scipy/interpolate/_bsplines.py | 2 | 34557 | import functools
import operator
import numpy as np
from numpy.core.multiarray import normalize_axis_index
from scipy.linalg import (get_lapack_funcs, LinAlgError,
cholesky_banded, cho_solve_banded)
from . import _bspl
from . import _fitpack_impl
from . import _fitpack as _dierckx
from scipy.... | bsd-3-clause |
skrueger111/zazzie | src/scripts/convergence_test.py | 3 | 31326 | # from __future__ import absolute_import
# from __future__ import division
# from __future__ import print_function
# # from __future__ import unicode_literals
"""SASSIE: Copyright (C) 2011-2015 Joseph E. Curtis, Ph.D.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU G... | gpl-3.0 |
huzq/scikit-learn | sklearn/naive_bayes.py | 2 | 46904 | # -*- coding: utf-8 -*-
"""
The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These
are supervised learning methods based on applying Bayes' theorem with strong
(naive) feature independence assumptions.
"""
# Author: Vincent Michel <vincent.michel@inria.fr>
# Minor fixes by Fabian Pedre... | bsd-3-clause |
christianurich/DynaMind-ToolBox | DynaMind-Performance-Assessment/3rdparty/CD3Waterbalance/Module/Demand_Model.py | 1 | 50895 | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 02 08:41:08 2014
@author: Acer
"""
import sys
import pycd3
from datetime import datetime
from matplotlib.dates import date2num
import random
from math import floor, ceil
from numpy import add, around, asarray
#sys.path.append('/Users/christianurich/Documents/CD3Waterbala... | gpl-2.0 |
theislab/anndata | anndata/tests/test_concatenate.py | 1 | 36295 | from collections.abc import Hashable
from copy import deepcopy
from itertools import chain, product
from functools import partial, singledispatch
import warnings
import numpy as np
from numpy import ma
import pandas as pd
from pandas.api.types import is_categorical_dtype
import pytest
from scipy import sparse
from bol... | bsd-3-clause |
justinbois/bebi103_utils | bebi103/image.py | 1 | 44410 | import warnings
import numpy as np
import pandas as pd
import scipy.odr
import numba
import skimage.io
import skimage.measure
import colorcet
import bokeh.models
import bokeh.palettes
import bokeh.plotting
from matplotlib import path
from . import viz
def imshow(
im,
cmap=None,
frame_height=400,
... | mit |
jyhmiinlin/cineFSE | CsTransform/pynufftback.py | 1 | 37803 | '''@package docstring
@author: Jyh-Miin Lin (Jimmy), Cambridge University
@address: jyhmiinlin@gmail.com
Created on 2013/1/21
================================================================================
This file is part of pynufft.
pynufft is free software: you can redistribute it and/or modify
it u... | gpl-3.0 |
AbeJones/obspyck-binaries | util.py | 1 | 46042 | #-------------------------------------------------------------------
# Filename: util.py
# Purpose: Helper functions for ObsPyck
# Author: Tobias Megies, Lion Krischer
# Email: megies@geophysik.uni-muenchen.de
# License: GPLv2
#
# Copyright (C) 2010 Tobias Megies, Lion Krischer
#---------------------------------... | gpl-2.0 |
catherinezucker/radfil | radfil/radfil_class.py | 1 | 59952 | import sys
import warnings
import numpy as np
import numbers
import math
from collections import defaultdict
import types
from scipy.interpolate import splprep, splev
import matplotlib.pyplot as plt
import matplotlib as mpl
from copy import copy, deepcopy
import pandas as pd
import astropy.units as u
import astropy.c... | gpl-3.0 |
xuewei4d/scikit-learn | sklearn/ensemble/_gb.py | 4 | 72216 | """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. Regressi... | bsd-3-clause |
ioam/holoviews | holoviews/util/__init__.py | 1 | 35515 | import os, sys, inspect, shutil
from collections import defaultdict
import param
from pyviz_comms import extension as _pyviz_extension
from ..core import DynamicMap, HoloMap, Dimensioned, ViewableElement, StoreOptions, Store
from ..core.options import options_policy, Keywords, Options
from ..core.operation import Op... | bsd-3-clause |
gerberlab/mitre | mitre/load_data/pplacer.py | 1 | 33367 | """Load a pplacer result from .jplace file, extract useful information.
The relevant tree format is described in
"A FORMAT FOR PHYLOGENETIC PLACEMENTS"
Frederick A Matsen, Noah G Hoffman, Aaron Gallagher, and
Alexandros Stamatakis, arXiv:1201.3397v1 [q-bio.PE],
section 4.1:
--
"To represent the tree, we extend the... | gpl-3.0 |
srio/Orange-XOPPY | orangecontrib/xoppy/util/xoppy_xraylib_util.py | 1 | 102575 |
import xraylib
import numpy
import scipy.constants as codata
toangstroms = codata.h * codata.c / codata.e * 1e10
#=======================================================================================================================
# GENERIC UTILITIES
#=============================================================... | bsd-2-clause |
tpltnt/scapy | scapy/utils.py | 1 | 32279 | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
General utility functions.
"""
import codecs
import os,sys,socket,types
import random,time
import gzip,zlib
import r... | gpl-2.0 |
amolkahat/pandas | pandas/core/arrays/datetimelike.py | 1 | 31457 | # -*- coding: utf-8 -*-
from datetime import datetime, timedelta
import operator
import warnings
import numpy as np
from pandas._libs import lib, iNaT, NaT
from pandas._libs.tslibs import timezones
from pandas._libs.tslibs.timedeltas import delta_to_nanoseconds, Timedelta
from pandas._libs.tslibs.period import (
... | bsd-3-clause |
tynn/numpy | numpy/lib/npyio.py | 2 | 83396 | from __future__ import division, absolute_import, print_function
import io
import sys
import os
import re
import itertools
import warnings
import weakref
from operator import itemgetter, index as opindex
import numpy as np
from . import format
from ._datasource import DataSource
from numpy.core.multiarray import pack... | bsd-3-clause |
fabriziocosta/GraphEmbed | graphembed/graph_layout_embedder.py | 1 | 30715 | #!/usr/bin/env python
"""Provides layout in 2D of vectors."""
from collections import defaultdict
from collections import Counter
import networkx as nx
import matplotlib
import matplotlib.pyplot as plt
from scipy.spatial import ConvexHull
from matplotlib.collections import PatchCollection
from matplotlib.patches impor... | mit |
peterdougstuart/PCWG | pcwg/core/dataset.py | 2 | 47326 | import pandas as pd
import numpy as np
import datetime
import math
import os
import rews
import turbine
import warnings
from power_deviation_matrix import ResidualWindSpeedMatrix
from ..core.status import Status
warnings.simplefilter('ignore', np.RankWarning)
def getSeparatorValue(separator):
try:
retu... | mit |
FRESNA/PyPSA | pypsa/io.py | 1 | 41766 | ## Copyright 2015-2017 Tom Brown (FIAS), Jonas Hoersch (FIAS)
## 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 |
LaurentClaessens/phystricks | src/Constructors.py | 1 | 41797 | # -*- coding: utf8 -*-
###########################################################################
# This is part of the module phystricks
#
# phystricks 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... | gpl-3.0 |
anntzer/seaborn | seaborn/tests/test_relational.py | 1 | 56717 | from itertools import product
import warnings
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import pytest
from numpy.testing import assert_array_equal
from ..palettes import color_palette
from ..relational import (
_RelationalPlotter,
_LinePlotter,
_Scatt... | bsd-3-clause |
danrg/RGT-tool | src/RGT/gridMng/views.py | 1 | 61839 | import json
import logging
import os
import sys
import tempfile
import traceback
from datetime import datetime
from io import BytesIO
from types import StringType
from django.contrib.auth.decorators import login_required
from django.core.urlresolvers import reverse
from django.http import HttpResponse
from django.shor... | mit |
lina9527/easybi | viz.py | 1 | 54580 | """This module contains the "Viz" objects
These objects represent the backend of all the visualizations that
Superset can render.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
import hashlib
import l... | mit |
deepchem/deepchem | deepchem/data/data_loader.py | 2 | 47681 | """
Process an input dataset into a format suitable for machine learning.
"""
import os
import tempfile
import zipfile
import time
import logging
import warnings
from typing import List, Optional, Tuple, Any, Sequence, Union, Iterator
import pandas as pd
import numpy as np
from deepchem.utils.typing import OneOrMany
... | mit |
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated | python-packages/mne-python-0.10/mne/viz/evoked.py | 1 | 33365 | """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 |
madphysicist/numpy | numpy/fft/_pocketfft.py | 2 | 52860 | """
Discrete Fourier Transforms
Routines in this module:
fft(a, n=None, axis=-1, norm="backward")
ifft(a, n=None, axis=-1, norm="backward")
rfft(a, n=None, axis=-1, norm="backward")
irfft(a, n=None, axis=-1, norm="backward")
hfft(a, n=None, axis=-1, norm="backward")
ihfft(a, n=None, axis=-1, norm="backward")
fftn(a, ... | bsd-3-clause |
lukeshingles/artistools | artistools/lightcurve/plotlightcurve.py | 1 | 55120 | #!/usr/bin/env python3
import argparse
# import glob
# import itertools
import math
import multiprocessing
import os
# import sys
from pathlib import Path
from typing import Iterable
import numpy as np
import pandas as pd
import artistools as at
import artistools.spectra
import matplotlib.pyplot as plt
import matplo... | mit |
hksoni/L2BM-Simulator | StatProcessorICC.py | 1 | 31904 | # ***** begin license block *****
# L2BM Simulator: Lazy Load-Balancing Multicast(L2BM) simulator
# copyright (c) 2016-2017, inria.
#
# this work was partially supported by the anr reflexion project (anr-14-ce28-0019).
# the authors alone are responsible for this work.
#
# see the file authors for details and contact i... | gpl-3.0 |
X0Leon/pyfin | pyfin/core.py | 1 | 49637 | # -*- coding: utf-8 -*-
import random
from . import utils
from .utils import format_percent, format_2float, format_100p, get_period_name
import numpy as np
import pandas as pd
from pandas.core.base import PandasObject
from tabulate import tabulate
from matplotlib import pyplot as plt
import sklearn.manifold
import skl... | mit |
phobson/statsmodels | statsmodels/regression/mixed_linear_model.py | 1 | 91485 | """
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
hierachical linear models.
The MixedLM class fits linear mixed effects models to data, and
pr... | bsd-3-clause |
GuessWhoSamFoo/pandas | pandas/core/indexes/base.py | 1 | 184596 | from datetime import datetime, timedelta
import operator
from textwrap import dedent
import warnings
import numpy as np
from pandas._libs import (
Timedelta, algos as libalgos, index as libindex, join as libjoin, lib,
tslibs)
from pandas._libs.lib import is_datetime_array
import pandas.compat as compat
from p... | bsd-3-clause |
jswoboda/MahaliPlotting | PlottingClass.py | 1 | 38023 | #!/usr/bin/env python
"""
Created on Sun Feb 28 15:56:10 2016
@author: John Swoboda
"""
from __init__ import Path
import scipy as sp
from six.moves.configparser import ConfigParser as configparser
import numpy as np
from scipy.interpolate import griddata
#import matplotlib
#matplotlib.use('Agg') # for use where you'r... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.