repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
etraiger/PCWG | configuration.py | 1 | 58413 | import xml.dom.minidom
import dateutil
import os
import pandas as pd
import numpy as np
import datetime
isoDateFormat = "%Y-%m-%dT%H:%M:00"
class XmlBase:
def readDoc(self, path):
return xml.dom.minidom.parse(path)
def getPath(self, node):
return self.getValue(node).replace("\\", os.... | mit |
has2k1/plydata | plydata/cat_tools.py | 1 | 48321 | """
Functions for categoricals
"""
from itertools import chain, product
import numpy as np
import pandas as pd
import pandas.api.types as pdtypes
from pandas.core.algorithms import value_counts
from .utils import last2
__all__ = [
'cat_anon',
'cat_collapse',
'cat_concat',
'cat_drop',
'cat_expand'... | bsd-3-clause |
razeh/mecode | mecode/main.py | 1 | 35815 | """
Mecode
======
### GCode for all
Mecode is designed to simplify GCode generation. It is not a slicer, thus it
can not convert CAD models to 3D printer ready code. It simply provides a
convenient, human-readable layer just above GCode. If you often find
yourself manually writing your own GCode, then mecode is for y... | mit |
ppuggioni/invivoinfer | invivoinfer/infer.py | 1 | 49358 | from __future__ import division
import numpy as np
import logging
np.seterr(divide='warn')
import seaborn as sns
import scipy.stats as pyst
import scipy.signal as ssig
import scipy.optimize as sopt
import matplotlib.pyplot as plt
from sklearn.neighbors import KernelDensity
import os
import json
import mc_functions ... | apache-2.0 |
lucidfrontier45/scikit-learn | sklearn/tree/tree.py | 1 | 31442 | """
This module gathers tree-based methods, including decision, regression and
randomized trees. Single and multi-output problems are both handled.
"""
# Code is originally adapted from MILK: Machine Learning Toolkit
# Copyright (C) 2008-2011, Luis Pedro Coelho <luis@luispedro.org>
# License: MIT. See COPYING.MIT file... | bsd-3-clause |
wlamond/scikit-learn | sklearn/naive_bayes.py | 1 | 30852 | # -*- coding: utf-8 -*-
"""
The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These
are supervised learning methods based on applying Bayes' theorem with strong
(naive) feature independence assumptions.
"""
# Author: Vincent Michel <vincent.michel@inria.fr>
# Minor fixes by Fabian Pedre... | bsd-3-clause |
leggitta/mne-python | mne/tests/test_epochs.py | 1 | 73560 | # 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 |
bobbymckinney/hot_press_monitor | program_hotpress/HotPressGUIv1.py | 1 | 64315 | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Created: 2015-05-29
@author: Bobby McKinney (bobbymckinney@gmail.com)
__Title__ : room temp seebeck
Description:
Comments:
"""
import os
import sys
import wx
from wx.lib.pubsub import pub # For communicating b/w the thread and the GUI
import matplotlib
matplotlib.interac... | gpl-3.0 |
glenwilson/MassProg | plot_page.py | 1 | 37987 | from E2_page import *
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pyplot
def generate_plots(E2_page, level, options):
"""
level is an integer which corresponds to the Ext grading.
"""
pyplot.clf()
sheet = E2_page.get_cohomology(options)[level]
x = []
y = []
boun... | gpl-2.0 |
JarronL/pynrc | pynrc/simul/nghxrg.py | 1 | 42565 | """
NGHXRG - Teledyne HxRG Noise Generator
Modification History:
8-15 April 2015, B.J. Rauscher, NASA/GSFC
- Implement Pierre Ferruit's (ESA/ESTEC)recommendation to use
numpy.fft.rfft and numpy.fft.irfft for faster execution. This saves
about 30% in execution time.
- Clean up setting default values per several s... | mit |
evhub/pyprover | pyprover/__coconut__.py | 1 | 53479 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# type: ignore
# Compiled with Coconut version 1.5.0-post_dev63 [Fish License]
"""Built-in Coconut utilities."""
# Coconut Header: -------------------------------------------------------------
from __future__ import print_function, absolute_import, unicode_literals, div... | apache-2.0 |
bert9bert/statsmodels | statsmodels/discrete/tests/test_discrete.py | 1 | 56701 | """
Tests for discrete models
Notes
-----
DECIMAL_3 is used because it seems that there is a loss of precision
in the Stata *.dta -> *.csv output, NOT the estimator for the Poisson
tests.
"""
# pylint: disable-msg=E1101
from statsmodels.compat.python import range
import os
import numpy as np
from numpy.testing import ... | bsd-3-clause |
bolkedebruin/airflow | airflow/providers/apache/hive/hooks/hive.py | 1 | 39183 | # -*- 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 |
NuGrid/NuGridPy | nugridpy/ppn.py | 1 | 32667 |
#
# NuGridpy - Tools for accessing and visualising NuGrid data.
#
# Copyright 2007 - 2014 by the NuGrid Team.
# All rights reserved. See LICENSE.
#
"""
Analyze and visualize the output of single-zone ppn simulations
Contains:
class xtime: for analyzing x-time.data time evolutions
class abu_vector: for analyzing is... | bsd-3-clause |
MTgeophysics/mtpy | mtpy/gui/modem_plot_response_qt5.py | 1 | 51964 | # -*- coding: utf-8 -*-
"""
ModEM data and response visualization with a gui.
The user will be able to choose from stations within the data to look at
in either impedance or apparent resistivity and phase.
The functionality is quite simple at the moment
JP 2016
"""
#
#===============================================... | gpl-3.0 |
winklerand/pandas | pandas/tests/dtypes/test_inference.py | 1 | 41659 | # -*- coding: utf-8 -*-
"""
These the test the public routines exposed in types/common.py
related to inference and not otherwise tested in types/test_common.py
"""
from warnings import catch_warnings
import collections
import re
from datetime import datetime, date, timedelta, time
from decimal import Decimal
import n... | bsd-3-clause |
Pabsm94/HyperPlume | src/AEM/AEM_plume.py | 1 | 44467 | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 25 19:12:18 2017
@author: pablo
"""
import os
dir_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
import sys
sys.path.append(dir_path) #change to src
from src import np,math,interp1d,Hyperplume,griddata,interp2d,plt
import matpl... | mit |
richardtran415/pymatgen | pymatgen/io/gaussian.py | 2 | 59623 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements input and output processing from Gaussian.
"""
import re
import warnings
import numpy as np
import scipy.constants as cst
from monty.io import zopen
from pymatgen.core.composition ... | mit |
WinawerLab/sco | sco/model_comparison/core.py | 1 | 30958 | # core.py
#
# core code for comparing model performances and visualizing them.
#
# By William F Broderick
import argparse
import warnings
import os
import inspect
import re
import pickle
import numpy as np
from scipy import io as sio
# These requirements are optional as far as SCO is concerned, so they are given slig... | gpl-3.0 |
i-namekawa/TopSideMonitor | multitrack.py | 1 | 88668 | from __future__ import division
import os, sys, subprocess
from glob import glob
import cPickle as pickle
import cv2
import numpy as np
import scipy.io as sio
import matplotlib
import matplotlib.pyplot as plt
import xlrd
import wx
import wx.lib.agw.floatspin as FS
import wx.lib.agw.multidirdialog as MDD
from plottin... | bsd-3-clause |
uvchik/pvlib-python | pvlib/spa.py | 1 | 48713 | """
Calculate the solar position using the NREL SPA algorithm either using
numpy arrays or compiling the code to machine language with numba.
"""
# Contributors:
# Created by Tony Lorenzo (@alorenzo175), Univ. of Arizona, 2015
from __future__ import division
import os
import threading
import warnings
import logging
p... | bsd-3-clause |
gregcaporaso/scikit-bio | skbio/stats/composition.py | 4 | 43580 | r"""
Composition Statistics (:mod:`skbio.stats.composition`)
=======================================================
.. currentmodule:: skbio.stats.composition
This module provides functions for compositional data analysis.
Many 'omics datasets are inherently compositional - meaning that they
are best interpreted as... | bsd-3-clause |
varses/awsch | lantz/drivers/andor/ccd.py | 3 | 74992 | # -*- coding: utf-8 -*-
# pylint: disable=E265
"""
lantz.drivers.andor.ccd
~~~~~~~~~~~~~~~~~~~~~~~
Low level driver wrapping library for CCD and Intensified CCD cameras.
Only functions for iXon EMCCD cameras were tested.
Only tested in Windows OS.
The driver was written for the single-camera ... | bsd-3-clause |
gallantlab/pycortex | cortex/utils.py | 1 | 41804 | """Contain utility functions
"""
import io
import os
import h5py
import copy
import shutil
import binascii
import warnings
import numpy as np
import tarfile
import wget
import tempfile
from distutils.version import LooseVersion
from six import string_types
from importlib import import_module
from .database import db
... | bsd-2-clause |
tbekolay/neurotools | neurotools/signals/analogs.py | 1 | 42598 | """
neurotools.signals.analogs
==================
A collection of functions to create, manipulate and play with analog signals.
Classes
-------
AnalogSignal - object representing an analog signal, with its data. Can be used to do
threshold detection, event triggered averages, ...
AnalogSigna... | gpl-2.0 |
MIT-LCP/wfdb-python | wfdb/processing/qrs.py | 1 | 56053 | import copy
import pdb
import numpy as np
from scipy import signal
from sklearn.preprocessing import normalize
from wfdb.processing.basic import get_filter_gain
from wfdb.processing.peaks import find_local_peaks
from wfdb.io.record import Record
class XQRS(object):
"""
The QRS detector class for the XQRS al... | mit |
jakeown/HGBS_pipeline | make_CMF.py | 1 | 75658 | import numpy
from pylab import *
from scipy.optimize import curve_fit
from scipy.stats.mstats import mode
import matplotlib.pyplot as plt
import astropy
from astropy.io import fits
import pyregion
from numpy import genfromtxt
from astropy import wcs
from astropy import coordinates
import matplotlib.patheffects as Pathe... | mit |
childresslab/MicrocavityExp1 | logic/pulsed_measurement_logic.py | 1 | 55754 | # -*- coding: utf-8 -*-
"""
This file contains the Qudi logic which controls all pulsed measurements.
Qudi is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any ... | gpl-3.0 |
jat255/seaborn | seaborn/axisgrid.py | 1 | 66746 | from __future__ import division
from itertools import product
from distutils.version import LooseVersion
import warnings
from textwrap import dedent
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from six import string_types
from . import utils
from .palettes import c... | bsd-3-clause |
vhte/cefetdiss | histograma.py | 1 | 43366 | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 1 00:33:30 2015
@author: victor
"""
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as stats
#AlimPeq SPEA2
h = [789.0283169096577, 1070.7784075140216, 197.09732042268442, 1068.4364634050626, 983.076513128277, 661.0814728954969, 147.74010801145826, ... | mit |
OpenDrift/opendrift | opendrift/models/openoil.py | 1 | 71049 | # This file is part of OpenDrift.
#
# OpenDrift 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, version 2
#
# OpenDrift is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without ev... | gpl-2.0 |
gritlogic/incubator-airflow | airflow/www/views.py | 1 | 94970 | # -*- 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 |
ryfeus/lambda-packs | Tensorflow_Pandas_Numpy/source3.6/pandas/core/series.py | 1 | 134982 | """
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... | mit |
kevin-intel/scikit-learn | sklearn/feature_selection/_univariate_selection.py | 2 | 31910 | """Univariate features selection."""
# Authors: V. Michel, B. Thirion, G. Varoquaux, A. Gramfort, E. Duchesnay.
# L. Buitinck, A. Joly
# License: BSD 3 clause
import numpy as np
import warnings
from scipy import special, stats
from scipy.sparse import issparse
from ..base import BaseEstimator
from ..prepr... | bsd-3-clause |
imito/odin | odin/preprocessing/signal.py | 1 | 63780 | # -*- coding: utf-8 -*-
# ===========================================================================
# General toolkits for Signal processing in pure python, numpy and scipy
# The code is collected and modified from following library:
# * https://gist.github.com/kastnerkyle/179d6e9a88202ab0a2fe
# License: BSD 3-... | mit |
svalenti/FLOYDS_pipeline | site_code/agg_floyds.py | 1 | 43645 | #!/usr/bin/env python
import os
import matplotlib
matplotlib.use('Agg')
import pyfits
import numpy
import scipy
import pylab
import sys
import math
import logging
import glob
import string
# New style plotting
import plot_xmlguideinfo as plot_guideinfo
from pyfits import open as popen
from numpy import array, abs, wh... | mit |
tseaver/google-cloud-python | bigquery/docs/snippets.py | 1 | 79267 | # Copyright 2016 Google LLC
#
# 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, s... | apache-2.0 |
TomSkelly/MatchAnnot | clusterView.py | 1 | 31300 | #!/usr/bin/env python
# Read annotation file, plot exons for each transcript of a specified gene.
# The plot shows blocks of contiguous exonic sequence, and eliminates
# regions which are not included in any transcript (IsoSeq cluster or
# annotation). in order to devote more plot real estate to the exons.
import os... | gpl-3.0 |
jhamman/xray | xarray/tests/test_dataarray.py | 1 | 114705 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import pandas as pd
import pickle
import pytest
from copy import deepcopy
from textwrap import dedent
from distutils.version import LooseVersion
import xarray as xr
from xarray import (align... | apache-2.0 |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/core/panel.py | 1 | 56228 | """
Contains data structures designed for manipulating panel (3-dimensional) data
"""
# pylint: disable=E1103,W0231,W0212,W0621
from __future__ import division
import warnings
import numpy as np
import pandas.computation.expressions as expressions
import pandas.core.common as com
import pandas.core.ops as ops
import... | mit |
chrsrds/scikit-learn | sklearn/linear_model/ridge.py | 1 | 71693 | """
Ridge regression
"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com>
# Fabian Pedregosa <fabian@fseoane.net>
# Michael Eickenberg <michael.eickenberg@nsup.org>
# License: BSD 3 clause
from abc import ABCMeta, abstractmethod
impor... | bsd-3-clause |
wmvanvliet/mne-python | mne/tests/test_epochs.py | 1 | 143273 | # -*- coding: utf-8 -*-
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Stefan Appelhoff <stefan.appelhoff@mailbox.org>
#
# License: BSD (3-clause)
from copy import deepcopy
from distutils.version import LooseVersion
from functools import partial... | bsd-3-clause |
USCLiquidPropulsionLaboratory/Engine-sizing-snake | Magnum_Ground_v4.py | 1 | 62239 | ## LOX-IPA sim
#@ Author Juha Nieminen
#import sys
#sys.path.insert(0, '/Users/juhanieminen/Documents/adamrocket')
import RocketComponents as rc
from physical_constants import poise, inches, Runiv, gallons, lbm, \
gearth, atm, psi, lbf
from numpy import pi, linspace, cos, radians, sqrt, exp, log, array, ... | mit |
cider-team-mercury/mercury | build_planet.py | 1 | 33594 | """
Given a model for different homogeneous layers,
and an equation of state, we would like to
come up with density-pressure-gravity curves
for the planet. We need to solve Poisson's
equation for gravity, The hydrostatic equation
for pressure, and the equation of state for
density. These are all interrelated, so... | gpl-2.0 |
pyramania/scipy | scipy/special/add_newdocs.py | 2 | 157610 | # 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... | bsd-3-clause |
RJT1990/pyflux | pyflux/gas/gasllm.py | 1 | 36506 | import sys
if sys.version_info < (3,):
range = xrange
import numpy as np
import pandas as pd
import scipy.stats as ss
import scipy.special as sp
from .. import families as fam
from .. import tsm as tsm
from .. import data_check as dc
from .gas_core_recursions import gas_llev_recursion
class GASLLEV(tsm.TSM):
... | bsd-3-clause |
ADicksonLab/wepy | src/wepy/hdf5.py | 1 | 206591 | # -*- coding: utf-8 -*-
"""Primary wepy simulation database driver and access API using the
HDF5 format.
The HDF5 Format Specification
=============================
As part of the wepy framework this module provides a fully-featured
API for creating and accessing data generated in weighted ensemble
simulations run w... | mit |
v-chuqin/simPoem | data_iterator.py | 1 | 53987 | import cPickle as pkl
import gzip
import pandas as pd
import numpy as np
def fopen(filename, mode='r'):
if filename.endswith('.gz'):
return gzip.open(filename, mode)
return open(filename, mode)
def remove_tags_used_char_mem(previous_source_seq, reference,
worddicts_r,
... | gpl-3.0 |
jskDr/jamespy_py3 | kcellml.py | 1 | 30408 | # kcell.py
# python3
import numpy as np
import pandas as pd
from sklearn import model_selection, svm, metrics, cluster, tree, ensemble
from sklearn.preprocessing import MinMaxScaler
from sklearn.decomposition import PCA
import re
import kkeras
import klstm
param_d = {"n_cv_flt": 2, "n_cv_ln": 3, "cv_activation": "r... | mit |
tian-zhou/InstrumentSegmentation | main.py | 1 | 33553 | """
-------------------------------------------------------------------------------
Name: test module
Purpose: test purpose
Idea: how to solve it
Author: Tian Zhou
Email: zhou338 [at] purdue [dot] edu
Created: 19/11/2015
Copyright: (c) Tian Zhou 2015
----------------------------------... | gpl-2.0 |
lofar-astron/PyBDSF | bdsf/psf_vary.py | 1 | 49211 | from __future__ import print_function
from __future__ import absolute_import
import numpy as N
from .image import *
from . import mylogger
from copy import deepcopy as cp
from . import has_pl
if has_pl:
import matplotlib.pyplot as pl
import scipy
import scipy.signal as S
from . import _cbdsm
from . import function... | gpl-3.0 |
pylayers/pylayers | pylayers/measures/mesmimo.py | 1 | 33883 | #!/usr/bin/python
#-*- coding:Utf-8 -*-
from __future__ import print_function
from pylayers.signal.bsignal import *
from pylayers.antprop.aarray import *
from pylayers.util.project import *
from pylayers.antprop.channel import *
from pylayers.gis.readvrml import *
import numpy as np
import matplotlib.pylab as plt
impor... | mit |
NixaSoftware/CVis | venv/lib/python2.7/site-packages/pandas/tests/reshape/test_merge.py | 1 | 65891 | # pylint: disable=E1103
import pytest
from datetime import datetime, date
from numpy.random import randn
from numpy import nan
import numpy as np
import random
import pandas as pd
from pandas.compat import lrange, lzip
from pandas.core.reshape.concat import concat
from pandas.core.reshape.merge import merge, MergeErr... | apache-2.0 |
ray-project/ray | python/ray/experimental/data/tests/test_dataset.py | 1 | 34694 | import os
import random
import shutil
import time
from unittest.mock import patch
import dask.dataframe as dd
import math
import numpy as np
import pandas as pd
import pyarrow as pa
import pyarrow.parquet as pq
import pytest
import ray
from ray.util.dask import ray_dask_get
from ray.tests.conftest import * # noqa
fr... | apache-2.0 |
nasa/mplStyle | mplStyle/types/StyleManager.py | 1 | 33139 | #===========================================================================
#
# Copyright (c) 2014, California Institute of Technology.
# U.S. Government Sponsorship under NASA Contract NAS7-03001 is
# acknowledged. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modific... | bsd-3-clause |
zhengwsh/InplusTrader_Linux | InplusTrader/backtestEngine/api/api_base.py | 1 | 30423 | # -*- coding: utf-8 -*-
#
# Copyright 2017 Ricequant, 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 ... | mit |
CompPhysics/ThesisProjects | doc/MSc/msc_students/former/AudunHansen/Audun/Pythonscripts/CCAlgebra_mk4.py | 1 | 66598 | #from IPython.display import display, Math, Latex
#%matplotlib inline
from numpy import *
from itertools import *
from matplotlib.pyplot import *
from copy import copy
class Combiner():
#Normal ordered operator for cluster algebra (diagrammatic)
def __init__(self, H, T):
self.q_a ... | cc0-1.0 |
alexandrebarachant/mne-python | mne/viz/_3d.py | 2 | 43309 | """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 |
dimarkov/seaborn | seaborn/axisgrid.py | 1 | 67091 | from __future__ import division
from itertools import product
from distutils.version import LooseVersion
import warnings
from textwrap import dedent
import numpy as np
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from six import string_types
from . import utils
from .palettes import c... | bsd-3-clause |
jaeilepp/mne-python | mne/surface.py | 1 | 46597 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Denis A. Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
from distutils.version import LooseVersion
from glob import glob
import os
from os ... | bsd-3-clause |
gusseppe/pymach | pymach/core/improve2.py | 1 | 31902 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Gusseppe Bravo <gbravor@uni.pe>
# License: BSD 3 clause
"""
This module provides ideas for improving some machine learning algorithms.
"""
from __future__ import print_function
from core import tools
import matplotlib.pyplot as plt
import plotly.graph_objs as go
imp... | mit |
jbedorf/tensorflow | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 1 | 61395 | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
vhaasteren/qtip | qtip/constants.py | 1 | 435519 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# vim: tabstop=4:softtabstop=4:shiftwidth=4:expandtab
"""
constants: Some constants, and testing data
"""
QtipBanner = """
+----------------------------------------------+
| PINT |
| ==== ,~~~... | gpl-3.0 |
K3D-tools/K3D-jupyter | k3d/factory.py | 1 | 54990 | # optional dependency
try:
# noinspection PyPackageRequirements
import vtk
# noinspection PyPackageRequirements
from vtk.util import numpy_support as nps
except ImportError:
vtk = None
nps = None
import numpy as np
import six
from .colormaps import matplotlib_color_maps
from .helpers import c... | mit |
gfyoung/pandas | pandas/core/arrays/period.py | 1 | 33520 | from __future__ import annotations
from datetime import timedelta
import operator
from typing import Any, Callable, List, Optional, Sequence, Type, Union
import numpy as np
from pandas._libs.tslibs import (
BaseOffset,
NaT,
NaTType,
Timedelta,
delta_to_nanoseconds,
dt64arr_to_periodarr as c_d... | bsd-3-clause |
DGrady/pandas | pandas/core/ops.py | 2 | 54277 | """
Arithmetic operations for PandasObjects
This is not a public API.
"""
# necessary to enforce truediv in Python 2.X
from __future__ import division
import operator
import warnings
import numpy as np
import pandas as pd
import datetime
from pandas._libs import (lib, index as libindex,
tsli... | bsd-3-clause |
Denvi/FlatCAM | FlatCAMApp.py | 1 | 165178 | import Tkinter
import getopt
import os
import random
import time # Just used for debugging. Double check before removing.
import urllib
import webbrowser
from contextlib import contextmanager
from xml.dom.minidom import parseString as parse_xml_string
########################################
## Imports part of F... | mit |
tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 2s/hmm_crossvalidation_force_motion_10_states_scaled_wrt_all_data.py | 1 | 39761 | # Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | mit |
Karel-van-de-Plassche/QLKNN-develop | qlknn/plots/quickslicer.py | 1 | 37406 | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
import pickle
import os
import time
import re
import gc
import warnings
from itertools import product, chain
from functools import partial
from collections import OrderedDict
from multiprocessing import Pool, cpu_count
import numpy as np
import scipy as sc
import scipy.s... | mit |
plotly/python-api | packages/python/plotly/plotly/graph_objs/_sunburst.py | 1 | 72443 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Sunburst(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "sunburst"
_valid_props = {
"branchvalues",
"count",
"customdata",
"cus... | mit |
gfyoung/pandas | pandas/core/generic.py | 1 | 391949 | from __future__ import annotations
import collections
from datetime import timedelta
import functools
import gc
import json
import operator
import pickle
import re
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
FrozenSet,
Hashable,
List,
Mapping,
Optional,
Sequence,
... | bsd-3-clause |
MJuddBooth/pandas | pandas/tests/plotting/test_datetimelike.py | 1 | 57714 | """ Test cases for time series specific (freq conversion, etc) """
from datetime import date, datetime, time, timedelta
import pickle
import sys
import numpy as np
import pytest
from pandas.compat import PY3, lrange, zip
import pandas.util._test_decorators as td
from pandas import DataFrame, Index, NaT, Series, isna... | bsd-3-clause |
wslihgt/pyfasst | pyfasst/tftransforms/hybridcqt.py | 1 | 58604 | #!/usr/bin/python
# copyright (C) 2011 - 2013 Jean-Louis Durrieu
#
"""Constant-Q transform after the work by C. Scholkhuber and A. Klapuri
2010
Adaptation of the Constant Q transform as presented in
[1] Schoerkhuber, C. and Klapuri, A., \
\"Constant-Q transform toolbox for music processing,\"
submitted to the 7th S... | gpl-2.0 |
DGrady/pandas | pandas/plotting/_core.py | 2 | 98511 | # being a bit too dynamic
# pylint: disable=E1101
from __future__ import division
import warnings
import re
from collections import namedtuple
from distutils.version import LooseVersion
import numpy as np
from pandas.util._decorators import cache_readonly
from pandas.core.base import PandasObject
from pandas.core.dt... | bsd-3-clause |
thunderhoser/GewitterGefahr | gewittergefahr/deep_learning/storm_images.py | 1 | 106487 | """Storm-centered radar images."""
import os
import copy
import glob
import numpy
from scipy.interpolate import interp1d as scipy_interp1d
import netCDF4
from gewittergefahr.gg_io import netcdf_io
from gewittergefahr.gg_io import gridrad_io
from gewittergefahr.gg_io import myrorss_and_mrms_io
from gewittergefahr.gg_ut... | mit |
maurov/xraysloth | sloth/utils/xafsplots.py | 1 | 37829 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Plotting macros for XAFS data sets and fits
===========================================
Function Description of what is plotted
---------------- -----------------------------------------------------
plot_mu() mu(E) for XAFS data group in various for... | bsd-3-clause |
ANTsX/ANTsPy | ants/viz/plot.py | 1 | 86549 | """
Create a static 2D image of a 2D ANTsImage
or a tile of slices from a 3D ANTsImage
TODO:
- add `plot_multichannel` function for plotting multi-channel images
- support for quivers as well
- add `plot_gif` function for making a gif/video or 2D slices across a 3D image
"""
__all__ = [
"plot",
"movie",
... | apache-2.0 |
joseph-torres/spark | python/pyspark/sql/tests.py | 1 | 231543 | # -*- encoding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the ... | apache-2.0 |
TinyOS-Camp/DDEA-DEV | Development/pre_bn_state_processing.py | 2 | 93220 | # -*- 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 |
ep1cman/workload-automation | wlauto/instrumentation/energy_model/__init__.py | 1 | 42085 | # Copyright 2015 ARM Limited
#
# 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 writin... | apache-2.0 |
MarcosCommunity/odoo | comunity_modules/commission_payment/model/commission.py | 1 | 63727 | from openerp.osv import osv, fields
from openerp.addons.decimal_precision import decimal_precision as dp
import datetime
from openerp.tools.translate import _
import logging
_logger = logging.getLogger(__name__)
# Extra Imports
try:
from pandas import DataFrame
except ImportError:
_logger.info('account_curren... | agpl-3.0 |
zorroblue/scikit-learn | sklearn/linear_model/ridge.py | 1 | 53178 | """
Ridge regression
"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com>
# Fabian Pedregosa <fabian@fseoane.net>
# Michael Eickenberg <michael.eickenberg@nsup.org>
# License: BSD 3 clause
from abc import ABCMeta, abstractmethod
impor... | bsd-3-clause |
legacysurvey/legacypipe | py/legacyzpts/legacy_zeropoints.py | 1 | 50839 | from __future__ import division, print_function
# Turn off plotting imports for production
if False:
if __name__ == '__main__':
import matplotlib
matplotlib.use('Agg')
import os
import argparse
import sys
import numpy as np
from scipy.stats import sigmaclip
import fitsio
from astropy.table impor... | bsd-3-clause |
detrout/debian-statsmodels | statsmodels/tsa/vector_ar/var_model.py | 1 | 50350 | """
Vector Autoregression (VAR) processes
References
----------
Lutkepohl (2005) New Introduction to Multiple Time Series Analysis
"""
from __future__ import division, print_function
from statsmodels.compat.python import (range, lrange, string_types, StringIO, iteritems,
cStringIO)
fr... | bsd-3-clause |
UDST/orca | orca/orca.py | 1 | 65311 | # Orca
# Copyright (C) 2016 UrbanSim Inc.
# See full license in LICENSE.
from __future__ import print_function
try:
from inspect import getfullargspec as getargspec
except ImportError:
from inspect import getargspec
import logging
import time
import warnings
from collections import namedtuple
try:
from co... | bsd-3-clause |
bgoli/pysces | pysces/RateChar.py | 1 | 57932 | import os
import numpy,scipy
import scipy.io
import pysces
from pysces.PyscesModelMap import ModelMap
from pylab import figure, close, show, ioff, figtext
from matplotlib.transforms import offset_copy
import io,string
from colorsys import hsv_to_rgb as htor
from matplotlib.figure import Figure as mplfigure
import warni... | bsd-3-clause |
wdm0006/git-pandas | gitpandas/project.py | 1 | 30758 | """
.. module:: projectdirectory
:platform: Unix, Windows
:synopsis: A module for examining collections of git repositories as a whole
.. moduleauthor:: Will McGinnis <will@pedalwrencher.com>
"""
import math
import sys
import os
import numpy as np
import pandas as pd
import requests
import warnings
from git i... | bsd-3-clause |
Agent007/deepchem | deepchem/splits/splitters.py | 1 | 34827 | """
Contains an abstract base class that supports chemically aware data splits.
"""
from __future__ import division
from __future__ import unicode_literals
import random
__author__ = "Bharath Ramsundar, Aneesh Pappu "
__copyright__ = "Copyright 2016, Stanford University"
__license__ = "MIT"
import tempfile
import nu... | mit |
cbertinato/pandas | pandas/tests/io/excel/test_readers.py | 1 | 34704 | from collections import OrderedDict
import contextlib
from datetime import datetime, time
from functools import partial
import os
import warnings
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series
import pandas.util.t... | bsd-3-clause |
amitsandhel/PA273-Potentiostat-Software | test/New folder/test_graphclass.py | 1 | 32035 | #!/usr/bin/python
# encoding: utf-8
#test_graphclass.py
import sys
import os
import unittest
import time
import timeit
import logging
import random
import matplotlib.pyplot as plt
from numpy import *
from datetime import datetime
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
i... | gpl-3.0 |
ihmeuw/vivarium | src/vivarium/framework/randomness.py | 1 | 30979 | """
==============================
Random Numbers in ``vivarium``
==============================
This module contains classes and functions supporting common random numbers.
Vivarium has some peculiar needs around randomness. We need to be totally
consistent between branches in a comparison. For example, if a simulan... | gpl-3.0 |
crawfordsm/pyspectrograph | PySpectrograph/Identify/InterIdentify.py | 1 | 30774 | # ############################# LICENSE ###############################
# Copyright (c) 2009, South African Astronomical Observatory (SAAO) #
# All rights reserved. #
# #
# Redistributio... | bsd-3-clause |
dnjohnstone/hyperspy | hyperspy/signal.py | 1 | 218751 | # -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 |
BoldingBruggeman/gotm | gui.py/xmlplot/plot.py | 1 | 107640 | import math,os.path,xml.dom.minidom
import matplotlib, matplotlib.colors, matplotlib.dates, matplotlib.font_manager, matplotlib.ticker
import numpy
import xmlstore.xmlstore,xmlstore.util,common,expressions
class BaseExporter:
@classmethod
def isCompatible(figure):
return True
@classmethod
de... | gpl-2.0 |
cedrick-f/pySyLiC | src/calcul.py | 1 | 80883 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
##This file is part of PySylic
#############################################################################
#############################################################################
## ##
## ... | gpl-3.0 |
guo-xuan/Sipros-Ensemble | Scripts/sipros_ensemble_filtering.py | 1 | 80064 | '''
Created on Sep 7, 2016
@author: xgo
'''
import getopt, sys, os
import numpy as np
import csv
import math
import re
try:
from sets import Set
except ImportError:
pass
from datetime import datetime, date, time
from collections import namedtuple
from sklearn import linear_model
from sklearn import preproce... | gpl-3.0 |
ilario/PyPV | mainwindow.py | 1 | 34259 | # PyPV
#
# Copyright (C) 2015 Daniel Fernandez Pinto
# 2015-2017 Ilario Gelmetti <iochesonome@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3... | gpl-3.0 |
TariqAHassan/BioVida | biovida/images/_unify_images_against_other_biovida_apis.py | 1 | 33775 | # coding: utf-8
"""
Tools to Unify Image Data Against Other BioVida APIs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
# Note: To use these tools, see ``biovida.unify_domains.unify_against_images()``
import numpy as np
import pandas as pd
from copy import deepcopy
from collections import defaultdi... | bsd-3-clause |
shoyer/numpy | numpy/lib/histograms.py | 1 | 39420 | """
Histogram-related functions
"""
from __future__ import division, absolute_import, print_function
import functools
import operator
import warnings
import numpy as np
from numpy.compat.py3k import basestring
from numpy.core import overrides
__all__ = ['histogram', 'histogramdd', 'histogram_bin_edges']
array_funct... | bsd-3-clause |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/pandas/tseries/tests/test_plotting.py | 1 | 33078 | from datetime import datetime, timedelta, date, time
import nose
from pandas.compat import lrange, zip
import numpy as np
from numpy.testing.decorators import slow
from numpy.testing import assert_array_equal
from pandas import Index, Series, DataFrame
from pandas.tseries.index import date_range, bdate_range
from p... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.