repo_name
string
path
string
copies
string
size
string
content
string
license
string
zfrenchee/pandas
pandas/tests/test_nanops.py
1
42749
# -*- coding: utf-8 -*- from __future__ import division, print_function from functools import partial import pytest import warnings import numpy as np import pandas as pd from pandas import Series, isna from pandas.core.dtypes.common import is_integer_dtype import pandas.core.nanops as nanops import pandas.util.test...
bsd-3-clause
JohanComparat/nbody-npt-functions
bin/bin_DF/test_scripts/densityField-function-tracers.py
1
39112
# cd pySU/pyMultidark/trunk/bin/fortranfile-0.2.1/ import sys import numpy as n import os from os.path import join from astropy.io import fits import time import cPickle from scipy.interpolate import interp1d from scipy.optimize import curve_fit from scipy.stats import scoreatpercentile as sc from scipy.stats import n...
cc0-1.0
yuanbaowen521/tadbit
_pytadbit/experiment.py
1
61780
""" 20 Feb 2013 """ from pytadbit.parsers.hic_parser import read_matrix, HiC_data from pytadbit.utils.extraviews import nicer from pytadbit.utils.extraviews import tadbit_savefig from pytadbit.utils.tadmaths import zscore from pytadbit.utils.normalize_hic import iterative from pytadbit.utils.hic_fil...
gpl-3.0
PragyaJaiswal/Protein-Sequence-Parser
virus/kmeans.py
1
186963
#!/usr/bin/env python3 import numpy as np import operator import json import math from collections import Counter from sklearn.cluster import KMeans from sklearn.decomposition import PCA from matplotlib import pyplot # Amino acid patterns: A C D E F G H I K L M N P Q R S T ...
gpl-2.0
AustereCuriosity/astropy
astropy/units/tests/test_quantity.py
1
46289
# coding: utf-8 # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Test the Quantity class and related. """ from __future__ import (absolute_import, unicode_literals, division, print_function) import sys import copy import decimal from fractions import Fraction import num...
bsd-3-clause
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/tseries/resample.py
1
41548
from datetime import timedelta import numpy as np import warnings import pandas as pd from pandas.core.base import AbstractMethodError, GroupByMixin from pandas.core.groupby import (BinGrouper, Grouper, _GroupBy, GroupBy, SeriesGroupBy, groupby, PanelGroupBy) from pandas.tseries.freq...
mit
gfyoung/scipy
scipy/stats/stats.py
1
202270
# Copyright 2002 Gary Strangman. All rights reserved # Copyright 2002-2016 The SciPy Developers # # The original code from Gary Strangman was heavily adapted for # use in SciPy by Travis Oliphant. The original code came with the # following disclaimer: # # This software is provided "as-is". There are no expressed or...
bsd-3-clause
kaushik94/sympy
sympy/holonomic/holonomic.py
1
94131
""" This module implements Holonomic Functions and various operations on them. """ from __future__ import print_function, division from sympy import (Symbol, S, Dummy, Order, rf, meijerint, I, solve, limit, Float, nsimplify, gamma) from sympy.core.compatibility import range, ordered, string_types from sympy.core....
bsd-3-clause
nigroup/pypet
pypet/naturalnaming.py
1
134284
""" Module to handle a trajectory's tree containing groups and leaves (aka parameters and results). Contains the following classes: * :class:`~pypet.naturalnaming.NaturalNamingInterface` Class that handles interaction with the tree. Usually functions of tree nodes allowing the manipulation of th...
bsd-3-clause
wgmueller1/unicorn
app/views.py
1
35436
from app import app, es, db, flask_bcrypt, login_manager from app import User, Organization from flask import jsonify from flask import make_response from flask import render_template from flask import url_for from flask import redirect from flask import Response from flask import request from flask import session from...
mit
goldentom42/predictor_stacker
linear_stacker/linear_stacker.py
1
31000
from __future__ import division import os.path import pandas as pd import numpy as np from sklearn.preprocessing import MinMaxScaler #np.set_printoptions(precision=2) class LinearPredictorStacker(object): STANDARD = 0 SWAPPING = 1 def __init__(self, metric=None, maximize...
apache-2.0
doolanshire/Combat-Models
instructions_1921/battle_logic.py
1
58342
############################################ # Instructions for Tactical Exercises 1921 # # © Alvaro Radigales, 2021 - MIT licence # ############################################ # A Python implementation of the Royal Navy's 1921 wargame rules. It is designed to create a model of a battle from a # series of external,...
mit
kviebahn/beam-cam
BeamProfilingApplication.py
1
86928
# -*- coding: utf-8 -*- """ Created on Thu Mar 03 15:51:13 2016 This script starts the image viewer GUI for VRmagic USB Cameras. TO DO: -test with more than one camera and add error handling -implement the option to save data -implement the possibility to choose a different colormap for the image @auth...
gpl-3.0
vinodkc/spark
python/pyspark/pandas/namespace.py
1
104577
# # 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
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_10_09_2014_server.py
1
38114
# 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
blond-admin/BLonD
blond/beam/distributions.py
1
41365
# Copyright 2016 CERN. This software is distributed under the # terms of the GNU General Public Licence version 3 (GPL Version 3), # copied verbatim in the file LICENCE.md. # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Orga...
gpl-3.0
rubydatasystems/seniority_list
seniority_list/build_program_files.py
1
35782
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # seniority_list is an analytical tool used when seniority-based work # groups merge. It brings modern data science to the area of labor # integration, utilizing the powerful data analysis capabilities of Python # scientific computing. # Copyright (C) 2016-2017 Robert E...
gpl-3.0
cbertinato/pandas
pandas/tests/test_nanops.py
1
42411
from functools import partial import warnings import numpy as np import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.common import is_integer_dtype import pandas as pd from pandas import Series, isna from pandas.core.arrays import DatetimeArray import pandas.core.nanops as nanops import ...
bsd-3-clause
ctzhu/lifemodels
lifemodels/DeDayMLEcore.py
1
107919
#! /usr/bin/python import cPickle import os import sys from multiprocessing import Pool from multiprocessing import cpu_count from multiprocessing import freeze_support from itertools import chain import warnings warnings.filterwarnings('ignore', 'The iteration is not making good progress') warnings.filterwarnings('ign...
mit
DanielAndreasen/ObservationTools
visibility.py
2
30628
# -*- coding: utf-8 -*- from __future__ import print_function import sys import numpy as np import datetime as dt from dateutil import tz import pickle from random import choice from PyAstronomy import pyasl from astropy.coordinates import SkyCoord from astropy.coordinates import name_resolve import ephem import argpar...
mit
zodiac/incubator-airflow
airflow/www/views.py
1
93956
# -*- coding: utf-8 -*- # # 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, software ...
apache-2.0
cbertinato/pandas
pandas/tests/frame/test_to_csv.py
1
47656
import csv from io import StringIO import os import numpy as np import pytest from pandas.errors import ParserError import pandas as pd from pandas import ( DataFrame, Index, MultiIndex, Series, Timestamp, date_range, read_csv, to_datetime) import pandas.core.common as com from pandas.tests.frame.common impo...
bsd-3-clause
hschovanec-usgs/magpy
magpy/stream.py
1
493526
#!/usr/bin/env python """ MagPy-General: Standard pymag package containing the following classes: Written by Roman Leonhardt, Rachel Bailey 2011/2012/2013/2014 Written by Roman Leonhardt, Rachel Bailey, Mojca Miklavec 2015/2016 Version 0.3 (starting May 2016) License: https://creativecommons.org/licenses/by-nc-sa/4.0/l...
gpl-3.0
poojavade/Genomics_Docker
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/scipy/special/add_newdocs.py
2
94195
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
apache-2.0
mikegraham/dask
dask/dataframe/core.py
1
96459
from __future__ import absolute_import, division, print_function import bisect from collections import Iterator from datetime import datetime from distutils.version import LooseVersion import math import operator from operator import getitem, setitem from pprint import pformat import uuid import warnings from toolz i...
bsd-3-clause
kensugino/jGEM
jgem/merge.py
1
67888
""" .. module:: merge :synopsis: module for merging multiple assemblies .. moduleauthor:: Ken Sugino <ken.sugino@gmail.com> """ import subprocess import os import gzip import logging logging.basicConfig(level=logging.DEBUG) LOG = logging.getLogger(__name__) import shutil import json import pandas as PD import...
mit
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/core/internals.py
1
166771
import copy import itertools import re import operator from datetime import datetime, timedelta, date from collections import defaultdict import numpy as np from pandas.core.base import PandasObject from pandas.core.common import (_possibly_downcast_to_dtype, isnull, _NS_DTYPE, _TD_DTY...
gpl-2.0
nizamibilal/pyMODE-TASK
pyMODE_TASK.py
1
83547
#!/usr/bin/env python #filename: pyMODE_TASK.py import matplotlib matplotlib.use('Agg') import Tkinter from Tkinter import * import subprocess from ttk import Separator, Style import ttk import Pmw import tkMessageBox, tkFileDialog import os import webbrowser import pymol from pymol import cmd import sys,os,math,re, f...
gpl-3.0
jprchlik/aia_mkmovie
aia_mkimage.py
1
41335
__version__ = "0.0.1 (2017/07/24)" __authors__ = ['Jakub Prchlik <jakub.prchlik@cfa.harvard.edu>'] __email__ = "jakub.prchlik@cfa.harvard.edu" import matplotlib ##fixes multiprocess issue (scrambled text in images) matplotlib.use('agg',warn=False,force=True) import sys try: import sunpy.map from sunpy.cm i...
mit
JulienPeloton/s4cmb
s4cmb/scanning_strategy.py
1
39574
#!/usr/bin/python # Copyright (c) 2016-2021 Julien Peloton, Giulio Fabbian. # # This file is part of s4cmb # # 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
schae234/Camoco
camoco/COB.py
1
85716
#!/usr/bin/python3 import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import camoco.PCCUP as PCCUP from .Camoco import Camoco from .RefGen import RefGen from .Locus import Locus,Gene from .Expr import Expr from .Tools import memoize,available_datasets from .Term import Term from .Ontology...
mit
gfyoung/scipy
scipy/signal/signaltools.py
1
119084
# Author: Travis Oliphant # 1999 -- 2002 from __future__ import division, print_function, absolute_import import operator import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion ...
bsd-3-clause
qiita-spots/qp-qiime2
qp_qiime2/tests/test_qiime2.py
1
75339
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
bsd-3-clause
winklerand/pandas
pandas/tseries/offsets.py
1
80939
# -*- coding: utf-8 -*- from datetime import date, datetime, timedelta import functools import operator from pandas.compat import range from pandas import compat import numpy as np from pandas.core.dtypes.generic import ABCSeries, ABCDatetimeIndex, ABCPeriod from pandas.core.tools.datetimes import to_datetime, normal...
bsd-3-clause
kushalbhola/MyStuff
Practice/PythonApplication/env/Lib/site-packages/pandas/core/groupby/groupby.py
1
78323
""" Provide the groupby split-apply-combine paradigm. Define the GroupBy class providing the base-class of operations. The SeriesGroupBy and DataFrameGroupBy sub-class (defined in pandas.core.groupby.generic) expose these user-facing objects to provide specific functionailty. """ import collections from contextlib im...
apache-2.0
antgonza/qiita
qiita_db/metadata_template/test/test_util.py
1
42066
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
bsd-3-clause
gfyoung/pandas
pandas/tests/arithmetic/test_period.py
1
56280
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for Period dtype import operator import numpy as np import pytest from pandas._libs.tslibs import IncompatibleFrequency, Period, Timestamp, to_offset from pandas.errors import PerformanceWarning import pandas...
bsd-3-clause
TinyOS-Camp/DDEA-DEV
Archive/[14_10_10] DDEA sample code/pre_bn_state_processing.py
1
90895
# -*- coding: utf-8 -*- """ Created on Sat Apr 5 15:28:13 2014 @author: deokwooj """ from __future__ import division # To forace float point division import numpy as np from scipy import stats from scipy.interpolate import interp1d from sklearn import mixture #from sklearn.cluster import Ward from sklearn.cluster imp...
gpl-2.0
Gabvaztor/TFBoost
src/projects/Web_Traffic_Time/TFModels_backup.py
1
64538
# -*- coding: utf-8 -*- """ Author: @gabvaztor StartDate: 04/03/2017 This file contains samples and overrides deep learning algorithms. Style: "Google Python Style Guide" https://google.github.io/styleguide/pyguide.html """ # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import divisi...
apache-2.0
JanekWMJ/J-Rectifier
J_Rectifier/janek_georeferencer.py
1
163369
# -*- coding: utf-8 -*- """ /*************************************************************************** J_Rectifier A QGIS plugin a ------------------- begin : 2017-01-18 git sha : $Format:%H$ copyright...
gpl-3.0
danellecline/stoqs
stoqs/loaders/CANON/__init__.py
1
65549
#!/usr/bin/env python __author__ = 'Mike McCann' __copyright__ = '2011' __license__ = 'GPL v3' __contact__ = 'mccann at mbari.org' ''' Contains class for common routines for loading all CANON data Mike McCann MBARI 22 April 2012 @undocumented: __doc__ parser @status: production @license: GPL ''' import os i...
gpl-3.0
maciejkula/scipy
scipy/signal/filter_design.py
1
103738
"""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
rasmusagren/platereader
platereader/plateimage.py
1
48960
#This should not be required since OpenCV will import, but it's a #known issue with some numpy functions and PyInstaller import numpy as np import cv2 import matplotlib.pyplot as plt import warnings class PlateImage(object): """ Represents a plate image and all the methods for analysing it.""" ...
gpl-2.0
amolkahat/pandas
pandas/core/arrays/datetimes.py
1
51321
# -*- coding: utf-8 -*- from datetime import datetime, timedelta, time import warnings import numpy as np from pytz import utc from pandas._libs import lib, tslib from pandas._libs.tslib import Timestamp, NaT, iNaT from pandas._libs.tslibs import ( normalize_date, conversion, fields, timezones, resolution...
bsd-3-clause
ominux/scikit-learn
sklearn/linear_model/least_angle.py
1
34383
""" Least Angle Regression algorithm. See the documentation on the Generalized Linear Model for a complete discussion. """ # Author: Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux # # License: BSD Style. from math import log import nump...
bsd-3-clause
cseed/hail
hail/python/hail/methods/statgen.py
1
129761
import itertools import math import numpy as np from typing import Dict, Callable import builtins import hail import hail as hl import hail.expr.aggregators as agg from hail.expr import (Expression, ExpressionException, expr_float64, expr_call, expr_any, expr_numeric, expr_locus, analyze, check_...
mit
Erotemic/ibeis
ibeis/algo/hots/chip_match.py
1
113344
# -*- coding: utf-8 -*- """ python -m utool.util_inspect check_module_usage --pat="chip_match.py" """ from __future__ import absolute_import, division, print_function, unicode_literals import copy import numpy as np import utool as ut import vtool_ibeis as vt from os.path import join from operator import xor import six...
apache-2.0
plotly/python-api
packages/python/plotly/plotly/graph_objs/_barpolar.py
1
61375
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Barpolar(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "barpolar" _valid_props = { "base", "basesrc", "customdata", "customdat...
mit
nhejazi/scikit-learn
sklearn/ensemble/gradient_boosting.py
2
81326
"""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
MJuddBooth/pandas
pandas/tests/internals/test_internals.py
1
48924
# -*- coding: utf-8 -*- # pylint: disable=W0102 from collections import OrderedDict from datetime import date, datetime from distutils.version import LooseVersion import itertools import operator import re import sys import numpy as np import pytest from pandas._libs.internals import BlockPlacement from pandas.compat...
bsd-3-clause
losonczylab/Zaremba_NatNeurosci_2017
losonczy_analysis_bundle/lab/plotting/plotting_helpers.py
1
71210
"""Plotting helper functions""" import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.patches import Rectangle import numpy as np from matplotlib.offsetbox import AnchoredOffsetbox, AuxTransformBox from matplotlib.offsetbox import VPacker, HPacker, TextArea import itertools as it import pandas as pd ...
mit
jszymon/pacal
tests/test_piecewise.py
1
71761
from __future__ import print_function import unittest import operator from pylab import show, subplot, pi from numpy import linspace, multiply, add, divide from numpy import unique, isnan, isscalar, diff from numpy import Inf, sign, isinf, isfinite, exp, log, cos, sin from numpy import logspace, sqrt, log10 from py...
gpl-3.0
thekingofkings/urban-flow-analysis
python/NBRegression.py
2
38647
""" Run the Negative Binomial Regression model The regresion model use various features to predict the crime count in each unit of study area (i.e. tract or Community Area) Author: Hongjian date:8/20/2015 # Main function coefficients_pvalue() It calls the external R script to do the random permutation. We use the...
mit
EntilZha/ScalaFunctional
functional/test/test_functional.py
1
34846
# pylint: skip-file import unittest import array from collections import namedtuple from itertools import product from functional.pipeline import Sequence, is_iterable, _wrap, extend from functional.transformations import name from functional import seq, pseq Data = namedtuple("Data", "x y") def pandas_is_installed...
mit
awakenting/gif_fitting
fitgif/TwoComp_passive.py
1
32604
import matplotlib.pyplot as plt from matplotlib import rcParams import numpy as np from numpy.linalg import inv from .ThresholdModel import ThresholdModel from .Filter_ThreeExpos import Filter_ThreeExpos from .Filter_Powerlaw import Filter_Powerlaw from . import Tools from . import cython_helpers as cyth class TwoC...
gpl-3.0
Delosari/dazer
bin/lib/ssp_functions/ssp_synthesis_tools.py
1
42976
from errno import ENOENT from os import remove, getcwd from sys import argv, exit from collections import OrderedDict from pandas import DataFrame, read_csv from astropy.io.fits impo...
mit
pr-omethe-us/PyKED
pyked/tests/test_chemked.py
1
58465
""" Test module for chemked.py """ # Standard libraries import os import pkg_resources import warnings from tempfile import TemporaryDirectory import xml.etree.ElementTree as etree from copy import deepcopy # Third-party libraries import numpy as np import pytest # Local imports from ..validation import schema, OurVa...
bsd-3-clause
badbytes/pymeg
gui/gtk/data_editor.py
1
30723
#!/usr/bin/python2 #!/usr/bin/env python # # Copyright 2010 dan collins <danc@badbytes.net> # # 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 Lice...
gpl-3.0
rs2/pandas
pandas/tests/scalar/timedelta/test_arithmetic.py
1
33792
""" Tests for scalar Timedelta arithmetic ops """ from datetime import datetime, timedelta import operator import numpy as np import pytest from pandas.compat.numpy import is_numpy_dev import pandas as pd from pandas import NaT, Timedelta, Timestamp, compat, offsets import pandas._testing as tm from pandas.core impo...
bsd-3-clause
cactusbin/nyt
matplotlib/lib/matplotlib/axis.py
1
78311
""" Classes for the ticks and x and y axis """ from __future__ import division, print_function from matplotlib import rcParams import matplotlib.artist as artist from matplotlib.artist import allow_rasterization import matplotlib.cbook as cbook import matplotlib.font_manager as font_manager import matplotlib.lines as...
unlicense
xuewei4d/scikit-learn
sklearn/utils/validation.py
4
53907
"""Utilities for input validation""" # Authors: Olivier Grisel # Gael Varoquaux # Andreas Mueller # Lars Buitinck # Alexandre Gramfort # Nicolas Tresegnie # Sylvain Marie # License: BSD 3 clause from functools import wraps import warnings import numbers import nu...
bsd-3-clause
mjabri/holoviews
holoviews/element/raster.py
1
30239
from operator import itemgetter from itertools import product import numpy as np import colorsys import param from ..core import util from ..core.data import DFColumns # FIXME: Waiting for new interface from ..core import (OrderedDict, Dimension, NdMapping, Element2D, Overlay, Element, Columns) fro...
bsd-3-clause
juanvallejo/auvsi_suas_competition
src/auvsi_suas_server/auvsi_suas/models.py
1
39256
"""Models for the AUVSI SUAS System.""" import datetime import logging import numpy as np import math import time from django.conf import settings from django.contrib.auth.models import User from django.db import models from django.utils import timezone from matplotlib import path as mplpath from scipy.interpolate imp...
apache-2.0
bartosh/zipline
tests/test_perf_tracking.py
1
77375
# # 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 wr...
apache-2.0
atumanov/ray
python/ray/tests/test_basic.py
1
89592
# coding: utf-8 from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from concurrent.futures import ThreadPoolExecutor import json import logging from multiprocessing import Process import os import random import re import setproctitle import s...
apache-2.0
erykoff/redmapper
redmapper/calibration/redsequencecal.py
1
43213
"""Class for calibrating the color-based red-sequence model. """ import os import numpy as np import fitsio import time from scipy.optimize import least_squares from ..configuration import Configuration from ..fitters import MedZFitter, RedSequenceFitter, RedSequenceOffDiagonalFitter, CorrectionFitter from ..redsequen...
apache-2.0
matk86/pymatgen
pymatgen/analysis/adsorption.py
1
30056
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals from __future__ import absolute_import, print_function """ This module provides classes used to enumerate surface sites and to find adsorption sites on slabs "...
mit
ClimbsRocks/scikit-learn
sklearn/model_selection/_search.py
1
44853
""" The :mod:`sklearn.model_selection._search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function from __future__ import division # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas...
bsd-3-clause
thomasgurry/amplicon_sequencing_pipeline
scripts/preprocessing_16S.py
1
37477
""" OVERVIEW: Python module for pre-processing FASTQ data into OTU tables. """ import numpy as np import sys import os, sys import util import Formatting from bidict import * import pandas as pd from collections import defaultdict import dbotu def merge_reads((fwd_fastq, rev_fastq, merged_fastq, merge_log)): ...
mit
cskyan/gesgnext
bin/gsx_helper.py
1
133483
#!/usr/bin/env python # -*- coding=utf-8 -*- ########################################################################### # Copyright (C) 2013-2016 by Caspar. All rights reserved. # File Name: gsx_helper.py # Author: Shankai Yan # E-mail: sk.yan@my.cityu.edu.hk # Created Time: 2016-04-10 14:55:16 #######################...
apache-2.0
shanot/imp
modules/pmi/pyext/src/analysis.py
1
106818
#!/usr/bin/env python """@namespace IMP.pmi.analysis Tools for clustering and cluster analysis """ from __future__ import print_function import IMP import IMP.algebra import IMP.em import IMP.pmi import IMP.pmi.tools import IMP.pmi.output import IMP.rmf import RMF import IMP.pmi.analysis from operator import itemge...
gpl-3.0
nbokulich/short-read-tax-assignment
tax_credit/eval_framework.py
1
43837
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright (c) 2014--, tax-credit development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------...
bsd-3-clause
gregcaporaso/scikit-bio
skbio/stats/tests/test_composition.py
4
52056
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
bsd-3-clause
CosmicFish/CosmicFish
python/cosmicfish_pylib/fisher_plot.py
1
60370
#---------------------------------------------------------------------------------------- # # This file is part of CosmicFish. # # Copyright (C) 2015-2017 by the CosmicFish authors # # The CosmicFish code is free software; # You can use it, redistribute it, and/or modify it under the terms # of the GNU General Public L...
gpl-3.0
nhmc/Barak
barak/plot.py
1
30466
""" Plotting routines. """ # python 2.6+ compatibility from __future__ import division, print_function, unicode_literals try: unicode except NameError: unicode = basestring = str xrange = range from math import log10 import numpy as np import matplotlib.pyplot as pl import matplotlib.pyplot as plt from ma...
bsd-3-clause
funbaker/astropy
astropy/visualization/wcsaxes/coordinate_helpers.py
1
31368
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This file defines the classes used to represent a 'coordinate', which includes axes, ticks, tick labels, and grid lines. """ import numpy as np from matplotlib.ticker import Formatter from matplotlib.transforms import Affine2D, ScaledTranslation fr...
bsd-3-clause
johnnyliu27/openmc
openmc/tallies.py
1
124653
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
LeeKamentsky/CellProfiler
cellprofiler/modules/tests/test_imagemath.py
1
45087
'''test_imagemath.py - test the ImageMath module CellProfiler is distributed under the GNU General Public License. See the accompanying file LICENSE for details. Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2015 Broad Institute All rights reserved. Please see the AUTHORS file for c...
gpl-2.0
gfyoung/numpy
numpy/core/fromnumeric.py
2
109577
"""Module containing non-deprecated functions borrowed from Numeric. """ from __future__ import division, absolute_import, print_function import functools import types import warnings import numpy as np from .. import VisibleDeprecationWarning from . import multiarray as mu from . import overrides from . import umat...
bsd-3-clause
LTS5/connectomeviewer
cviewer/plugins/codeoracle/scripts.py
1
32104
writegexf = ''' """ Convert a connectome network to the GEXF format readable by Gephi for further analysis and visualization """ import networkx as nx import numpy as np cnet = cfile.obj.get_by_name('connectome_freesurferaparc') cnet.load() outpath = 'out.gexf' def fix_float_for_gexf(network): for u,v,d in netwo...
bsd-3-clause
Winand/pandas
pandas/core/indexes/timedeltas.py
1
33999
""" implement the TimedeltaIndex """ from datetime import timedelta import numpy as np from pandas.core.dtypes.common import ( _TD_DTYPE, is_integer, is_float, is_bool_dtype, is_list_like, is_scalar, is_integer_dtype, is_object_dtype, is_timedelta64_dtype, is_timedelta64_ns_dtype, ...
bsd-3-clause
koverholt/ibis
ibis/impala/tests/test_ddl.py
1
36158
# Copyright 2014 Cloudera 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 writing, so...
apache-2.0
markovmodel/molPX
molpx/visualize.py
1
49188
__author__ = 'gph82' from pyemma.plots import plot_free_energy as _plot_free_energy import numpy as _np from matplotlib.widgets import AxesWidget as _AxesWidget from matplotlib.figure import Figure as _mplFigure from matplotlib.axes import Axes as _mplAxes from matplotlib.cm import get_cmap as _get_cmap from matplot...
lgpl-3.0
rs2/pandas
pandas/plotting/_matplotlib/converter.py
1
35495
import contextlib import datetime as pydt from datetime import datetime, timedelta, tzinfo import functools from typing import Any, List, Optional, Tuple from dateutil.relativedelta import relativedelta import matplotlib.dates as dates from matplotlib.ticker import AutoLocator, Formatter, Locator from matplotlib.trans...
bsd-3-clause
jrkerns/pylinac
pylinac/core/image.py
1
39355
"""This module holds classes for image loading and manipulation.""" import copy import io import pathlib from collections import Counter from datetime import datetime from io import BytesIO, BufferedReader import re import os.path as osp import os from typing import Union, Sequence, List, Any, Tuple, Optional, BinaryIO...
mit
toobaz/pandas
pandas/core/dtypes/common.py
1
52081
""" common type operations """ from typing import Any, Callable, Union import warnings import numpy as np from pandas._libs import algos, lib from pandas._libs.tslibs import conversion from pandas.compat import PY36 from pandas.core.dtypes.dtypes import ( CategoricalDtype, DatetimeTZDtype, ExtensionDtype...
bsd-3-clause
predicador37/pyicane
pyicane/test/test.py
1
30959
# -*- coding: utf-8 -*- """Testing class for pyicane package. """ from pyicane import pyicane import unittest import logging import requests from datetime import datetime import pandas as pd from collections import OrderedDict logging.basicConfig(level=logging.INFO) LOGGER = logging.getLogger(__name__) REQUESTS_LOG =...
apache-2.0
stefano-meschiari/gandalf
analysis/facade.py
1
33740
#============================================================================== # facade.py # Main gandalf library front-end when invoking gandalf from within python. # # This file is part of GANDALF : # Graphical Astrophysics code for N-body Dynamics And Lagrangian Fluids # https://github.com/gandalfcode/gandalf ...
gpl-2.0
rs2/pandas
pandas/tests/io/test_html.py
1
39216
from functools import partial from importlib import reload from io import BytesIO, StringIO import os import re import threading from urllib.error import URLError import numpy as np from numpy.random import rand import pytest from pandas.compat import is_platform_windows from pandas.errors import ParserError import p...
bsd-3-clause
lvdongr/spark
python/pyspark/sql/functions.py
1
111605
# # 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
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/io/stata.py
1
108506
""" Module contains tools for processing Stata files into DataFrames The StataReader below was originally written by Joe Presbrey as part of PyDTA. It has been extended and improved by Skipper Seabold from the Statsmodels project who also developed the StataWriter and was finally added to pandas in a once again improv...
mit
pcrumley/Iseult
src/fields_plots.py
1
84898
#!/usr/bin/env python import tkinter as Tk from tkinter import ttk, messagebox import matplotlib import numpy as np import numpy.ma as ma import new_cmaps import sys, traceback from new_cnorms import PowerNormWithNeg, PowerNormFunc import matplotlib.colors as mcolors import matplotlib.gridspec as gridspec import matplo...
gpl-3.0
flohorovicic/pygeomod
pygeomod/geogrid.py
1
38875
'''Module with classes and methods to analyse and process exported geomodel grids Created on 21/03/2014 @author: Florian Wellmann (some parts originally developed by Erik Schaeffer) ''' import numpy as np try: import matplotlib.pyplot as plt except ImportError: print("\n\n\tMatplotlib not installed - plotting...
mit
humdings/zipline
zipline/pipeline/loaders/blaze/core.py
1
36412
""" Blaze integration with the Pipeline API. For an overview of the blaze project, see blaze.pydata.org The blaze loader for the Pipeline API is designed to allow us to load data from arbitrary sources as long as we can execute the needed expressions against the data with blaze. Data Format ----------- The blaze Pi...
apache-2.0
reflectometry/osrefl
osrefl/viewers/plot_2d.py
1
36199
# -*- coding: utf-8 -*- from pylab import imshow,cm,colorbar,hot,show,xlabel,ylabel,connect, plot, figure, draw, axis, gcf,legend from numpy import ones, sum, arange, transpose, log import matplotlib.colors as colors from matplotlib.widgets import RectangleSelector from colormap import change_colormap from matplotlib....
bsd-3-clause
meteoswiss-mdr/monti-pytroll
scripts/backup/plot_coalition2_20150727.py
1
63098
from datetime import datetime import sys, string, os import logging sys.path.insert(0, "/home/lom/users/cll/pytroll/install/lib/python2.6/site-packages") from mpop.satellites import GeostationaryFactory from mpop.projector import get_area_def from mpop.utils import debug_on from pyresample import plot import numpy as n...
lgpl-3.0
bajibabu/merlin
src/work_in_progress/oliver/run_dnn_hourly_check.py
2
52699
import pickle import gzip import os, sys, errno import time import math # numpy & theano imports need to be done in this order (only for some numpy installations, not sure why) import numpy # we need to explicitly import this in some cases, not sure why this doesn't get imported with numpy itself import numpy.distut...
apache-2.0
jddunn/emoter
emoter/emote.py
1
41515
#!/usr/bin/python # -*- coding: utf-8 -*- encoding = "utf-8" import codecs import os import sys import random import datetime import time import gc from future.builtins import input import pickle as pickle # import shelve # Shelve used because it can manipulate serialized data unlike pickle, but it's a lot slower. To b...
mit
IBT-FMI/SAMRI
samri/pipelines/glm.py
1
75191
from os import path, listdir, getcwd, remove import inspect import pandas as pd import re import shutil import multiprocessing as mp import nipype.interfaces.io as nio import nipype.interfaces.utility as util import nipype.pipeline.engine as pe import os from shutil import copyfile from copy import deepcopy from itert...
gpl-3.0
wwf5067/statsmodels
statsmodels/tsa/statespace/mlemodel.py
1
47931
""" State Space Model Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function import numpy as np import pandas as pd from scipy.stats import norm from .kalman_filter import ( KalmanFilter, FilterResults, INVERT_UNIVARIATE, SOLVE_LU ) import statsmodels.tsa...
bsd-3-clause