repo_name
string
path
string
copies
string
size
string
content
string
license
string
guziy/basemap
lib/mpl_toolkits/basemap/cm.py
2
40170
from __future__ import (absolute_import, division, print_function) """ 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...
gpl-2.0
frownless/EMUstack
backend/plotting.py
1
42894
""" plotting.py is a subroutine of EMUstack that contains numerous plotting routines. These were developed during simulations for photovoltaics, hence the efficiency calculations. Copyright (C) 2013 Bjorn Sturmberg, Kokou Dossou, Felix Lawrence EMUstack is free software: you can redistribu...
gpl-3.0
detrout/debian-statsmodels
statsmodels/base/tests/test_data.py
1
35156
import numpy as np from numpy.testing import assert_equal, assert_, assert_raises import pandas import pandas.util.testing as ptesting from statsmodels.base import data as sm_data from statsmodels.formula import handle_formula_data #class TestDates(object): # @classmethod # def setupClass(cls): # nrows =...
bsd-3-clause
huzq/scikit-learn
sklearn/model_selection/tests/test_split.py
1
61594
"""Test the split module""" import warnings import pytest import numpy as np from scipy.sparse import coo_matrix, csc_matrix, csr_matrix from scipy import stats from scipy.special import comb from itertools import combinations from itertools import combinations_with_replacement from itertools import permutations from ...
bsd-3-clause
m3wolf/xanespy
tests/test_qt.py
1
40620
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright © 2016 Mark Wolf # # This file is part of Xanespy. # # Xanespy 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
hypergravity/hrs
twodspec/extern/polynomial.py
1
65808
# -*- coding: utf-8 -*- """ Extended functions to operate on polynomials """ # ------------------------------------------------------------------------ # Name: polynomial # Purpose: Functions to operate on polynomials. # # Author: pab # polyXXX functions are based on functions found in the matlab to...
bsd-3-clause
ARudiuk/mne-python
mne/cov.py
1
75049
# 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) import copy as cp from distutils.version import LooseVersion import itertools as itt from math import log imp...
bsd-3-clause
DailyActie/Surrogate-Model
01-codes/deap-master/deap/gp.py
1
46680
# This file is part of DEAP. # # DEAP 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 later version. # # DEAP is distributed ...
mit
maropu/spark
python/pyspark/pandas/frame.py
1
427279
# # 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
gfyoung/pandas
pandas/tests/frame/test_arithmetic.py
1
59793
from collections import deque from datetime import datetime import operator import re import numpy as np import pytest import pytz import pandas as pd from pandas import DataFrame, MultiIndex, Series import pandas._testing as tm import pandas.core.common as com from pandas.core.computation.expressions import _MIN_ELE...
bsd-3-clause
mne-tools/mne-python
mne/preprocessing/maxwell.py
1
103928
# -*- coding: utf-8 -*- # Authors: Mark Wronkiewicz <wronk.mark@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # Jussi Nurminen <jnu@iki.fi> # License: BSD (3-clause) from collections import Counter, OrderedDict from functools import partial from math import factorial from os import path as op ...
bsd-3-clause
jakevdp/seaborn
seaborn/categorical.py
1
102456
from __future__ import division from textwrap import dedent import colorsys import numpy as np from scipy import stats import pandas as pd from pandas.core.series import remove_na import matplotlib as mpl import matplotlib.pyplot as plt import warnings from .external.six import string_types from .external.six.moves im...
bsd-3-clause
hetland/xray
xray/core/dataset.py
1
74283
import functools import warnings from collections import Mapping from numbers import Number import numpy as np import pandas as pd from . import ops from . import utils from . import common from . import groupby from . import indexing from . import alignment from . import formatting from .. import conventions from .a...
apache-2.0
kdaily/altanalyze
GO_Elite.py
1
158023
###GO-Elite #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 "Software"), to deal #in the Software ...
apache-2.0
L3nzian/AutoPermit
TmdlGui.py
1
198879
import wx from wx import aui,grid from wx.lib import colourdb import wxmpl_plus import matplotlib.dates import _winreg import TmdlFrame if wx.Platform == '__WXMSW__': import wx.lib.iewin as iewin import TmdlLogic import datetime from dateutil import parser as DateParse, relativedelta as Relative import types from c...
gpl-2.0
rajul/mne-python
mne/epochs.py
1
98236
"""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
msincenselee/vnpy
vnpy/app/cta_strategy/backtesting.py
1
39812
from collections import defaultdict from datetime import date, datetime, timedelta from typing import Callable from itertools import product from functools import lru_cache from time import time import multiprocessing import random import traceback import numpy as np import matplotlib.pyplot as plt import seaborn as s...
mit
canismarko/xanespy
xanespy/xanes_frameset.py
1
83425
# -*- coding: utf-8 -*- # # Copyright © 2016 Mark Wolf # # This file is part of Xanespy. # # Xanespy 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 l...
gpl-3.0
PythonProgramming/PythonProgramming.net-Website
content_management.py
1
41914
## ##// ## ## ##// CURRENT: ##// list of topics by {TOPIC:[["TITLE", "URL"]]} ## ##// FUTURE: ##////list of topics by {TOPIC:[["TITLE", "URL", "TAGS"], ##//// ["TITLE", "URL", "TAGS"]]} def Content(): ## // Suggest Branches for next steps ## // If liked: Matp...
mit
biorack/metatlas
metatlas/tools/fastanalysis.py
1
44715
from __future__ import absolute_import from __future__ import print_function import logging import os import multiprocessing as mp import pprint from six.moves import range import numpy as np import pandas as pd from metatlas.io import metatlas_get_data_helper_fun as ma_data from metatlas.io import write_utils from m...
bsd-3-clause
dssg/education-college-public
code/etl/cleaners/clean_noble.py
1
31155
''' Contains all the functions to clean Noble data. Inputs: Each cleaning function takes a dataframe (or many dataframes) as inputs. These input dataframes are "raw", loaded directly from CSVs provided by partners. Output: Each cleaning function returns a "cleaned" dataframe, which is in the correct format to be uplo...
mit
ahaberlie/MetPy
src/metpy/plots/skewt.py
1
36390
# Copyright (c) 2014,2015,2016,2017,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Make Skew-T Log-P based plots. Contain tools for making Skew-T Log-P plots, including the base plotting class, `SkewT`, as well as a class for making a `Hodog...
bsd-3-clause
louispotok/pandas
pandas/tests/groupby/test_categorical.py
1
31976
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import pytest import numpy as np import pandas as pd from pandas import (Index, MultiIndex, CategoricalIndex, DataFrame, Categorical, Series, qcut) from pandas.util.testing import assert_frame_equal, assert...
bsd-3-clause
agiovann/Constrained_NMF
caiman/source_extraction/cnmf/estimates.py
1
75132
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 12 11:11:45 2018 @author: epnevmatikakis """ import logging import matplotlib.pyplot as plt import numpy as np import scipy.sparse from typing import List import time import caiman from .utilities import detrend_df_f, decimation_matrix from .spati...
gpl-2.0
aclapes/simpledarwintree
spectral_division.py
1
37991
"""Tree structure and hierarchical divisive algorithm for spectral clustering Used in the paper: @article{Gaidon2014, author = {Gaidon, Adrien and Harchaoui, Zaid and Schmid, Cordelia}, title = {{Activity representation with motion hierarchies}}, journal = {IJCV}, year = {2014} } LICENSE: BSD Copyrights: Adrien Gaidon,...
gpl-2.0
dusenberrymw/deep-histopath
deephistopath/wsi/slide.py
1
32987
# ------------------------------------------------------------------------ # # 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 requi...
apache-2.0
jreback/pandas
pandas/tests/groupby/aggregate/test_aggregate.py
1
38917
""" test .agg behavior / note that .apply is tested generally in test_groupby.py """ import datetime import functools from functools import partial import numpy as np import pytest from pandas.errors import PerformanceWarning from pandas.core.dtypes.common import is_integer_dtype import pandas as pd from pandas imp...
bsd-3-clause
peterwilliams97/prince
explore.py
1
30458
# -*- coding: utf-8 -*- """ """ from __future__ import division, print_function import sys import os import re import numpy as np import pandas as pd from pandas import DataFrame, Series from glob import glob from pprint import pprint from sklearn import cross_validation, utils from sklearn.ensemble impo...
mit
tienhv/caravel
caravel/forms.py
1
43489
"""Contains the logic to create cohesive forms on the explore view""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import OrderedDict from copy import copy import json import math from flask_babel ...
apache-2.0
louispotok/pandas
pandas/tests/io/parser/common.py
1
54118
# -*- coding: utf-8 -*- import csv import os import platform import codecs import re import sys from datetime import datetime from collections import OrderedDict import pytest import numpy as np from pandas._libs.tslib import Timestamp import pandas as pd import pandas.util.testing as tm from pandas import DataFram...
bsd-3-clause
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/parcats/line/_colorbar.py
1
73397
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "parcats.line" _path_str = "parcats.line.colorbar" _valid_props = { "bgcolor", ...
mit
WMD-group/rvo
rvo_stats.py
3
36130
#! /usr/bin/env python # rvo_stats.py # Copyright 2015 Adam J. Jackson and Jonathan M. Skelton from __future__ import print_function import csv import math import numpy as np from collections import namedtuple import matplotlib as mpl import matplotlib.pyplot as plt # from matplotlib.ticker import FuncFormatter im...
gpl-3.0
adykstra/mne-python
mne/decoding/csp.py
1
36717
# -*- coding: utf-8 -*- # Authors: Romain Trachel <trachelr@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Alexandre Barachant <alexandre.barachant@gmail.com> # Clemens Brunner <clemens.brunner@gmail.com> # Jean-Remi King <jeanremi.king@gmail.com> # # Lic...
bsd-3-clause
jskDr/jamespy_py3
jchem.py
1
57361
from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import Draw from rdkit import DataStructs from rdkit.Chem import MACCSkeys from rdkit.Chem import FragmentCatalog import matplotlib.pyplot as plt import numpy as np import pandas as pd import os from scipy import stats # This is James Sungjin Kim's...
mit
lvphj/epydemiology
epydemiology/phjCalculateProportions.py
1
69661
import pkg_resources try: pkg_resources.get_distribution('numpy') except pkg_resources.DistributionNotFound: numpyPresent = False print("Error: Numpy package not available.") else: numpyPresent = True import numpy as np try: pkg_resources.get_distribution('pandas') except pkg_resources.Distri...
mit
OGGM/oggm
oggm/workflow.py
1
41901
"""Wrappers for the single tasks, multi processor handling.""" # Built ins import logging import os import shutil from collections.abc import Sequence # External libs import multiprocessing import numpy as np import pandas as pd from scipy import optimize as optimization # Locals import oggm from oggm import cfg, task...
bsd-3-clause
agile-geoscience/welly
welly/well.py
1
45351
""" Defines wells. :copyright: 2021 Agile Scientific :license: Apache 2.0 """ from __future__ import division import re import datetime import warnings import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.ticker as ticker import lasio import numpy as np from io import StringIO import urllib fr...
apache-2.0
ChinaQuants/pyfolio
pyfolio/timeseries.py
1
33526
# # 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 wr...
apache-2.0
armsd/aRMSD
armsd/alog.py
1
77989
""" aRMSD log functions (c) 2017 by Arne Wagner """ # Authors: Arne Wagner # License: MIT from __future__ import absolute_import, division, print_function from builtins import range, input try: import numpy as np except ImportError: pass class Logger(object): """ An object used ...
mit
Frikster/Mesoscale-Brain-Explorer
src/plugins/correlation_matrix.py
1
38149
#!/usr/bin/env python3 from __future__ import print_function import os import sys import math from PyQt4.QtCore import * from PyQt4.QtGui import * from .util import custom_qt_items as cqt from .util import file_io from .util.mygraphicsview import MyGraphicsView sys.path.append('..') import qtutil import pickle impor...
mit
jdavidrcamacho/Tests_GP
07 - MCMC results/kernel_multiqp_all.py
1
40712
# -*- coding: utf-8 -*- import Gedi as gedi import numpy as np; #np.random.seed(13042017) import matplotlib.pylab as pl; pl.close("all") from matplotlib.ticker import MaxNLocator import astropy.table as Table from time import time import sys #sys.path.append(...\Emcee) import emcee print print 'It has began.' print #...
mit
SiLab-Bonn/Scarce
scarce/fields.py
1
42599
r"""The field module calculates the potentials and fields of silicon sensors. The potential is determined numerically by solving these equations on a mesh: .. math:: \nabla^2 \Phi = 0 :label: laplace .. math:: \nabla^2 \Phi = \frac{\rho}{\epsilon} :label: poisson For the weighting potential equation :eq:`lapl...
mit
dattalab/d_code
imaging/segmentation/CellPicker.py
1
47797
import matplotlib as mpl from PyQt4 import QtCore, QtGui import sys import matplotlib.pyplot as plt from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.figure import Figure mpl.rcParams['backend.qt4']='PySide' import numpy as np import scipy.ndimage as nd import scipy i...
mit
sosey/ginga
ginga/cmap.py
2
507657
# # cmap.py -- color maps for fits viewing # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # from __future__ import print_function import numpy from ginga.util.six.move...
bsd-3-clause
googlearchive/rgc-models
response_model/python/population_subunits/jitter/distributed/jitter_model.py
1
31283
# Copyright 2018 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
BRD-CD/superset
superset/views/core.py
1
82382
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 pandas as pd import pickle import re import time import tra...
apache-2.0
plotly/python-api
packages/python/plotly/plotly/graph_objs/choroplethmapbox/_colorbar.py
1
69712
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.colorbar" _valid_props = { "bgcolo...
mit
3324fr/spinalcordtoolbox
dev/sct_segment_gray_matter_asman/sct_asman_old.py
1
104827
#!/usr/bin/env python ######################################################################################################################## # # Asman et al. groupwise multi-atlas segmentation method implementation # # # -------------------------------------------------------------------------------------------------...
mit
bretthdavis/standfire
apps/STANDFIRE_v1.1/fuels.py
1
46363
#!python2 ################################################################################ #----------# # fuels.py # #----------# """ This module is the interface to FVS. Given a FVS variant name, a keyword file and the corresponding tree file, a user can run a FVS simulation and request various fuels information from...
gpl-3.0
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/core/base.py
1
36967
""" Base and utility classes for pandas objects. """ from pandas import compat from pandas.compat import builtins import numpy as np from pandas.core import common as com import pandas.core.nanops as nanops import pandas.lib as lib from pandas.compat.numpy import function as nv from pandas.util.decorators import (Appen...
mit
Merinorus/adaisawesome
Homework/01 - Pandas and Data Wrangling/Intro to Pandas.py
1
39059
# coding: utf-8 # # Table of Contents # <p><div class="lev1"><a href="#Introduction-to-Pandas"><span class="toc-item-num">1&nbsp;&nbsp;</span>Introduction to Pandas</a></div><div class="lev2"><a href="#Pandas-Data-Structures"><span class="toc-item-num">1.1&nbsp;&nbsp;</span>Pandas Data Structures</a></div><div class...
gpl-3.0
CompPhysics/ThesisProjects
doc/MSc/msc_students/former/AudunHansen/Audun/Notebooks/CCAlgebra_mk4_tab.py
1
83258
#from IPython.display import display, Math, Latex #%matplotlib inline from numpy import * from itertools import * from matplotlib.pyplot import * from copy import copy from sympy import Symbol, expand class Combiner(): #Normal ordered operator for cluster algebra (diagrammatic) def __init__(self...
cc0-1.0
coillarach/PCWG
pcwg_tool.py
1
157035
from Tkinter import * from tkFileDialog import * import tkSimpleDialog import tkMessageBox from dataset import getSeparatorValue import Analysis import configuration import datetime import os import os.path import pandas as pd import dateutil columnSeparator = "|" filterSeparator = "#" datePickerFormat = "%Y-%m-%d %H:...
mit
dpaiton/OpenPV
pv-core/analysis/python/plot_roc.py
1
40329
""" Plot the highest activity of four different bar positionings """ import sys import numpy as np import matplotlib.pyplot as plt import matplotlib.mlab as mlab import matplotlib.cm as cm import PVReadSparse as rs import PVReadWeights as rw import PVConversions as conv import scipy.cluster.vq as sp import math def ...
epl-1.0
NSLS-II-HXN/PyXRF
pyxrf/gui_module/useful_widgets.py
1
39863
from qtpy.QtWidgets import (QLineEdit, QWidget, QHBoxLayout, QComboBox, QTextEdit, QSizePolicy, QLabel, QPushButton, QGridLayout, QSlider, QSpinBox, QCheckBox) from qtpy.QtCore import Qt, Signal, Slot from qtpy.QtGui import QPalette, QColor, QFontMetrics, QIntVali...
bsd-3-clause
jerjorg/BZI
BZI/all_2D.py
1
70767
"""Methods to for calculating and visualizing lattices and Brillouin zones in 2D.""" from numpy.linalg import norm, inv, det import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import itertools as it from copy import deepcopy, copy from scipy.spatial import ConvexHull from BZI.s...
gpl-3.0
pligor/predicting-future-product-prices
01_imputation/my_fancy_imputation.py
1
32532
# -*- coding: UTF-8 -*- from __future__ import division import sys import unirest import json from time import sleep import pickle import numpy as np import pandas as pd import time from datetime import datetime, timedelta import os from fancyimpute import KNN, NuclearNormMinimization, SoftImpute, IterativeSVD, MICE, ...
agpl-3.0
azariven/BioSig_SEAS
SEAS_Main/simulation/transmission_spectra_simulator.py
1
44393
#!/usr/bin/env python # # Copyright (C) 2017 - Massachusetts Institute of Technology (MIT) # # 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...
gpl-3.0
Erotemic/ibeis
ibeis/algo/smk/smk_funcs.py
1
40867
# -*- coding: utf-8 -*- """ References: Jegou's Source Code, Data, and Publications http://people.rennes.inria.fr/Herve.Jegou/publications.html To aggregate or not to aggregate: selective match kernels for image search https://hal.inria.fr/hal-00864684/document Image search with selective match ke...
apache-2.0
yejingxin/PyKrige
pykrige/ok.py
1
33614
__doc__ = """Code by Benjamin S. Murphy bscott.murphy@gmail.com Dependencies: numpy scipy matplotlib Cython Classes: OrdinaryKriging: Convenience class for easy access to 2D Ordinary Kriging. References: P.K. Kitanidis, Introduction to Geostatistcs: Applications in Hydrogeology, ...
bsd-3-clause
jseabold/statsmodels
statsmodels/tsa/holtwinters/model.py
4
69847
""" Notes ----- Code written using below textbook as a reference. Results are checked against the expected outcomes in the text book. Properties: Hyndman, Rob J., and George Athanasopoulos. Forecasting: principles and practice. OTexts, 2014. Author: Terence L van Zyl Modified: Kevin Sheppard """ from statsmodels.comp...
bsd-3-clause
jcrudy/sklearntools
sklearntools/sklearntools.py
1
46229
''' Created on Feb 11, 2016 @author: jason ''' from sklearn.base import BaseEstimator, clone, MetaEstimatorMixin import numpy as np from six import with_metaclass from functools import update_wrapper import sys from sklearn2code.sym.function import comp if sys.version_info[0] < 3: from inspect import getargspec el...
bsd-3-clause
fedspendingtransparency/data-act-broker-backend
dataactcore/scripts/load_historical_fpds_files.py
1
47679
import argparse import urllib.request import datetime import csv import io import os import boto3 import re import zipfile import numpy as np import pandas as pd import logging from sqlalchemy.dialects.postgresql import insert from sqlalchemy.exc import IntegrityError from dataactcore.config import CONFIG_BROKER fro...
cc0-1.0
jordan-melendez/buqeyemodel
gsum/models.py
1
75656
from __future__ import division import docrep from .helpers import coefficients, hpd, mahalanobis, geometric_sum import numpy as np from numpy.linalg import solve, cholesky import scipy as sp from scipy.linalg import cho_solve, solve_triangular, inv, eigh from scipy.special import loggamma import scipy.stats as st from...
mit
tebeka/arrow
python/pyarrow/tests/test_array.py
1
41758
# -*- coding: utf-8 -*- # 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 # "...
apache-2.0
treycausey/scikit-learn
sklearn/tests/test_common.py
1
43845
""" General tests for all estimators in sklearn. """ # Authors: Andreas Mueller <amueller@ais.uni-bonn.de> # Gael Varoquaux gael.varoquaux@normalesup.org # License: BSD 3 clause from __future__ import print_function import os import warnings import sys import traceback import inspect import pickle import pkg...
bsd-3-clause
Egdus/SimpleShedSimulator
simpleshedsimulator/core/net.py
1
38464
#SimpleShedSimulator for quick schedule risk analysis #Copyright (C) 2014 Anders Jensen # #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 ...
gpl-3.0
bashuk/thesis
main.py
1
36646
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ Optimal trajectory builder (Alex Bashuk's thesis work).""" import copy import bisect import numpy as np import matplotlib.pyplot as plt import random import PIL import os import sys import math import profilehooks __author__ = "Alex Bashuk" __copyright__ = "Copyrig...
mit
ericfourrier/pandas-patch
pandas_patch/main.py
1
30523
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: efourrier Purpose : the puropose of this modest patch is to create some new methods for the class Dataframe in order to simplify a data scientist life. The module is designed as a monkey patch so just import it before starting your analysis. It is providing m...
mit
phaustin/pyman
Book/chap7/python/chap7_funcs.py
1
55841
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # cell_metadata_filter: all # notebook_metadata_filter: all,-language_info # text_representation: # extension: .py # format_name: percent # format_version: '1.2' # jupytext_version: 1.2.1 # kernelspec: # display_name: Pytho...
cc0-1.0
chrsrds/scikit-learn
sklearn/cluster/optics_.py
3
37550
# -*- coding: utf-8 -*- """Ordering Points To Identify the Clustering Structure (OPTICS) These routines execute the OPTICS algorithm, and implement various cluster extraction methods of the ordered list. Authors: Shane Grigsby <refuge@rocktalus.com> Adrin Jalali <adrinjalali@gmail.com> Erich Schuber...
bsd-3-clause
schoolie/bokeh
bokeh/core/tests/test_properties.py
1
62944
from __future__ import absolute_import import datetime import unittest import numpy as np import pandas as pd from copy import copy import pytest from bokeh.core.properties import (field, value, NumberSpec, ColorSpec, Bool, Int, Float, Complex, String, Regex, Seq, List, Dict, Tuple, Instance, Any, Interval, ...
bsd-3-clause
olafhauk/mne-python
mne/tests/test_epochs.py
1
137806
# -*- coding: utf-8 -*- # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) from copy import deepcopy from distutils.version import LooseVersion from functools import partial...
bsd-3-clause
rsmailach/MultiServerSRPT
ClassBased_Multi_RR.py
1
45800
#----------------------------------------------------------------------# # ApproxSRPTE_Multi_RR.py # # This application simulates multiple server with Poisson arrivals # and processing times of a general distribution. There are errors in # time estimates within a range. Arrivals are assigned to SRPT classes # using the...
mit
ClearCorp/odootools
odootools/odootools/odoo/server.py
1
42624
#!/usr/bin/python2 # -*- coding: utf-8 -*- ######################################################################## # # Odoo Tools by CLEARCORP S.A. # Copyright (C) 2009-TODAY CLEARCORP S.A. (<http://clearcorp.co.cr>). # # This program is free software: you can redistribute it and/or modify # it under the terms of ...
agpl-3.0
zerothi/sisl
sisl/grid.py
1
65207
# 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/. from functools import partial from numbers import Integral, Real from math import pi import numpy as np from numpy impo...
lgpl-3.0
parksandwildlife/wastd
wastd/observations/utils.py
1
200499
# -*- coding: utf-8 -*- """Observation untilities.""" import csv import io import json # from plogger.debug import plogger.debug import logging import os import shutil from datetime import datetime, timedelta import pandas import requests import xmltodict from confy import env from dateutil import parser from django.c...
mit
eclee25/flu-SDI-exploratory-age
scripts/create_fluseverity_figs_v3/functions_v3.py
1
76886
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 10/15/14 ## Purpose: script of functions for data cleaning and processing to draw flu severity figures; supports figures in create_fluseverity_figs ## v2: swap child:adult OR to adult:child OR ## v3: ...
mit
FCP-INDI/C-PAC
CPAC/pipeline/cpac_ga_model_generator.py
1
42272
import re import os import sys import glob from CPAC.utils.datasource import create_grp_analysis_dataflow from CPAC.utils import Configuration def write_new_sub_file(current_mod_path, subject_list, new_participant_list): # write the new participant list new_sub_file = os.path.join(current_mod_path,os.path.ba...
bsd-3-clause
DittmarLab/HGTector
hgtector/database.py
1
31223
#!/usr/bin/env python3 # ---------------------------------------------------------------------------- # Copyright (c) 2013--, Qiyun Zhu and Katharina Dittmar. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # --------------------...
bsd-3-clause
Alex-Ian-Hamilton/sunpy
sunpy/spectra/spectrogram.py
1
42397
# -*- coding: utf-8 -*- # Author: Florian Mayer <florian.mayer@bitsrc.org> """Classes for spectral analysis.""" from __future__ import division, print_function, absolute_import import datetime from random import randint from copy import copy from math import floor import numpy as np from numpy import ma from scipy...
bsd-2-clause
nomad-vagabond/asterion
visualize_data.py
1
31054
import itertools, string from copy import deepcopy import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib import cm import learn_data as ld _axsize = [0.09, 0.05, 0.8, 0.9] # [left, bottom, width, height] # _cbar_size = [0.9, ...
mit
pratapvardhan/scikit-learn
sklearn/linear_model/coordinate_descent.py
1
81092
# 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 from abc import ABCMeta, abstractmethod import n...
bsd-3-clause
xccui/flink
flink-python/pyflink/table/table_environment.py
1
88461
################################################################################ # 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...
apache-2.0
jrversteegh/softsailor
deps/scipy-0.10.0b2/scipy/stats/distributions.py
1
213919
# Functions to implement several important functions for # various Continous and Discrete Probability Distributions # # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # import math import warnings from copy import copy from scipy.misc import comb, derivative from s...
gpl-3.0
adlyons/AWOT
awot/graph/radar_vertical.py
1
30248
""" awot.graph.radar_vertical ========================= A group of scripts to create vertical radar plots. """ # FUNCTIONS:: # polar_sweep - Plot polar coordinate data on polar coordinate axis # polar_sweep_grid - Plotting transformed data to Cartesian output # sweep_to_Cart - Polar coordinates transformed to Cartesia...
gpl-2.0
zhouyao1994/incubator-superset
tests/core_tests.py
1
37852
# 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
amolkahat/pandas
pandas/tests/indexes/test_base.py
1
98659
# -*- coding: utf-8 -*- import pytest from datetime import datetime, timedelta from decimal import Decimal from collections import defaultdict import pandas.util.testing as tm from pandas.core.dtypes.generic import ABCIndex from pandas.core.dtypes.common import is_unsigned_integer_dtype from pandas.core.indexes.api ...
bsd-3-clause
giacomov/3ML
threeML/utils/data_builders/time_series_builder.py
1
44553
import copy import re import astropy.io.fits as fits import numpy as np from threeML.exceptions.custom_exceptions import custom_warnings from threeML.io.file_utils import file_existing_and_readable from threeML.io.progress_bar import progress_bar from threeML.plugins.DispersionSpectrumLike import DispersionSpectrumLi...
bsd-3-clause
ORTI3D/ORTI3D_code
iliblast/addin.py
1
32992
import os, sys, inspect from config import * from Pht3d import * from Min3p import * from geometry import * from matplotlib import pylab # for having grafs in batch from Pest import * from Opgeo import * from instantFit import * from modflowWriter import * class addin: """the addin class is used to add buttons or ...
gpl-3.0
RRCKI/panda-server
pandaserver/taskbuffer/OraDBProxy.py
1
890929
""" proxy for database connection """ import re import os import sys import json import time import copy import glob import fcntl import types import random import urllib import socket import inspect import datetime import commands import traceback import warnings import ErrorCode import SiteSpec import CloudSpec impo...
apache-2.0
webeng/DeepLearningTutorials
code/sktheano_cnn_original.py
1
35346
""" Aaron Berndsen: A Conformal Neural Network using Theano for computation and structure, but built to obey sklearn's basic 'fit' 'predict' functionality *code largely motivated from deeplearning.net examples and Graham Taylor's "Vanilla RNN" (https://github.com/gwtaylor/theano-rnn/blob/master/rnn.py) You'll requir...
bsd-3-clause
kdmurray91/scikit-bio
skbio/diversity/tests/test_driver.py
1
35795
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
bsd-3-clause
lucfra/RFHO
rfho/save_and_load.py
1
33269
import time from collections import OrderedDict, defaultdict from functools import reduce, wraps from inspect import signature import matplotlib.pyplot as plt from rfho import as_list import tensorflow as tf import rfho as rf try: from IPython.display import IFrame import IPython except ImportError: pr...
mit
roshantha9/AbstractManycoreSim
src/analyse_results/AnalyseResults_Exp_ACTest_MultiSeed_DACVariants.py
1
32302
import sys, os, csv, pprint, math from collections import OrderedDict import numpy as np import random import shutil import math import matplotlib matplotlib.use('Qt4Agg') import matplotlib.pyplot as plt plt.style.use('bmh_rosh') #from mpl_toolkits.mplot3d import Axes3D import itertools from itertools import cycle # ...
gpl-3.0
analysiscenter/dataset
batchflow/pipeline.py
1
62902
""" Contains pipeline class """ import sys import time from functools import partial import traceback import threading import concurrent.futures as cf import asyncio import logging import warnings from cProfile import Profile from pstats import Stats import queue as q import numpy as np import pandas as pd from .base ...
apache-2.0
hobson/pug-invest
pug/invest/util.py
1
46263
# util.py from __future__ import print_function from collections import Mapping, OrderedDict import datetime import itertools import random import warnings import pandas as pd np = pd.np from scipy import integrate from matplotlib import pyplot as plt import seaborn from scipy.optimize import minimize from scipy.si...
mit
wronk/mne-python
mne/viz/raw.py
1
33845
"""Functions to plot raw M/EEG data """ from __future__ import print_function # Authors: Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.fi> # # License: Simplified BSD import copy from functools import partial import numpy as np from ..externals.six import string_types fro...
bsd-3-clause
dsm054/pandas
pandas/tests/test_algos.py
1
70722
# -*- coding: utf-8 -*- import numpy as np import pytest from numpy.random import RandomState from numpy import nan from datetime import datetime from itertools import permutations import struct from pandas import (Series, Categorical, CategoricalIndex, Timestamp, DatetimeIndex, Index, IntervalInd...
bsd-3-clause
valohai/valohai-cli
valohai_cli/_vendor/tabulate.py
1
56476
# type: ignore # -*- coding: utf-8 -*- # Imported from # https://bitbucket.org/astanin/python-tabulate/raw/a4c22260a8b01c9cafd57de9465ba45394a4c027/tabulate.py # # This module is: # Copyright (c) 2011-2017 Sergey Astanin # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this s...
mit