repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
toobaz/pandas | pandas/tests/indexing/test_coercion.py | 1 | 36750 | 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 |
plotly/python-api | packages/python/plotly/plotly/graph_objs/splom/marker/_colorbar.py | 1 | 69568 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "splom.marker"
_path_str = "splom.marker.colorbar"
_valid_props = {
"bgcolor",
... | mit |
JannickWeisshaupt/OpenDFT | src/visualization.py | 1 | 68880 | # -*- coding: utf-8 -*-
from __future__ import division
from __future__ import generators
import os
os.environ['ETS_TOOLKIT'] = 'qt4'
from pyface.qt import QtGui, QtCore
from pyface.api import GUI
from traits.api import HasTraits, Instance, on_trait_change, Range, Bool, Button, Array, Float, Enum
from traitsui.api i... | gpl-3.0 |
ozak/georasters | georasters/georasters.py | 1 | 62696 | #!/usr/bin/env python
# coding: utf-8
'''
GeoRasters
This program defines functions that are useful for working with GIS data in Python
Copyright (C) 2014-2016 Ömer Özak
Usage:
import georasters as gr
======================================================
Author: Ömer Özak, 2013--2014 (ozak at smu.edu)
Website: htt... | gpl-3.0 |
desihub/desisurvey | py/desisurvey/tileqa.py | 1 | 41626 | import os
import glob
import numpy
from desimodel import focalplane
from astropy.io import fits
from desitarget import targetmask
from astropy.coordinates import SkyCoord
from astropy import units as u
basetiledtype = [
('TILEID', 'i4'), ('RA', 'f8'), ('DEC', 'f8'), ('PASS', 'i4'),
('IN_DESI', 'bool'), ('EBV_... | bsd-3-clause |
0asa/scikit-learn | sklearn/preprocessing/data.py | 1 | 39703 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Olivier Grisel <olivier.grisel@ensta.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# License: BSD 3 clause
from itertools import chain, combinations
import numbers
import numpy as np
f... | bsd-3-clause |
zpace/SparsePak-SFH | SPaCT.py | 1 | 72772 | '''
SparsePak Correction Tools (SPaCT)
Author: Zach Pace (U Wisc-Madison)
License: GNU GPLv2
Some tools for correcting un-flux-calibrated SparsePak data when there's
no standard star.
Performance not guaranteed. Success dependent on correct redshift,
correct centering of SparsePak & SDSS.
Changelog:
Version ... | mit |
RDCEP/climate_emulator | emulator/params/geophysical.py | 1 | 43461 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
import pandas as pd
#TODO: Move global means into regional dicts
PARAMS = {
'BCC_CSM': pd.DataFrame({
'ARL': np.array([0.832341, 257.031747, 7.760533, 7.760533, 0.16191]),
'ARO': np.array([0.813758, 258.029818, 9.335264, 9.335264, 0... | gpl-3.0 |
radiasoft/radtrack | radtrack/ui/fel.py | 1 | 36146 | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'radtrack/ui/fel.ui'
#
# Created: Thu Feb 4 09:22:51 2016
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
excep... | apache-2.0 |
dsm054/pandas | pandas/io/pytables.py | 1 | 165533 | # pylint: disable-msg=E1101,W0613,W0603
"""
High level interface to PyTables for reading and writing pandas data structures
to disk
"""
import copy
from datetime import date, datetime
from distutils.version import LooseVersion
import itertools
import os
import re
import time
import warnings
import numpy as np
from p... | bsd-3-clause |
edowson/director | src/python/ddapp/segmentation.py | 1 | 161283 | import os
import sys
import math
import vtk
import colorsys
import time
import functools
import traceback
import PythonQt
from PythonQt import QtCore, QtGui
import ddapp.applogic as app
from ddapp import objectmodel as om
#from ddapp import perception
#from ddapp import lcmUtils
#from ddapp import roboturdf
from ddapp ... | bsd-3-clause |
datapythonista/pandas | pandas/core/dtypes/dtypes.py | 2 | 43544 | """
Define extension dtypes.
"""
from __future__ import annotations
import re
from typing import (
TYPE_CHECKING,
Any,
MutableMapping,
cast,
)
import numpy as np
import pytz
from pandas._libs.interval import Interval
from pandas._libs.properties import cache_readonly
from pandas._libs.tslibs import (... | bsd-3-clause |
OSSHealth/ghdata | augur/routes/pull_request_reports.py | 1 | 82630 | import psycopg2
import pandas as pd
import sqlalchemy as salc
import numpy as np
import warnings
import datetime
import json
from scipy import stats
from flask import request, send_file, Response
import math
warnings.filterwarnings('ignore')
#import selenium
#from selenium import webdriver
#from selenium.webdriver im... | mit |
thomaslima/PySpice | tools/ExampleRstFactory.py | 1 | 34017 | ####################################################################################################
#
# PySpice - A Spice Package for Python
# Copyright (C) 2014 Fabrice Salvaire
#
# This program 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 |
saltstar/spark | python/pyspark/sql/types.py | 1 | 61010 | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | apache-2.0 |
cbertinato/pandas | pandas/tests/reshape/test_pivot.py | 1 | 84742 | 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.types import CategoricalDty... | bsd-3-clause |
meren/anvio | anvio/workflows/metagenomics/__init__.py | 1 | 37513 | # -*- coding: utf-8
# pylint: disable=line-too-long
"""
Classes to define and work with anvi'o contigs workflows.
"""
import os
import anvio
import pandas as pd
import anvio.terminal as terminal
import anvio.filesnpaths as filesnpaths
from anvio import utils as u
from anvio.drivers import driver_modules
from anv... | gpl-3.0 |
pytroll/satpy | satpy/readers/seviri_base.py | 1 | 33018 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-2018 Satpy developers
#
# This file is part of satpy.
#
# satpy 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 Licens... | gpl-3.0 |
rs2/pandas | pandas/core/tools/datetimes.py | 1 | 32608 | from collections import abc
from datetime import datetime
from functools import partial
from itertools import islice
from typing import (
TYPE_CHECKING,
Callable,
List,
Optional,
Tuple,
TypeVar,
Union,
overload,
)
import warnings
import numpy as np
from pandas._libs import tslib, tslib... | bsd-3-clause |
cpcloud/arrow | python/pyarrow/tests/test_array.py | 1 | 30472 | # 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 |
rfinn/LCS | python/LCSsimulate-infall-sfrs.py | 1 | 30580 | #!/usr/bin/env python
'''
GOAL:
- test several models that describe how disks shrink and integrated SFR decreases as a result of outside-in quenching
USAGE
- from within ipython
%run ~/Dropbox/pythonCode/LCSsimulate-infall.py
t = run_sim(tmax=0,drdt_step=0.05,nrandom=1000)
t = run_sim(tmax=1,drdt_step=0.05,nrandom... | gpl-3.0 |
dcherian/pyroms | pyroms/pyroms/hgrid.py | 1 | 59329 | # encoding: utf-8
'''Tools for creating and working with Arikawa C-Grids'''
__docformat__ = "restructuredtext en"
import os
import sys
import ctypes
import cPickle
from warnings import warn
from copy import deepcopy
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.artist imp... | bsd-3-clause |
PietroPasotti/SemanticSky | semanticsky/tests.py | 1 | 58297 | #!/usr/bin/python3
import numpy as np
import matplotlib as plt
import pylab as lab
from copy import deepcopy
import pickle
from semanticsky.agents.utils import regret
from sys import stdout
#### functions to help you getting started with semanticsky.
def init_bare_semanticsky():
"""
Returns a god with a fully eva... | agpl-3.0 |
e-q/scipy | tools/refguide_check.py | 1 | 31236 | #!/usr/bin/env python
"""
refguide_check.py [OPTIONS] [-- ARGS]
Check for a Scipy submodule whether the objects in its __all__ dict
correspond to the objects included in the reference guide.
Example of usage::
$ python refguide_check.py optimize
Note that this is a helper script to be able to check if things ar... | bsd-3-clause |
Ecogenomics/GroopM | groopm/bin.py | 1 | 31108 | #!/usr/bin/env python
###############################################################################
# #
# bin.py #
# ... | gpl-3.0 |
plotly/python-api | packages/python/plotly/plotly/graph_objs/_contour.py | 1 | 94884 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Contour(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "contour"
_valid_props = {
"autocolorscale",
"autocontour",
"coloraxis",
... | mit |
umuzungu/zipline | zipline/testing/fixtures.py | 1 | 44211 | from abc import ABCMeta, abstractproperty
import sqlite3
from unittest import TestCase
from contextlib2 import ExitStack
from logbook import NullHandler, Logger
from nose_parameterized import parameterized
from pandas.util.testing import assert_series_equal
from six import with_metaclass
from toolz import flip
import ... | apache-2.0 |
buguen/pylayers | pylayers/measures/cormoran.py | 1 | 166275 | # -*- coding:Utf-8 -*-
"""
This module handles CORMORAN measurement data
CorSer Class
============
.. autosummary::
:toctree: generated/
cor_log
CorSer init and load data
-------------------------
.. autosummary::
:toctree: generated/
CorSer.__init__
CorSer.__repr__
CorSer._loadBS
Cor... | lgpl-3.0 |
cpcloud/ibis | ibis/pandas/execution/generic.py | 1 | 33772 | """Execution rules for generic ibis operations."""
import collections
import datetime
import decimal
import functools
import math
import numbers
import operator
from collections.abc import Sized
import numpy as np
import pandas as pd
import toolz
from pandas.core.groupby import DataFrameGroupBy, SeriesGroupBy
import... | apache-2.0 |
dssg/wikienergy | disaggregator/build/pandas/pandas/tests/test_categorical.py | 1 | 100231 | # -*- coding: utf-8 -*-
# pylint: disable=E1101,E1103,W0232
from datetime import datetime
from pandas.compat import range, lrange, u
import os
import pickle
import re
from distutils.version import LooseVersion
import numpy as np
import pandas as pd
from pandas import Categorical, Index, Series, DataFrame, PeriodInde... | mit |
santiago-salas-v/walas | tc_data.py | 1 | 46086 | import csv
import ctypes # Needed to set the app icon correctly
import io
import locale
import os
import re
import string
import sys
from functools import partial
from os.path import exists
import lxml.etree as et
import matplotlib
from PySide2.QtCore import QAbstractTableModel, QModelIndex, Qt, QEvent
from PySide2.Q... | mit |
YangChuan80/BellfortSequenceParser | Source/BellfortSequenceParser.py | 1 | 35081 | # Bellfort Sequence Parser
## Modules
import numpy as np
import pandas as pd
import tkinter as tk
from tkinter import ttk
import tkinter.font as tkf
from tkinter import messagebox
from tkinter import filedialog
import threading
import time
import os
import shutil
## Helper Functions
### Reverse Complement
def rever... | bsd-3-clause |
wwwslinger/airflow | airflow/www/app.py | 1 | 67322 | 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 |
SasView/sasmodels | explore/beta/sasfit_compare_new.py | 1 | 42400 | from __future__ import division, print_function
# Make sasmodels available on the path
import sys, os
BETA_DIR = os.path.dirname(os.path.realpath(__file__))
SASMODELS_DIR = os.path.dirname(os.path.dirname(BETA_DIR))
sys.path.insert(0, SASMODELS_DIR)
from collections import namedtuple
from matplotlib import pyplot as ... | bsd-3-clause |
amolkahat/pandas | pandas/tests/tseries/offsets/test_offsets.py | 1 | 131392 | from distutils.version import LooseVersion
from datetime import date, datetime, timedelta
import pytest
import pytz
from pandas.compat import range
from pandas import compat
import numpy as np
from pandas.compat.numpy import np_datetime64_compat
from pandas.core.series import Series
from pandas._libs.tslibs import ... | bsd-3-clause |
tswast/google-cloud-python | bigquery/tests/unit/test_client.py | 1 | 273183 | # Copyright 2015 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 |
perryjohnson/biplaneblade | biplane_blade_lib/prep_stn20_mesh.py | 1 | 30758 | """Write initial TrueGrid files for one biplane blade station.
Usage
-----
start an IPython (qt)console with the pylab flag:
$ ipython qtconsole --pylab
or
$ ipython --pylab
Then, from the prompt, run this script:
|> %run biplane_blade_lib/prep_stnXX_mesh.py
or
|> import biplane_blade_lib/prep_stnXX_mesh
... | gpl-3.0 |
MSeifert04/astropy | astropy/table/table.py | 1 | 134668 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from .index import TableIndices, TableLoc, TableILoc, TableLocIndices
import sys
from collections import OrderedDict, defaultdict
from collections.abc import Mapping
import warnings
from copy import deepcopy
import types
import numpy as np
from numpy im... | bsd-3-clause |
jseabold/statsmodels | statsmodels/stats/outliers_influence.py | 4 | 49574 | # -*- coding: utf-8 -*-
"""Influence and Outlier Measures
Created on Sun Jan 29 11:16:09 2012
Author: Josef Perktold
License: BSD-3
"""
from collections import defaultdict
import numpy as np
from statsmodels.compat.python import lzip
from statsmodels.compat.pandas import Appender
from statsmodels.graphics._regressi... | bsd-3-clause |
aywander/pluto-outflows | Tools/pyPLUTO/build/scripts-2.7/GUI_pyPLUTO.py | 2 | 36616 | #!/usr/bin/python
import matplotlib
matplotlib.use('TkAgg')
from numpy import arange, sin, pi,log10,max,min,cos,isnan, meshgrid,sqrt,abs
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg,NavigationToolbar2TkAgg
from matplotlib.figure import Figure
import pyPLUTO as pp
import string
import time
from Tk... | gpl-2.0 |
yavalvas/yav_com | build/matplotlib/lib/matplotlib/backends/backend_ps.py | 1 | 61960 | """
A PostScript backend, which can produce both PostScript .ps and .eps
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import StringIO
import glob, math, os, shutil, sys, time
def _fn_name(): return sys._getframe(1).f_code.c... | mit |
nanalelfe/fofe-ner | multitask-ner-trainer.py | 1 | 36270 | #!/home/chwang/anaconda2/envs/tensorflow/bin/python
#/eecs/research/asr/mingbin/python-workspace/hopeless/bin/python
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy, logging, argparse, time, copy, os, cPickle, sys
from subprocess import Popen, PIPE, call
from Queue import Queue
fro... | mit |
boomsbloom/dtm-fmri | DTM/for_gensim/lib/python2.7/site-packages/numpy/core/tests/test_multiarray.py | 1 | 258062 | from __future__ import division, absolute_import, print_function
import collections
import tempfile
import sys
import shutil
import warnings
import operator
import io
import itertools
import functools
import ctypes
import os
import gc
from contextlib import contextmanager
if sys.version_info[0] >= 3:
import builti... | mit |
SystemsBioinformatics/stochpy | stochpy/modules/StochPyCellDivisionPlot.py | 1 | 77383 | #! /usr/bin/env python
"""
StochPyCellDivision plotting class
==================================
Written by T.R. Maarleveld and M. Moinat, Amsterdam, The Netherlands
E-mail: tmd200@users.sourceforge.net
Last Change: August 05, 2015
"""
from __future__ import division, print_function, absolute_import
from . import An... | gpl-3.0 |
TEAM-HRA/hra_suite | HRAPrograms/src/hra_programs/console/usage/schema_for_single_recording.py | 1 | 33253 | #!/usr/bin/env python
# coding: utf-8
'''
Created on Nov 26, 2013
@author: jurek
'''
import sys
import matplotlib
#matplotlib.use('GTK')
import matplotlib.pyplot as plt
import numpy as np
import pylab as pl
import Image
import matplotlib.image as mpimg
import matplotlib.gridspec as gridspec
from matplotlib.path imp... | lgpl-3.0 |
pyspace/test | pySPACE/missions/nodes/visualization/time_series_vis.py | 1 | 34406 | """ Visualize data in time-amplitude or time-frequency representations
This module contains nodes that can be used to visualize
the data as time series. All these nodes use the functionality
of the VisualizationBaseNode.
"""
import numpy
import math
try:
import pylab
except:
pass
#import itertools
#from coll... | gpl-3.0 |
ceball/param | param/__init__.py | 1 | 74006 | """
Parameters are a kind of class attribute allowing special behavior,
including dynamically generated parameter values, documentation
strings, constant and read-only parameters, and type or range checking
at assignment time.
Potentially useful for any large Python program that needs
user-modifiable object attributes... | bsd-3-clause |
winklerand/pandas | doc/sphinxext/ipython_sphinxext/ipython_directive.py | 1 | 37809 | # -*- 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... | bsd-3-clause |
zfrenchee/pandas | pandas/tests/io/test_packers.py | 1 | 32289 | import pytest
from warnings import catch_warnings
import os
import datetime
import numpy as np
import sys
from distutils.version import LooseVersion
from pandas import compat
from pandas.compat import u, PY3
from pandas import (Series, DataFrame, Panel, MultiIndex, bdate_range,
date_range, period_... | bsd-3-clause |
shamidreza/dnnmapper | model1.py | 1 | 62851 | """
This file is part of deepcca.
deepcca 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.
deepcca is distributed in the hope that it will b... | gpl-2.0 |
desihub/desisim | py/desisim/spec_qa/redshifts.py | 1 | 40085 | """
desisim.spec_qa.redshifts
=========================
Module to run high_level QA on a given DESI run
Written by JXP on 3 Sep 2015
"""
from __future__ import print_function, absolute_import, division
import matplotlib
# matplotlib.use('Agg')
import numpy as np
import sys, os, pdb, glob
from matplotlib import pyp... | bsd-3-clause |
miliaresis/SVR | svrmg_myf.py | 1 | 45740 | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 3 07:07:24 2018, updated Nov. 7, 2018
@author: gmiliar (George Ch. Miliaresis)
Selective Variance Reduction by George Ch.Miliaresis
Ver. 2018.01 (winpython implementation, https://winpython.github.io/)
Details in https://github.com/miliaresis/SVR
https:... | gpl-3.0 |
joshbohde/scikit-learn | sklearn/datasets/samples_generator.py | 1 | 30408 | """
Generate samples of synthetic data sets.
"""
# Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel,
# G. Louppe
# License: BSD 3 clause
import numpy as np
from scipy import linalg
from ..utils import check_random_state
def make_classification(n_samples=100, n_features=20, n_informativ... | bsd-3-clause |
webeng/DeepLearningTutorials | code/sktheano_cnn.py | 1 | 39161 | """
Aaron Berndsen:
A Conformal Neural Network using Theano for computation and structure,
but built to obey sklearn's basic 'fit' 'predict' functionality
*code largely motivated from deeplearning.net examples
and Graham Taylor's "Vanilla RNN" (https://github.com/gwtaylor/theano-rnn/blob/master/rnn.py)
You'll requir... | bsd-3-clause |
espenhgn/VIOLA | test_data/nest_preprocessing.py | 1 | 31619 | #!/usr/env/python
'''
Preprocessing NEST output for VIOLA
-----------------------------------
This script preprocesses spiking data from a NEST simulation using the
topology module for spatial structure so that it can be loaded to VIOLA as
"binned" data type. Concretely, it creates spatially and temporally binned
spik... | gpl-2.0 |
guangtunbenzhu/BGT-Cosmology | Spectroscopy/ebossanalysis.py | 1 | 60360 |
"""
Analysis tools for eboss (composite) spectra, for science
"""
# Python 3 vs. Python 2
from __future__ import division
# Standard library modules
from os.path import isfile, join
import numpy as np
from scipy.stats import nanmean, nanmedian
from scipy.interpolate import interp1d
# Third-party modules
import fit... | mit |
jjhelmus/wradlib | wradlib/vis.py | 1 | 48626 | # -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# Name: vis
# Purpose:
#
# Authors: Maik Heistermann, Stephan Jacobi and Thomas Pfaff
#
# Created: 26.10.2011
# Copyright: (c) Maik Heistermann, Stephan Jacobi and Thomas Pfaff 2011
# Lice... | mit |
msarahan/analyzarr | analyzarr/lib/io/libs/tifffile.py | 1 | 98313 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2012, Christoph Gohlke
# Copyright (c) 2008-2012, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or wit... | bsd-2-clause |
canismarko/xanespy | tests/test_frameset.py | 1 | 37273 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright © 2016 Mark Wolf
#
# This file is part of Xanespy.
#
# Xanespy 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
# ... | gpl-3.0 |
sillvan/hyperspy | hyperspy/drawing/utils.py | 1 | 43915 | # -*- coding: utf-8 -*-
# Copyright 2007-2011 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 |
qpython-android/QPypi-numpy | numpy/lib/io.py | 1 | 41849 | __all__ = ['savetxt', 'loadtxt',
'genfromtxt', 'ndfromtxt', 'mafromtxt', 'recfromtxt', 'recfromcsv',
'load', 'loads',
'save', 'savez',
'packbits', 'unpackbits',
'fromregex',
'DataSource']
import numpy as np
import format
import cStringIO
import os
impor... | bsd-3-clause |
raffalba/MYSIRR | scripts/mysirr.py | 1 | 35476 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
MY SIRR
Minimalist agro-hYdrologicalmodel for Sustainable IRRigation management- soil moisture and crop dynamics
MY SIRR
-------------------
versione ... | gpl-3.0 |
jim-pansn/graph-tool | src/graph_tool/community/overlap_blockmodel.py | 1 | 34502 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# graph_tool -- a general graph manipulation python module
#
# Copyright (C) 2006-2015 Tiago de Paula Peixoto <tiago@skewed.de>
#
# 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... | gpl-3.0 |
hoechenberger/psychopy | psychopy/hardware/crs/bits.py | 1 | 227735 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Part of the PsychoPy library
# Copyright (C) 2018 Jonathan Peirce
# Distributed under the terms of the GNU General Public License (GPL).
# Acknowledgements:
# This code was mostly written by Jon Peirce.
# with substaintial additions by Andrew Schofield
# CRS Lt... | gpl-3.0 |
zjuchenyuan/BioWeb | Lib/Bio/Phylo/BaseTree.py | 1 | 45853 | # Copyright (C) 2009 by Eric Talevich (eric.talevich@gmail.com)
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Base classes for Bio.Phylo objects.
All object representations for phylogenetic tree... | mit |
djgagne/hagelslag | hagelslag/processing/TrackModeler.py | 1 | 52319 | import numpy as np
import pandas as pd
import pickle
import json
import os
from sklearn.decomposition import PCA
from copy import deepcopy
from glob import glob
from multiprocessing import Pool
from sklearn.linear_model import LinearRegression
from hagelslag.evaluation.ProbabilityMetrics import DistributedROC
from os.p... | mit |
mlaprise/PyOFTK | PyOFTK/core.py | 1 | 32425 | """
Copyright (C) 2007-2010 Martin Laprise (mlaprise@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; version 2 dated June, 1991.
This software is distributed in the hope that it will be ... | gpl-2.0 |
tomato42/tlsfuzzer | tlsfuzzer/analysis.py | 1 | 39448 | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Author: Jan Koscielniak, (c) 2020
# Author: Hubert Kario, (c) 2020
# Released under Gnu GPL v2.0, see LICENSE file for details
"""Analysis of timing information."""
from __future__ import print_function
import csv
import getopt
import sys
import multiprocessing as mp
imp... | gpl-2.0 |
DrXyzzy/smc | src/smc_sagews/smc_sagews/sage_salvus.py | 1 | 142585 | ##################################################################################
# #
# Extra code that the Salvus server makes available in the running Sage session. #
# ... | agpl-3.0 |
dsm054/pandas | pandas/tests/scalar/timestamp/test_timestamp.py | 1 | 37586 | """ test the scalar Timestamp """
import pytz
import pytest
import dateutil
import calendar
import locale
import unicodedata
import numpy as np
from dateutil.tz import tzutc
from pytz import timezone, utc
from datetime import datetime, timedelta
import pandas.util.testing as tm
import pandas.util._test_decorators as... | bsd-3-clause |
open-risk/portfolio_analytics_library | portfolioAnalytics/thresholds/model.py | 1 | 33054 | # encoding: utf-8
"""This module is part of the portfolioAnalytics package."""
# (c) 2017-2019 Open Risk (https://www.openriskmanagement.com)
#
# portfolioAnalytics is licensed under the Apache 2.0 license a copy of which is included
# in the source distribution of TransitionMatrix. This is notwithstanding any licens... | gpl-2.0 |
jreback/pandas | pandas/core/generic.py | 1 | 396992 | from __future__ import annotations
import collections
from datetime import timedelta
import functools
import gc
import json
import operator
import pickle
import re
from typing import (
TYPE_CHECKING,
Any,
Callable,
Dict,
FrozenSet,
Hashable,
List,
Mapping,
Optional,
Sequence,
... | bsd-3-clause |
vsbuffalo/x-ancestry | ancestrysim/ancestralsim.py | 1 | 46399 | from __future__ import print_function
from numpy import random as rand
import numpy as np
from scipy.stats import poisson, binom
from collections import namedtuple, deque, Counter, defaultdict
import operator
import sys
import json
import click
import random
DEBUG = True
EPS = 1.e-6
width = operator.attrgetter('widt... | gpl-3.0 |
mne-tools/mne-tools.github.io | 0.20/_downloads/68dbe405ac02c372b6167f7e86b7e3e0/plot_background_filtering.py | 1 | 49887 | # -*- coding: utf-8 -*-
r"""
.. _disc-filtering:
===================================
Background information on filtering
===================================
Here we give some background information on filtering in general, and
how it is done in MNE-Python in particular.
Recommended reading for practical applications ... | bsd-3-clause |
dongsenfo/pymatgen | pymatgen/analysis/defects/thermodynamics.py | 1 | 30394 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
import logging
import numpy as np
from monty.json import MSONable
from scipy.spatial import HalfspaceIntersection
from scipy.optimize import bisect
from itertools import chain
from pymatgen.electronic_structur... | mit |
WillieMaddox/scipy | scipy/stats/stats.py | 1 | 173313 | # 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... | bsd-3-clause |
sebp/scikit-survival | tests/test_nonparametric.py | 1 | 44136 | from os.path import dirname, join
import numpy
from numpy.testing import assert_array_almost_equal, assert_array_equal
import pandas
import pytest
from sksurv.nonparametric import (
CensoringDistributionEstimator,
SurvivalFunctionEstimator,
kaplan_meier_estimator,
nelson_aalen_estimator,
)
from sksurv... | gpl-3.0 |
boland1992/SeisSuite | build/lib/seissuite/ant/psFTAN.py | 1 | 132798 | #!/usr/bin/env python
"""
Module that contains classes holding cross-correlations and related
processing, such as frequency-time analysis (FTAN) to measure
dispersion curves.
"""
from seissuite.ant import pserrors, psutils, pstomo
import obspy.signal
import obspy.xseed
import obspy.signal.cross_correlati... | gpl-3.0 |
linebp/pandas | pandas/core/series.py | 1 | 100521 | """
Data structure for 1-dimensional cross-sectional and time series data
"""
from __future__ import division
# pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
import types
import warnings
from textwrap import dedent
from numpy import nan, ndarray
import numpy as np
import numpy.ma as ma
from ... | bsd-3-clause |
wbsljh/caravel | caravel/models.py | 1 | 73950 | """A collection of ORM sqlalchemy models for Caravel"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import re
import functools
import json
import logging
import re
import textwrap
from collections import namedtuple... | apache-2.0 |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_heatmap.py | 1 | 104314 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Heatmap(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "heatmap"
_valid_props = {
"autocolorscale",
"coloraxis",
"colorbar",
"c... | mit |
CompPhysics/ComputationalPhysics2 | doc/LectureNotes/_build/jupyter_execute/boltzmannmachines.py | 1 | 68848 | # Boltzmann Machines
Why use a generative model rather than the more well known discriminative deep neural networks (DNN)?
* Discriminitave methods have several limitations: They are mainly supervised learning methods, thus requiring labeled data. And there are tasks they cannot accomplish, like drawing new examples... | cc0-1.0 |
quantopian/zipline | tests/test_assets.py | 1 | 92908 | #
# Copyright 2015 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 |
johnbachman/belpy | indra/resources/update_resources.py | 1 | 30150 | import os
import json
import gzip
import pandas
import logging
import requests
from zipfile import ZipFile
from collections import defaultdict
from urllib.request import urlretrieve
from xml.etree import ElementTree as ET
from indra.util import read_unicode_csv, write_unicode_csv
from indra.databases.obo_client import ... | mit |
sstoma/CellProfiler | cellprofiler/modules/tests/test_imagemath.py | 1 | 38823 | '''test_imagemath.py - test the ImageMath module
CellProfiler is distributed under the GNU General Public License.
See the accompanying file LICENSE for details.
Copyright (c) 2003-2009 Massachusetts Institute of Technology
Copyright (c) 2009-2015 Broad Institute
All rights reserved.
Please see the AUTHORS file for c... | gpl-2.0 |
TomAugspurger/pandas | pandas/tests/indexes/interval/test_interval.py | 1 | 33794 | from itertools import permutations
import re
import numpy as np
import pytest
import pandas as pd
from pandas import (
Index,
Interval,
IntervalIndex,
Timedelta,
Timestamp,
date_range,
interval_range,
isna,
notna,
timedelta_range,
)
import pandas._testing as tm
import pandas.co... | bsd-3-clause |
microsoft/EconML | econml/grf/_base_grf.py | 1 | 49979 | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
#
# This code contains snippets of code from
# https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/ensemble/_forest.py
# published under the following license and copyright:
# BSD 3-Clause License
#
# Copy... | mit |
MJuddBooth/pandas | pandas/io/html.py | 1 | 35062 | """:mod:`pandas.io.html` is a module containing functionality for dealing with
HTML IO.
"""
from distutils.version import LooseVersion
import numbers
import os
import re
import pandas.compat as compat
from pandas.compat import (
binary_type, iteritems, lmap, lrange, raise_with_traceback, string_types,
u)
fro... | bsd-3-clause |
gfyoung/pandas | pandas/core/dtypes/cast.py | 1 | 61079 | """
Routines for casting.
"""
from __future__ import annotations
from contextlib import suppress
from datetime import datetime, timedelta
from typing import (
TYPE_CHECKING,
Any,
Dict,
List,
Optional,
Sequence,
Set,
Sized,
Tuple,
Type,
Union,
cast,
)
import warnings
im... | bsd-3-clause |
ssanderson/numpy | numpy/lib/npyio.py | 1 | 75569 | from __future__ import division, absolute_import, print_function
import sys
import os
import re
import itertools
import warnings
import weakref
from operator import itemgetter, index as opindex
import numpy as np
from . import format
from ._datasource import DataSource
from numpy.core.multiarray import packbits, unpa... | bsd-3-clause |
jonparrott/google-cloud-python | bigquery/google/cloud/bigquery/client.py | 2 | 68968 | # Copyright 2015 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 |
RaRe-Technologies/gensim | gensim/utils.py | 1 | 65971 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Radim Rehurek <radimrehurek@seznam.cz>
# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html
"""Various general utility functions."""
from __future__ import with_statement
from contextlib import contextmanager
import collections... | lgpl-2.1 |
alimuldal/tadpydoodle | gui_elements.py | 1 | 47967 | """
Copyright 2013 Alistair Muldal & Timothy Lillicrap
Tadpydoodle 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.
Tadpydoodle is distribut... | gpl-3.0 |
SNU-sunday/fisspy | fisspy/analysis/wavelet.py | 1 | 33893 | """
Calculate the wavelet and its significance.
"""
from __future__ import division, absolute_import
import numpy as np
from scipy.special._ufuncs import gamma, gammainc
from scipy.optimize import fminbound as fmin
from scipy.fftpack import fft, ifft
__author__ = "Juhyeong Kang"
__email__ = "jhkang@astro.snu.ac.kr"
... | bsd-2-clause |
netixx/autotopo | sims/grapher.py | 1 | 40818 | __author__ = 'francois'
from string import Template
import numpy as np
import collections
import textwrap
import traceback
from processing import PostFunction
import pandas as pd
import subprocess
def addExtension(path, ext):
return "%s.%s"%(path, ext)
class _GnuplotGraph(type):
counter = {}
def __new_... | apache-2.0 |
chrsrds/scikit-learn | sklearn/model_selection/tests/test_split.py | 1 | 59639 | """Test the split module"""
import warnings
import pytest
import numpy as np
from scipy.sparse import coo_matrix, csc_matrix, csr_matrix
from scipy import stats
from itertools import combinations
from itertools import combinations_with_replacement
from sklearn.utils.testing import assert_almost_equal
from sklearn.util... | bsd-3-clause |
jmmease/pandas | pandas/tests/test_resample.py | 1 | 133630 | # pylint: disable=E1101
from warnings import catch_warnings
from datetime import datetime, timedelta
from functools import partial
from textwrap import dedent
import pytz
import pytest
import dateutil
import numpy as np
import pandas as pd
import pandas.tseries.offsets as offsets
import pandas.util.testing as tm
fro... | bsd-3-clause |
asalomatov/variants | variants/work/bcm_cdfd_sf_compare.py | 1 | 30674 | import sys, os
import pandas
from variants import func
import ped
import argparse
import collections
sys.path.insert(0, '/mnt/xfs1/home/asalomatov/projects/variants/variants/work/')
from init_baylor_info import spID2labID
from init_baylor_info import labID2spID
from init_baylor_info import lab2batch
import summarizeVar... | mit |
dssg/wikienergy | disaggregator/build/pandas/pandas/core/groupby.py | 1 | 123222 | import types
from functools import wraps
import numpy as np
import datetime
import collections
from pandas.compat import(
zip, builtins, range, long, lzip,
OrderedDict, callable
)
from pandas import compat
from pandas.core.base import PandasObject
from pandas.core.categorical import Categorical
from pandas.co... | mit |
mompiou/stereo-inter | stereo-inter.py | 1 | 56509 | #!/usr/bin/python
from __future__ import division
import numpy as np
from Tkinter import *
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg
from matplotlib.figure import Figure
from matplotlib import pyplot as plt
from PIL import Image
import PngImagePlugin
import ttk
i... | gpl-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.