repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
googlearchive/rgc-models | response_model/python/population_subunits/coarse/analysis/few_cells_tf_refractoring_analyse.py | 1 | 68912 | # Copyright 2018 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 |
wuxue/altanalyze | AltAnalyze_BASE_6888.py | 1 | 487381 | #!/usr/local/bin/python2.6
###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... | apache-2.0 |
lo-co/atm-py | atmPy/for_removal/miniSASP/miniSASP.py | 6 | 46804 | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 19 21:23:22 2015
@author: htelg
"""
import warnings
import numpy as np
import pandas as pd
import pylab as plt
from scipy import stats
from atmPy.tools import array_tools, plt_tools
from atmPy.tools import math_linear_algebra as mla
# from scipy impor... | mit |
squirrelo/qiita | qiita_ware/test/test_ebi.py | 1 | 66383 | from __future__ import division
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The Qiita Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# ---------------... | bsd-3-clause |
mit-crpg/openmc | openmc/plotter.py | 6 | 38919 | from itertools import chain
from numbers import Integral, Real
import string
import numpy as np
import openmc.checkvalue as cv
import openmc.data
# Supported keywords for continuous-energy cross section plotting
PLOT_TYPES = ['total', 'scatter', 'elastic', 'inelastic', 'fission',
'absorption', 'capture... | mit |
nmih/ssbio | ssbio/pipeline/atlas.py | 2 | 42034 | import logging
import os
import os.path as op
import sys
from copy import copy, deepcopy
import cobra.flux_analysis
import cobra.manipulation
import numpy as np
import pandas as pd
from Bio import SeqIO
from cobra.core import DictList
from slugify import Slugify
import ssbio.core.modelpro
import ssbio.databases.ncbi
... | mit |
yiakwy/numpy | numpy/core/code_generators/ufunc_docstrings.py | 51 | 90047 | """
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
numpy/core/code_generators/generate_umath.py to generate the docstrings
for the ufuncs in numpy.co... | bsd-3-clause |
fboers/jumegX | decompose/ocarta.py | 1 | 78353 | # Authors: Lukas Breuer <l.breuer@fz-juelich.de>
"""
----------------------------------------------------------------------
--- jumeg.decompose.ocarta -------------------------------------------
----------------------------------------------------------------------
author : Lukas Breuer
email : l.breuer@fz-... | bsd-3-clause |
nzhagen/zemaxglass | ZemaxGlass.py | 1 | 43428 | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
from numpy import *
import os, glob, sys
import matplotlib.pyplot as plt
import matplotlib.transforms
from matplotlib.transforms import offset_copy
import colorsys
from cycler import cycler
import pdb
'''
This file contains a set of utilities for reading Zemax glass (*.a... | mit |
neale/CS-program | 434-MachineLearning/final_project/linearClassifier/sklearn/feature_extraction/text.py | 15 | 50250 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gmail.com>
#
# License: B... | unlicense |
tsherwen/AC_tools | AC_tools/variables.py | 1 | 94299 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Variable store/dictionarys for use in AC_tools
Use help(<name of function>) to get details on a particular function.
Notes
- This code will be updated to use a user configuration approach (*.rc file) shortly
"""
# - Required modules:
# I/O / Low level
import re
import o... | mit |
Cuuuurzel/KiPyCalc | sympy_old/utilities/runtests.py | 2 | 50273 | """
This is our testing framework.
Goals:
* it should be compatible with py.test and operate very similarly (or
identically)
* doesn't require any external dependencies
* preferably all the functionality should be in this file only
* no magic, just import the test file and execute the test functions, that's it
* port... | mit |
sirusb/pastis | doc/sphinxext/gen_rst.py | 3 | 30132 | """
Example generation for the scikit learn
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
from time import time
import os
import shutil
import traceback
import glob
import sys
from StringIO import StringIO
import cPickle
im... | bsd-3-clause |
averagehat/scikit-bio | skbio/sequence/tests/test_sequence.py | 3 | 104848 | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | bsd-3-clause |
OzFlux/PyFluxPro | scripts/pfp_rpLT.py | 1 | 31173 | """ Routines for estimating ER using Lloyd-Taylor """
# standard modules
import calendar
import datetime
import inspect
import logging
import os
# 3rd party modules
import numpy
import matplotlib.pyplot as plt
import scipy
# PFP modules
from scripts import constants as c
from scripts import pfp_cfg
from scripts import ... | bsd-3-clause |
zihua/scikit-learn | sklearn/ensemble/forest.py | 1 | 66530 | """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 |
tswast/google-cloud-python | automl/google/cloud/automl_v1beta1/tables/tables_client.py | 1 | 124014 | # -*- coding: utf-8 -*-
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | apache-2.0 |
Mistobaan/tensorflow | tensorflow/contrib/learn/python/learn/estimators/dnn_test.py | 19 | 60823 | # 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 |
RobertABT/heightmap | build/scipy/scipy/stats/morestats.py | 4 | 70239 | # 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, amin, amax, an... | mit |
antiface/mne-python | mne/viz/topomap.py | 2 | 58426 | """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 |
jniediek/mne-python | mne/io/base.py | 2 | 95183 | # 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 |
befelix/scipy | scipy/special/add_newdocs.py | 2 | 164035 | # Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# generate_ufuncs.py to generate the docstrings for the ufuncs in
# scipy.special at the C lev... | bsd-3-clause |
Eric89GXL/mne-python | mne/viz/_figure.py | 2 | 113010 | # -*- coding: utf-8 -*-
"""Figure classes for MNE-Python's 2D plots.
Class Hierarchy
---------------
MNEFigParams Container object, attached to MNEFigure by default. Sets
close_key='escape' plus whatever other key-value pairs are
passed to its constructor.
matplotlib.figure.Figure
... | bsd-3-clause |
vortex-ape/scikit-learn | sklearn/datasets/base.py | 4 | 31775 | """
Base IO code for all datasets
"""
# Copyright (c) 2007 David Cournapeau <cournape@gmail.com>
# 2010 Fabian Pedregosa <fabian.pedregosa@inria.fr>
# 2010 Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
from __future__ import print_function
import os
import csv
import sy... | bsd-3-clause |
walterreade/scikit-learn | sklearn/model_selection/tests/test_search.py | 23 | 30837 | """Test the search module"""
from collections import Iterable, Sized
from sklearn.externals.six.moves import cStringIO as StringIO
from sklearn.externals.six.moves import xrange
from itertools import chain, product
import pickle
import sys
import numpy as np
import scipy.sparse as sp
from sklearn.utils.fixes import ... | bsd-3-clause |
caisq/tensorflow | tensorflow/contrib/learn/python/learn/estimators/dnn_test.py | 30 | 60826 | # 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 |
IssamLaradji/scikit-learn | sklearn/tests/test_cross_validation.py | 6 | 40805 | """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 |
Reagankm/KnockKnock | venv/lib/python3.4/site-packages/matplotlib/offsetbox.py | 11 | 53384 | """
The OffsetBox is a simple container artist. The child artist are meant
to be drawn at a relative position to its parent. The [VH]Packer,
DrawingArea and TextArea are derived from the OffsetBox.
The [VH]Packer automatically adjust the relative postisions of their
children, which should be instances of the OffsetBo... | gpl-2.0 |
CamDavidsonPilon/lifetimes | tests/test_estimation.py | 1 | 43234 | # -*- coding: utf-8 -*-
from __future__ import print_function
import numpy as np
import pandas as pd
import numpy.testing as npt
import pytest
import os
from collections import OrderedDict
import lifetimes as lt
import lifetimes.utils as utils
from lifetimes.datasets import (
load_cdnow_summary,
load_cdnow_su... | mit |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/backends/backend_gtk3.py | 10 | 33857 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import os, sys
def fn_name(): return sys._getframe(1).f_code.co_name
try:
import gi
except ImportError:
raise ImportError("Gtk3 backend requires pygobject to be installed.")
try:
gi.re... | gpl-3.0 |
SeverTopan/AdjSim | adjsim/decision.py | 1 | 44149 | """Decision module.
This module contains the different decision functors used by agents to call actions.
Also contains helper classes used by these.
Designed and developed by Sever Topan.
"""
# Standard.
import os
import sys
import re
import pickle
import random
import re
import copy
import math
# Third party.
from... | gpl-3.0 |
wzbozon/statsmodels | statsmodels/tsa/statespace/tests/test_representation.py | 3 | 40317 | """
Tests for python wrapper of state space representation and filtering
Author: Chad Fulton
License: Simplified-BSD
References
----------
Kim, Chang-Jin, and Charles R. Nelson. 1999.
"State-Space Models with Regime Switching:
Classical and Gibbs-Sampling Approaches with Applications".
MIT Press Books. The MIT Press... | bsd-3-clause |
j-faria/OPEN | OPEN/core.py | 1 | 132731 | # -*- coding: utf-8 -*-
#
# Copyright (c) 2013 João Faria
# This file is part of OPEN which is licensed under the MIT license.
# You should have received a copy of the license along with OPEN. See LICENSE.
#
# standard library imports
import warnings
import datetime, time
import subprocess
import sys, os, shutil, glob... | mit |
bert9bert/statsmodels | statsmodels/base/model.py | 1 | 81082 | from __future__ import print_function
from statsmodels.compat.python import iterkeys, lzip, range, reduce
import numpy as np
from scipy import stats
from statsmodels.base.data import handle_data
from statsmodels.tools.data import _is_using_pandas
from statsmodels.tools.tools import recipr, nan_dot
from statsmodels.stat... | bsd-3-clause |
ClimbsRocks/scikit-learn | sklearn/tree/tests/test_tree.py | 7 | 55471 | """
Testing for the tree module (sklearn.tree).
"""
import pickle
from functools import partial
from itertools import product
import struct
import numpy as np
from scipy.sparse import csc_matrix
from scipy.sparse import csr_matrix
from scipy.sparse import coo_matrix
from sklearn.random_projection import sparse_random... | bsd-3-clause |
kdebrab/pandas | pandas/tests/test_base.py | 1 | 46309 | # -*- coding: utf-8 -*-
from __future__ import print_function
import re
import sys
from datetime import datetime, timedelta
import pytest
import numpy as np
import pandas as pd
import pandas.compat as compat
from pandas.core.dtypes.common import (
is_object_dtype, is_datetimetz, is_datetime64_dtype,
needs_i8_... | bsd-3-clause |
mtconley/turntable | test/lib/python2.7/site-packages/scipy/stats/stats.py | 7 | 146338 | # Copyright (c) Gary Strangman. All rights reserved
#
# Disclaimer
#
# This software is provided "as-is". There are no expressed or implied
# warranties of any kind, including, but not limited to, the warranties
# of merchantability and fitness for a given application. In no event
# shall Gary Strangman be liable fo... | mit |
yl565/statsmodels | statsmodels/regression/mixed_linear_model.py | 1 | 91491 | """
Linear mixed effects models are regression models for dependent data.
They can be used to estimate regression relationships involving both
means and variances.
These models are also known as multilevel linear models, and
hierarchical linear models.
The MixedLM class fits linear mixed effects models to data, and
p... | bsd-3-clause |
bobbymckinney/seebeck_measurement | program_roomtemp/Tempurature_Monitor.py | 2 | 51036 | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
Created: 2015-05-29
@author: Bobby McKinney (bobbymckinney@gmail.com)
__Title__ : room temp seebeck
Description:
Comments:
"""
import os
import sys
import wx
from wx.lib.pubsub import pub # For communicating b/w the thread and the GUI
import matplotlib
matplotlib.interac... | gpl-3.0 |
BigDataforYou/movie_recommendation_workshop_1 | big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/formats/format.py | 1 | 96673 | # -*- coding: utf-8 -*-
from __future__ import print_function
from distutils.version import LooseVersion
# pylint: disable=W0141
import sys
from pandas.core.base import PandasObject
from pandas.core.common import isnull, notnull
from pandas.core.index import Index, MultiIndex, _ensure_index
from pandas import compat
... | mit |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/icicle/_marker.py | 1 | 34956 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Marker(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "icicle"
_path_str = "icicle.marker"
_valid_props = {
"autocolorscale",
"caut... | mit |
adbuerger/PECas | pecas/pecas.py | 1 | 31338 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2014-2015 Adrian Bürger
#
# This file is part of PECas.
#
# PECas 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 Lice... | lgpl-3.0 |
yk5/incubator-airflow | airflow/contrib/hooks/bigquery_hook.py | 1 | 62908 | # -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
#... | apache-2.0 |
jakobworldpeace/scikit-learn | sklearn/model_selection/tests/test_search.py | 15 | 51803 | """Test the search module"""
from collections import Iterable, Sized
from sklearn.externals.six.moves import cStringIO as StringIO
from sklearn.externals.six.moves import xrange
from sklearn.externals.joblib._compat import PY3_OR_LATER
from itertools import chain, product
import pickle
import sys
import numpy as np
i... | bsd-3-clause |
haojunyu/numpy | numpy/lib/function_base.py | 13 | 143198 | from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | bsd-3-clause |
MechCoder/scikit-learn | sklearn/ensemble/forest.py | 8 | 76057 | """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 |
ammarkhann/FinalSeniorCode | lib/python2.7/site-packages/matplotlib/tests/test_triangulation.py | 5 | 42161 | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.tri as mtri
from nose.tools import assert_equal, assert_raises, assert_true, assert_false
from numpy.testing import assert_array_... | mit |
kaiserroll14/301finalproject | main/pandas/tests/test_indexing.py | 9 | 193467 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101
import sys
import nose
import itertools
import warnings
from datetime import datetime
from pandas.compat import range, lrange, lzip, StringIO, lmap, map
from pandas.tslib import NaT
from numpy import nan
from numpy.random import randn
import numpy as np
import... | gpl-3.0 |
kmike/scikit-learn | sklearn/gaussian_process/gaussian_process.py | 4 | 33781 | from __future__ import print_function
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# License: BSD style
import numpy as np
from scipy import linalg, optimize, rand
from ..base import BaseEstimator, Regressor... | bsd-3-clause |
xccui/flink | flink-python/pyflink/table/tests/test_table_environment_api.py | 2 | 45012 | ################################################################################
# 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... | apache-2.0 |
winklerand/pandas | pandas/core/internals.py | 1 | 193391 | import warnings
import copy
from warnings import catch_warnings
import inspect
import itertools
import re
import operator
from datetime import datetime, timedelta, date
from collections import defaultdict
from functools import partial
import numpy as np
from pandas.core.base import PandasObject
from pandas.core.dtyp... | bsd-3-clause |
puruckertom/ubertool | ubertool/agdrift/agdrift_functions.py | 1 | 72844 | from __future__ import division # brings in Python 3.0 mixed type calculation rules
from functools import wraps
import logging
import numpy as np
import os
import pandas as pd
from scipy.optimize import curve_fit
# from sqlalchemy import Column, Table, Integer, Float, String, create_engine
# from sqlalchemy.ext.declar... | unlicense |
rohit21122012/DCASE2013 | runs/2016/baseline128/task1_scene_classification.py | 6 | 34635 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DCASE 2016::Acoustic Scene Classification / Baseline System
from src.ui import *
from src.general import *
from src.files import *
from src.features import *
from src.dataset import *
from src.evaluation import *
import numpy
import csv
import argparse
import textwra... | mit |
DailyActie/Surrogate-Model | 01-codes/scikit-learn-master/sklearn/feature_extraction/tests/test_text.py | 1 | 35597 | from __future__ import unicode_literals
import pickle
import warnings
from collections import defaultdict, Mapping
from functools import partial
from io import StringIO
import numpy as np
from nose import SkipTest
from nose.tools import assert_almost_equal
from nose.tools import assert_equal
from nose.tools import as... | mit |
Gorbagzog/StageIAP | HorizonAGN.py | 1 | 55045 | #!/usr/bin/env python3
# -*-coding:Utf-8 -*
import numpy as np
import pyfits
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
import time
""" Code for loading the Clotilde Laigle Catalog on Horizon AGN and performing
computations with it.
"""
zbins_Cone = np.array([0, 1, 2, 3])
numzbin = np.size(... | gpl-3.0 |
thunderhoser/GewitterGefahr | gewittergefahr/scripts/plot_storm_outlines.py | 1 | 35026 | """Plots storm outlines (along with IDs) at each time step."""
import pickle
import argparse
import numpy
import matplotlib
matplotlib.use('agg')
import matplotlib.colors
import matplotlib.pyplot as pyplot
from gewittergefahr.gg_utils import radar_utils
from gewittergefahr.gg_utils import radar_sparse_to_full as radar... | mit |
cython-testbed/pandas | pandas/plotting/_converter.py | 1 | 39090 | import warnings
from datetime import datetime, timedelta
import datetime as pydt
import numpy as np
from dateutil.relativedelta import relativedelta
import matplotlib.units as units
import matplotlib.dates as dates
from matplotlib.ticker import Formatter, AutoLocator, Locator
from matplotlib.transforms import nonsin... | bsd-3-clause |
giruenf/GRIPy | classes/ui/canvas_base.py | 1 | 64191 | # -*- coding: utf-8 -*-
import numpy as np
import wx
np.set_printoptions(suppress=True)
import matplotlib
from matplotlib.axes import Axes
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.ticker import NullLocator
from matplotlib.ti... | apache-2.0 |
cogstat/cogstat | cogstat/cogstat_stat.py | 1 | 43039 | # -*- coding: utf-8 -*-
"""
This module contains functions for statistical analysis.
The functions will calculate the text and graphical results that are
compiled in cogstat methods.
Arguments are the pandas data frame (pdf), and parameters (among others they
are usually variable names).
Output is text (html and some... | gpl-3.0 |
gsnyder206/mock-surveys | original_illustris/illustris_lightcone_catalogs.py | 1 | 37154 | import cProfile
import pstats
import math
import string
import sys
import struct
import matplotlib
import matplotlib.pyplot as pyplot
import matplotlib.colors as pycolors
import matplotlib.cm as cm
import numpy as np
import asciitable
import scipy.ndimage
import scipy.stats as ss
import scipy.signal
import scipy as sp
... | mit |
tectronics/satstress | satstress/gsn.py | 3 | 74305 | #!/usr/bin/python
"""
A Geological Superposition Network (GSN) is a data structure encoding both
geographic and stratigraphic information about features on the surface of a
planetary body. It uses directed graphs (or "digraphs"), a construct from
discrete mathematics, to manipulate both the geography and superposition... | gpl-3.0 |
msrconsulting/atm-py | build/lib/atmPy/aerosols/size_distr/sizedistribution.py | 6 | 80435 | import datetime
import warnings
from copy import deepcopy
import numpy as np
import pandas as pd
import pylab as plt
import scipy.optimize as optimization
from matplotlib.colors import LogNorm
from scipy import integrate
from scipy import stats
from atmPy.atmos import vertical_profile, timeseries
from at... | mit |
jreback/pandas | pandas/tests/indexes/datetimes/test_constructors.py | 2 | 41490 | from datetime import datetime, timedelta, timezone
from functools import partial
from operator import attrgetter
import dateutil
import numpy as np
import pytest
import pytz
from pandas._libs.tslibs import OutOfBoundsDatetime, conversion
import pandas as pd
from pandas import DatetimeIndex, Index, Timestamp, date_ra... | bsd-3-clause |
cpaulik/scipy | scipy/optimize/nonlin.py | 14 | 46628 | r"""
=================
Nonlinear solvers
=================
.. currentmodule:: scipy.optimize
This is a collection of general-purpose nonlinear multidimensional
solvers. These solvers find *x* for which *F(x) = 0*. Both *x*
and *F* can be multidimensional.
Routines
========
Large-scale nonlinear solvers:
.. autos... | bsd-3-clause |
RicardoBoccoliGallego/DigitalPedalBoard | gui.py | 2 | 40089 | # -*- coding: utf-8 -*-
# This file is part of DigitalPedalBoard python program.
# Copyright (C) 2013 Copyright (C) 2013 Daniel Ken Fujimori Killner,
# Gabriel Moura Vieira Martinez, Rafael Alves de Araujo Sena,
# Ricardo Boccoli Gallego, Danilo de Jesus da Silva Bellini.
#
# DigitalPedalBoard is free software: you can... | gpl-3.0 |
louispotok/pandas | pandas/tests/series/test_timeseries.py | 3 | 35025 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import pytest
import numpy as np
from datetime import datetime, timedelta, time
import pandas as pd
import pandas.util.testing as tm
import pandas.util._test_decorators as td
from pandas._libs.tslib import iNaT
from pandas.compat import lrange, StringIO, product
from ... | bsd-3-clause |
olologin/scikit-learn | sklearn/linear_model/coordinate_descent.py | 9 | 81091 | # 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 |
wateraccounting/wa | General/raster_conversions.py | 1 | 30795 | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 16 19:04:22 2016
@author: tih
"""
import pandas as pd
import glob
import gdal
import osr
import os
import numpy as np
import subprocess
from pyproj import Proj, transform
import scipy.interpolate
def Run_command_window(argument):
"""
This function runs the argume... | apache-2.0 |
glennq/scikit-learn | sklearn/gaussian_process/gpc.py | 13 | 31632 | """Gaussian processes classification."""
# Authors: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de>
#
# License: BSD 3 clause
import warnings
from operator import itemgetter
import numpy as np
from scipy.linalg import cholesky, cho_solve, solve
from scipy.optimize import fmin_l_bfgs_b
from scipy.special import erf... | bsd-3-clause |
webmasterraj/FogOrNot | flask/lib/python2.7/site-packages/pandas/core/panel.py | 2 | 51749 | """
Contains data structures designed for manipulating panel (3-dimensional) data
"""
# pylint: disable=E1103,W0231,W0212,W0621
from __future__ import division
from pandas.compat import (map, zip, range, lrange, lmap, u, OrderedDict,
OrderedDefaultdict)
from pandas import compat
import sys
im... | gpl-2.0 |
ndingwall/scikit-learn | sklearn/preprocessing/_encoders.py | 6 | 32932 | # Authors: Andreas Mueller <amueller@ais.uni-bonn.de>
# Joris Van den Bossche <jorisvandenbossche@gmail.com>
# License: BSD 3 clause
import numpy as np
from scipy import sparse
import numbers
from ..base import BaseEstimator, TransformerMixin
from ..utils import check_array, is_scalar_nan
from ..utils.valida... | bsd-3-clause |
kgullikson88/General | HelperFunctions.py | 1 | 43796 | """
Just a set of helper functions that I use often
VERY miscellaneous!
"""
import os
import csv
from collections import defaultdict
import logging
from astropy import units as u, constants
from scipy.optimize import bisect
from scipy.stats import scoreatpercentile
from scipy.signal import kaiserord, firwin, l... | gpl-3.0 |
cpaulik/xray | xray/core/dataset.py | 1 | 78417 | import functools
import warnings
from collections import Mapping, Sequence
from numbers import Number
import numpy as np
import pandas as pd
from . import ops
from . import utils
from . import common
from . import groupby
from . import indexing
from . import alignment
from . import formatting
from .. import conventio... | apache-2.0 |
huzq/scikit-learn | sklearn/svm/_classes.py | 2 | 56230 | import numpy as np
from ._base import _fit_liblinear, BaseSVC, BaseLibSVM
from ..base import BaseEstimator, RegressorMixin, OutlierMixin
from ..linear_model._base import LinearClassifierMixin, SparseCoefMixin, \
LinearModel
from ..utils.validation import _num_samples
from ..utils.validation import _deprecate_posit... | bsd-3-clause |
ContinuumIO/dask | dask/dataframe/tests/test_groupby.py | 2 | 78504 | import collections
import warnings
from packaging import version
import numpy as np
import pandas as pd
import pytest
import dask
from dask.utils import M
import dask.dataframe as dd
from dask.dataframe._compat import tm, PANDAS_GT_100
from dask.dataframe import _compat
from dask.dataframe.utils import (
assert_... | bsd-3-clause |
roaminsight/roamresearch | BlogPosts/Prescription_based_prediction/prescription_based_prediction.py | 1 | 30401 | """
The is the experimental framework associated with the Roam blog post
'Prescription-based prediction': URL
"""
from collections import Counter
from colour import Color
import json
import matplotlib.pyplot as plt
import numpy as np
from operator import itemgetter
import pandas as pd
from scipy import stats
import six... | apache-2.0 |
ibis-inria/wellFARE | wellfare/curves/Curve.py | 1 | 34742 | """
pycurves
---------
This module implements the Curve class. Curve instances store two
arrays `curve.x` and `curve.y` which represent a function y=f(x). Many
operations on the curves which generally require a few lines of code
can be done in one line using the methods of Curve instances:
Features
~~~~~~~~~
Here i... | lgpl-3.0 |
Stargrazer82301/CAAPR | CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/analysis/heating/cell.py | 1 | 30102 | #!/usr/bin/env python
# -*- coding: utf8 -*-
# *****************************************************************
# ** PTS -- Python Toolkit for working with SKIRT **
# ** © Astronomical Observatory, Ghent University **
# *****************************************************************
##... | mit |
QuLogic/iris | lib/iris/tests/test_plot.py | 3 | 32979 | # (C) British Crown Copyright 2010 - 2017, 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... | gpl-3.0 |
sniemi/EuclidVisibleInstrument | analysis/biasCalibration.py | 1 | 41335 | """
Bias Calibration
================
This simple script can be used to study the number of bias frames required to meet the VIS calibration requirements.
The following requirements related to the bias calibration has been taken from GDPRD.
R-GDP-CAL-052:
The contribution of the residuals of VIS bias subtraction to ... | bsd-2-clause |
jor-/scipy | scipy/special/add_newdocs.py | 1 | 208122 | # 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 |
andreashorn/lead_dbs | ext_libs/OSS-DBS/OSS_platform/Electrode_files/Medtronic3391_floating_profile.py | 1 | 30518 | # -*- 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)
###
### GEOM com... | gpl-3.0 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/util/testing.py | 1 | 75462 | from __future__ import division
# pylint: disable-msg=W0402
# flake8: noqa
import random
import re
import string
import sys
import tempfile
import warnings
import inspect
import os
import subprocess
import locale
import unittest
import traceback
from datetime import datetime
from functools import wraps, partial
from... | gpl-2.0 |
mwiebe/numpy | numpy/core/code_generators/ufunc_docstrings.py | 14 | 90528 | """
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
numpy/core/code_generators/generate_umath.py to generate the docstrings
for the ufuncs in numpy.co... | bsd-3-clause |
sonnyhu/scikit-learn | sklearn/metrics/tests/test_classification.py | 1 | 55376 | 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 |
davidnmurray/iris | lib/iris/tests/test_plot.py | 8 | 32082 | # (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... | gpl-3.0 |
stevenzhang18/Indeed-Flask | lib/pandas/tests/test_internals.py | 9 | 45145 | # -*- coding: utf-8 -*-
# pylint: disable=W0102
from datetime import datetime, date
import nose
import numpy as np
import re
import itertools
from pandas import Index, MultiIndex, DataFrame, DatetimeIndex, Series, Categorical
from pandas.compat import OrderedDict, lrange
from pandas.sparse.array import SparseArray
f... | apache-2.0 |
chaffra/sympy | sympy/plotting/plot.py | 1 | 65501 | """Plotting module for Sympy.
A plot is represented by the ``Plot`` class that contains a reference to the
backend and a list of the data series to be plotted. The data series are
instances of classes meant to simplify getting points and meshes from sympy
expressions. ``plot_backends`` is a dictionary with all the bac... | bsd-3-clause |
OzFlux/PyFluxPro | scripts/pfp_ts.py | 1 | 154297 | # standard
import copy
import datetime
import inspect
import logging
# 3d party
import numpy
from matplotlib.dates import date2num
from scipy import interpolate
# PFP
from scripts import constants as c
from scripts import meteorologicalfunctions as pfp_mf
from scripts import pfp_cfg
from scripts import pfp_func_units
f... | bsd-3-clause |
espenhgn/LFPy | LFPy/eegmegcalc.py | 1 | 55770 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright (C) 2017 Computational Neuroscience Group, NMBU.
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 you... | gpl-3.0 |
ScottFreeLLC/AlphaPy | alphapy/plots.py | 1 | 33611 | ################################################################################
#
# Package : AlphaPy
# Module : plots
# Created : July 11, 2013
#
# Copyright 2019 ScottFree Analytics LLC
# Mark Conway & Robert D. Scott II
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | apache-2.0 |
cython-testbed/pandas | pandas/io/pytables.py | 1 | 166092 | # pylint: disable-msg=E1101,W0613,W0603
"""
High level interface to PyTables for reading and writing pandas data structures
to disk
"""
import copy
import itertools
import os
import re
import time
import warnings
from datetime import datetime, date
from distutils.version import LooseVersion
import numpy as np
from ... | bsd-3-clause |
kaiserroll14/301finalproject | main/pandas/core/internals.py | 9 | 166419 | import copy
import itertools
import re
import operator
from datetime import datetime, timedelta, date
from collections import defaultdict
import numpy as np
from pandas.core.base import PandasObject
from pandas.core.common import (_possibly_downcast_to_dtype, isnull,
_NS_DTYPE, _TD_DTY... | gpl-3.0 |
behzadnouri/scipy | scipy/special/basic.py | 14 | 71025 | #
# Author: Travis Oliphant, 2002
#
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
import math
from scipy._lib.six import xrange
from numpy import (pi, asarray, floor, isscalar, iscomplex, real, imag, sqrt,
where, mgrid, sin, place, issubdtype,... | bsd-3-clause |
rl-institut/reegis_hp | reegis_hp/de21/powerplants.py | 3 | 32039 | """
Getting the renewable power plants of Germany.
To use this script you have to download the
renewable_power_plants_DE.info.csv file and copy it to the data folder.
Get information about the used csv-file.
csv = pd.read_csv(
os.path.join('data_original', 'renewable_power_plants_DE.info.csv'),
squeeze=True, ... | gpl-3.0 |
jcrist/dask-searchcv | dask_searchcv/model_selection.py | 2 | 45285 | from __future__ import absolute_import, division, print_function
from operator import getitem
from collections import defaultdict
from itertools import repeat
from multiprocessing import cpu_count
import numbers
import numpy as np
import dask
from dask.base import tokenize, Base
from dask.delayed import delayed
from ... | bsd-3-clause |
ryfeus/lambda-packs | Sklearn_scipy_numpy/source/sklearn/linear_model/least_angle.py | 6 | 54482 | """
Least Angle Regression algorithm. See the documentation on the
Generalized Linear Model for a complete discussion.
"""
from __future__ import print_function
# Author: Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux
#
# License: BSD 3 ... | mit |
rohit21122012/DCASE2013 | runs/2016/dnn2016med_win_3/dnn6.py | 9 | 32027 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DCASE 2016::Acoustic Scene Classification / Baseline System
#import sys
#sys.path.insert(0, '../')
from src.ui import *
from src.general import *
from src.files import *
from src.features import *
from src.dataset import *
from src.evaluation import *
import numpy
im... | mit |
migueldiascosta/pymatgen | pymatgen/io/abinit/tasks.py | 1 | 146128 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""This module provides functions and classes related to Task objects."""
from __future__ import division, print_function, unicode_literals, absolute_import
import os
import time
import datetime
import shutil
i... | mit |
ligz07/merlin | src/work_in_progress/oliver/dnn_synth_PROJECTION.py | 3 | 47104 |
import cPickle
import gzip
import os, sys, errno
import time
import math
import glob
import struct
import copy
from lxml import etree
# numpy & theano imports need to be done in this order (only for some numpy installations, not sure why)
import numpy
# we need to explicitly import this in some cases, not sure why... | apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.