repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
DailyActie/Surrogate-Model | 01-codes/scipy-master/scipy/cluster/tests/test_hierarchy.py | 1 | 40971 | #! /usr/bin/env python
#
# 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 copy... | mit |
ryfeus/lambda-packs | Pandas_numpy/source/pandas/util/testing.py | 1 | 93778 | from __future__ import division
# pylint: disable-msg=W0402
import re
import string
import sys
import tempfile
import warnings
import inspect
import os
import subprocess
import locale
import traceback
from datetime import datetime
from functools import wraps, partial
from contextlib import contextmanager
from distuti... | mit |
maartenbreddels/vaex | packages/vaex-core/vaex/functions.py | 1 | 68066 | import vaex.serialize
import json
import numpy as np
import pyarrow as pa
import pyarrow.compute as pc
from vaex import column
from vaex.column import _to_string_sequence, _to_string_column, _to_string_list_sequence, _is_stringy
from vaex.dataframe import docsubst
import vaex.arrow.numpy_dispatch
import re
import vaex.... | mit |
Luispain/PullPull | PullPullGUI_v1.0.py | 1 | 58138 | # -*- coding: utf-8 -*-
"""
Pull-Pull Calculator v1.0 created by Luis Bernardos - luisfco.bernardos@gmail.com
This software is released under the GNU v3 License.
"""
import sys
import matplotlib
matplotlib.use("Qt5Agg")
import matplotlib.pyplot as plt
from PyQt5 import QtCore, QtGui, QtWidgets
from numpy import *
imp... | gpl-3.0 |
njsmith/pycam02ucs | pycam02ucs/cm/viscm.py | 1 | 30663 | # This file is part of pycam02ucs
# Copyright (C) 2014 Nathaniel Smith <njs@pobox.com>
# See file LICENSE.txt for license information.
# Simple script using CIECAM02 and CAM02-UCS to visualize properties of a
# matplotlib colormap
import sys
import os.path
import numpy as np
import matplotlib.pyplot as plt
import m... | mit |
neeraj-kumar/nkpylib | nksubresync.py | 1 | 41970 | """Some simple utilities to align subtitles.
By Neeraj Kumar <me@neerajkumar.org>
Licensed under the 3-clause BSD License:
Copyright (c) 2011-2014, Neeraj Kumar (neerajkumar.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that... | bsd-3-clause |
radiasoft/radtrack | radtrack/BunchTab.py | 1 | 36416 | # -*- coding: utf-8 -*-
u"""Interactive window for charged particle bunches
Imports the auto-generated RbBunchInterface.py module, which is
created via pyside-uic.exe from Qt's RbBunchInterface.ui file.
Here, the window is instantiated and hooks to the production Python code are established.
:copyright: Copyright (c... | apache-2.0 |
alexiskulash/ia-caucus-sentiment | src/Analysis.py | 1 | 46906 |
#Jenny Steffens
# -*- coding: utf-8 -*-
'''
this program contains two objects, Analyzer, which can be used to screen and organize data, and
a (proposed and not currently functioning) subclass, Visualizer, that is used when information is to be
printed to the screen. Since it is a subclass, it also has all the neces... | mit |
TobiasHiort/TheGreatEscape | gui/utils.py | 1 | 52862 | #!/usr/bin/python3
import pygame
import sys
import os
import numpy
import math
import time
import subprocess
import doctest # read from txt, read docs
import random
import scipy.spatial as sp
import tkinter as tk
import copy
import json
import inflect
inflect = inflect.engine()
import matplotlib.backends.backend_agg a... | mit |
bnaul/scikit-learn | sklearn/neighbors/tests/test_neighbors.py | 2 | 65508 | from itertools import product
import pytest
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.base import clone
from sklearn.exception... | bsd-3-clause |
tverbrug/openWEC | Run/openWEC_PE.py | 1 | 78975 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'openWECv2.ui'
#
# Created: Wed May 06 10:39:04 2015
# by: PyQt4 UI code generator 4.9.6
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from matplotlib.backends import qt_compat
from matplotlib... | gpl-3.0 |
shubhomoydas/pyaad | pyalad/random_split_trees.py | 1 | 38022 | # Authors: Shubhomoy Das (based on scikit-learn tree based APIs)
# License: BSD 3 clause
from __future__ import division
import logging
import copy
import numpy as np
import scipy as sp
from warnings import warn
from scipy import sparse
from scipy.sparse import lil_matrix, csr_matrix, vstack
from numpy import rand... | mit |
MattNolanLab/ei-attractor | noisefigs/noisefigs/plotters/seizures.py | 1 | 34537 | '''Figures illustrating seizures.
.. currentmodule:: noisefigs.plotters.seizures
Classes
-------
.. autosummary::
EIRasterPlotter
EIRatePlotter
MaxPopulationFRSweepsPlotter
MaxMeanThetaFRSweepPlotter
MaxStdThetaFRSweepPlotter
MaxMedianThetaFRSweepPlotter
MaxThetaFRHistPlotter
PSeizur... | gpl-3.0 |
OpenState-SDN/spider | src/SPIDER_parser.py | 1 | 97745 | # Copyright 2015 Luca Pollini <luca.pollini@mail.polimi.it>
# Davide Sanvito <davide2.sanvito@mail.polimi.it>
# Carmelo Cascone <carmelo.cascone@polimi.it>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.... | apache-2.0 |
gcarq/freqtrade | freqtrade/exchange/exchange.py | 1 | 59586 | # pragma pylint: disable=W0603
"""
Cryptocurrency Exchanges support
"""
import asyncio
import inspect
import logging
from copy import deepcopy
from datetime import datetime, timezone
from math import ceil
from typing import Any, Dict, List, Optional, Tuple
import arrow
import ccxt
import ccxt.async_support as ccxt_asy... | gpl-3.0 |
detrout/debian-statsmodels | statsmodels/genmod/generalized_estimating_equations.py | 1 | 91590 | """
Procedures for fitting marginal regression models to dependent data
using Generalized Estimating Equations.
References
----------
KY Liang and S Zeger. "Longitudinal data analysis using
generalized linear models". Biometrika (1986) 73 (1): 13-22.
S Zeger and KY Liang. "Longitudinal Data Analysis for Discrete and
... | bsd-3-clause |
jobovy/apogee | apogee/select/apogeeSelect.py | 1 | 153762 | import sys
import copy
import tqdm
import numpy
import numpy.lib.recfunctions
from scipy import stats, special
from galpy.util import bovy_plot, bovy_coords
import matplotlib
from matplotlib import cm, pyplot
import warnings
warnings.filterwarnings('ignore','.*All-NaN.*',) #turn-off All-NaN warnings
warnings.filterwarn... | bsd-3-clause |
winklerand/pandas | pandas/tests/reshape/test_concat.py | 1 | 79145 | from warnings import catch_warnings
import dateutil
import numpy as np
from numpy.random import randn
from datetime import datetime
from pandas.compat import StringIO, iteritems, PY2
import pandas as pd
from pandas import (DataFrame, concat,
read_csv, isna, Series, date_range,
... | bsd-3-clause |
ercius/openNCEM | ncempy/io/ser.py | 1 | 42925 | """
This module provides an interface to the SER file format written by FEI and Therm0 Fischer's program TIA.
It reads STEM and TEM images and other datasets.
It is based on information provided by Dr Chris Boothroyd and work by Peter Ercius' original serReader code in Matlab.
Note
----
General users:
Use the si... | gpl-3.0 |
alpatania/MapperTools | deprecated.py | 1 | 37103 | # MapperTools -- a Python library that computes a mapper graph
# @author: Alice Patania <alice.patania@gmail.com>
#
# MapperTools/
def viz_mapper1d(adja,node_info, color="bin", size=False, weight = True, edge_width = None, gml = False, show = False, indices= None):
'''
Plots the output graph from the mapper al... | gpl-3.0 |
jsilter/scipy | scipy/stats/morestats.py | 2 | 78560 | # Author: Travis Oliphant, 2002
#
# Further updates and enhancements by many SciPy developers.
#
from __future__ import division, print_function, absolute_import
import math
import warnings
import numpy as np
from numpy import (isscalar, r_, log, sum, around, unique, asarray,
zeros, arange, sort, ... | bsd-3-clause |
yarikoptic/pystatsmodels | statsmodels/tsa/ar_model.py | 3 | 33831 | from __future__ import division
import numpy as np
from numpy import (dot, identity, atleast_2d, atleast_1d, zeros)
from numpy.linalg import inv
from scipy import optimize
from scipy.stats import t, norm, ss as sumofsq
from statsmodels.regression.linear_model import OLS
from statsmodels.tsa.tsatools import (lagmat, ad... | bsd-3-clause |
epifanio/ecoop-1 | pyecoop/lib/ecoop/cf.py | 1 | 36260 | # /usr/bin/env python
# -*- coding: utf-8 -*-
# ##############################################################################
#
#
# Project: ECOOP, sponsored by The National Science Foundation
# Purpose: this code is part of the Cyberinfrastructure developed for the ECOOP project
# http://tw.rpi.edu/web/project/ECOOP... | apache-2.0 |
microsoft/LightGBM | tests/python_package_test/test_dask.py | 1 | 64168 | # coding: utf-8
"""Tests for lightgbm.dask module"""
import inspect
import pickle
import random
import socket
from itertools import groupby
from os import getenv
from sys import platform
import pytest
import lightgbm as lgb
if not platform.startswith('linux'):
pytest.skip('lightgbm.dask is currently supported i... | mit |
yuanbaowen521/tadbit | _pytadbit/mapping/analyze.py | 1 | 31457 | """
18 Nov 2014
"""
from pytadbit.utils.extraviews import tadbit_savefig
from pytadbit.utils.tadmaths import nozero_log_matrix as nozero_log
from pytadbit.parsers.hic_parser import HiC_data
from warnings import warn
from collections import OrderedDict
from pytadbit.parsers.hic... | gpl-3.0 |
jseabold/statsmodels | statsmodels/tsa/statespace/tests/test_mlemodel.py | 4 | 47160 | """
Tests for the generic MLEModel
Author: Chad Fulton
License: Simplified-BSD
"""
import os
import re
import warnings
import numpy as np
import pandas as pd
import pytest
from statsmodels.tsa.statespace import (sarimax, varmax, kalman_filter,
kalman_smoother)
from statsmodel... | bsd-3-clause |
WangWenjun559/Weiss | summary/sumy/sklearn/linear_model/logistic.py | 1 | 56646 | """
Logistic Regression
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Fabian Pedregosa <f@bianp.net>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Manoj Kumar <manojkumarsivaraj334@gmail.com>
# Lars Buitinck
# Simon Wu <s8wu@uwaterloo.ca>
imp... | apache-2.0 |
jseabold/statsmodels | statsmodels/tsa/tests/test_stattools.py | 4 | 43052 | from statsmodels.compat.numpy import lstsq
from statsmodels.compat.pandas import assert_index_equal
from statsmodels.compat.platform import PLATFORM_WIN
from statsmodels.compat.python import lrange
import os
import warnings
import numpy as np
from numpy.testing import (
assert_,
assert_allclose,
assert_al... | bsd-3-clause |
zfrenchee/pandas | pandas/tests/groupby/test_categorical.py | 1 | 31360 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime
import pytest
import numpy as np
from numpy import nan
import pandas as pd
from pandas import (Index, MultiIndex, CategoricalIndex,
DataFrame, Categorical, Series, Interval)
from pandas.util.testing import... | bsd-3-clause |
louispotok/pandas | pandas/io/pytables.py | 1 | 164193 | """
High level interface to PyTables for reading and writing pandas data structures
to disk
"""
# pylint: disable-msg=E1101,W0613,W0603
from datetime import datetime, date
import time
import re
import copy
import itertools
import warnings
import os
from pandas.core.dtypes.common import (
is_list_like,
is_cate... | bsd-3-clause |
harisbal/pandas | pandas/tests/arithmetic/test_datetime64.py | 1 | 76894 | # -*- coding: utf-8 -*-
# Arithmetc tests for DataFrame/Series/Index/Array classes that should
# behave identically.
# Specifically for datetime64 and datetime64tz dtypes
import operator
from datetime import datetime, timedelta
import warnings
from itertools import product, starmap
import numpy as np
import pytest
imp... | bsd-3-clause |
KeithYue/StockTrading | tools/tabulate.py | 1 | 39099 | # -*- coding: utf-8 -*-
"""Pretty-print tabular data."""
from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple
from platform import python_version_tuple
import re
if python_version_tuple()[0] < "3":
from itertools import izip_longest
from functools ... | apache-2.0 |
louispotok/pandas | pandas/core/generic.py | 1 | 333229 | # pylint: disable=W0231,E1101
import collections
import functools
import warnings
import operator
import weakref
import gc
import json
import numpy as np
import pandas as pd
from pandas._libs import tslib, properties
from pandas.core.dtypes.common import (
_ensure_int64,
_ensure_object,
is_scalar,
is_... | bsd-3-clause |
jonandergomez/machine_learning_for_students | ann/ANN.py | 1 | 48029 | """
Author: Jon Ander Gomez Adrian (jon@dsic.upv.es, http://personales.upv.es/jon)
Version: 3.1
Date: December 2015
Class ANN (for Artificial Neural Networks) with the funcionality for
computing forward (or backward) the output of a net.
This class also contains the methods needed to update th... | mit |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/numpy/lib/npyio.py | 2 | 65706 | from __future__ import division, absolute_import, print_function
import numpy as np
from . import format
import sys
import os
import re
import sys
import itertools
import warnings
import weakref
from operator import itemgetter
from ._datasource import DataSource
from ._compiled_base import packbits, unpackbits
from ... | gpl-3.0 |
mjvakili/gambly | code/plot_model.py | 1 | 64853 | '''
Genrating posterior model prediction figures for the paper
author: MJ
pretty_colors[1] for decorated model and
pretty_colors[5] for standard hod models
'''
from halotools.sim_manager import CachedHaloCatalog
import os.path as path
import util as ut
from Corrfunc import _countpairs
from Corrfunc.utils import rea... | mit |
kdebrab/pandas | pandas/core/series.py | 1 | 136093 | """
Data structure for 1-dimensional cross-sectional and time series data
"""
from __future__ import division
# pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
import types
import warnings
from textwrap import dedent
import numpy as np
import numpy.ma as ma
from pandas.core.accessor import Cac... | bsd-3-clause |
jinzishuai/learn2deeplearn | deeplearning.ai/C2.ImproveDeepNN/week3/tensorflow_assignment/tf.py | 1 | 37883 | #!/usr/bin/python3
# coding: utf-8
# # TensorFlow Tutorial
#
# Welcome to this week's programming assignment. Until now, you've always used numpy to build neural networks. Now we will step you through a deep learning framework that will allow you to build neural networks more easily. Machine learning frameworks like ... | gpl-3.0 |
davidovitch/freeyaw-ojf-wt-tests | misc.py | 1 | 30136 | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 27 11:09:04 2012
Library for general stuff
@author: dave
"""
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
from xlrd import open_workbook
import numpy as np
import scipy as sp
from scipy.interpolate impor... | gpl-3.0 |
Erotemic/ibeis | ibeis/algo/verif/vsone.py | 1 | 75858 | # -*- coding: utf-8 -*-
"""
CommandLine:
# Test how well out-of-the-box vsone classifiers to:
python -m ibeis.algo.verif.vsone evaluate_classifiers --db DETECT_SEATURTLES
# Train a classifier for deployment
# Will output to the current working directory
python -m ibeis.algo.verif.vsone deploy --db... | apache-2.0 |
bert9bert/statsmodels | statsmodels/examples/ex_generic_mle_tdist.py | 5 | 39734 | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 28 08:28:04 2010
Author: josef-pktd
"""
from __future__ import print_function
from statsmodels.compat.python import zip
import numpy as np
from scipy import stats, special, optimize
import statsmodels.api as sm
from statsmodels.base.model import GenericLikelihoodModel
... | bsd-3-clause |
Qwertycal/19520-Eye-Tracker | Filtering/eyeTrackingMainGUI.py | 1 | 30947 | #author: Rachel Hutchinson implements code written by Nadezhda Shivarova, Calum Whytock and David McNicol
#date created: 28th March
#description: shows the original feed, and has three buttons, one with the option to
#Calibrate the system, one to show a help file and the other with the option to quit
#This includes the... | gpl-2.0 |
andyh616/mne-python | mne/time_frequency/tfr.py | 1 | 51516 | """A module which implements the time frequency estimation.
Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM
"""
# Authors : Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Hari Bharadwaj <hari@nmr.mgh.harvard.edu>
#
# License : BSD (3-clause)
import warnings
from math ... | bsd-3-clause |
kdebrab/pandas | pandas/core/groupby/generic.py | 1 | 58208 | """
Define the SeriesGroupBy, DataFrameGroupBy, and PanelGroupBy
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.
"""
import collections
import warnings
import copy
from textwra... | bsd-3-clause |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_image.py | 1 | 52614 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Image(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "image"
_valid_props = {
"colormodel",
"customdata",
"customdatasrc",
"dx"... | mit |
jhnnsnk/VIOLA | test_data/nest_preprocessing.py | 1 | 31620 | #!/usr/env/python
'''
Preprocessing NEST output for VIOLA
-----------------------------------
This script preprocesses spiking data from a NEST simulation using the
topology module for spatial structure so that it can be loaded to VIOLA as
"binned" data type. Concretely, it creates spatially and temporally binned
spik... | gpl-2.0 |
plotly/python-api | packages/python/plotly/plotly/graph_objs/_densitymapbox.py | 1 | 74226 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Densitymapbox(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "densitymapbox"
_valid_props = {
"autocolorscale",
"below",
"coloraxis",
... | mit |
gemelkelabs/timing_system_software | server_py_files/core/objectify_xtsm.py | 1 | 180266 | """
This software is described in detail at https://amo.phys.psu.edu/GemelkeLabWiki/index.php/Python_parser
"""
import copy
import ast # abstract syntax tree for scripts
import msgpack, msgpack_numpy, struct # support for messagepack format data
msgpack_numpy.patch()
import gnosis.xml.objectify # standard p... | mit |
cogstat/cogstat | cogstat/cogstat.py | 1 | 64204 | # -*- coding: utf-8 -*-
"""This module is the main engine for CogStat. It includes the class for the CogStat data; initialization handles data
import; methods implement some data handling and they compile the appropriate statistics for the main analysis commands.
"""
# if CS is used with GUI, start the splash screen
... | gpl-3.0 |
trungnt13/scikit-learn | sklearn/ensemble/forest.py | 3 | 61945 | """Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | bsd-3-clause |
pizzathief/scipy | scipy/special/add_newdocs.py | 2 | 238216 | # 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_pyx.py to generate the docstrings for the ufuncs in
# scipy.special at the C level... | bsd-3-clause |
smartscheduling/scikit-learn-categorical-tree | sklearn/utils/estimator_checks.py | 1 | 42107 | from __future__ import print_function
import warnings
import sys
import traceback
import inspect
import pickle
from copy import deepcopy
import numpy as np
from scipy import sparse
import struct
from sklearn.externals.six.moves import zip
from sklearn.externals.joblib import hash
from sklearn.utils.testing import as... | bsd-3-clause |
duane-edgington/stoqs | stoqs/loaders/CANON/toNetCDF/lrauvNc4ToNetcdf.py | 1 | 56754 | #!/usr/bin/env python
__author__ = 'Danelle Cline'
__copyright__ = '2016'
__license__ = 'GPL v3'
__contact__ = 'dcline at mbari.org'
__doc__ = '''
Utility class to convert netCDF4 to netCDFs in a format compatible with STOQs loading.
This basically captures the independently sampled variables captured in the L... | gpl-3.0 |
machenslab/dPCA | python/dPCA/dPCA.py | 1 | 40619 | """ demixed Principal Component Analysis
"""
# Author: Wieland Brendel <wieland.brendel@neuro.fchampalimaud.org>
#
# License: BSD 3 clause
from __future__ import print_function
import numpy as np
from collections import OrderedDict
from itertools import combinations, chain
from scipy.sparse.linalg import svds
from s... | mit |
paninski-lab/yass | src/yass/residual/residual_gpu.py | 1 | 46356 | import os
import logging
import numpy as np
import time
from tqdm import tqdm
import torch
import sys
import cudaSpline as deconv
import matplotlib.pyplot as plt
from scipy.interpolate import splrep, splev, splder, sproot
import parmap
# these functions are same asin match_pursuit; copied just in case
def transfo... | apache-2.0 |
loftytopping/STRAPS | Master_Script.py | 1 | 64727 | ##########################################################################################
# #
# Fitting machine learning algorithms to predict a given mass spectra based on #
# distinct m/z channels. This relies on the Scikit learn libraries as defined #
# by the import statements gi... | gpl-3.0 |
BiaDarkia/scikit-learn | sklearn/metrics/tests/test_classification.py | 7 | 63793 | from __future__ import division, print_function
import numpy as np
from scipy import linalg
from functools import partial
from itertools import product
import warnings
from sklearn import datasets
from sklearn import svm
from sklearn.datasets import make_multilabel_classification
from sklearn.preprocessing import la... | bsd-3-clause |
geoscixyz/em_examples | em_examples/View.py | 1 | 78482 | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
import copy
matplotlib.rcParams["font.size"] = 13
def phase(z):
val = np.angle(z)
# val = np.rad2deg(np.unwrap(np.angle((z... | mit |
bjanesh/odi-tools | odi_helpers.py | 1 | 50436 | import sys, os, glob, string
import numpy as np
import astropy as ast
import matplotlib.pyplot as plt
from pyraf import iraf
from tqdm import tqdm
import odi_config as odi
def deg_to_sex(ra, dec):
"""
Convert an Ra and Dec position in decimal degrees to hexadecimal
Parameters
----------
ra : float... | bsd-3-clause |
annoviko/pyclustering | pyclustering/nnet/sync.py | 1 | 45611 | """!
@brief Neural Network: Oscillatory Neural Network based on Kuramoto model
@details Implementation based on paper @cite article::syncnet::1, @cite article::nnet::sync::1, @cite inproceedings::net::sync::1.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
im... | gpl-3.0 |
thunderhoser/GewitterGefahr | gewittergefahr/gg_io/segmotion_io.py | 1 | 34673 | """IO methods for segmotion output.
--- DEFINITIONS ---
segmotion (or w2segmotionll) = storm-tracking algorithm in WDSS-II.
WDSS-II = Warning Decision Support System -- Integrated Information, a software
package for the visualization and analysis of thunderstorm-related data.
"""
import os
import glob
import gzip
i... | mit |
equialgo/scikit-learn | sklearn/linear_model/coordinate_descent.py | 1 | 81461 | # 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 |
GuessWhoSamFoo/pandas | pandas/tests/frame/test_replace.py | 1 | 45876 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime
import re
import numpy as np
import pytest
from pandas.compat import StringIO, lrange, range, zip
import pandas as pd
from pandas import DataFrame, Index, Series, Timestamp, compat, date_range
from pandas.tests.frame.common... | bsd-3-clause |
Ziqi-Li/bknqgis | pandas/pandas/io/parsers.py | 1 | 119743 | """
Module contains tools for processing files into DataFrames or other objects
"""
from __future__ import print_function
from collections import defaultdict
import re
import csv
import sys
import warnings
import datetime
from textwrap import fill
import numpy as np
from pandas import compat
from pandas.compat import... | gpl-2.0 |
CamDavidsonPilon/lifelines | lifelines/plotting.py | 1 | 32340 | # -*- coding: utf-8 -*-
import warnings
from typing import Union, Optional, Iterable
from scipy import stats as stats
import pandas as pd
import numpy as np
from lifelines.utils import coalesce, CensoringType, _group_event_table_by_intervals
__all__ = [
"add_at_risk_counts",
"plot_lifetimes",
"plot_int... | mit |
billbrod/spatial-frequency-preferences | sfp/figures.py | 1 | 153404 | #!/usr/bin/python
"""functions to create the figures for publication
"""
import seaborn as sns
import math
import pyrtools as pt
import neuropythy as ny
import os.path as op
import warnings
import torch
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
from mpl_toolkits.axes_grid1.anchored_art... | mit |
georgid/SourceFilterContoursMelody | src/SIMM.py | 1 | 43027 | #!/usr/bin/python
#
# Script implementing the multiplicative rules from the following
# article:
#
# J.-L. Durrieu, G. Richard, B. David and C. Fevotte
# Source/Filter Model for Unsupervised Main Melody
# Extraction From Polyphonic Audio Signals
# IEEE Transactions on Audio, Speech and Language Processing
# Vol. 18, ... | gpl-3.0 |
zoidy/wiggly | objectmanager.py | 1 | 60303 | """
Contains functionality relate to interfacing wiggly and puq
"""
import binascii,os,re
import numpy as np
import matplotlib.pyplot as plt
import shapely.geometry
import CrispObjects,FuzzyObjects,fuzz,utilities
import _distributions as distributions
import puq
class ObjectManager(object):
"""
Manages Wiggly ... | lgpl-3.0 |
jlustigy/coronagraph | coronagraph/count_rates.py | 1 | 31441 | """
The crux of ``coronagraph`` noise modeling is to determine the photon count rate
incident upon the detector due to both the target planet and an assortment of
different telescope, instrumental, and astrophysical noise sources.
The following classes and functions serve as your interface to the photon count
rate calc... | mit |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_candlestick.py | 1 | 62737 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Candlestick(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "candlestick"
_valid_props = {
"close",
"closesrc",
"customdata",
"c... | mit |
alexrudy/AstroObject | tests/apitests.py | 1 | 40462 | # -*- coding: utf-8 -*-
#
# apitests.py
# ObjectModel
#
# Created by Alexander Rudy on 2011-10-31.
# Copyright 2011 Alexander Rudy. All rights reserved.
# Version 0.6.1
#
"""
:mod:`apitests` for nosetests
==============================
This module has test frameworks for all modules. The baisc hierarchy of testin... | gpl-3.0 |
PheWAS/exact_stats | exact_stats/__init__.py | 1 | 33883 | #!/usr/bin/env python
'''
File: __init__.py
Created: 19-July-2014 Joseph P. Bochenek
1.0
Description: A python module for asssociation studies with rare phenomena.
'''
import math
import numpy as np
import scipy.stats as stats
import scipy.integrate as integrate
import scipy.special as special
from prettytable impo... | mit |
wolf9s/doconce | lib/doconce/ipynb.py | 1 | 36654 | import re, sys, shutil, os
from common import default_movie, plain_exercise, table_analysis, \
insert_code_and_tex, indent_lines
from html import html_movie, html_table
from pandoc import pandoc_ref_and_label, pandoc_index_bib, pandoc_quote, \
language2pandoc, pandoc_quiz
from misc import option, _abort
# Gl... | bsd-3-clause |
simondona/img-fft-filter-bec-tn | libraries/application.py | 1 | 39646 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (C) 2014-2016 Simone Donadello
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | gpl-3.0 |
sauloal/cnidaria | scripts/venv/lib/python2.7/site-packages/pandas/core/groupby.py | 1 | 128190 | import types
from functools import wraps
import numpy as np
import datetime
import collections
from pandas.compat import(
zip, builtins, range, long, lzip,
OrderedDict, callable, filter, map
)
from pandas import compat
from pandas.core.base import PandasObject
from pandas.core.categorical import Categorical
f... | mit |
Eric89GXL/numpy | numpy/core/tests/test_multiarray.py | 3 | 283287 | from __future__ import division, absolute_import, print_function
try:
# Accessing collections abstract classes from collections
# has been deprecated since Python 3.3
import collections.abc as collections_abc
except ImportError:
import collections as collections_abc
import tempfile
import sys
import sh... | bsd-3-clause |
larsmans/numpy | numpy/lib/polynomial.py | 2 | 37963 | """
Functions to operate on polynomials.
"""
from __future__ import division, absolute_import, print_function
__all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd',
'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d',
'polyfit', 'RankWarning']
import re
import warnings
import numpy.core.... | bsd-3-clause |
bdh1011/wau | venv/lib/python2.7/site-packages/pandas/tests/test_strings.py | 1 | 82576 | # -*- coding: utf-8 -*-
# pylint: disable-msg=E1101,W0612
from datetime import datetime, timedelta, date
import os
import operator
import re
import warnings
import nose
from numpy import nan as NA
import numpy as np
from numpy.testing import assert_array_equal
from numpy.random import randint
from pandas.compat imp... | mit |
wmvanvliet/mne-python | mne/io/fiff/tests/test_raw_fiff.py | 1 | 70096 | # -*- coding: utf-8 -*-
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
from functools import partial
from io import BytesIO
import os
import os.path as op
import pathlib
import pickle
import sys
impor... | bsd-3-clause |
rohit21122012/DCASE2013 | runs/2013/baseline/src/dataset.py | 1 | 85475 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import urllib2
import socket
import locale
import zipfile
import tarfile
from sklearn.cross_validation import StratifiedShuffleSplit, KFold
from ui import *
from general import *
from files import *
class Dataset(object):
"""Dataset base class.
The sp... | mit |
DPRL/CROHME_2013 | src/DPRL.py | 1 | 92001 | ## DPRL CROHME 2013
## Copyright (c) 2013-2014 Lei Hu, Kenny Davila, Francisco Alvaro, Richard Zanibbi
##
## This file is part of DPRL CROHME 2013.
##
## DPRL CROHME 2013 is free software:
## you can redistribute it and/or modify it under the terms of the GNU
## General Public License as published b... | gpl-3.0 |
asascience-open/ooi-ui-services | ooiservices/app/uframe/plot_tools.py | 1 | 39583 | """
Plotting tools for OOI data
"""
from ooiservices.app import cache
from netCDF4 import num2date
import numpy as np
import prettyplotlib as ppl
from prettyplotlib import plt
from ooiservices.app.uframe.windrose import WindroseAxes
import matplotlib.dates as mdates
from matplotlib.ticker import FuncFormatter
import se... | apache-2.0 |
JinfengChen/deepTools | deeptools/parserCommon.py | 2 | 35936 | import sys
import argparse
import deeptools.config as cfg
from deeptools._version import __version__
def output(args=None):
parser = argparse.ArgumentParser(add_help=False)
group = parser.add_argument_group('Output')
group.add_argument('--outFileName', '-o',
help='Output file name.'... | gpl-3.0 |
abalkin/numpy | numpy/lib/function_base.py | 1 | 155041 | 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 |
arkilic/metadatastore | metadatastore/core.py | 2 | 33235 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import warnings
import datetime
import logging
import pymongo
import pytz
import numpy as np
import doct as doc
logger = logging.getLogger(__name__)
class NoRunStop(Exception):
pass
cla... | bsd-3-clause |
hunter-cameron/Bioinformatics | job_scripts/omri/compare_fuzzy_kmers.py | 1 | 70095 |
import argparse
import os
import sys
import math
import time
import numpy as np
import logging
import re
import pickle
from Bio import SeqIO
from Bio.SeqRecord import SeqRecord
from Bio.Seq import Seq
import queue
import multiprocessing
import psutil
import sqlite3
#import matplotlib.pyplot as plt
import objgraph
fro... | mit |
DTMilodowski/LiDAR_canopy | src/canopy_structure_paper_figures.py | 1 | 49998 | ###############################################################################################################
# This driver function analyses both LiDAR data and field inventory data to produce independent estimates of
# canopy structure. These are compared against each other and their integrated LAD is compared aga... | gpl-3.0 |
jensreeder/scikit-bio | skbio/stats/power.py | 1 | 40719 | r"""
Empirical Power Estimation (:mod:`skbio.stats.power`)
=====================================================
.. currentmodule:: skbio.stats.power
The purpose of this module is to provide empirical, post-hoc power estimation
of normally and non-normally distributed data. It also provides support to
subsample data ... | bsd-3-clause |
SKIRT/PTS | modeling/core/data.py | 1 | 67662 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | agpl-3.0 |
xhochy/arrow | python/pyarrow/tests/test_parquet.py | 1 | 152172 | # 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 |
kaushik94/tardis | tardis/montecarlo/tests/test_cmontecarlo.py | 1 | 38688 | """
Unit tests for methods in `tardis/montecarlo/src/cmontecarlo.c`.
* `ctypes` library is used to wrap C methods and expose them to python.
Probable Reasons for Failing Tests:
-----------------------------------
1. Change made in C struct declarations:
- Reflect the changes done in C structs, into Python counterp... | bsd-3-clause |
jdmcbr/geopandas | geopandas/array.py | 1 | 43316 | from collections.abc import Iterable
import numbers
import operator
import warnings
import inspect
import numpy as np
import pandas as pd
from pandas.api.extensions import (
ExtensionArray,
ExtensionDtype,
register_extension_dtype,
)
import shapely
import shapely.affinity
import shapely.geometry
from shap... | bsd-3-clause |
Kate-Willett/HadISDH_Marine_Build | EUSTACE_SST_MAT/gridbox_sampling_uncertainty.py | 2 | 34644 | # python 3
#
# Author: Kate Willett
# Created: 18 January 2019
# Last update: 24 January 2019
# Location: /data/local/hadkw/HADCRUH2/MARINE/EUSTACEMDS/EUSTACE_SST_MAT/
# GitHub: https://github.com/Kate-Willett/HadISDH_Marine_Build
# -----------------------
# CODE PURPOSE AND OUTPUT
# -----------------------
# Th... | cc0-1.0 |
IntelLabs/hpat | sdc/datatypes/hpat_pandas_series_functions.py | 1 | 210869 | # *****************************************************************************
# Copyright (c) 2020, Intel Corporation All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# Redistributions of sou... | bsd-2-clause |
georgeke/caravel | caravel/views.py | 1 | 50474 | """Flask web views for Caravel"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import json
import logging
import re
import sys
import time
import traceback
from datetime import datetime
import functools
import pand... | apache-2.0 |
paranoya/Sexplorer | KOALA_analysis.py | 1 | 70432 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# # KOALA analysis pipeline
# Brief description of the KOALA class
# by Ángel López and Yago
from __future__ import print_function
from __future__ import division
from astropy.io import fits
from astropy.wcs import WCS
import matplotlib.pyplot as plt
import matplotlib.color... | mit |
mhvk/astropy | astropy/table/table.py | 1 | 147795 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from .index import SlicedIndex, TableIndices, TableLoc, TableILoc, TableLocIndices
import sys
from collections import OrderedDict, defaultdict
from collections.abc import Mapping
import warnings
from copy import deepcopy
import types
import itertools
imp... | bsd-3-clause |
olafhauk/mne-python | mne/io/fiff/tests/test_raw_fiff.py | 2 | 69705 | # -*- coding: utf-8 -*-
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
from functools import partial
from io import BytesIO
import os
import os.path as op
import pathlib
import pickle
import sys
impor... | bsd-3-clause |
UMN-Hydro/GSFLOW_pre-processor | python_scripts/cp_preLauren_171023_py/MODFLOW_NWT_lib_Shullcas_test.py | 1 | 73752 | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 17 22:34:30 2017
MODFLOW_NWT_lib
This library includes all the separate matlab functions for writing the different MODFLOW input files
@author: gcng
"""
import numpy as np
import pandas as pd # for data structures and reading in data from text file
import matplotlib.py... | gpl-3.0 |
blachlylab/mucor | mucor.py | 1 | 33691 | #!/usr/bin/env python
# -*- coding: utf8
# Copyright 2013-2015 James S Blachly, MD and The Ohio State University
#
# This file is part of Mucor.
#
# Mucor 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 Fou... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.