repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
MJuddBooth/pandas | pandas/tests/groupby/test_function.py | 1 | 41092 | from string import ascii_lowercase
import numpy as np
import pytest
from pandas.compat import product as cart_product
from pandas.errors import UnsupportedFunctionCall
import pandas as pd
from pandas import (
DataFrame, Index, MultiIndex, Series, Timestamp, compat, date_range, isna)
import pandas.core.nanops as ... | bsd-3-clause |
maartenbreddels/vaex | packages/vaex-core/vaex/dataframe.py | 1 | 282160 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import os
import math
import time
import itertools
import functools
import collections
import sys
import platform
import warnings
import re
from functools import reduce
import threading
import six
import vaex.utils
# import vaex.image
import numpy... | mit |
NeuroVault/NeuroVault | neurovault/apps/statmaps/views.py | 1 | 72792 | import csv
import functools
import gzip
import json
import nibabel as nib
import shutil
import numpy as np
import os
import re
import shutil
import tarfile
import tempfile
import traceback
import urllib
import zipfile
import zipstream
from collections import OrderedDict
from django.contrib import messages
from django.c... | mit |
pratapvardhan/pandas | pandas/tests/indexes/interval/test_interval.py | 1 | 40846 | from __future__ import division
import pytest
import numpy as np
from pandas import (
Interval, IntervalIndex, Index, isna, notna, interval_range, Timestamp,
Timedelta, date_range, timedelta_range)
from pandas.compat import lzip
import pandas.core.common as com
from pandas.tests.indexes.common import Base
impo... | bsd-3-clause |
Ciaran1981/geospatial-learn | geospatial_learn/raster.py | 1 | 57521 |
# -*- coding: utf-8 -*-
"""
The raster module.
Description
-----------
A series of tools for the manipulation of geospatial imagery/rasters such as
masking or raster algebraic type functions and the conversion of Sentinel 2
data to gdal compatible formats.
"""
import gdal, ogr, osr
import os
import numpy as np... | gpl-3.0 |
leylabmpi/pyTecanFluent | pyTecanFluent/Tn5.py | 1 | 30253 | from __future__ import print_function
# import
## batteries
import os
import sys
import argparse
import functools
from itertools import product,cycle
## 3rd party
import numpy as np
import pandas as pd
## package
from pyTecanFluent import Utils
from pyTecanFluent import Fluent
from pyTecanFluent import Labware
from pyT... | mit |
bkaiser94/red_cam_pipeline | diagnostics.py | 1 | 37373 | # -*- coding: utf-8 -*-
"""
Diagnostic Plots for Pipeline
Author: Patrick O'Brien
Date last updated: February 2017
"""
# Import statements
from glob import glob
import os
import numpy as np
from matplotlib.backends.backend_pdf import PdfPages
import matplotlib.pyplot as plt
from PyPDF2 import PdfFileMerger
import panda... | mit |
cloud-fan/spark | python/pyspark/pandas/indexes/multi.py | 1 | 41886 | #
# 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 |
biocyberman/bcbio-nextgen | bcbio/install.py | 1 | 33701 | """Handle installation and updates of bcbio-nextgen, third party software and data.
Enables automated installation tool and in-place updates to install additional
data and software.
"""
from __future__ import print_function
import argparse
import collections
import contextlib
import datetime
import dateutil
from distu... | mit |
ColumbiaCMB/kid_readout | kid_readout/analysis/noise_measurement.py | 1 | 34439 | import numpy as np
import pandas as pd
import matplotlib
from kid_readout.measurement.io import readoutnc
#matplotlib.use('agg')
#matplotlib.rcParams['mathtext.fontset'] = 'stix'
#matplotlib.rcParams['font.size'] = 16.0
from matplotlib import pyplot as plt
from mpl_toolkits.axes_grid1.inset_locator import inset_axes... | bsd-2-clause |
grlee77/numpy | numpy/lib/function_base.py | 1 | 158779 | import collections.abc
import functools
import re
import sys
import warnings
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import transpose
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarray, asanyarray, empty,
ndarray, around, floor, ceil, take, dot, where,... | bsd-3-clause |
carolFrohlich/nipype | nipype/pipeline/engine/utils.py | 1 | 51555 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""Utility routines for workflow graphs
"""
from __future__ import print_function, division, unicode_literals, absolute_import
from builtins import str, open, m... | bsd-3-clause |
Garrett-R/scikit-learn | sklearn/svm/classes.py | 1 | 30327 | import numpy as np
from .base import _fit_liblinear, BaseSVC, BaseLibSVM
from ..base import BaseEstimator, RegressorMixin
from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin
from ..feature_selection.from_model import _LearntSelectorMixin
from ..utils import check_array, check_X_y
class LinearSVC(B... | bsd-3-clause |
dricciardelli/vae2vec | capt_gen_aux_e2o.py | 1 | 41104 | # -*- coding: utf-8 -*-
import math
import os
import tensorflow as tf
import numpy as np
import pandas as pd
import pickle
import pickle as pkl
import cv2
import skimage
import random
import tensorflow.python.platform
from tensorflow.python.ops import rnn
from keras.preprocessing import sequence
from collections import... | mit |
ganong123/HARK | ConsumptionSaving/ConsAggShockModel.py | 1 | 31792 | '''
Consumption-saving models with aggregate productivity shocks as well as idiosyn-
cratic income shocks. Currently only contains one microeconomic model with a
basic solver. Also includes a subclass of Market called CobbDouglas economy,
used for solving "macroeconomic" models with aggregate shocks.
'''
import sys
... | apache-2.0 |
LoadedCoders/iHear | iHear-Py/pyAudioAnalysis/audioFeatureExtraction.py | 1 | 31203 | import time
import os
import glob
import math
import numpy
from scipy.fftpack import fft
from scipy.fftpack.realtransforms import dct
import matplotlib.pyplot as plt
from scipy.signal import lfilter
from scikits.talkbox import lpc
import audioBasicIO
import utilities
eps = 0.00000001
""" Time-domain audio features ... | mit |
dpinney/omf | omf/models/smartSwitching.py | 1 | 51679 | import json, os, tempfile, shutil, csv, math, itertools, base64, re, datetime, platform
from os.path import join as pJoin
import pandas as pd
import numpy as np
import scipy.stats as stats
import plotly as py
import plotly.graph_objs as go
from plotly.tools import make_subplots
import networkx as nx
import matplotlib
... | gpl-2.0 |
vansky/meg_playground | notebooks/exported/Topomap_real.py | 1 | 30562 | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# Imports
# =======
# <codecell>
#disable autosave functionality;
#This script is taxing enough, and autosaving tends to push it over the edge
# plus, autosaving seems to zero out the file before restoring it from the backup
# this means an autosav... | gpl-2.0 |
caseyjlaw/vlart | realfast/controllers.py | 1 | 43035 | from __future__ import print_function, division, absolute_import#, unicode_literals # not casa compatible
from builtins import bytes, dict, object, range, map, input#, str # not casa compatible
from future.utils import itervalues, viewitems, iteritems, listvalues, listitems
from io import open
import pickle
import os.... | bsd-3-clause |
boada/astlib_dev | astLib/astImages.py | 1 | 50200 | """module for simple .fits image tasks (rotation, clipping out sections, making .pngs etc.)
(c) 2007-2014 Matt Hilton
U{http://astlib.sourceforge.net}
Some routines in this module will fail if, e.g., asked to clip a section from a
.fits image at a position not found within the image (as determined using the
WCS). Wh... | lgpl-2.1 |
jreback/pandas | pandas/core/groupby/generic.py | 1 | 64670 | """
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 |
cloudera/ibis | ibis/backends/pandas/execution/generic.py | 1 | 35498 | """Execution rules for generic ibis operations."""
import collections
import datetime
import decimal
import functools
import math
import numbers
import operator
from collections.abc import Sized
from typing import Optional
import numpy as np
import pandas as pd
import toolz
from pandas.api.types import DatetimeTZDtyp... | apache-2.0 |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/tests/series/test_analytics.py | 1 | 67159 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from itertools import product
from distutils.version import LooseVersion
import nose
import random
from numpy import nan
import numpy as np
import pandas as pd
from pandas import (Series, DataFrame, isnull, notnull, bdate_range,
date_range, _np_ve... | mit |
gsnyder206/mock-surveys | CodeProject/5_Postprocess/hudfimagescript.py | 1 | 34889 |
####
#### Name: hudfimagescript.py
#### Author: Greg Snyder gsnyder@stsci.edu
#### Purpose: The final step. Converts output of add_all_broadband_flux.py into PDF image files.
#### Disclaimer: This code is provided AS-IS with absolutely NO warranty.
#### It is largely meant as a guide rather than ide... | mit |
bmazin/SDR | DataReadout/ChannelizerControls/channelizerSnap.py | 1 | 46241 | import sys, os, random, math, array, fractions
from PyQt4.QtCore import *
from PyQt4.QtGui import *
import socket
import matplotlib, corr, time, struct, numpy
from bitstring import BitArray
import matplotlib.pyplot as mpl
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from matp... | gpl-2.0 |
MattNolanLab/ei-attractor | noisefigs/noisefigs/plotters/grids.py | 1 | 63679 | '''Figure plotters for grid field-related data.
.. currentmodule:: noisefigs.plotters.grids
Classes
-------
.. autosummary::
GridSweepsPlotter
GenericGridSweepsPlotter
IPCGridSweepsPlotter
IPCScatterPlotter
IPCHistogramsPlotter
IPCExamplePlotter
IPCExampleColorbarPlotter
GridExamples... | gpl-3.0 |
mrgloom/menpofit | menpofit/visualize/widgets/base.py | 1 | 127304 | import numpy as np
from collections import OrderedDict
import matplotlib.pyplot as plt
from matplotlib import collections as mc
import IPython.html.widgets as ipywidgets
import IPython.display as ipydisplay
from menpo.visualize.widgets import (RendererOptionsWidget,
ChannelOptions... | bsd-3-clause |
healpy/healpy | healpy/projaxes.py | 1 | 44011 | #
# This file is part of Healpy.
#
# Healpy is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Healpy is distributed in the hope... | gpl-2.0 |
markgw/jazzparser | lib/nltk/probability.py | 1 | 87458 | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Probability and Statistics
#
# Copyright (C) 2001-2010 NLTK Project
# Author: Edward Loper <edloper@gradient.cis.upenn.edu>
# Steven Bird <sb@csse.unimelb.edu.au> (additions)
# Trevor Cohn <tacohn@cs.mu.oz.au> (additions)
# Peter Ljunglöf <pete... | gpl-3.0 |
jniediek/mne-python | mne/viz/_3d.py | 3 | 43523 | """Functions to make 3D plots with M/EEG data
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# ... | bsd-3-clause |
zfrenchee/pandas | pandas/tests/indexes/period/test_ops.py | 1 | 37592 | import pytest
import numpy as np
import pandas as pd
import pandas._libs.tslib as tslib
import pandas.util.testing as tm
import pandas.core.indexes.period as period
from pandas import (DatetimeIndex, PeriodIndex, period_range, Series, Period,
_np_version_under1p10, Index)
from pandas.tests.test_b... | bsd-3-clause |
BiaDarkia/scikit-learn | sklearn/linear_model/tests/test_logistic.py | 1 | 50127 | import numpy as np
import scipy.sparse as sp
from scipy import linalg, optimize, sparse
from sklearn.datasets import load_iris, make_classification
from sklearn.metrics import log_loss
from sklearn.model_selection import StratifiedKFold
from sklearn.preprocessing import LabelEncoder
from sklearn.utils import compute_cl... | bsd-3-clause |
mtustin-handy/airflow | airflow/www/views.py | 1 | 74575 | import sys
import os
import socket
from functools import wraps
from datetime import datetime, timedelta
import dateutil.parser
import copy
from itertools import chain, product
from past.utils import old_div
from past.builtins import basestring
import inspect
import traceback
import sqlalchemy as sqla
from sqlalche... | apache-2.0 |
cjbrasher/LipidFinder | LipidFinder/Configuration/LFParametersGUI.py | 1 | 38609 | # Copyright (c) 2019 J. Alvarez-Jarreta and C.J. Brasher
#
# This file is part of the LipidFinder software tool and governed by the
# 'MIT License'. Please see the LICENSE file that should have been
# included as part of this software.
"""Graphical User Interface (GUI) to manage the parameters' collection.
"""
from co... | mit |
clarkfitzg/xray | xray/test/test_dataset.py | 1 | 84290 | from copy import copy, deepcopy
from textwrap import dedent
try:
import cPickle as pickle
except ImportError:
import pickle
try:
import dask.array as da
except ImportError:
pass
import numpy as np
import pandas as pd
from xray import (align, concat, conventions, backends, Dataset, DataArray,
... | apache-2.0 |
JWarmenhoven/seaborn | seaborn/categorical.py | 1 | 135340 | from __future__ import division
from textwrap import dedent
import colorsys
import numpy as np
from scipy import stats
import pandas as pd
from pandas.core.series import remove_na
import matplotlib as mpl
from matplotlib.collections import PatchCollection
import matplotlib.patches as Patches
import matplotlib.pyplot as... | bsd-3-clause |
louispotok/pandas | pandas/tests/scalar/period/test_period.py | 1 | 51460 | import pytest
import pytz
import numpy as np
from datetime import datetime, date, timedelta
import pandas as pd
import pandas.util.testing as tm
import pandas.core.indexes.period as period
from pandas.compat import text_type, iteritems
from pandas.compat.numpy import np_datetime64_compat
from pandas._libs import tsl... | bsd-3-clause |
thilbern/scikit-learn | sklearn/linear_model/tests/test_sgd.py | 2 | 42269 | import pickle
import unittest
import numpy as np
import scipy.sparse as sp
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_greater
from sklearn.utils.testing ... | bsd-3-clause |
sniemi/EuclidVisibleInstrument | sandbox/spotForwardModelGaussianApprox.py | 1 | 72584 | """
CCD Spot Measurements
=====================
Analyse laboratory CCD PSF measurements by forward modelling.
:requires: PyFITS
:requires: NumPy
:requires: SciPy
:requires: astropy
:requires: matplotlib
:requires: VISsim-Python
:requires: emcee
:requires: sklearn
:version: 1.1
:author: Sami-Matias Niemi
:contact: s... | bsd-2-clause |
dsm054/pandas | pandas/tests/series/test_missing.py | 1 | 51794 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from datetime import datetime, timedelta
from distutils.version import LooseVersion
import numpy as np
from numpy import nan
import pytest
import pytz
from pandas._libs.tslib import iNaT
from pandas.compat import range
from pandas.errors import PerformanceWarning
impo... | bsd-3-clause |
pligor/predicting-future-product-prices | 04_time_series_prediction/models/model_27_price_history_mobattrs_date.py | 1 | 44908 | from __future__ import division
import numpy as np
import tensorflow as tf
from cost_functions.huber_loss import huber_loss
from data_providers.data_provider_27_price_history_mobattrs_date import PriceHistoryMobAttrsDateDataProvider
from mylibs.batch_norm import BatchNormer, batchNormWrapper, fully_connected_layer_wit... | agpl-3.0 |
albertfxwang/grizli | grizli/multifit.py | 1 | 180455 | """Functionality for manipulating multiple grism exposures simultaneously
"""
import os
import time
import glob
from collections import OrderedDict
import multiprocessing as mp
import scipy.ndimage as nd
import numpy as np
import matplotlib.pyplot as plt
from astropy.table import Table
import astropy.io.fits as pyfi... | mit |
majetideepak/arrow | python/pyarrow/tests/test_flight.py | 1 | 30859 | # -*- coding: 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 |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/feature_extraction/text.py | 1 | 50262 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gma... | mit |
HaroldMills/Vesper | vesper/mpg_ranch/nfc_coarse_classifier_4_0/train_classifier.py | 1 | 41082 | """
Trains a Vesper coarse clip classifier.
A coarse clip classifier is a binary classifier that tries to determine
whether or not a clip contains a nocturnal flight call.
"""
from pathlib import Path
import bisect
import math
import os
import shutil
import time
from matplotlib.backends.backend_pdf import PdfPages
... | mit |
AmedeoSapio/scapy | scapy/layers/inet.py | 1 | 60349 | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
IPv4 (Internet Protocol v4).
"""
import os,time,struct,re,socket,new
from select import select
from collections impo... | gpl-2.0 |
gfyoung/pandas | pandas/core/dtypes/dtypes.py | 1 | 40043 | """
Define extension dtypes.
"""
from __future__ import annotations
import re
from typing import (
TYPE_CHECKING,
Any,
Dict,
List,
MutableMapping,
Optional,
Tuple,
Type,
Union,
cast,
)
import numpy as np
import pytz
from pandas._libs.interval import Interval
from pandas._libs.... | bsd-3-clause |
joshfuchs/ZZCeti_pipeline | ReduceSpec_tools.py | 1 | 57800 | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 23 20:48:10 2015
@author: jmeza
"""
# ===========================================================================
# Packages ==================================================================
# ===========================================================================
... | mit |
titu1994/Neural-Style-Transfer | MRFNetwork.py | 1 | 43994 | from scipy.misc import imread, imresize, imsave
from scipy.optimize import fmin_l_bfgs_b
from sklearn.feature_extraction.image import reconstruct_from_patches_2d, extract_patches_2d
import scipy.interpolate
import scipy.ndimage
import numpy as np
import time
import os
import argparse
import h5py
from keras.models imp... | apache-2.0 |
MJuddBooth/pandas | pandas/tests/io/test_sql.py | 1 | 99240 | """SQL io tests
The SQL tests are broken down in different classes:
- `PandasSQLTest`: base class with common methods for all test classes
- Tests for the public API (only tests with sqlite3)
- `_TestSQLApi` base class
- `TestSQLApi`: test the public API with sqlalchemy engine
- `TestSQLiteFallbackApi`: t... | bsd-3-clause |
quiltdata/quilt | api/python/quilt3/formats.py | 1 | 38941 | """ formats.py
This module handles binary formats, and conversion to/from objects.
# FormatRegistry Class (singleton)
The `FormatsRegistry` class acts as a global container for registered formats,
and provides a place to register and discover formats.
Formats may be discovered by:
* metadata
* file extensio... | apache-2.0 |
timothydmorton/coolkoi-radii | radiusfn.py | 1 | 102986 | #!/usr/bin/env python
import os,sys,re,os.path,shutil,glob
import pickle
FPPDIR = '%s/FPP' % os.environ['DROPBOX']
RESULTSDIR = '%s/results/coolkois.txt.roboao' % FPPDIR
#RESULTSDIR = '%s/results/coolkois.txt.nocc' % FPPDIR
if sys.path[0] != FPPDIR:
sys.path.insert(0,'%s/src' % FPPDIR)
import numpy as np
try:
... | mit |
borismarin/genesis2.4gamma | Scripts/gpython-tools/netview.py | 1 | 31381 | #!/usr/bin/env python
# Basic wxPython frame to hold a matplotlib figure for plotting
# It defines some basic menu items with bindings to functions to execute
import sys, os, glob, time, math, bz2
# import needed wxPython modules
import wx
import wx.html
import wx.lib.dialogs
from wx.lib.stattext import GenStaticTe... | gpl-2.0 |
fangohr/plot_vtk_matplotlib | plot_vtk_matplotlib/plot_vtk_matplotlib.py | 1 | 39460 | """
plot_vtk_matplotlib library for plotting VTK files in two dimensions
using Matplotlib
Authors: David Cortes, Hans Fangohr
License: BSD, stated in the Github repository:
https://github.com/fangohr/plot_vtk_matplotlib
FUTURE IDEAS::
A 3D plot is also possible to do, but the plt.quiver() function
is ... | bsd-2-clause |
sclc/NAEF | exp_scripts/worker_exp_160614.py | 1 | 33986 | """
Experiment Diary 2016-06-14
"""
import sys
import math
import matplotlib.pyplot as plt
from scipy import io
import numpy as np
from scipy.sparse.linalg import *
from scipy.sparse import *
sys.path.append("../src/")
from worker import Worker
from native_conjugate_gradient import NativeConjugateGradient
from native... | gpl-3.0 |
winklerand/pandas | pandas/tests/series/test_analytics.py | 1 | 67663 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from itertools import product
from distutils.version import LooseVersion
import pytest
from numpy import nan
import numpy as np
import pandas as pd
from pandas import (Series, Categorical, DataFrame, isna, notna,
bdate_range, date_range, _np_versi... | bsd-3-clause |
abhisg/scikit-learn | sklearn/preprocessing/data.py | 1 | 66797 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Eric Martin <eric@ericmart.in>
# Giorgio Patrini <giorgio.patrini@anu.edu.au>
# Lic... | bsd-3-clause |
pslacerda/GromacsWrapper | gromacs/fileformats/xvg.py | 1 | 49600 | # -*- 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 |
NixaSoftware/CVis | venv/lib/python2.7/site-packages/pandas/tests/io/test_html.py | 1 | 34259 | from __future__ import print_function
import glob
import os
import re
import threading
import warnings
# imports needed for Python 3.x but will fail under Python 2.x
try:
from importlib import import_module, reload
except ImportError:
import_module = __import__
from distutils.version import LooseVersion
i... | apache-2.0 |
tkcroat/Augerquant | Development/AES_tk_gui.py | 1 | 32687 | '''
This is intended to be a plot interface w/
1)filenumber/filename text string filter (allowing update of current Augerfile)
2) adjustable charging energy value,
3) comparison of data with plotted line energies (including shift),
entry for element list?
'''
import tkinter as tk
from matplotlib.figure import Fi... | mit |
silly-wacky-3-town-toon/SOURCE-COD | toontown/chat/WhiteListData.py | 1 | 600424 | WHITELIST = [
'',
' pages',
'!',
'"',
'$',
'$1',
'$10',
'$5',
'%',
'%s',
'&',
"'",
"'boss",
"'cause",
"'course",
"'ello",
"'em",
"'n",
"'s",
'(',
'(:',
'(=<',
'(>^.^)>',
')',
'):',
')=<',
'*',
'*scared',
... | apache-2.0 |
thirdwing/SFrame | oss_src/unity/python/sframe/test/test_sframe.py | 1 | 122219 | '''
Copyright (C) 2015 Dato, Inc.
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
'''
# from nose import with_setup
from ..data_structures.sframe import SFrame
from ..data_structures.sarray import SArray
from ..data_structures.ima... | bsd-3-clause |
chrissly31415/amimanera | competition_scripts/plankton.py | 1 | 41682 | #!/usr/bin/python
# coding: utf-8
#http://nbviewer.ipython.org/github/udibr/datasciencebowl/blob/master/141215-tutorial.ipynb
#Import libraries for doing image analysis
#http://www.pyimagesearch.com/2014/09/22/getting-started-deep-learning-python/
#mklhttp://verahill.blogspot.de/2013/06/465-intel-mkl-math-kernel-libr... | lgpl-3.0 |
remi-daigle/MarxanConnect | MarxanConnectGUI.py | 1 | 153544 | # importing wx files
import wx
import wx.lib.agw.aui as aui
import wx.adv
import wx.html2
# import matplotlib
import matplotlib
matplotlib.use('WXAgg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.collections import PatchCollection
#... | mit |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/matplotlib/backends/backend_pgf.py | 1 | 35328 |
import math
import os
import sys
import re
import shutil
import tempfile
import codecs
import atexit
import weakref
import matplotlib as mpl
from matplotlib.backend_bases import RendererBase, GraphicsContextBase,\
FigureManagerBase, FigureCanvasBase
from matplotlib.backends.backend_mixed import MixedModeRenderer... | gpl-3.0 |
plotly/python-api | packages/python/plotly/plotly/graph_objs/sankey/_link.py | 1 | 31636 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Link(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "sankey"
_path_str = "sankey.link"
_valid_props = {
"color",
"colorscaledefault... | mit |
chaluemwut/fbserver | venv/lib/python2.7/site-packages/sklearn/datasets/samples_generator.py | 1 | 52427 | """
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe, J. Nothman
# License: BSD 3 clause
import numbers
import warnings
import numpy as np
from scipy import linalg
from ..preprocessing import MultiLabelBinarizer
from ..utils imp... | apache-2.0 |
bmcage/stickproject | stick/pcm/pcmmodel.py | 1 | 59568 | #
# Copyright (C) 2010 B. Malengier
# Copyright (C) 2010 P.Li
#
# 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.
#
# Th... | gpl-2.0 |
jaeilepp/mne-python | mne/channels/channels.py | 1 | 47704 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Andrew Dykstra <andrew.r.dykstra@gmail.com>
# Teon Brooks <teon.brooks@gmail.com>
#
# License: BSD (3-clause)
import os
... | bsd-3-clause |
jeffseif/dogWalkScore | static/py/dogWalkScore.py | 1 | 39621 | #! /usr/bin/env python3
# Import
from json import loads as JSONLoad
from math import pi as pi,\
sin as Sine,\
cos as Cosine,\
acos as ArcCosine
from os.path import exists as Exists
from pickle import dump as Pickle,\
load as UnPickle
import sys
# M... | bsd-3-clause |
cschenck/blender_sim | fluid_sim_deps/blender-2.69/2.69/python/lib/python3.3/site-packages/numpy/fft/fftpack.py | 1 | 39280 | """
Discrete Fourier Transforms
Routines in this module:
fft(a, n=None, axis=-1)
ifft(a, n=None, axis=-1)
rfft(a, n=None, axis=-1)
irfft(a, n=None, axis=-1)
hfft(a, n=None, axis=-1)
ihfft(a, n=None, axis=-1)
fftn(a, s=None, axes=None)
ifftn(a, s=None, axes=None)
rfftn(a, s=None, axes=None)
irfftn(a, s=None, axes=None... | gpl-3.0 |
MikeDMorgan/proj036 | src/pipeline_project036_timeseries.py | 1 | 98331 | ################################################################################
#
# MRC FGU Computational Genomics Group
#
# $Id: pipeline_snps.py 2870 2010-03-03 10:20:29Z andreas $
#
# Copyright (C) 2009 Andreas Heger
#
# This program is free software; you can redistribute it and/or
# modify it under the t... | mit |
datapythonista/pandas | pandas/tests/series/test_constructors.py | 1 | 64818 | from collections import OrderedDict
from datetime import (
datetime,
timedelta,
)
from dateutil.tz import tzoffset
import numpy as np
import numpy.ma as ma
import pytest
from pandas._libs import (
iNaT,
lib,
)
import pandas.util._test_decorators as td
from pandas.core.dtypes.common import (
is_ca... | bsd-3-clause |
wronk/mne-python | mne/label.py | 1 | 77822 | # 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 |
treycausey/scikit-learn | sklearn/linear_model/coordinate_descent.py | 1 | 66995 | # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Gael Varoquaux <gael.varoquaux@inria.fr>
#
# License: BSD 3 clause
import sys
import warnings
from abc import ABCMeta, abstractmethod
import n... | bsd-3-clause |
m-rossi/matplotlib2tikz | tikzplotlib/_cleanfigure.py | 1 | 42818 | import matplotlib as mpl
import mpl_toolkits
import numpy as np
from matplotlib import pyplot as plt
from mpl_toolkits import mplot3d
STEP_DRAW_STYLES = ["steps-pre", "steps-post", "steps-mid"]
def clean_figure(fig=None, target_resolution=600, scale_precision=1.0):
"""Cleans figure as a preparation for tikz expo... | mit |
samuelshaner/openmc | openmc/mgxs/mgxs.py | 1 | 224815 | from __future__ import division
from collections import OrderedDict
from numbers import Integral
import warnings
import os
import sys
import copy
from abc import ABCMeta
import itertools
from six import add_metaclass, string_types
import numpy as np
import openmc
import openmc.checkvalue as cv
from openmc.tallies im... | mit |
jameslao/QuantSoftwareToolkit | QSTK/qstktools/report.py | 1 | 47947 | '''
(c) 2011, 2012 Georgia Tech Research Corporation
This source code is released under the New BSD license. Please see
http://wiki.quantsoftware.org/index.php?title=QSTK_License
for license details.
Created on Jan 1, 2011
@author:Drew Bratcher
@contact: dbratcher@gatech.edu
@summary: Contains tutorial for backteste... | bsd-3-clause |
effigies/mne-python | mne/tests/test_epochs.py | 1 | 50500 | # Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
import os.path as op
from copy import deepcopy
from nose.tools import (assert_true, assert_equal, assert_raises,
assert_not_equal)
from numpy.... | bsd-3-clause |
Pragmatismo/Pigrow | scripts/gui/test/system_pnl.py | 1 | 87723 | import wx
import wx.lib.scrolledpanel as scrolled
class ctrl_pnl(wx.Panel):
#
#
def __init__( self, parent ):
self.parent = parent
shared_data = parent.shared_data
print(self, dir(parent), " <----")
wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, style = wx.TAB_TRAVERSAL )... | gpl-3.0 |
cbertinato/pandas | pandas/core/strings.py | 1 | 106721 | import codecs
from functools import wraps
import re
import textwrap
from typing import Dict, List
import warnings
import numpy as np
import pandas._libs.lib as lib
import pandas._libs.ops as libops
from pandas.util._decorators import Appender, deprecate_kwarg
from pandas.core.dtypes.common import (
ensure_object... | bsd-3-clause |
roshantha9/AbstractManycoreSim | src/libNoCModel/NoCSchedulabilityAnalysis.py | 1 | 59438 | import pprint
import sys, os
import numpy as np
import time
#import networkx as nx
import simpy
import matplotlib.pyplot as plt
from datetime import timedelta, datetime
## local imports
from SimParams import SimParams
from libDebug.Debug import Debug, DebugCat
from libNoCModel.NoCFlow import FlowType
class NoCSchedu... | gpl-3.0 |
kbrannan/PyHSPF | src/pyhspf/forecasting/forecastplots.py | 2 | 43195 | # HSPF Model Plot Routines
#
# David J. Lampert, PhD, PE
#
# Last updated: 11/16/2013
#
# Purpose: Lots of routines here to generate images for climate data for an HSPF
# model. Descriptions below.
#
from scipy import stats, log10
from matplotlib import pyplot, path, patches, ticker
from matplotlib.... | bsd-3-clause |
Winand/pandas | pandas/tests/series/test_indexing.py | 1 | 88319 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import pytest
from datetime import datetime, timedelta
from numpy import nan
import numpy as np
import pandas as pd
import pandas._libs.index as _index
from pandas.core.dtypes.common import is_integer, is_scalar
from pandas import (Index, Series, DataFrame, isna,
... | bsd-3-clause |
sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/pandas/core/index.py | 1 | 201059 | # pylint: disable=E1101,E1103,W0232
import datetime
import warnings
import operator
from functools import partial
from pandas.compat import range, zip, lrange, lzip, u, reduce, filter, map
from pandas import compat
import numpy as np
from math import ceil
from sys import getsizeof
import pandas.tslib as tslib
import ... | mit |
davidwaroquiers/pymatgen | pymatgen/io/lammps/tests/test_data.py | 1 | 45304 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import gzip
import json
import os
import random
import unittest
from collections import OrderedDict
import numpy as np
import pandas as pd
from pymatgen import yaml
from pymatgen.core.periodic_table import Ele... | mit |
jajcayn/pyclits | pyclits/empirical_model.py | 1 | 40015 | """
created on Aug 21, 2016
@author: Nikola Jajcay, jajcay(at)cs.cas.cz
last update on Sep 22, 2017
Based on Kondrashov D., Kravtsov S., Robertson A. W. and Ghil M., J. Climate, 18, 2005.
"""
import numpy as np
import scipy.stats as sts
from pyclits.functions import cross_correlation, kdensity_estimate
from pyclit... | mit |
openfisca/openfisca-qt | openfisca_qt/scripts/victor/debugger.py | 1 | 40972 | # -*- coding:utf-8 -*-
# Created on 5 juil. 2013
# This file is part of OpenFisca.
# OpenFisca is a socio-fiscal microsimulation software
# Copyright ©2013 Clément Schaff, Mahdi Ben Jelloul
# Licensed under the terms of the GVPLv3 or later license
# (see openfisca/__init__.py for details)
# Author: Victor Le Breton
... | agpl-3.0 |
rs2/pandas | pandas/tests/frame/test_query_eval.py | 1 | 47565 | from io import StringIO
import operator
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, date_range
import pandas._testing as tm
from pandas.core.computation.check import NUMEXPR_INSTALLED
PARSERS = "python", "pan... | bsd-3-clause |
jos4uke/getSeqFlankBlatHit | lib/python2.7/site-packages/pybedtools/test/test1.py | 1 | 47373 | import pybedtools
import os, difflib, sys
from textwrap import dedent
from nose import with_setup
from nose.tools import assert_raises, raises
from pybedtools.helpers import BEDToolsError
from pybedtools import featurefuncs
from tfuncs import setup, teardown, testdir, test_tempdir, unwriteable
def fix(x):
"""
... | gpl-2.0 |
OzFlux/PyFluxPro | scripts/pfp_cpd_mcnew.py | 1 | 37606 | # Python modules
#import datetime
import logging
import os
# 3rd party modules
import numpy as np
import pandas as pd
from scipy import stats
from scipy.interpolate import PchipInterpolator
import xarray as xr
# PFP modules
from scripts import pfp_utils
# get the logger
logger = logging.getLogger("pfp_log")
#--------... | bsd-3-clause |
ryfeus/lambda-packs | Pandas_numpy/source/pandas/core/series.py | 1 | 107829 | """
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.dtypes.common impor... | mit |
sebotic/cdk_pywrapper | cdk_pywrapper/chemlib.py | 1 | 56337 | import requests
import sys
import simplejson
import time
import re
import wikidataintegrator.wdi_core as wdi_core
import wikidataintegrator.wdi_login as wdi_login
import pprint
import pandas as pd
import numpy as np
import os
import chemspipy
# sys.path.append('/home/sebastian/PycharmProjects/cdk_pywrapper/')
from cdk... | agpl-3.0 |
abinit/abinit | fkiss/project.py | 1 | 53462 | # coding: utf-8
"""
"""
from __future__ import print_function, division, unicode_literals, absolute_import
import os
import sys
import io
import re
import time
import shutil
import pickle
import difflib
from collections import OrderedDict, defaultdict
from textwrap import TextWrapper
from pprint import pprint, pforma... | gpl-3.0 |
zohannn/motion_manager | scripts/old/task_2_reaching/var_1/training_task_2_var_1_10k.py | 1 | 299691 | #!/usr/bin/env python3
import sys
import pandas as pd
import sklearn
from sklearn import decomposition
from IPython import display
import seaborn as sns
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
# sklearn
from sklearn.cluster import KMeans
from sklearn import metrics
from sklearn impo... | mit |
rothadamg/UPSITE | LSA_2.py | 1 | 35021 | '''
Created on Oct 8, 2014
@author: agr9
'''
from numpy import zeros
from scipy.linalg import svd
#following needed for TFIDF
from math import log
from numpy import asarray, sum
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import linear_kernel
import math
#=====... | mit |
kdebrab/pandas | pandas/tests/test_resample.py | 1 | 135218 | # pylint: disable=E1101
from warnings import catch_warnings
from datetime import datetime, timedelta
from functools import partial
from textwrap import dedent
from operator import methodcaller
import pytz
import pytest
import dateutil
import numpy as np
from pandas._libs.tslibs.period import IncompatibleFrequency
fr... | bsd-3-clause |
DeviceTestFramework/dtest | dtest/report_gen.py | 1 | 42678 | #
# Copyright (C) 2015 Prevas A/S
#
# This file is part of dtest, an embedded device test framework
#
# dtest 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 2.1 of the License, or (at yo... | gpl-2.0 |
kutakieu/tensorflow-wavenet | test/test_model.py | 1 | 43943 | """Unit tests for the WaveNet that check that it can train on audio data."""
import json
import numpy as np
import sys
import tensorflow as tf
import random
import os
import matplotlib.pyplot as plt
import librosa
from scipy import signal
import pickle
from wavenet import (WaveNetModel, time_to_batch, batch_to_time, c... | mit |
steinnymir/RegAscope2017 | lib/redred.py | 1 | 38349 | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 25 14:11:19 2017
@author: sagustss
"""
#%% Import modules
import numpy as np
import scipy as sp
import scipy.signal as spsignal
import pickle
import csv
import os
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import axes3d, Axes3D
#other
from datetime impo... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.