repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
tlawrence3/tsfm | tsfm/MolecularInformation.py | 1 | 98153 | # -*- coding: utf-8 -*-
"""This module contains classes for calculating functional molecular information statistics.
"""
from collections import Counter, defaultdict
from multiprocessing import Pool
from operator import itemgetter
from string import Template
from ast import literal_eval as make_tuple
import os
import ... | lgpl-3.0 |
tienhv/caravel | caravel/views.py | 1 | 45871 | """Flask web views for Caravel"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import json
import logging
import re
import sys
import time
import traceback
from datetime import datetime
import functools
import pand... | apache-2.0 |
SingTel-DataCo/incubator-superset | superset/connectors/druid/models.py | 1 | 39991 | # pylint: disable=invalid-unary-operand-type
from collections import OrderedDict
import json
import logging
from copy import deepcopy
from datetime import datetime, timedelta
from six import string_types
import requests
import sqlalchemy as sa
from sqlalchemy import (
Column, Integer, String, ForeignKey, Text, Boo... | apache-2.0 |
ryfeus/lambda-packs | Tensorflow_Pandas_Numpy/source3.6/pandas/core/indexes/multi.py | 1 | 105182 |
# pylint: disable=E1101,E1103,W0232
import datetime
import warnings
from sys import getsizeof
import numpy as np
from pandas._libs import algos as libalgos, index as libindex, lib, Timestamp
from pandas.compat import range, zip, lrange, lzip, map
from pandas.compat.numpy import function as nv
from pandas import comp... | mit |
MJuddBooth/pandas | pandas/tests/computation/test_eval.py | 1 | 71680 | from distutils.version import LooseVersion
from itertools import product
import operator
import warnings
import numpy as np
from numpy.random import rand, randint, randn
import pytest
from pandas.compat import PY3, reduce
from pandas.errors import PerformanceWarning
import pandas.util._test_decorators as td
from pan... | bsd-3-clause |
alexalemi/cancersim | code/cancer_new.py | 1 | 38624 | #Cancer Sim
from numpy import *
import scipy as sp
import pylab as py
import math
import matplotlib.cm as cm
import matplotlib.colors as colors
import cPickle as pickle
from scipy.spatial.distance import euclidean
from math import pow
from scipy.spatial import Delaunay
#from scipy.spatial import KDTree
from scipy... | mit |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/core/categorical.py | 1 | 68183 | # pylint: disable=E1101,W0232
import numpy as np
from warnings import warn
import types
from pandas import compat, lib
from pandas.compat import u
from pandas.core.algorithms import factorize
from pandas.core.base import PandasObject, PandasDelegate, NoNewAttributesMixin
import pandas.core.common as com
from pandas.... | gpl-2.0 |
losonczylab/Zaremba_NatNeurosci_2017 | losonczy_analysis_bundle/lab/plotting/plotting.py | 1 | 47620 | """This file contains functions to create plots that are nicely formatted for
use in publication figures
"""
from scipy.stats import sem
import matplotlib as mpl
from matplotlib.patches import Ellipse, Polygon
from matplotlib.lines import Line2D
from matplotlib.collections import PatchCollection
from matplotlib.cbook i... | mit |
delmic/odemis | src/odemis/driver/test/technolution_test.py | 2 | 82267 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on 11 May 2020
@author: Sabrina Rossberger, Kornee Kleijwegt
Copyright © 2019-2021 Kornee Kleijwegt, Delmic
This file is part of Odemis.
Odemis is free software: you can redistribute it and/or modify it under the terms
of the GNU General Public License vers... | gpl-2.0 |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tests/series/test_operators.py | 7 | 69446 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from collections import Iterable
from datetime import datetime, timedelta
import operator
from itertools import product, starmap
from numpy import nan, inf
import numpy as np
import pandas as pd
from pandas import (Index, Series, DataFrame, isnull, bdate_range,
... | gpl-3.0 |
rustychris/stompy | stompy/io/rdb_codes.py | 1 | 40016 | """
Handle database of USGS codes used in RDB files, namely for
parameters (e.g. streamflow in cfs) and statistics (e.g.
mean)
"""
import os
import pandas as pd
import numpy as np
import io
# copied from http://help.waterdata.usgs.gov/stat_code
stat_cd_tabbed="""00001 MAXIMUM MAXIMUM VALUES
00002 MINIMUM MINIMUM VA... | mit |
dnjohnstone/hyperspy | hyperspy/_signals/eds.py | 1 | 45061 | # -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 |
jonanv/Data-Mining | RD-AC.py | 1 | 39086 | """
Desarrollado por Johanny Vargas González
28/08/2017
"""
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import math, operator, random, copy, os
from numpy import linalg as la
# Función que retorna la variable con el nombre de la carpeta de dataset
def folder():
carpeta = 'dataset/'
retu... | gpl-3.0 |
YannickDieter/testbeam_analysis | testbeam_analysis/gui/analysis_widgets.py | 1 | 33201 | """
Implements generic analysis widgets to apply analysis functions on test beam data. Two separate
widgets to apply one analysis function in parallel to all input data and to apply multiple analysis functions
to multiple input data
"""
import os
import inspect
import logging
import math
import traceback
from subproc... | mit |
nmayorov/scipy | scipy/fft/_basic.py | 4 | 62596 | from scipy._lib.uarray import generate_multimethod, Dispatchable
import numpy as np
def _x_replacer(args, kwargs, dispatchables):
"""
uarray argument replacer to replace the transform input array (``x``)
"""
if len(args) > 0:
return (dispatchables[0],) + args[1:], kwargs
kw = kwargs.copy()... | bsd-3-clause |
datapythonista/pandas | pandas/tests/io/formats/test_format.py | 3 | 118755 | """
Test output formatting for Series/DataFrame, including to_string & reprs
"""
from datetime import datetime
from io import StringIO
import itertools
from operator import methodcaller
import os
from pathlib import Path
import re
from shutil import get_terminal_size
import sys
import textwrap
import dateutil
import ... | bsd-3-clause |
jmeyers314/jtrace | batoid/optic.py | 1 | 56005 | from collections import OrderedDict
import numpy as np
from .coating import SimpleCoating
from .obscuration import ObscNegation, ObscCircle, ObscAnnulus
from .constants import globalCoordSys, vacuum
from .coordTransform import CoordTransform
from .utils import lazy_property
from .rayVector import RayVector
class Op... | bsd-2-clause |
StructuralNeurobiologyLab/SyConn | syconn/cnn/TrainData.py | 1 | 123830 | # -*- coding: utf-8 -*-
# SyConn - Synaptic connectivity inference toolkit
#
# Copyright (c) 2016 - now
# Max-Planck-Institute of Neurobiology, Munich, Germany
# Authors: Philipp Schubert, Sven Dorkenwald, Jörgen Kornfeld
# non-relative import needed for this file in order to be importable by
# ELEKTRONN2 architectures... | gpl-2.0 |
MMKrell/pyspace | pySPACE/missions/nodes/visualization/base.py | 2 | 38047 | """ Base class for visualization nodes
**Classes**
:VisualizationBase:
This node can be used as a base to visualize instances of the data as
time series. To use the functionality of this node in a child node
you just have to create one function, which is _plotValues:
**Parameters of `_plo... | gpl-3.0 |
jchowk/pyND | hii/hii.py | 1 | 30625 | """ Extract HII region line fluxes
"""
from __future__ import print_function, absolute_import, division, unicode_literals
import os
import numpy as np
from astropy.io import ascii, fits
import astropy.constants as c
from astropy.table import Table, Column
from astropy.modeling.parameters import Parameter
from astrop... | gpl-3.0 |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_scattergeo.py | 1 | 84585 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Scattergeo(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "scattergeo"
_valid_props = {
"connectgaps",
"customdata",
"customdatasrc",
... | mit |
ndingwall/scikit-learn | sklearn/ensemble/_gb.py | 2 | 72022 | """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 |
mfilippo/CitationExtractor | citation_extractor/eval.py | 1 | 35960 | # -*- coding: utf-8 -*-
# author: Matteo Romanello, matteo.romanello@gmail.com
"""
Module containing classes and functions to perform the evaluation of the various steps of the pipeline (NER, RelEx, NED).
%load_ext autoreload
%autoreload 2
import logging
import tabulate
from citation_extractor.Utils.IO import init_... | gpl-3.0 |
LeeKamentsky/CellProfiler | cellprofiler/modules/measureobjectneighbors.py | 1 | 35991 | '''<b>Measure Object Neighbors</b> calculates how many neighbors each
object has and records various properties about the neighbors' relationships,
including the percentage of an object's edge pixels that touch a neighbor.
<hr>
Given an image with objects identified (e.g., nuclei or cells), this
module determines how... | gpl-2.0 |
alfkjartan/nvgimu | nvg/ximu/compare_to_mocap.py | 1 | 51360 | # -*- coding: utf-8 -*-
"""
Loads Qualisys motion capture data and IMU data and makes comparison
"""
# Copyright (C) 2014-- Kjartan Halvorsen
#
# This file is part of nvgimu
#
# nvgimu is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Fr... | gpl-3.0 |
PYPIT/PYPIT | pypeit/core/extract.py | 1 | 118140 | """ Module for PypeIt extraction code
"""
from __future__ import (print_function, absolute_import, division, unicode_literals)
import time
import copy
import inspect
import numpy as np
import scipy
#from matplotlib import gridspec, font_manager
from astropy.stats import sigma_clipped_stats
from pypeit import msgs... | gpl-3.0 |
quantopian/odo | odo/backends/tests/test_sql.py | 1 | 30276 | from __future__ import absolute_import, division, print_function
import pytest
pytest.importorskip('sqlalchemy')
import os
from decimal import Decimal
from functools import partial
from textwrap import dedent
import datashape
from datashape import (
date_,
datetime_,
discover,
dshape,
int_,
i... | bsd-3-clause |
tedmeeds/tcga_encoder | tcga_encoder/models/survival/main.py | 1 | 42709 | from tcga_encoder.utils.helpers import *
from tcga_encoder.data.data import *
from tcga_encoder.definitions.tcga import *
from tcga_encoder.definitions.nn import *
from tcga_encoder.definitions.locations import *
from tcga_encoder.models.survival_analysis import *
#from tcga_encoder.algorithms import *
import seaborn a... | mit |
nbeaver/numpy | numpy/lib/npyio.py | 1 | 72287 | from __future__ import division, absolute_import, print_function
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 packbits, unpa... | bsd-3-clause |
garbersc/keras-galaxies | predict_convnet_keras_modulated.py | 1 | 50646 | # at some point try
# from keras.utils import plot_model
# plot_model(model, to_file='model.png')
import matplotlib.lines as mlines
import warnings
import theano.sandbox.cuda.basic_ops as sbcuda
import numpy as np
import load_data
import realtime_augmentation as ra
import time
import sys
import json
from datetime impo... | bsd-3-clause |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_choropleth.py | 1 | 82004 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Choropleth(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "choropleth"
_valid_props = {
"autocolorscale",
"coloraxis",
"colorbar",
... | mit |
manoharan-lab/structural-color | structcol/detector.py | 1 | 99763 | # -*- coding: utf-8 -*-
# Copyright 2016 Vinothan N. Manoharan, Victoria Hwang, Anna B. Stephenson, Solomon Barkley
#
# This file is part of the structural-color python package.
#
# This package is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published b... | gpl-3.0 |
rs2/pandas | pandas/core/indexes/multi.py | 1 | 127449 | from functools import wraps
from sys import getsizeof
from typing import (
TYPE_CHECKING,
Any,
Callable,
Hashable,
Iterable,
List,
Optional,
Sequence,
Tuple,
Union,
)
import warnings
import numpy as np
from pandas._config import get_option
from pandas._libs import algos as lib... | bsd-3-clause |
VizGrimoire/GrimoireLib | vizGrimoireJS/openstack_report.py | 2 | 45750 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
## Copyright (C) 2014 Bitergia
##
## 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 la... | gpl-3.0 |
stevenblair/c2c_pq_analysis | pq_analysis.py | 1 | 107729 | import csv
import calendar
import datetime
import math
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from matplotlib.dates import MonthLocator, DateFormatter
import copy
import tables
import shelve
import os.path
plt.rcParams['mathtext.default'] = 'regular'
plt.rcParams['ps.usea... | gpl-3.0 |
sneumann/efpbrowser | eFPbrowser-1.6.0/efp/cgi-bin/efp.py | 1 | 46815 | #!/usr/bin/python
import lxml.sax
from lxml import etree
from xml.sax.handler import ContentHandler
import math, sys
import re
import glob
import PIL.Image
import PIL.ImageDraw
import PIL.ImageFont
import subprocess
import os.path
import tempfile
import MySQLdb
import simplejson as json
import urllib2
from urllib2 i... | gpl-2.0 |
openego/eDisGo | edisgo/grid/components.py | 1 | 49322 | import os
import logging
import pandas as pd
from math import acos, tan
if not 'READTHEDOCS' in os.environ:
from shapely.geometry import LineString
from .grids import LVGrid, MVGrid
logger = logging.getLogger('edisgo')
class Component:
"""Generic component
Notes
-----
In case of a MV-LV voltage... | agpl-3.0 |
laurentgo/arrow | python/pyarrow/tests/test_pandas.py | 1 | 145024 | # 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 |
OceanOptics/easyIFCB | deprecated/BuildMLDataSet.py | 1 | 32853 | # This script is intended to import data from EcoTaxa (ET) and export the images from the RAW data
# RAW data is required as the images on EcoTaxa have a size bar on them
#
# Output can be of three different forms:
# + table with image_id and category
# + folders with raw png for each category
# + fol... | mit |
brennmat/ruediPy | python/classes/rgams_SRS.py | 1 | 77748 | # Code for the SRS RGA mass spec class
#
# DISCLAIMER:
# This file is part of ruediPy, a toolbox for operation of RUEDI mass spectrometer systems.
#
# ruediPy 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 |
phoebe-project/phoebe2 | phoebe/dependencies/distl/distl.py | 1 | 329135 | import numpy as _np
from scipy import __version__ as _scipy_version
from scipy import stats as _stats
from scipy.stats import norm as _norm
from scipy import interpolate as _interpolate
from scipy import integrate as _integrate
import json as _json
import sys as _sys
import importlib as _importlib
import random as _ran... | gpl-3.0 |
apache/airflow | airflow/providers/apache/hive/hooks/hive.py | 2 | 41920 | #
# 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... | apache-2.0 |
DiCarloLab-Delft/PycQED_py3 | pycqed/analysis/tomography.py | 1 | 68436 | import logging
try:
import qutip as qtp
except ImportError as e:
logging.warning('Could not import qutip, tomo code will not work')
import numpy as np
import time
import scipy
import os
import lmfit
import matplotlib.pyplot as plt
from pycqed.analysis import measurement_analysis as ma
import pycqed.analysis.to... | mit |
aymeric-spiga/planetoplot | modules/dev/planetoplot_v1/planetoplot.py | 1 | 69081 | #######################
##### PLANETOPLOT #####
#######################
### A. Spiga -- LMD -- 06~09/2011 -- General building and mapping capabilities
### T. Navarro -- LMD -- 10~11/2011 -- Improved use for GCM and added sections + 1Dplot capabilities
### A. Colaitis -- LMD -- 11/2011 -- Mostly minor improv... | gpl-2.0 |
lukauskas/seaborn | seaborn/palettes.py | 3 | 33251 | from __future__ import division
import colorsys
from itertools import cycle
import numpy as np
import matplotlib as mpl
from .external import husl
from .external.six import string_types
from .external.six.moves import range
from .utils import desaturate, set_hls_values, get_color_cycle
from .colors import xkcd_rgb, ... | bsd-3-clause |
kevin-intel/scikit-learn | sklearn/manifold/tests/test_t_sne.py | 3 | 43686 | import sys
from io import StringIO
import numpy as np
from numpy.testing import assert_allclose
import scipy.sparse as sp
import pytest
from sklearn.neighbors import NearestNeighbors
from sklearn.neighbors import kneighbors_graph
from sklearn.exceptions import EfficiencyWarning
from sklearn.utils._testing import ignor... | bsd-3-clause |
jhamman/xarray | xarray/core/variable.py | 1 | 82893 | import functools
import itertools
from collections import defaultdict
from datetime import timedelta
from distutils.version import LooseVersion
from typing import Any, Dict, Hashable, Mapping, TypeVar, Union
import numpy as np
import pandas as pd
import xarray as xr # only for Dataset and DataArray
from . import ar... | apache-2.0 |
daniel20162016/my-first | read_xml_all/calcul_matrix_je_le_qui_dans_de_192_matrix_compare_df_1.py | 1 | 34712 | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 31 15:45:22 2016
@author: wang
"""
#from matplotlib import pylab as plt
#from numpy import fft, fromstring, int16, linspace
#import wave
from read_wav_xml_good_1 import*
from matrix_24_2 import*
from max_matrix_norm import*
import numpy as np
# open a wave file
#filenam... | mit |
lposti/pyfJmod | fJmodel/voronoi.py | 1 | 30219 | from __future__ import print_function
__author__ = ['Michele Cappellari', 'lposti']
"""
#####################################################################
Copyright (C) 2001-2014, Michele Cappellari
E-mail: cappellari_at_astro.ox.ac.uk
Updated versions of the software are available from my web page
http://purl.or... | bsd-3-clause |
jakobrunge/tigramite | tigramite/independence_tests/LBFGS.py | 1 | 43660 | """
MIT License
Copyright (c) 2017 Jake Gardner
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 without limitation the rights
to use, copy, modify, merge, publish, ... | gpl-3.0 |
josenavas/QiiTa | qiita_db/metadata_template/test/test_prep_template.py | 1 | 76023 | # -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause |
alexeyum/scikit-learn | sklearn/svm/tests/test_svm.py | 2 | 33104 | """
Testing for Support Vector Machine module (sklearn.svm)
TODO: remove hard coded numerical results when possible
"""
import numpy as np
import itertools
from numpy.testing import assert_array_equal, assert_array_almost_equal
from numpy.testing import assert_almost_equal
from numpy.testing import assert_allclose
fr... | bsd-3-clause |
kthyng/tracpy | tracpy/inout.py | 1 | 34434 | """
Input/output routines for tracpy.
Contains:
setupROMSfiles
readgrid
readfields
savetracks
loadtracks
loadtransport
save_ll2grid
"""
from __future__ import absolute_import
import netCDF4 as netCDF
import glob
import numpy as np
from scipy.spatial import Delaunay
import matplotlib.tri as... | mit |
moberweger/deep-prior-pp | src/util/handpose_evaluation.py | 1 | 48347 | """Provides class for evaluating hand pose accuracy.
HandposeEvaluation provides interface for evaluating the hand pose accuracy.
ICVLHandposeEvaluation, NYUHandposeEvaluation are specific instances for different datasets.
Copyright 2015 Markus Oberweger, ICG,
Graz University of Technology <oberweger@icg.tugraz.at>
... | gpl-3.0 |
wmvanvliet/mne-python | mne/viz/topomap.py | 1 | 105788 | """Functions to plot M/EEG data e.g. topographies."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Robert Luke <mail@robertluke.net>
#
#... | bsd-3-clause |
hmendozap/auto-sklearn | test/test_pipeline/test_classification.py | 1 | 34654 | import os
import resource
import sys
import traceback
import unittest
import mock
import numpy as np
import sklearn.datasets
import sklearn.decomposition
import sklearn.cross_validation
import sklearn.ensemble
import sklearn.svm
from sklearn.utils.testing import assert_array_almost_equal
from HPOlibConfigSpace.config... | bsd-3-clause |
asttra/pysces | pysces/PyscesPlot.py | 1 | 30022 | """
PySCeS - Python Simulator for Cellular Systems (http://pysces.sourceforge.net)
Copyright (C) 2004-2015 B.G. Olivier, J.M. Rohwer, J.-H.S Hofmeyr all rights reserved,
Brett G. Olivier (bgoli@users.sourceforge.net)
Triple-J Group for Molecular Cell Physiology
Stellenbosch University, South Africa.
Permiss... | bsd-3-clause |
Winand/pandas | pandas/tests/internals/test_internals.py | 1 | 46686 | # -*- coding: utf-8 -*-
# pylint: disable=W0102
from datetime import datetime, date
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)
from pandas.co... | bsd-3-clause |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/indexes/test_range.py | 1 | 35877 | from datetime import datetime
import numpy as np
import pytest
from pandas.core.dtypes.common import ensure_platform_int
import pandas as pd
from pandas import Float64Index, Index, Int64Index, RangeIndex, Series
import pandas.util.testing as tm
from .test_numeric import Numeric
# aliases to make some tests easier ... | apache-2.0 |
Delosari/dazer | bin/lib/ssp_functions/ssp_Hector_Fit3D_mix.py | 1 | 45180 | #-------------------------------------------------------------------------------------
from bin.dazer_methods import Dazer
from bin.lib.ssp_functions.ssp_synthesis_tools import ssp_fitter
#-------------------------------------------------------------------------------------
#!/usr/bin/python
import sys
import numpy ... | mit |
gfyoung/scipy | scipy/stats/_continuous_distns.py | 1 | 210620 | #
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from scipy.misc.doccer import (extend_notes_in_docstring,
replace_notes_in_docstri... | bsd-3-clause |
kdebrab/pandas | pandas/tests/indexes/interval/test_interval.py | 1 | 41269 | from __future__ import division
import pytest
import numpy as np
from pandas import (
Interval, IntervalIndex, Index, isna, notna, interval_range, Timestamp,
Timedelta, date_range, timedelta_range)
from pandas.compat import lzip
import pandas.core.common as com
from pandas.tests.indexes.common import Base
impo... | bsd-3-clause |
bpsmith/tia | tia/bbg/v3api.py | 1 | 37340 | from collections import defaultdict, namedtuple
from datetime import datetime
import blpapi
import pandas as pd
import numpy as np
import tia.util.log as log
SecurityErrorAttrs = ['security', 'source', 'code', 'category', 'message', 'subcategory']
SecurityError = namedtuple('SecurityError', SecurityErrorAttrs)
Fiel... | bsd-3-clause |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/tests/io/test_html.py | 1 | 39352 | from functools import partial
from importlib import reload
from io import BytesIO, StringIO
import os
import re
import threading
import numpy as np
from numpy.random import rand
import pytest
from pandas.compat import is_platform_windows
from pandas.errors import ParserError
import pandas.util._test_decorators as td
... | apache-2.0 |
pratapvardhan/pandas | pandas/tests/io/formats/test_style.py | 2 | 45524 | import copy
import textwrap
import re
import pytest
import numpy as np
import pandas as pd
from pandas import DataFrame
import pandas.util.testing as tm
import pandas.util._test_decorators as td
jinja2 = pytest.importorskip('jinja2')
from pandas.io.formats.style import Styler, _get_level_lengths # noqa
class TestS... | bsd-3-clause |
benfrandsen/mPDFmodules_noDiffpy | mcalculator.py | 1 | 41511 | #!/usr/bin/env python
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
from scipy.signal import fftconvolve, convolve
import copy
def jCalc(q,params=[0.2394,26.038,0.4727,12.1375,0.3065,3.0939,-0.01906],j2=False):
"""Calculate the magnetic form factor approximation j.
This method for calc... | gpl-3.0 |
policevideorequests/policevideopublisher | webinterface/webinterface/views.py | 1 | 30481 | from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.contrib.auth.decorators import login_required
import os
import json
import re
from models import Word, ProcessingLog, RedactionEvent
def get_settings():
f = open(os.path.join(os.getcwd(), '../settings.json'))
setti... | bsd-3-clause |
Sheng-Jun/Easy_plot | easy_plot.py | 1 | 31774 | #! /usr/bin/env python
#-*- coding:utf-8 -*-
#Written on 1/12/2013 by Sheng-Jun Lin
#Version 2 on 19/12/2013, re-write some parts of the domain and range, and can input a matplotlib.axes.AxesSubplot object
#Version 3 on 15/03/2014, add functions for plotting 1-dimension arrays without giving domain, and set location of... | gpl-3.0 |
timothydmorton/qa_explorer | explorer/catalog.py | 1 | 31584 | import os
import numpy as np
import pandas as pd
import dask.dataframe as dd
import dask.array as da
# from distributed import Future
import fastparquet
import glob, re
import random
import logging
import hashlib
from functools import reduce
from operator import add, mul
import string
from .match import match_lists
fr... | mit |
deepchem/deepchem | deepchem/splits/splitters.py | 2 | 51542 | """
Contains an abstract base class that supports chemically aware data splits.
"""
import inspect
import os
import random
import tempfile
import itertools
import logging
from typing import Any, Dict, List, Iterator, Optional, Sequence, Tuple
import numpy as np
import pandas as pd
import deepchem as dc
from deepchem.... | mit |
louispotok/pandas | pandas/tests/indexing/test_multiindex.py | 1 | 50814 | from warnings import catch_warnings
import pytest
import numpy as np
import pandas as pd
from pandas import (Panel, Series, MultiIndex, DataFrame,
Timestamp, Index, date_range)
from pandas.util import testing as tm
from pandas.errors import PerformanceWarning, UnsortedIndexError
from pandas.tests.in... | bsd-3-clause |
kdaily/altanalyze | AltAnalyze.py | 1 | 493577 | #!/usr/local/bin/python2.6
###AltAnalyze
#Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Softwar... | apache-2.0 |
lina9527/easybi | views/core.py | 1 | 87344 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import defaultdict
from datetime import datetime, timedelta
import json
import logging
import os
import pandas as pd
import numpy as np
import pickle
im... | mit |
ioam/holoviews | holoviews/tests/core/testoptions.py | 1 | 41177 | import os
import pickle
from unittest import SkipTest
import numpy as np
from holoviews import Store, Histogram, Image, Curve, DynamicMap, opts
from holoviews.core.options import (
OptionError, Cycle, Options, OptionTree, StoreOptions, options_policy
)
from holoviews.element.comparison import ComparisonTestCase
fr... | bsd-3-clause |
wangyixiaohuihui/spark2-annotation | python/pyspark/sql/dataframe.py | 1 | 72062 | #
# 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 n... | apache-2.0 |
Chandra-MARX/marxs | marxs/design/tolerancing.py | 1 | 31036 | # Licensed under GPL version 3 - see LICENSE.rst
from functools import wraps
import collections
from copy import copy
import warnings
import numpy as np
from transforms3d import affines, euler
from astropy.table import Table
from astropy import table
import astropy.units as u
from ..simulator import Sequence
from .unc... | gpl-3.0 |
freewillfx-azenqos/azm_db_merge | gen_sql_handler.py | 1 | 64829 | '''
module to handle merging (importing) of (azqdata.db from
azq .azm files) sqlite3 dump lines into a PostgreSQL and Microsoft SQL Server db.
Copyright: Copyright (C) 2016 Freewill FX Co., Ltd. All rights reserved.
'''
from debug_helpers import dprint
import azm_db_constants
from subprocess import call
import os
im... | apache-2.0 |
BiaDarkia/scikit-learn | sklearn/datasets/base.py | 2 | 31149 | """
Base IO code for all datasets
"""
# Copyright (c) 2007 David Cournapeau <cournape@gmail.com>
# 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr>
# 2010 Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
from __future__ import print_function
import os
import csv
import sy... | bsd-3-clause |
jseabold/statsmodels | statsmodels/stats/tests/test_diagnostic.py | 4 | 57995 | # -*- coding: utf-8 -*-
"""Tests for Regression Diagnostics and Specification Tests
Created on Thu Feb 09 13:19:47 2012
Author: Josef Perktold
License: BSD-3
currently all tests are against R
"""
import json
import os
import numpy as np
import pandas as pd
import pytest
from numpy.testing import (assert_, assert_a... | bsd-3-clause |
TomAugspurger/pandas | pandas/tests/plotting/test_frame.py | 1 | 130729 | """ Test cases for DataFrame.plot """
from datetime import date, datetime
import itertools
import string
import warnings
import numpy as np
from numpy.random import rand, randn
import pytest
import pandas.util._test_decorators as td
from pandas.core.dtypes.api import is_list_like
import pandas as pd
from pandas im... | bsd-3-clause |
peter-kiechle/tactile-sensors | python/classification/experiments.py | 1 | 40507 | # -*- coding: utf-8 -*-
import os, sys
# Load configuration file before pyplot
config_path = os.path.abspath('../matplotlib/')
sys.path.append(config_path)
import configuration as config
import numpy as np
from scipy import stats
#from sklearn.svm import LinearSVC, SVC
from sklearn import svm
from sklearn import m... | gpl-3.0 |
cloud-fan/spark | python/pyspark/pandas/series.py | 1 | 192573 | #
# 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 |
bjanesh/odi-tools | full_calibrate.py | 1 | 47754 | import sys, os, glob, string
import numpy as np
import astropy as ast
import matplotlib.pyplot as plt
from pyraf import iraf
import odi_config as odi
import pandas as pd
from astropy.coordinates import SkyCoord
from astropy import units as u
from collections import OrderedDict
def tpv_remove(img):
"""
Remove t... | bsd-3-clause |
andim/scipy | scipy/stats/_multivariate.py | 3 | 83824 | #
# Author: Joris Vankerschaver 2013
#
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy.linalg
from scipy.misc import doccer
from scipy.special import gammaln, psi, multigammaln
from scipy._lib._util import check_random_state
__all__ = ['multivariate_normal',
... | bsd-3-clause |
enigmampc/catalyst | tests/pipeline/test_filter.py | 1 | 34184 | """
Tests for filter terms.
"""
from functools import partial
from itertools import product
from operator import and_
from toolz import compose
from numpy import (
arange,
argsort,
array,
eye,
float64,
full,
inf,
isfinite,
nan,
nanpercentile,
ones,
ones_like,
putmask... | apache-2.0 |
OpenSourcePolicyCenter/dynamic | ogusa/output_plots.py | 1 | 35466 | import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import matplotlib
from ogusa.constants import (GROUP_LABELS, VAR_LABELS, ToGDP_LABELS,
CBO_UNITS, DEFAULT_START_YEAR)
import ogusa.utils as utils
from ogusa.utils import ... | mit |
pravsripad/jumeg | jumeg/jumeg_utils.py | 2 | 50022 | '''
Utilities module for jumeg
'''
# Authors: Jurgen Dammers (j.dammers@fz-juelich.de)
# Praveen Sripad (pravsripad@gmail.com)
# Eberhard Eich (e.eich@fz-juelich.de) ()
#
# License: BSD (3-clause)
import sys
import os
import os.path as op
import fnmatch
import numpy as np
import scipy as sci
from s... | bsd-3-clause |
BryanCutler/spark | python/pyspark/pandas/tests/indexes/test_base.py | 1 | 97439 | #
# 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 |
btabibian/scikit-learn | sklearn/naive_bayes.py | 1 | 30798 | # -*- 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 |
poppingtonic/BayesDB | bayesdb/tests/test_client.py | 2 | 36133 | #
# Copyright (c) 2010-2014, MIT Probabilistic Computing Project
#
# Lead Developers: Jay Baxter and Dan Lovell
# Authors: Jay Baxter, Dan Lovell, Baxter Eaves, Vikash Mansinghka
# Research Leads: Vikash Mansinghka, Patrick Shafto
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may... | apache-2.0 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tests/frame/test_operators.py | 1 | 42263 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime
import operator
import nose
from numpy import nan, random
import numpy as np
from pandas.compat import lrange
from pandas import compat
from pandas import (DataFrame, Series, MultiIndex, Timestamp,
date_... | gpl-2.0 |
yousrabk/mne-python | mne/viz/utils.py | 1 | 30405 | """Utility functions for plotting M/EEG data
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# ... | bsd-3-clause |
yavalvas/yav_com | build/matplotlib/lib/matplotlib/backends/backend_pdf.py | 1 | 93874 | # -*- coding: iso-8859-1 -*-
"""
A PDF matplotlib backend
Author: Jouni K Sepp�nen <jks@iki.fi>
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import map
import codecs
import os
import re
import sys
import time
import warning... | mit |
rfinn/LCS | paper1code/LCSediscscomp.py | 1 | 53508 | #!/usr/bin/env python
'''
PURPOSE
To compare the integrated SFR of LCS and EDisCS clusters
CALLING SEQUENCE
INPUT PARAMETERS
OUTPUT
PROCEDURE
EDisCS: uses ediscs spec sample only
LCS: uses all galaxies that fall on 24um image
REQUIRED PYTHON MODULES
... | gpl-3.0 |
jungmannlab/picasso | picasso/gui/render.py | 1 | 267017 | """
gui/render
~~~~~~~~~~~~~~~~~~~~
Graphical user interface for rendering localization images
:author: Joerg Schnitzbauer & Maximilian Strauss, 2017-2018
:copyright: Copyright (c) 2017 Jungmann Lab, MPI of Biochemistry
"""
import os
import os.path
import sys
import traceback
from math import ceil... | mit |
FrancoisRheaultUS/dipy | dipy/reconst/qtdmri.py | 2 | 84043 | # -*- coding: utf-8 -*-
import numpy as np
from dipy.reconst.cache import Cache
from dipy.core.geometry import cart2sphere
from dipy.reconst.multi_voxel import multi_voxel_fit
from scipy.special import genlaguerre, gamma
from dipy.core.gradients import gradient_table_from_gradient_strength_bvecs
from scipy import speci... | bsd-3-clause |
herilalaina/scikit-learn | sklearn/covariance/robust_covariance.py | 3 | 31127 | """
Robust location and covariance estimators.
Here are implemented estimators that are resistant to outliers.
"""
# Author: Virgile Fritsch <virgile.fritsch@inria.fr>
#
# License: BSD 3 clause
import warnings
import numbers
import numpy as np
from scipy import linalg
from scipy.stats import chi2
from . import empir... | bsd-3-clause |
cdegroc/scikit-learn | sklearn/utils/arpack.py | 2 | 64090 | """
This contains a copy of the future version of
scipy.sparse.linalg.eigen.arpack.eigsh
It's an upgraded wrapper of the ARPACK library which
allows the use of shift-invert mode for symmetric matrices.
Find a few eigenvectors and eigenvalues of a matrix.
Uses ARPACK: http://www.caam.rice.edu/software/ARPACK/
"""
#... | bsd-3-clause |
nmartensen/pandas | pandas/core/tools/datetimes.py | 1 | 31337 | from datetime import datetime, timedelta, time
import numpy as np
from collections import MutableMapping
from pandas._libs import lib, tslib
from pandas.core.dtypes.common import (
_ensure_object,
is_datetime64_ns_dtype,
is_datetime64_dtype,
is_datetime64tz_dtype,
is_integer_dtype,
is_integer,... | bsd-3-clause |
enigmampc/catalyst | catalyst/data/us_equity_pricing.py | 1 | 48932 | # Copyright 2015 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 writ... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.