repo_name
string
path
string
copies
string
size
string
content
string
license
string
Kate-Willett/HadISDH_Marine_Build
EUSTACE_SST_MAT/InterpClimtoPentad1by1.py
1
85024
#!/usr/local/sci/bin/python # PYTHON2.7 # ''' Author: Kate Willett Created: 11 Sep 2016 Last update: 11 Sep 2016 Location: /data/local/hadkw/HADCRUH2/MARINE/EUSTACEMDS/EUSTACE_SST_MAT/ GitHub: https://github.com/Kate-Willett/HadISDH_Marine_Build/ ----------------------- CODE PURPOSE AND OUTPUT --------------...
cc0-1.0
elendiastarman/Eye-Tracking-Data-Display
expertCodingApp_v0.9.9.15.py
1
44169
import math import os import sys import time import numpy as np import matplotlib as mpl if sys.platform == 'darwin': mpl.use('macosx') import matplotlib.pyplot as plt import matplotlib.widgets as mpl_w import matplotlib.gridspec as gridspec import csv import h5py from datetime import datetime ...
gpl-2.0
erykoff/redmapper
redmapper/redmagic/redmagic_calibrate.py
1
31460
"""Classes for calibrating a redMaGiC parameter file.""" from collections import OrderedDict import os import numpy as np import fitsio import time import scipy.optimize import esutil import healpy as hp import copy from ..configuration import Configuration from ..fitters import MedZFitter from ..redsequence import Re...
apache-2.0
eclee25/flu-SDI-exploratory-age
scripts/WIPS2015/functions_v5.py
1
86271
#!/usr/bin/python ############################################## ###Python template ###Author: Elizabeth Lee ###Date: 10/31/14 ## Purpose: script of functions for data cleaning and processing to draw flu severity figures; supports figures in create_fluseverity_figs ## v2: swap child:adult OR to adult:child OR ## v3: ...
mit
lucidfrontier45/scikit-learn
sklearn/ensemble/forest.py
1
50907
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
bsd-3-clause
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/matplotlib/backends/backend_pdf.py
2
89782
# -*- coding: iso-8859-1 -*- """ A PDF matplotlib backend Author: Jouni K Seppänen <jks@iki.fi> """ from __future__ import division, print_function import codecs import os import re import sys import time import warnings import zlib import numpy as np if sys.version_info[0] >= 3: from io import BytesIO else: ...
mit
ProjectPyRhO/PyRhO
pyrho/simulators.py
1
58787
""" Classes to wrap simulation engines for a uniform interface * ``Python`` for simulations at the `channel` level * ``NEURON`` for simulations at the `cellular` level * ``Brian2`` for simulations at the `network` level """ from __future__ import print_function, division import warnings import logging impo...
bsd-3-clause
LucaDiStasio/thinPlyMechanics
python/createLatexScatterPlots.py
1
73183
#!/usr/bin/env Python # -*- coding: utf-8 -*- ''' ===================================================================================== Copyright (c) 2016 Université de Lorraine & Luleå tekniska universitet Author: Luca Di Stasio <luca.distasio@gmail.com> <luca.distasio@ingpec.eu> This program...
apache-2.0
MSeifert04/astropy
astropy/visualization/wcsaxes/coordinate_helpers.py
1
43837
# 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 warnings import numpy as np from matplotlib.ticker import Formatter from matplotlib.transforms import Affine2D, Scal...
bsd-3-clause
TuKo/brainiak
brainiak/reprsimil/brsa.py
1
210813
# Copyright 2016 Mingbo Cai, Princeton Neuroscience Instititute, # Princeton University # # 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...
apache-2.0
davidnmurray/iris
lib/iris/tests/__init__.py
1
34473
# (C) British Crown Copyright 2010 - 2016, Met Office # # This file is part of Iris. # # Iris is free software: you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the # Free Software Foundation, either version 3 of the License, or # (at your option) any l...
gpl-3.0
saimn/astropy
astropy/table/tests/test_table.py
1
101162
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from astropy.utils.tests.test_metadata import MetaBaseTest import gc import sys import copy from io import StringIO from collections import OrderedDict import pickle import pytest import numpy as np from numpy.testing import asser...
bsd-3-clause
jhsenjaliya/incubator-airflow
airflow/www/views.py
1
97277
# -*- 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
WattyAB/inspector
inspector/view.py
1
31827
from __future__ import print_function, division, unicode_literals # stdlib imports import os import pickle # Could use cPickle if python2 import logging import json import argparse import gzip from time import time from datetime import datetime from operator import itemgetter, methodcaller from numbers import Numbe...
apache-2.0
sixy6e/image-processing
src/segmentation.py
1
40163
#!/usr/bin/env python """ Copyright (c) 2014, Josh Sixsmith 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 condi...
bsd-2-clause
krez13/scikit-learn
sklearn/linear_model/logistic.py
1
67440
""" Logistic Regression """ # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Fabian Pedregosa <f@bianp.net> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Manoj Kumar <manojkumarsivaraj334@gmail.com> # Lars Buitinck # Simon Wu <s8wu@uwaterloo.ca> im...
bsd-3-clause
TUW-GEO/rt1
rt1/rtplots.py
1
109404
""" Class for quick visualization of results and used phasefunctions """ from functools import partial from itertools import cycle import datetime import numpy as np import sympy as sp import pandas as pd import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.lines as mlines from matplotlib.color...
apache-2.0
kiwifb/numpy
numpy/core/tests/test_multiarray.py
1
244600
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import ctypes import os if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import D...
bsd-3-clause
tony810430/flink
flink-python/pyflink/table/tests/test_udaf.py
1
36798
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
apache-2.0
markelg/xray
xray/core/dataset.py
1
75161
import functools import warnings from collections import Mapping, Sequence from numbers import Number import numpy as np import pandas as pd from . import ops from . import utils from . import common from . import groupby from . import indexing from . import alignment from . import formatting from .. import conventio...
apache-2.0
datapythonista/pandas
pandas/io/parsers/readers.py
1
54139
""" Module contains tools for processing files into DataFrames or other objects """ from collections import abc import csv import sys from textwrap import fill from typing import ( Any, Dict, List, Optional, Set, Type, ) import warnings import numpy as np import pandas._libs.lib as lib from pa...
bsd-3-clause
rpoleski/MulensModel
examples/example_16/ulens_model_fit.py
1
62321
""" Class and script for fitting microlensing model using MulensModel. All the settings are read from a YAML file. """ import sys from os import path import warnings import math import numpy as np from scipy.interpolate import interp1d from matplotlib import pyplot as plt from matplotlib import gridspec import_failed ...
mit
nathanielvarona/airflow
airflow/providers/apache/hive/hooks/hive.py
1
42100
# # 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...
apache-2.0
has2k1/plydata
plydata/one_table_verbs.py
1
33733
""" One table verb initializations """ import itertools from .operators import DataOperator from .expressions import Expression __all__ = ['define', 'create', 'sample_n', 'sample_frac', 'select', 'rename', 'distinct', 'unique', 'arrange', 'group_by', 'ungroup', 'group_indices', 'summarize', ...
bsd-3-clause
Dronecode/MAVProxy
MAVProxy/tools/MAVExplorer.py
1
34207
#!/usr/bin/env python from __future__ import print_function ''' log analysis program Andrew Tridgell December 2014 ''' import copy import sys import time import os import fnmatch import threading import shlex from math import * from MAVProxy.modules.lib import multiproc from MAVProxy.modules.lib import rline from MA...
gpl-3.0
johnmgregoire/JCAPdatavis
echem_plate_ui.py
1
74549
import time import os, os.path import sys import numpy from PyQt4.QtCore import * from PyQt4.QtGui import * import operator import matplotlib from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar from ...
bsd-3-clause
arokem/scipy
scipy/optimize/nonlin.py
1
48377
r""" Nonlinear solvers ----------------- .. currentmodule:: scipy.optimize This is a collection of general-purpose nonlinear multidimensional solvers. These solvers find *x* for which *F(x) = 0*. Both *x* and *F* can be multidimensional. Routines ~~~~~~~~ Large-scale nonlinear solvers: .. autosummary:: newton...
bsd-3-clause
acapet/GHER-POSTPROC
G3D_class.py
1
64207
import numpy as np import numpy.ma as ma from netCDF4 import Dataset import gsw import yaml import os.path import datetime as dt import cmocean import calendar import matplotlib.pyplot as plt import matplotlib.dates as mdates #from mpl_toolkits.basemap import Basemap class G3D(object): '''This is a class for mode...
gpl-3.0
huzq/scikit-learn
sklearn/neighbors/_base.py
1
45165
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck # Multi-output support by Arnaud Jol...
bsd-3-clause
connectome-neuprint/neuprint-python
neuprint/simulation.py
1
31008
""" Functions for performing SPICE-based electrical simulation of a neuron given its synapses and skeleton using a simple linear passive model. Try the `interactive simulation tutorial`_ for a tour of basic simulation options. .. _interactive simulation tutorial: notebooks/SimulationTutorial.ipynb .. note:: Th...
bsd-3-clause
juliantaylor/scipy
scipy/signal/windows.py
1
48012
"""The suite of window functions.""" from __future__ import division, print_function, absolute_import import numpy as np from scipy import special, linalg from scipy.fftpack import fft __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', 'blackmanharris', 'flattop', 'bartlett', 'hannin...
bsd-3-clause
boomsbloom/dtm-fmri
DTM/for_gensim/lib/python2.7/site-packages/matplotlib/transforms.py
1
95743
""" matplotlib includes a framework for arbitrary geometric transformations that is used determine the final position of all elements drawn on the canvas. Transforms are composed into trees of :class:`TransformNode` objects whose actual value depends on their children. When the contents of children change, their pare...
mit
cjayb/mne-python
mne/utils/numerics.py
2
35791
# -*- coding: utf-8 -*- """Some utility functions.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # # License: BSD (3-clause) from contextlib import contextmanager import hashlib from io import BytesIO, StringIO from math import sqrt import numbers import operator import os import os.path as op from ma...
bsd-3-clause
rezasafi/spark
python/pyspark/sql/functions.py
2
143764
# # 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
Sohojoe/damon
damon1/tabulate.py
1
30544
# -*- coding: utf-8 -*- """Pretty-print tabular data Author: Sergey Astanin Home Page: https://bitbucket.org/astanin/python-tabulate License: Copyright (c) 2011-2013 Sergey Astanin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
apache-2.0
soulmachine/scikit-learn
sklearn/metrics/classification.py
1
53017
"""Metrics to assess performance on classification task given classe prediction Functions named as ``*_score`` return a scalar value to maximize: the higher the better Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better """ # Authors: Alexandre Gramfort <alexandre.gram...
bsd-3-clause
dpinney/omf
omf/weather.py
1
57797
''' Pull weather data from various sources. Source options include NOAA's USCRN, Iowa State University's METAR, and Weather Underground (currently deprecated). ''' import os, csv, re, json, sys from math import sqrt, exp, cos, radians import numpy as np from os.path import join as pJoin from datetime import timedelta...
gpl-2.0
sthyme/ZFSchizophrenia
BehaviorAnalysis/processmotiondata.py
1
44985
#!/usr/bin/python import os,sys,glob,re import numpy as np import scipy import datetime import time from datetime import timedelta from AnalyzedFish import AnalyzedFish # fish object from scipy.stats import norm import copy import math import matplotlib import fileloading # prepares all the files import statsandgraph...
mit
xuewei4d/scikit-learn
sklearn/linear_model/_stochastic_gradient.py
4
65635
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD 3 clause """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import warnings from abc import ABCMeta, abstractmethod from joblib imp...
bsd-3-clause
crawfordsm/pysalt
saltspec/InterIdentify.py
1
45723
# Copyright (c) 2009, South African Astronomical Observatory (SAAO) # # All rights reserved. See LICENSE for more details # """INTERIDENTIFY provides an interactive method for identifying lines in an arc image. The tasks displays the full image, a line extracted from the image, and resid...
bsd-3-clause
MJuddBooth/pandas
pandas/tests/io/test_packers.py
1
33087
import datetime from distutils.version import LooseVersion import glob import os from warnings import catch_warnings import numpy as np import pytest from pandas._libs.tslib import iNaT from pandas.compat import PY3, u from pandas.errors import PerformanceWarning import pandas from pandas import ( Categorical, D...
bsd-3-clause
CORDEA/encampment-game
game.py
1
34279
#!/bin/env/python #coding: utf-8 from pygame import * from PodSixNet.Connection import ConnectionListener, connection from sklearn.svm import LinearSVC from datetime import datetime from time import sleep import numpy as np import random import sys u"""Encampment game with Pygame Pygame, PodSixNet, scikit-learnを用いたネ...
apache-2.0
espenhgn/VIOLA
test_data/topo_brunel_alpha_nest.py
1
44541
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' E-I network connected with NEST topology ---------------------------------------- Simulation of a network consisting of an excitatory and an inhibitory neuron population with distance-dependent connectivity. The code bases on the script brunel_alpha_nest.py which...
gpl-2.0
pm8k/Spomato
spomato/spomato.py
1
31484
"""Author: Matthew Russell This contains the main Spomato class to be used to access the Spotify API and create new playlists based on the user's defined criteria. """ import os import pandas as pd import spotipy class Spomato(): """Object used to access spotify API through spotipy and generate playlists. ...
mit
rohit21122012/DCASE2013
runs/2016/dnn2016med_mfcc_21/task1_scene_classification.py
1
38002
#!/usr/bin/env python # -*- coding: utf-8 -*- # # DCASE 2016::Acoustic Scene Classification / Baseline System import argparse import textwrap import timeit import skflow import tensorflow as tf from tensorflow.contrib import learn from sklearn import mixture from sklearn import preprocessing as pp from sklearn.extern...
mit
timtroendle/urban-occupants-paper
urbanoccupants/urbanoccupants/tus.py
1
35041
"""Functions and mapping for the UK Time Use Study 2000 data. The mappings bring the data into categories that are used in this study. Typically that means the number of categories is reduces vastly. """ from enum import Enum import numpy as np import pandas as pd from pytus2000 import diary, individual from .person...
mit
andreashorn/lead_dbs
ext_libs/OSS-DBS/OSS_platform/Electrode_files/SNEX100_profile.py
1
33010
# -*- coding: utf-8 -*- ### ### This file is generated automatically by SALOME v8.3.0 with dump python functionality ###### Run with DPS_lead_position_V9.py import sys import salome import os salome.salome_init() theStudy = salome.myStudy import salome_notebook notebook = salome_notebook.NoteBook(theStudy) sys.path...
gpl-3.0
empeeu/numpy
numpy/lib/function_base.py
1
130144
from __future__ import division, absolute_import, print_function import warnings import sys import collections import operator import numpy as np import numpy.core.numeric as _nx from numpy.core import linspace, atleast_1d, atleast_2d from numpy.core.numeric import ( ones, zeros, arange, concatenate, array, asarr...
bsd-3-clause
alephu5/Soundbyte
environment/lib/python3.3/site-packages/matplotlib/lines.py
1
42003
""" This module contains all the 2D line class which can draw with a variety of line styles, markers and colors. """ # TODO: expose cap and join style attrs import warnings import numpy as np from numpy import ma from matplotlib import verbose from . import artist from .artist import Artist from .cbook import itera...
gpl-3.0
TomAugspurger/pandas
pandas/tests/groupby/aggregate/test_aggregate.py
1
31398
""" test .agg behavior / note that .apply is tested generally in test_groupby.py """ import functools import numpy as np import pytest from pandas.core.dtypes.common import is_integer_dtype import pandas as pd from pandas import DataFrame, Index, MultiIndex, Series, concat import pandas._testing as tm from pandas.co...
bsd-3-clause
tbarbette/npf
npf/grapher.py
1
86717
import io import math import re import natsort from orderedset._orderedset import OrderedSet import copy import traceback from asteval import Interpreter from collections import OrderedDict from typing import List import numpy as np from pygtrie import Trie from npf.types import dataset from npf.types.dataset import ...
gpl-3.0
e-koch/BaSiCs
basics/bubble_objects.py
1
56058
import numpy as np from astropy.modeling.models import Ellipse2D from astropy.stats import circmean from astropy import units as u from astropy.wcs.utils import proj_plane_pixel_scales from astropy.wcs import WCS from astropy.coordinates import SkyCoord from spectral_cube.lower_dimensional_structures import LowerDimen...
mit
jdmcbr/geopandas
geopandas/tests/test_plotting.py
1
64812
from distutils.version import LooseVersion import itertools import warnings import numpy as np import pandas as pd from shapely import wkt from shapely.affinity import rotate from shapely.geometry import ( MultiPolygon, Polygon, LineString, LinearRing, Point, MultiPoint, MultiLineString, ...
bsd-3-clause
cmoutard/mne-python
mne/viz/raw.py
1
31367
"""Functions to plot raw M/EEG data """ from __future__ import print_function # Authors: Eric Larson <larson.eric.d@gmail.com> # Jaakko Leppakangas <jaeilepp@student.jyu.fi> # # License: Simplified BSD import copy from functools import partial import numpy as np from ..externals.six import string_types fro...
bsd-3-clause
linebp/pandas
pandas/core/frame.py
1
219233
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
bsd-3-clause
geophysics/mtpy
mtpy/modeling/occamtools.py
1
287484
# -*- coding: utf-8 -*- """ Created on Tue Aug 23 11:54:38 2011 @author: a1185872 """ import numpy as np import scipy as sp import os import subprocess import shutil import fnmatch from operator import itemgetter import time import matplotlib.colorbar as mcb from matplotlib.colors import Normalize from matplotlib.tic...
gpl-3.0
alexblaessle/PyFRAP
pyfrp/subclasses/pyfrp_ROI.py
2
111299
#===================================================================================================================================== #Copyright #===================================================================================================================================== #Copyright (C) 2014 Alexander Blaessle...
gpl-3.0
saimn/glue
glue/viewers/custom/qt/custom_viewer.py
2
42420
""" This module provides utilities for creating custom data viewers. The goal of this module is to make it easy for users to make new data viewers by focusing on matplotlib visualization logic, and not UI or event processing logic. The end user typically interacts with this code via :func:`glue.custom_viewer` """ fro...
bsd-3-clause
parag2489/keras_superpixel_pooling
callbacks.py
1
36496
from __future__ import absolute_import from __future__ import print_function import os import csv import numpy as np import time import json import warnings from collections import deque from collections import OrderedDict from collections import Iterable from .utils.generic_utils import Progbar from . import backen...
mit
jzbontar/orange-tree
Orange/widgets/visualize/owparallelgraph.py
1
35044
# # OWParallelGraph.py # from collections import defaultdict import os import sys import math import numpy as np from PyQt4.QtCore import QLineF, Qt, QEvent, QRect, QPoint, QPointF from PyQt4.QtGui import QGraphicsPathItem, QPixmap, QColor, QBrush, QPen, QToolTip, QPainterPath, QPolygonF, QGraphicsPolygonItem from O...
gpl-3.0
alephu5/Soundbyte
environment/lib/python3.3/site-packages/matplotlib/pyplot.py
1
114902
# Note: The first part of this file can be modified in place, but the latter # part is autogenerated by the boilerplate.py script. """ Provides a MATLAB-like plotting framework. :mod:`~matplotlib.pylab` combines pyplot with numpy into a single namespace. This is convenient for interactive work, but for programming it ...
gpl-3.0
GuessWhoSamFoo/pandas
pandas/tests/tseries/offsets/test_yqm_offsets.py
1
43982
# -*- coding: utf-8 -*- """ Tests for Year, Quarter, and Month-based DateOffset subclasses """ from datetime import datetime import pytest import pandas as pd from pandas import Timestamp, compat from pandas.tseries.offsets import ( BMonthBegin, BMonthEnd, BQuarterBegin, BQuarterEnd, BYearBegin, BYearEnd, Mo...
bsd-3-clause
gfyoung/pandas
pandas/core/internals/managers.py
1
62193
from __future__ import annotations from collections import defaultdict import itertools from typing import ( Any, Callable, DefaultDict, Dict, Hashable, List, Optional, Sequence, Tuple, TypeVar, Union, ) import warnings import numpy as np from pandas._libs import internals...
bsd-3-clause
automl/ChaLearn_Automatic_Machine_Learning_Challenge_2015
003_alexis.py
1
40009
import os import cPickle import time import lasagne import numpy as np import theano import theano.tensor as T import six import autosklearn.data.competition_data_manager class FeedForwardNet(object): def __init__(self, input_shape=(1, 28, 28), batch_size=100, num_layers=4, ...
bsd-2-clause
TariqAHassan/BioVida
biovida/images/cancer_image_interface.py
1
76655
# coding: utf-8 """ Cancer Imaging Archive Interface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ import io import os import pickle import shutil import zipfile import requests import numpy as np import pandas as pd from PIL import Image from time import sleep from copy import deepcopy from warnings import warn from...
bsd-3-clause
spennihana/h2o-3
h2o-py/tests/pyunit_utils/utilsPY.py
1
175962
from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import range from past.builtins import basestring import sys, os import numpy as np import operator try: # works with python 2.7 not 3 from StringIO import StringIO except: # works ...
apache-2.0
Archman/felapps
felapps/utils/pltutils.py
1
138511
#!/usr/bin/env python # -*- coding: utf-8 -*- """ python modules for plot utilities: ImageViewer: main GUI framework for an universal image viewer Author: Tong Zhang Created: Feb. 3rd, 2015 """ #import wxversion #wxversion.ensureMinimal('2.8') from __future__ import division import wx from wx.lib.agw import flo...
mit
hdemeyer/king-phisher
king_phisher/client/application.py
1
31526
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/application.py # # 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 # notic...
bsd-3-clause
jdfekete/progressivis
progressivis/table/table_base.py
1
40641
"""Base class for Tables """ from abc import ABCMeta from collections import OrderedDict, Mapping, Iterable import operator import logging import numpy as np from progressivis.core.index_update import IndexUpdate from progressivis.core.utils import (integer_types, norm_slice, is_slice, ...
bsd-2-clause
YzPaul3/h2o-3
h2o-py/tests/testdir_dynamic_tests/testdir_algos/glm/pyunit_glm_binomial_large.py
1
114537
from __future__ import print_function import sys sys.path.insert(1, "../../../../") import random import os import math import numpy as np import h2o import time from builtins import range from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator from h2o.grid.grid_search import H...
apache-2.0
gandrewstone/xmlterm
xmlpanels.py
1
31905
from ast import literal_eval import sys, time, types, traceback import math import json import os import re import string import glob import pdb import urlparse import urllib import svg import select, subprocess, fcntl from string import Template from xml.sax.saxutils import escape,unescape import xml.etree.ElementTr...
lgpl-3.0
vascotenner/holoviews
holoviews/core/util.py
1
31475
import os, sys, warnings, operator import numbers import itertools import string, fnmatch import unicodedata from collections import defaultdict import numpy as np import param try: from cyordereddict import OrderedDict except: from collections import OrderedDict try: import pandas as pd # noqa (optional...
bsd-3-clause
trovdimi/wikilinks
pickle_data.py
1
32509
from __future__ import division import os from collections import defaultdict import cPickle as pickle from graph_tool.all import * import logging import MySQLdb from wsd.database import MySQLDatabase from conf import * import time from scipy.sparse import csr_matrix from scipy.special import gammaln from sklearn.prepr...
mit
compmem/ptsa
ptsa/stats/lmer.py
1
39291
#emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- #ex: set sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See the COPYING file distributed along with the PTSA package for the # copyright and license terms. # ### ### ### ### ### ### ### #...
gpl-3.0
cbertinato/pandas
pandas/core/indexes/datetimes.py
1
59685
from datetime import datetime, time, timedelta import operator import warnings import numpy as np from pandas._libs import Timestamp, index as libindex, lib, tslib as libts import pandas._libs.join as libjoin from pandas._libs.tslibs import ccalendar, fields, parsing, timezones from pandas.util._decorators import App...
bsd-3-clause
jreback/pandas
pandas/core/arrays/categorical.py
1
88817
from csv import QUOTE_NONNUMERIC from functools import partial import operator from shutil import get_terminal_size from typing import ( TYPE_CHECKING, Dict, Hashable, List, Optional, Sequence, Type, TypeVar, Union, cast, ) from warnings import warn import numpy as np from pand...
bsd-3-clause
RRCKI/panda-jedi
pandajedi/jedibrokerage/AtlasAnalJobBroker.py
1
45809
import re import sys import copy import types import random import datetime from pandajedi.jedicore.MsgWrapper import MsgWrapper from pandajedi.jedicore.SiteCandidate import SiteCandidate from pandajedi.jedicore import Interaction from pandajedi.jedicore import JediCoreUtils from JobBrokerBase import JobBrokerBase fro...
apache-2.0
chrsrds/scikit-learn
sklearn/utils/__init__.py
1
32899
""" The :mod:`sklearn.utils` module includes various utilities. """ from collections.abc import Sequence from contextlib import contextmanager from itertools import islice import numbers import platform import struct import timeit import warnings import numpy as np from scipy.sparse import issparse from .murmurhash i...
bsd-3-clause
has2k1/plotnine
plotnine/themes/themeable.py
1
45818
""" Provide theamables, that is the elements can be themed. From the ggplot2 documentation the axis.title inherits from text. What this means is that axis.title and text have the same elements that may be themed, but the scope of what they apply to is different. The scope of text covers all text in the plot, axis.titl...
gpl-2.0
datapythonista/pandas
pandas/tests/arithmetic/test_datetime64.py
2
91274
# Arithmetic tests for DataFrame/Series/Index/Array classes that should # behave identically. # Specifically for datetime64 and datetime64tz dtypes from datetime import ( datetime, time, timedelta, ) from itertools import ( product, starmap, ) import operator import warnings import numpy as np impo...
bsd-3-clause
thomasbarillot/DAQ
eTOF/TOFAcqDigitizer_withStream.py
1
37852
import scipy.io as sio import math import pyqtgraph as pg from pyqtgraph.Qt import QtCore, QtGui import numpy as np from matplotlib import pyplot as plt from datetime import datetime import WetLab_NewportDelayStage as dstage import time import os from ctypes import * import ctypes as ct ADQAPI = cdl...
mit
pantsbuild/pex
tests/test_integration.py
1
129119
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import absolute_import, print_function import errno import filecmp import functools import glob import itertools import json import multiprocessing import os import re imp...
apache-2.0
zfrenchee/pandas
pandas/tests/reshape/test_pivot.py
1
74988
from datetime import datetime, date, timedelta import pytest import numpy as np from collections import OrderedDict import pandas as pd from pandas import (DataFrame, Series, Index, MultiIndex, Grouper, date_range, concat, Categorical) from pandas.core.reshape.pivot import pivot_table, crosstab...
bsd-3-clause
Neuromorphs/telluride-decoding-toolbox
TFRegression9.py
1
34176
# -*- coding: utf8 -*- """EEG Regression - Core TensorFlow implementation code. July 2016 March 2017 - update Enea, integrated the queue. """ import gc import math import re import resource import sys import time import matplotlib.pyplot as plot import numpy as np import numpy.matlib import scipy.io as sio import t...
apache-2.0
dwf/numpy
numpy/linalg/linalg.py
1
62914
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
bsd-3-clause
kfieldho/SMQTK
python/smqtk/algorithms/descriptor_generator/colordescriptor/colordescriptor.py
1
49966
import abc import logging import json import math import mimetypes import multiprocessing import multiprocessing.pool import os import os.path as osp import subprocess import sys import tempfile import numpy import sklearn.cluster import pyflann from smqtk.algorithms.descriptor_generator import DescriptorGenerator f...
bsd-3-clause
peerchemist/finta
finta/finta.py
1
89391
from functools import wraps import pandas as pd import numpy as np from pandas import DataFrame, Series def inputvalidator(input_="ohlc"): def dfcheck(func): @wraps(func) def wrap(*args, **kwargs): args = list(args) i = 0 if isinstance(args[0], pd.DataFrame) else 1 ...
lgpl-3.0
sbnlp/mTOR-evaluation
networkx_analysis.py
1
125507
import collections import csv import datetime import fuzzywuzzy.fuzz import fuzzywuzzy.process import itertools import joblib import libsbml import lxml import lxml.etree import networkx import numpy import os import operator import pickle import re import simstring import sys #########################################...
apache-2.0
jrkerns/pylinac
pylinac/core/profile.py
1
53749
"""Module of objects that resemble or contain a profile, i.e. a 1 or 2-D f(x) representation.""" import enum import warnings from typing import Union, Tuple, Sequence, List, Optional import argue import matplotlib.pyplot as plt import numpy as np from matplotlib.patches import Circle as mpl_Circle from scipy import nd...
mit
olafhauk/mne-python
mne/viz/_figure.py
1
112978
# -*- coding: utf-8 -*- """Figure classes for MNE-Python's 2D plots. Class Hierarchy --------------- MNEFigParams Container object, attached to MNEFigure by default. Sets close_key='escape' plus whatever other key-value pairs are passed to its constructor. matplotlib.figure.Figure ...
bsd-3-clause
CompPhysics/MachineLearning
doc/LectureNotes/_build/jupyter_execute/chapter8.py
1
35065
# Basic ideas of the Principal Component Analysis (PCA) The principal component analysis deals with the problem of fitting a low-dimensional affine subspace $S$ of dimension $d$ much smaller than the total dimension $D$ of the problem at hand (our data set). Mathematically it can be formulated as a statistical problem...
cc0-1.0
kevin-intel/scikit-learn
sklearn/decomposition/_dict_learning.py
2
60799
""" Dictionary learning. """ # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools import warnings from math import ceil import numpy as np from scipy import linalg from joblib import Parallel, effective_n_jobs from ..base import BaseEstimator, Tr...
bsd-3-clause
makism/dyfunconn
docs/sphinxext/gen_rst.py
1
39032
""" Example generation for the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from time import time import ast import os import re import shutil import traceback import glob import sys import gzip import posixp...
bsd-3-clause
stanleybak/hylaa
hylaa/plotutil.py
1
36758
''' Hylaa Plot Utilities Stanley Bak Sept 2016 ''' import sys import time import random from collections import OrderedDict import numpy as np from matplotlib import collections, animation, colors, rcParams import matplotlib.pyplot as plt from matplotlib.path import Path from matplotlib.widgets import Button from ma...
gpl-3.0
rs2/pandas
pandas/tests/indexes/interval/test_interval.py
1
34636
from itertools import permutations import re import numpy as np import pytest from pandas.errors import InvalidIndexError import pandas as pd from pandas import ( Index, Interval, IntervalIndex, Timedelta, Timestamp, date_range, interval_range, isna, notna, timedelta_range, ) ...
bsd-3-clause
shllybkwrm/swarm_gesture_control
recognition/dataProcessing_structuredTestPoints.py
1
30998
# -*- coding: utf-8 -*- """ Created on Thu Feb 12 18:29:30 2015 @author: Shelly """ #import cv2 ### NOTE: Needs OpenCV 2.4(.10) if CV2-KNN used import math import numpy as np from sklearn import cross_validation from sklearn.svm import SVC from sklearn.learning_curve import learning_curve from sklearn.metrics import c...
gpl-2.0
louispotok/pandas
pandas/core/series.py
1
135882
""" Data structure for 1-dimensional cross-sectional and time series data """ from __future__ import division # pylint: disable=E1101,E1103 # pylint: disable=W0703,W0622,W0613,W0201 import types import warnings from textwrap import dedent import numpy as np import numpy.ma as ma from pandas.core.accessor import Cac...
bsd-3-clause
bmcage/stickproject
stick/sandbox/domainsplit.py
1
35031
# # Copyright (C) 2012 B. Malengier # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed i...
gpl-2.0
winklerand/pandas
pandas/tests/scalar/test_timestamp.py
1
56926
""" test the scalar Timestamp """ import sys import pytz import pytest import dateutil import operator import calendar import numpy as np from dateutil.tz import tzutc from pytz import timezone, utc from datetime import datetime, timedelta from distutils.version import LooseVersion from pytz.exceptions import Ambiguo...
bsd-3-clause
profgiuseppe/graph-tool-tests
src/graph_tool/draw/cairo_draw.py
1
51438
#! /usr/bin/env python # -*- coding: utf-8 -*- # # graph_tool -- a general graph manipulation python module # # Copyright (C) 2006-2013 Tiago de Paula Peixoto <tiago@skewed.de> # # 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...
gpl-3.0