repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
biota/sourcetracker2 | sourcetracker/_sourcetracker.py | 1 | 43110 | #!/usr/bin/env python
# ----------------------------------------------------------------------------
# Copyright (c) 2016--, Biota Technology.
# www.biota.com
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ---------------------... | bsd-3-clause |
nmartensen/pandas | pandas/core/frame.py | 1 | 229568 | """
DataFrame
---------
An efficient 2D container for potentially mixed-type time series or other
labeled data series.
Similar to its R counterpart, data.frame, except providing automatic data
alignment and a host of useful data manipulation methods having to do with the
labeling information
"""
from __future__ import... | bsd-3-clause |
mbercx/cage | cage/cli/commands/analyze.py | 1 | 32942 | # Encoding: utf-8
import pdb
import os
import matplotlib;
matplotlib.use("TkAgg")
import numpy as np
from scipy import interpolate
import matplotlib.pyplot as plt
from cage.landscape import LandscapeAnalyzer
from cage.core import Facet
from cage import utils
from cage.core import Cage
from pymatgen.core import El... | mit |
wojcech/agilentpyvisa | agilentpyvisa/B1500/tester.py | 1 | 39893 | # vim: set fileencoding: utf-8 -*-
# -*- coding: utf-8 -*-
import visa
from itertools import cycle, starmap, compress
import pandas as pd
import numpy as np
from collections import OrderedDict
from .force import *
from .force import (
DCForce,
StaircaseSweep,
... | agpl-3.0 |
blakearchive/archive | blakearchive/import.py | 1 | 33878 | import argparse
import glob
import os
import os.path
import json
import re
import pandas
from collections import defaultdict
import itertools
from lxml import etree
import xmltodict
import models
import config
from sqlalchemy.orm import sessionmaker
import titlecase
from tqdm import tqdm
import logging
from collections... | gpl-2.0 |
DCSR/Analysis | Analysis.py | 1 | 96877 |
"""
April 25th. This note added to document change to Test2 Branch
April 15, 2020
Move Test Model and Axes Example to GraphsTab.py
Rename "Test Area" to 2L-PR
"""
from tkinter import *
from tkinter.ttk import Notebook
from tkinter import filedialog
from datetime import datetime
import DataModel as dm
import Grap... | gpl-3.0 |
dpinney/omf | omf/models/resilientDist.py | 1 | 33993 | ''' Run micot-GFM, micot-RDT, and GridLAB-D to determine an optimal distribution resiliency investment. '''
import json, os, shutil, subprocess, datetime, re, random, copy, warnings, base64, platform
import os.path
from os.path import join as pJoin
import numpy as np
import networkx as nx
import matplotlib
if platfor... | gpl-2.0 |
mdeff/ntds_2016 | project/reports/epileptic_seizures/lib/utils.py | 1 | 35570 | import glob
import numpy as np
import scipy as sp
from scipy import io as sio
from scipy import signal
import statsmodels.api as sm
import os
from collections import defaultdict
import time
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import gridspec
import seaborn as sns
import pickle
impo... | mit |
chungjjang80/FRETBursts | fretbursts/burstlib_ext.py | 1 | 38540 | # -*- coding: utf-8 -*-
#
# FRETBursts - A single-molecule FRET burst analysis toolkit.
#
# Copyright (C) 2013-2016 The Regents of the University of California,
# Antonino Ingargiola <tritemio@gmail.com>
#
"""
The module `burtlib_ext.py` (by default imported as `bext`) contains extensions
to `burstslib.py... | gpl-2.0 |
semiautomaticgit/SemiAutomaticClassificationPlugin | spectralsignature/spectralsignatureplot.py | 1 | 52494 | # -*- coding: utf-8 -*-
'''
/**************************************************************************************************************************
SemiAutomaticClassificationPlugin
The Semi-Automatic Classification Plugin for QGIS allows for the supervised classification of remote sensing images,
The Se... | gpl-3.0 |
dotsdl/seaborn | seaborn/tests/test_axisgrid.py | 1 | 34848 | import numpy as np
import pandas as pd
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decorators import skipif
import pandas.util.testing as tm
from .. import axisgrid as... | bsd-3-clause |
jpn--/larch | larch/roles.py | 1 | 64495 | import keyword as _keyword
import re as _re
from numbers import Number
import numpy
import copy
from .util.naming import parenthize, valid_identifier_or_parenthized_string
from .util.touch_notifier import TouchNotify
_chi = u"\u03C7"
_beta = u"\u03B2"
_hahook = u"\u04FC"
_ParameterRef_repr_txt = 'P'
_DataRef_repr_tx... | gpl-3.0 |
keiserlab/e3fp-paper | e3fp_paper/crossvalidation/methods.py | 1 | 39541 | """Various classes for cross-validation.
Author: Seth Axen
E-mail: seth.axen@gmail.com
"""
import os
import logging
import sys
import math
import cPickle as pkl
import numpy as np
from scipy.sparse import issparse
from sklearn import svm
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes imp... | lgpl-3.0 |
bigdataelephants/scikit-learn | sklearn/feature_extraction/text.py | 1 | 48719 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gma... | bsd-3-clause |
gwpy/seismon | seismon/psd.py | 1 | 52764 | #!/usr/bin/python
import os, glob, optparse, shutil, warnings, pickle, math, copy, pickle, matplotlib
import matplotlib.pyplot as plt
import numpy as np
import scipy.signal, scipy.stats
from scipy import optimize
import seismon.NLNM, seismon.html
import seismon.eqmon, seismon.utils
from matplotlib import cm
try:
... | gpl-3.0 |
ArteliaTelemac/PostTelemac | PostTelemac/meshlayertools/meshlayer_flow_tool.py | 1 | 69583 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
PostTelemac
A QGIS plugin
Post Traitment or Telemac
-------------------
begin : 2015-07-07
git sha : $For... | gpl-3.0 |
kinap/scapy | scapy/layers/inet.py | 1 | 60610 | ## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
IPv4 (Internet Protocol v4).
"""
import os,time,struct,re,socket,new
from select import select
from collections impo... | gpl-2.0 |
aglorios/dark_money_predictions | Dark_Money_2012_Munging.py | 1 | 50789 |
# coding: utf-8
import pandas as pd
import glob
paths = glob.glob("Non_Candidate_files_2012/*")
advertiser_files= []
for path in paths:
contents = open(path).read()
contents = contents.decode("ascii", "ignore")
contents = contents.lower()
my_data = {}
filename = path[20:]
df_name = fil... | apache-2.0 |
bioinfo-core-BGU/neatseq-flow | bin/neatseq_flow_monitor.py | 1 | 44773 | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
:Neatseq-Flow Monitor
-----------------------
:Authors: Liron Levin
:Affiliation: Bioinformatics core facility
:Organization: National Institute of Biotechnology in the Negev, Ben Gurion University.
SHORT DE... | gpl-3.0 |
fabiansinz/pipeline | python/pipeline/utils/eye_tracking.py | 1 | 41016 | from collections import defaultdict
from itertools import count
from operator import attrgetter
from os import path as op
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from tqdm import tqdm
import pickle
from ..exceptions import PipelineException
try:
import cv2
except ImportError:
pr... | lgpl-3.0 |
yousrabk/mne-python | mne/epochs.py | 1 | 106316 | """Tools for working with epoched data"""
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# Mainak Jas <mainak@neuro... | bsd-3-clause |
leonardomaccari/communityNetworkMonitor | src/snippets/sql/get_stats_dump.py | 1 | 61825 | #!/usr/bin/python
import sys
import os
from sqlalchemy import create_engine
from collections import defaultdict
from sqlalchemy.orm import sessionmaker, scoped_session
import code
import numpy as np
import networkx as nx
import matplotlib
# use the Agg backend, not X, for ssh shells
matplotlib.use('Agg')
matplotlib.rc... | gpl-3.0 |
Patrick-Cole/pygmi | pygmi/clust/super_class.py | 1 | 34559 | # -----------------------------------------------------------------------------
# Name: graph_tool.py (part of PyGMI)
#
# Author: Patrick Cole
# E-Mail: pcole@geoscience.org.za
#
# Copyright: (c) 2019 Council for Geoscience
# Licence: GPL-3.0
#
# This file is part of PyGMI
#
# PyGMI is free softw... | gpl-3.0 |
kaplun/Invenio-OpenAIRE | modules/webstat/lib/webstat_engine.py | 1 | 87246 | ## This file is part of Invenio.
## Copyright (C) 2007, 2008, 2010, 2011 CERN.
##
## Invenio 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 ... | gpl-2.0 |
googlearchive/rgc-models | response_model/python/population_subunits/coarse/fitting/whole_population_fixed_tf_2.py | 1 | 43300 | # 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 |
josenavas/QiiTa | qiita_db/metadata_template/base_metadata_template.py | 1 | 52010 | r"""
Metadata template objects (:mod: `qiita_db.metadata_template)
=============================================================
..currentmodule:: qiita_db.metadata_template
This module provides the MetadataTemplate base class and the subclasses
SampleTemplate and PrepTemplate.
Classes
-------
..autosummary::
:... | bsd-3-clause |
JohnUrban/fast5tools | fast5tools/samclass.py | 1 | 125176 | import os, sys, re, pybedtools, pandas, operator
from collections import defaultdict
import numpy as np
from string import maketrans
isthis = {'gt':operator.gt, 'ge':operator.ge, 'lt':operator.lt, 'le':operator.le, 'eq':operator.eq, 'ne':operator.ne}
def Is(a,op,b):
return isthis[op](a,b)
class Sam(object):
... | mit |
scholi/pySPM | pySPM/SPM.py | 1 | 68219 | # -- coding: utf-8 --
# Copyright 2018 Olivier Scholder <o.scholder@gmail.com>
"""
Library to handle SPM data.
This is the core module of all images retrieved by SPM and ToF-SIMS.
"""
import numpy as np
import matplotlib.pyplot as plt
import scipy
import scipy.ndimage
import scipy.optimize
import skimage
import skim... | apache-2.0 |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/pandas/core/reshape.py | 1 | 33330 | # pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
from pandas.compat import range, zip
from pandas import compat
import itertools
import numpy as np
from pandas.core.series import Series
from pandas.core.frame import DataFrame
from pandas.core.categorical import Categorical
from pandas.core.co... | gpl-3.0 |
willgrass/pandas | pandas/core/frame.py | 1 | 55667 | # pylint: disable-msg=E1101,E1103
# pylint: disable-msg=W0212,W0231,W0703,W0622
from cStringIO import StringIO
import operator
import sys
from numpy import NaN
import numpy as np
from pandas.core.common import (_pickle_array, _unpickle_array, _pfixed,
isnull, notnull)
from pandas.core... | bsd-3-clause |
mne-tools/mne-python | mne/tests/test_source_estimate.py | 1 | 76498 | # -*- coding: utf-8 -*-
#
# License: BSD (3-clause)
from contextlib import nullcontext
from copy import deepcopy
import os
import os.path as op
from shutil import copyfile
import re
import numpy as np
from numpy.fft import fft
from numpy.testing import (assert_array_almost_equal, assert_array_equal,
... | bsd-3-clause |
jhamman/xarray | xarray/tests/test_dask.py | 1 | 39848 | import operator
import pickle
from contextlib import suppress
from distutils.version import LooseVersion
from textwrap import dedent
import numpy as np
import pandas as pd
import pytest
import xarray as xr
import xarray.ufuncs as xu
from xarray import DataArray, Dataset, Variable
from xarray.testing import assert_chu... | apache-2.0 |
datapythonista/pandas | pandas/tests/indexes/datetimes/test_timezones.py | 1 | 45091 | """
Tests for DatetimeIndex timezone-related methods
"""
from datetime import (
date,
datetime,
time,
timedelta,
tzinfo,
)
import dateutil
from dateutil.tz import (
gettz,
tzlocal,
)
import numpy as np
import pytest
import pytz
from pandas._libs.tslibs import (
conversion,
timezone... | bsd-3-clause |
openeemeter/eemeter | eemeter/features.py | 1 | 32876 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Copyright 2014-2019 OpenEEmeter contributors
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/LIC... | apache-2.0 |
gfyoung/pandas | pandas/core/indexes/interval.py | 1 | 40892 | """ define the IntervalIndex """
from __future__ import annotations
from functools import wraps
from operator import le, lt
import textwrap
from typing import TYPE_CHECKING, Any, Hashable, List, Optional, Tuple, Union, cast
import numpy as np
from pandas._config import get_option
from pandas._libs import lib
from p... | bsd-3-clause |
ANR-COMPASS/shesha | shesha/init/dm_init.py | 1 | 39249 | ## @package shesha.init.dm_init
## @brief Initialization of a Dms object
## @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/>
#
# Copyrigh... | gpl-3.0 |
amolkahat/pandas | pandas/util/testing.py | 1 | 101469 | from __future__ import division
# pylint: disable-msg=W0402
import re
import string
import sys
import tempfile
import warnings
import os
import subprocess
import locale
import traceback
from datetime import datetime
from functools import wraps
from contextlib import contextmanager
from numpy.random import randn, ran... | bsd-3-clause |
epam/DLab | infrastructure-provisioning/src/general/lib/aws/actions_lib.py | 1 | 82712 | # *****************************************************************************
#
# Copyright (c) 2016, EPAM SYSTEMS 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.apac... | apache-2.0 |
NextThought/pypy-numpy | numpy/core/tests/test_multiarray.py | 1 | 170497 | from __future__ import division, absolute_import, print_function
import tempfile
import sys
import os
import shutil
import warnings
import operator
import io
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
from decimal import Decimal
import numpy as np
from nose import SkipT... | bsd-3-clause |
tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with padding 2s/hmm_crossvalidation_force_motion_10_states_scaled_wrt_all_data.py | 1 | 40908 | # Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | mit |
HydrogeomorphologyTools/SedInConnect_2.3 | SedInConnect_2_3_w_64.py | 1 | 123302 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
SedInConnect 2.3
This tool computes the Connectivity index as expressed in Cavalli et al. (2013)
For the Guidelines on the application usage please visit the groupware session of www.sedalp.eu
authors: Stefano Crema, Marco Cavalli
last edited: March 2016
Copyright (C) 2... | gpl-2.0 |
nddsg/TreeDecomps | xplodnTree/explodingTree.py | 1 | 30922 | #!/usr/bin/env python
__version__ = "0.1.0"
# ToDo:
# [] process mult dimacs.trees to hrg
import argparse
import math
import multiprocessing as mp
import os
import platform
import shelve
import subprocess
import sys
import traceback
from glob import glob
from itertools import combinations
import pprint as pp... | mit |
pratapvardhan/pandas | pandas/core/indexes/timedeltas.py | 1 | 35561 | """ implement the TimedeltaIndex """
from datetime import timedelta
import numpy as np
from pandas.core.dtypes.common import (
_TD_DTYPE,
is_integer,
is_float,
is_bool_dtype,
is_list_like,
is_scalar,
is_timedelta64_dtype,
is_timedelta64_ns_dtype,
pandas_dtype,
_ensure_int64)
fr... | bsd-3-clause |
effigies/mne-python | mne/epochs.py | 1 | 82516 | """Tools for working with epoched data"""
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Matti Hamalainen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# Mainak Jas <mainak@neuro... | bsd-3-clause |
deroneriksson/systemml | src/main/python/systemml/mllearn/estimators.py | 2 | 43357 | # -------------------------------------------------------------
#
# 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 unde... | apache-2.0 |
timothyb0912/pylogit | tests/test_bootstrap_abc.py | 1 | 31590 | """
Tests for the bootstrap_abc.py file.
"""
import unittest
from collections import Iterable
import numpy as np
import numpy.testing as npt
import pandas as pd
import scipy.stats
import scipy.sparse
import pylogit.bootstrap_abc as abc
class HelperFuncTests(unittest.TestCase):
def test_ensure_model_obj_has_mapp... | bsd-3-clause |
Crobisaur/HyperSpec | Python/tifffile.py | 1 | 205137 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2015, Christoph Gohlke
# Copyright (c) 2008-2015, 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... | gpl-3.0 |
schlegelp/pymaid | pymaid/tiles.py | 1 | 42042 | # This script is part of pymaid (http://www.github.com/schlegelp/pymaid).
# Copyright (C) 2017 Philipp Schlegel
#
# 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 ... | gpl-3.0 |
vlas-sokolov/multicube | multicube/subcube.py | 1 | 62058 | from __future__ import print_function, division
import numpy as np
import matplotlib.pylab as plt
import astropy.units as u
from astropy import log
from astropy.utils.console import ProgressBar
import pyspeckit
import os
# imports for the test fiteach redefinition
import time
import itertools
from astropy.extern.six i... | mit |
magic2du/contact_matrix | Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load2-new10fold_11_03_2014_server_2.py | 1 | 41825 |
# coding: utf-8
# In[3]:
import sys, os
sys.path.append('../../../libs/')
import os.path
import IO_class
from IO_class import FileOperator
from sklearn import cross_validation
import sklearn
import numpy as np
import csv
from dateutil import parser
from datetime import timedelta
from sklearn import svm
import numpy ... | gpl-2.0 |
QUANTAXIS/QUANTAXIS | QUANTAXIS_Test/QAFetch_Test/QAQuery_Advance_Test.py | 2 | 56742 | # coding:utf-8
#
# The MIT License (MIT)
# Copyright (c) 2016-2021 yutiansut/QUANTAXIS
#
# Author: 604829050@qq.com
# Date: 2018-05-11
# Description: Unit test for the fetch data
import unittest
import fnmatch
import os
import struct
from QUANTAXIS import *
import sqlite3
import ctypes
'''
mac or linux 可以使用wi... | mit |
haozhangphd/genx-py3 | genx/plotpanel.py | 1 | 53604 | # File: plotpanel.py a extension of panel that implements matplotlib plotting
# libary.
# Programmed by: Matts Bjorck
# Last changed: 2009 03 10
import matplotlib
matplotlib.interactive(False)
# Use WXAgg backend Wx to slow
matplotlib.use('Agg')
from matplotlib.backends.backend_wx import FigureCanvasWx
from matplotlib... | gpl-3.0 |
lbdreyer/cartopy | lib/cartopy/mpl/geoaxes.py | 1 | 62394 | # (C) British Crown Copyright 2011 - 2014, Met Office
#
# This file is part of cartopy.
#
# cartopy 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)... | lgpl-3.0 |
dsm054/pandas | pandas/tests/frame/test_indexing.py | 1 | 131033 | # -*- coding: utf-8 -*-
from __future__ import print_function
from warnings import catch_warnings, simplefilter
from datetime import datetime, date, timedelta, time
from pandas.compat import map, zip, range, lrange, lzip, long
from pandas import compat
from numpy import nan
from numpy.random import randn
import py... | bsd-3-clause |
ARudiuk/mne-python | mne/label.py | 1 | 77808 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from collections import defaultdict
from colorsys import hsv_to_rgb, rgb_to_hsv
from os import path as op
impor... | bsd-3-clause |
puruckertom/ubertool | ubertool/kabam/kabam_exe.py | 1 | 125771 | from __future__ import division
import numpy as np
import pandas as pd
from base.uber_model import UberModel, ModelSharedInputs
from .kabam_functions import KabamFunctions
class KabamInputs(ModelSharedInputs):
"""
Required inputs class for Kabam.
"""
def __init__(self):
"""Class representing ... | unlicense |
emd/random_data | random_data/array.py | 1 | 56184 | '''This module defines several inter-related classes for analyzing
an array of measurements, where an "array" is defined as three or
more measurements.
'''
# Standard library imports
import numpy as np
import matplotlib.pyplot as plt
from fractions import gcd
# Related 3rd-party imports
from .ensemble import closes... | gpl-2.0 |
vialectrum/vialectrum | electrum_ltc/gui/qt/history_list.py | 1 | 34247 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2015 Thomas Voegtlin
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without... | mit |
lukovkin/ufcnn-keras | models/UFCNN1_REPO_V16_TESTMODE.py | 1 | 51403 | from __future__ import absolute_import
from __future__ import print_function
import sys
import glob
import time
import numpy as np
import pandas as pd
import os.path
import time
import datetime
import re
from keras.preprocessing import sequence
from keras.optimizers import SGD, RMSprop, Adagrad
from keras.utils impor... | mit |
DGrady/pandas | pandas/tests/indexes/datetimes/test_tools.py | 1 | 62770 | """ test to_datetime """
import sys
import pytz
import pytest
import locale
import calendar
import dateutil
import numpy as np
from dateutil.parser import parse
from datetime import datetime, date, time
from distutils.version import LooseVersion
import pandas as pd
from pandas._libs import tslib, lib
from pandas.core... | bsd-3-clause |
Shirling-VT/davitpy_sam | davitpy/pydarn/plotting/musicPlot.py | 1 | 87357 | # Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | gpl-3.0 |
parttimenerd/temci | temci/report/report.py | 1 | 103866 | import logging
from enum import Enum, unique
import math
import re
import shutil
from collections import namedtuple
import multiprocessing
import time
import sys
import itertools
from scipy import stats
from temci.report.stats import TestedPairsAndSingles, BaseStatObject, TestedPair, TestedPairProperty, StatMess... | gpl-3.0 |
Novaleaf/QuantShim | quantShim.py | 2 | 72277 | # -*- coding: utf-8 -*-
"""
TL;DR:
1) jump to the end of this file
2) replace/extend "ExampleFramework" (around line 1601)
3) copy/paste this file to quantopian
4) backtest
-------------
@summary: An intraday algorithmic trading framework for use with quantopian.com
Primary use is to support multiple algorithm... | gpl-3.0 |
yudingding6197/fin_script | internal/ts_common.py | 1 | 46956 | #!/usr/bin/env python
# -*- coding:gbk -*-
import sys
import re
import os
import string
import datetime
import urllib2
import zlib
import pandas as pd
from openpyxl import Workbook
from openpyxl.reader.excel import load_workbook
from xml.etree import ElementTree as ET
from common import *
from decimal import Decimal
... | gpl-2.0 |
jor-/scipy | scipy/stats/stats.py | 1 | 233671 | # Copyright 2002 Gary Strangman. All rights reserved
# Copyright 2002-2016 The SciPy Developers
#
# The original code from Gary Strangman was heavily adapted for
# use in SciPy by Travis Oliphant. The original code came with the
# following disclaimer:
#
# This software is provided "as-is". There are no expressed or... | bsd-3-clause |
heprom/pymicro | pymicro/external/tifffile.py | 1 | 232855 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2017, Christoph Gohlke
# Copyright (c) 2008-2017, 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... | mit |
jonasrothfuss/DeepEpisodicMemory | data_postp/similarity_computations.py | 1 | 61236 | from math import *
import os, collections, scipy, itertools, multiprocessing, shutil
from datetime import datetime
from pprint import pprint
from tensorflow.python.platform import flags
import matplotlib as mpl
mpl.use('Agg')
from matplotlib.colors import ListedColormap
import matplotlib.pyplot as plt
# import matplotl... | mit |
ojengwa/sympy | sympy/utilities/runtests.py | 2 | 77702 | """
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
* po... | bsd-3-clause |
wintermind/pypedal | PyPedal/pyp_graphics.py | 1 | 43266 | #!/usr/bin/python
# -*- coding: utf-8 -*-
###############################################################################
# NAME: pyp_graphics.py
# VERSION: 2.0.0 (29SEPTEMBER2010)
# AUTHOR: John B. Cole, PhD (john.cole@ars.usda.gov)
# LICENSE: LGPL
#####################################################################... | gpl-2.0 |
wiso/dask | dask/dataframe/core.py | 1 | 60746 | from __future__ import division
from functools import wraps, reduce
from collections import Iterable
import bisect
import uuid
from toolz import merge, partial, first, partition
from operator import getitem, setitem
from datetime import datetime
import pandas as pd
import numpy as np
import operator
try:
from ches... | bsd-3-clause |
jwdegee/2017_eLife | defs_fmri_group.py | 1 | 722083 | #!/usr/bin/env python
# encoding: utf-8
"""
================================================
Created by Jan Willem de Gee on 2014-06-01.
Copyright (c) 2009 jwdegee. All rights reserved.
================================================
"""
import os
import sys
import datetime
import pickle
import math
import numpy... | mit |
CGATOxford/CGATPipelines | obsolete/PipelineTimeseries.py | 1 | 51341 | """PipelineTimeseries.py
===============================
"""
#############################################################
# Classes and functions for pipeline_timeseries_clustering.py
#############################################################
import sys
import os
import itertools
import math
import numpy as np
i... | mit |
kdwink/intellij-community | python/helpers/pydev/pydevd.py | 1 | 102551 | #IMPORTANT: pydevd_constants must be the 1st thing defined because it'll keep a reference to the original sys._getframe
from __future__ import nested_scopes # Jython 2.1 support
import pydevd_utils
from pydevd_utils import save_main_module
import traceback
from pydevd_frame_utils import add_exception_to_frame
import... | apache-2.0 |
thunderhoser/GewitterGefahr | gewittergefahr/gg_utils/temporal_tracking.py | 1 | 92200 | """Handles the temporal part of storm-tracking ('connecting the dots')."""
import copy
from collections import OrderedDict
import numpy
import pandas
from geopy.distance import geodesic
from gewittergefahr.gg_utils import time_conversion
from gewittergefahr.gg_utils import storm_tracking_utils as tracking_utils
from g... | mit |
wangmiao1981/spark | python/pyspark/pandas/indexes/base.py | 2 | 84541 | #
# 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 |
chrsrds/scikit-learn | sklearn/decomposition/dict_learning.py | 1 | 54199 | """ Dictionary learning
"""
# Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort
# License: BSD 3 clause
import time
import sys
import itertools
from math import ceil
import numpy as np
from scipy import linalg
from joblib import Parallel, delayed, effective_n_jobs
from ..base import BaseEstimator, Transforme... | bsd-3-clause |
carlohamalainen/nipype | nipype/algorithms/modelgen.py | 5 | 33359 | # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
# vi: set ft=python sts=4 ts=4 sw=4 et:
"""
The modelgen module provides classes for specifying designs for individual
subject analysis of task-based fMRI experiments. In particular it also includes
algorithms for generating regressors for sparse... | bsd-3-clause |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/matplotlib/tri/triinterpolate.py | 1 | 66182 | """
Interpolation inside triangular grids.
"""
from matplotlib.tri import Triangulation
from matplotlib.tri.trifinder import TriFinder
from matplotlib.tri.tritools import TriAnalyzer
import numpy as np
import warnings
__all__ = ('TriInterpolator', 'LinearTriInterpolator', 'CubicTriInterpolator')
class TriInterpolat... | gpl-3.0 |
niknow/scipy | scipy/special/basic.py | 2 | 68861 | #
# 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 |
amaurywalbert/twitter | evaluation/without_ground_truth/coef_clustering/plot_coef_clust.py | 2 | 51709 | # -*- coding: latin1 -*-
################################################################################################
import datetime, sys, time, json, os, os.path, shutil, time, struct, random, math
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import pylab
import numpy as np
from math import*
imp... | gpl-3.0 |
loli/sklearn-ensembletrees | sklearn/preprocessing/data.py | 1 | 38103 | # 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
import numbers
import warnings
import itertools
import numpy as np
from scipy... | bsd-3-clause |
DTOcean/dtocean-core | test_data/inputs_wp5.py | 1 | 93062 | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 21 11:49:00 2016
@author: acollin
"""
import os
import datetime
from collections import Counter
from dateutil.parser import parse
import utm
import numpy as np
import pandas as pd
from shapely.geometry import Point
this_dir = os.path.dirname(os.path.realpath(__file__))... | gpl-3.0 |
danielmuellernai/ouropy | genconnection.py | 1 | 33007 | # -*- coding: utf-8 -*-
"""
This module implements the GenNetwork class, which implements generic network
logic. Also implements Population and GenConnection classes
@author: DanielM
"""
from neuron import h
import random
import numpy as np
import matplotlib.pyplot as plt
import math
import time
import os
import shel... | gpl-2.0 |
pburdet/hyperspy | hyperspy/misc/io/tifffile.py | 1 | 130848 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2014, Christoph Gohlke
# Copyright (c) 2008-2014, 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... | gpl-3.0 |
maliyngh/LTPython | LTData.py | 1 | 46648 | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 11 21:33:12 2016
@author: mali
"""
from enum import Enum
#Region ExtraRayData Filters
class ExtraRayData(Enum):
Source=1 #1.0 if filter condition met, 0.0 otherwise.
Surface =2 #1.0 if filter condition met, 0.0 otherwise.
... | apache-2.0 |
mortonjt/american-gut-web | amgut/lib/locale_data/american_gut.py | 1 | 112188 | #!/usr/bin/env python
from __future__ import division
from amgut.lib.config_manager import AMGUT_CONFIG
# -----------------------------------------------------------------------------
# Copyright (c) 2014--, The American Gut Project Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The... | bsd-3-clause |
basnijholt/holoviews | holoviews/core/io.py | 2 | 33778 | """
Module defining input/output interfaces to HoloViews.
There are two components for input/output:
Exporters: Process (composite) HoloViews objects one at a time. For
instance, an exporter may render a HoloViews object as a
svg or perhaps pickle it.
Archives: A collection of HoloViews objects... | bsd-3-clause |
temmeand/scikit-rf | skrf/plotting.py | 1 | 72519 | '''
.. module:: skrf.plotting
========================================
plotting (:mod:`skrf.plotting`)
========================================
This module provides general plotting functions.
Plots and Charts
------------------
.. autosummary::
:toctree: generated/
smith
plot_smith
plot_rectangula... | bsd-3-clause |
ryandougherty/mwa-capstone | MWA_Tools/build/matplotlib/lib/matplotlib/backends/backend_wx.py | 1 | 78403 | from __future__ import division
"""
backend_wx.py
A wxPython backend for matplotlib, based (very heavily) on
backend_template.py and backend_gtk.py
Author: Jeremy O'Donoghue (jeremy@o-donoghue.com)
Derived from original copyright work by John Hunter
(jdhunter@ace.bsd.uchicago.edu)
Copyright (C) Jeremy O'Don... | gpl-2.0 |
gfyoung/pandas | pandas/tests/io/formats/test_style.py | 1 | 69696 | import copy
import re
import textwrap
import numpy as np
import pytest
import pandas.util._test_decorators as td
import pandas as pd
from pandas import DataFrame
import pandas._testing as tm
jinja2 = pytest.importorskip("jinja2")
from pandas.io.formats.style import Styler, _get_level_lengths # isort:skip
class T... | bsd-3-clause |
google/trimmed_match | trimmed_match/design/tests/trimmed_match_design_test.py | 1 | 32709 | # Copyright 2020 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 or agreed to in writing,... | apache-2.0 |
jaeilepp/mne-python | mne/viz/topo.py | 1 | 33141 | """Functions to plot M/EEG data on topo (one axes per channel)."""
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.eri... | bsd-3-clause |
Silmathoron/NNGT | nngt/plot/plt_properties.py | 1 | 35313 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# This file is part of the NNGT project to generate and analyze
# neuronal networks and their activity.
# Copyright (C) 2015-2019 Tanguy Fardet
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License a... | gpl-3.0 |
ammarkhann/FinalSeniorCode | lib/python2.7/site-packages/pandas/tests/frame/test_combine_concat.py | 3 | 30065 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime
import numpy as np
from numpy import nan
import pandas as pd
from pandas import DataFrame, Index, Series, Timestamp, date_range
from pandas.compat import lrange
from pandas.tests.frame.common import TestData
import pandas... | mit |
ARM-software/lisa | lisa/analysis/tasks.py | 1 | 44090 | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2015, ARM Limited and contributors.
#
# 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
#
# ... | apache-2.0 |
jyotipar/ONLscheduling | python_test/test_harness.py | 1 | 66149 | #
# Copyright (c) 2012,2013 Jyoti Parwatikar and Washington University in St. Louis.
# All rights reserved
#
# Distributed under the terms of the GNU General Public License v3
#
#! /usr/bin/python
import networkx
import argparse
#import pygraphviz as pgv
import matplotlib.pyplot as mplot
import math
#read in co... | gpl-3.0 |
mwaskom/seaborn | seaborn/tests/test_distributions.py | 2 | 74149 | import itertools
from distutils.version import LooseVersion
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.colors import to_rgb, to_rgba
import pytest
from numpy.testing import assert_array_equal, assert_array_almost_equal
from .. import distributions as dist
from ..palet... | bsd-3-clause |
equialgo/scikit-learn | sklearn/model_selection/tests/test_validation.py | 1 | 38253 | """Test the validation module"""
from __future__ import division
import sys
import warnings
import tempfile
import os
from time import sleep
import numpy as np
from scipy.sparse import coo_matrix, csr_matrix
from sklearn.utils.testing import assert_true
from sklearn.utils.testing import assert_false
from sklearn.uti... | bsd-3-clause |
uwescience/pulse2percept | pulse2percept/models/base.py | 1 | 36263 | """`BaseModel`, `Model`, `NotBuiltError`, `Percept`, `SpatialModel`,
`TemporalModel`"""
import sys
from abc import ABCMeta, abstractmethod
from copy import deepcopy
import numpy as np
from ..implants import ProsthesisSystem
from ..stimuli import Stimulus
from ..percepts import Percept
from ..utils import PrettyPrin... | bsd-3-clause |
jinzishuai/learn2deeplearn | deeplearning.ai/C4.CNN/week1_foundations/hw/hw1a.py | 1 | 38303 | #!/usr/bin/python3
# coding: utf-8
# # Convolutional Neural Networks: Step by Step
#
# Welcome to Course 4's first assignment! In this assignment, you will implement convolutional (CONV) and pooling (POOL) layers in numpy, including both forward propagation and (optionally) backward propagation.
#
# **Notation**:
#... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.