repo_name
string
path
string
copies
string
size
string
content
string
license
string
tkchafin/mrbait
mrbait/mrbait_corefuncs.py
1
55778
#!/usr/bin/python import sys import sqlite3 import getopt import Bio import os import time from Bio import AlignIO from decimal import * from mrbait import mrbait_menu from mrbait import substring from mrbait.substring import SubString from mrbait import manage_bait_db as m from mrbait import alignment_tools as a from ...
gpl-3.0
materialsproject/pymatgen
pymatgen/electronic_structure/boltztrap2.py
1
47315
""" BoltzTraP2 is a python software interpolating band structures and computing materials properties from dft band structure using Boltzmann semi-classical transport theory. This module provides a pymatgen interface to BoltzTraP2. Some of the code is written following the examples provided in BoltzTraP2 BoltzTraP2 has...
mit
TomAugspurger/pandas
pandas/core/groupby/generic.py
1
67211
""" Define the SeriesGroupBy and DataFrameGroupBy classes that hold the groupby interfaces (and some implementations). These are user facing as the result of the ``df.groupby(...)`` operations, which here returns a DataFrameGroupBy object. """ from collections import abc, namedtuple import copy from functools import p...
bsd-3-clause
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/core/algorithms.py
1
60393
""" Generic data algorithms. This module is experimental at the moment and not intended for public consumption """ from __future__ import division from warnings import warn, catch_warnings from textwrap import dedent import numpy as np from pandas.core.dtypes.cast import ( maybe_promote, construct_1d_object_array...
mit
matthew-tucker/mne-python
mne/label.py
1
73661
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) from collections import defaultdict from colorsys import hsv_to_rgb, rgb_to_hsv from os import path as op impor...
bsd-3-clause
rop14009/Repeat-analysis-pipeline
repeatpipeline.py
1
137699
from __future__ import division from collections import Counter from os import system from scipy import stats import operator import csv import re import sys from Bio import SeqIO ## Try to change this import os import commands import numpy as np import argparse import linecache import random import datetime import ti...
gpl-3.0
jhamman/xray
xarray/conventions.py
1
41624
from __future__ import absolute_import from __future__ import division from __future__ import print_function from datetime import datetime import re import traceback import warnings import numpy as np import pandas as pd from collections import defaultdict try: from pandas.errors import OutOfBoundsDatetime except ...
apache-2.0
merenlab/anvio
anvio/taxonomyops/scg.py
1
70338
#!/usr/bin/env python3 # -*- coding: utf-8 """ Classes to setup remote SCG databases in local, use local databases to affiliate SCGs in anvi'o contigs databases with taxon names, and estimate taxonomy for genomes and metagneomes. """ import os import glob import copy import shutil import pandas as pd import scipy.spar...
gpl-3.0
lizardsystem/freq
freq/views.py
1
48412
# (c) Nelen & Schuurmans. GPL licensed, see LICENSE.rst. # -*- coding: utf-8 -*- import copy import csv import datetime import json import logging import re from django.utils.functional import cached_property from django.utils.text import slugify from django.views.generic.base import TemplateView from django.http imp...
gpl-3.0
gfyoung/pandas
pandas/core/indexes/base.py
1
204075
from __future__ import annotations from copy import copy as copy_func from datetime import datetime from itertools import zip_longest import operator from typing import ( TYPE_CHECKING, Any, Callable, Dict, FrozenSet, Hashable, List, NewType, Optional, Sequence, Set, Tup...
bsd-3-clause
GuessWhoSamFoo/pandas
pandas/core/arrays/base.py
1
38965
"""An interface for extending pandas with custom arrays. .. warning:: This is an experimental API and subject to breaking changes without warning. """ import operator import numpy as np from pandas.compat import PY3, set_function_name from pandas.compat.numpy import function as nv from pandas.errors import Ab...
bsd-3-clause
thomasyu888/Genie
genie/clinical.py
1
30660
import datetime import os import logging import subprocess import yaml import pandas as pd import synapseclient from .example_filetype_format import FileTypeFormat from . import process_functions from .database_to_staging import redact_phi logger = logging.getLogger(__name__) def remove_greaterthan_lessthan_str(co...
mit
radosuav/pyTSEB
pyTSEB/PyTSEB.py
1
66816
# This file is part PyTSEB, consisting of of high level pyTSEB scripting # Copyright 2016 Hector Nieto and contributors listed in the README.md file. # # This program 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...
gpl-3.0
airbnb/caravel
superset/connectors/sqla/models.py
1
36816
# 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
microsoft/LightGBM
python-package/lightgbm/sklearn.py
1
51035
# coding: utf-8 """Scikit-learn wrapper interface for LightGBM.""" import copy from inspect import signature from typing import Callable, Dict, Optional, Union import numpy as np from .basic import Dataset, LightGBMError, _choose_param_value, _ConfigAliases, _log_warning from .compat import (SKLEARN_INSTALLED, LGBMNo...
mit
shoyer/numpy
numpy/lib/function_base.py
1
156225
from __future__ import division, absolute_import, print_function try: # Accessing collections abstact classes from collections # has been deprecated since Python 3.3 import collections.abc as collections_abc except ImportError: import collections as collections_abc import functools import re import sys...
bsd-3-clause
GaloMALDONADO/motorg
motorog/example.py
1
48438
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 coordinateNam...
gpl-3.0
Eric89GXL/scipy
scipy/signal/ltisys.py
1
123826
""" 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. # Apr 2011: Jeffrey Armstrong <jeff@approximatrix.co...
bsd-3-clause
inertialsense/InertialSenseSDK
python/pylib/ISToolsPlot.py
1
75034
import numpy as np import os # import sys import simplekml # import pdb import pylib.pose as ps import pylib.ISToolsDataSorted as itd import pylib.filterTools as ft import pylib.plotTools as plotTools import matplotlib.pyplot as plt import matplotlib import datetime import time as systime from pylib.ISToolsDataSorted...
mit
PourroyJean/performance_modelisation
script/data visualisation/top500Sum.py
1
55819
list = { 1993 : [0.1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0....
gpl-3.0
ijmarshall/cochrane-nlp
bilearn_supervised.py
1
47829
# # version 2 of bilearner # # # requires numpy, sklearn # # import cPickle as pickle import cPickle as pickle from collections import defaultdict import logging import math from pprint import pprint import re import biviewer from indexnumbers import swap_num import numpy as np import pipeline import progressbar fro...
gpl-3.0
52North/IlwisCore
pythonapi/test.py
1
104540
#!/usr/bin python # -*- coding: utf-8 -*- from concurrent.futures.process import _WorkItem from unittest.case import skip try: from ilwis import * from datetime import * from math import * import gc workingDir = "file:///E:/pytest" babyDir = "/baby" exampleDir = "/example" worldDir = "...
gpl-3.0
walshjon/openmc
openmc/tallies.py
1
128378
from collections.abc import Iterable, MutableSequence import copy import re from functools import partial, reduce from itertools import product from numbers import Integral, Real import operator import warnings from xml.etree import ElementTree as ET import numpy as np import pandas as pd import scipy.sparse as sps im...
mit
jahuth/convis
convis/models.py
1
35170
""" Convis Models -------------- These models are ready to run. """ from __future__ import print_function import numpy as np import uuid from torch import nn import torch from .base import Layer from .filters import Conv1d, Conv2d, Conv3d, TIME_DIMENSION, Delay, VariableDelay from . import variables, filters from ....
gpl-3.0
altair-viz/altair
altair/vegalite/v3/schema/channels.py
1
262851
# The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. from . import core import pandas as pd from altair.utils.schemapi import Undefined from altair.utils import parse_shorthand class FieldChannelMixin(object): def to_dict(self, validate=True, ignore...
bsd-3-clause
alperyeg/elephant
elephant/spike_train_correlation.py
1
40876
# -*- coding: utf-8 -*- """ This modules provides functions to calculate correlations between spike trains. :copyright: Copyright 2015-2016 by the Elephant team, see `doc/authors.rst`. :license: Modified BSD, see LICENSE.txt for details. """ from __future__ import division, print_function, unicode_literals import war...
bsd-3-clause
sahilTakiar/spark
python/pyspark/sql/tests.py
1
276859
# -*- encoding: 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
weixuanfu2016/tpot
tests/tpot_tests.py
1
81680
# -*- coding: utf-8 -*- """This file is part of the TPOT library. TPOT was primarily developed at the University of Pennsylvania by: - Randal S. Olson (rso@randalolson.com) - Weixuan Fu (weixuanf@upenn.edu) - Daniel Angell (dpa34@drexel.edu) - and many more generous open source contributors TPOT is f...
lgpl-3.0
lmcinnes/umap
umap/plot.py
1
54085
import numpy as np import numba from warnings import warn try: import pandas as pd import datashader as ds import datashader.transfer_functions as tf import datashader.bundling as bd import matplotlib.pyplot as plt import colorcet import matplotlib.colors import matplotlib.cm impor...
bsd-3-clause
cdfassnacht/CodeCDF
python/ccdredux_old.py
1
100958
""" ccdredux.py - A library of functions to do various basic CCD image processing operations High-level Functions: make_bias - combines input bias or dark frames into one master file make_flat - combines input flat frames into a master flat make_flat_files - exactly like make_f...
mit
anhaidgroup/py_entitymatching
py_entitymatching/catalog/catalog_manager.py
1
52929
# coding=utf-8 """ This module contains wrapper functions for the catalog. """ import logging import pandas as pd import six import py_entitymatching.utils.catalog_helper as ch from py_entitymatching.catalog.catalog import Catalog from py_entitymatching.utils.validation_helper import validate_object_type logger = lo...
bsd-3-clause
toobaz/pandas
pandas/core/arrays/datetimelike.py
1
56013
from datetime import datetime, timedelta import operator from typing import Any, Sequence, Type, Union, cast import warnings import numpy as np from pandas._libs import NaT, NaTType, Timestamp, algos, iNaT, lib from pandas._libs.tslibs.c_timestamp import maybe_integer_op_deprecated from pandas._libs.tslibs.period imp...
bsd-3-clause
manns/pyspread
pyspread/actions.py
1
43582
# -*- coding: utf-8 -*- # Copyright Martin Manns # Distributed under the terms of the GNU General Public License # -------------------------------------------------------------------- # pyspread is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published...
gpl-3.0
cython-testbed/pandas
pandas/core/dtypes/common.py
1
55010
""" common type operations """ import numpy as np from pandas.compat import (string_types, text_type, binary_type, PY3, PY36) from pandas._libs import algos, lib from pandas._libs.tslibs import conversion, Period, Timestamp from pandas._libs.interval import Interval from pandas.core.dtypes....
bsd-3-clause
siboles/pyCellAnalyst
src/pyCellAnalyst/FEA_GUI.py
1
45621
from __future__ import print_function from __future__ import division from builtins import zip from builtins import map from builtins import str from builtins import range from past.utils import old_div import febio import pickle import subprocess import os import tkinter.filedialog import platform import fnmatch impor...
mit
jk1/intellij-community
python/helpers/pydev/pydevd.py
1
68941
''' Entry point module (keep at root): This module starts the debugger. ''' import sys if sys.version_info[:2] < (2, 6): raise RuntimeError('The PyDev.Debugger requires Python 2.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.') import atexit import os import...
apache-2.0
DGrady/pandas
pandas/core/indexes/interval.py
1
35429
""" define the IntervalIndex """ import numpy as np from pandas.core.dtypes.missing import notna, isna from pandas.core.dtypes.generic import ABCPeriodIndex from pandas.core.dtypes.dtypes import IntervalDtype from pandas.core.dtypes.common import ( _ensure_platform_int, is_list_like, is_datetime_or_timede...
bsd-3-clause
bert9bert/statsmodels
statsmodels/imputation/mice.py
2
45391
""" Overview -------- This module implements the Multiple Imputation through Chained Equations (MICE) approach to handling missing data in statistical data analyses. The approach has the following steps: 0. Impute each missing value with the mean of the observed values of the same variable. 1. For each variable in t...
bsd-3-clause
majkelx/astwro
astwro/tools/gapick.py
1
41097
#! /usr/bin/env python # coding=utf-8 """ Find best PSF stars using GA to minimize mean error. .. seealso:: :ref:`gapick` """ from __future__ import absolute_import, division, print_function __metaclass__ = type # For now: # TODO: --neigbours option: once for generation neightbour removal # TODO: --timestamp: add...
mit
puruckertom/ubertool
ubertool/ted/tests/test_ted_unittest.py
1
313726
from __future__ import division # brings in Python 3.0 mixed type calculation rules import datetime import inspect import numpy as np import numpy.testing as npt import os.path import pandas as pd import sys from tabulate import tabulate import unittest print("Python version: " + sys.version) print("Numpy version: " ...
unlicense
Becksteinlab/GromacsWrapper
gromacs/fileformats/xvg.py
1
50302
# -*- encoding: utf-8 -*- # GromacsWrapper: formats.py # Copyright (c) 2009-2012 Oliver Beckstein <orbeckst@gmail.com> # Released under the GNU Public License 3 (or higher, your choice) # See the file COPYING for details. """ Simple xmgrace XVG file format ============================== Gromacs produces graphs in the ...
gpl-3.0
mcocdawc/chemcoord
src/chemcoord/constants.py
1
68123
# -*- coding: utf-8 -*- ############################################################################### # If you are editing this file please consider commiting the change # and sending a pull request to my Github account 'mcocdawc'. # Normal dictionaries "cost" nearly nothing to be kept in RAM. # Besides you don't int...
lgpl-3.0
eickenberg/scikit-learn
sklearn/metrics/tests/test_ranking.py
1
35774
from __future__ import division, print_function import numpy as np from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn import ensemble from sklearn.datasets import make_multilabel_classification from sklearn.random_projection import sparse_random_matrix fro...
bsd-3-clause
shoyer/qspectra
qspectra/hamiltonian.py
1
32656
# TODO: to improve extendability, move this file into separate subfolder from abc import ABCMeta, abstractmethod from numbers import Number import warnings import numpy as np import scipy.linalg from .constants import GAUSSIAN_SD_FWHM from .operator_tools import (transition_operator, operator_extend, unit_vec, ...
bsd-2-clause
jackey-qiu/genx_pc_qiu
supportive_functions/backcor/data_integration.py
1
41550
import numpy as np from numpy.matlib import repmat from numpy.linalg import pinv from matplotlib import pyplot from scipy import misc import fnmatch import os import matplotlib.patches as patches import ctr_data ##The background subtraction algoritem is developped by Vincent Mazet with the copyright notice as below###...
gpl-3.0
eryueniaobp/contest
JDD_Loan_Demand/loand.py
1
127239
# encoding=utf-8 """ @author : pengalg 信贷需求预测 """ import numpy as np, traceback import pandas as pd import os,pickle,math import re,datetime,time,sys,logging from feature import Feature,StatFeature,SuperStatFeature logging.basicConfig(level=logging.INFO, format='%(asctime)s %(filename)s[line:%(l...
apache-2.0
pyramania/scipy
scipy/cluster/hierarchy.py
1
98552
""" ======================================================== Hierarchical clustering (:mod:`scipy.cluster.hierarchy`) ======================================================== .. currentmodule:: scipy.cluster.hierarchy These functions cut hierarchical clusterings into flat clusterings or find the roots of the forest f...
bsd-3-clause
mlperf/training_results_v0.6
Fujitsu/benchmarks/resnet/implementations/mxnet/python/mxnet/model.py
1
43244
# 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
VirusTotal/msticpy
msticpy/nbtools/nbwidgets.py
1
40300
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- """Module ...
mit
SU-ECE-17-7/ibeis
ibeis/algo/hots/vsone_pipeline.py
1
60983
# -*- coding: utf-8 -*- """ special pipeline for vsone specific functions Current Issues: * getting feature distinctiveness is too slow, we can either try a different model, or precompute feature distinctiveness. - we can reduce the size of the vsone shortlist TODOLIST: * Unconstrained is a terri...
apache-2.0
datapythonista/pandas
pandas/tests/io/xml/test_to_xml.py
2
33590
from io import ( BytesIO, StringIO, ) import os from typing import Union import numpy as np import pytest from pandas.compat import PY38 import pandas.util._test_decorators as td from pandas import DataFrame import pandas._testing as tm from pandas.io.common import get_handle from pandas.io.xml import read_...
bsd-3-clause
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/core/indexing.py
1
85223
import textwrap from typing import Tuple import warnings import numpy as np from pandas._libs.indexing import _NDFrameIndexerBase from pandas._libs.lib import item_from_zerodim from pandas.errors import AbstractMethodError from pandas.util._decorators import Appender from pandas.core.dtypes.common import ( ensur...
apache-2.0
Islast/BrainNetworksInPython
scona/scripts/make_figures.py
1
156365
#!/usr/bin/env python ''' This code makes the figures for the manuscript " ''' import seaborn as sns import matplotlib.pylab as plt import numpy as np import networkx as nx import pandas as pd import matplotlib as mpl import os import sys import matplotlib.image as mpimg import matplotlib.gridspec as gridspec from glo...
mit
basaks/PyKrige
pykrige/uk3d.py
1
44875
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals __doc__ = """Code by Benjamin S. Murphy bscott.murphy@gmail.com Dependencies: numpy scipy matplotlib Classes: UniversalKriging3D: Support for 3D Univers...
bsd-3-clause
mach0/mutant
mutantwidget.py
1
46817
"""mutant - MUlti Temporal ANalysis Tool begin : 2014/06/16 copyright : (c) 2014- by Werner Macho email : werner.macho@gmail.com based on valuetool copyright : (C) 2008-2010 by G. Picard __author__ = 'werner.macho@gmail.com' __date__ = '2014/06/16' __copyright__ = 'Copyright 2014, Werner Macho' .. note:: This ...
gpl-3.0
dialounke/pylayers
pylayers/simul/link.py
1
74985
# # -*- coding: utf-8 -*- # from __future__ import print_function r""" .. currentmodule:: pylayers.simul.link .. autosummary:: :members: """ try: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from mayavi import mlab except: print('Layout:Mayavi is not instal...
mit
moberweger/deep-prior
src/util/handpose_evaluation.py
1
33406
"""Provides class for evaluating hand pose accuracy. HandposeEvaluation provides interface for evaluating the hand pose accuracy. ICVLHandposeEvaluation, NYUHandposeEvaluation are specific instances for different datasets. Copyright 2015 Markus Oberweger, ICG, Graz University of Technology <oberweger@icg.tugraz.at> ...
gpl-3.0
qkitgroup/qkit
qkit/measure/timedomain/quantum_machine/basic_qubit_experiments.py
1
41383
# Quantum machines qubit library # started by M. Spiecker, 06.2020 # # TODO add text # # # HOW TO USE IT: # Since the quantum machines card is a very versatile machine, # the setup and the experiments will be very different. # Thus use this file as template and look up for your experiments. import inspect import time...
gpl-2.0
eimrek/phase-field-crystal-mpi
python_code/equilibrium_algorithms.py
1
32255
import numpy as np import matplotlib.pyplot as plt from collections import deque import time def element_wise_norm(array, num_points): """ :param array: an array of (3, nx, ny), where nx*ny=num_points :return: the norm """ return np.linalg.norm(array.ravel(), ord=1)/(3*num_points) def steepest_...
gpl-3.0
snowflakedb/snowflake-connector-python
src/snowflake/connector/cursor.py
1
42920
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2021 Snowflake Computing Inc. All right reserved. # import logging import re import signal import sys import time import uuid from logging import getLogger from threading import Lock, Timer from typing import ( IO, TYPE_CHECKING, Dict, ...
apache-2.0
alephu5/Soundbyte
environment/lib/python3.3/site-packages/matplotlib/mlab.py
1
97233
""" Numerical python functions written for compatability with MATLAB commands with the same names. MATLAB compatible functions ------------------------------- :func:`cohere` Coherence (normalized cross spectral density) :func:`csd` Cross spectral density uing Welch's average periodogram :func:`detrend` Remov...
gpl-3.0
cython-testbed/pandas
pandas/core/sparse/frame.py
1
37178
""" Data structures for sparse float data. Life is made simpler by dealing only with float64 data """ from __future__ import division # pylint: disable=E1101,E1103,W0231,E0202 import warnings from pandas.compat import lmap from pandas import compat import numpy as np from pandas.core.dtypes.missing import isna, notna...
bsd-3-clause
jat255/hyperspy
hyperspy/_signals/eds.py
1
45498
# -*- coding: utf-8 -*- # Copyright 2007-2020 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at...
gpl-3.0
winklerand/pandas
pandas/tests/sparse/test_series.py
1
57708
# pylint: disable-msg=E1101,W0612 import operator from datetime import datetime import pytest from numpy import nan import numpy as np import pandas as pd from pandas import (Series, DataFrame, bdate_range, isna, compat, _np_version_under1p12) from pandas.tseries.offsets import BDay import panda...
bsd-3-clause
TimoRoth/oggm
oggm/core/flowline.py
1
125238
"""Flowline modelling: bed shapes and model numerics. """ # Builtins import logging import copy from collections import OrderedDict from functools import partial from time import gmtime, strftime import os import shutil import warnings # External libs import numpy as np import shapely.geometry as shpg import xarray ...
bsd-3-clause
pcrumley/Iseult
src/density_plots.py
1
53431
#!/usr/bin/env pythonw import tkinter as Tk from tkinter import ttk import matplotlib import numpy as np import numpy.ma as ma import new_cmaps from new_cnorms import PowerNormWithNeg, PowerNormFunc import matplotlib.colors as mcolors import matplotlib.gridspec as gridspec import matplotlib.patheffects as PathEffects f...
gpl-3.0
rmaiko/pyvsim
pyvsim/Toolbox.py
1
108488
""" .. module :: Toolbox :platform: Unix, Windows :synopsis: Equipment model This module packs models for equipment usually employed in PIV measurements. .. moduleauthor :: Ricardo Entz <maiko at thebigheads.net> .. license:: PyVSim v.1 Copyright 2013 Ricardo Entz Lice...
apache-2.0
henrynj/PMLMC
surface_deformation.py
1
31967
#!/usr/bin/env python # # surface_deformation.py # import sys, os import matplotlib matplotlib.use("AGG") import matplotlib.pyplot as plt import numpy as np from scipy.spatial.distance import cdist from scipy.interpolate import UnivariateSpline from itertools import islice from config import MESHSIZES clas...
gpl-3.0
jepegit/cellpy
dev_utils/ica_notebooks/fitting/icafit.py
1
43527
import os import logging import warnings from pprint import pprint import numpy as np import matplotlib.pyplot as plt import pandas as pd from cellpy import cellreader, log from cellpy.utils import ica from lmfit import Parameters from lmfit.models import ( GaussianModel, PseudoVoigtModel, ExponentialGauss...
mit
start-jsk/jsk_apc
demos/selective_dualarm_grasping/node_scripts/dualarm_occluded_grasp_instance_segmentation.py
1
32485
#!/usr/bin/env python from __future__ import absolute_import from __future__ import division from __future__ import print_function import easydict import matplotlib import numpy as np import os.path as osp # import time import yaml matplotlib.use('Agg') # NOQA import chainer import cv_bridge from dynamic_reconfigu...
bsd-3-clause
jreback/pandas
pandas/_testing/asserters.py
1
46317
from typing import Union, cast import warnings import numpy as np from pandas._libs.lib import no_default import pandas._libs.testing as _testing from pandas.core.dtypes.common import ( is_bool, is_categorical_dtype, is_extension_array_dtype, is_interval_dtype, is_number, is_numeric_dtype, ...
bsd-3-clause
jreback/pandas
pandas/tests/indexes/test_base.py
1
83805
from collections import defaultdict from datetime import datetime, timedelta from io import StringIO import math import operator import re import numpy as np import pytest from pandas._libs.tslib import Timestamp from pandas.compat import IS64 from pandas.compat.numpy import np_datetime64_compat from pandas.util._tes...
bsd-3-clause
tschaume/pymatgen
pymatgen/analysis/phase_diagram.py
1
84422
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines tools to generate and analyze phase diagrams. """ import re import collections import itertools import math import logging from monty.json import MSONable, MontyDecoder from functools ...
mit
NeuroDataDesign/seelviz
Tony/scripts/april10/analysis3.py
1
43630
#!/usr/bin/env python #-*- coding:utf-8 -*- import matplotlib from matplotlib import pyplot as plt import numpy as np from numpy import linalg as LA import cv2 from skimage import exposure import math import os import plotly from plotly.graph_objs import * from plotly.offline import download_plotlyjs, init_notebook_m...
apache-2.0
jeremyclover/airflow
airflow/www/app.py
1
70992
from __future__ import print_function from __future__ import division from builtins import str from past.builtins import basestring from past.utils import old_div import copy from datetime import datetime, timedelta import dateutil.parser from functools import wraps import inspect from itertools import product import j...
apache-2.0
cbertinato/pandas
pandas/tests/indexes/test_range.py
1
34054
from datetime import datetime import numpy as np import pytest import pandas as pd from pandas import Float64Index, Index, Int64Index, RangeIndex, Series import pandas.util.testing as tm from .test_numeric import Numeric # aliases to make some tests easier to read RI = RangeIndex I64 = Int64Index F64 = Float64Index...
bsd-3-clause
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/layout/_yaxis.py
1
140033
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class YAxis(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout" _path_str = "layout.yaxis" _valid_props = { "anchor", "automargin"...
mit
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/indexes/multi.py
1
80197
# pylint: disable=E1101,E1103,W0232 import datetime import warnings from functools import partial from sys import getsizeof import numpy as np import pandas.lib as lib import pandas.index as _index from pandas.lib import Timestamp from pandas.compat import range, zip, lrange, lzip, map from pandas.compat.numpy impor...
mit
woolfson-group/isambard
isambard/optimisation/optimizer.py
1
51014
"""Bio-inspired optimisation algorithms.""" from concurrent import futures import datetime import operator import random import warnings import sys from deap import base, creator, tools import numpy import matplotlib.pylab as plt from external_programs.profit import run_profit warning_string = """ optimizers.py is ...
mit
plotly/plotly.py
packages/python/plotly/plotly/graph_objs/barpolar/marker/_colorbar.py
1
73487
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "barpolar.marker" _path_str = "barpolar.marker.colorbar" _valid_props = { "bgcolor"...
mit
gfyoung/scipy
scipy/signal/spectral.py
3
73476
"""Tools for spectral analysis. """ from __future__ import division, print_function, absolute_import import numpy as np from scipy import fftpack from . import signaltools from .windows import get_window from ._spectral import _lombscargle from ._arraytools import const_ext, even_ext, odd_ext, zero_ext import warning...
bsd-3-clause
lmregus/Portfolio
python/design_patterns/env/lib/python3.7/site-packages/more_itertools/more.py
1
76071
from collections import Counter, defaultdict, deque from collections.abc import Sequence from functools import partial, wraps from heapq import merge from itertools import ( chain, compress, count, cycle, dropwhile, groupby, islice, repeat, starmap, takewhile, tee, zip_lo...
mit
francescobaldi86/Ecos2015PaperExtension
Python files/plotting.py
1
31422
import matplotlib.pyplot as plt from helpers import d2df import pandas as pd import numpy as np from matplotlib.patches import Rectangle def plotMain(type, dict_structure, processed, *args): # This function plots the contents of the analysed files. # Two input values for "type" are accepted: # - "off" [def...
mit
rubennj/pvlib-python
pvlib/pvsystem.py
1
40897
""" The ``pvsystem`` module contains functions for modeling the output and performance of PV modules and inverters. """ from __future__ import division import logging pvl_logger = logging.getLogger('pvlib') import io try: from urllib2 import urlopen except ImportError: from urllib.request import urlopen imp...
bsd-3-clause
jshoyer/plantcv
utils/db-exporter-pcv2.py
1
44618
#!/usr/bin/env python import argparse import os import sqlite3 as sq import pandas as pd import numpy as np import time # Parse command-line arguments def options(): parser = argparse.ArgumentParser(description="Extract VIS object shape data from an SQLite database") parser.add_argument("-d", "--database", h...
mit
jreback/pandas
pandas/io/html.py
1
34621
""" :mod:`pandas.io.html` is a module containing functionality for dealing with HTML IO. """ from collections import abc import numbers import os import re from typing import Dict, List, Optional, Pattern, Sequence, Tuple, Union from pandas._typing import FilePathOrBuffer from pandas.compat._optional import import_o...
bsd-3-clause
allansp84/spectralcubes
antispoofing/spectralcubes/lowlevelfeatures/lowlevelfeatures.py
1
35659
# -*- coding: utf-8 -*- import os import sys import cv2 import bob.io.video as video import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.axes_grid1 import AxesGrid from scipy import ndimage from scipy import mgrid from scipy import stats from scipy.signal import * import skimage.color as skcolor from s...
agpl-3.0
tynn/numpy
numpy/lib/function_base.py
2
142404
from __future__ import division, absolute_import, print_function try: # Accessing collections abstact classes from collections # has been deprecated since Python 3.3 import collections.abc as collections_abc except ImportError: import collections as collections_abc import re import sys import warnings ...
bsd-3-clause
chrisjsewell/jsonextended
jsonextended/edict.py
1
78337
#!/usr/bin/env python # -*- coding: utf-8 -*- """ a module to manipulate python dictionary like objects """ # internal packages import copy import json import re import logging import sys import textwrap import uuid from fnmatch import fnmatch from functools import reduce, total_ordering import warnings warnings.simp...
mit
bigdig/vnpy
vnpy/app/cta_strategy/backtestingPatch.py
1
36042
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 numpy as np import matplotlib.pyplot as plt import seaborn as sns from pandas im...
mit
Quantipy/quantipy
quantipy/core/batch.py
1
50824
#!/usr/bin/python # -*- coding: utf-8 -*- import numpy as np import pandas as pd import quantipy as qp from collections import OrderedDict from quantipy.core.tools.qp_decorators import * import copy as org_copy import warnings import re from quantipy.core.tools.view.logic import ( has_any, has_all, has_count, ...
mit
askielboe/JAVELIN
javelin/lcmodel.py
1
100414
#Last-modified: 08 Dec 2013 01:13:36 # generic packages import numpy as np #np.seterr(all='raise') from numpy.random import normal, multivariate_normal from scipy.optimize import fmin import matplotlib.pyplot as plt # internal packages from cholesky_utils import cholesky, trisolve, chosolve, chodet, chosolve_from_tri...
gpl-2.0
kbrannan/PyHSPF
src/pyhspf/preprocessing/ncdcstations.py
1
61949
# ncdcstations.py # # David J. Lampert (djlampert@gmail.com) # # Last updated: 02/15/2015 # # Purpose: classes to import climate data files to Python import shutil, os, subprocess, pickle, io, gzip, datetime, tarfile from urllib import request from calendar import monthrange from matplotlib import pyplot, dates...
bsd-3-clause
rajegannathan/grasp-lift-eeg-cat-dog-solution-updated
python-packages/mne-python-0.10/mne/preprocessing/ica.py
1
102548
# Authors: Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Juergen Dammers <j.dammers@fz-juelich.de> # # License: BSD (3-clause) from inspect import getargspec, isfunction from collections import namedtuple from copy import deepcopy impor...
bsd-3-clause
soylentdeen/CIAO-commissioning-tools
fromEric/gral_statistics.py
1
39805
# -*- coding: utf-8 -*- """ Created on Fri Dec 19 15:32:29 2014 @author: egendron How to launch the procedures in this file: # Before doing anything: prepare yourself. import pyfits # define where the files are located... (you'll need to update this line # when running script on your machine !!) path = '/home/ege...
mit
Winand/pandas
pandas/tests/tseries/test_timezones.py
1
69356
# pylint: disable-msg=E1101,W0612 import pytest import pytz import dateutil import numpy as np from dateutil.parser import parse from pytz import NonExistentTimeError from distutils.version import LooseVersion from dateutil.tz import tzlocal, tzoffset from datetime import datetime, timedelta, tzinfo, date import pan...
bsd-3-clause
google-research/tf-slim
tf_slim/metrics/metric_ops.py
1
178438
# coding=utf-8 # 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 requ...
apache-2.0
giacomov/3ML
threeML/classicMLE/joint_likelihood.py
1
41773
from __future__ import print_function from __future__ import division from builtins import zip from builtins import range from builtins import object from past.utils import old_div import collections import sys import astromodels.core.model import matplotlib.pyplot as plt import numpy as np import pandas as pd import s...
bsd-3-clause
gfyoung/numpy
numpy/lib/histograms.py
2
37394
""" Histogram-related functions """ from __future__ import division, absolute_import, print_function import operator import warnings import numpy as np from numpy.compat.py3k import basestring from numpy.core.overrides import array_function_dispatch __all__ = ['histogram', 'histogramdd', 'histogram_bin_edges'] # ra...
bsd-3-clause
flyconnectome/catbot
pybot.py
1
78750
""" Catbot (https://github.com/flyconnectome/catbot) is a Slack bot that interfaces with CATMAID and ZOTERO Copyright (C) 2017 Philipp Schlegel 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...
gpl-3.0