repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
AutonomyLab/deep_intent | code/autoencoder_model/scripts/splitattn_classifier.py | 1 | 41742 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from matplotlib.pyplot import axes
import hickle as hkl
import numpy as np
np.random.seed(2 ** 10)
import tensorflow as tf
import itertools
from keras import backend as K
K.set_image_dim_ordering('tf')
import... | bsd-3-clause |
skulumani/asteroid_dumbbell | visualization/plotting.py | 1 | 57257 | from __future__ import absolute_import, division, print_function, unicode_literals
import dynamics.asteroid as asteroid
from dynamics import controller
import kinematics.attitude as attitude
import eom_comparison.transform as eom_transform
import numpy as np
import scipy as sp
import pdb
import os
import matplotlib a... | gpl-3.0 |
JulienPeloton/lenscov | src/lib_spectra.py | 1 | 32367 | # Copyright (C) 2016 Peloton
#########################
# Library for spectra
# author: julien@sussex
# Date of creation: 10/2015
# See 1611.01446
#########################
import glob, copy, sys, os
import numpy as np
import lib_covariances
from loop_lensing import loop_lensing
from util import binner, split_block_n0
... | gpl-3.0 |
nisse3000/pymatgen | pymatgen/analysis/graphs.py | 1 | 80226 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
import warnings
import subprocess
import numpy as np
import os.path
import copy
from pymatgen.core import Structure, Lattice, PeriodicSite, Molecule
from pyma... | mit |
dmnfarrell/epitopepredict | epitopepredict/base.py | 1 | 73312 | #!/usr/bin/env python
"""
MHC prediction base module for core classes
Created November 2013
Copyright (C) Damien Farrell
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... | apache-2.0 |
aleju/CharVectorizer | CharVectorizer.py | 1 | 37801 | # -*- coding: utf-8 -*-
"""A class to turn a list of strings into concatenated one hot vectors of
each char."""
import re
import numpy as np
# Uncomment this line and the respective code in the method _one_hot_matrix()
# to use scikit's OneHotEncoder for the conversion into one hot vectors.
# There seems to be no perf... | mit |
araichev/gtfstk | gtfstk/miscellany.py | 1 | 37028 | """
Functions about miscellany.
"""
from collections import OrderedDict
import math
from typing import List, Optional, Tuple, TYPE_CHECKING
import pandas as pd
from pandas import DataFrame
import numpy as np
import shapely.geometry as sg
from shapely.geometry import Polygon, LineString
from . import helpers as hp
fro... | mit |
apbard/scipy | scipy/cluster/tests/test_hierarchy.py | 1 | 40864 | #
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this... | bsd-3-clause |
anntzer/scikit-learn | sklearn/pipeline.py | 2 | 39413 | """
The :mod:`sklearn.pipeline` module implements utilities to build a composite
estimator, as a chain of transforms and estimators.
"""
# Author: Edouard Duchesnay
# Gael Varoquaux
# Virgile Fritsch
# Alexandre Gramfort
# Lars Buitinck
# License: BSD
from collections import defaultdict... | bsd-3-clause |
MDAnalysis/mdanalysis | package/MDAnalysis/analysis/waterdynamics.py | 1 | 41156 | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- https://www.mdanalysis.org
# Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under t... | gpl-2.0 |
steve-federowicz/om | om/util.py | 1 | 31138 | from om import base, settings
from om.data import *
from om.components import *
from IPython.display import HTML
from scipy.spatial.distance import pdist, squareform
from scipy.cluster.hierarchy import linkage, dendrogram
from IPython.display import display
from IPython.html import widgets as W
from IPython.utils imp... | mit |
puruckertom/ubertool | ubertool/terrplant/tests/test_terrplant_unittest.py | 1 | 43992 | import datetime
import inspect
import numpy.testing as npt
import os.path
import pandas as pd
import pandas.util.testing as pdt
import sys
from tabulate import tabulate
import unittest
# #find parent directory and import model
# parentddir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
# sy... | unlicense |
gfyoung/pandas | pandas/tests/frame/indexing/test_indexing.py | 1 | 59264 | from datetime import date, datetime, time, timedelta
import re
import numpy as np
import pytest
from pandas._libs import iNaT
from pandas.core.dtypes.common import is_integer
import pandas as pd
from pandas import (
DataFrame,
DatetimeIndex,
Index,
MultiIndex,
Series,
Timestamp,
date_ran... | bsd-3-clause |
stscieisenhamer/ginga | ginga/cmap.py | 1 | 613545 | #
# cmap.py -- color maps for fits viewing
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
from __future__ import absolute_import, print_function
from .util import six
from .util.six.moves import map, zip
import numpy
__all__ = ['ColorMap', 'add_cmap', '... | bsd-3-clause |
dsavransky/EXOSIMS | EXOSIMS/util/plotC0vsT0andCvsT.py | 1 | 40229 | """
Purpose: To Plot C_0 vs T_0 and C_actual vs T_actual
Written by: Dean Keithly on 5/17/2018
"""
"""Example 1
I have 1000 pkl files in /home/dean/Documents/SIOSlab/Dean17Apr18RS01C01fZ01OB01PP01SU01/run146279583107.pkl and
1qty outspec file in /home/dean/Documents/SIOSlab/Dean17Apr18RS01C01fZ01OB01PP01SU01/outspec.js... | bsd-3-clause |
espenhgn/ViSAPy | ViSAPy/plottestdata.py | 1 | 100244 | #!/usr/bin/env python
'''Class definition for plotting benchmark data generated with ViSAPy'''
import os
if not os.environ.has_key('DISPLAY'):
import matplotlib
matplotlib.use('Agg')
import numpy as np
import matplotlib.pyplot as plt
from ViSAPy import GDF
from mpi4py import MPI
import spike_sort
import h5py
i... | gpl-2.0 |
kdebrab/pandas | pandas/tests/groupby/test_grouping.py | 1 | 31835 | # -*- coding: utf-8 -*-
""" test where we are determining what we are grouping, or getting groups """
import pytest
from warnings import catch_warnings
from pandas import (date_range, Timestamp,
Index, MultiIndex, DataFrame, Series, CategoricalIndex)
from pandas.util.testing import (assert_panel_... | bsd-3-clause |
DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/signal/fir_filter_design.py | 1 | 36250 | # -*- coding: utf-8 -*-
"""Functions for FIR filter design."""
from __future__ import division, print_function, absolute_import
import warnings
from math import ceil, log
import numpy as np
from numpy.fft import irfft, fft, ifft
from scipy._lib.six import string_types
from scipy.linalg import toeplitz, hankel, pinv
f... | mit |
cbertinato/pandas | pandas/io/excel/_base.py | 1 | 30027 | import abc
from collections import OrderedDict
from datetime import date, datetime, timedelta
from io import BytesIO
import os
from textwrap import fill
from urllib.request import urlopen
from pandas._config import config
from pandas.errors import EmptyDataError
from pandas.util._decorators import Appender, deprecate... | bsd-3-clause |
gfyoung/scipy | scipy/signal/ltisys.py | 3 | 122863 | """
ltisys -- a collection of classes and functions for modeling linear
time invariant systems.
"""
from __future__ import division, print_function, absolute_import
#
# Author: Travis Oliphant 2001
#
# Feb 2010: Warren Weckesser
# Rewrote lsim2 and added impulse2.
# Apr 2011: Jeffrey Armstrong <jeff@approximatrix.co... | bsd-3-clause |
toobaz/pandas | pandas/core/indexes/interval.py | 1 | 50076 | """ define the IntervalIndex """
from operator import le, lt
import textwrap
from typing import Any, Optional, Tuple, Union
import warnings
import numpy as np
from pandas._config import get_option
from pandas._libs import Timedelta, Timestamp, lib
from pandas._libs.interval import Interval, IntervalMixin, IntervalTr... | bsd-3-clause |
semio/zipline | zipline/algorithm.py | 1 | 46758 | #
# Copyright 2014 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 |
davidovitch/freeyaw-ojf-wt-tests | plotting.py | 1 | 87768 | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 23 11:22:50 2011
@author: dave
"""
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
# standard library
import math
import pickle
# external libraries
import numpy as np
import scipy
import matplotlib as mpl... | gpl-3.0 |
edouard-harris/cegana | CEGANA_1.2.py | 1 | 37774 | # CEll Growth ANAlyzer (CEGANA) 1.2
# Copyright (c) 2015 Edouard A. Harris.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any lat... | gpl-3.0 |
danielhrisca/asammdf | asammdf/gui/widgets/mdi_area.py | 1 | 72319 | # -*- coding: utf-8 -*-
from functools import partial
import json
import os
import re
from traceback import format_exc
import sys
from natsort import natsorted
import numpy as np
import pandas as pd
from PyQt5 import QtCore, QtGui, QtWidgets
from ...blocks import v4_constants as v4c
from ...blocks.utils import csv_by... | lgpl-3.0 |
dssg/wikienergy | disaggregator/build/pandas/pandas/core/categorical.py | 1 | 57650 | # pylint: disable=E1101,W0232
import numpy as np
from warnings import warn
import types
from pandas import compat, lib
from pandas.compat import u
from pandas.core.algorithms import factorize
from pandas.core.base import PandasObject, PandasDelegate
from pandas.core.index import Index, _ensure_index
from pandas.core... | mit |
zimingd/synapsePythonClient | synapseclient/table.py | 1 | 70603 | """
******
Tables
******
Synapse Tables enable storage of tabular data in Synapse in a form that can be
queried using a SQL-like query language.
A table has a :py:class:`Schema` and holds a set of rows conforming to
that schema.
A :py:class:`Schema` defines a series of :py:class:`Column` of the following
types: STRI... | apache-2.0 |
HCsoft-RD/shaolin | shaolin/dashboards/colormap.py | 1 | 39771 | # -*- coding: utf-8 -*-
"""
Created on Wed May 25 12:38:54 2016
@author: Guillem Duran. Property of HCSOFT
"""
from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.colors import LinearSegmentedColormap
from matplotlib.colors import ListedColormap
from seaborn.palettes impo... | agpl-3.0 |
pravsripad/mne-python | mne/viz/_figure.py | 2 | 113706 | # -*- 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 |
carefree0910/MachineLearning | NN/PyTorch/Basic/Networks.py | 1 | 31767 | import os
import cv2
import time
import pickle
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from NN.PyTorch.Basic.Layers import *
from NN.Basic.Networks import NNConfig, NNVerbose
from NN.PyTorch.Optimizers import OptFactory
from Util.Util import VisUtil
from... | mit |
carlthome/librosa | librosa/util/utils.py | 1 | 59772 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility functions"""
import scipy.ndimage
import scipy.sparse
import numpy as np
import numba
from numpy.lib.stride_tricks import as_strided
from .._cache import cache
from .exceptions import ParameterError
from .decorators import deprecated
# Constrain STFT block si... | isc |
ARudiuk/mne-python | mne/surface.py | 1 | 41310 | # 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)
import os
from os import path as op
import sys
from struct import pack
from glob import glob
import numpy as... | bsd-3-clause |
bnaul/scikit-learn | sklearn/model_selection/tests/test_validation.py | 1 | 73866 | """Test the validation module"""
import sys
import warnings
import tempfile
import os
from time import sleep
import pytest
import numpy as np
from scipy.sparse import coo_matrix, csr_matrix
from sklearn.exceptions import FitFailedWarning
from sklearn.model_selection.tests.test_search import FailingClassifier
from s... | bsd-3-clause |
TomAugspurger/pandas | pandas/tests/test_nanops.py | 1 | 37968 | from functools import partial
import operator
import warnings
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas.core.dtypes.common import is_integer_dtype
import pandas as pd
from pandas import Series, isna
import pandas._testing as tm
from pandas.core.arrays import DatetimeArra... | bsd-3-clause |
gfyoung/pandas | pandas/io/stata.py | 1 | 125595 | """
Module contains tools for processing Stata files into DataFrames
The StataReader below was originally written by Joe Presbrey as part of PyDTA.
It has been extended and improved by Skipper Seabold from the Statsmodels
project who also developed the StataWriter and was finally added to pandas in
a once again improv... | bsd-3-clause |
YSOVAR/YSOVAR | YSOVAR/atlas.py | 1 | 52453 | # -*- coding: utf-8 -*-
# Copyright (C) 2013 H.M.Guenther & K.Poppenhaeger. See Licence.rst for details.
'''Generate an atlas of YSOVAR lightcurves
This module collects all procedures that are required to make the
atlas. This starts with reading in the csv file from the YSOVAR2
database and includes the calculation of... | gpl-3.0 |
nithyanandan/PRISim | prisim/examples/codes/BispectrumPhase/combine_pol_multiday_closure_PS_analysis.py | 1 | 32485 | import copy
import numpy as NP
import matplotlib.pyplot as PLT
import matplotlib.colors as PLTC
import matplotlib.ticker as PLTick
import yaml, argparse, warnings
import progressbar as PGB
from prisim import bispectrum_phase as BSP
import ipdb as PDB
PLT.switch_backend("TkAgg")
if __name__ == '__main__':
## ... | mit |
jaeilepp/mne-python | mne/decoding/time_gen.py | 1 | 65704 | # Authors: Jean-Remi King <jeanremi.king@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Clement Moutard <clement.moutard@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
import copy
from .base import _set_cv
f... | bsd-3-clause |
ssaeger/scikit-learn | sklearn/model_selection/_split.py | 2 | 57427 | """
The :mod:`sklearn.model_selection._split` module includes classes and
functions to split the data based on a preset strategy.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>,
# Olivier Girsel <olivier.grisel@ensta.org>
# Ragha... | bsd-3-clause |
bkaiser94/red_cam_pipeline | Wavelength_Calibration.py | 1 | 41966 | '''
This is the final wavelength calibration code that implements the
grating equation to calculate the wavelength dispersion.
The input should just be the name of a comparison lamp, taken from argv.
The function depend on some hard coded data, "WaveList" and "Parameters" which
are project spesific.
Written by Je... | mit |
runt18/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/backend_bases.py | 1 | 69786 | """
Abstract base classes define the primitives that renderers and
graphics contexts must implement to serve as a matplotlib backend
:class:`RendererBase`
An abstract base class to handle drawing/rendering operations.
:class:`FigureCanvasBase`
The abstraction layer that separates the
:class:`matplotlib.fi... | agpl-3.0 |
jlustigy/coronagraph | coronagraph/transits.py | 1 | 45323 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Simulate exoplanet transmission and/or emission spectroscopy without
using the coronagraph routines. This uses the same telesope and detector
parameters as the coronagraph model, but does not suppress the star's light.
As a result, stellar photons dominate the noise bud... | mit |
kbrannan/PyHSPF | src/pyhspf/preprocessing/etcalculator.py | 1 | 45754 | # etcalculator.py
#
# David J. Lampert (djlampert@gmail.com)
#
# last updated: 03/28/2015
#
# contains the ETCalculator class that can be used to compute evapotranspiration
# time series from other time series with models including the daily and hourly
# Penman-Monteith Equation and the FAO crop coefficient model.
imp... | bsd-3-clause |
dseredyn/velma_scripts | scripts/door_key_mod.py | 1 | 30622 | #!/usr/bin/env python
# Copyright (c) 2015, Robot Control and Pattern Recognition Group,
# Institute of Control and Computation Engineering
# Warsaw University of Technology
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the ... | bsd-3-clause |
joshmoore/openmicroscopy | components/tools/OmeroWeb/omeroweb/webemdb/views.py | 1 | 39886 | from django.http import HttpResponseRedirect, HttpResponse, Http404
from django.core.urlresolvers import reverse
from django.shortcuts import render_to_response
from django.utils import simplejson
from django.core.servers.basehttp import FileWrapper
from django.conf import settings
from django.core.cache import cache
... | gpl-2.0 |
cython-testbed/pandas | pandas/tests/dtypes/test_inference.py | 1 | 42833 | # -*- 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, simplefilter
import collections
import re
from datetime import datetime, date, timedelta, time
from decimal import De... | bsd-3-clause |
jangorecki/h2o-3 | h2o-py/tests/pyunit_utils/utilsPY.py | 1 | 149810 | 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
try: # works with python 2.7 not 3
from StringIO import StringIO
except: # works with python 3
from io import St... | apache-2.0 |
ABoothInTheWild/baseball-research | Playoff Odds/playoffOdds2017/true2017PlayoffPreds.py | 1 | 43517 | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 05 22:49:05 2018
@author: Alexander
"""
#2017 Preseason Playoff Odds
import heapq
from collections import Counter
import pandas as pd
import numpy as np
from scipy.stats import beta
import os
#read data
os.chdir('C:/Users/abooth/Documents/Python Scripts/... | gpl-3.0 |
sjl767/woo | py/plot.py | 1 | 49071 | # encoding: utf-8
# 2008 © Václav Šmilauer <eudoxos@arcig.cz>
"""
Module containing utility functions for plotting inside woo. Most functionality is exposed through :obj:`woo.core.Plot`, however.
"""
## all exported names
__all__=['live','liveInterval','autozoom','legendAlpha','scientific','scatterMarkerKw']
import... | gpl-2.0 |
nilmtk/nilmtk | nilmtk/legacy/disaggregate/maximum_likelihood_estimation.py | 1 | 31999 | from datetime import datetime
import pandas as pd
import numpy as np
from ...timeframe import merge_timeframes, TimeFrame
from .disaggregator import Disaggregator
from matplotlib import pyplot as plt
from datetime import timedelta
from scipy.stats import poisson, norm
from sklearn import mixture
class MLE(Disaggregat... | apache-2.0 |
MicrosoftGenomics/PySnpTools | pysnptools/snpreader/snpreader.py | 1 | 40556 | import numpy as np
import subprocess, sys
import os.path
from itertools import *
import pandas as pd
import logging
import time
import pysnptools.util as pstutil
from pysnptools.pstreader import PstReader
import warnings
import pysnptools.standardizer as stdizer
try:
from builtins import range
except:
pass
#!!... | apache-2.0 |
naturali/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator.py | 1 | 40068 | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | apache-2.0 |
haphaeu/yoshimi | PandasDataFrame/GumbelFit_opt2.py | 1 | 31698 | # -*- coding: utf-8 -*-
"""
To be used in conjunction with:
NR099910-004-10006 - Repeated lowering, OrcaFlex Gumbel Script
NR099910-004-10001 - Lifting Analysis Methodology - Probabilistic Approach
===============================================================================================
Version 13
Correct... | lgpl-3.0 |
dariomalchiodi/yaplf | yaplf/models/neural/__init__.py | 1 | 32283 |
r"""
Package handling neural models in yaplf
Module :mod:`yaplf.models.neural` contains all the classes handling neural
models in yaplf.
AUTHORS:
- Dario Malchiodi (2010-02-15): initial version
"""
#*****************************************************************************
# Copyright (C) 2010 Dario Malc... | lgpl-3.0 |
chym1009/ANA | tmp.py | 1 | 35180 | # -*- coding: utf-8 -*-
"""
@author: C.X.
@time: created in 2017/7/10 11:23
"""
from __future__ import division, print_function
import sys
import os
import re
from warnings import warn
from itertools import combinations
from functools import reduce
import pandas as pd
import numpy as np
from scipy import linalg
from s... | mit |
NathanYee/ThinkBayes2 | code/thinkbayes2.py | 1 | 75173 | """This file contains code for use with "Think Stats" and
"Think Bayes", both by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
"""This file contains class definitions for:
H... | gpl-2.0 |
ucloud/uai-sdk | examples/tensorflow/train/east/code/icdar.py | 1 | 30836 | import glob
import csv
import cv2
import time
import os
import numpy as np
import scipy.optimize
import matplotlib.pyplot as plt
import matplotlib.patches as Patches
from shapely.geometry import Polygon
import tensorflow as tf
from data_util import GeneratorEnqueuer
from uaitrain.arch.tensorflow import uflag
tf.app.... | apache-2.0 |
Sea-of-BTC/Bitcoin-Trading-Client | main.py | 1 | 42751 | import json
import pandas as pd
import re
import tkinter as tk
from tkinter import ttk
import urllib.request
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.animation as animation
import matplotlib.dates as mdates
from matplotlib.finance import candlestick_ohlc
from matplotlib import pyplot as plt
from mat... | gpl-2.0 |
e-dub/DesOptPy | DesOptPy/OptResultReport.py | 1 | 43051 |
# -*- coding: utf-8 -*-
'''
-------------------------------------------------------------------------------
Title: OptResultReport.py
Units: Unitless
Date: July 9, 2016
Authors: E. J. Wehrle, S. Rudolph, F. Wachter
-------------------------------------------------------------... | lgpl-2.1 |
abouquin/django-megaraetc | etc/views.py | 1 | 78417 | from django.http import HttpResponse
from django.http import HttpResponseRedirect
from django.shortcuts import render, render_to_response
from django.core.urlresolvers import reverse
from .forms import AtmosphericConditionsForm, ObservationalSetupForm
from .forms import TargetForm, InstrumentForm
from .forms import Ou... | gpl-3.0 |
dborgesr/Euplotid | EuplotidDockerImage/applotid.py | 1 | 41846 | #!/usr/bin/env python3
import os
import dash
from dash.dependencies import Input, Output, State
import dash_core_components as dcc
import dash_html_components as html
import plotly.figure_factory as ff
import plotly.graph_objs as go
import pandas as pd
import numpy as np
import subprocess
#from picamera.array import P... | gpl-3.0 |
wittawatj/fsic-test | fsic/indtest.py | 1 | 56608 | """
Module containing many types of independence testing methods.
"""
__author__ = 'wittawat'
from abc import ABCMeta, abstractmethod
from fsic.data import PairedData
import matplotlib.pyplot as plt
import numpy as np
#from numba import jit
import fsic.data as data
import fsic.util as util
import fsic.feature as fea
... | mit |
ShoYamanishi/wailea | util/sample_graph_drawer.py | 1 | 47575 | import sys
import re
from subprocess import call
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.lines as lines
import matplotlib.transforms as mtransforms
import matplotlib.text as mtext
import matplotlib.patches as patches
from matplotlib.patches import Polygon
# Utility class to implement enu... | mit |
bert9bert/statsmodels | statsmodels/tsa/regime_switching/tests/test_markov_autoregression.py | 1 | 40930 | """
Tests for Markov Autoregression models
Author: Chad Fulton
License: BSD-3
"""
from __future__ import division, absolute_import, print_function
import warnings
import os
import numpy as np
import pandas as pd
from statsmodels.tools import add_constant
from statsmodels.tsa.regime_switching import markov_autoregress... | bsd-3-clause |
wxgeo/geophar | wxgeometrie/geolib/polygones.py | 1 | 42714 | # -*- coding: utf-8 -*-
##--------------------------------------#######
# Objets #
##--------------------------------------#######
# WxGeometrie
# Dynamic geometry, graph plotter, and more for french mathematic teachers.
# Copyright (C) 2005-2013 Nicolas Pourcelot
#
# ... | gpl-2.0 |
hetland/xray | xray/conventions.py | 1 | 34691 | from datetime import datetime
import re
import traceback
import warnings
import numpy as np
import pandas as pd
from collections import defaultdict
from pandas.tslib import OutOfBoundsDatetime
from .core import indexing, ops, utils
from .core.formatting import format_timestamp, first_n_items
from .core.variable impor... | apache-2.0 |
sonium0/pymatgen | pymatgen/analysis/diffusion_analyzer.py | 1 | 34246 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
from __future__ import division, unicode_literals
"""
A module to perform diffusion analyses (e.g. calculating diffusivity from
mean square displacements etc.). If you use this module, please consider
citing t... | mit |
leezu/mxnet | python/mxnet/symbol/numpy/_symbol.py | 1 | 291511 | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | apache-2.0 |
felipeband/aterramento | aterramento.py | 1 | 36343 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Felipe Bandeira da Silva
# Fortaleza-CE, 29/06/2013
# felipeband18@gmail.com
from __future__ import division
print 'iniciando...'
import sys
import random
import hashlib
import getpass
import subprocess
import argparse
import codecs
# sys.stdout = codecs.getwriter('cp8... | gpl-2.0 |
dricciardelli/vae2vec | def_def_var.py | 1 | 36348 | ''' Significant lifting from https://jmetzen.github.io/2015-11-27/vae.html '''
import time
import numpy as np
import tensorflow as tf
from tensorflow.python.ops import rnn
import random
import matplotlib.pyplot as plt
import re, string
from sklearn.feature_extraction.text import CountVectorizer
from collections impo... | mit |
louispotok/pandas | pandas/tests/sparse/series/test_series.py | 1 | 55479 | # pylint: disable-msg=E1101,W0612
import operator
from datetime import datetime
import pytest
from numpy import nan
import numpy as np
import pandas as pd
from pandas import (Series, DataFrame, bdate_range,
isna, compat, _np_version_under1p12)
from pandas.tseries.offsets import BDay
import panda... | bsd-3-clause |
jakevdp/altair | altair/vegalite/v3/schema/channels.py | 1 | 262901 | # -*- coding: utf-8 -*-
#
# The contents of this file are automatically written by
# tools/generate_schema_wrapper.py. Do not modify directly.
import six
from . import core
import pandas as pd
from altair.utils.schemapi import Undefined
from altair.utils import parse_shorthand
class FieldChannelMixin(object):
de... | bsd-3-clause |
erh3cq/hyperspy | hyperspy/roi.py | 1 | 50491 | # -*- 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 y... | gpl-3.0 |
mitodl/salt-extensions | extensions/_states/pip_state.py | 1 | 40003 | # -*- coding: utf-8 -*-
# Temporarily adding to work around bug outlined in https://github.com/saltstack/salt/issues/56131
'''
Installation of Python Packages Using pip
=========================================
These states manage system installed python packages. Note that pip must be
installed for these states to be... | bsd-3-clause |
SasView/sasmodels | sasmodels/compare.py | 1 | 61611 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Program to compare models using different compute engines.
This program lets you compare results between OpenCL and DLL versions
of the code and between precision (half, fast, single, double, quad),
where fast precision is single precision using native functions for
tr... | bsd-3-clause |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_funnelarea.py | 1 | 68118 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Funnelarea(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "funnelarea"
_valid_props = {
"aspectratio",
"baseratio",
"customdata",
... | mit |
cwhite1026/Py2PAC | py2pac/AngularCatalog_class.py | 1 | 71654 |
#---------------------------------------------------------------------#
#- This is the file that contains the main class that Py2PAC is -#
#- built around, the AngularCatalog, which holds RAs and Decs and -#
#- does the actual calculations of correlation functions. -#
#------------------------------... | bsd-3-clause |
BiaDarkia/scikit-learn | sklearn/neighbors/tests/test_neighbors.py | 1 | 53000 | from itertools import product
import numpy as np
from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix,
dok_matrix, lil_matrix, issparse)
from sklearn import metrics
from sklearn import neighbors, datasets
from sklearn.exceptions import DataConversionWarning
from sklearn.m... | bsd-3-clause |
scholer/gelutils | gelutils/gelannotator_gui.py | 1 | 48415 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2014-2016 Rasmus Scholer Sorensen, rasmusscholer@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... | gpl-3.0 |
datapythonista/pandas | pandas/tests/groupby/test_grouping.py | 3 | 35887 | """ test where we are determining what we are grouping, or getting groups """
import numpy as np
import pytest
import pandas as pd
from pandas import (
CategoricalIndex,
DataFrame,
Index,
MultiIndex,
Series,
Timestamp,
date_range,
)
import pandas._testing as tm
from pandas.core.groupby.gro... | bsd-3-clause |
mariusvniekerk/ibis | ibis/impala/tests/test_exprs.py | 3 | 47622 | # Copyright 2014 Cloudera Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | apache-2.0 |
jbonaiuto/perceptual-choice-hysteresis | src/python/perceptchoice/model/analysis.py | 1 | 43906 | import os
import math
from brian import second, Parameters, farad, siemens, volt, Hz, amp, ms
import h5py
from matplotlib.mlab import normpdf
from matplotlib.patches import Rectangle
import numpy as np
from scipy.stats import wilcoxon, norm, f_oneway
import matplotlib.pyplot as plt
import pandas as pd
from sklearn.lin... | gpl-3.0 |
wmvanvliet/psychic | psychic/plots.py | 1 | 38696 | #encoding=utf-8
import matplotlib.pyplot as plt
import numpy as np
from .scalpplot import plot_scalp
from .positions import POS_10_5
from .markers import markers_to_events
import psychic
import scipy
import matplotlib
import matplotlib.pyplot as plot
import matplotlib.ticker as ticker
from matplotlib.lines import Line2... | bsd-3-clause |
AugurProject/pyconsensus | pyconsensus/__init__.py | 1 | 43884 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Consensus mechanism for Augur/Truthcoin.
pyconsensus is a Python implementation of the Augur/Truthcoin consensus
mechanism, described in detail at https://github.com/psztorc/Truthcoin.
Usage:
from pyconsensus import Oracle
# Example report matrix:
# - e... | gpl-3.0 |
tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 1.2s/hmm_crossvalidation_force_motion_20_states_scaled_wrt_all_data.py | 1 | 41652 | # 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 |
dereneaton/ipyrad | ipyrad/assemble/consens_se.py | 1 | 46994 | #!/usr/bin/env python
"call consensus base calls on paired or single-end stacks/contigs"
# py2/3 compatible
from __future__ import print_function
from builtins import range
try:
from itertools import izip, chain
except ImportError:
from itertools import chain
izip = zip
import os
import time
import gzip
... | gpl-3.0 |
lodemo/CATANA | src/external/lfw-classification-classifier-thread.py | 1 | 33212 | #!/usr/bin/env python2
#
# Copyright 2015-2016 Carnegie Mellon 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.0
#
# Unless require... | mit |
zfrenchee/pandas | pandas/tests/series/test_analytics.py | 1 | 76844 | # 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 |
lofar-astron/PyBDSF | bdsf/gausfit.py | 1 | 47880 | """Module gausfit.
This module does multi-gaussian fits for all detected islands.
At the moment fitting algorithm is quite simple -- we just add
gaussians one-by-one as long as there are pixels with emission
in the image, and do post-fitting flagging of the extracted
gaussians.
The fitting itself is implemented by th... | gpl-3.0 |
e-koch/pyspeckit | pyspeckit/spectrum/models/model.py | 1 | 49059 | """
=============================
Generic SpectralModel wrapper
=============================
.. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com>
Module API
^^^^^^^^^^
"""
import numpy as np
from pyspeckit.mpfit import mpfit,mpfitException
from pyspeckit.spectrum.parinfo import ParinfoList,Parinfo
import copy
... | mit |
apriha/lineage | src/lineage/__init__.py | 1 | 34240 | """ lineage
tools for genetic genealogy and the analysis of consumer DNA test results
"""
"""
MIT License
Copyright (c) 2016 Andrew Riha
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without... | gpl-3.0 |
yati-sagade/incubator-airflow | airflow/contrib/hooks/bigquery_hook.py | 1 | 49029 | # -*- 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 |
knutfrode/opendrift | opendrift/models/openoil.py | 1 | 48243 | # 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 |
wagavulin/arrow | python/pyarrow/tests/test_convert_pandas.py | 1 | 71574 | # -*- 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 |
GEMScienceTools/rmtk | rmtk/vulnerability/common/utils.py | 1 | 54861 | # -*- coding: utf-8 -*-
import os
import csv
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy import integrate, optimize, stats
from shapely.geometry import LineString, MultiPoint, Point
from scipy.interpolate import interp1d
from scipy.stats import norm
def read_capacity_curves(input_file):
... | agpl-3.0 |
DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/signal/windows.py | 1 | 58374 | """The suite of window functions."""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from scipy import fftpack, linalg, special
from scipy._lib.six import string_types
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanhar... | mit |
AndKe/MAVProxy | MAVProxy/mavproxy.py | 1 | 54912 | #!/usr/bin/env python
'''
mavproxy - a MAVLink proxy program
Copyright Andrew Tridgell 2011
Released under the GNU GPL version 3 or later
'''
import sys, os, time, socket, signal
import fnmatch, errno, threading
import serial, select
import traceback
import select
import shlex
import math
import platform
import json... | gpl-3.0 |
spennihana/h2o-3 | h2o-py/h2o/model/model_base.py | 1 | 54125 | # -*- encoding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import os
import traceback
import warnings
import h2o
from h2o.exceptions import H2OValueError
from h2o.job import H2OJob
from h2o.utils.backward_compatibility import backwards_compatible
from h2o.utils.compat... | apache-2.0 |
google/mediapy | mediapy/__init__.py | 1 | 62906 | # Lint as: python3
# Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | apache-2.0 |
mdespriee/spark | python/pyspark/ml/clustering.py | 1 | 50014 | #
# 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.