repo_name
string
path
string
copies
string
size
string
content
string
license
string
Winand/pandas
pandas/tests/indexes/datetimes/test_tools.py
1
65753
""" test to_datetime """ import sys import pytz import pytest import locale import calendar import dateutil import numpy as np from dateutil.parser import parse from datetime import datetime, date, time from distutils.version import LooseVersion import pandas as pd from pandas._libs import tslib from pandas._libs.tsl...
bsd-3-clause
tsherwen/AC_tools
AC_tools/GEOSChem_bpch.py
1
191826
#!/usr/bin/python # -*- coding: utf-8 -*- """ Functions for use with the GEOS-Chem chemical transport model (CTM). Use help(<name of function>) to get details on a particular function. NOTE(S): - This module is underdevelopment vestigial/inefficient code is being removed/updated. - Where external code is used credi...
mit
SeanMcGrath/ScopeOut
scopeout/client.py
1
35619
""" ScopeOut GUI Defines GUI client that instantiates and controls widgets and threads. """ # Set matplotlib to call PyQt5 from matplotlib import rcParams rcParams['backend'] = 'Qt5Agg' import threading import os import logging from datetime import date, datetime from functools import partial from PyQt5 import QtWi...
mit
bdh1011/wau
venv/lib/python2.7/site-packages/pandas/tseries/frequencies.py
1
32682
from datetime import datetime,timedelta from pandas.compat import range, long, zip from pandas import compat import re import numpy as np from pandas.core.algorithms import unique from pandas.tseries.offsets import DateOffset from pandas.util.decorators import cache_readonly import pandas.tseries.offsets as offsets i...
mit
gfyoung/scipy
scipy/stats/_multivariate.py
1
120221
# # Author: Joris Vankerschaver 2013 # from __future__ import division, print_function, absolute_import import math import numpy as np from numpy import asarray_chkfinite, asarray import scipy.linalg from scipy.misc import doccer from scipy.special import gammaln, psi, multigammaln, xlogy, entr from scipy._lib._util i...
bsd-3-clause
fboers/jumegX
epocher/jumeg_epocher_ctps.py
1
36561
#import os import numpy as np import pandas as pd import mne #from jumeg.epocher.jumeg_epocher import jumeg_epocher from jumeg.jumeg_base import jumeg_base from jumeg.epocher.jumeg_epocher_events import JuMEG_Epocher_Events from jumeg.filter.jumeg_filter import jumeg_filter # from jumeg.ctps import ...
bsd-3-clause
mueller-lab/PyFRAP
pyfrp/modules/pyfrp_img_module.py
1
54982
#===================================================================================================================================== #Copyright #===================================================================================================================================== #Copyright (C) 2014 Alexander Blaessle...
gpl-3.0
bkaiser94/red_cam_pipeline
ReduceSpec_tools.py
1
73889
# -*- coding: utf-8 -*- """ Created on Sun Aug 23 20:48:10 2015 @author: jmeza """ # =========================================================================== # Packages ================================================================== # =========================================================================== ...
mit
lorenzo-desantis/mne-python
mne/tests/test_epochs.py
1
73575
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) import os.path as op from copy import deepcopy from nose.tools import (assert_true, assert_equal, assert_raises, assert_not_equal) from numpy....
bsd-3-clause
Kirubaharan/hydrology
ch_463/ch_463_daily.py
1
38356
__author__ = 'kiruba' import numpy as np import matplotlib.pyplot as plt import pandas as pd import checkdam.checkdam as cd from matplotlib import rc import matplotlib.cm as cmx import matplotlib.colors as colors from datetime import timedelta import math import ccy_classic_lstsqr # latex parameters rc('font', **{'fam...
gpl-3.0
deokwooj/DDEA
webgui/pre_bn_processing.py
1
38364
#!/usr/bin/python # To force float point division from __future__ import division """ Created on Thu Mar 13 16:34:54 2014 Author : Deokwoo Jung E-mail : deokwoo.jung@gmail.com """ import numpy as np from scipy import stats from scipy.interpolate import interp1d from sklearn import mixture from sklearn.cluster impo...
gpl-2.0
simpeg/discretize
discretize/curvilinear_mesh.py
1
37121
import numpy as np from discretize.utils import ( mkvc, index_cube, face_info, volume_tetrahedron, make_boundary_bool, ) from discretize.base import BaseRectangularMesh from discretize.operators import DiffOperators, InnerProducts from discretize.mixins import InterfaceMixins from discretize.utils....
mit
mahajrod/MACE
MACE/Routines/Drawing.py
1
49695
#!/usr/bin/env python import os import math from collections import Iterable, OrderedDict import numpy as np import matplotlib matplotlib.use('Agg') os.environ['MPLCONFIGDIR'] = '/tmp/' import matplotlib.pyplot as plt plt.ioff() from matplotlib.patches import Rectangle from matplotlib.colors import LinearSegmentedC...
apache-2.0
yoziru-desu/airflow
airflow/www/views.py
1
71927
import sys import os import socket from functools import wraps from datetime import datetime, timedelta import dateutil.parser import copy from itertools import chain, product from past.utils import old_div from past.builtins import basestring import inspect import traceback import sqlalchemy as sqla from sqlalche...
apache-2.0
matz-e/lobster
lobster/commands/plot.py
1
60092
# vim: fileencoding=utf-8 from collections import defaultdict, Counter from cycler import cycler from datetime import datetime import glob import gzip import itertools import jinja2 import logging import multiprocessing import os import pickle import shutil import sqlite3 import signal import time import re import str...
mit
NeuroanatomyAndConnectivity/opendata
scripts/utils/conversion.py
1
140244
# -*- coding: utf-8 -*- import pandas as pd import seaborn as sns sns.set_style('white') ############################################################################## #################### Creative Achievement Questionnaire ###################### #####################################################################...
mit
idaholab/raven
framework/DataObjects/DataSet.py
1
105621
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
apache-2.0
ainafp/nilearn
doc/sphinxext/gen_rst.py
1
36232
""" Example generation for the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from time import time import os import re import shutil import traceback import glob import sys from StringIO import StringIO import ...
bsd-3-clause
fraricci/pymatgen
pymatgen/analysis/graphs.py
1
114612
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ Module for graph representations of crystals. """ import warnings import subprocess import numpy as np import os.path import copy from itertools import combinations from pymatgen.core import Structure, La...
mit
taylorhxu/neurosynth
neurosynth/base/dataset.py
1
39571
""" Base classes for representing and manipulating data. """ import logging import re import os import sys import numpy as np import pandas as pd from scipy import sparse import mappable from neurosynth.base import mask, imageutils, transformations from neurosynth.base import lexparser as lp from neurosynth.utils impo...
mit
cpbl/pystata
codebooks.py
1
92642
#!/usr/bin/python """ To do: - In Stata, "label list" gives an instant readout of all value labels. Use this rather than labelbook !?! [oct 2011] 2013: Also, use statsmodels' pydta package as soon as its slightly mature! (now?) 2013: Major issue with value labels has been horrid unicode support by Stata. How to ge...
gpl-2.0
TheLady/Lexos
managers/file_manager.py
1
35788
import StringIO from math import sqrt, log, exp import shutil import zipfile import os from os.path import join as pathjoin from os import makedirs import chardet from flask import request, send_file from sklearn.feature_extraction.text import CountVectorizer, TfidfTransformer from managers.lexos_file import LexosFil...
mit
Xeralux/tensorflow
tensorflow/python/estimator/canned/baseline_test.py
1
54886
# Copyright 2017 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
quantopian/zipline
zipline/assets/asset_writer.py
1
34740
# # 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
zfrenchee/pandas
pandas/tests/indexes/test_category.py
1
44849
# -*- coding: utf-8 -*- import pytest import pandas.util.testing as tm from pandas.core.indexes.api import Index, CategoricalIndex from pandas.core.dtypes.dtypes import CategoricalDtype from .common import Base from pandas.compat import range, PY3 import numpy as np from pandas import Categorical, IntervalIndex, c...
bsd-3-clause
mwaskom/lyman
lyman/visualizations.py
1
30638
from __future__ import division import warnings from six import string_types import numpy as np import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt from scipy import ndimage, signal import nibabel as nib class Mosaic(object): def __init__(self, anat, stat=None, mask=None, n_col=9, step=...
bsd-3-clause
iris-edu/ispaq
ispaq/irisseismic.py
1
41582
# -*- coding: utf-8 -*- """ Python module containing wrappers for the IRISSeismic R package. :copyright: Mazama Science :license: GNU Lesser General Public License, Version 3 (http://www.gnu.org/copyleft/lesser.html) """ from __future__ import (absolute_import, division, print_function) from future.types i...
lgpl-3.0
basnijholt/holoviews
holoviews/plotting/plot.py
1
64384
""" Public API for all plots supported by HoloViews, regardless of plotting package or backend. Every plotting classes must be a subclass of this Plot baseclass. """ import warnings from itertools import groupby, product from collections import Counter, defaultdict import numpy as np import param from ..core import ...
bsd-3-clause
freeman-lab/dask
dask/dataframe/core.py
1
41050
from __future__ import division from itertools import count from math import ceil, sqrt from functools import wraps import bisect import os from toolz import (merge, partial, accumulate, unique, first, dissoc, valmap, first, partition) import toolz from operator import getitem, setitem from datetime import dat...
bsd-3-clause
BryanCutler/spark
python/pyspark/pandas/tests/test_dataframe.py
1
220991
# # 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
bachiraoun/fullrmc
Constraints/AngleConstraints.py
1
48412
""" AngleConstraints contains classes for all constraints related angles between atoms. .. inheritance-diagram:: fullrmc.Constraints.AngleConstraints :parts: 1 """ # standard libraries imports from __future__ import print_function import copy, re # external libraries imports import numpy as np # fullrmc imports ...
agpl-3.0
bolozna/EDENetworks
RawDataWindow.py
1
37921
""" EDENetworks, a genetic network analyzer Copyright (C) 2011 Aalto University 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 2 of the License, or (at your option) any later version...
gpl-2.0
jhamman/xarray
xarray/tests/test_computation.py
1
36293
import functools import operator import pickle import numpy as np import pandas as pd import pytest from numpy.testing import assert_array_equal import xarray as xr from xarray.core.computation import ( _UFuncSignature, apply_ufunc, broadcast_compat_data, collect_dict_values, join_dict_keys, o...
apache-2.0
jesuscript/topo-mpi
contrib/jacommands.py
1
46822
# -*- coding: utf-8 -*- import __main__ import numpy import pylab import os.path import os import copy import pdb import param import topo.pattern.basic import topo.command.analysis from math import pi, sqrt, exp, pow from numpy.oldnumeric import zeros, Float, sum from topo.projection.basic import CFProjection, Share...
bsd-3-clause
1a1a11a/mimircache
PyMimircache/top/cachecow.py
1
44906
# coding=utf-8 """ this module offers the upper level API to user, it currently supports four types of operations, * **trace loading** * **trace information retrieving** * **trace profiling** * **plotting** Author: Jason Yang <peter.waynechina@gmail.com> 2017/08 """ from matplotlib.ticker import FuncFormatter impor...
gpl-3.0
mengyun1993/RNN-binary
rnn14-new.py
1
30235
""" Vanilla RNN @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 pickle as pickle import math import matplotlib.pyplot as plt plt.ion() mode = theano.Mode(linker='cvm') #mode = '...
bsd-3-clause
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/tests/test_generic.py
1
67602
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from operator import methodcaller import nose import numpy as np from numpy import nan import pandas as pd from pandas import (Index, Series, DataFrame, Panel, isnull, date_range, period_range, Panel4D) from pandas.core.index import MultiIn...
mit
wxchan/LightGBM
python-package/lightgbm/basic.py
1
73714
# coding: utf-8 # pylint: disable = invalid-name, C0111, C0301 # pylint: disable = R0912, R0913, R0914, W0105, W0201, W0212 """Wrapper c_api of LightGBM""" from __future__ import absolute_import import copy import ctypes import os import warnings from tempfile import NamedTemporaryFile import numpy as np import scipy...
mit
dungvtdev/upsbayescpm
bayespy/plot.py
1
36219
################################################################################ # Copyright (C) 2011-2013 Jaakko Luttinen # # This file is licensed under the MIT License. ################################################################################ """ Functions for plotting nodes. Functions ========= .. curren...
mit
stscieisenhamer/glue
glue/viewers/custom/qt/custom_viewer.py
1
42627
""" This module provides utilities for creating custom data viewers. The goal of this module is to make it easy for users to make new data viewers by focusing on matplotlib visualization logic, and not UI or event processing logic. The end user typically interacts with this code via :func:`glue.custom_viewer` """ # I...
bsd-3-clause
dtavan/PyBPS
pybps/core.py
1
36546
""" Core classes and functions of the pybps package """ # Common imports import os import sys import re import sqlite3 from copy import deepcopy from multiprocessing import Pool, cpu_count, freeze_support from time import time, sleep from random import uniform from shutil import copy, copytree from string import Templ...
bsd-3-clause
izapolsk/integration_tests
cfme/utils/smem_memory_monitor.py
1
67697
"""Monitor Memory on a CFME/Miq appliance and builds report&graphs displaying usage per process.""" import json import os import time import traceback from collections import OrderedDict from datetime import datetime from threading import Thread import yaml from yaycl import AttrDict from cfme.utils.conf import cfme_...
gpl-2.0
josephsalmon/AVp
Demo_AVp.py
1
34884
# -*- coding: utf-8 -*- """ Created on Wed Jun 25 09:39:45 2014 @author: joseph salmon """ import time import seaborn as sns import numpy as np import pylab as plt from lasso_scenarii import ScenarioPowDecayCor # , ScenarioEquiCor from noise_estimation_functions import SqrtLasso_SZ from general_tools import Predictio...
bsd-3-clause
Chilipp/psyplot
tests/test_data.py
1
66125
"""Test module of the :mod:`psyplot.data` module""" import os import os.path as osp import six import unittest import pandas as pd import xarray as xr from psyplot.compat.pycompat import range import psyplot.data as psyd import _base_testing as bt import numpy as np from collections import OrderedDict import tempfile ...
gpl-2.0
Morisset/pySSN
pyssn/phyat_lists/manage_phyat_list.py
1
35369
import numpy as np import pyneb as pn import matplotlib.pyplot as plt from pyneb.utils.physics import Z, IP, gsFromAtom, Z_inv from pyneb.utils.misc import int_to_roman, parseAtom import os import shutil import time from glob import glob from pyssn.utils.misc import split_atom, read_data, execution_path pn.atomicData....
gpl-3.0
FCP-INDI/C-PAC
CPAC/pipeline/cpac_group_runner.py
1
81704
import os import fnmatch import pandas def load_config_yml(config_file, individual=False): # loads a configuration YAML file # # input # config_file: full filepath to YAML (.yml) file # # output # config: Configuration object import os import yaml import yamlordereddictlo...
bsd-3-clause
qiime2/q2-diversity
q2_diversity/plugin_setup.py
1
39197
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2021, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
bsd-3-clause
opencobra/cobrapy
src/cobra/test/test_core/test_model.py
1
37178
# -*- coding: utf-8 -*- """Test functions of model.py""" from __future__ import absolute_import import os import warnings from copy import copy, deepcopy from math import isnan import numpy as np import pandas as pd import pytest from optlang.symbolics import Zero from cobra.core import Group, Metabolite, Model, R...
gpl-2.0
datapythonista/pandas
pandas/tests/io/parser/test_parse_dates.py
3
49817
""" Tests date parsing functionality for all of the parsers defined in parsers.py """ from datetime import ( date, datetime, ) from io import StringIO from dateutil.parser import parse as du_parse from hypothesis import ( given, settings, strategies as st, ) import numpy as np import pytest import...
bsd-3-clause
licco/zipline
zipline/algorithm.py
1
32696
# # Copyright 2014 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
JT5D/scikit-learn
sklearn/ensemble/gradient_boosting.py
1
54004
"""Gradient Boosted Regression Trees This module contains methods for fitting gradient boosted regression trees for both classification and regression. The module structure is the following: - The ``BaseGradientBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regressio...
bsd-3-clause
hypergravity/hrs
twodspec/extern/interpolate.py
1
48552
# -*- coding: utf-8 -*- from __future__ import absolute_import, division import numpy as np import scipy.signal # import scipy.sparse.linalg # @UnusedImport import scipy.sparse as sparse from numpy import ones, zeros, prod, sin, diff, pi, inf, vstack, linspace from scipy.interpolate import BPoly, interp1d # from wa...
bsd-3-clause
arnavd96/Cinemiezer
myvenv/lib/python3.4/site-packages/music21/audioSearch/__init__.py
1
34550
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # Name: audioSearch.py # Purpose: base subroutines for all audioSearching and score following # routines # # Authors: Jordi Bartolome # Michael Scott Cuthbert # ...
mit
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/_waterfall.py
1
104789
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Waterfall(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "waterfall" _valid_props = { "alignmentgroup", "base", "cliponaxis", "...
mit
jjgomera/pychemqt
equipment/distillation.py
1
40751
#!/usr/bin/python3 # -*- coding: utf-8 -*- """Pychemqt, Chemical Engineering Process simulator Copyright (C) 2009-2017, Juan José Gómez Romera <jjgomera@gmail.com> 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 Softwar...
gpl-3.0
santiago-salas-v/walas
vandenbussche_froment.py
1
58112
import numpy as np import matplotlib.pyplot as plt from matplotlib import lines from matplotlib.lines import Line2D from scipy.integrate import odeint # Journal of Catalysis, 1996, 161. Jg., Nr. 1, S. 1-10. # Bezugdaten: 'Løvik, Ingvild. "Modelling, estimation and optimization # of the methanol synthesis with catalys...
mit
bachiraoun/fullrmc
Constraints/DihedralAngleConstraints.py
1
61732
""" ImproperAngleConstraints contains classes for all constraint's related to improper angles between bonded atoms. .. inheritance-diagram:: fullrmc.Constraints.ImproperAngleConstraints :parts: 1 """ # standard libraries imports from __future__ import print_function import copy, re # external libraries imports im...
agpl-3.0
TomTranter/OpenPNM
openpnm/core/Base.py
1
72439
import warnings import numpy as np import scipy as sp import pandas as pd from collections import namedtuple from openpnm.utils import Workspace, logging from openpnm.utils.misc import PrintableList, SettingsDict, Docorator docstr = Docorator() logger = logging.getLogger(__name__) ws = Workspace() @docstr.get_section...
mit
loli/sklearn-ensembletrees
sklearn/tree/tree.py
1
34641
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
bsd-3-clause
BRAINSia/tract_querier
tract_querier/tract_math/operations.py
1
31095
from .decorator import tract_math_operation, set_dictionary_from_use_filenames_as_index from warnings import warn import numpy import nibabel from nibabel.spatialimages import SpatialImage from ..tractography import ( Tractography, tractography_to_file, tractography_from_files ) import sys import traceback fro...
bsd-3-clause
pylayers/pylayers
pylayers/util/pyutil.py
1
53443
#!/usr/bin/python #-*- coding:Utf-8 -*- r""" .. currentmodule:: pylayers.util.pyutil .. autosummary:: :toctree: generated delay lt2idic getlong getshort getdir shp dimcmp tstincl ininter cshift LegFunc ExpFunc InvFunc PowFunc randcol coldict crea...
mit
MPIBGC-TEE/CompartmentalSystems
tests/Test_helpers_reservoir.py
1
42129
#!/usr/bin/env python3 # vim:set ff=unix expandtab ts=4 sw=4: #from concurrencytest import ConcurrentTestSuite, fork_for_tests import sys import unittest import matplotlib matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! import matplotlib.pyplot as plt import numpy as np from sympy import ( ...
mit
wbinventor/openmc
openmc/mgxs/mgxs.py
1
252617
from collections import OrderedDict from numbers import Integral import warnings import os import copy from abc import ABCMeta import numpy as np import h5py import openmc import openmc.checkvalue as cv from openmc.tallies import ESTIMATOR_TYPES from openmc.mgxs import EnergyGroups # Supported cross section types M...
mit
sebwink/deregnet
python/deregnet/graphs.py
1
37195
''' ''' import os import zipfile import requests import pandas as pd import igraph as ig from biomap import BioMap ################################################################################ # data path # #######################################...
bsd-3-clause
kklmn/xrt
xrt/backends/raycing/sources_synchr.py
1
98954
# -*- coding: utf-8 -*- __author__ = "Konstantin Klementiev", "Roman Chernikov" __date__ = "20 Sep 2016" import os import sys #import pickle import numpy as np from scipy import optimize from scipy import special import inspect from .. import raycing from . import myopencl as mcl from .sources_beams import Beam, allA...
mit
Avsecz/keras-hyperopt
kopt/hyopt.py
1
32526
"""Train the models """ from __future__ import absolute_import from __future__ import print_function from keras.callbacks import EarlyStopping, History, TensorBoard, ModelCheckpoint from keras.models import load_model import hyperopt from hyperopt.utils import coarse_utcnow from hyperopt.mongoexp import MongoTrials imp...
mit
gem/oq-engine
openquake/hazardlib/contexts.py
1
48336
# -*- coding: utf-8 -*- # vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (C) 2018-2021 GEM Foundation # # OpenQuake is free software: you can redistribute it and/or modify it # under the terms of the GNU Affero General Public License as published # by the Free Software Foundation, either version 3 of the Licen...
agpl-3.0
joachimwolff/minHashNearestNeighbors
sparse_neighbors_search/neighbors/minHash.py
1
30670
# Copyright 2016, 2017, 2018, 2019, 2020 Joachim Wolff # PhD Thesis # # Copyright 2015, 2016 Joachim Wolff # Master Thesis # Tutor: Fabrizio Costa # Winter semester 2015/2016 # # Chair of Bioinformatics # Department of Computer Science # Faculty of Engineering # Albert-Ludwigs-University Freiburg im Breisgau __author_...
mit
jepegit/cellpy
cellpy/utils/plotutils.py
1
41469
# -*- coding: utf-8 -*- """ Utilities for helping to plot cellpy-data. """ import os from io import StringIO import sys import warnings import importlib import logging import itertools import collections from pathlib import Path from cellpy.parameters.internal_settings import ( get_headers_summary, get_header...
mit
teonlamont/mne-python
mne/viz/_3d.py
2
103472
# -*- coding: utf-8 -*- """Functions to make 3D plots with 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 <lar...
bsd-3-clause
pizzathief/scipy
scipy/signal/filter_design.py
1
161513
"""Filter design. """ import math import operator import warnings import numpy import numpy as np from numpy import (atleast_1d, poly, polyval, roots, real, asarray, resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, sin, exp, cosh, arccosh, ceil, conjugate, ...
bsd-3-clause
vortex-ape/scikit-learn
sklearn/model_selection/tests/test_validation.py
2
65104
"""Test the validation module""" from __future__ import division import sys import warnings import tempfile import os from time import sleep import pytest import numpy as np from scipy.sparse import coo_matrix, csr_matrix from sklearn.exceptions import FitFailedWarning from sklearn.model_selection.tests.test_search ...
bsd-3-clause
apache/incubator-superset
superset/viz_sip38.py
1
94073
# 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
PawarPawan/h2o-v3
h2o-py/h2o/frame.py
1
48811
# -*- coding: utf-8 -*- # import numpy no numpy cuz windoz import collections, csv, itertools, os, re, tempfile, uuid, urllib2, sys, urllib,imp,copy from expr import h2o,ExprNode import gc from group_by import GroupBy class H2OFrame: # Magical count-of-5: (get 2 more when looking at it in debug mode) # 2 f...
apache-2.0
feranick/SpectralMachine
Archive/20170808a/SpectraLearnPredict.py
1
65966
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' ********************************************************** * * SpectraLearnPredict * Perform Machine Learning on Spectroscopy Data. * version: 20170808a * * Uses: Deep Neural Networks, TensorFlow, SVM, PCA, K-Means * * By: Nicola Ferralis <feranick@hotmail.com> * *****...
gpl-3.0
nburn42/tensorflow
tensorflow/contrib/metrics/python/ops/metric_ops_test.py
1
275656
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
henry0312/LightGBM
python-package/lightgbm/engine.py
1
30379
# coding: utf-8 """Library with training routines of LightGBM.""" import collections import copy from operator import attrgetter import numpy as np from . import callback from .basic import Booster, Dataset, LightGBMError, _ConfigAliases, _InnerPredictor, _log_warning from .compat import SKLEARN_INSTALLED, _LGBMGroup...
mit
adlyons/AWOT
awot/graph/radar_utility.py
1
44337
""" awot.graph.radar_utility ========================= A group of scripts to create various radar utility plots. """ # Load the needed packages from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from netCDF4 import date2num, num2date from scipy.stats import mstats from matplotli...
gpl-2.0
TAMU-CPT/galaxy-tools
tools/helicalWheel/plotWheels/core.py
1
69812
# -*- coding: utf-8 -*- """ .. currentmodule:: modlamp.core .. moduleauthor:: modlab Alex Mueller ETH Zurich <alex.mueller@pharma.ethz.ch> Core helper functions and classes for other modules. The two main classes are: ============================= ==================================================================...
gpl-3.0
jenfly/atmos-tools
atmos/data.py
1
62848
""" Utility functions for atmospheric data wrangling / preparation. - ndarrays - netCDF files - Lat-lon geophysical data - Pressure level data and topography """ from __future__ import division import numpy as np import pandas as pd import collections import scipy.interpolate as interp from mpl_toolkits import basema...
mit
dricciardelli/vae2vec
capt_gen_o2e_aux_ms.py
1
39724
# -*- coding: utf-8 -*- import math import os import tensorflow as tf import numpy as np import pandas as pd import pickle import pickle as pkl import cv2 import skimage import random import tensorflow.python.platform from tensorflow.python.ops import rnn from keras.preprocessing import sequence from collections import...
mit
mabl/gdsCAD
gdsCAD/core.py
1
67436
# -*- coding: utf-8 -*- """ The primary geometry elements, layout and organization classes. The objects found here are intended to correspond directly to elements found in the GDSII specification. The fundamental gdsCAD object is the Layout, which contains all the information to be sent to the mask shop. A Layout can...
gpl-3.0
CompPhysics/MachineLearning
doc/LectureNotes/_build/jupyter_execute/chapter3.py
1
32318
# Ridge and Lasso Regression [Video of Lecture](https://www.uio.no/studier/emner/matnat/fys/FYS-STK4155/h20/forelesningsvideoer/LectureSeptember10.mp4?vrtx=view-as-webpage) ## The singular value decomposition The examples we have looked at so far are cases where we normally can invert the matrix $\boldsymbol{X}^T\b...
cc0-1.0
TheBrane/sodi-data-acquisition
NASA Web Of Sciences/nasa_iss_combined_final.py
1
120381
''' Kaushik Tandon January - February 2020 NASA Web Of Science + ISS conversion for The Brane ''' import json import csv import numpy as np import pandas as pd import requests import inflection as inf from collections import OrderedDict from nltk.corpus import wordnet as wn import nltk import warnings nltk.download...
mit
pvlib/pvlib-python
pvlib/clearsky.py
1
38543
""" The ``clearsky`` module contains several methods to calculate clear sky GHI, DNI, and DHI. """ import os from collections import OrderedDict import calendar import numpy as np import pandas as pd from scipy.optimize import minimize_scalar from scipy.linalg import hankel from pvlib import atmosphere, tools def ...
bsd-3-clause
pratapvardhan/pandas
pandas/core/generic.py
1
339236
# pylint: disable=W0231,E1101 import collections import functools import warnings import operator import weakref import gc import json import numpy as np import pandas as pd from pandas._libs import tslib, properties from pandas.core.dtypes.common import ( _ensure_int64, _ensure_object, is_scalar, is_...
bsd-3-clause
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/core/generic.py
1
129838
# pylint: disable=W0231,E1101 import warnings import operator import weakref import gc import numpy as np import pandas.lib as lib import pandas as pd from pandas.core.base import PandasObject from pandas.core.index import (Index, MultiIndex, _ensure_index, InvalidIndexError) import pand...
gpl-3.0
neeraj-kumar/nkpylib
nkimageutils.py
1
67786
"""Lots of useful image utilities, written by Neeraj Kumar. Licensed under the 3-clause BSD License: Copyright (c) 2010-2013, Neeraj Kumar (neerajkumar.org) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are m...
bsd-3-clause
Ziqi-Li/bknqgis
pandas/pandas/tests/series/test_operators.py
1
70468
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytest import pytz 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, ...
gpl-2.0
UMN-Hydro/GSFLOW_pre-processor
python_scripts/GSFLOW_print_PRMSparamfile.py
1
44346
# -*- coding: utf-8 -*- """ Created on Tue Sep 12 22:21:56 2017 Based on: GSFLOW_print_PRMSparamfile4.m @author: gcng """ import numpy as np # matlab core import scipy as sp # matlab toolboxes import matplotlib.pyplot as plt # matlab-like plots import os # os functions import pandas as pd # for data structures and r...
gpl-3.0
jaeilepp/eggie
mne/surface.py
1
47507
# 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 .externals.six import string_types import os from os import path as op import sys from struct import pac...
bsd-2-clause
darogan/ParticleStats
ParticleStats/ParticleStats_Plots.py
1
98276
#!/usr/bin/env python ############################################################################### # ____ _ _ _ ____ _ _ # # | _ \ __ _ _ __| |_(_) ___| | ___/ ___|| |_ __ _| |_ ___ # # | |_) / _` | '__| __| |/ __| |/ _ \___ \| __/ _` |...
gpl-3.0
PmagPy/PmagPy
pmagpy/pmagplotlib.py
1
132128
# /usr/bin/env pythonw # pylint: skip-file # pylint: disable-all # causes too many errors and crashes import os import sys import warnings from past.utils import old_div import numpy as np import pandas as pd warnings.filterwarnings("ignore") # what you don't know won't hurt you from distutils.version import LooseV...
bsd-3-clause
alephu5/Soundbyte
environment/lib/python3.3/site-packages/pandas/io/tests/test_parsers.py
1
105662
# -*- coding: utf-8 -*- # pylint: disable=E1101 from datetime import datetime import csv import os import sys import re import nose import platform from numpy import nan import numpy as np from pandas.io.common import DtypeWarning from pandas import DataFrame, Series, Index, MultiIndex, DatetimeIndex from pandas.com...
gpl-3.0
ThomasBrouwer/BNMTF
experiments/experiments_gdsc/convergence/nmf_gibbs.py
1
61791
""" Run NMF Gibbs on the Sanger dataset. We can plot the MSE, R2 and Rp as it converges, on the entire dataset. We give flat priors (1/10). """ import sys, os project_location = os.path.dirname(__file__)+"/../../../../" sys.path.append(project_location) from BNMTF.code.models.bnmf_gibbs_optimised import bnmf_gibbs_...
apache-2.0
GuessWhoSamFoo/pandas
pandas/tests/indexes/test_base.py
1
101609
# -*- coding: utf-8 -*- from collections import defaultdict from datetime import datetime, timedelta import math import operator import sys import numpy as np import pytest from pandas._libs.tslib import Timestamp from pandas.compat import ( PY3, PY35, PY36, StringIO, lrange, lzip, range, text_type, u, zip) from...
bsd-3-clause
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_11_10_2014_server.py
1
41826
# coding: utf-8 # In[3]: import sys, os sys.path.append('../../../libs/') import os.path import IO_class from IO_class import FileOperator from sklearn import cross_validation import sklearn import numpy as np import csv from dateutil import parser from datetime import timedelta from sklearn import svm import numpy ...
gpl-2.0
niamiot/RGPA
Scenario_base.py
1
47011
# -*- coding:Utf-8 -*- ##################################################################### #This file is part of RGPA. #Foobar is free software: you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation, either version 3 of the License, ...
gpl-3.0
bdh1011/wau
venv/lib/python2.7/site-packages/pandas/tests/test_multilevel.py
1
87291
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101,W0141 import datetime import itertools import nose from numpy.random import randn import numpy as np from pandas.core.index import Index, MultiIndex from pandas import Panel, DataFrame, Series, notnull, isnull, Timestamp from pandas.util.testing import (asser...
mit
nicproulx/mne-python
mne/decoding/time_gen.py
2
65441
# Authors: Jean-Remi King <jeanremi.king@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Clement Moutard <clement.moutard@gmail.com> # # License: BSD (3-clause) import numpy as np import copy from .base import _set_cv f...
bsd-3-clause