repo_name
string
path
string
copies
string
size
string
content
string
license
string
magne-max/zipline-ja
tests/test_perf_tracking.py
1
75650
# # Copyright 2016 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
fedspendingtransparency/data-act-broker-backend
tests/integration/error_warning_file_tests.py
1
62673
import os import csv import logging import itertools import pandas as pd import psutil as ps from _pytest.monkeypatch import MonkeyPatch from dataactcore.interfaces.db import GlobalDB from dataactcore.config import CONFIG_SERVICES from dataactcore.models.domainModels import concat_tas_dict from dataactcore.models.look...
cc0-1.0
dssg/wikienergy
disaggregator/build/pandas/pandas/tests/test_series.py
1
225511
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import sys from datetime import datetime, timedelta import operator import string from inspect import getargspec from itertools import product, starmap from distutils.version import LooseVersion import nose from numpy import nan import numpy as np import numpy.ma as m...
mit
merenlab/anvio
anvio/summarizer.py
1
90186
# coding: utf-8 # pylint: disable=line-too-long """Summarizes information for a collection. It also gives access to bin data that may be useful. For instance, did you know could totally do this to access to gene coverage and detection dicts for a given bin in a given collection: import anvio.summarizer as summarizer ...
gpl-3.0
jhaux/tensorflow
tensorflow/python/estimator/canned/linear_testing_utils.py
1
52908
# Copyright 2017 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
buguen/pylayers
pylayers/antprop/channel.py
1
153051
# -*t coding:Utf-8 -*- r""" .. currentmodule:: pylayers.antprop.channel .. autosummary:: :toctree: generated/ TBchannel class =============== .. autosummary:: :toctree: generated/ TBchannel.tau_Emax TBchannel.tau_moy TBchannel.tau_rms TBchannel.delays TBchannel.toFD TBchannel.SalehVa...
lgpl-3.0
xuewei4d/scikit-learn
sklearn/neighbors/tests/test_neighbors.py
4
68105
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
jboes/CatKit
catkit/gen/adsorption.py
1
31960
from . import defaults from . import utils from . import symmetry import catkit import matplotlib.pyplot as plt import itertools import networkx as nx import numpy as np import scipy radii = defaults.get('radii') class AdsorptionSites(): """Adsorption site object.""" def __init__(self, slab, surface_atoms=No...
gpl-3.0
ritviksahajpal/LUH2
LUH2/GLM/plot.py
1
33112
import os import click import logging import palettable import subprocess import pdb import math from jenks import jenks # pip install -e "git+https://github.com/perrygeo/jenks.git#egg=jenks" import sys from jenks import jenks import numpy as np import matplotlib as mpl from matplotlib import pyplot as plt import mat...
mit
mcocdawc/chemcoord
src/chemcoord/cartesian_coordinates/_cartesian_class_get_zmat.py
1
31781
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals, with_statement) import warnings from collections import OrderedDict from functools import partial from itertools import permutations import numpy as np import pandas as pd import chemc...
lgpl-3.0
vortex-ape/scikit-learn
sklearn/metrics/tests/test_ranking.py
4
46480
from __future__ import division, print_function import pytest import numpy as np import warnings from scipy.sparse import csr_matrix from sklearn import datasets from sklearn import svm from sklearn.datasets import make_multilabel_classification from sklearn.random_projection import sparse_random_matrix from sklearn...
bsd-3-clause
Warvito/pydeeplearn
code/lib/deepbelief.py
1
38804
import numpy as np import restrictedBoltzmannMachine as rbm from batchtrainer import * from activationfunctions import * from common import * from debug import * from trainingoptions import * import theano from theano import tensor as T from theano.tensor.shared_randomstreams import RandomStreams theanoFloat = thea...
bsd-3-clause
JDReutt/BayesDB
bayesdb/tests/experiments/experiment_utils.py
2
31783
# # Copyright (c) 2010-2014, MIT Probabilistic Computing Project # # Lead Developers: Jay Baxter and Dan Lovell # Authors: Jay Baxter, Dan Lovell, Baxter Eaves, Vikash Mansinghka # Research Leads: Vikash Mansinghka, Patrick Shafto # # Licensed under the Apache License, Version 2.0 (the "License"); # you may...
apache-2.0
OLAPLINE/TM1py
TM1py/Services/CellService.py
1
46900
# -*- coding: utf-8 -*- import functools import json import warnings from collections import OrderedDict from io import StringIO import pandas as pd from TM1py.Services import ObjectService from TM1py.Utils import Utils, CaseAndSpaceInsensitiveSet from TM1py.Utils.Utils import build_pandas_dataframe_from_cellset, di...
mit
geopandas/geopandas
geopandas/array.py
1
43188
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
ContinuumIO/dask
dask/dataframe/utils.py
1
31515
import math import numbers import re import textwrap from collections.abc import Iterator, Mapping import sys import traceback from contextlib import contextmanager import numpy as np import pandas as pd from pandas.api.types import ( is_categorical_dtype, is_scalar, is_sparse, is_period_dtype, is...
bsd-3-clause
choderalab/assaytools
AssayTools/analysis.py
1
47987
""" Classes for the analysis of fluorescence assay data. """ #============================================================================================= # IMPORTS #============================================================================================= import numpy as np import pymc from scipy.misc import lo...
lgpl-2.1
remenska/iSDM
iSDM/environment.py
1
50751
""" A module for all environmental layers functionality. .. moduleauthor:: Daniela Remenska <remenska@gmail.com> """ import logging from enum import Enum import pprint from rasterio.warp import calculate_default_transform, RESAMPLING # from iSDM.species import IUCNSpecies import numpy as np from geopandas imp...
apache-2.0
jjx02230808/project0223
sklearn/preprocessing/tests/test_data.py
1
58089
# Authors: # # Giorgio Patrini # # License: BSD 3 clause import warnings import numpy as np import numpy.linalg as la from scipy import sparse from distutils.version import LooseVersion from sklearn.utils import gen_batches from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing im...
bsd-3-clause
whiskie14142/SolarSystemVoyager
source/SSVG.py
1
60331
# -*- coding: utf-8 -*- """SSVG (Solar System Voyager) (c) 2016-2019 Shushi Uetsuki (whiskie14142) 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)...
gpl-3.0
legacysurvey/pipeline
validationtests/quicksipManera.py
2
50830
from math import * import numpy as np import healpy as hp import astropy.io.fits as pyfits import time import matplotlib.pyplot as plt from multiprocessing import Pool from multiprocessing.dummy import Pool as ThreadPool import numpy.random import os, errno import subprocess twopi = 2.*pi piover2 = .5*pi verbose = Fals...
gpl-2.0
okiyama/EEA-Opponent-Modeling
Konane/FigMaker.py
1
31462
## Figure generator for the data produced by EEA.py. ## Not generic. ## ## Author: Julian Jocque ## Date: 10/13/14 try: from pylab import * import matplotlib.lines as mlines import seaborn as sns import numpy as np except: print "Unable to import things in FigMaker! Probably a pypy issue." import d...
gpl-2.0
bendalab/thunderfish
thunderfish/tabledata.py
2
109053
""" Provides `class TableData` for tables with a rich hierarchical header including units and column-specific formats. Kind of similar to a pandas data frame, but with intuitive numpy-style indexing and nicely formatted output to csv, html, and latex. ## Helper functions - `write()`: shortcut for constructing and wr...
gpl-3.0
jamestwebber/scipy
scipy/spatial/kdtree.py
1
38455
# Copyright Anne M. Archibald 2008 # Released under the scipy license from __future__ import division, print_function, absolute_import import sys import numpy as np from heapq import heappush, heappop import scipy.sparse __all__ = ['minkowski_distance_p', 'minkowski_distance', 'distance_matrix', ...
bsd-3-clause
jmmease/pandas
pandas/tests/frame/test_constructors.py
1
74703
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime, timedelta import functools import itertools import pytest from numpy.random import randn import numpy as np import numpy.ma as ma import numpy.ma.mrecords as mrecords from pandas.core.dtypes.common import is_integer_dtype ...
bsd-3-clause
lioritan/Thesis
problems/alg10_globalfeatures.py
1
41192
# -*- coding: utf-8 -*- """ Created on Thu Feb 05 13:17:18 2015 @author: liorf """ from numpy import * from matplotlib.mlab import find from scipy.stats import mode, chisquare import time from matplotlib.cbook import flatten def clean_tree_for_pickle(tree_node): # tree_node.relations=None if tree_node.chose...
gpl-2.0
geoscixyz/em_examples
em_examples/sphereElectrostatic_example.py
1
30873
from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals from scipy.constants import epsilon_0 import matplotlib.pyplot as plt import matplotlib.colors as colors import numpy as np from SimPEG.Utils import ndgrid, mkvc """ Authors: Thibaut Astic, Lindsey Hea...
mit
CooperLuan/airflow
airflow/www/app.py
1
66977
from __future__ import print_function from __future__ import division from builtins import str from past.utils import old_div import copy from datetime import datetime, timedelta import dateutil.parser from functools import wraps import inspect import json import logging import os import socket import sys from flask._...
apache-2.0
zutshi/S3CAMR
src/scamr.py
1
33922
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals #import matplotlib # Force GTK3 backend. By default GTK2 gets loaded and conflicts with # graph-tool #matplotlib.use('GTK3Agg') #global plt #import matplotlib.py...
bsd-2-clause
chatcannon/scipy
scipy/stats/_multivariate.py
3
92794
# # Author: Joris Vankerschaver 2013 # from __future__ import division, print_function, absolute_import import numpy as np import scipy.linalg from scipy.misc import doccer from scipy.special import gammaln, psi, multigammaln from scipy._lib._util import check_random_state __all__ = ['multivariate_normal', ...
bsd-3-clause
CompPhysics/MachineLearning
doc/src/LectureNotes/_build/jupyter_execute/chapter8.py
1
48694
# Dimensionality Reduction ## Reducing the number of degrees of freedom, overarching view Many Machine Learning problems involve thousands or even millions of features for each training instance. Not only does this make training extremely slow, it can also make it much harder to find a good solution, as we will see....
cc0-1.0
BiaDarkia/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
13
49898
""" Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting). """ import warnings import numpy as np from itertools import product from scipy.sparse import csr_matrix from scipy.sparse import csc_matrix from scipy.sparse import coo_matrix from sklearn import datasets from sklearn.base import clo...
bsd-3-clause
rtrwalker/geotecha
geotecha/inputoutput/inputoutput.py
1
83711
# geotecha - A software suite for geotechncial engineering # Copyright (C) 2018 Rohan T. Walker (rtrwalker@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 of the L...
gpl-3.0
thomasyu888/SynapseChallengeTemplates
python/scoring_harness/challenge.py
1
31982
# # Command line tool for scoring and managing Synapse challenges # # To use this script, first install the Synapse Python Client # http://python-docs.synapse.org/ # # Log in once using your user name and password # import synapseclient # syn = synapseclient.Synapse() # syn.login(<username>, <password>, rememberM...
apache-2.0
JasonKessler/scattertext
scattertext/__init__.py
1
98375
from __future__ import print_function version = [0, 1, 4] __version__ = '.'.join([str(e) for e in version]) import re import numpy as np import pandas as pd import warnings from scattertext.features.UseFullDocAsFeature import UseFullDocAsFeature from scattertext.features.UseFullDocAsMetadata import UseFullDocAsMetada...
apache-2.0
amolkahat/pandas
pandas/tests/indexing/test_loc.py
1
31338
""" test label based indexing with loc """ import itertools import pytest from warnings import catch_warnings, filterwarnings import numpy as np import pandas as pd from pandas.compat import lrange, StringIO from pandas import Series, DataFrame, Timestamp, date_range, MultiIndex, Index from pandas.util import testin...
bsd-3-clause
fishstamp82/moltools
moltools/molecules.py
1
141796
#!/usr/bin/env python #-*- coding: utf-8 -*- """ The molecules modules serves as an interface to write water molecule input files using predefined geometries, to be used with the DALTON qm package. """ __all__ = [ 'Atom', 'Bond', 'Molecule', 'Water', 'Cluster', ] import re, os, itertools, functools, warnings, subproc...
mit
who-emro/meerkat_api
api_background/api_background/export_data.py
1
40323
""" Functions to export data """ import gettext import shelve import csv import json import logging import xlsxwriter import os import yaml from sqlalchemy.orm import aliased from sqlalchemy import text, or_, func, Float from dateutil.parser import parse from datetime import datetime from celery import task import requ...
mit
anntzer/seaborn
seaborn/tests/test_axisgrid.py
1
51203
import warnings import numpy as np import pandas as pd from scipy import stats import matplotlib as mpl import matplotlib.pyplot as plt import pytest import nose.tools as nt import numpy.testing as npt from numpy.testing import assert_array_equal try: import pandas.testing as tm except ImportError: import pan...
bsd-3-clause
google-research/google-research
tft/libs/tft_model.py
1
44521
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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 applicab...
apache-2.0
CDNoyes/EDL-Py
EntryGuidance/DDP.py
1
30598
""" Python implementation of differential dynamic programming """ import numpy as np # from numpy import sin, cos from pyaudi import sin, cos from scipy.integrate import odeint from scipy.interpolate import interp1d import matplotlib.pyplot as plt import sys sys.path.append('./Utils/') from RK4 import RK4 from trap...
gpl-3.0
jradinger/v.fidimo
v.fidimo.py
1
92189
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################ # # MODULE: FIDIMO Fish Dispersal Model for Vector River Networks for GRASS 7 # # AUTHOR(S): Johannes Radinger # # VERSION: V0.0 Beta # # DATE: 2016-08-30 # ##################...
gpl-2.0
jeffknupp/arrow
python/pyarrow/tests/test_parquet.py
1
33220
# 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
timothylwarren/py_utilities
fp_library2.py
1
41608
#!/usr/bin/python # written by Floris van Breugel, with some help from Andrew Straw and Will Dickson # dependencies for LaTex rendering: texlive, ghostscript, dvipng, texlive-latex-extra # general imports import matplotlib print(matplotlib.__version__) #print 'recommended version: 1.1.1 or greater' import pdb #######...
gpl-3.0
jsilter/scipy
scipy/signal/windows.py
1
48671
"""The suite of window functions.""" from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy import special, linalg from scipy.fftpack import fft from scipy.lib.six import string_types __all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall', ...
bsd-3-clause
maxplanck-ie/HiCExplorer
hicexplorer/hicCorrectMatrix.py
1
31877
import warnings import sys warnings.simplefilter(action="ignore", category=RuntimeWarning) warnings.simplefilter(action="ignore", category=PendingDeprecationWarning) import argparse from past.builtins import zip from scipy.sparse import lil_matrix from hicexplorer.iterativeCorrection import iterativeCorrection from hi...
gpl-2.0
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/manifold/t_sne.py
1
34867
# Author: Alexander Fabisch -- <afabisch@informatik.uni-bremen.de> # Author: Christopher Moody <chrisemoody@gmail.com> # Author: Nick Travers <nickt@squareup.com> # License: BSD 3 clause (C) 2014 # This is the exact and Barnes-Hut t-SNE implementation. There are other # modifications of the algorithm: # * Fast Optimi...
mit
mistercrunch/panoramix
superset/views/core.py
1
113084
# 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
TomAugspurger/pandas
pandas/core/reshape/merge.py
1
73028
""" SQL-style merge routines """ import copy import datetime from functools import partial import string from typing import TYPE_CHECKING, Optional, Tuple, Union import warnings import numpy as np from pandas._libs import Timedelta, hashtable as libhashtable, lib import pandas._libs.join as libjoin from pandas._typi...
bsd-3-clause
mikeireland/pynrm
pynrm/pypoise.py
1
68751
"""The main module to implement the Phase Observationally Independent of Systematic Errors (POISE) algorithm. """ from __future__ import division, print_function import astropy.io.fits as pyfits import numpy as np import matplotlib.pyplot as plt import scipy.optimize as op import scipy.ndimage as nd import pdb import...
mit
silasb/flatcam
camlib.py
1
82964
############################################################ # FlatCAM: 2D Post-processing for Manufacturing # # http://caram.cl/software/flatcam # # Author: Juan Pablo Caram (c) # # Date: 2/5/2014 # # MIT Licence ...
mit
ningchi/scikit-learn
sklearn/tests/test_cross_validation.py
2
40182
"""Test the cross_validation module""" from __future__ import division import warnings import numpy as np from scipy.sparse import coo_matrix from scipy import stats from sklearn.utils.testing import assert_true from sklearn.utils.testing import assert_false from sklearn.utils.testing import assert_equal from sklearn...
bsd-3-clause
DEVELByte/incubator-airflow
airflow/contrib/hooks/bigquery_hook.py
2
35738
# -*- 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
KatonaLab/vividstorm
controllers/analyses.py
1
141723
# -*- coding: utf-8 -*- """ Created on: 2015.01.11. Author: turbo """ import os from util import RunnableComponent import numpy import string import scipy from scipy import stats from scipy import spatial from scipy.spatial import ConvexHull import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D imp...
lgpl-3.0
yuginboy/from_GULP_to_FEFF
feff/libs/GaMnAs_concentration.py
1
39959
import sys import os from io import StringIO import inspect import numpy as np import matplotlib.gridspec as gridspec from matplotlib import pylab import matplotlib.pyplot as plt import scipy as sp from scipy.interpolate import interp1d from scipy.interpolate import Rbf, InterpolatedUnivariateSpline, splrep, splev, spl...
gpl-3.0
INM-6/hybridLFPy
examples/Hagen_et_al_2016_cercor/figure_13.py
2
51146
#!/usr/bin/env python # -*- coding: utf-8 -*- from plot_methods import plotting_correlation, network_sketch, plot_population, plot_signal_sum, calc_signal_power, plot_population from cellsim16popsParams_modified_spontan import multicompartment_params import analysis_params import plotting_helpers as phlp from hybridLFP...
gpl-3.0
MJuddBooth/pandas
pandas/core/arrays/timedeltas.py
1
37212
# -*- coding: utf-8 -*- from __future__ import division from datetime import timedelta import textwrap import warnings import numpy as np from pandas._libs import lib, tslibs from pandas._libs.tslibs import NaT, Timedelta, Timestamp, iNaT from pandas._libs.tslibs.fields import get_timedelta_field from pandas._libs.t...
bsd-3-clause
CompPhysics/ThesisProjects
doc/MSc/msc_students/former/AudunHansen/Audun/Pythonscripts/CCAlgebra_mk3.py
1
56358
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 = H self.I = [] HN = len(self.q_a) self.combine(H,...
cc0-1.0
geopandas/geopandas
geopandas/geoseries.py
1
40127
import json import warnings import numpy as np import pandas as pd from pandas import Series, MultiIndex from pandas.core.internals import SingleBlockManager from pyproj import CRS from shapely.geometry.base import BaseGeometry from geopandas.base import GeoPandasBase, _delegate_property from geopandas.plotting impo...
bsd-3-clause
joannedafna/validation
codes/vsuite/valid_suite.py
2
59806
__author__ = "joanne cohn" __email__ = "jcohn@berkeley.edu" __version__= "1.1" #updated BWC M*(Mh) from newer version of paper import numpy as N import matplotlib.pyplot as plt import matplotlib import matplotlib.cm as cm import matplotlib.mlab as mlab def comments(): """ Please do email me if you...
mit
plotly/python-api
packages/python/plotly/plotly/graph_objs/_splom.py
1
60340
from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Splom(_BaseTraceType): # class properties # -------------------- _parent_path_str = "" _path_str = "splom" _valid_props = { "customdata", "customdatasrc", "diagonal", "dimen...
mit
teonlamont/mne-python
mne/source_estimate.py
2
133598
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Mads Jensen <mje.mads@gmail.com> # # License: BSD (3-clause) import copy import os.path as op from math import ceil import warn...
bsd-3-clause
bmazin/SDR
DataReadout/ChannelizerControls/templarCustom.py
1
56281
import sys, os, random, math, array, fractions from PyQt4.QtCore import * from PyQt4.QtGui import * from PyQt4 import QtGui import socket import matplotlib, corr, time, struct, numpy from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import Navigatio...
gpl-2.0
Caoimhinmg/PmagPy
dialogs/thellier_gui_dialogs.py
1
93630
#!/usr/bin/env python #============================================================================================ # LOG HEADER: # # Dialogs boxes for thellier_gui.py # #============================================================================================ # # 11/16/2014 add some units to criteria dialogs # # ...
bsd-3-clause
larsmans/numpy
numpy/core/tests/test_multiarray.py
1
182060
from __future__ import division, absolute_import, print_function import tempfile import sys import os import shutil import warnings import operator import io if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as np from nose import SkipT...
bsd-3-clause
magic2du/contact_matrix
Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_01_26_2015_parallel.py
1
43371
# coding: utf-8 # In[3]: import sys, os sys.path.append('../../../libs/') import os.path import IO_class from IO_class import FileOperator from sklearn import cross_validation import sklearn import numpy as np import csv from dateutil import parser from datetime import timedelta from sklearn import svm import numpy ...
gpl-2.0
desihub/desisurvey
py/desisurvey/plots.py
1
37829
"""Utility functions for plotting DESI survey progress and planning. """ from __future__ import print_function, division import datetime import calendar import numpy as np import astropy.table import astropy.units as u import desiutil.plots import desisurvey.ephem import desisurvey.config import desisurvey.utils ...
bsd-3-clause
tensorflow/lattice
tensorflow_lattice/python/estimators_test.py
1
32020
# Copyright 2019 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, ...
apache-2.0
wuxue/altanalyze
AltAnalyze_BACKUP_6888.py
1
569185
###AltAnalyze #Copyright 2005-2008 J. David Gladstone Institutes, San Francisco California #Author Nathan Salomonis - nsalomonis@gmail.com #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 with...
apache-2.0
sthyme/ZFSchizophrenia
BehaviorAnalysis/setupfishgraphing.py
1
53272
#!/usr/bin/python import os,sys,glob,re import numpy as np import scipy import datetime import time from datetime import timedelta from AnalyzedFish import AnalyzedFish # fish object from scipy import stats from scipy.stats import norm from scipy.stats import mstats import fileloading # prepares all the files import ...
mit
pyrocko/pyrocko
src/util.py
1
71610
# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg---------- ''' Utility functions for Pyrocko. .. _time-handling-mode: High precision time handling mode ................................. Pyrocko can treat timestamps either as standard double precision (64 bit) floatin...
gpl-3.0
iled/gsimcli
GSIMCLI/interface/benchmark.py
1
30930
# -*- coding: utf-8 -*- """ Created on 13/01/2015 @author: julio """ from PySide import QtGui, QtCore import glob2 import os import sys from external_libs.pyside_dynamic import loadUi from external_libs.ui import CheckBoxDelegate import interface.checktable as ct import interface.ui_utils as ui import pandas as pd im...
gpl-3.0
bdh1011/wau
venv/lib/python2.7/site-packages/pandas/io/tests/test_json/test_pandas.py
1
30334
# pylint: disable-msg=W0612,E1101 from pandas.compat import range, lrange, StringIO, OrderedDict from pandas import compat import os import numpy as np from pandas import Series, DataFrame, DatetimeIndex, Timestamp, CategoricalIndex from datetime import timedelta import pandas as pd read_json = pd.read_json from pand...
mit
datapythonista/pandas
pandas/core/arrays/sparse/array.py
2
54943
""" SparseArray data structure """ from __future__ import annotations from collections import abc import numbers import operator from typing import ( Any, Callable, Sequence, TypeVar, ) import warnings import numpy as np from pandas._libs import lib import pandas._libs.sparse as splib from pandas._li...
bsd-3-clause
efiring/scipy
scipy/signal/filter_design.py
2
124671
"""Filter design. """ from __future__ import division, print_function, absolute_import import warnings import numpy from numpy import (atleast_1d, poly, polyval, roots, real, asarray, allclose, resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, sin, exp, cosh,...
bsd-3-clause
nolanliou/tensorflow
tensorflow/contrib/metrics/python/ops/metric_ops.py
1
154395
# 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
harisbal/pandas
pandas/tests/indexing/test_coercion.py
1
35775
# -*- coding: utf-8 -*- import itertools import numpy as np import pytest import pandas.compat as compat import pandas as pd import pandas.util.testing as tm ############################################################### # Index / Series common tests which may trigger dtype coercions #############################...
bsd-3-clause
altair-viz/altair
altair/vegalite/v4/tests/test_api.py
1
30782
"""Unit tests for altair API""" import io import json import operator import os import pathlib import tempfile import jsonschema import pytest import pandas as pd import altair.vegalite.v4 as alt try: import altair_saver # noqa: F401 except ImportError: altair_saver = None def getargs(*args, **kwargs): ...
bsd-3-clause
pizzathief/scipy
scipy/interpolate/fitpack2.py
2
66778
""" fitpack --- curve and surface fitting with splines fitpack is based on a collection of Fortran routines DIERCKX by P. Dierckx (see http://www.netlib.org/dierckx/) transformed to double routines by Pearu Peterson. """ # Created by Pearu Peterson, June,August 2003 __all__ = [ 'UnivariateSpline', 'Interpolate...
bsd-3-clause
pacoqueen/ginn
extra/install/ipython2/ipython-5.10.0/IPython/sphinxext/ipython_directive.py
1
42314
# -*- coding: utf-8 -*- """ Sphinx directive to support embedded IPython code. This directive allows pasting of entire interactive IPython sessions, prompts and all, and their code will actually get re-executed at doc build time, with all prompts renumbered sequentially. It also allows you to input code as a pure pyth...
gpl-2.0
tseaver/google-cloud-python
bigquery/tests/unit/test__pandas_helpers.py
1
48653
# Copyright 2019 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
CSchoel/nolds
nolds/measures.py
1
85723
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import ( bytes, dict, int, list, object, range, str, ascii, chr, hex, input, next, oct, open, pow, round, super, filter, map, zip ) import numpy as np import warnings im...
mit
pavel-demin/red-pitaya-notes
projects/vna/client/vna.py
1
34599
#!/usr/bin/env python3 # Control program for the Red Pitaya vector network analyzer # Copyright (C) 2021 Pavel Demin # # 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 L...
mit
r9y9/librosa
librosa/util/utils.py
1
54495
#!/usr/bin/env python # -*- coding: utf-8 -*- """Utility functions""" import scipy.ndimage import scipy.sparse import six import numpy as np from numpy.lib.stride_tricks import as_strided from .. import cache from .exceptions import ParameterError from numba import jit # Constrain STFT block sizes to 256 KB MAX_ME...
isc
rgommers/statsmodels
statsmodels/genmod/generalized_estimating_equations.py
1
84147
""" 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
President3D/Quality-SPC
src/InModel.py
1
54444
# Copyright 2017 Patrick Kuttruff # # -------------------- English -------------------- # This file is part of Quality SPC. # # Quality SPC 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 t...
gpl-3.0
mbalasso/mynumpy
numpy/lib/npyio.py
1
65499
__all__ = ['savetxt', 'loadtxt', 'genfromtxt', 'ndfromtxt', 'mafromtxt', 'recfromtxt', 'recfromcsv', 'load', 'loads', 'save', 'savez', 'savez_compressed', 'packbits', 'unpackbits', 'fromregex', 'DataSource'] import numpy as np import format import sys import os import re import sys import itertoo...
bsd-3-clause
rs2/pandas
pandas/core/strings.py
1
109440
import codecs from functools import wraps import re import textwrap from typing import TYPE_CHECKING, Any, Callable, Dict, List, Pattern, Type, Union import warnings import numpy as np import pandas._libs.lib as lib import pandas._libs.missing as libmissing import pandas._libs.ops as libops from pandas._typing import...
bsd-3-clause
ctoher/pymatgen
pymatgen/io/abinitio/flows.py
2
57614
# coding: utf-8 """ A Flow is a container for Works, and works consist of tasks. Flows are the final objects that can be dumped directly to a pickle file on disk Flows are executed using abirun (abipy). """ from __future__ import unicode_literals, division, print_function import os import sys import time import collect...
mit
toobaz/pandas
pandas/tests/reshape/merge/test_merge.py
1
72529
from collections import OrderedDict from datetime import date, datetime import random import re import numpy as np from numpy import nan import pytest from pandas.core.dtypes.common import is_categorical_dtype, is_object_dtype from pandas.core.dtypes.dtypes import CategoricalDtype import pandas as pd from pandas imp...
bsd-3-clause
taxipp/ipp-macro-series-parser
ipp_macro_series_parser/denombrements_fiscaux/agregats_ipp.py
1
36752
import collections import numpy import pandas from py_expression_eval import Parser from ipp_macro_series_parser.config import Config from ipp_macro_series_parser.denombrements_fiscaux.denombrements_parsers import ( get_denombrements_fiscaux_data_frame) from ipp_macro_series_parser.data_extraction import get_...
gpl-3.0
kevin-intel/scikit-learn
sklearn/cluster/tests/test_hierarchical.py
3
32690
""" Several basic tests for hierarchical clustering procedures """ # Authors: Vincent Michel, 2010, Gael Varoquaux 2012, # Matteo Visconti di Oleggio Castello 2014 # License: BSD 3 clause import itertools from tempfile import mkdtemp import shutil import pytest from functools import partial import numpy as n...
bsd-3-clause
Chandra-MARX/marx-test
tests/PSF.py
1
56023
''' The `point-spread function (PSF) for Chandra <http://cxc.harvard.edu/ciao/PSFs/psf_central.html>`_ describes how the light from a point source is spread over a larger area on the detector. Several effects contribute to this, e.g. the uncertainty in the pointing, the fact that the detectors are flat, while the focal...
gpl-2.0
harisbal/pandas
pandas/util/testing.py
1
101346
from __future__ import division from contextlib import contextmanager from datetime import datetime from functools import wraps import locale import os import re import string import subprocess import sys import tempfile import traceback import warnings import numpy as np from numpy.random import rand, randn from pa...
bsd-3-clause
irmen/synthesizer
synthplayer/oscillators.py
1
38071
""" Oscillators for the Sample waveform synthesizer. Inspired by FM synthesizers such as the Yamaha DX-7 and TX81Z. Creates various waveforms with adjustable parameters. Written by Irmen de Jong (irmen@razorvine.net) - License: GNU LGPL 3. """ import itertools from math import pi, sin, cos, log, fabs, floor, sqrt imp...
lgpl-3.0
toomoresuch/pysonengine
eggs/ipython-0.10.1-py2.6.egg/IPython/Shell.py
1
46259
# -*- coding: utf-8 -*- """IPython Shell classes. All the matplotlib support code was co-developed with John Hunter, matplotlib's author. """ #***************************************************************************** # Copyright (C) 2001-2006 Fernando Perez <fperez@colorado.edu> # # Distributed under the t...
mit
DanielWinklehner/dans_pymodules
dans_pymodules/mpl_canvas_wrapper.py
1
39459
import gi gi.require_version('Gtk', '3.0') # nopep8 from gi.repository import Gtk, GObject import matplotlib from matplotlib.patches import Rectangle from matplotlib.figure import Figure from matplotlib.font_manager import FontProperties from matplotlib.artist import ArtistInspector from matplotlib.lines import Line2D...
mit
justinbois/fish-activity
fishact/parse.py
1
39601
import csv import datetime import os import warnings try: import tqdm except: pass import numpy as np import pandas as pd import numba def _sniff_file_info(fname, comment='#', check_header=True, quiet=False): """ Infer number of header rows and delimiter of a file. Parameters ---------- ...
mit
cheehieu/qm-fir-digital-filter-core
ISAAC/qmfir_documentation/jasons_v/iPanel.py
1
40913
import os import pprint import random import sys import wx from wx import py from demo_ser2 import * from threading import * import time import sys import serial,time,array, math, datetime from Numeric import * ser = serial.Serial('/dev/ttyS0', 57600) #ser = serial.Serial(port='/dev/ttyUSB0', baudrate=57600) import ...
gpl-2.0
yavalvas/yav_com
build/matplotlib/lib/matplotlib/patches.py
1
142731
# -*- coding: utf-8 -*- from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import map, zip import math import matplotlib as mpl import numpy as np import matplotlib.cbook as cbook import matplotlib.artist as artist from matplotlib.a...
mit