repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
herilalaina/scikit-learn | sklearn/neighbors/tests/test_neighbors.py | 1 | 50278 | 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 |
albertfxwang/grizli | grizli/fitting.py | 1 | 122873 | """
fitting.py
Created by Gabriel Brammer on 2017-05-19.
"""
import os
import glob
import inspect
from collections import OrderedDict
import numpy as np
import astropy.io.fits as pyfits
import astropy.units as u
from astropy.cosmology import Planck15
import astropy.constants as const
from . import utils
#from .mo... | mit |
jkettleb/iris | lib/iris/unit.py | 1 | 62142 | # (C) British Crown Copyright 2010 - 2015, Met Office
#
# This file is part of Iris.
#
# Iris 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 l... | lgpl-3.0 |
artemsok/sockeye | sockeye/utils.py | 1 | 38386 | # Copyright 2017 Amazon.com, Inc. or its affiliates. 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. A copy of the License
# is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | apache-2.0 |
gbrammer/grizli | grizli/pipeline/photoz.py | 1 | 32107 | """
Helpers for working with ``eazy-py``.
"""
import numpy as np
def fix_aperture_corrections(tab, verbose=True, ref_filter=None):
"""
June 2020: Reapply total corrections using fixed bug for the kron total
corrections where the necessary pixel scale wasn't used.
"""
from grizli import prep, util... | mit |
adowaconan/Spindle_by_Graphical_Features | duplicate/eegPipelineFunctions (adowaconan).py | 1 | 31832 | # -*- coding: utf-8 -*-
"""
Created on Tue May 16 12:22:46 2017
@author: ning
"""
import mne
import pandas as pd
import numpy as np
from scipy import stats, signal
from scipy.spatial.distance import squareform, pdist
from scipy.sparse.csgraph import laplacian
import os
import networkx as nx
from sklearn.model_selectio... | mit |
JohanComparat/nbody-npt-functions | python/lib_functions_1pt.py | 1 | 51018 | # data modules
import glob
import sys
import astropy.io.fits as fits
import os
from os.path import join
import pickle
import time
# numerical modules
import numpy as n
from scipy.interpolate import interp1d
from scipy.misc import derivative
from scipy.optimize import minimize
from scipy.optimize import curve_fit
# plo... | cc0-1.0 |
PanDAWMS/panda-jedi | pandajedi/jedidog/AtlasAnalWatchDog.py | 1 | 40072 | import os
import sys
import re
import socket
import traceback
from six import iteritems
from pandajedi.jedicore.MsgWrapper import MsgWrapper
from .TypicalWatchDogBase import TypicalWatchDogBase
from pandaserver.dataservice.Activator import Activator
# logger
from pandacommon.pandalogger.PandaLogger import PandaLogge... | apache-2.0 |
idoerg/BOA | src/filter/clique_filter.py | 1 | 33467 |
"""
Creates a colored graph from HMMER output
Edges are created when two genes are within a specified radius of each other.
Colors are assigned according to function (toxin, modifier, immunity, transport, regulator)
"""
import os,sys,site
import numpy
import networkx as nx
base_path = os.path.dirname(os.path.dirname... | gpl-3.0 |
bdh1011/wau | venv/lib/python2.7/site-packages/pandas/sparse/tests/test_sparse.py | 1 | 68442 | # pylint: disable-msg=E1101,W0612
import operator
from datetime import datetime
import functools
import nose
from numpy import nan
import numpy as np
import pandas as pd
dec = np.testing.dec
from pandas.util.testing import (assert_almost_equal, assert_series_equal,
assert_frame_equa... | mit |
jandom/GromacsWrapper | gromacs/fileformats/xvg.py | 1 | 49860 | # -*- encoding: utf-8 -*-
# GromacsWrapper: formats.py
# Copyright (c) 2009-2012 Oliver Beckstein <orbeckst@gmail.com>
# Released under the GNU Public License 3 (or higher, your choice)
# See the file COPYING for details.
"""
Simple xmgrace XVG file format
==============================
Gromacs produces graphs in the ... | gpl-3.0 |
salotz/mast | mastic/molecule.py | 1 | 44373 | import numpy as np
import collections as col
import os.path as osp
from itertools import product
from mastic.selection import CoordArray, CoordArraySelection, \
Point, IndexedSelection, SelectionsDict, SelectionsList, \
Selection, SelectionMember
import mastic.config.molecule as masticmolconfig
__all__ = ['... | mit |
initNirvana/Easyphotos | env/lib/python3.4/site-packages/IPython/html/notebookapp.py | 2 | 43187 | # coding: utf-8
"""A tornado based IPython notebook server."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import base64
import datetime
import errno
import importlib
import io
import json
import logging
import os
import r... | mit |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/heatmapgl/_colorbar.py | 1 | 73289 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "heatmapgl"
_path_str = "heatmapgl.colorbar"
_valid_props = {
"bgcolor",
"b... | mit |
malariagen/agam-report-base | src/python/rockies.py | 1 | 35044 | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
from bisect import bisect_left, bisect_right
import collections
import os
import numpy as np
# import matplotlib as mpl
import matplotlib.pyplot as plt
import lmfit
import seaborn as sns
palette = sns.color_palette()
def load_v... | mit |
e2crawfo/dps | dps/utils/base.py | 1 | 88555 | from contextlib import contextmanager
import numpy as np
import signal
import time
import re
import os
import traceback
import subprocess
import copy
import datetime
import psutil
import resource
import sys
import shutil
import errno
import tempfile
import dill
from functools import wraps, partial
import inspect
import... | apache-2.0 |
aswolf/xmeos | xmeos/test/test_models_composite.py | 1 | 40896 | import numpy as np
import xmeos
from xmeos import models
from xmeos.models import core
import pytest
import matplotlib.pyplot as plt
import matplotlib as mpl
from abc import ABCMeta, abstractmethod
import copy
import test_models
#====================================================================
# Define "slow" te... | mit |
woel0007/caravel | caravel/viz.py | 1 | 58086 | """This module contains the "Viz" objects
These objects represent the backend of all the visualizations that
Caravel can render.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import copy
import hashlib
import lo... | apache-2.0 |
jseabold/statsmodels | statsmodels/tsa/statespace/structural.py | 4 | 79217 | """
Univariate structural time series models
TODO: tests: "** On entry to DLASCL, parameter number 4 had an illegal value"
Author: Chad Fulton
License: Simplified-BSD
"""
from warnings import warn
import numpy as np
from statsmodels.compat.pandas import Appender
from statsmodels.tools.tools import Bunch
from stat... | bsd-3-clause |
PascalSteger/gravimage | programs/plotting/gi_collection.py | 1 | 31019 | #!/usr/bin/env ipython3
## @file
# collect profiles and perform actions on them
# (c) 2015 ETHZ Pascal Steger, pascal@steger.aero
import numpy as np
import numpy.random as npr
import pdb
import matplotlib.pyplot as plt
from scipy.interpolate import splrep, splev
plt.ioff()
from gi_class_profiles import Profiles
im... | gpl-2.0 |
flightgong/scikit-learn | sklearn/metrics/pairwise.py | 1 | 42970 | # -*- coding: utf-8 -*-
"""
The :mod:`sklearn.metrics.pairwise` submodule implements utilities to evaluate
pairwise distances, paired distances or affinity of sets of samples.
This module contains both distance metrics and kernels. A brief summary is
given on the two here.
Distance metrics are a function d(a, b) such... | bsd-3-clause |
sfaye/TopologyWSN | py/analysis.py | 1 | 49583 |
#
# Copyright (C) 2014 Faye Sebastien <m@sfaye.com>
#
# 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 2.1 of the License, or (at your option) any late... | lgpl-3.0 |
datapythonista/pandas | pandas/tests/reshape/test_pivot.py | 1 | 77201 | from datetime import (
date,
datetime,
timedelta,
)
from itertools import product
import numpy as np
import pytest
import pandas as pd
from pandas import (
Categorical,
DataFrame,
Grouper,
Index,
MultiIndex,
Series,
concat,
date_range,
)
import pandas._testing as tm
from pa... | bsd-3-clause |
ContinuumIO/dask | dask/dataframe/io/csv.py | 1 | 30954 | from collections.abc import Mapping
from io import BytesIO
from warnings import warn, catch_warnings, simplefilter
try:
import psutil
except ImportError:
psutil = None
import numpy as np
import pandas as pd
from pandas.api.types import (
is_integer_dtype,
is_float_dtype,
is_object_dtype,
is_da... | bsd-3-clause |
lorenzo-desantis/mne-python | mne/io/base.py | 2 | 90486 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Teon Brooks <teon.brooks@gmail.com>
# Marijn van Vliet <w.m.vanvli... | bsd-3-clause |
RJT1990/pyflux | pyflux/arma/arimax.py | 1 | 41764 | import sys
if sys.version_info < (3,):
range = xrange
import numpy as np
import pandas as pd
import scipy.stats as ss
import scipy.special as sp
from patsy import dmatrices, dmatrix, demo_data
from .. import families as fam
from .. import output as op
from .. import tests as tst
from .. import tsm as tsm
from .. ... | bsd-3-clause |
kain88-de/mdanalysis | package/MDAnalysis/analysis/legacy/x3dna.py | 1 | 35175 | # -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
#
# MDAnalysis --- http://www.mdanalysis.org
# Copyright (c) 2006-2016 The MDAnalysis Development Team and contributors
# (see the file AUTHORS for the full list of names)
#
# Released under th... | gpl-2.0 |
amolkahat/pandas | pandas/tests/util/test_testing.py | 1 | 35103 | # -*- coding: utf-8 -*-
import textwrap
import os
import pandas as pd
import pytest
import numpy as np
import sys
from pandas import Series, DataFrame
import pandas.util.testing as tm
import pandas.util._test_decorators as td
from pandas.util.testing import (assert_almost_equal, raise_with_traceback,
... | bsd-3-clause |
aclerc/PCWG | pcwg_tool.py | 1 | 170222 | from Tkinter import *
from tkFileDialog import *
import tkSimpleDialog
import tkMessageBox
from dataset import getSeparatorValue
from dataset import getDecimalValue
import Analysis
import configuration
import datetime
import os
import os.path
import pandas as pd
import dateutil
columnSeparator = "|"
filterSeparator = ... | mit |
sserkez/ocelot | gui/accelerator.py | 1 | 34070 | '''
user interface for viewing/editing electron optics layouts
'''
import sys, os, csv
import matplotlib
from matplotlib.figure import Figure
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.collections import PatchCollection
import matplotlib.patches as mpatches
import matplotlib.path as mpath
i... | gpl-3.0 |
rsoutelino/romslab | build/lib.linux-x86_64-2.7/romslab.py | 1 | 55875 | #!/usr/bin/env python
# Python Module to work with ROMS
# Owner: Rafael Soutelino - rsoutelino@gmail.com
# Committers: Andre Lobato - andrefelipelobato@gmail.com
# Last modification: Mar, 2012
#####################################################################
from dateutil.parser import parse
import numpy as np
impo... | mit |
jcmgray/xarray | xarray/tests/test_computation.py | 1 | 33312 | import functools
import operator
import pickle
from collections import OrderedDict
from distutils.version import LooseVersion
import numpy as np
import pandas as pd
import pytest
from numpy.testing import assert_array_equal
import xarray as xr
from xarray.core.computation import (
_UFuncSignature, apply_ufunc, br... | apache-2.0 |
cwfinn/igmtools | igmtools/modeling/galaxy.py | 1 | 36805 | """
Set of functions for measuring the spectral properties of galaxies.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from ..plot import Plot
from astropy.stats import sigma_clip
from astropy.constants import c
from astropy.units import km, s, erg, ... | bsd-3-clause |
kevin-intel/scikit-learn | sklearn/calibration.py | 2 | 32379 | """Calibration of predicted probabilities."""
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Balazs Kegl <balazs.kegl@gmail.com>
# Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
# Mathieu Blondel <mathieu@mblondel.org>
#
# License: BSD 3 clause
import warnings
from... | bsd-3-clause |
PYPIT/PYPIT | pypeit/core/arc.py | 1 | 56216 | from __future__ import (print_function, absolute_import, division, unicode_literals)
import inspect
import numpy as np
from matplotlib import gridspec
from matplotlib import pyplot as plt
import scipy
from astropy.stats import sigma_clipped_stats, sigma_clip
from pypeit import debugger
from pypeit import msgs
fro... | gpl-3.0 |
airanmehr/bio | Scripts/KyrgysHAPH/Plot.py | 1 | 78009 | '''
Copyleft Mar 02, 2017 Arya Iranmehr, PhD Student, Bafna Lab, UC San Diego, Email: airanmehr@gmail.com
'''
import traceback
import numpy as np;
import seaborn as sns
np.set_printoptions(linewidth=200, precision=5, suppress=True)
import pandas as pd;
from matplotlib.backends.backend_pdf import PdfPages
pd.options... | mit |
matteorr/coco-analyze | pycocotools/cocoanalyze.py | 1 | 47555 | __author__ = 'mrr'
__version__ = '2.0'
import numpy as np; import time; import copy
from .cocoeval import COCOeval
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
plt.rcParams['xtick.labelsize'] = 16
plt.rcParams['ytick.labelsize'] = 16
plt.rcParams['font.family'] = 'monospace'
from colour i... | mit |
FinancialSentimentAnalysis-team/Finanical-annual-reports-analysis-code | luowang/Test_Performance/A-R-P-F-paramters.py | 1 | 30073 | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 28 10:58:04 2017
@author: Administrator
"""
from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score, fbeta_score, classification_report, precision_recall_curve, roc_curve
def get_accuracy(y_true, y_pred):
'''
function: 获取该实验结果的accura... | apache-2.0 |
jgliss/pyplis | pyplis/fluxcalc.py | 1 | 67031 | # -*- coding: utf-8 -*-
#
# Pyplis is a Python library for the analysis of UV SO2 camera data
# Copyright (C) 2017 Jonas Gliss (jonasgliss@gmail.com)
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License a
# published by the Free Software Foundat... | gpl-3.0 |
SamWitte/Codds_DarkMatter | src/experiment_HaloIndep_Band.py | 1 | 102335 | """
Copyright (c) 2015 Andreea Georgescu
Created on Wed Mar 4 00:47:37 2015
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
... | gpl-2.0 |
Eric89GXL/scipy | scipy/stats/tests/test_morestats.py | 2 | 63146 | # Author: Travis Oliphant, 2002
#
# Further enhancements and tests added by numerous SciPy developers.
#
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from numpy.random import RandomState
from numpy.testing import (assert_array_equal,
assert_almost_equal, ass... | bsd-3-clause |
nysbc/Anisotropy | ThreeDFSC/programs/ThreeDFSC_Analysis.py | 1 | 31599 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
### Require Anaconda3
### ============================
### 3D FSC Software Package
### Analysis Section
### Written by Yong Zi Tan and Dmitry Lyumkis
### Downloaded from https://github.com/nysbc/Anisotropy
###
### See Paper:
### Addressing preferred specimen orientation i... | mit |
effigies/mne-python | mne/report.py | 1 | 52810 | """Generate html report from MNE database
"""
# Authors: Alex Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Mainak Jas <mainak@neuro.hut.fi>
#
# License: BSD (3-clause)
import os
import os.path as op
import fnmatch
import re
import codecs
import time
from glob import glob
import warnings
import base64... | bsd-3-clause |
mlassnig/pilot | RunJob.py | 1 | 94604 | # Class definition:
# RunJob
# This is the main RunJob class; RunJobEvent etc will inherit from this class
# Note: at the moment, this class is essentially the old runJob module turned object oriented.
# The class will later become RunJobNormal, ie responible for running normal PanDA jobs.
# At th... | apache-2.0 |
zfrenchee/pandas | pandas/core/indexes/datetimelike.py | 1 | 30137 | """
Base and utility classes for tseries type pandas objects.
"""
import warnings
from datetime import datetime, timedelta
from pandas import compat
from pandas.compat.numpy import function as nv
from pandas.core.tools.timedeltas import to_timedelta
import numpy as np
from pandas.core.dtypes.common import (
_ens... | bsd-3-clause |
Crespo911/pyspace | pySPACE/resources/dataset_defs/performance_result.py | 1 | 75374 | """ Tabular listing data sets, parameters and a huge number of performance metrics
Store and load the performance results of an operation from a csv file,
select subsets of this results or for create various kinds of plots
**Special Static Methods**
:merge_performance_results:
Merge result*.csv files when... | gpl-3.0 |
ANR-COMPASS/shesha | shesha/util/hdf5_util.py | 1 | 31345 | ## @package shesha.util.hdf5_util
## @brief Functions for handling the database system
## @author COMPASS Team <https://github.com/ANR-COMPASS>
## @version 5.0.0
## @date 2020/05/18
## @copyright GNU Lesser General Public License
#
# This file is part of COMPASS <https://anr-compass.github.io/compass/>... | gpl-3.0 |
kambysese/mne-python | mne/viz/_3d.py | 1 | 135297 | # -*- coding: utf-8 -*-
"""Functions to make 3D plots with M/EEG data."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Mainak Jas <maina... | bsd-3-clause |
jeromecn/caravel_viz_full | caravel/forms.py | 1 | 45936 | """Contains the logic to create cohesive forms on the explore view"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from collections import OrderedDict
from copy import copy
import json
import math
from flask_babel ... | apache-2.0 |
manns/pyspread | pyspread/model/model.py | 1 | 51023 | # -*- coding: utf-8 -*-
# Copyright Martin Manns
# Distributed under the terms of the GNU General Public License
# --------------------------------------------------------------------
# pyspread is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published... | gpl-3.0 |
techtonik/numpy | numpy/lib/polynomial.py | 1 | 37729 | """
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 |
nrweir/pyto_segmenter | MitoSegment.py | 1 | 45810 | '''Classes and methods for segmentation of reticular objects within cells.'''
## IMPORT DEPENDENCIES ##
import matplotlib
matplotlib.use('Agg')
import os
import sys
import pickle
import time
from operator import itemgetter
import numpy as np
import pandas as pd
from skimage import io
from skimage.morphology import wa... | gpl-3.0 |
toobaz/pandas | pandas/tests/reshape/test_pivot.py | 1 | 84767 | from collections import OrderedDict
from datetime import date, datetime, timedelta
from itertools import product
import numpy as np
import pytest
import pandas as pd
from pandas import (
Categorical,
DataFrame,
Grouper,
Index,
MultiIndex,
Series,
concat,
date_range,
)
from pandas.api.t... | bsd-3-clause |
optimamodel/Optima | optima/gui.py | 1 | 48120 | '''
This file contains all the functions that constitute the "frontend of the backend",
i.e. native Python plotting functions. All actual plots are generated by plotting.py --
this is purely about displaying them. manualfit() and geogui() rely on PyQt4, which
is likely to fail, so it's sequestered.
Version: 2019aug06
... | lgpl-3.0 |
NlGG/EngineeringInformationSystems- | Katokadai.py | 1 | 36241 | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
class Katokadai():
def __init__(self):
self.start = [11, 3]
self.goal = [11, 13]
def cells(self):
cell = np.loadtxt( "cell.csv", delimiter="," )
cells = []
for i in range(len(cell)):
... | mit |
UMWRG/HydraPlatform | HydraServer/python/HydraServer/db/model.py | 1 | 55533 | # (c) Copyright 2013, 2014, University of Manchester
#
# HydraPlatform is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# HydraPlatfor... | gpl-3.0 |
agiovann/Constrained_NMF | use_cases/granule_cells/analysis_parallel_multisession.py | 2 | 135666 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 8 18:02:10 2016
@author: agiovann
"""
from __future__ import division
from __future__ import print_function
# analysis parallel
from builtins import next
from builtins import filter
from builtins import str
from builtins import zip
from builtins ... | gpl-2.0 |
tswast/google-cloud-python | bigquery/docs/snippets.py | 1 | 53330 | # Copyright 2016 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | apache-2.0 |
vtsuperdarn/davitpy | davitpy/pydarn/plotting/plotMapGrd.py | 1 | 39534 | # -*- coding: utf-8 -*-
# Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
"""Plotting/Retreiving SuperDARN gridded velocities, fitted convection
velocities and contour plotting routines
Class
-------
MapConv
-------
"""
import logging
import datetime as dt
import numpy as np
class Map... | gpl-3.0 |
RRCKI/panda-jedi | pandajedi/jedibrokerage/AtlasProdJobBroker.py | 1 | 70622 | import re
import sys
import datetime
from pandajedi.jediconfig import jedi_config
from pandajedi.jedicore.MsgWrapper import MsgWrapper
from pandajedi.jedicore.SiteCandidate import SiteCandidate
from pandajedi.jedicore import Interaction
from pandajedi.jedicore import JediCoreUtils
from JobBrokerBase import JobBrokerBa... | apache-2.0 |
jskDr/jamespy_py3 | repository/jgrid (james-90X3A's conflicted copy 2016-04-21).py | 1 | 40586 | """
grid search codes for machine learning
"""
from sklearn import cross_validation, cross_validation, grid_search, linear_model, svm, metrics
import numpy as np
import pandas as pd
from operator import itemgetter
import jutil
import j3x.jpyx
from jsklearn import binary_model
def gs_Lasso( xM, yV, alphas_log = (-1, ... | mit |
lgeiger/ide-python | lib/debugger/VendorLib/vs-py-debugger/pythonFiles/experimental/ptvsd/ptvsd/_vendored/pydevd/pydevd.py | 2 | 73756 | '''
Entry point module (keep at root):
This module starts the debugger.
'''
import sys
if sys.version_info[:2] < (2, 6):
raise RuntimeError('The PyDev.Debugger requires Python 2.6 onwards to be run. If you need to use an older Python version, use an older version of the debugger.')
import atexit
import os
import... | mit |
andreashorn/lead_dbs | ext_libs/OSS-DBS/OSS_platform/Electrode_files/Boston_Scientific_Vercise_profile.py | 1 | 31884 | # -*- coding: utf-8 -*-
###
### This file is generated automatically by SALOME v8.3.0 with dump python functionality
###### Run with DPS_lead_position_V9.py
import sys
import salome
salome.salome_init()
theStudy = salome.myStudy
import salome_notebook
notebook = salome_notebook.NoteBook(theStudy)
#sys.path.insert( ... | gpl-3.0 |
dssg/wikienergy | disaggregator/build/pandas/pandas/core/index.py | 1 | 168466 | # pylint: disable=E1101,E1103,W0232
import datetime
import warnings
import operator
from functools import partial
from pandas.compat import range, zip, lrange, lzip, u, reduce
from pandas import compat
import numpy as np
from sys import getsizeof
import pandas.tslib as tslib
import pandas.lib as lib
import pandas.algo... | mit |
MTgeophysics/mtpy | legacy/modeling/modem_data.py | 1 | 73445 | #!/usr/bin/env python
"""
Description:
This module defines the ModEM Data class.
It is refactored from modem.py which is too big to manage and edit
Date: 2017-06-05
"""
# from __future__ import print_function
import glob
import os
import os.path as op
import sys
import numpy as np
import mtpy.core.mt as mt
im... | gpl-3.0 |
person142/scipy | scipy/signal/signaltools.py | 1 | 146445 | # Author: Travis Oliphant
# 1999 -- 2002
import operator
import math
import timeit
from scipy.spatial import cKDTree
from . import sigtools, dlti
from ._upfirdn import upfirdn, _output_len, _upfirdn_modes
from scipy import linalg, fft as sp_fft
from scipy.fft._helper import _init_nd_shape_and_axes
import numpy as np
f... | bsd-3-clause |
poojavade/Genomics_Docker | Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test1.py | 1 | 65199 | from __future__ import print_function
import pybedtools
import gzip
import os, difflib, sys
from textwrap import dedent
from nose import with_setup
from nose.tools import assert_raises, raises
from pybedtools.helpers import BEDToolsError
from pybedtools import featurefuncs
import six
import pysam
from .tfuncs import se... | apache-2.0 |
Kate-Willett/HadISDH_Marine_Build | EUSTACE_SST_MAT/timeseries_comparison_plots.py | 1 | 45234 | #!/usr/local/sci/bin/python3 hopefully
#*****************************
#
# Take monthly merged files and output global average timeseries
#
#
#************************************************************************
'''
Author: Robert Dunn and Kate Willett
Created: March 2016
Last update: 15 April 2019
Location: /projec... | cc0-1.0 |
tedmeeds/tcga_encoder | tcga_encoder/models/pytorch/weibull_survival_sandbox.py | 1 | 42931 | from __future__ import print_function
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from torch.nn import Parameter
import torch.optim as optim
import pylab as pp
import sklearn
from sklearn.model_selection import KFold
import pdb
from lifelines... | mit |
zindy/Imaris | XTTrackPlot.py | 1 | 36243 | # -*- coding: utf-8 -*-
#
#
# TrackPlot Python XTension
#
# <CustomTools>
# <Menu name = "Python plugins">
# <Item name="Track Plot" icon="Python" tooltip="Track plot (2D and 3D plots).">
# <Command>PythonXT::XTTrackPlot(%i)</Command>
# </Item>
# </Menu>
# </CustomTools... | apache-2.0 |
thalesians/tsa | src/main/python/thalesians/tsa/checks.py | 1 | 133172 | """
`thalesians.tsa.checks`
=======================
A collection of utility functions for checking whether given conditions hold.
Those functions that start with `is_` or `are_` return `False` if a given condition does not hold and `True` if it does
hold. Those functions that start with `check_` return their a... | apache-2.0 |
WarrenWeckesser/numpy | numpy/lib/function_base.py | 1 | 154056 | 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 |
rs2/pandas | pandas/tests/io/pytables/test_store.py | 1 | 181792 | import datetime
from datetime import timedelta
from distutils.version import LooseVersion
import hashlib
from io import BytesIO
import os
from pathlib import Path
import re
import time
from warnings import catch_warnings, simplefilter
import numpy as np
import pytest
from pandas.compat import is_platform_little_endia... | bsd-3-clause |
bbabenko/simple_convnet | simple_convnet/convnet.py | 1 | 34064 | import numpy as np
from simple_convnet.helpers import (
filter2D, batch_filter3D, padarray, atleast, safe_exp, safe_log, choice, imshow
)
from matplotlib import pyplot as plt
from time import time
from skimage.transform import downscale_local_mean
class Layer(object):
def __init__(self, input_shape, rand_... | mit |
CodeMonkeyJan/hyperspy | hyperspy/roi.py | 1 | 44263 | # -*- coding: utf-8 -*-
# Copyright 2007-2016 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 |
szedlakmate/3D-truss-model-updating | Files/Experiments/truss_47_plate.py | 1 | 68617 | # -*- coding: utf-8 -*-
"""
Nightly version of truss.py code created by Máté Szedlák (2016). Copyright and other notes are the same as in the main version.
This code should be used for simulations. Please remember, that the simulation should be configured at:
"def calcstiffness_plate(self):"
"""
#Code for Proce... | gpl-3.0 |
rroart/stockstat | python/cli/lib.py | 1 | 104481 | #!/usr/bin/python3
#exec(open("./lib.py").read())
import pandas as pd
#import tensorflow as tf
import numpy as np
import scipy.stats
import psycopg2
import matplotlib.pyplot as plt
from datetime import datetime, timedelta
import time
import request
import multiprocessing as mp
import rise
import day
import ma
impor... | agpl-3.0 |
PyDataMadrid2016/Conference-Info | talks_materials/20160409_1530_The_solution_of_inverse_problems/GD_all_8.py | 1 | 39286 | # -*- coding: utf-8 -*-
import time
import numpy as np
import random
import os
import datetime
import matplotlib.pylab as plt
import datetime as dt
#import pandas as pd
from mpl_toolkits.mplot3d import Axes3D
from scipy import stats
class Fitting(object):
""" This defines a Fitting object, contain... | mit |
jcerezochem/fcc_tools | python/fcc_analyzer.py | 1 | 37200 | #!/usr/bin/python
"""
DESCRIPTION
-----------
Analyze FCclasses transitions stored in fort.21, by plotting the sticks
by classes and indicating the information of the transition. Picking on
a stick, it raises the transition description on the plot and more info
on the console. The TI convoluted spectrum is available al... | gpl-2.0 |
tgsmith61591/skutil | skutil/h2o/metrics.py | 1 | 36849 | # -*- coding: utf-8 -*-
"""Metrics for scoring H2O model predictions"""
# Author: Taylor Smith
# adapted from sklearn for use with skutil & H2OFrames
from __future__ import absolute_import, division, print_function
import abc
import warnings
import numpy as np
from sklearn.externals import six
from sklearn.metrics.ran... | bsd-3-clause |
dnjohnstone/hyperspy | hyperspy/learn/mva.py | 1 | 74767 | # -*- coding: utf-8 -*-
# Copyright 2007-2020 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 |
Quantipy/quantipy | quantipy/core/stack.py | 1 | 123334 |
#-*- coding: utf-8 -*-
import io
import itertools
import json
import pandas as pd
import numpy as np
import quantipy as qp
import copy
import time
import sys
import warnings
from link import Link
from chain import Chain
from view import View
from helpers import functions
from view_generators.view_map... | mit |
phobson/statsmodels | statsmodels/tsa/arima_model.py | 1 | 77520 | # Note: The information criteria add 1 to the number of parameters
# whenever the model has an AR or MA term since, in principle,
# the variance could be treated as a free parameter and restricted
# This code does not allow this, but it adds consistency with other
# packages such as gretl and X1... | bsd-3-clause |
3DGenomes/tadbit | _pytadbit/tools/tadbit_bin.py | 1 | 32190 | """
information needed
- path working directory with parsed reads
"""
from argparse import HelpFormatter
from os import path, remove, system
from sys import stdout
from shutil import copyfile
from string ... | gpl-3.0 |
innisfree/LHCO_reader | LHCO_reader/LHCO_reader.py | 1 | 100880 | #!/usr/bin/env python
r"""
============
Introduction
============
:mod:`LHCO_reader` is a Python module for reading `LHCO files <http://madgraph.phys.ucl.ac.be/Manual/lhco.html>`_ from detector simulators such as `PGS <http://www.physics.ucdavis.edu/~conway/research/software/pgs/pgs4-general.htm>`_ into a Python class... | gpl-2.0 |
trycs/ozelot | examples/eurominder/eurominder/pipeline.py | 1 | 32131 | """ETL pipeline for project 'eurominder'
"""
from __future__ import absolute_import
from builtins import zip
from builtins import range
from os import path
import luigi
import pandas as pd
from sqlalchemy.orm.exc import NoResultFound
import sqlalchemy as sa
import pygeoj
from . import models
from ozelot import clien... | mit |
teonlamont/mne-python | mne/viz/topomap.py | 2 | 102150 | """Functions to plot M/EEG data e.g. topographies."""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com... | bsd-3-clause |
wehlutyk/brainscopypaste | brainscopypaste/features.py | 1 | 36868 | """Features for words in substitutions.
This module defines the :class:`SubstitutionFeaturesMixin` which is used to
augment :class:`~.db.Substitution`\ s with convenience methods that give access
to feature values and related computed values (e.g. sentence-relative feature
values and values for composite features).
A... | gpl-3.0 |
springer-math/Mathematics-of-Epidemics-on-Networks | EoN/simulation_investigation.py | 1 | 42351 | import networkx as nx
import EoN
import matplotlib.pyplot as plt
import random
import numpy as np
from matplotlib.animation import FuncAnimation
from collections import defaultdict
class Simulation_Investigation():
r'''Simulation_Display is a class which is used for creating a particular
type of plo... | mit |
olafhauk/mne-python | mne/utils/docs.py | 1 | 96938 | # -*- coding: utf-8 -*-
"""The documentation functions."""
# Authors: Eric Larson <larson.eric.d@gmail.com>
#
# License: BSD (3-clause)
from copy import deepcopy
import inspect
import os
import os.path as op
import sys
import warnings
import webbrowser
from .config import get_config
from ..defaults import HEAD_SIZE_D... | bsd-3-clause |
ContinuumIO/odo | odo/backends/sql.py | 2 | 34291 | from __future__ import absolute_import, division, print_function
import numbers
import os
import re
import subprocess
import sys
import decimal
import warnings
from functools import partial
from operator import attrgetter
from itertools import chain
from collections import Iterator
from datetime import datetime, date... | bsd-3-clause |
akaihola/PyChecker | pychecker/checker.py | 1 | 34569 | #!/usr/bin/env python
# Copyright (c) 2001-2004, MetaSlash Inc. All rights reserved.
# Portions Copyright (c) 2005, Google, Inc. All rights reserved.
"""
Check python source code files for possible errors and print warnings
Contact Info:
http://pychecker.sourceforge.net/
pychecker-list@lists.sourceforge.net
""... | bsd-3-clause |
vhaasteren/ptaresamplelib | ptaresamplelib/ptaresamplelib.py | 1 | 39949 | from __future__ import division, print_function
import matplotlib.pyplot as plt
import numpy as np
import scipy.linalg as sl
import scipy.stats as stats
import scipy.special as ss
import scipy.ndimage.filters as filters
import scipy.interpolate as interp
import ptmcmc
import bounded_kde
try:
import piccard as pic
... | gpl-3.0 |
kdebrab/pandas | pandas/core/strings.py | 1 | 93312 | import numpy as np
from pandas.compat import zip
from pandas.core.dtypes.generic import ABCSeries, ABCIndex
from pandas.core.dtypes.missing import isna, notna
from pandas.core.dtypes.common import (
is_bool_dtype,
is_categorical_dtype,
is_object_dtype,
is_string_like,
is_list_like,
is_scalar,
... | bsd-3-clause |
kluksa/validacija_aplikacija | app/model/qtmodels.py | 1 | 34112 | # -*- coding: utf-8 -*-
import logging
import copy
import numpy as np
import pandas as pd
from PyQt4 import QtGui, QtCore
################################################################################
################################################################################
class TreeItem(object):
"""
... | gpl-3.0 |
mrgloom/h2o-3 | h2o-py/h2o/h2o.py | 1 | 75759 | import warnings
warnings.simplefilter('always', DeprecationWarning)
import os
import functools
import os.path
import re
import urllib
import urllib2
import json
import imp
import random
import tabulate
from connection import H2OConnection
from job import H2OJob
from expr import ExprNode
from frame import H2OFrame, _py_... | apache-2.0 |
Transkribus/TranskribusDU | TranskribusDU/contentProcessing/taggerTrainKeras.py | 1 | 31797 | # -*- coding: utf-8 -*-
"""
taggerTrainingKeras.py
train Deep Named entities tagger
H. Déjean
copyright Naverlabs 2017
READ project
Developed for the EU project READ. The READ project has received funding
from the European Union's Horizon 2020 research and inn... | bsd-3-clause |
kevin-intel/scikit-learn | sklearn/utils/tests/test_sparsefuncs.py | 3 | 32739 | import pytest
import numpy as np
import scipy.sparse as sp
from scipy import linalg
from numpy.testing import assert_array_almost_equal, assert_array_equal
from numpy.random import RandomState
from sklearn.datasets import make_classification
from sklearn.utils.sparsefuncs import (mean_variance_axis,
... | bsd-3-clause |
pierre-chaville/automlk | automlk/dataset.py | 1 | 30530 | import logging
import pickle
import glob
import datetime
import shutil
import pandas as pd
import numpy as np
from .metrics import metric_map
from .store import *
from .textset import get_textset_list
from .context import get_dataset_folder
from .folders import get_folder_list
from .xyset import XySet
log = logging.g... | mit |
miguel1velazquez/FJbackSPIN | backSPIN.py | 1 | 37332 | #!/usr/bin/env python
# Copyright (c) 2015, Amit Zeisel, Gioele La Manno and Sten Linnarsson
# 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 source code must retain the a... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.