repo_name
string
path
string
copies
string
size
string
content
string
license
string
ibis-project/ibis
ibis/backends/pandas/execution/generic.py
1
35994
"""Execution rules for generic ibis operations.""" import collections import datetime import decimal import functools import math import numbers import operator from collections.abc import Sized from typing import Optional import numpy as np import pandas as pd import toolz from pandas.api.types import DatetimeTZDtyp...
apache-2.0
crpurcell/friendlyVRI
Imports/vriCalc.py
1
42516
#!/usr/bin/env python #=============================================================================# # # # NAME: vriCalc.py # # ...
mit
sarwojowo/KerasProject
keras/callbacks.py
1
39842
from __future__ import absolute_import from __future__ import print_function import os import csv import six import numpy as np import time import json import warnings from collections import deque from collections import OrderedDict from collections import Iterable from .utils.generic_utils import Progbar from . im...
mit
yavalvas/yav_com
build/matplotlib/lib/matplotlib/mlab.py
1
127545
""" Numerical python functions written for compatability with MATLAB commands with the same names. MATLAB compatible functions ------------------------------- :func:`cohere` Coherence (normalized cross spectral density) :func:`csd` Cross spectral density uing Welch's average periodogram :func:`detrend` ...
mit
zfrenchee/pandas
pandas/core/sparse/series.py
1
30105
""" Data structures for sparse float data. Life is made simpler by dealing only with float64 data """ # pylint: disable=E1101,E1103,W0231 import numpy as np import warnings from pandas.core.dtypes.missing import isna, notna from pandas.core.dtypes.common import is_scalar from pandas.core.common import _values_from_o...
bsd-3-clause
ljchang/neurolearn
nltools/data/adjacency.py
1
35665
from __future__ import division ''' This data class is for working with similarity/dissimilarity matrices ''' __author__ = ["Luke Chang"] __license__ = "MIT" import os import pandas as pd import numpy as np import six from copy import deepcopy from sklearn.metrics.pairwise import pairwise_distances from sklearn.mani...
mit
anntzer/scikit-learn
sklearn/linear_model/_coordinate_descent.py
2
93036
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings import numbers from abc import ABCMeta, abstractm...
bsd-3-clause
santosjorge/cufflinks
cufflinks/tools.py
1
45488
import copy import numpy as np import pandas as pd import plotly.offline as py_offline import plotly.figure_factory as ff from plotly.graph_objs import Figure, Scatter, Line from plotly.subplots import make_subplots # from plotly.graph_objs.layout import XAxis, YAxis from . import themes from . import auth, ta from ....
mit
microsoft/EconML
econml/_cate_estimator.py
1
58213
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Base classes for all CATE estimators.""" import abc import numpy as np from functools import wraps from copy import deepcopy from warnings import warn from .inference import BootstrapInference from .utilities import (ten...
mit
BhallaLab/moose-core
python/rdesigneur/rdesigneur.py
1
71897
# -*- coding: utf-8 -*- ######################################################################### ## rdesigneur0_5.py --- ## This program is part of 'MOOSE', the ## Messaging Object Oriented Simulation Environment. ## Copyright (C) 2014 Upinder S. Bhalla. and NCBS ## It is made available under the terms of th...
gpl-3.0
yarikoptic/NiPy-OLD
nipy/neurospin/spatial_models/structural_bfls.py
1
34183
""" The main routine of this module aims at performing the extraction of ROIs from multisubject dataset using the localization. This has been published in Thirion et al. Structural Analysis of fMRI Data Revisited: Improving the Sensitivity and Reliability of fMRI Group Studies. IEEE TMI 2007 Author : Bertrand Thiri...
bsd-3-clause
opalytics/opalytics-ticdat
ticdat/testing/testpandat_io.py
1
34733
import unittest from ticdat.pandatfactory import PanDatFactory from ticdat.utils import DataFrame, numericish, ForeignKey, ForeignKeyMapping import ticdat.utils as utils from ticdat.testing.ticdattestutils import fail_to_debugger, flagged_as_run_alone, spacesSchema, firesException from ticdat.testing.ticdattestutils im...
bsd-2-clause
plotly/python-api
packages/python/plotly/plotly/graph_objs/_sankey.py
1
44466
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Sankey(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "sankey" _valid_props = { "arrangement", "customdata", "customdatasrc", "...
mit
kasra-hosseini/obspyDMT
obspyDMT/utils/local_handler.py
1
31984
#!/usr/bin/env python # -*- coding: utf-8 -*- # ------------------------------------------------------------------- # Filename: local_handler.py # Purpose: handling local processing/plotting in obspyDMT # Author: Kasra Hosseini # Email: kasra.hosseinizad@earth.ox.ac.uk # License: GNU Lesser Gener...
gpl-3.0
amolkahat/pandas
pandas/tests/series/test_operators.py
1
35199
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest from datetime import datetime, timedelta import operator from numpy import nan import numpy as np import pandas as pd from pandas import (Index, Series, DataFrame, isna, bdate_range, NaT, date_range, timedelta_range, Categorical) fro...
bsd-3-clause
mick-d/nipype
nipype/algorithms/rapidart.py
3
32924
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ The rapidart module provides routines for artifact detection and region of interest analysis. These functions include: * ArtifactDetect: performs artifact detection on functi...
bsd-3-clause
utke1/numpy
numpy/core/fromnumeric.py
1
98149
"""Module containing non-deprecated functions borrowed from Numeric. """ from __future__ import division, absolute_import, print_function import types import warnings import numpy as np from .. import VisibleDeprecationWarning from . import multiarray as mu from . import umath as um from . import numerictypes as nt ...
bsd-3-clause
Bismarrck/tensorflow
tensorflow/tools/compatibility/tf_upgrade_v2_test.py
1
31065
# Copyright 2018 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
isovic/aligneval
src/plot_with_seabourne_v2.py
1
37633
#! /usr/bin/python import os; import sys; try: import numpy as np; except Exception, e: USE_MATPLOTLIB = False; print e; print 'Warning: NumPy not installed!'; exit(0); USE_MATPLOTLIB = True; try: import matplotlib.pyplot as plt; except Exception, e: USE_MATPLOTLIB = False; print e; print 'Warning: Matplotl...
mit
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/tests/sparse/series/test_series.py
1
57962
from datetime import datetime import operator import numpy as np from numpy import nan import pytest from pandas._libs.sparse import BlockIndex, IntIndex from pandas.compat import PY36 from pandas.errors import PerformanceWarning import pandas.util._test_decorators as td import pandas as pd from pandas import DataFr...
apache-2.0
gaborbernat/tox
tests/unit/config/test_config.py
1
123254
# coding=utf-8 import os import re import sys from textwrap import dedent import py import pytest from pluggy import PluginManager from six import PY2 import tox from tox.config import ( CommandParser, DepOption, PosargsOption, SectionReader, get_homedir, get_version_info, getcontextname, ...
mit
ebuchman/theano-rnn
rnn_minibatch.py
1
44781
""" Vanilla RNN Parallelizes scan over sequences by using mini-batches. @author Graham Taylor """ import numpy as np import theano import theano.tensor as T from sklearn.base import BaseEstimator import logging import time import os import datetime import cPickle as pickle import random logger = logging.getLogger(__n...
bsd-3-clause
kiwifb/numpy
numpy/linalg/linalg.py
2
75847
"""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...
bsd-3-clause
sclamons/murraylab_tools
murraylab_tools/biotek/biotek.py
1
65469
# TODO: # -- Move calibration data out of source code # Have a string identifying the calibration data file, use that. # Default to most recent calibration data. # -- Add temperature records? import sys import collections import pandas as pd import numpy as np import warnings import scipy.interpolate i...
mit
ryfeus/lambda-packs
Sklearn_scipy_numpy/source/sklearn/ensemble/gradient_boosting.py
2
70083
"""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...
mit
decvalts/cartopy
lib/cartopy/crs.py
1
71237
# (C) British Crown Copyright 2011 - 2018, Met Office # # This file is part of cartopy. # # cartopy 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)...
gpl-3.0
byu-dml/metalearn
tests/test_metafeatures.py
1
36863
""" Contains unit tests for the Metafeatures class. """ import inspect import json import jsonschema import os import random import time import unittest import pandas as pd import numpy as np from metalearn import Metafeatures, METAFEATURES_JSON_SCHEMA_PATH import metalearn.metafeatures.constants as consts from tests...
mit
ChenglongChen/Kaggle_HomeDepot
Code/Igor&Kostia/homedepot_functions.py
1
37953
# -*- coding: utf-8 -*- """ Some functions are saved in this file. Competition: HomeDepot Search Relevance Author: Igor Buinyi Team: Turing test """ import numpy as np import pandas as pd from sklearn.ensemble import RandomForestRegressor, BaggingRegressor, GradientBoostingRegressor from nltk.stem.snowball import Sno...
mit
rs2/pandas
pandas/core/dtypes/dtypes.py
1
38040
""" Define extension dtypes. """ import re from typing import ( TYPE_CHECKING, Any, Dict, List, MutableMapping, Optional, Tuple, Type, Union, cast, ) import numpy as np import pytz from pandas._libs.interval import Interval from pandas._libs.tslibs import NaT, Period, Timestam...
bsd-3-clause
orlox/massive_bins_2015
2016_double_bh/scripts/plot_summary.py
1
49472
#!/usr/bin/env python import numpy as np from pylab import * import matplotlib.pyplot as plt from matplotlib import rc rc('text', usetex=True) import matplotlib.patches as patches from scipy.interpolate import griddata import math import scipy from matplotlib import ticker import sys import os from mesa import * import...
gpl-3.0
kevin-intel/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
2
52384
""" Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting). """ import warnings import numpy as np from numpy.testing import assert_allclose from scipy.sparse import csr_matrix from scipy.sparse import csc_matrix from scipy.sparse import coo_matrix from scipy.special import expit import pytest ...
bsd-3-clause
iproduct/course-social-robotics
11-dnn-keras/venv/Lib/site-packages/matplotlib/transforms.py
1
96797
""" Matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of `TransformNode` objects whose actual value depends on their children. When the contents of children change, their parents are...
gpl-2.0
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/_streamtube.py
1
99745
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Streamtube(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "streamtube" _valid_props = { "autocolorscale", "cauto", "cmax", "cmi...
mit
cbertinato/pandas
pandas/io/stata.py
1
108486
""" Module contains tools for processing Stata files into DataFrames The StataReader below was originally written by Joe Presbrey as part of PyDTA. It has been extended and improved by Skipper Seabold from the Statsmodels project who also developed the StataWriter and was finally added to pandas in a once again improv...
bsd-3-clause
winklerand/pandas
pandas/tests/io/test_stata.py
1
57015
# -*- coding: utf-8 -*- # pylint: disable=E1101 import datetime as dt import os import struct import sys import warnings from datetime import datetime from distutils.version import LooseVersion import numpy as np import pandas as pd import pandas.util.testing as tm import pytest from pandas import compat from pandas....
bsd-3-clause
wmvanvliet/mne-python
mne/viz/_brain/_brain.py
1
135002
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # Oleh Kozynets <ok7mailbox@gmail.com> # Guillaume Favelier <guillaume.favelier@gmail.com> # jona-sassenhagen <jona.sassenhagen@gmail.com> # Joan Massich <mailsik@gmail.com> #...
bsd-3-clause
AbhishekGahlot/cda
tabulate.py
1
38942
# -*- coding: utf-8 -*- from __future__ import print_function from __future__ import unicode_literals from collections import namedtuple from platform import python_version_tuple import re """ Copyright (c) 2011-2013 Sergey Astanin Permission is hereby granted, free of charge, to any person obtaining a copy of this ...
mit
rs2/pandas
pandas/io/json/_json.py
1
39060
from collections import abc import functools from io import BytesIO, StringIO from itertools import islice import os from typing import IO, Any, Callable, List, Optional, Type import numpy as np import pandas._libs.json as json from pandas._libs.tslibs import iNaT from pandas._typing import CompressionOptions, JSONSe...
bsd-3-clause
datapythonista/pandas
pandas/tests/frame/indexing/test_setitem.py
1
36813
from datetime import datetime import numpy as np import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.base import _registry as ea_registry from pandas.core.dtypes.common import ( is_categorical_dtype, is_interval_dtype, is_object_dtype, ) from pandas.core.dtypes.dtypes import (...
bsd-3-clause
ruaultadrien/canpy
canpy/point_defects.py
1
66477
# -*- coding: utf-8 -*- """ Created on Wed Jan 27 16:42:41 2016 @author: Adrien """ import numpy as np import math from canpy.useful import index_heading,time_to_snap from mpl_toolkits.mplot3d import axes3d from matplotlib import animation import matplotlib.pyplot as plt from mpl_toolkits.mplot3d.a...
gpl-3.0
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/tools/tests/test_merge.py
1
122954
# pylint: disable=E1103 import nose from datetime import datetime from numpy.random import randn from numpy import nan import numpy as np import random import pandas as pd from pandas.compat import range, lrange, lzip, StringIO from pandas import compat from pandas.tseries.index import DatetimeIndex from pandas.tool...
gpl-2.0
vtsuperdarn/davitpy
davitpy/pydarn/plotting/rti.py
1
46858
# -*- coding: utf-8 -*- # Copyright (C) 2012 VT SuperDARN Lab # Full license can be found in LICENSE.txt # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
gpl-3.0
EducationalTestingService/rsmtool
tests/test_preprocessor.py
1
62673
import numpy as np import pandas as pd from nose.tools import assert_almost_equal, assert_equal, eq_, ok_, raises from numpy.testing import assert_array_equal from pandas.testing import assert_frame_equal from rsmtool.preprocessor import FeaturePreprocessor, FeatureSpecsProcessor, FeatureSubsetProcessor class TestFea...
apache-2.0
rs2/pandas
pandas/tests/arithmetic/test_timedelta64.py
1
78590
# 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, DatetimeIndex, NaT,...
bsd-3-clause
dsm054/pandas
pandas/core/sparse/frame.py
2
37508
""" 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 import warnings from pandas.compat import lmap from pandas import compat import numpy as np from pandas.core.dtypes.missing import isna, notna...
bsd-3-clause
plotly/python-api
packages/python/plotly/_plotly_utils/basevalidators.py
1
85982
from __future__ import absolute_import import base64 import numbers import textwrap import uuid from importlib import import_module import copy import io from copy import deepcopy import re import sys from six import string_types from _plotly_utils.optional_imports import get_module # back-port of fullmatch from Py...
mit
apache/airflow
airflow/providers/google/cloud/hooks/bigquery.py
2
129183
# # 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
openwfm/wrfxpy
src/vis/postprocessor.py
1
52650
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import matplotlib as mpl from six.moves import range from six.moves import zip mpl.use('AGG') import simplekml as kml import numpy as np import netCDF4 as nc4 from pyhdf.SD import ...
mit
magic2du/contact_matrix
Contact_maps/mnist_psuedo_ipython_dl_ppi/code/DL_Stacked_Model_Mnist_Psuedo_05_17_2015.py
2
39577
# coding: utf-8 # In[1]: # this part imports libs and load data from csv file import sys sys.path.append('../../../libs/') import csv from dateutil import parser from datetime import timedelta from sklearn import svm import numpy as np #import pandas as pd import pickle from sklearn.cross_validation import train_tes...
gpl-2.0
seberg/numpy
numpy/lib/function_base.py
1
162204
import collections.abc import functools import re import sys import warnings import numpy as np import numpy.core.numeric as _nx from numpy.core import transpose from numpy.core.numeric import ( ones, zeros_like, arange, concatenate, array, asarray, asanyarray, empty, ndarray, around, floor, ceil, take, dot, w...
bsd-3-clause
jseabold/statsmodels
statsmodels/stats/descriptivestats.py
1
30495
from statsmodels.compat.pandas import Appender, is_numeric_dtype from statsmodels.compat.python import lmap, lrange from typing import Sequence, Union import warnings import numpy as np import pandas as pd from pandas.core.dtypes.common import is_categorical_dtype from scipy import stats from statsmodels.iolib.table...
bsd-3-clause
costypetrisor/scikit-learn
sklearn/decomposition/dict_learning.py
1
43704
""" Dictionary learning """ from __future__ import print_function # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools from math import sqrt, ceil import numpy as np from scipy import linalg from numpy.lib.stride_tricks import as_strided from ..b...
bsd-3-clause
jswoboda/GeoDataPython
GeoData/plotting.py
1
38354
# -*- coding: utf-8 -*- """ Created on Fri Jan 02 09:38:14 2015 @author: Anna Stuhlmacher plotting """ from __future__ import division, absolute_import import logging import numpy as np import scipy as sp import scipy.interpolate as spinterp import time import datetime as dt import matplotlib.pyplot as plt from matp...
mit
jseabold/statsmodels
statsmodels/genmod/tests/results/results_glm.py
3
273613
""" Results for test_glm.py. Hard-coded from R or Stata. Note that some of the remaining discrepancy vs. Stata may be because Stata uses ML by default unless you specifically ask for IRLS. """ import os import numpy as np import pandas as pd from statsmodels.api import add_constant from statsmodels.genmod.tests.res...
bsd-3-clause
duguyue100/spikefuel
scripts/create_figures.py
1
37068
"""Create figures for visualization purposes. Author: Yuhuang Hu Email : duguyue100@gmail.com """ import os from os.path import join import h5py import cPickle as pickle import numpy as np from moviepy.editor import ImageSequenceClip import cv2 import matplotlib import matplotlib.pylab as plt from spikefuel import d...
mit
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/isosurface/_colorbar.py
1
73319
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.colorbar" _valid_props = { "bgcolor", ...
mit
tseaver/gcloud-python
bigquery/tests/unit/test_client.py
1
157139
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
jreback/pandas
pandas/tests/scalar/period/test_period.py
1
55158
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.np_datetime import OutOfBoundsDatetime from pandas._libs.tslibs.parsing import DateParse...
bsd-3-clause
roshantha9/AbstractManycoreSim
src/analyse_results/AnalyseResults_Exp_RemappingBasic_MultiSeed.py
1
86086
import sys, os, csv, pprint, math from collections import OrderedDict import numpy as np import random import shutil import math ## uncomment when running under CLI only version ## #import matplotlib #matplotlib.use('Agg') import matplotlib from IPython.core.payload import PayloadManager matplotlib.use('Qt4Agg') i...
gpl-3.0
melqkiades/yelp
source/python/topicmodeling/hiddenfactortopics/main.py
1
33444
# from topicmodeling.hiddenfactortopics.topic_corpus import TopicCorpus import codecs import csv import itertools from scipy.stats import wilcoxon, ttest_ind from sklearn import decomposition import langdetect import pandas from scipy.io import mmread from scipy.sparse import coo_matrix, random from scipy.sparse.lina...
lgpl-2.1
xaibeing/cn-deep-learning
tutorials/sentiment-network/Sentiment_Classification_Projects.py
1
58275
# coding: utf-8 # # Sentiment Classification & How To "Frame Problems" for a Neural Network # # by Andrew Trask # # - **Twitter**: @iamtrask # - **Blog**: http://iamtrask.github.io # ### What You Should Already Know # # - neural networks, forward and back-propagation # - stochastic gradient descent # - mean squar...
mit
antoinearnoud/ipp-macro-series-parser
ipp_macro_series_parser/denombrements_fiscaux/agregats_ipp.py
1
37061
# -*- coding: utf-8 -*- import collections import numpy import pandas from py_expression_eval import Parser from ipp_macro_series_parser.config import Config from ipp_macro_series_parser.denombrements_fiscaux.denombrements_parsers import ( get_denombrements_fiscaux_data_frame) from ipp_macro_series_parser.data...
gpl-3.0
Nikea/pyXPCS
pyxpcs/PYXPCS.py
1
167822
#!/usr/bin/env python # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'form1_temp_Qt4_T7th.ui' # # Created: Fri May 10 10:14:58 2013 # by: PyQt4 UI code generator 4.10 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui from mplwidget import * fro...
bsd-3-clause
lposti/pyfJmod
fJmodel/fJmodel.py
1
53573
################################################# # # fJmodel class # # Author: L. Posti (lorenzo.posti@gmail.com) # Commits: 02/03/15 Class creation # ################################################## __author__ = 'lposti' from os.path import isfile from linecache import getline from voronoi import voronoi_2d_b...
bsd-3-clause
larsoner/mne-python
mne/tests/test_source_estimate.py
4
73102
# -*- coding: utf-8 -*- # # License: BSD (3-clause) from copy import deepcopy import os import os.path as op from shutil import copyfile import re import numpy as np from numpy.testing import (assert_array_almost_equal, assert_array_equal, assert_allclose, assert_equal, assert_array_less) i...
bsd-3-clause
adykstra/mne-python
mne/tests/test_epochs.py
1
114361
# -*- coding: utf-8 -*- # Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) from copy import deepcopy from distutils.version import LooseVersion from functools import partial import os.path as op import pickle import py...
bsd-3-clause
ThomasHSmith/TCGA-Tools-GUI
TCGA_Tools_GUI.py
1
32437
import sys, os, webbrowser, bs4, requests from PyQt4 import QtCore, QtGui, uic from PyQt4.QtGui import * import pandas as pd from PyQt4.uic import loadUiType from matplotlib.figure import Figure from matplotlib.backends.backend_qt4agg import ( FigureCanvasQTAgg as FigureCanvas, NavigationToolbar2QT as Navigatio...
mit
hagabbar/pycbc_copy
pycbc/future.py
1
76504
# Copyright (C) 2012 Alex Nitz # # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is distributed in t...
gpl-3.0
camallen/aggregation
engine/aggregation_api.py
1
98708
#!/usr/bin/env python # from setuptools import setup, find_packages import os import tarfile import yaml import urllib2 import cookielib import re import json import urllib import datetime import classification import matplotlib.pyplot as plt import matplotlib.cbook as cbook import math import sys import agglomerative ...
apache-2.0
kundor/gpstools
plot.py
1
30284
from math import floor, ceil, pi import os from contextlib import suppress import time import numpy as np import pandas as pd from scipy.signal import savgol_filter import matplotlib as mp mp.use('Agg', warn=False) # non-interactive backend, allows importing without crashing X-less ipython from matplotlib import pyplot...
gpl-3.0
CI-WATER/gsshapy
gsshapy/orm/cmt.py
1
41262
""" ******************************************************************************** * Name: MappingTablesModel * Author: Nathan Swain * Created On: Mar 18, 2013 * Copyright: (c) Brigham Young University 2013 * License: BSD 2-Clause ******************************************************************************** """ fr...
bsd-3-clause
TomAugspurger/pandas
pandas/tests/io/test_sql.py
1
100120
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
bsd-3-clause
rustychris/stompy
stompy/spatial/field.py
1
155245
from __future__ import division from __future__ import print_function # still tracking down the last few calls missing the np. prefix, # leftover from 'from numpy import *' import numpy as np import glob,types import copy from numpy.random import random from numpy import ma from numpy.linalg import norm import tem...
mit
dp7-PU/QCLAS_public
src/qclasGUI.py
1
30542
""" Make a GUI for qclas. This program uses HAPI to generate absorption profiles. The program comes in without HITRAN data files. User can use the program to download lines they need. GUI of the program is based on PyQt4. Da Pan, v-alpha, started on 02/13/2016 """ import hapi import numpy as np from Py...
mit
teonlamont/mne-python
mne/surface.py
4
49374
# 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 from glob import glob from functools imp...
bsd-3-clause
nextgenusfs/funannotate
funannotate/compare.py
1
59286
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import subprocess import shutil import argparse import io from datetime import datetime from goatools import obo_parser from Bio import SeqIO from natsort import natsorted import pandas as pd import funannotate.library as lib import funannotate.resour...
bsd-2-clause
Shaswat27/scipy
scipy/optimize/_lsq/least_squares.py
1
36627
"""Generic interface for least-square 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
reimandlab/ActiveDriverDB
website/imports/protein_data.py
1
38764
from collections import defaultdict, namedtuple from pathlib import Path from typing import Callable, Type from warnings import warn from pandas import read_table from tqdm import tqdm from database import db, create_key_model_dict from database import get_or_create from helpers.bioinf import aa_symbols from helpers.p...
lgpl-2.1
sauloal/cnidaria
scripts/venv/lib/python2.7/site-packages/pandas/io/pytables.py
1
154221
""" High level interface to PyTables for reading and writing pandas data structures to disk """ # pylint: disable-msg=E1101,W0613,W0603 from datetime import datetime, date import time import re import copy import itertools import warnings import os import numpy as np from pandas import (Series, TimeSeries, DataFrame,...
mit
phoenixding/scdiff
scdiff/scdiff.py
1
56144
#!/usr/bin/env python # author: Jun Ding # Date: Feb. 10th, 2018 # import system modules import pdb,sys,os,random import numpy as np np.seterr(divide='ignore', invalid='ignore') import warnings warnings.filterwarnings("ignore") import math import copy import pickle import argparse import functools # import Statistics...
mit
oknuutti/visnav-py
visnav/algo/model.py
1
57150
import pickle import sys import math from abc import ABC from functools import lru_cache from math import degrees as deg, radians as rad import numpy as np import quaternion # adds to numpy # noqa # pylint: disable=unused-import from astropy.time import Time from astropy import constants as const from astropy import...
mit
afrendeiro/genomeToolkit
genomeToolkit/tools.py
1
47225
#!/usr/bin/env python def savePandas(filename, data): """ Save DataFrame or Series. :param filename : Filename to use :type filename : str :param data: Pandas DataFrame or Series :type data: pandas.DataFrame or pandas.Series """ import numpy as np import cPickle as pickle np....
gpl-2.0
thatchristoph/RTLSDR-Scanner
src/main_window.py
1
59116
# # rtlsdr_scan # # http://eartoearoak.com/software/rtlsdr-scanner # # Copyright 2012 - 2014 Al Brown # # A frequency scanning GUI for the OsmoSDR rtl-sdr library at # http://sdr.osmocom.org/trac/wiki/rtl-sdr # # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Gene...
gpl-3.0
FCoulombeau/ConformalMapping
trans_with_warp.py
1
36304
# -*- coding: utf-8 -*- """Conformal mappings of the complex plane used to manipulate and transform images and videos. @author: François Coulombeau @date : 2014-11 @version : 0.3 @change : (0.3) Use of skimage.transform.warp to actually do the transformation. """ import matplotlib.pyplot as plt import movie...
gpl-2.0
hulingfei/Shaka
bia-660/final/data_mining_reviews.py
1
102467
# -*- coding: utf-8 -*- """ Created on Sat Nov 07 06:06:16 2015 @author: Lingfei Hu """ import re import HTMLParser import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.linear_model import SGDClassifier from sklearn.sv...
apache-2.0
MaestroGraph/sparse-hyper
experiments/transformer.py
1
56086
from _context import sparse from sparse import util import torch from torch import nn from torch.autograd import Variable import torch.nn.functional as F import torch.distributions as dist import numpy as np from argparse import ArgumentParser from torch.utils.tensorboard import SummaryWriter import random, tqdm, s...
mit
YzPaul3/h2o-3
h2o-py/tests/pyunit_utils/utilsPY.py
1
128719
from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import range from past.builtins import basestring import sys, os sys.path.insert(1, "../../") import h2o import imp import random import re import subprocess from subprocess import STDOUT,PIPE from...
apache-2.0
WangWenjun559/Weiss
summary/sumy/sklearn/svm/classes.py
1
37572
import warnings import numpy as np from .base import _fit_liblinear, BaseSVC, BaseLibSVM from ..base import BaseEstimator, RegressorMixin from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ LinearModel from ..feature_selection.from_model import _LearntSelectorMixin from ..utils import check_X...
apache-2.0
garbersc/keras-galaxies
predict_convnet_keras_10cat_ConvTest.py
1
47771
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 import timedelta import os import matplotlib.pyplot as plt import skimage.io from termcolor import colo...
bsd-3-clause
hail-is/hail
hail/python/hail/experimental/ldscsim.py
1
41324
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Simulation framework for testing LDSC Models for SNP effects: - Infinitesimal (can simulate n correlated traits) - Spike & slab (can simulate up to 2 correlated traits) - Annotation-informed Features: - Field aggregation tools for annotation-informed m...
mit
pniessen/Segment_Helper
web/PCA_tester.py
1
124097
#!/usr/bin/env python # coding: utf-8 # Rosetta Consulting customer segmentation pipeline # 1.20.2016 # Peter Niessen, peter.niessen@rosetta.com ''' Segment Helper: a customer segmentation toolkit ''' import numpy as np from sklearn.decomposition import PCA import time import flask import pandas as pd import os fr...
mit
chunweiyuan/xarray
xarray/tests/test_plot.py
1
70840
import inspect from datetime import datetime import numpy as np import pandas as pd import pytest from numpy.testing import assert_array_equal import xarray as xr import xarray.plot as xplt from xarray import DataArray from xarray.coding.times import _import_cftime from xarray.plot.plot import _infer_interval_breaks ...
apache-2.0
cmeeren/eiscatscanplot
eiscatscanplot.py
1
65148
# -*- coding: utf-8 -*- """ Module to plot EISCAT radar scans. Scan detection based on azimuth (primary) or elevation (if stationary in azimuth) @author: Christer van der Meeren Initially tested at the ESR 2014-11-26 """ from __future__ import print_function import os import shutil from os.path import isfile, join ...
mit
GlobalEcologyLab/SARDM
modified-lib-files/matplotlib/backends/backend_tkagg.py
1
36111
# Todd Miller jmiller@stsci.edu from __future__ import division, print_function import os, sys, math import os.path import Tkinter as Tk, FileDialog # Paint image to Tk photo blitter extension import matplotlib.backends.tkagg as tkagg from matplotlib.backends.backend_agg import FigureCanvasAgg import matplotlib....
gpl-3.0
BayesFlare/bayesflare
bayesflare/stats/bayes.py
1
54001
""" """ from __future__ import print_function from math import log import numpy as np from copy import copy, deepcopy from ..noise import estimate_noise_ps, estimate_noise_tv, highpass_filter_lightcurve, savitzky_golay from ..models import * from .general import * #from .thresholding import Thresholder from math imp...
gpl-2.0
jonparrott/google-cloud-python
bigquery/tests/unit/test_table.py
2
65767
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
RNAEDITINGPLUS/main
node/utrOntology.py
1
33627
#! /usr/bin/env python # Copyright (C) 2016 Li Yao <yaoli95@outlook.com> # # 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 #...
apache-2.0
orlox/binary_tools
binary/tests/test_kicks.py
1
32399
#!/usr/bin/env python from binary_tools.constants import * from binary_tools.binary import kicks from binary_tools.binary.orbits import * import matplotlib.pyplot as plt from scipy.stats import maxwell from scipy.integrate import quad import random as rd import numpy as np __author__ = "Kaliroe Pappas" __credits__ = [...
gpl-3.0
vmonaco/pohmm
pohmm/pohmm.py
1
55722
import numpy as np import scipy.stats as stats from collections import defaultdict, Counter, OrderedDict from . import _hmmc from .utils import * NEGINF = -np.inf # Label for the missing/unknown p-states UNKNOWN_PSTATE = 'UNKNOWN' # There are many places where a 0 probability must be avoided. Assume a very small pro...
bsd-3-clause
gpfinder/gpfinder
GPFinder/FeatureObject.py
1
144044
from xml.dom import minidom, Node from operator import attrgetter from os.path import splitext import os import re import glob import time import numpy import math import array import base64 import struct import bisect from copy import deepcopy from gaussian_kde import * from pyFindMassMatch import * from MassScoreObj...
gpl-3.0