repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
xinxian0458/dcos | pkgpanda/__init__.py | 1 | 35301 | """
See `docs/package_concepts.md` for the package layout.
Packages have ids. Ids are composed of a name + blob. The blob is never
introspected by the packaging stuff.
Each package contains a pkginfo.json. That contains a list of requires as well as
environment variables from the package.
"""
import grp
import json... | apache-2.0 |
chjost/clebsch_gordan | group/group_cg_quat.py | 1 | 31404 | """Class for the clebsch-gordan coefficients of a group."""
import numpy as np
import itertools as it
try:
import pandas as pd
from pandas import Series, DataFrame
usepandas=True
except ImportError:
usepandas=False
try:
import sympy
usesympy=True
except ImportError:
usesympy=False
import ... | gpl-3.0 |
c-wilson/klustaviewa | klustaviewa/gui/mainwindow.py | 1 | 50780 | """Main window."""
# -----------------------------------------------------------------------------
# Imports
# -----------------------------------------------------------------------------
import pprint
import time
from StringIO import StringIO
import os
import sys
import inspect
import logging
from collections import... | bsd-3-clause |
eljost/td | td/tabulate.py | 1 | 49866 | # -*- coding: utf-8 -*-
"""Pretty-print tabular data."""
from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple, Iterable
from platform import python_version_tuple
import re
if python_version_tuple()[0] < "3":
from itertools import izip_longest
from ... | gpl-3.0 |
JohanWesto/receptive-field-models | rf_models/rf_optimization.py | 1 | 73049 | #!/usr/bin/python
"""
" @section DESCRIPTION
" Optimization methods for various RF models
"""
import numpy as np
import multiprocessing as mp
from scipy import sparse
from operator import mul
from copy import deepcopy
from time import time
from sklearn.model_selection import KFold
from scipy.ndimage import correlate ... | mit |
dblalock/bolt | experiments/python/amm.py | 1 | 46227 | #!/bin/env/python
import abc
import numpy as np
# from sklearn.decomposition import PCA, SparsePCA
from sklearn import decomposition
from sklearn.decomposition import PCA, SparsePCA, MiniBatchSparsePCA
from sklearn.utils.extmath import randomized_svd
import numba # conda install numba
# import ffht # https://github... | mpl-2.0 |
surhudm/scipy | scipy/signal/windows.py | 2 | 56107 | """The suite of window functions."""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from scipy import fftpack, linalg, special
from scipy._lib.six import string_types
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanhar... | bsd-3-clause |
toobaz/pandas | pandas/tests/internals/test_internals.py | 1 | 46690 | from collections import OrderedDict
from datetime import date, datetime
from distutils.version import LooseVersion
import itertools
import operator
import re
import sys
import numpy as np
import pytest
from pandas._libs.internals import BlockPlacement
import pandas as pd
from pandas import (
Categorical,
Dat... | bsd-3-clause |
ooovector/qtlab_replacement | instrument_drivers/Tektronix_AWG5014.py | 1 | 32616 | # Tektronix_AWG5014.py class, to perform the communication between the Wrapper and the device
# Pieter de Groot <pieterdegroot@gmail.com>, 2008
# Martijn Schaafsma <qtlab@mcschaafsma.nl>, 2008
# Guenevere Prawiroatmodjo <guen@vvtp.tudelft.nl>, 2009
#
# This program is free software; you can redistribute it and/or modif... | gpl-3.0 |
philippdre/omniCLIP | omniCLIP/data_parsing/tools.py | 1 | 37180 | """
omniCLIP is a CLIP-Seq peak caller
Copyright (C) 2017 Philipp Boss
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) an... | gpl-3.0 |
mne-tools/mne-python | mne/epochs.py | 1 | 147488 | # -*- coding: utf-8 -*-
"""Tools for working with epoched data."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# Mainak Jas... | bsd-3-clause |
mne-tools/mne-tools.github.io | 0.18/_downloads/50ca168736a7f5e0ade7d4d0af520755/plot_background_filtering.py | 1 | 50019 | # -*- coding: utf-8 -*-
r"""
.. _disc-filtering:
===================================
Background information on filtering
===================================
Here we give some background information on filtering in general,
and how it is done in MNE-Python in particular.
Recommended reading for practical applications ... | bsd-3-clause |
xuewei4d/scikit-learn | sklearn/svm/_base.py | 6 | 38353 | import numpy as np
import scipy.sparse as sp
import warnings
from abc import ABCMeta, abstractmethod
# mypy error: error: Module 'sklearn.svm' has no attribute '_libsvm'
# (and same for other imports)
from . import _libsvm as libsvm # type: ignore
from .import _liblinear as liblinear # type: ignore
from . import _li... | bsd-3-clause |
annashcherbina/sherlockstoolkit | python_analysis_modules/kinship/computeKinship.py | 1 | 42579 | #this module generates kinship coefficient plot, kinship excel file, kinship machine learning coefficient matrix
import MySQLdb as mdb
import os
import sys
import Params
from Output import *
from ml_helpers import *
import pandas as pd;
import time;
from helpers import *
from math import log,pow
def recordAtt... | gpl-3.0 |
prheenan/Research | Perkins/AnalysisUtil/ForceExtensionAnalysis/FEC_Util.py | 1 | 31951 | # force floating point division. Can still use integer with //
from __future__ import division
# This file is used for importing the common utilities classes.
import numpy as np
import matplotlib.pyplot as plt
import sys,ast,os
import copy
from IgorUtil.PythonAdapter.DataObj import DataObj
from IgorUtil.PythonAdapter.... | gpl-3.0 |
billbrod/spatial-frequency-preferences | sfp/first_level_analysis.py | 1 | 37532 | #!/usr/bin/python
"""arranges results mgzs into a dataframe for further analyses
"""
import matplotlib as mpl
# we do this because sometimes we run this without an X-server, and this backend doesn't need
# one. We set warn=False because the notebook uses a different backend and will spout out a big
# warning to that ef... | mit |
plotly/python-api | packages/python/plotly/plotly/graph_objs/layout/_xaxis.py | 1 | 136868 | from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class XAxis(_BaseLayoutHierarchyType):
# class properties
# --------------------
_parent_path_str = "layout"
_path_str = "layout.xaxis"
_valid_props = {
"anchor",
"automargin"... | mit |
zerothi/sisl | sisl/tests/test_geometry.py | 1 | 53252 | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import pytest
import os.path as osp
import itertools
import math as m
import numpy as np
import sisl.geom as sisl_geom... | lgpl-3.0 |
dmccloskey/SBaaS_COBRA | SBaaS_COBRA/main.py | 1 | 33695 | import sys
sys.path.append('C:/Users/dmccloskey-sbrg/Documents/GitHub/SBaaS_base')
#sys.path.append('C:/Users/dmccloskey/Documents/GitHub/SBaaS_base')
from SBaaS_base.postgresql_settings import postgresql_settings
from SBaaS_base.postgresql_orm import postgresql_orm
# read in the settings file
filename = 'C:/Users/dmc... | mit |
dgary50/eovsa | calibration_batch.py | 1 | 59977 | '''
Module for accessing, analyzing and plotting calibration data'''
#
# History:
# 2014-Dec-11 DG
# First written (to analyze SOLPNTCAL scans)
# 2014-Dec-12 DG
# Lots of tweaks to make and beautify the plots. Lots more to do!
# 2014-Dec-14 DG
# Added delay after dump_tsys(), to allow ... | gpl-2.0 |
MobleyLab/SAMPL6 | physical_properties/pKa/analysis/analysis_of_typeIII_predictions/typeIII_analysis.py | 1 | 63611 | #!/usr/bin/env python
# =============================================================================
# GLOBAL IMPORTS
# =============================================================================
import os
import glob
import io
import collections
import pandas as pd
import numpy as np
import seaborn as sns
from ma... | mit |
vkuznet/rep | rep/plotting.py | 1 | 49734 | """
There are different plotting backends supported:
* *matplotlib* (default, de-facto standard plotting library),
* *plotly* (proprietary package with interactive plots, information is kept on the server),
* *ROOT* (the library used by CERN people),
* *bokeh* (open-source package with interactive plot... | apache-2.0 |
jmmease/pandas | pandas/io/formats/format.py | 1 | 89937 | # -*- coding: utf-8 -*-
"""
Internal module for formatting output data in csv, html,
and latex files. This module also applies to display formatting.
"""
from __future__ import print_function
from distutils.version import LooseVersion
# pylint: disable=W0141
from textwrap import dedent
from pandas.core.dtypes.missin... | bsd-3-clause |
VasLem/KinectPainting | CDBIMM.py | 1 | 34001 |
import os
import sys
import errno
import numpy as np
import classifiers as clfs
import class_objects as co
import cPickle as pickle
import logging
from numpy.linalg import inv
def makedir(path):
try:
os.makedirs(path)
except OSError as exception:
if exception.errno != errno.EEXIST:
... | bsd-3-clause |
YuepengGuo/bt | tests/test_core.py | 1 | 39349 | from __future__ import division
import copy
import bt
from bt.core import Node, StrategyBase, SecurityBase, AlgoStack, Strategy
import pandas as pd
from nose.tools import assert_almost_equal as aae
import mock
def test_node_tree():
c1 = Node('c1')
c2 = Node('c2')
p = Node('p', children=[c1, c2])
c1 ... | mit |
hhbyyh/spark | python/pyspark/ml/clustering.py | 1 | 50334 | #
# 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 |
rthouvenin/meteography | meteography/dataset.py | 1 | 32555 | # -*- coding: utf-8 -*-
"""
Classes and associated helper functions to create and manipulate the data sets
used in the machine learning machinery
"""
import bisect
from datetime import datetime
import logging
import os.path
import random
import shutil
import time
import numpy as np
import PIL
import tables
from mete... | mit |
python27/NetworkControllability | NetworkControllability/MainWindow.py | 1 | 52983 | from PyQt4 import QtCore, QtGui
import matplotlib.pyplot as plt
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QT as NavigationToolbar
from matplotlib.figure import Figure
import networkx as nx
import random
import sys
im... | bsd-2-clause |
MJuddBooth/pandas | pandas/tests/scalar/period/test_period.py | 1 | 52873 | from datetime import date, datetime, timedelta
import numpy as np
import pytest
import pytz
from pandas._libs.tslibs import iNaT, period as libperiod
from pandas._libs.tslibs.ccalendar import DAYS, MONTHS
from pandas._libs.tslibs.frequencies import INVALID_FREQ_ERR_MSG
from pandas._libs.tslibs.parsing import DatePars... | bsd-3-clause |
magne-max/zipline-ja | tests/test_history.py | 1 | 63031 | #
# 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 |
alorenzo175/pvlib-python | pvlib/clearsky.py | 1 | 32430 | """
The ``clearsky`` module contains several methods
to calculate clear sky GHI, DNI, and DHI.
"""
import os
from collections import OrderedDict
import calendar
import numpy as np
import pandas as pd
from pvlib import atmosphere, tools
def ineichen(apparent_zenith, airmass_absolute, linke_turbidity,
a... | bsd-3-clause |
10se1ucgo/cassiopeia | cassiopeia/core/match.py | 1 | 52643 | import functools
import arrow
import datetime
from typing import List, Dict, Set, Union, Generator
from merakicommons.cache import lazy, lazy_property
from merakicommons.container import searchable, SearchableList, SearchableLazyList, SearchableDictionary
from .. import configuration
from ..data import Region, Platfo... | mit |
richardotis/pycalphad-fitting | paramselect.py | 1 | 69413 | """
The paramselect module handles automated parameter selection for linear models.
Automated Parameter Selection
End-members
Note: All magnetic parameters from literature for now.
Note: No fitting below 298 K (so neglect third law issues for now).
Note: Should use calculate(..., mode='numpy') for this step for perf... | mit |
thunderhoser/GewitterGefahr | gewittergefahr/prediction_paper_2019/make_attribution_schemas.py | 1 | 35832 | """Makes event-attribution schematics for 2019 tornado-prediction paper."""
import numpy
import pandas
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as pyplot
from descartes import PolygonPatch
from gewittergefahr.gg_utils import storm_tracking_utils as tracking_utils
from gewittergefahr.gg_utils im... | mit |
runt18/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/quiver.py | 1 | 36824 | """
Support for plotting vector fields.
Presently this contains Quiver and Barb. Quiver plots an arrow in the
direction of the vector, with the size of the arrow related to the
magnitude of the vector.
Barbs are like quiver in that they point along a vector, but
the magnitude of the vector is given schematically by t... | agpl-3.0 |
google/joint_vae | experiments/vae_geom.py | 1 | 33486 | #
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | apache-2.0 |
biocore/qiime2 | qiime2/metadata/tests/test_io.py | 1 | 42757 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2019, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause |
andreadelprete/sot-torque-control | python/my_ltisys.py | 2 | 31464 | """
ltisys -- a collection of classes and functions for modeling linear
time invariant systems.
"""
from __future__ import division, print_function, absolute_import
#
# Author: Travis Oliphant 2001
#
# Feb 2010: Warren Weckesser
# Rewrote lsim2 and added impulse2.
# Aug 2013: Juan Luis Cano
# Rewrote abcd_normaliz... | lgpl-3.0 |
linebp/pandas | pandas/io/excel.py | 4 | 58788 | """
Module parse to/from Excel
"""
# ---------------------------------------------------------------------
# ExcelFile class
from datetime import datetime, date, time, MINYEAR
import os
import abc
import warnings
import numpy as np
from pandas.core.dtypes.common import (
is_integer, is_float,
is_bool, is_lis... | bsd-3-clause |
hcook/gmm | gmm_specializer/gmm.py | 1 | 40115 | import numpy as np
from numpy.random import random
from numpy import s_
from asp.config import PlatformDetector, ConfigReader
import asp.codegen.templating.template as AspTemplate
import asp.jit.asp_module as asp_module
from codepy.cgen import *
from codepy.cuda import CudaModule
import math
import sys
from imp import ... | bsd-3-clause |
dsm054/pandas | pandas/tests/tseries/offsets/test_offsets.py | 1 | 133236 | from distutils.version import LooseVersion
from datetime import date, datetime, timedelta
import pytest
import pytz
from pandas.compat import range
from pandas import compat
import numpy as np
from pandas.compat.numpy import np_datetime64_compat
from pandas.core.series import Series
from pandas._libs.tslibs import ... | bsd-3-clause |
trachelr/mne-python | mne/epochs.py | 2 | 96843 | """Tools for working with epoched data"""
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# Mainak Jas <mainak@neuro... | bsd-3-clause |
bamford/smobol | sparse.py | 1 | 33018 | # smobol - Sparse grid and Sobol approximations
# This file is part of smobol.
# Copyright 2013 Richard Dwight <richard.dwight@gmail.com>
#
# smobol 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 Found... | gpl-3.0 |
C0rvus/iAMA_Reddit_Bachelor | python/a_thread_Lifespan_N_Average_Questiontime.py | 1 | 36756 | # Sources used within this class:
# 1. (27.02.2016 @ 14:22) -
# https://stackoverflow.com/questions/20214497/annoying-white-space-in-bar-chart-matplotlib-python
# 2. (27.02.2016 @ 16:30) -
# http://www.programiz.com/python-programming/break-continue
# 3. (26.03.2016 @ 18:03) -
# https://stackoverflow.com/questions/1240... | gpl-3.0 |
pwcazenave/PyFVCOM | tests/read.py | 1 | 31382 | import os
import numpy.testing as test
import numpy as np
import tempfile
from unittest import TestCase
from datetime import datetime
from dateutil.relativedelta import relativedelta
from PyFVCOM.read import FileReader
from PyFVCOM.grid import nodes2elems
from PyFVCOM.coordinate import utm_from_lonlat
from PyFVCOM.u... | mit |
Garrett-R/scikit-learn | sklearn/linear_model/logistic.py | 1 | 51217 | """
Logistic Regression
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Fabian Pedregosa <f@bianp.net>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Manoj Kumar <manojkumarsivaraj334@gmail.com>
# Lars Buitinck
import numbers
import warnings
import num... | bsd-3-clause |
saga-survey/saga-code | hosts.py | 2 | 44581 | """
Defines the hosts for the distant local group project
"""
from __future__ import division, print_function
import os
import sys
import numpy as np
from matplotlib import pyplot as plt
try:
import six
except ImportErrir:
from astropy.extern import six
urlopen = six.moves.urllib.request.urlopen
from astrop... | gpl-2.0 |
rustychris/stompy | stompy/grid/live_dt.py | 1 | 93609 | from __future__ import print_function
# Maintain a live constrained delaunay triangulation of the grid.
# designed as a mixin
from collections import defaultdict, Iterable
import logging
log = logging.getLogger('stompy.live_dt')
import pdb
import numpy as np
from numpy.linalg import norm,solve
from matplotlib imp... | mit |
Kate-Willett/HadISDH_Build | hadisdh_error_calculations.py | 1 | 31935 | #!/usr/local/sci/bin/python
#*****************************
#!/usr/local/sci/bin/python
# PYTHON3
#
# Author: Kate Willett (was RObert Dunn)
# Created: 2 May 2019 (From RObert Dunn's code)
# Last update: 2 May 2019
# Location: /data/users/hadkw/WORKING_HADISDH/UPDATE201?/PROGS/HADISDH_BUILD/
# GitHub: https://github.c... | cc0-1.0 |
PSFCPlasmaTools/eqtools | eqtools/eqdskreader.py | 1 | 91726 | # This program is distributed under the terms of the GNU General Purpose License (GPL).
# Refer to http://www.gnu.org/licenses/gpl.txt
#
# This file is part of EqTools.
#
# EqTools 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 S... | gpl-3.0 |
weiHelloWorld/accelerated_sampling_with_autoencoder | MD_simulation_on_alanine_dipeptide/current_work/src/autoencoders.py | 1 | 84642 | from tf_load import *
from config import *
from molecule_spec_sutils import * # import molecule specific unitity code
from coordinates_data_files_list import *
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from keras.models import Sequential, Model, load_model
from keras.optimizers import *
... | mit |
GuessWhoSamFoo/pandas | pandas/core/internals/managers.py | 1 | 68628 | # -*- coding: utf-8 -*-
from collections import defaultdict
from functools import partial
import itertools
import operator
import re
import numpy as np
from pandas._libs import internals as libinternals, lib
from pandas.compat import map, range, zip
from pandas.util._validators import validate_bool_kwarg
from pandas... | bsd-3-clause |
seckcoder/lang-learn | python/sklearn/sklearn/gaussian_process/gaussian_process.py | 1 | 34415 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# License: BSD style
import numpy as np
from scipy import linalg, optimize, rand
from ..base import BaseEstimator, RegressorMixin
from ..metrics.pairwise import m... | unlicense |
daniorerio/trackpy | trackpy/feature.py | 1 | 32400 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import warnings
import numpy as np
import pandas as pd
from scipy import ndimage
from scipy.spatial import cKDTree
from pandas import DataFrame
from .preprocessing import bandpass, scale_to_gamut, s... | bsd-3-clause |
Gillu13/scipy | scipy/signal/signaltools.py | 1 | 96375 | # Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
import sys
from . import sigtools
from ._upfirdn import _UpFIRDn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
from scipy import f... | bsd-3-clause |
laurentgo/arrow | python/pyarrow/tests/test_parquet.py | 1 | 141477 | # 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 |
hajicj/safire | safire/utils/__init__.py | 1 | 40916 | """ This file contains different utility functions that are not connected
in anyway to the networks presented in the tutorials, but rather help in
processing the outputs into a more understandable way.
For example ``tile_raster_images`` helps in generating a easy to grasp
image from a set of samples or weights.
"""
im... | gpl-3.0 |
gregversteeg/corex_topic | corextopic/corextopic.py | 1 | 31413 | """CorEx Hierarchical Topic Models
Use the principle of Total Cor-relation Explanation (CorEx) to construct
hierarchical topic models. This module is specially designed for sparse count
data and implements semi-supervision via the information bottleneck.
Greg Ver Steeg and Aram Galstyan. "Maximally Informative Hierar... | apache-2.0 |
lizardsystem/lizard-kml | lizard_kml/jarkus/extra_cm.py | 1 | 40128 | """
extra colormaps:
* Generic Mapping Tools colormaps: GMT_drywet,GMT_gebco,GMT_globe,GMT_haxby
GMT_no_green,GMT_ocean,GMT_polar,GMT_red2green,GMT_relief,GMT_split,
GMT_wysiwyg
* Stepped-sequential scheme: StepSeq
* A nonlinear precipitation colormap: s3pcpn
* A linear version of the precip colormap: s3pcpn_l
run e... | gpl-3.0 |
pombredanne/dask | dask/dataframe/core.py | 1 | 86516 | from __future__ import absolute_import, division, print_function
import bisect
from collections import Iterable, Iterator
from datetime import datetime
from distutils.version import LooseVersion
import operator
from operator import getitem, setitem
from pprint import pformat
import uuid
from toolz import merge, parti... | bsd-3-clause |
niknow/scipy | scipy/signal/ltisys.py | 2 | 82650 | """
ltisys -- a collection of classes and functions for modeling linear
time invariant systems.
"""
from __future__ import division, print_function, absolute_import
#
# Author: Travis Oliphant 2001
#
# Feb 2010: Warren Weckesser
# Rewrote lsim2 and added impulse2.
# Aug 2013: Juan Luis Cano
# Rewrote abcd_normaliz... | bsd-3-clause |
dsavoiu/kafe2 | kafe2/fit/tools/contours_profiler.py | 1 | 37347 | import numpy as np
import six
import sys
import matplotlib as mpl
from ...config import kafe2_rc
from ...core.confidence import ConfidenceLevel
from .._base import FitBase
from .._base.format import ScalarFormatter as ScalarBaseFormatter
from matplotlib import pyplot as plt, rcParams
from matplotlib import gridspec as... | gpl-3.0 |
dblalock/flock | python/algo/motif.py | 1 | 39117 | #!/usr/env/python
import time
import copy
import numpy as np
from collections import namedtuple
from ..datasets import synthetic as synth
from ..utils import evaluate
from ..utils import sliding_window as window
from ..utils.arrays import zNormalizeRows, zNormalize, isScalar
from ..utils.subseq import distsToRows, op... | mit |
Rhuax/dcsn | csn.py | 1 | 32812 | import numpy as np
from scipy import sparse
import math
import logging
import sys
import itertools
import random
import sklearn.mixture
from nodes import Node, OrNode, SumNode, AndNode, TreeNode, is_or_node, is_and_node, is_sum_node, is_tree_node
from logr import logr
from cltree import Cltree
from scipy import opti... | gpl-2.0 |
hjpwhu/Python | src/hjp.edu.torch.task.model/semeval.py | 1 | 33011 | import torch
import argparse
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
from sklearn.decomposition import PCA
from typing import List
from nltk.tokenize import word_tokenize
parser = argparse.ArgumentParser()
parser.add_argument('--word_dim', dest='word_dim', type=int, help='word e... | mit |
mantidproject/mantid | Testing/SystemTests/lib/systemtests/systemtesting.py | 3 | 60781 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2009 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
"""
... | gpl-3.0 |
kambysese/mne-python | mne/viz/_figure.py | 1 | 113752 | # -*- coding: utf-8 -*-
"""Figure classes for MNE-Python's 2D plots.
Class Hierarchy
---------------
MNEFigParams Container object, attached to MNEFigure by default. Sets
close_key='escape' plus whatever other key-value pairs are
passed to its constructor.
matplotlib.figure.Figure
... | bsd-3-clause |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/core/reshape.py | 1 | 40425 | # pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
from pandas.compat import range, zip
from pandas import compat
import itertools
import numpy as np
from pandas.core.series import Series
from pandas.core.frame import DataFrame
from pandas.core.sparse import SparseDataFrame, SparseSeries
from pa... | gpl-2.0 |
Leguark/pygeomod | pygeomod/geogrid.py | 1 | 49025 | '''Module with classes and methods to analyse and process exported geomodel grids
Created on 21/03/2014
@author: Florian Wellmann (some parts originally developed by Erik Schaeffer)
'''
import numpy as np
#import pynoddy
import subprocess
import os.path
import platform
try:
import matplotlib.pyplot as plt
except... | mit |
datapythonista/pandas | pandas/io/formats/style_render.py | 1 | 44286 | from __future__ import annotations
from collections import defaultdict
from functools import partial
from typing import (
Any,
Callable,
DefaultDict,
Dict,
List,
Optional,
Sequence,
Tuple,
Union,
)
from uuid import uuid4
import numpy as np
from pandas._config import get_option
fr... | bsd-3-clause |
autocorr/besl | besl/clump_match.py | 1 | 37622 | """
===============
Clump Match All
===============
Merge catalogs based on clump label masks
"""
import os
import numpy as _np
import pandas as _pd
import catalog
from .image import sample_bgps_img
def clump_match_water(bgps=[], out_filen='bgps_maser', verbose=False):
"""
Match maser catalog observations ... | gpl-3.0 |
nmayorov/scipy | scipy/cluster/tests/test_hierarchy.py | 4 | 42687 | #
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this... | bsd-3-clause |
Scan-o-Matic/scanomatic | scanomatic/qc/phenotype_results.py | 1 | 34134 | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from functools import wraps
from itertools import chain, izip, product
import re
from types import StringTypes
import pandas as pd
import matplotlib
from matplotlib import patches as mpatches
from matplotlib.font_manager import FontProperties
from matplot... | gpl-3.0 |
amirajdhawan/eYSIP_2015_Depth_Mapping_Kinect | Research/MyProjects/depth.py | 2 | 31662 | __author__ = 'aniket'
import freenect
import cv2
import numpy as np
import time
import serial
import math
import matplotlib.mlab as lab
global flag
flag = False
global count
count = 0
global z
ser = serial.Serial('/dev/ttyUSB0') # initialization of serial communication
test_cases = [True, True, True]
def filter_n... | cc0-1.0 |
lthurlow/Network-Grapher | proj/external/matplotlib-1.2.1/setupext.py | 1 | 46926 | """
Some helper functions for building the C extensions
You may need to use the "basedirlist" option in setup.cfg to point
to the location of your required libs, eg, png, z, freetype,
overriding the settings hard-coded in the "basedir" directory
below.
DARWIN
I have installed all of the backends on OSX.
Tk: If ... | mit |
idaholab/raven | framework/SupervisedLearning/ROMCollection.py | 1 | 74655 | # Copyright 2017 Battelle Energy Alliance, 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 t... | apache-2.0 |
willgrass/pandas | pandas/core/matrix.py | 1 | 39801 | # pylint: disable-msg=E1101,E1103
# pylint: disable-msg=W0212,W0703,W0231,W0622
from cStringIO import StringIO
import sys
from numpy import NaN
import numpy as np
from pandas.core.common import (_pickle_array, _unpickle_array)
from pandas.core.frame import DataFrame, _try_sort, _extract_index
from pandas.core.index ... | bsd-3-clause |
nbeaver/numpy | numpy/lib/function_base.py | 1 | 144151 | from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | bsd-3-clause |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/indexes/base.py | 1 | 120893 | import datetime
import warnings
import operator
import numpy as np
import pandas.tslib as tslib
import pandas.lib as lib
import pandas.algos as _algos
import pandas.index as _index
from pandas.lib import Timestamp, Timedelta, is_datetime_array
from pandas.compat import range, u
from pandas.compat.numpy import functio... | mit |
CGATOxford/CGATPipelines | obsolete/reports/pipeline_chipseq/trackers/Expression.py | 1 | 54461 | import os
import sys
import re
import types
import itertools
import matplotlib.pyplot as plt
import numpy
import scipy.stats
import numpy.ma
from ChipseqReport import *
from CGATReport.Tracker import *
# for trackers_derived_sets and trackers_master
if not os.path.exists("conf.py"):
raise IOError("could not find... | mit |
msebire/intellij-community | python/helpers/pydev/pydevd.py | 1 | 72956 | '''
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 |
gibbons/scikit-rf | skrf/networkSet.py | 3 | 42699 |
'''
.. module:: skrf.networkSet
========================================
networkSet (:mod:`skrf.networkSet`)
========================================
Provides a class representing an un-ordered set of n-port
microwave networks.
Frequently one needs to make calculations, such as mean or standard
deviation, on an e... | bsd-3-clause |
carefree0910/MachineLearning | NN/PyTorch/__Dev/Networks.py | 1 | 33880 | import os
import cv2
import time
import pickle
import numpy as np
import matplotlib.pyplot as plt
from math import sqrt, ceil
from torch.autograd import Variable
from NN.PyTorch.Auto.Layers import *
from NN.Basic.Networks import NNConfig, NNVerbose
from NN.PyTorch.Auto.Optimizers import OptFactory
from U... | mit |
xray/xray | xarray/tests/test_cftime_offsets.py | 1 | 36013 | 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,
Minute,
MonthBegin,
MonthEnd,
QuarterBegin,
QuarterEnd,
Second,
Ye... | apache-2.0 |
citp/BlockSci | blockscipy/blocksci/__init__.py | 1 | 32553 | # -*- coding: utf-8 -*-
"""BlockSci Module
BlockSci enables fast and expressive analysis of Bitcoin’s and many
other blockchains.
"""
import tempfile
import importlib
import subprocess
import sys
import os
import logging
import inspect
import copy
import io
import re
import heapq
import operator
import time
from func... | gpl-3.0 |
jmmauricio/pypstools | build/bdist.win32/egg/pypstools/psse_simulation.py | 1 | 62998 | """ Tools for simulation with PSS/E.
(c) 2015 Juan Manuel Mauricio
"""
from __future__ import division, print_function
import numpy as np
import scipy.linalg
import analysis
import xml.etree.ElementTree as ET
from StringIO import StringIO
import json
# -*- coding: cp1252 -*-
#[dyntools_demo.py] 09/22/100 Demo ... | gpl-3.0 |
aolindahl/polarization-monitor | onlineDataCruncher.py | 1 | 34103 | import sys
import os.path
sys.path.append(
os.path.dirname(os.path.abspath(__file__)) +
'/aolPyModules')
from mpi4py import MPI
import arguments
#import matplotlib.pyplot as plt
#plt.ion()
import numpy as np
import time
import platform
from collections import deque
import importlib
impor... | gpl-2.0 |
ryfeus/lambda-packs | Tensorflow_Pandas_Numpy/source3.6/pandas/io/excel.py | 1 | 60120 | """
Module parse to/from Excel
"""
# ---------------------------------------------------------------------
# ExcelFile class
from datetime import datetime, date, time, MINYEAR, timedelta
import os
import abc
import warnings
import numpy as np
from io import UnsupportedOperation
from pandas.core.dtypes.common import ... | mit |
chemelnucfin/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator.py | 1 | 63282 | # Copyright 2016 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 |
jswanljung/iris | lib/iris/unit.py | 2 | 61670 | # (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... | lgpl-3.0 |
fallisd/validate | validate/plot_cases.py | 1 | 50212 | """
plot_cases
===============
This module contains functinos for different cases of
plots. The functinos will load the appropriate data. Do
any manipulations needed for the data and direct the data
to the correct plot.
.. moduleauthor:: David Fallis
"""
import data_loader as pl
import projections as pr
import numpy... | gpl-2.0 |
chrsrds/scikit-learn | sklearn/utils/estimator_checks.py | 1 | 96974 | import types
import warnings
import sys
import traceback
import pickle
from copy import deepcopy
from functools import partial
from inspect import signature
import numpy as np
from scipy import sparse
from scipy.stats import rankdata
import joblib
from . import IS_PYPY
from .testing import assert_raises, _get_args
fr... | bsd-3-clause |
ianmtaylor1/pacal | pacal/depvars/copulas.py | 1 | 35256 | """Set of copulas different types"""
from pacal.integration import *
from pacal.interpolation import *
from matplotlib.collections import PolyCollection
import pacal.distr
#from pacal import *
from pacal.segments import PiecewiseDistribution, MInfSegment, PInfSegment, Segment, _segint
from pacal.segments import Piece... | gpl-3.0 |
okkhoy/pyscripts | filemove/movefiles.py | 2 | 32515 | #!/usr/bin/env python
import os
import re
import sys
import csv
import glob
import json
import pprint
import shutil
import logging
import subprocess
import traceback
from dill.dill import FileNotFoundError
'''
Append matric with name in the markdown files
create a csv file: team, matric, name, loc, wc
export csv to h... | mit |
toobaz/pandas | pandas/tests/indexes/test_base.py | 1 | 100351 | from collections import defaultdict
from datetime import datetime, timedelta
from io import StringIO
import math
import operator
import re
import numpy as np
import pytest
import pandas._config.config as cf
from pandas._libs.tslib import Timestamp
from pandas.compat import PY36
from pandas.compat.numpy import np_dat... | bsd-3-clause |
j-faria/OPEN | OPEN/classes.py | 1 | 115527 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013 João Faria
# This file is part of OPEN which is licensed under the MIT license.
# You should have received a copy of the license along with OPEN. See LICENSE.
#
# standard library imports
import os
import glob
from fileinput import FileInput
from itertools import islice, ... | mit |
mikegraham/dask | dask/bag/core.py | 1 | 51601 | from __future__ import absolute_import, division, print_function
from collections import Iterable, Iterator, defaultdict
from functools import wraps, partial
import itertools
import math
from operator import getitem
import os
import types
import uuid
from warnings import warn
from distutils.version import LooseVersion... | bsd-3-clause |
lukeshingles/artistools | artistools/spencerfano.py | 1 | 82563 | #!/usr/bin/env python3
import argparse
import math
import multiprocessing
import os
import sys
import matplotlib.ticker as ticker
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from astropy import constants as const
from scipy import linalg
from pathlib import Path
# from bigfloat import *
from... | mit |
ARudiuk/mne-python | mne/preprocessing/ica.py | 1 | 105196 | # Authors: Denis A. Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Juergen Dammers <j.dammers@fz-juelich.de>
#
# License: BSD (3-clause)
from inspect import isfunction
from collections import namedtuple
from copy import deepcopy
import os
import ... | bsd-3-clause |
CCI-Tools/cate-core | cate/ds/esa_cci_odp.py | 1 | 71863 | # The MIT License (MIT)
# Copyright (c) 2016, 2017 by the ESA CCI Toolbox development team and contributors
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including wi... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.