repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
jseabold/statsmodels | statsmodels/genmod/generalized_linear_model.py | 1 | 84593 | """
Generalized linear models currently supports estimation using the one-parameter
exponential families
References
----------
Gill, Jeff. 2000. Generalized Linear Models: A Unified Approach.
SAGE QASS Series.
Green, PJ. 1984. "Iteratively reweighted least squares for maximum
likelihood estimation, and some ... | bsd-3-clause |
ioam/svn-history | contrib/JanA/LSCSMNEW.py | 1 | 115466 | from scipy.optimize import fmin_ncg, anneal, fmin_cg, fmin_bfgs, fmin_tnc, fmin_l_bfgs_b
import __main__
import numpy
import pylab
import sys
sys.path.append('/home/jan/Theano/')
import theano
theano.config.floatX='float32'
#theano.config.warn.sum_sum_bug=False
from theano import tensor as T
from theano import functio... | bsd-3-clause |
meren/anvio | anvio/variabilityops.py | 1 | 155810 | # -*- coding: utf-8
# pylint: disable=line-too-long
"""Classes to make sense of sequence variation"""
import os
import sys
import copy
import random
import inspect
import argparse
import numpy as np
import pandas as pd
import operator as op
from scipy.stats import entropy
import anvio
import anvio.tables as t
impo... | gpl-3.0 |
RPGOne/Skynet | scikit-learn-c604ac39ad0e5b066d964df3e8f31ba7ebda1e0e/sklearn/ensemble/gradient_boosting.py | 3 | 55774 | """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... | bsd-3-clause |
plotly/python-api | packages/python/plotly/plotly/graph_objs/_isosurface.py | 1 | 86782 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Isosurface(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "isosurface"
_valid_props = {
"autocolorscale",
"caps",
"cauto",
"cma... | mit |
cbclab/MDT | mdt/visualization/maps/base.py | 1 | 70091 | import warnings
from copy import copy, deepcopy
import numbers
import matplotlib.font_manager
import nibabel
import numpy as np
import yaml
import mdt
import mdt.visualization.layouts
from mdt.lib.nifti import load_nifti, NiftiInfoDecorated
from mdt.visualization.dict_conversion import StringConversion, \
SimpleCl... | lgpl-3.0 |
ryandougherty/mwa-capstone | MWA_Tools/build/matplotlib/lib/matplotlib/font_manager.py | 1 | 43666 | """
A module for finding, managing, and using fonts across platforms.
This module provides a single :class:`FontManager` instance that can
be shared across backends and platforms. The :func:`findfont`
function returns the best TrueType (TTF) font file in the local or
system font path that matches the specified :class... | gpl-2.0 |
bdestombe/flopy-1 | flopy/modflow/mfsfr2.py | 1 | 100660 | __author__ = 'aleaf'
import sys
import textwrap
import os
import numpy as np
from numpy.lib import recfunctions
from ..pakbase import Package
from ..utils import MfList
from ..utils.flopy_io import line_parse
class ModflowSfr2(Package):
"""
Streamflow-Routing (SFR2) Package Class
Paramet... | bsd-3-clause |
cloudera/ibis | ibis/backends/impala/client.py | 1 | 60212 | import io
import operator
import re
import threading
import time
import traceback
import weakref
from collections import deque
from posixpath import join as pjoin
import numpy as np
import pandas as pd
from pkg_resources import parse_version
import ibis.common.exceptions as com
import ibis.expr.datatypes as dt
import... | apache-2.0 |
zijistark/ck2utils | esc/duchies.py | 1 | 30811 | #!/usr/bin/env python3
# Ioannes Barbarus
# nicholas.escalona@gmail.com
# requires:
# Python 3.4
# funcparserlib
# Matplotlib
# Networkx
# NumPy
# Pillow
# tabulate
import collections
import csv
import operator
import pathlib
import re
import statistics
import time
import funcparserlib
im... | gpl-2.0 |
bmcfee/pumpp | pumpp/labels.py | 1 | 32771 | ##
# Adapted from sklearn.preprocessing.label
# v0.21.2
#
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Joel Nothman <joel.nothman@gmai... | isc |
plotly/python-api | packages/python/plotly/plotly/graph_objs/scatterternary/marker/_colorbar.py | 1 | 69895 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "scatterternary.marker"
_path_str = "scatterternary.marker.colorbar"
_valid_props = {
... | mit |
vortex-ape/scikit-learn | sklearn/linear_model/ridge.py | 4 | 55029 | """
Ridge regression
"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com>
# Fabian Pedregosa <fabian@fseoane.net>
# Michael Eickenberg <michael.eickenberg@nsup.org>
# License: BSD 3 clause
from abc import ABCMeta, abstractmethod
impor... | bsd-3-clause |
pydata/xarray | xarray/tests/test_backends.py | 1 | 209972 | import contextlib
import gzip
import itertools
import math
import os.path
import pickle
import re
import shutil
import sys
import tempfile
import warnings
from contextlib import ExitStack
from io import BytesIO
from pathlib import Path
from typing import Optional
import numpy as np
import pandas as pd
import pytest
fr... | apache-2.0 |
boomsbloom/dtm-fmri | DTM/for_gensim/lib/python2.7/site-packages/seaborn/tests/test_categorical.py | 1 | 91063 | import numpy as np
import pandas as pd
import scipy
from scipy import stats, spatial
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decorators import skipif
from . import PlotTestCase
from .. i... | mit |
lowrie/pyRouterJig | qt_fig.py | 1 | 42031 | ###########################################################################
#
# Copyright 2015-2018 Robert B. Lowrie (http://github.com/lowrie)
#
# This file is part of pyRouterJig.
#
# pyRouterJig is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as publishe... | gpl-3.0 |
xhqu1981/pymatgen | pymatgen/io/abinit/flows.py | 1 | 105989 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
A Flow is a container for Works, and works consist of tasks.
Flows are the final objects that can be dumped directly to a pickle file on disk
Flows are executed using abirun (abipy).
"""
from __future__ impo... | mit |
buddyd16/Structural-Engineering | Concrete/concrete_T_beam_gui.py | 1 | 75572 | '''
BSD 3-Clause License
Copyright (c) 2019, Donald N. Bockoven III
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
l... | bsd-3-clause |
google/picatrix | picatrix/magics/timesketch.py | 1 | 37971 | """Timesketch magic module.
This module conatins an implementation for the Picatrix Timesketch integration.
It enables colab/jupyter to send and receive data from a Timesketch sketch.
"""
import datetime
import logging
import os
from typing import Any
from typing import Dict
from typing import List
from typing import... | apache-2.0 |
pcamara/scTDA | scTDA/main.py | 1 | 97795 | """"
scTDA. Library for topological data analysis of high-throughput single-cell RNA-seq data.
Copyright 2017, Pablo G. Camara, Columbia University. All rights reserved.
"""
__author__ = "Pablo G. Camara"
__maintainer__ = "Pablo G. Camara"
__email__ = "pablo.g.camara@gmail.com"
__credits__ = "Patrick van Nieuwenhuiz... | gpl-3.0 |
Juanlu001/poliastro | tests/tests_twobody/test_orbit.py | 1 | 38736 | import pickle
from collections import OrderedDict
from functools import partial
from unittest import mock
import hypothesis.strategies as st
import matplotlib
import numpy as np
import pytest
from astropy import units as u
from astropy.coordinates import (
ITRS,
CartesianDifferential,
CartesianRepresentati... | mit |
adykstra/mne-python | mne/viz/utils.py | 1 | 108632 | # -*- coding: utf-8 -*-
"""Utility functions for plotting M/EEG data."""
# 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>
# Mainak... | bsd-3-clause |
nsalomonis/AltAnalyze | visualization_scripts/matplotlib_venn.py | 1 | 46150 | '''
Venn diagram plotting routines.
Copyright 2012, Konstantin Tretyakov.
http://kt.era.ee/
Licensed under MIT license.
This package contains routines for plotting area-weighted two- and three-circle venn diagrams.
There are four main functions here: :code:`venn2`, :code:`venn2_circles`, :code:`venn3`, :code:`venn3_... | apache-2.0 |
timcera/tsgettoolbox | tsgettoolbox/functions/nwis.py | 1 | 122329 | # -*- coding: utf-8 -*-
r"""
tsgettoolbox command line/library tools to retrieve time series.
This program is a collection of utilities to download data from various
web services.
"""
from __future__ import absolute_import, division, print_function
import logging
import os
import warnings
from io import BytesIO
imp... | bsd-3-clause |
vortex-ape/scikit-learn | sklearn/pipeline.py | 5 | 32367 | """
The :mod:`sklearn.pipeline` module implements utilities to build a composite
estimator, as a chain of transforms and estimators.
"""
# Author: Edouard Duchesnay
# Gael Varoquaux
# Virgile Fritsch
# Alexandre Gramfort
# Lars Buitinck
# License: BSD
from collections import defaultdict... | bsd-3-clause |
owensgroup/gpustats | nvperf.py | 1 | 30772 | #!/usr/bin/env python3
import pandas as pd
import numpy as np
import itertools
import requests
import re
import os
import json
from altair import *
from fileops import save
from collections import Counter
data = {
"NVIDIA": {
"url": "https://en.wikipedia.org/wiki/List_of_Nvidia_graphics_processing_unit... | bsd-3-clause |
VasLem/KinectPainting | hand_segmentation_alg.py | 1 | 79361 | '''
Following algorithm refers to the obsolete part:
Input: Hand Mask nonzero xy_points
Use laplacian of binary mask
0.Find entry segment
1.Calculate segment middle point
2.Transform nonzero points across the right semiplane* to new_polar coordinates ,
with reference center the point found and reference angle the one ... | bsd-3-clause |
phievo/phievo | phievo/Networks/classes_eds2.py | 1 | 35097 | """
Defines the main class used to describe the evolved networks
The class hierarchy is the following:
:class:`Network <phievo.Networks.classes_eds2.Network>`
- :class:`Node <phievo.Networks.classes_eds2.Node>`:
- :class:`Species <phievo.Networks.classes_eds2.Species>`
- :class:`TModule <phievo.Networks.cla... | lgpl-3.0 |
nicproulx/mne-python | mne/cov.py | 2 | 77577 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis A. Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
from distutils.version import LooseVersion
import itertools as itt
from math import... | bsd-3-clause |
jamesdavidson/corpkit | corpkit/editor.py | 1 | 37068 |
def editor(dataframe1,
operation = '%',
dataframe2 = False,
sort_by = False,
keep_stats = False,
keep_top = False,
just_totals = False,
threshold = 'medium',
just_entries = False,
skip_entries = False,
... | mit |
marqh/iris | lib/iris/tests/__init__.py | 1 | 45616 | # (C) British Crown Copyright 2010 - 2018, 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... | lgpl-3.0 |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/pandas/core/internals.py | 1 | 140942 | import itertools
import re
from datetime import datetime, timedelta
import copy
from collections import defaultdict
import numpy as np
from pandas.core.base import PandasObject
from pandas.core.common import (_possibly_downcast_to_dtype, isnull, notnull,
_NS_DTYPE, _TD_DTYPE, ABCSeries... | gpl-3.0 |
dbednarski/pyhdust | pyhdust/singscat.py | 1 | 45078 | #-*- coding:utf-8 -*-
"""
PyHdust *singscat* module: Single Scatering Dumbbell+disk model. This release
contains a simplified version of the one applied to Sigma Ori E in
Carciofi+2013.
| VARIABLES:
| BLOB
| - i
| - Rstar
| - Blob diam.
| - Blob dist. (center)
| - n_e
|
| DISK
| - n_d
| - D... | gpl-3.0 |
enigmampc/catalyst | catalyst/__main__.py | 1 | 31406 | import errno
import os
from functools import wraps
import re
import click
import sys
import logbook
import pandas as pd
from catalyst.marketplace.marketplace import Marketplace
from six import text_type
from catalyst.data import bundles as bundles_module
from catalyst.exchange.exchange_bundle import ExchangeBundle
fr... | apache-2.0 |
fbarreir/panda-server | pandaserver/taskbuffer/OraDBProxy.py | 1 | 751870 | """
proxy for database connection
"""
import re
import os
import sys
import json
import time
import copy
import glob
import fcntl
import types
import random
import urllib
import socket
import inspect
import datetime
import commands
import traceback
import warnings
import ErrorCode
import SiteSpec
import CloudSpec
imp... | apache-2.0 |
enigmampc/catalyst | tests/test_history.py | 1 | 76340 | #
# Copyright 2016 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 |
anntzer/seaborn | seaborn/tests/test_core.py | 1 | 36045 | 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 pandas.testing import assert_frame_equal
from .._core import (
SemanticMapping,
HueMapping,
SizeMapping,
StyleMapping,
VectorPlotter,
... | bsd-3-clause |
dtrckd/pymake | pymake/frontend/frontendnetwork.py | 1 | 30253 | import sys, os
import itertools
from collections import defaultdict
from string import Template
from numpy import ma
import numpy as np
import networkx as nx
try:
import community as pylouvain
except:
pass
from .frontend import DataBase
from .drivers import DatasetDriver
from .frontendnetwork_gt import front... | gpl-3.0 |
kalvdans/scipy | scipy/signal/spectral.py | 2 | 34981 | """Tools for spectral analysis.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
from scipy import fftpack
from . import signaltools
from .windows import get_window
from ._spectral import lombscargle
import warnings
from scipy._lib.six import string_types
__all__ = ['periodogr... | bsd-3-clause |
gidden/cyclopts | cyclopts/analysis/analysis.py | 1 | 44817 | import matplotlib.pyplot as plt
import matplotlib.patches as patches
from matplotlib.font_manager import FontProperties
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.lines as lines
import matplotlib.markers as markers
from matplotlib.colors import colorConverter
import sys
from collections import defaultdic... | bsd-3-clause |
mompiou/misorientation | misorientation-pyqt.py | 1 | 60452 | #!/usr/bin/python
######################################################################
#
#
# Stereo-Proj is a python utility to plot stereographic projetion of a given crystal. It is designed
# to be used in electron microscopy experiments.
# Author: F. Mompiou, CEMES-CNRS
#
#
#############################... | gpl-2.0 |
knifecaojia/CoinsPro | RefCodes/BotVs/暴力对冲.py | 1 | 58231 | # botvs@87afb0bb6ca4dada56ad5b1f51d1e60d
import numpy as np
import pandas as pa
import json
import time
import copy
import threading
import traceback
exchangesnamelist=[]
exchangespairlnamelist=[]#交易市场对儿
exchangesdf=pa.DataFrame()
exchangesdiffdf=pa.DataFrame()
tradetasklistdf=pa.DataFrame()
exchangesdfcolumnsname=["Na... | apache-2.0 |
pierluigiferrari/fcn8s_tensorflow | cityscapesscripts/viewer/cityscapesViewer.py | 1 | 39964 | #!/usr/bin/python
# -*- coding: utf-8 -*-
#################
## Import modules
#################
# pyqt for everything graphical
from PyQt4 import QtGui, QtCore
# get command line parameters
import sys
# walk directories
import glob
# access to OS functionality
import os
# call processes
import subprocess
# copy thin... | gpl-3.0 |
ryokbys/nap | fitpot/fitpot_old.py | 1 | 36016 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
"""
Fit parameters of a certain potential to reference DFT data.
The potential must be specified in pmd input file, in.pmd.
Usage:
fitpot.py [options]
"""
import os,sys
import time
import glob
import numpy as np
import scipy.optimize as opt
# import matplotlib.pyplot... | mit |
mganeva/mantid | scripts/SANS/sans/gui_logic/presenter/run_tab_presenter.py | 1 | 57627 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source
# & Institut Laue - Langevin
# SPDX - License - Identifier: GPL - 3.0 +
""" The run tab presenter.
This presenter is... | gpl-3.0 |
fedhere/getlucky | LIpipe/makemelucky.py | 1 | 33713 | #################################################################
###############written by fbb, dkudrow, shillberry########################
#Reads all of the images in a directory, sorts them by Strehl
#Ratio or consecutive order, and stacks the specified top percent
#either aligned to a guide star, correlating in fou... | mit |
biorack/metatlas | metatlas/untargeted/mzmine_batch_tools_adap.py | 1 | 55081 | from __future__ import print_function
from __future__ import absolute_import
import numpy as np
import sys
import json
import pandas as pd
import re
import glob as glob
import os
from collections import defaultdict
from xml.etree import cElementTree as ET
from metatlas.datastructures import metatlas_objects as metob
f... | bsd-3-clause |
italiangrid/cream-stress-testsuite | cream_stress_statistics.py | 1 | 40242 | #!/usr/bin/python2.6
# Copyright 2012 Dimosthenes Fioretos dfiore -at- noc -dot- uoa -dot- gr
#
# 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 op... | gpl-3.0 |
UW-Hydro/MetSim | metsim/metsim.py | 1 | 35783 | """
The main object of the MetSim package. The MetSim object
is used to set up and launch forcing generation and/or
disaggregation routines.
The MetSim object uses a class dictionary to refer to
the model setup, which can be modified after instantiation
if necessary. Before calling `run` or `launch` on the
instance i... | gpl-3.0 |
adelomana/viridis | transcriptomeAnalysis/sampleMapper.py | 1 | 33964 | ### this script locates all epochs samples into a diurnal vs. growth space characterized in epoch=0
import sys,numpy,matplotlib,random,pickle,math
import scipy.stats,scipy.spatial
import matplotlib.pyplot
from matplotlib.patches import Ellipse
matplotlib.rcParams['pdf.fonttype']=42 # this cryptical line is necessary f... | gpl-2.0 |
rabrahm/ceres | utils/GLOBALutils/GLOBALutils.py | 1 | 113727 | import matplotlib
matplotlib.use('Agg')
from astropy.io import fits as pyfits
import numpy as np
from numpy import median,sqrt,array,exp
import scipy
from scipy import signal,special,optimize,interpolate,integrate
import scipy.special as sp
import copy
import glob
import os
import matplotlib.pyplot as plt
import sys
i... | mit |
rohit21122012/DCASE2013 | runs/2013/baseline/task1_scene_classification.py | 1 | 38171 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DCASE 2016::Acoustic Scene Classification / Baseline System
from src.ui import *
from src.general import *
from src.files import *
from src.features import *
from src.dataset import *
from src.evaluation import *
import numpy
import csv
import argparse
import textwra... | mit |
nmayorov/scipy | scipy/optimize/_lsq/least_squares.py | 2 | 39120 | """Generic interface for least-squares minimization."""
from warnings import warn
import numpy as np
from numpy.linalg import norm
from scipy.sparse import issparse, csr_matrix
from scipy.sparse.linalg import LinearOperator
from scipy.optimize import _minpack, OptimizeResult
from scipy.optimize._numdiff import approx... | bsd-3-clause |
harisbal/pandas | pandas/tests/indexes/test_category.py | 1 | 47901 | # -*- coding: utf-8 -*-
import numpy as np
import pytest
import pandas as pd
import pandas.core.config as cf
import pandas.util.testing as tm
from pandas import Categorical, IntervalIndex, compat
from pandas._libs import index as libindex
from pandas.compat import PY3, range
from pandas.core.dtypes.dtypes import Cate... | bsd-3-clause |
bartoldeman/easybuild-easyconfigs | test/easyconfigs/easyconfigs.py | 1 | 64271 | ##
# Copyright 2013-2021 Ghent University
#
# This file is part of EasyBuild,
# originally created by the HPC team of Ghent University (http://ugent.be/hpc/en),
# with support of Ghent University (http://ugent.be/hpc),
# the Flemish Supercomputer Centre (VSC) (https://www.vscentrum.be),
# Flemish Research Foundation (F... | gpl-2.0 |
dgwakeman/mne-python | mne/utils.py | 1 | 59547 | # -*- coding: utf-8 -*-
"""Some utility functions"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
#
# License: BSD (3-clause)
import warnings
import logging
import time
from distutils.version import LooseVersion
import os
import os.path as op
from funct... | bsd-3-clause |
nickpowersys/CaaR | caar/cleanthermostat.py | 1 | 93813 | from __future__ import absolute_import, division, print_function
from collections import namedtuple, OrderedDict
import csv
import datetime as dt
from io import open
import os.path
import pickle
import re
import sys
import numpy as np
import pandas as pd
from caar.pandas_tseries_tools import _guess_datetime_format
... | bsd-3-clause |
aemerick/galaxy_analysis | particle_analysis/abundances.py | 1 | 32577 | import yt
import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib import rc, cm
from collections import Iterable, OrderedDict
COMPUTE_ACF = False # global disable for now - not working and time consuming
fsize = 17
rc('text', usetex=False)
rc('font', size=fsize)#, ft... | mit |
verilylifesciences/purplequery | purplequery/bq_abstract_syntax_tree.py | 1 | 34864 | # Copyright 2019 Verily Life Sciences LLC
#
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
'''Abstract Syntax Tree. Each node is an operator or operand.'''
import collections
import uuid
from abc import ABCMeta, abstractmethod
from typing import (Any, Callable, D... | bsd-3-clause |
kdebrab/pandas | pandas/core/tools/datetimes.py | 1 | 30058 | from functools import partial
from datetime import datetime, timedelta, time
from collections import MutableMapping
import numpy as np
from pandas._libs import tslib, tslibs
from pandas._libs.tslibs.strptime import array_strptime
from pandas._libs.tslibs import parsing, conversion, Timestamp
from pandas._libs.tslibs.... | bsd-3-clause |
OscarES/Differential-Algebra-Tracker | accelerator.py | 1 | 87168 | from __future__ import division # needed for 1/2 = 0.5
import numpy as np
from numpy import inf
from scipy.misc import *
#from scipy.linalg import *
from scipy import linalg
from scipy.integrate import quad
from scipy import constants, linspace
from sympy.parsing.sympy_parser import parse_expr
from sympy import *
impor... | gpl-3.0 |
sebchalmers/DynOPFlow | DynOPFlow.py | 1 | 55808 | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 16 20:18:08 2012
@author:
Sebastien Gros
Assistant Professor
Department of Signals and Systems
Chalmers University of Technology
SE-412 96 Göteborg, SWEDEN
grosse@chalmers.se
Python/casADi Module:
NMPC for Dynamic Optimal Power Flow and Power Dispatch
Requires the in... | gpl-2.0 |
simudream/dask | dask/dataframe/core.py | 3 | 41966 | from __future__ import division
from itertools import count
from math import ceil, sqrt
from functools import wraps
import bisect
import os
from toolz import (merge, partial, accumulate, unique, first, dissoc, valmap,
first, partition)
import toolz
from operator import getitem, setitem
from datetime import dat... | bsd-3-clause |
rabrahm/ceres | fies/fiespipe.py | 1 | 63269 | import sys
import matplotlib
matplotlib.use("Agg")
from pylab import *
base = '../'
sys.path.append(base+"utils/Continuum")
sys.path.append(base+"utils/Correlation")
sys.path.append(base+"utils/GLOBALutils")
baryc_dir= base+'utils/SSEphem/'
sys.path.append(baryc_dir)
ephemeris='DEc403'
import matplotlib.pyplot as p... | mit |
hhslepicka/metadatastore | metadatastore/core.py | 2 | 33122 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import warnings
import datetime
import logging
import pymongo
import pytz
import numpy as np
import doct as doc
logger = logging.getLogger(__name__)
class NoRunStop(Exception):
pass
cla... | bsd-3-clause |
datapythonista/pandas | pandas/tests/arithmetic/test_timedelta64.py | 3 | 79079 | # Arithmetic tests for DataFrame/Series/Index/Array classes that should
# behave identically.
from datetime import (
datetime,
timedelta,
)
import numpy as np
import pytest
from pandas.errors import (
OutOfBoundsDatetime,
PerformanceWarning,
)
import pandas as pd
from pandas import (
DataFrame,
... | bsd-3-clause |
Knoema/knoema-python-driver | knoema/data_reader.py | 1 | 48596 | """This module contains data definitions for Knoema client"""
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
import pandas
import knoema.api_definitions as definition
import knoema.view_definitions as view_definition
class DataReader(object):
"""This class rea... | mit |
Winand/pandas | pandas/core/sparse/frame.py | 1 | 33834 | """
Data structures for sparse float data. Life is made simpler by dealing only
with float64 data
"""
from __future__ import division
# pylint: disable=E1101,E1103,W0231,E0202
from pandas.compat import lmap
from pandas import compat
import numpy as np
from pandas.core.dtypes.missing import isna, notna
from pandas.cor... | bsd-3-clause |
teoliphant/numpy-refactor | numpy/lib/function_base.py | 1 | 106667 | __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 |
bobbymckinney/resistivity_measurement | program_hightemp/IVcurveGUI.py | 1 | 62033 | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Created: 2015-03-31
@author: Bobby McKinney (bobbymckinney@gmail.com)
__Title__ : voltagepanel
Description:
Comments:
"""
import os
import sys
import wx
from wx.lib.pubsub import pub # For communicating b/w the thread and the GUI
import matplotlib
matplotlib.interactive(... | gpl-3.0 |
OFAI/hub-toolbox-python3 | hub_toolbox/approximate.py | 1 | 66664 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
This file is part of the HUB TOOLBOX available at
https://github.com/OFAI/hub-toolbox-python3/
Licensed under the terms of the GNU GPLv3.
(c) 2018, Roman Feldbauer
Austrian Research Institute for Artificial Intelligence (OFAI)
Contact: <roman.feldbauer@ofai.at>
"""
i... | gpl-3.0 |
CroatianMeteorNetwork/RMS | Utils/Flux.py | 1 | 33912 | """ Compute single-station meteor shower flux. """
import os
import sys
import glob
import copy
import datetime
import json
import collections
import numpy as np
import matplotlib.pyplot as plt
import scipy.stats
from RMS.Astrometry.ApplyAstrometry import xyToRaDecPP
from RMS.Astrometry.ApplyRecalibrate import apply... | gpl-3.0 |
MJuddBooth/pandas | pandas/core/strings.py | 1 | 101412 | # -*- coding: utf-8 -*-
import codecs
import re
import textwrap
import warnings
import numpy as np
import pandas._libs.lib as lib
import pandas._libs.ops as libops
import pandas.compat as compat
from pandas.compat import zip
from pandas.util._decorators import Appender, deprecate_kwarg
from pandas.core.dtypes.common... | bsd-3-clause |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/ensemble/tests/test_gradient_boosting.py | 1 | 39943 | """
Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting).
"""
import warnings
from itertools import product
import numpy as np
from scipy.sparse import coo_matrix
from scipy.sparse import csc_matrix
from scipy.sparse import csr_matrix
from sklearn import datasets
from sklearn.base import clone... | mit |
GeosoftInc/gxpy | geosoft/gxpy/gdb.py | 1 | 95918 | """
Geosoft databases for line-oriented spatial data.
:Classes:
:`Geosoft_gdb`: Geosoft line database
:`Line`: line handling
:`Channel`: channel handling
:Constants:
:LINE_TYPE_NORMAL: `geosoft.gxapi.DB_LINE_TYPE_NORMAL`
:LINE_TYPE_BASE: `geosoft.gxapi.DB_LINE_TYPE_BASE`
:LINE_T... | bsd-2-clause |
shirtsgroup/checkensemble | checkensemble/checkensemble.py | 1 | 50763 | #!/usr/bin/python
# =============================================================================================
# COPYRIGHT NOTICE
#
# Written by Michael R. Shirts <mrshirts@gmail.com>.
#
# Copyright (c) 2012 The University of Virginia. All Rights Reserved.
#
# This program is free software; you can redistribute it ... | gpl-2.0 |
Batch21/pywr | tests/test_recorders.py | 1 | 48748 | # -*- coding: utf-8 -*-
"""
Test the Recorder object API
"""
from __future__ import print_function
import pywr.core
from pywr.core import Model, Input, Output, Scenario, AggregatedNode
import numpy as np
import pandas
import pytest
import tables
import json
from numpy.testing import assert_allclose, assert_equal
from ... | gpl-3.0 |
samgill844/waveletspec | waveletspec/wavelet_analysis.py | 1 | 52314 | from __future__ import print_function
import os,sys
from astropy.io import fits
import waveletspec,os,sys
this_dir, this_filename = os.path.split(waveletspec.__file__)
print('ISPEC_1: {}/iSpec_v20160930_py2'.format(this_dir))
# First search for the iSpec tar (eithe Python2 or 3 version)
try:
if (sys.version_info <... | agpl-3.0 |
nicovince/mche | mche.py | 1 | 64134 | #!/usr/bin/env python
import os
import sys
import re
import logging
import itertools
import argparse
import nbt
from io import BytesIO
import zlib
import gzip
from binascii import hexlify
from binascii import unhexlify
import matplotlib
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
from ruam... | gpl-3.0 |
roshantha9/AbstractManycoreSim | src/RunSim_Exp_HRTVideo.py | 1 | 40724 | import sys, os, csv, pprint, math
import argparse
import numpy as np
import random
import shutil
import time
## uncomment when running under CLI only version ##
#import matplotlib
#matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import scipy.stats
from matplotlib.colors ... | gpl-3.0 |
gevero/EMUstack | backend/plotting.py | 2 | 164986 | """
plotting.py is a subroutine of EMUstack that contains numerous plotting
routines.
Copyright (C) 2015 Bjorn Sturmberg, Kokou Dossou, Felix Lawrence
EMUstack 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... | gpl-3.0 |
wazeerzulfikar/scikit-learn | sklearn/tree/tree.py | 1 | 60513 | """
This module gathers tree-based methods, including decision, regression and
randomized trees. Single and multi-output problems are both handled.
"""
# Authors: Gilles Louppe <g.louppe@gmail.com>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Brian Holt <bdholt1@gmail.com>
# Noel Da... | bsd-3-clause |
PYPIT/PYPIT | pypeit/utils.py | 1 | 49387 |
import itertools
import matplotlib
import numpy as np
from scipy.optimize import curve_fit
from scipy import interpolate
from astropy import units
from matplotlib import pyplot as plt
# Imports for fast_running_median
from collections import deque
from itertools import islice
from bisect import insort, bisect_lef... | gpl-3.0 |
knaggsy2000/stormforce-mq | smq_client.py | 1 | 62365 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#########################################################################
# Copyright/License Notice (Modified BSD License) #
#########################################################################
###################################################... | bsd-3-clause |
PonteIneptique/pandora | pandora/tagger.py | 1 | 31839 | #!usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import pickle
import os
import codecs
import shutil
from operator import itemgetter
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
from gensim.models import Word2Vec
fro... | mit |
anetasie/sherpa | sherpa/ui/utils.py | 1 | 599825 | #
# Copyright (C) 2010, 2015, 2016, 2017, 2018, 2019, 2020
# Smithsonian Astrophysical Observatory
#
#
# 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, ... | gpl-3.0 |
laurentgo/arrow | python/pyarrow/pandas_compat.py | 1 | 41913 | # 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 u... | apache-2.0 |
jprchlik/aia_mkmovie | aia_mkmovie.py | 1 | 33330 | __version__ = "0.1.1 (2017/09/06)"
__authors__ = ['Jakub Prchlik <jakub.prchlik@cfa.harvard.edu>']
__email__ = "jakub.prchlik@cfa.harvard.edu"
import matplotlib
#fixes multiprocess issue
matplotlib.use('agg')
import sys
from.make_movie import create_movie
import subprocess
import glob
import os
import stat
impor... | mit |
zfrenchee/pandas | pandas/tests/io/formats/test_to_html.py | 1 | 48052 | # -*- coding: utf-8 -*-
import re
from textwrap import dedent
from datetime import datetime
from distutils.version import LooseVersion
import pytest
import numpy as np
import pandas as pd
from pandas import compat, DataFrame, MultiIndex, option_context, Index
from pandas.compat import u, lrange, StringIO
from pandas.... | bsd-3-clause |
GuessWhoSamFoo/pandas | pandas/core/dtypes/dtypes.py | 1 | 31325 | """ define extension dtypes """
import re
import warnings
import numpy as np
import pytz
from pandas._libs.interval import Interval
from pandas._libs.tslibs import NaT, Period, Timestamp, timezones
from pandas.core.dtypes.generic import ABCCategoricalIndex, ABCIndexClass
from pandas import compat
from .base import... | bsd-3-clause |
davidnmurray/iris | lib/iris/plot.py | 1 | 39404 | # (C) British Crown Copyright 2010 - 2016, 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 |
aerler/GeoPy | src/processing/bc_methods.py | 1 | 33921 | '''
Created on Feb 9, 2017
The definition of BiasCorrection classes, which actually implement the bias-correction methods. We have to keep the class
definition in a separate module, so it can be pickled and imported in other modules.
@author: Andre R. Erler, GPL v3
'''
# external imports
import os, gzip, p... | gpl-3.0 |
Cortexelus/librosa | librosa/util/utils.py | 1 | 46916 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility functions"""
import scipy.ndimage
import scipy.sparse
import six
import numpy as np
from numpy.lib.stride_tricks import as_strided
from .. import cache
from .exceptions import ParameterError
# Constrain STFT block sizes to 256 KB
MAX_MEM_BLOCK = 2**8 * 2**10
... | isc |
ampl/amplpy | amplpy/ampl.py | 1 | 31494 | # -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from builtins import map, range, object, zip, sorted
from past.builtins import basestring
from threading import Thread, Lock
from .errorhandler import ErrorHandler
from .outputhandler import OutputHandler
from .objective import Ob... | bsd-3-clause |
mgaillard/CNNFeaturesRobustness | features_extractor/image_features.py | 1 | 32581 | """
A class that extract features from images in a directory.
"""
from os import listdir
from os.path import isfile, join
from keras.preprocessing import image
from keras.models import Model
from keras.layers.pooling import GlobalAveragePooling2D, GlobalMaxPooling2D
import keras.applications.vgg16 as app_vgg16
import ... | gpl-3.0 |
dpaiton/OpenPV | pv-core/analysis/python/plot_multiple_average_activity_one_neuron.py | 1 | 38158 | """
Plot the highest activity of four different bar positionings
"""
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import matplotlib.cm as cm
import PVReadSparse as rs
import PVReadWeights as rw
import PVConversions as conv
import scipy.cluster.vq as sp
import math
def fo... | epl-1.0 |
nmartensen/pandas | pandas/tests/indexes/datetimes/test_tools.py | 1 | 65488 | """ test to_datetime """
import sys
import pytz
import pytest
import locale
import calendar
import dateutil
import numpy as np
from dateutil.parser import parse
from datetime import datetime, date, time
from distutils.version import LooseVersion
import pandas as pd
from pandas._libs import tslib, lib
from pandas.core... | bsd-3-clause |
cschenck/blender_sim | fluid_sim_deps/blender-2.69/2.69/python/lib/python3.3/site-packages/numpy/linalg/linalg.py | 1 | 62917 | """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... | gpl-3.0 |
varun-invent/Autism-Connectome-Analysis | preprocessingPipelineImprovedModularWOAnatDynamic.py | 1 | 43206 | # coding: utf-8
# ### Preprocessing Pipeline
# 1. Create a BIDSDataGrabber Node to read data files
# 2. Create a IdentityInterface - infosource Node to iterate over multiple Subjects
# 3. Create following Nodes for preprocessing
# - [x] Exclude 4 volumes from the functional scan
# - [x] slice time correction
#... | apache-2.0 |
bobbymckinney/resistivity_measurement | program_hightemp/ResistivityGUIv6.py | 1 | 110334 | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Created: 2015-03-31
@author: Bobby McKinney (bobbymckinney@gmail.com)
__Title__ : voltagepanel
Description:
Comments:
"""
import os
import sys
import wx
from wx.lib.pubsub import pub # For communicating b/w the thread and the GUI
import matplotlib
matplotlib.interactive(... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.