repo_name
string
path
string
copies
string
size
string
content
string
license
string
cosurgi/trunk
doc/sphinx/conf.py
1
31649
# -*- coding: utf-8 -*- # # Yade documentation build configuration file, created by # sphinx-quickstart on Mon Nov 16 21:49:34 2009. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All co...
gpl-2.0
bdh1011/wau
venv/lib/python2.7/site-packages/pandas/tests/test_groupby.py
1
204432
# -*- coding: utf-8 -*- from __future__ import print_function import nose from numpy.testing.decorators import slow from datetime import datetime from numpy import nan from pandas import date_range,bdate_range, Timestamp from pandas.core.index import Index, MultiIndex, Int64Index, CategoricalIndex from pandas.core.a...
mit
cbertinato/pandas
pandas/core/resample.py
1
58052
import copy from datetime import timedelta from textwrap import dedent from typing import Dict, no_type_check import warnings import numpy as np from pandas._libs import lib from pandas._libs.tslibs import NaT, Timestamp from pandas._libs.tslibs.frequencies import is_subperiod, is_superperiod from pandas._libs.tslibs...
bsd-3-clause
fidelram/deepTools
deeptools/plotHeatmap.py
1
35330
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import argparse from collections import OrderedDict import numpy as np import matplotlib matplotlib.use('Agg') matplotlib.rcParams['pdf.fonttype'] = 42 matplotlib.rcParams['svg.fonttype'] = 'none' import matplotlib.pyplot as plt from matplot...
gpl-3.0
amillner/pyiat
pyiat/pyiat.py
1
32040
import pandas as pd import numpy as np def iat_get_dscore_each_stim(df,subject,rt,block,condition,stimulus,cond1,cond2,blocks,weighted): ''' Take all relevant columns and produce a D score for each stimulus (i.e. word). 08-2017 Alexander Millner <alexmillner@gmail.com ''' idx=pd.IndexSli...
gpl-3.0
jld23/saspy
saspy/sasioiom.py
1
59602
# # Copyright SAS Institute # # 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...
apache-2.0
runt18/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/_mathtext_data.py
1
57898
""" font data tables for truetype and afm computer modern fonts """ # this dict maps symbol names to fontnames, glyphindex. To get the # glyph index from the character code, you have to use get_charmap """ from matplotlib.ft2font import FT2Font font = FT2Font('/usr/local/share/matplotlib/cmr10.ttf') items = font.get_...
agpl-3.0
chrsrds/scikit-learn
sklearn/covariance/robust_covariance.py
2
31957
""" Robust location and covariance estimators. Here are implemented estimators that are resistant to outliers. """ # Author: Virgile Fritsch <virgile.fritsch@inria.fr> # # License: BSD 3 clause import warnings import numbers import numpy as np from scipy import linalg from scipy.stats import chi2 from . import empi...
bsd-3-clause
cg31/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py
2
43185
# 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
kennethcc2005/yahoo_finance_stocks
candlestick_pattern.py
1
65350
''' Candlestick pattern functions not in class type. ''' import numpy as np import pandas as pd import json import pandas.io.data as web from datetime import date, datetime, timedelta from collections import defaultdict start = datetime(2010, 1, 1) end = date.today() df1 = pd.read_csv('data/companylist.csv') df2 = pd...
mit
ryfeus/lambda-packs
Opencv_pil/source36/numpy/core/tests/test_multiarray.py
1
302350
from __future__ import division, absolute_import, print_function try: # Accessing collections abstract classes from collections # has been deprecated since Python 3.3 import collections.abc as collections_abc except ImportError: import collections as collections_abc import tempfile import sys import sh...
mit
GenericMappingTools/gmt-python
pygmt/clib/session.py
1
56855
""" Defines the Session class to create and destroy a GMT API session and provides access to the API functions. Uses ctypes to wrap most of the core functions from the C API. """ import ctypes as ctp import sys from contextlib import contextmanager import numpy as np import pandas as pd from packaging.version import ...
bsd-3-clause
buguen/pylayers
pylayers/location/geometric/Scenario_base.py
1
39460
# -*- coding:Utf-8 -*- import numpy as np import scipy as sp import time import pdb import os import sys import pickle as pk import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection # scenario CDF mode 3D from matplotlib.colors import colorConverter # scenario CDF mode 3D from pylayers.l...
lgpl-3.0
Sklearn-HMM/scikit-learn-HMM
sklean-hmm/linear_model/omp.py
3
31737
"""Orthogonal matching pursuit algorithms """ # Author: Vlad Niculae # # License: BSD 3 clause import warnings import numpy as np from scipy import linalg from scipy.linalg.lapack import get_lapack_funcs from .base import LinearModel, _pre_fit from ..base import RegressorMixin from ..utils import array2d, as_float_...
bsd-3-clause
cabrer7/PyWignerCUDA
GPU_Wigner2D_GPitaevskii.py
1
75551
#!/usr/local/epd/bin/python #----------------------------------------------------------------------------- # Time independent Quantum propagator by FFT Split operator # #----------------------------------------------------------------------------- import numpy as np import matplotlib.pyplot import s...
mit
nbigaouette/nonlinearmapping
nonlinear_mapping.py
1
39354
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # # Copyright 2011 Nicolas Bigaouette <nbigaouette@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 Software Foundation, either version 3 of the License, or ...
gpl-3.0
boada/planckClusters
MOSAICpipe/bpz-1.99.3/MLab_coe.py
1
56219
## Automatically adapted for numpy Jun 08, 2006 by convertcode.py ## ALSO CHECKED MANUALLY: from numpy import * ## CHANGED MANUALLY: inf -> Inf; nan -> NaN """Matlab(tm) compatibility functions. This will hopefully become a complete set of the basic functions available in matlab. The syntax is kept as close to the ma...
mit
oguayasa/tobii_pro_wrapper
tobii_pro_wrapper/tobii_pro_wrapper.py
1
60713
# -*- coding: utf-8 -*- # Psychopy supported Tobii controller for the new Pro SDK # Authors: Olivia Guayasamin # Date: 8/3/2017 # Requirements: Python 2.7 32 Bit (SDK required) # Tobii Pro SDK 1.0 for Python, and all dependencies # Psychopy, Psychopy.iohub, and all dependencies # numpy, scipy, and ...
apache-2.0
magne-max/zipline-ja
zipline/assets/assets.py
1
39113
# Copyright 2016 Quantopian, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
apache-2.0
SU-ECE-17-7/ibeis
ibeis/other/detectfuncs.py
1
63525
# -*- coding: utf-8 -*- """ developer convenience functions for ibs TODO: need to split up into sub modules: consistency_checks feasibility_fixes move the export stuff to dbio then there are also convineience functions that need to be ordered at least within this file """ from __future__ import ab...
apache-2.0
cbertinato/pandas
pandas/core/dtypes/cast.py
1
43838
""" routings for casting """ from datetime import datetime, timedelta import numpy as np from pandas._libs import lib, tslib, tslibs from pandas._libs.tslibs import NaT, OutOfBoundsDatetime, Period, iNaT from .common import ( _INT64_DTYPE, _NS_DTYPE, _POSSIBLY_CAST_DTYPES, _TD_DTYPE, ensure_int8, ensure_int...
bsd-3-clause
louispotok/pandas
pandas/tests/indexing/test_coercion.py
1
35156
# -*- coding: utf-8 -*- import itertools import pytest import numpy as np import pandas as pd import pandas.util.testing as tm import pandas.compat as compat ############################################################### # Index / Series common tests which may trigger dtype coercions ##############################...
bsd-3-clause
albertoferna/compmech
compmech/aero/pistonplate/pistonplate.py
1
38908
from __future__ import division import gc import os import sys import traceback from collections import Iterable import time import cPickle from multiprocessing import cpu_count import __main__ import numpy as np from scipy.sparse import csr_matrix from scipy.sparse.linalg import eigs from scipy.linalg import eig, eig...
bsd-3-clause
pprett/statsmodels
statsmodels/stats/tests/test_diagnostic.py
1
31607
# -*- coding: utf-8 -*- """Tests for Regression Diagnostics and Specification Tests Created on Thu Feb 09 13:19:47 2012 Author: Josef Perktold License: BSD-3 currently all tests are against R """ import os import numpy as np from numpy.testing import (assert_, assert_almost_equal, assert_equal, ...
bsd-3-clause
timoMa/vigra
vigranumpy/lib/__init__.py
1
98721
####################################################################### # # Copyright 2009-2010 by Ullrich Koethe # # This file is part of the VIGRA computer vision library. # The VIGRA Website is # http://hci.iwr.uni-heidelberg.de/vigra/ # Please direct questions, bug reports, and contributions...
mit
biorack/metatlas
metatlas/plots/dill2plots.py
1
149530
from __future__ import absolute_import from __future__ import print_function import logging import sys import os import os.path import multiprocessing as mp import warnings # os.environ['R_LIBS_USER'] = '/project/projectdirs/metatlas/r_pkgs/' # curr_ld_lib_path = '' from metatlas.datastructures import metatlas_object...
bsd-3-clause
ohinai/mesher
mesher/mesher.py
1
57382
#! /usr/bin/env python import cmd import matplotlib.pyplot as plt from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection from matplotlib.font_manager import FontProperties import matplotlib import pylab import matplotlib.patches as patches import numpy as np import copy import pi...
bsd-3-clause
dgorissen/pycel
src/pycel/excelcompiler.py
1
44782
# -*- coding: UTF-8 -*- # # Copyright 2011-2019 by Dirk Gorissen, Stephen Rauch and Contributors # All rights reserved. # This file is part of the Pycel Library, Licensed under GPLv3 (the 'License') # You may not use this work except in compliance with the License. # You may obtain a copy of the Licence at: # https:/...
gpl-3.0
jaeilepp/eggie
mne/epochs.py
1
82772
"""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-2-clause
PanDAWMS/panda-jedi
pandajedi/jedirefine/TaskRefinerBase.py
1
46712
import re import sys import uuid import copy import datetime from six import iteritems from . import RefinerUtils from pandajedi.jedicore import Interaction from pandajedi.jedicore import JediException from pandajedi.jedicore.JediTaskSpec import JediTaskSpec from pandajedi.jedicore.JediDatasetSpec import JediDatasetS...
apache-2.0
PHOTOX/fuase
ase/ase/atoms.py
1
58186
# Copyright 2008, 2009 CAMd # (see accompanying license files for details). """Definition of the Atoms class. This module defines the central object in the ASE package: the Atoms object. """ import warnings from math import cos, sin import numpy as np from ase.atom import Atom from ase.data import atomic_numbers, ...
gpl-2.0
zoidy/wiggly
CrispObjects.py
1
32315
""" This module contains all classes related to crisp objects. """ import FObjects import numpy as np import matplotlib.pyplot as plt import utilities import _distributions as distributions class CrispObject(FObjects.FObject): """ Base class for all crisp objects. Not instantiable - *x,y*: Numpy arrays of...
lgpl-3.0
vivek425ster/pgmpy
pgmpy/inference/ExactInference.py
1
30994
#!/usr/bin/env python3 import itertools import copy import numpy as np import networkx as nx from pgmpy.inference import Inference from pgmpy.factors.Factor import factor_product from pgmpy.models import JunctionTree class VariableElimination(Inference): def _variable_elimination(self, variables, operation, ev...
mit
kprestel/PyInvestment
pytech/fin/asset.py
2
58906
import logging import os from abc import ABCMeta from collections import namedtuple from datetime import date, datetime, timedelta from multiprocessing import Process import numpy as np import pandas as pd from pandas_datareader import data as web from pytech.crawler.spiders.edgar import EdgarSpider from scrapy.crawle...
mit
btabibian/scikit-learn
sklearn/model_selection/_split.py
1
73049
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # Ragha...
bsd-3-clause
MTgeophysics/mtpy
legacy/modem.py
1
358776
#!/usr/bin/env python """ ================== ModEM ================== # Generate files for ModEM # Generate data file for ModEM # by Paul Soeffky 2013 # revised by LK 2014 # revised by JP 2014 # edited by AK 2016 # revised by JP 2017 # revised by AK 2017 to bring across functionality from ak branch """ #============...
gpl-3.0
jungmannlab/picasso
picasso/gui/design.py
1
53373
""" picasso.design-gui ~~~~~~~~~~~~~~~~ GUI for design : Design rectangular rothemund origami :author: Maximilian Thomas Strauss, 2016 :copyright: Copyright (c) 2016 Jungmann Lab, MPI of Biochemistry """ import glob import os import os.path as _ospath import sys import traceback from math i...
mit
priorknowledge/loom
loom/preql.py
1
31223
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code must retain the above copyright # notice, this list of conditions...
bsd-3-clause
jreback/pandas
pandas/tests/frame/methods/test_reindex.py
1
32934
from datetime import datetime, timedelta import inspect from itertools import permutations import numpy as np import pytest import pandas as pd from pandas import ( Categorical, CategoricalIndex, DataFrame, Index, MultiIndex, Series, date_range, isna, ) import pandas._testing as tm fro...
bsd-3-clause
vsamtuc/ddssim
cpp/dsrctool.py
1
31870
# # Toolset for data source preparation # import h5py import numpy as np from bisect import bisect_left, bisect_right from collections import namedtuple dds_record_type = np.dtype([ ('sid','i2'), ('hid','i2'), ('key','i4'), ('upd','i4'), ('ts', 'i4') ], align=True) class metadata: ...
gpl-3.0
rdemolgen/snippets
PM1_plots/temp/PM1_plotter.py
1
32136
from api import * import re, sys, subprocess, json, os, getpass import numpy as np import pandas as pd from collections import defaultdict #the purpose of this class is to model and collect the data required of a plot and then write to a file for retention and subsequent plotting hgmd_username = input("\nEnter HGMD P...
gpl-3.0
GaloMALDONADO/motorg
motorog/dynTasks.py
1
50700
import pinocchio as se3 import numpy as np import paths as lp import robot_config as rconf import mocap_config as mconf from hqp.wrapper import Wrapper from trajectory_extractor import References import ucm import plot_tools import csv import indexes import plotTasks from hqp.viewer_utils import Viewer import matplo...
gpl-3.0
pydata/xarray
xarray/core/dataset.py
1
288325
import copy import datetime import inspect import sys import warnings from collections import defaultdict from html import escape from numbers import Number from operator import methodcaller from pathlib import Path from typing import ( TYPE_CHECKING, Any, Callable, Collection, DefaultDict, Dict...
apache-2.0
taxpon/pyzxcvbn
pyzxcvbn/frequency_lists.py
1
679035
frequency_lists = {"male_names": "james,john,robert,michael,william,david,richard,charles,joseph,thomas,christopher,daniel,paul,mark,donald,george,kenneth,steven,edward,brian,ronald,anthony,kevin,jason,matthew,gary,timothy,jose,larry,jeffrey,frank,scott,eric,stephen,andrew,raymond,gregory,joshua,jerry,dennis,walter,pat...
mit
TomTranter/OpenPNM
openpnm/materials/VoronoiFibers.py
1
51413
import math import scipy as sp import numpy as np from scipy import ndimage import scipy.spatial as sptl from openpnm import topotools from scipy.spatial import ConvexHull import openpnm.models.geometry as gm from openpnm.utils import logging, Project from openpnm.network import DelaunayVoronoiDual from transforms3d im...
mit
phobson/statsmodels
statsmodels/tsa/statespace/structural.py
1
69046
""" Univariate structural time series models Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function from warnings import warn from statsmodels.compat.collections import OrderedDict import numpy as np import pandas as pd from statsmodels.tsa.filters.hp_filter ...
bsd-3-clause
siddharthteotia/arrow
python/pyarrow/tests/test_plasma.py
1
32836
# 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
wagavulin/arrow
python/pyarrow/parquet.py
1
41154
# 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
ahnqirage/spark
python/pyspark/sql/functions.py
1
133626
# # 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
winklerand/pandas
pandas/tests/tseries/test_frequencies.py
1
35393
from datetime import datetime, timedelta from pandas.compat import range import pytest import numpy as np from pandas import (Index, DatetimeIndex, Timestamp, Series, date_range, period_range) from pandas._libs.tslibs import resolution import pandas.tseries.frequencies as frequencies from pandas....
bsd-3-clause
jreback/pandas
pandas/plotting/_core.py
1
61556
import importlib from typing import TYPE_CHECKING, Optional, Sequence, Tuple, Union from pandas._config import get_option from pandas._typing import Label from pandas.util._decorators import Appender, Substitution from pandas.core.dtypes.common import is_integer, is_list_like from pandas.core.dtypes.generic import A...
bsd-3-clause
jrbourbeau/cr-composition
unfolding/datachallenge.py
1
38671
#!/usr/bin/env python from __future__ import division import os import argparse import itertools from functools import partial import numpy as np import pandas as pd from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import seaborn as sns from da...
mit
dialounke/pylayers
pylayers/util/geomutil.py
1
167030
# -*- coding:Utf-8 -*- """ .. currentmodule:: pylayers.util.geomutil """ from __future__ import print_function import shapely.geometry as sh import scipy.linalg as la import pdb import logging import networkx as nx import doctest import os #import mayavi.mlab as mlab import matplotlib.pyplot as plt import numpy as np...
mit
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/core/indexing.py
1
66750
# pylint: disable=W0223 from pandas.core.index import Index, MultiIndex from pandas.compat import range, zip import pandas.compat as compat import pandas.core.common as com import pandas.lib as lib from pandas.core.common import (is_bool_indexer, is_integer_dtype, _asarray_tuplesafe, is...
gpl-2.0
afraser/CellProfiler-Analyst
cpa/tifffile.py
1
52989
#!/usr/bin/env python # -*- coding: utf-8 -*- # tifffile.py # Copyright (c) 2008-2009, The Regents of the University of California # Produced by the Laboratory for Fluorescence Dynamics # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided ...
gpl-2.0
rwgdrummer/maskgen
hp_tool/hp/HPSpreadsheet.py
1
81447
import json import subprocess import tarfile import ttk from Tkinter import * import tkFileDialog import os import sys from operator import add import boto3 from boto3.s3.transfer import S3Transfer import collections import pandas as pd import tkMessageBox import tkSimpleDialog import pandastable import csv import web...
bsd-3-clause
ichuang/sympy
sympy/utilities/runtests.py
1
56976
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
gwbpt/VolDeGradient2D
flight_sim/flight_sim_2D.py
1
41712
#!/usr/bin/env python # Polaire type 2 Re(Cl) = Re0 * sqrt(Cl) # remplaces les angles par un repere de rotation # v 63 : introduction girouette from __future__ import print_function, division from pprint import pprint if 0: import inspect for e in dir(inspect): if "is" in e : print(e) quit() fro...
mit
plotly/python-api
packages/python/plotly/plotly/graph_objs/_streamtube.py
1
80865
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
zfrenchee/pandas
pandas/core/reshape/reshape.py
1
33262
# pylint: disable=E1101,E1103 # pylint: disable=W0703,W0622,W0613,W0201 from pandas.compat import range, text_type, zip from pandas import compat from functools import partial import itertools import numpy as np from pandas.core.dtypes.common import ( _ensure_platform_int, is_list_like, is_bool_dtype, nee...
bsd-3-clause
abhisg/scikit-learn
sklearn/ensemble/gradient_boosting.py
2
69894
"""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
hendrikwout/pynacolada
pynacolada/apply_func_experimental.py
1
43083
import numpy as np import math import xarray as xr import os import netCDF4 as nc4 import pandas as pd from tqdm import tqdm import tempfile import logging logging.basicConfig(level=logging.DEBUG) def apply_func(func,xarrays,dims_apply, method_dims_no_apply='outer',filenames_out = None, attributes = None,maximum_input...
gpl-3.0
yavalvas/yav_com
build/matplotlib/lib/matplotlib/colors.py
1
57547
""" A module for converting numbers or color arguments to *RGB* or *RGBA* *RGB* and *RGBA* are sequences of, respectively, 3 or 4 floats in the range 0-1. This module includes functions and classes for color specification conversions, and for mapping numbers to colors in a 1-D array of colors called a colormap. Color...
mit
anielsen001/scipy
scipy/signal/filter_design.py
2
129572
"""Filter design. """ from __future__ import division, print_function, absolute_import import warnings import numpy from numpy import (atleast_1d, poly, polyval, roots, real, asarray, allclose, resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, sin, exp, cosh,...
bsd-3-clause
amitjamadagni/sympy
sympy/utilities/runtests.py
1
64406
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
Chilipp/nc2map
readers.py
1
129034
# -*- coding: utf-8 -*- """readers module of the nc2map python module This script contains the basic data danagement utilities in the nc2map module. It contains the following reader classes - The ReaderBase class defines the main methods for all readers, such as data extraction, the merging method and the a...
gpl-2.0
DiCarloLab-Delft/PycQED_py3
pycqed/measurement/openql_experiments/openql_helpers.py
1
30723
import re import logging import numpy as np from os import remove from os.path import join, dirname, isfile import json from typing import List, Tuple import matplotlib.pyplot as plt import matplotlib.patches as mpatches from matplotlib.ticker import MaxNLocator import openql.openql as ql from openql.openql import Pr...
mit
blaze/dask
dask/dataframe/core.py
1
226830
import operator import warnings from collections.abc import Iterator, Sequence from functools import wraps, partial from numbers import Number, Integral from operator import getitem from pprint import pformat import numpy as np import pandas as pd from pandas.util import cache_readonly from pandas.api.types import ( ...
bsd-3-clause
DGrady/pandas
pandas/tests/test_categorical.py
1
176544
# -*- coding: utf-8 -*- # pylint: disable=E1101,E1103,W0232 from warnings import catch_warnings import pytest import sys from datetime import datetime from distutils.version import LooseVersion import numpy as np from pandas.core.dtypes.dtypes import CategoricalDtype from pandas.core.dtypes.common import ( is_ca...
bsd-3-clause
zhouyao1994/incubator-superset
superset/connectors/sqla/models.py
1
42294
# 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
bartosh/zipline
zipline/testing/core.py
1
47174
from abc import ABCMeta, abstractmethod, abstractproperty from contextlib import contextmanager from functools import wraps import gzip from inspect import getargspec from itertools import ( combinations, count, product, ) import operator import os from os.path import abspath, dirname, join, realpath import...
apache-2.0
agartland/pysieve
meta.py
1
34342
from __future__ import division """ meta.py contains classes for meta-analysis of multiple simulation datasets inputs: multiple sieve results objects methods: (1) plotting of sensitivity, specificity, performance etc. by parameter values (2) can be distance specific (e.g. make plots about epitopes identified ...
mit
tskisner/healpix-autotools
src/healpy/healpy/projaxes.py
1
41590
# # This file is part of Healpy. # # Healpy 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. # # Healpy is distributed in the hope...
gpl-2.0
ondrolexa/pypsbuilder
pypsbuilder/psclasses.py
1
68974
"""pypsbuilder classes used by builders. This module contains classes and tools providing API to THERMOCALC, parsing of outputs and storage of calculated invariant points and univariant lines. Todo: * Implement own class for divariant fields """ # author: Ondrej Lexa # website: petrol.natur.cuni.cz/~ondro impor...
gpl-3.0
dingmingliu/quanttrade
bt/algos.py
1
33706
""" A collection of Algos used to create Strategy logic. """ import bt from bt.core import Algo, AlgoStack import pandas as pd import numpy as np import random def run_always(f): """ Run always decorator to be used with Algo to ensure stack runs the decorated Algo on each pass, regardless of failures ...
apache-2.0
boomsbloom/dtm-fmri
DTM/for_gensim/lib/python2.7/site-packages/matplotlib/animation.py
1
47549
# TODO: # * Loop Delay is broken on GTKAgg. This is because source_remove() is not # working as we want. PyGTK bug? # * Documentation -- this will need a new section of the User's Guide. # Both for Animations and just timers. # - Also need to update http://www.scipy.org/Cookbook/Matplotlib/Animations # * Blit ...
mit
SKIRT/PTS
magic/photometry/aperturenoise.py
1
69536
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
agpl-3.0
giacomov/3ML
threeML/plugins/SpectrumLike.py
1
98149
from __future__ import print_function from __future__ import division from builtins import zip from builtins import str from builtins import range from past.utils import old_div import collections import copy from contextlib import contextmanager import matplotlib.pyplot as plt import numpy as np import pandas as pd f...
bsd-3-clause
dsm054/pandas
pandas/tests/frame/test_dtypes.py
1
41160
# -*- coding: utf-8 -*- from __future__ import print_function import pytest from datetime import timedelta import numpy as np from pandas import (DataFrame, Series, date_range, Timedelta, Timestamp, Categorical, compat, concat, option_context) from pandas.compat import u from pandas import _np_v...
bsd-3-clause
ndingwall/scikit-learn
sklearn/model_selection/tests/test_validation.py
1
82353
"""Test the validation module""" import os import re import sys import tempfile import warnings from functools import partial 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_...
bsd-3-clause
MTgeophysics/mtpy
mtpy/modeling/occam2d.py
1
308066
# -*- coding: utf-8 -*- """ Spin-off from 'occamtools' (Created August 2011, re-written August 2013) Tools for Occam2D authors: JP/LK Classes: - Data - Model - Setup - Run - Plot - Mask Functions: - getdatetime - makestartfiles - writemeshfile - writemodelfile - writest...
gpl-3.0
georgebv/coastlib
coastlib/waves/fenton.py
1
33977
# coastlib, a coastal engineering Python library # Copyright (C), 2019 Georgii Bocharov # # 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) a...
gpl-3.0
nkhuyu/blaze
blaze/compute/tests/test_sql_compute.py
2
53619
from __future__ import absolute_import, division, print_function import pytest sa = pytest.importorskip('sqlalchemy') import itertools import re from distutils.version import LooseVersion import datashape from odo import into, resource, discover from pandas import DataFrame from toolz import unique from blaze.com...
bsd-3-clause
winklerand/pandas
pandas/core/dtypes/cast.py
1
38252
""" routings for casting """ from datetime import datetime, timedelta import numpy as np import warnings from pandas._libs import tslib, lib from pandas._libs.tslib import iNaT from pandas.compat import string_types, text_type, PY3 from .common import (_ensure_object, is_bool, is_integer, is_float, ...
bsd-3-clause
wbsljh/caravel
caravel/viz.py
1
67464
#coding=utf-8 """This module contains the "Viz" objects These objects represent the backend of all the visualizations that Caravel can render. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import copy import has...
apache-2.0
annahs/atmos_research
WHI_long_term_v2_FTonly_GEOSChem_and_meas_timeseries.py
1
37148
import matplotlib.pyplot as plt from matplotlib import dates import numpy as np import os import sys from pprint import pprint from datetime import datetime from datetime import timedelta import pickle import copy timezone = -8 calib_stability_uncertainty = 0.1 #fire times fire_time1 = [datetime.strptime('2009/07/27 ...
mit
genenetwork/pylmm_gn2
pylmm_gn2/lmm.py
1
34503
# pylmm is a python-based linear mixed-model solver with applications to GWAS # Copyright (C) 2013 Nicholas A. Furlotte (nick.furlotte@gmail.com) # # This program 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 F...
agpl-3.0
mistercrunch/panoramix
tests/utils_tests.py
1
44696
# 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
EducationalTestingService/rsmtool
rsmtool/preprocessor.py
1
120671
""" Classes for preprocessing input data in various contexts. :author: Jeremy Biggs (jbiggs@ets.org) :author: Anastassia Loukina (aloukina@ets.org) :author: Nitin Madnani (nmadnani@ets.org) :organization: ETS """ import logging import re import numpy as np import pandas as pd from numpy.random import RandomState f...
apache-2.0
beiko-lab/gengis
bin/Lib/site-packages/scipy/signal/ltisys.py
1
31168
""" ltisys -- a collection of classes and functions for modeling linear time invariant systems. """ from __future__ import division, print_function, absolute_import # # Author: Travis Oliphant 2001 # # Feb 2010: Warren Weckesser # Rewrote lsim2 and added impulse2. # from .filter_design import tf2zpk, z...
gpl-3.0
ironmussa/Optimus
optimus/dataframe/columns.py
1
80093
import builtins import re import string import sys import os import unicodedata from functools import reduce from heapq import nlargest import fastnumbers import pyspark import simplejson as json from glom import glom, assign from multipledispatch import dispatch from pypika import MySQLQuery from pyspark.ml.feature i...
apache-2.0
zhonghualiu/FaST-LMM
fastlmm/util/stats/plotp.py
1
30087
import numpy as np import scipy as sp import scipy.stats as st import scipy.interpolate import scipy.linalg as la import pylab as pl from fastlmm.association.tests import Cv import fastlmm.util.util as ut def pnames(): ''' The order here is important. The nearer the start of the list takes precedenc...
apache-2.0
ray-project/ray
python/ray/tune/analysis/experiment_analysis.py
1
31427
import json import logging import os from numbers import Number from typing import Any, Dict, List, Optional, Tuple from ray.tune.utils import flatten_dict from ray.tune.utils.serialization import TuneFunctionDecoder from ray.tune.utils.util import is_nan_or_inf try: import pandas as pd from pandas import Dat...
apache-2.0
anhaidgroup/py_entitymatching
py_entitymatching/blocker/rule_based_blocker.py
1
39921
import logging from collections import OrderedDict import pandas as pd import numpy as np import pyprind import six from joblib import Parallel, delayed from py_stringmatching.tokenizer.qgram_tokenizer import QgramTokenizer from py_stringmatching.tokenizer.whitespace_tokenizer import WhitespaceTokenizer import cloudpi...
bsd-3-clause
SasView/sasmodels
sasmodels/resolution.py
1
42963
""" Define the resolution functions for the data. This defines classes for 1D and 2D resolution calculations. """ from __future__ import division import unittest from scipy.special import erf # type: ignore from numpy import sqrt, log, log10, exp, pi # type: ignore import numpy as np # type: ignore __all__ = ["R...
bsd-3-clause
wangqingbaidu/aliMusic
models/new_songs_incr_with_params.py
1
36031
# -*- coding: UTF-8 -*- ''' Authorized by vlon Jang Created on Jul 3, 2016 Email:zhangzhiwei@ict.ac.cn From Institute of Computing Technology All Rights Reserved. ''' import pandas as pd import numpy as np import pymysql import matplotlib ...
gpl-3.0
paalge/scikit-image
skimage/filters/thresholding.py
1
30069
import itertools import math import numpy as np from scipy import ndimage as ndi from scipy.ndimage import filters as ndif from collections import OrderedDict from ..exposure import histogram from .._shared.utils import assert_nD, warn from ..transform import integral_image from .. import util from skimage import dtype...
bsd-3-clause
immerrr/numpy
numpy/lib/function_base.py
1
123782
from __future__ import division, absolute_import, print_function __docformat__ = "restructuredtext en" __all__ = [ 'select', 'piecewise', 'trim_zeros', 'copy', 'iterable', 'percentile', 'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp', 'extract', 'place', 'vectorize', 'asarray_chkfinite', 'ave...
bsd-3-clause
rs2/pandas
pandas/core/indexes/datetimelike.py
1
31693
""" Base and utility classes for tseries type pandas objects. """ from datetime import datetime, tzinfo from typing import Any, List, Optional, TypeVar, Union, cast import numpy as np from pandas._libs import NaT, Timedelta, iNaT, join as libjoin, lib from pandas._libs.tslibs import BaseOffset, Resolution, Tick, time...
bsd-3-clause
MatthewDaggitt/AshCalc
desktop/frames/results_frame.py
1
30433
import math import tkinter from copy import deepcopy from tkinter import messagebox from tkinter.ttk import Frame, LabelFrame, Label, Button, Combobox, Separator import numpy as np from matplotlib import pyplot from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg as FigureCanvas from mpl_toolkits.mplot3d im...
mit