repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
angr/angr | angr/knowledge_plugins/functions/function.py | 1 | 62508 | import os
import logging
import networkx
import string
import itertools
from collections import defaultdict
from typing import Union, Optional, Iterable, Set, Generator
from typing import Type # For some reasons the linter doesn't recognize the use in apply_definition but PyCharm needs it imported to correctly recogniz... | bsd-2-clause |
dimkal/mne-python | mne/decoding/time_gen.py | 2 | 49684 | # Authors: Jean-Remi King <jeanremi.king@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Clement Moutard <clement.moutard@gmail.com>
#
# License: BSD (3-clause)
import numpy as np
import copy
from ..io.pick import pick_... | bsd-3-clause |
cbertinato/pandas | pandas/tests/groupby/test_transform.py | 1 | 30966 | """ test with the .transform """
from io import StringIO
import numpy as np
import pytest
from pandas._libs import groupby
from pandas.core.dtypes.common import ensure_platform_int, is_timedelta64_dtype
import pandas as pd
from pandas import (
Categorical, DataFrame, MultiIndex, Series, Timestamp, concat, date_... | bsd-3-clause |
wotan-fpga/wotan | python/run_benchmarks.py | 1 | 32236 |
import subprocess
import os
import sys
import time
import datetime
import re
import random
import multiprocessing
#from enum import Enum
import numpy as np
import matplotlib.pyplot as plt
import copy_reg
import types
from my_regex import *
import arch_handler as ah
###### Enums ######
e_Test_Type = ('normal',
'bin... | mit |
henryroe/ztv | ztv/phot_panel.py | 1 | 31884 | from __future__ import absolute_import
import wx
from wx.lib.pubsub import pub
import matplotlib
from matplotlib.figure import Figure
from matplotlib.widgets import AxesWidget
try:
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg
except IOError:
# on some linux installations this import needs to ... | mit |
DGrady/pandas | pandas/tests/tseries/test_offsets.py | 2 | 216454 | import os
from distutils.version import LooseVersion
from datetime import date, datetime, timedelta
from dateutil.relativedelta import relativedelta
import pytest
from pandas.compat import range, iteritems
from pandas import compat
import numpy as np
from pandas.compat.numpy import np_datetime64_compat
from pandas.... | bsd-3-clause |
erikness/AlephOne | tests/test_algorithm.py | 1 | 37219 | #
# Copyright 2014 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 |
rs2/pandas | pandas/tests/indexes/datetimes/test_constructors.py | 1 | 40933 | 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 |
JConwayAWT/PGSS14CC | lib/python/multimetallics/ase/atoms.py | 1 | 54884 | # Copyright 2008, 2009 CAMd
# (see accompanying license files for details).
"""Definition of the Atoms class.
This module defines the central object in the ASE package: the Atoms
object.
"""
from math import cos, sin
import numpy as np
from ase.atom import Atom
from ase.data import atomic_numbers, chemical_symbols... | gpl-2.0 |
kwentz10/Photosynthesis_Optimization_Modeling | time_dep_params.py | 1 | 58694 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Tue May 23 11:15:33 2017
@author: Katherine
"""
import numpy as np
import math
from matplotlib import pyplot as plt
from scipy.interpolate import interp1d
from scipy.signal import savgol_filter
import numpy as np
from photo_functions import gs_smooth
#20... | mit |
gully/PyKE | pyke/lightcurve.py | 1 | 47216 | import copy
import numpy as np
from scipy import linalg, signal, interpolate
import oktopus
from astropy.io import fits as pyfits
from astropy.stats import sigma_clip
from astropy.table import Table
from tqdm import tqdm
import requests
from bs4 import BeautifulSoup
from .utils import running_mean, channel_to_module_ou... | mit |
boland1992/SeisSuite | build/lib/seissuite/ant/pscrosscorr (copy).py | 2 | 130369 | #!/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, psstation, psutils, pstomo
import obspy.signal
import obspy.xseed
import obspy.signal.cros... | gpl-3.0 |
MattNolanLab/ei-attractor | noisefigs/noisefigs/defaultconfig.py | 1 | 35887 | from __future__ import absolute_import, print_function
from copy import deepcopy
import matplotlib.ticker as ti
from configobj import ConfigObj
from .plotters.base import PdfOutputSaver
from .plotters.base import SeparateMultipageSaver, ExampleSetting
scale_factor = 1.
exampleRC = ((5, 15), (15, 5))
tick_width = ... | gpl-3.0 |
DGrady/pandas | pandas/tseries/offsets.py | 2 | 95582 | from datetime import date, datetime, timedelta
from pandas.compat import range
from pandas import compat
import numpy as np
from pandas.core.dtypes.generic import ABCSeries, ABCDatetimeIndex, ABCPeriod
from pandas.core.tools.datetimes import to_datetime, normalize_date
from pandas.core.common import AbstractMethodErro... | bsd-3-clause |
DSSG-paratransit/main_repo | Access_Analysis_Project/Scripts/4moDeadheadResultsToCsv.py | 1 | 961337 | import pandas as pd
import os
def findZeroes(row, numRows):
os.system(['clear', 'cls'][os.name == 'nt'])
print row
print str(float(row.name) / numRows * 100) + '%' + ' done'
busRun = data[(data['ServiceDate'] == row[0]) & (data['Run'] == row[1])]
if sum(busRun.NumOn) <= 0:
return(False)
... | agpl-3.0 |
alittel/2016_Group04_StormHelper | spatial_decision_dockwidget.py | 1 | 32466 | # -*- coding: utf-8 -*-
"""
/***************************************************************************
SpatialDecisionDockWidget
A QGIS plugin
This is a SDSS template for the GEO1005 course
-------------------
begin : 2015-11-02
... | gpl-2.0 |
geophysics/mtpy | mtpy/imaging/plotresidualptps.py | 1 | 49427 | # -*- coding: utf-8 -*-
"""
PlotResidualPhaseTensorPseudoSection
=======================
*plots the residual phase tensor for two different sets of measurments
Created on Wed Oct 16 14:56:04 2013
@author: jpeacock-pr
"""
#==============================================================================
imp... | gpl-3.0 |
jungmannlab/picasso | picasso/__main__.py | 1 | 50481 | #!/usr/bin/env python
"""
..__main__.py
~~~~~~~~~~~~~~~~
Picasso command line interface
:authors: Joerg Schnitzbauer, Maximilian Thomas Strauss
:copyright: Copyright (c) 2016-2019 Jungmann Lab, MPI of Biochemistry
"""
import os.path
def _average(args):
from glob import glob
from .io impo... | mit |
amolkahat/pandas | pandas/tests/indexes/datetimes/test_timezones.py | 1 | 44983 | # -*- coding: utf-8 -*-
"""
Tests for DatetimeIndex timezone-related methods
"""
from datetime import datetime, timedelta, tzinfo, date, time
from distutils.version import LooseVersion
import pytest
import pytz
import dateutil
from dateutil.tz import gettz, tzlocal
import numpy as np
import pandas.util.testing as tm
... | bsd-3-clause |
anntzer/scikit-learn | sklearn/feature_extraction/tests/test_text.py | 3 | 50508 | # -*- coding: utf-8 -*-
from collections.abc import Mapping
import re
import pytest
from scipy import sparse
from sklearn.feature_extraction.text import strip_tags
from sklearn.feature_extraction.text import strip_accents_unicode
from sklearn.feature_extraction.text import strip_accents_ascii
from sklearn.feature_ex... | bsd-3-clause |
magic2du/contact_matrix | Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_New_local_test.py | 1 | 47411 |
# coding: utf-8
# In[5]:
import sys, os
sys.path.append('../../../libs/')
sys.path.append('../libs/')
sys.path.append('../../libs/')
import os.path
import IO_class
from IO_class import FileOperator
from sklearn import cross_validation
import sklearn
import csv
from dateutil import parser
from datetime import timede... | gpl-2.0 |
ehealthafrica-ci/formhub | odk_viewer/tests/test_exports.py | 2 | 88683 | from sys import stdout
import os
import datetime
import json
import StringIO
import csv
import tempfile
import zipfile
import shutil
import unittest
from openpyxl import load_workbook
from time import sleep
from pyxform.builder import create_survey_from_xls
from django.conf import settings
from main.tests.test_base imp... | bsd-2-clause |
teonlamont/mne-python | mne/decoding/csp.py | 3 | 36474 | # -*- coding: utf-8 -*-
# Authors: Romain Trachel <trachelr@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Alexandre Barachant <alexandre.barachant@gmail.com>
# Clemens Brunner <clemens.brunner@gmail.com>
# Jean-Remi King <jeanremi.king@gmail.com>
#
# Lic... | bsd-3-clause |
ajylee/gpaw-rtxs | gpaw/atom/generator2.py | 1 | 34839 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from math import pi, exp, sqrt, log
import numpy as np
from scipy.interpolate import interp1d
from scipy.optimize import fsolve
from scipy import __version__ as scipy_version
from ase.utils import prnt
from ase.units import Hartree, Bohr
from ase.data import ato... | gpl-3.0 |
cjermain/numpy | numpy/core/tests/test_multiarray.py | 1 | 227393 | 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 ctypes
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
from decimal import Decimal
i... | bsd-3-clause |
saullocastro/pyNastran | pyNastran/op2/tables/oef_forces/oef_force_objects.py | 1 | 150289 | #pylint disable=C0301
from __future__ import (nested_scopes, generators, division, absolute_import,
print_function, unicode_literals)
from itertools import cycle
from six.moves import zip, range
import numpy as np
from numpy import zeros, searchsorted, allclose
try:
import pandas as pd
exce... | lgpl-3.0 |
wzmao/mbio | mbio/EM/analysis.py | 1 | 39422 | # -*- coding: utf-8 -*-
"""This module contains some functions for EM analysis.
"""
__author__ = 'Wenzhi Mao'
__all__ = ['genPvalue', 'calcPcutoff', 'showPcutoff', 'transCylinder',
'showMRCConnection', 'showMRCConnectionEach', 'gaussian3D']
def interpolationball(matrix, index, step, r, **kwargs):
"""I... | mit |
XueqingLin/tensorflow | tensorflow/contrib/learn/python/learn/estimators/linear_test.py | 1 | 57602 | # 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 |
Winand/pandas | pandas/util/testing.py | 1 | 93210 | from __future__ import division
# pylint: disable-msg=W0402
import re
import string
import sys
import tempfile
import warnings
import inspect
import os
import subprocess
import locale
import traceback
from datetime import datetime
from functools import wraps, partial
from contextlib import contextmanager
from distuti... | bsd-3-clause |
rwgdrummer/maskgen | maskgen/ui/masken_ui.py | 1 | 68494 | # =============================================================================
# Authors: PAR Government
# Organization: DARPA
#
# Copyright (c) 2016 PAR Government
# All rights reserved.
# ==============================================================================
import argparse
import matplotlib
matplotlib.us... | bsd-3-clause |
Foxfanmedium/python_training | OnlineCoursera/mail_ru/Python_1/env/Lib/site-packages/IPython/core/interactiveshell.py | 1 | 135370 | # -*- coding: utf-8 -*-
"""Main IPython class."""
#-----------------------------------------------------------------------------
# Copyright (C) 2001 Janko Hauser <jhauser@zscout.de>
# Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu>
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distribu... | apache-2.0 |
ericpre/hyperspy | hyperspy/signal.py | 1 | 247722 | # -*- coding: utf-8 -*-
# Copyright 2007-2021 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 |
njoubert/MAVProxy | MAVProxy/mavproxy.py | 1 | 43230 | #!/usr/bin/env python
'''
mavproxy - a MAVLink proxy program
Copyright Andrew Tridgell 2011
Released under the GNU GPL version 3 or later
'''
import sys, os, time, socket, signal
import fnmatch, errno, threading
import serial, Queue, select
import traceback
import select
import shlex
import platform
from MAVProxy.m... | gpl-3.0 |
gregreen/legacypipe | py/legacypipe/common.py | 1 | 86929 | from __future__ import print_function
if __name__ == '__main__':
import matplotlib
matplotlib.use('Agg')
import pylab as plt
import os
import tempfile
import time
import numpy as np
import fitsio
from astrometry.util.fits import fits_table, merge_tables
from astrometry.util.file import trymakedirs
from astr... | gpl-2.0 |
HKUST-SING/tensorflow | tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py | 2 | 60813 | # 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 |
schlegelp/pymaid | pymaid/client.py | 1 | 40653 | # 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 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tools/tests/test_pivot.py | 1 | 41944 | from datetime import datetime, date, timedelta
import numpy as np
from numpy.testing import assert_equal
import pandas as pd
from pandas import DataFrame, Series, Index, MultiIndex, Grouper
from pandas.tools.merge import concat
from pandas.tools.pivot import pivot_table, crosstab
from pandas.compat import range, u, p... | gpl-2.0 |
bdh1011/wau | venv/lib/python2.7/site-packages/pandas/io/parsers.py | 1 | 84632 | """
Module contains tools for processing files into DataFrames or other objects
"""
from __future__ import print_function
from pandas.compat import range, lrange, StringIO, lzip, zip, string_types, map
from pandas import compat
import re
import csv
import warnings
import numpy as np
from pandas.core.index import Inde... | mit |
taborlab/FlowCal | FlowCal/mef.py | 1 | 48430 | """
Functions for transforming flow cytometer data to MEF units.
"""
import os
import functools
import collections
import six
import packaging
import packaging.version
import numpy as np
import scipy
from scipy.optimize import minimize
import matplotlib.pyplot as plt
import sklearn
if packaging.version.parse(sklearn... | mit |
winklerand/pandas | pandas/io/formats/style.py | 1 | 42543 | """
Module for applying conditional formatting to
DataFrames and Series.
"""
from functools import partial
from itertools import product
from contextlib import contextmanager
from uuid import uuid1
import copy
from collections import defaultdict, MutableMapping
try:
from jinja2 import (
PackageLoader, Envi... | bsd-3-clause |
cheral/orange3 | Orange/widgets/visualize/owsilhouetteplot.py | 1 | 39033 | import sys
import itertools
import enum
from xml.sax.saxutils import escape
from types import SimpleNamespace as namespace
if sys.version_info > (3, 5):
from typing import Optional
import numpy
import sklearn.metrics
from AnyQt.QtWidgets import (
QGraphicsScene, QGraphicsView, QGraphicsWidget, QGraphicsGrid... | bsd-2-clause |
knutfrode/opendrift | opendrift/models/basemodel.py | 1 | 176191 | # This file is part of OpenDrift.
#
# OpenDrift 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
#
# OpenDrift is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without ev... | gpl-2.0 |
sostenibilidad-unam/posgrado | posgradmin/posgradmin/models.py | 1 | 67514 | # coding: utf-8
import os
import pandas as pd
from pandas.plotting import parallel_coordinates
import datetime
from django.template.defaultfilters import slugify
from django.db import models
from django.db.models import Q
from django.contrib.auth.models import User
from .settings import solicitudes_profesoriles,\
... | gpl-3.0 |
toobaz/pandas | pandas/tests/test_multilevel.py | 1 | 81353 | import datetime
from io import StringIO
import itertools
from itertools import product
from warnings import catch_warnings, simplefilter
import numpy as np
from numpy.random import randn
import pytest
import pytz
from pandas.core.dtypes.common import is_float_dtype, is_integer_dtype
import pandas as pd
from pandas i... | bsd-3-clause |
lucidfrontier45/scikit-learn | sklearn/gaussian_process/gaussian_process.py | 1 | 33770 | #!/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, RegressorMixin
from ..metrics.pairwise import m... | bsd-3-clause |
openstreams/wflow | wflow/wflow_emwaq.py | 1 | 124305 | #!/usr/bin/python
# Wflow is Free software, see below:
#
# Copyright (c) J. Schellekens/Deltares 2005-2014
#
# 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
... | gpl-3.0 |
predkt/tuner | sandbox/helper_functions.py | 1 | 39892 | import smtplib
import pandas as pd
import math
import numpy as np
import operator
import string
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import time
import datetime
import os
import sys
import threading
from functools import wraps
import xgboost as xgb
from xgboost.sklearn import XGBClassifi... | gpl-3.0 |
tobiasgehring/qudi | logic/pulsed_measurement_logic.py | 1 | 58081 | # -*- coding: utf-8 -*-
"""
This file contains the Qudi logic which controls all pulsed measurements.
Qudi 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 ... | gpl-3.0 |
TissueMAPS/TmLibrary | tmlib/workflow/jterator/handles.py | 1 | 32766 | # TmLibrary - TissueMAPS library for distibuted image analysis routines.
# Copyright (C) 2016 Markus D. Herrmann, University of Zurich and Robin Hafen
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Softwa... | agpl-3.0 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tests/frame/test_constructors.py | 1 | 77357 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime, timedelta
import functools
import itertools
import nose
from numpy.random import randn
import numpy as np
import numpy.ma as ma
import numpy.ma.mrecords as mrecords
from pandas.compat import (lmap, long, zip, range, lrang... | gpl-2.0 |
itoledoc/gWTO2 | wtoAlgorithm3.py | 1 | 34618 | """
wtoAlgorithm.py: the gWTO selector and scorer library.
======================================================
This library contains the classes and functions required to select and rank
SBs from the information that is stored in a WtoDatabse object.
"""
__author__ = 'itoledo'
from datetime import datetime
from da... | gpl-2.0 |
arthurfait/HMM-3 | hmm/algo_HMM.py | 1 | 86654 | '''
This file contains the main algorithms
used to train the hmms, namely forward,backward,viterbi and baum-welch
TODO: tests
'''
try:
import psyco
psyco.full()
except:
pass
# Usually we use nicknames for the states and links
#
# B = {Begin}, E= {all emitting states}, N={all null States}
# S ={ all states} = B U E... | gpl-3.0 |
isovic/aligneval | src/evalalignments4.py | 1 | 65622 | #! /usr/bin/python
SCRIPT_VERSION = 'v4';
import os;
SCRIPT_PATH = os.path.dirname(os.path.realpath(__file__));
import sys;
import re;
import math;
import time;
import numpy as np;
# import loadacc;
# from loadacc import AccuracyInfo;
from basicdefines import *;
# import main_sam_analysis;
import plot_with_seabour... | mit |
xhochy/arrow | python/pyarrow/tests/test_plasma.py | 1 | 44021 | # 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 |
cea-sec/ivre | ivre/db/__init__.py | 1 | 149046 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of IVRE.
# Copyright 2011 - 2021 Pierre LALET <pierre@droids-corp.org>
#
# IVRE 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 versio... | gpl-3.0 |
janscience/thunderfish | thunderfish/eventdetection.py | 1 | 53715 | """
Detect and handle peaks and troughs as well as threshold crossings in data arrays.
## Peak detection
- `detect_peaks()`: peak and trough detection with a relative threshold.
- `peak_width()`: compute width of each peak.
- `peak_size_width()`: compute for each peak its size and width.
## Threshold crossings
- `t... | gpl-3.0 |
NSLS-II-HXN/PyXRF | pyxrf/xanes_maps/xanes_maps_api.py | 1 | 151506 | import os
import re
import sys
import numpy as np
import csv
from pystackreg import StackReg
import matplotlib.pyplot as plt
from matplotlib.widgets import Slider, Button, TextBox
from matplotlib.patches import Rectangle, FancyArrow
import time as ttime
import tifffile
import jsonschema
import pandas as pd
from ..mode... | bsd-3-clause |
3324fr/spinalcordtoolbox | scripts/msct_image.py | 1 | 52698 | #!/usr/bin/env python
#########################################################################################
#
# Image class implementation
#
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca>
# Authors: Augus... | mit |
GuessWhoSamFoo/pandas | pandas/core/indexes/datetimes.py | 1 | 61038 | # pylint: disable=E1101
from __future__ import division
from datetime import datetime, time, timedelta
import operator
import warnings
import numpy as np
from pandas._libs import (
Timestamp, index as libindex, join as libjoin, lib, tslib as libts)
from pandas._libs.tslibs import ccalendar, fields, parsing, time... | bsd-3-clause |
js850/pele | pele/utils/disconnectivity_graph.py | 1 | 43449 | import copy
from itertools import izip
from collections import deque
import numpy as np
import networkx as nx
from pele.landscape import database2graph
__all__ = ["DisconnectivityGraph"]
class Tree(object):
"""
a Tree graph
Each member of this class is a node in a Tree. The node can
have man... | gpl-3.0 |
danking/hail | hail/python/test/hail/table/test_table.py | 1 | 71188 | import unittest
import pandas as pd
import pyspark.sql
import pytest
import random
import hail as hl
import hail.expr.aggregators as agg
from hail.utils import new_temp_file
from hail.utils.java import Env
from ..helpers import *
from test.hail.matrixtable.test_file_formats import create_all_values_datasets
setUpMod... | mit |
mtagle/airflow | tests/providers/google/cloud/hooks/test_bigquery.py | 2 | 109840 | #
# 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... | apache-2.0 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tseries/tests/test_resample.py | 1 | 93921 | # pylint: disable=E1101
from datetime import datetime, timedelta
from functools import partial
from pandas.compat import range, lrange, zip, product, OrderedDict
import numpy as np
from pandas import (Series, DataFrame, Panel, Index, isnull,
notnull, Timestamp)
from pandas.core.groupby import Da... | gpl-2.0 |
Erotemic/utool | utool/util_progress.py | 1 | 36286 | # -*- coding: utf-8 -*-
"""
progress handler.
Old progress funcs needto be depricated ProgressIter and ProgChunks are pretty
much the only useful things here.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
import time
import math
import datetime
from functools import partial
fro... | apache-2.0 |
dpaiton/OpenPV | pv-core/analysis/python/plot_inh_roc.py | 1 | 40370 | """
Plot the highest activity of four different bar positionings
"""
import sys
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
import matplotlib.cm as cm
import PVReadSparse as rs
import PVReadWeights as rw
import PVConversions as conv
import scipy.cluster.vq as sp
import math
def ... | epl-1.0 |
samuelshaner/openmc | openmc/mgxs/mdgxs.py | 1 | 75343 | from __future__ import division
from collections import Iterable, OrderedDict
from numbers import Integral
import warnings
import os
import sys
import copy
from abc import ABCMeta
from six import add_metaclass, string_types
import numpy as np
import openmc
from openmc.mgxs import MGXS
from openmc.mgxs.mgxs import _D... | mit |
JudoWill/ResearchNotebooks | ContinualV3Figures.py | 1 | 32503 | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <headingcell level=1>
# Continual V3 Progress Report
# <markdowncell>
# This notebook is intended to keep track of continual results of the various V3 tropism analyses that we plan to publish. This includes (but is not limited too): differences in clinical parame... | mit |
maartenbreddels/vaex | packages/vaex-ui/vaex/ui/ranking.py | 1 | 51297 | import itertools
import numpy as np
# from pyjavaproperties import Properties
from vaex.ext import jprops
import collections
import functools
from vaex.ui.qt import *
import vaex.dataset
import vaex.ui.plot_windows
import logging as logging
import vaex.ui.qt as dialogs
import vaex.execution
import vaex.kld
from matplot... | mit |
marklescroart/bvp | bvp/Classes/shape.py | 1 | 51104 | """
.B.lender .V.ision .P.roject utils for computing shape-related quantities in Blender
TO DO: generalize so that these can be used outside of Blender? Or do we care, because
Blender is our storage for all mesh geometry...?
"""
import bvp
import numpy as np
#from scipy import sparse
#import scipy.sparse.linalg as la... | bsd-2-clause |
vtsuperdarn/davitpy | davitpy/models/raydarn/rt.py | 1 | 45736 | # Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
"""Ray-tracing raydarn module
This module runs the raytracing code
Classes
-------------------------------------------------------
rt.RtRun run the code
rt.Scatter store and process modeled backscatter
rt.Edens store and process ... | gpl-3.0 |
bmazin/ARCONS-pipeline | hotpix/hotPixels.py | 1 | 62569 | '''
Author: Julian van Eyken
Date: Jan 25 2013
Routines for checking for hot-pixels in (uncalibrated) obs. files. In principle
should be relatively easily extendable to include other checks (e.g. for 'cold'
pixels).
The supplied obs. file is stepped through in short time steps, and a 2D mask
made for each step. The r... | gpl-2.0 |
mpharrigan/mixtape | msmbuilder/featurizer/featurizer.py | 1 | 51738 | # Author: Kyle A. Beauchamp <kyleabeauchamp@gmail.com>
# Contributors: Robert McGibbon <rmcgibbo@gmail.com>,
# Matthew Harrigan <matthew.p.harrigan@gmail.com>
# Brooke Husic <brookehusic@gmail.com>,
# Muneeb Sultan <msultan@stanford.edu>
# Copyright (c) 2016, Stanford Universit... | lgpl-2.1 |
tejasckulkarni/hydrology | ch_591/ch_591_ver_2_ daily.py | 2 | 39683 | __author__ = 'kiruba'
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import itertools
from spread import spread
from scipy.optimize import curve_fit
import math
from matplotlib import rc
import email.utils as eutils
import time
import datetime
from datetime import timedelta
import scipy as sp
i... | gpl-3.0 |
jreback/pandas | pandas/core/arrays/datetimes.py | 1 | 79407 | from datetime import datetime, time, timedelta, tzinfo
from typing import Optional, Union, cast
import warnings
import numpy as np
from pandas._libs import lib, tslib
from pandas._libs.tslibs import (
BaseOffset,
NaT,
NaTType,
Resolution,
Timestamp,
conversion,
fields,
get_resolution,
... | bsd-3-clause |
judithfan/graphcomm | analysis/analysis_helpers.py | 1 | 49344 | from __future__ import division
import os
import json
import numpy as np
import re
import pandas as pd
import seaborn as sns
import matplotlib
from matplotlib import pylab, mlab, pyplot
from IPython.core.pylabtools import figsize, getfigs
plt = pyplot
import seaborn as sns
sns.set_context('poster')
sns.set_style('white... | mit |
mbarylsk/goldbach-partition | goldbach-stats.py | 1 | 35332 | #
# Copyright (c) 2016 - 2019, Marcin Barylski
# All rights reserved.
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of con... | gpl-3.0 |
daniel-deleon/PAM | util.py | 1 | 38264 | #!/usr/bin/env python
__author__ = 'Danelle Cline'
__copyright__ = '2016'
__license__ = 'GPL v3'
__contact__ = 'dcline at mbari.org'
__doc__ = '''
Utility class refactored out of the TensorFlow code:
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/examples/image_retraining/retrain.py
@var __dat... | gpl-3.0 |
seismology-RUB/ASP3D | asp3d/core/seismicArrayPreparation.py | 1 | 44913 | # -*- coding: utf-8 -*-
#----------------------------------------------------------------------------
# Copyright 2017 Marcel Paffrath (Ruhr-Universitaet Bochum, Germany)
#
# This file is part of ActiveSeismoPick3D
#----------------------------------------------------------------------------
import matplotlib.pypl... | gpl-3.0 |
NikNitro/Python-iBeacon-Scan | sympy/utilities/runtests.py | 2 | 82274 | """
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... | gpl-3.0 |
qPCR4vir/orange3 | Orange/widgets/unsupervised/owsilhouetteplot.py | 1 | 35789 | import sys
import itertools
import enum
from xml.sax.saxutils import escape
from types import SimpleNamespace as namespace
import numpy
import sklearn.metrics
from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import Qt, QEvent, QRectF, QSizeF, pyqtSignal as Signal
import pyqtgraph as pg
import Orange.data
import O... | bsd-2-clause |
wangqingbaidu/aliMusic | models/new_songs_incr_bp.py | 1 | 35646 | # -*- coding: UTF-8 -*-
'''
Authorized by vlon Jang
Created on Jul 3, 2016
Email:zhangzhiwei@ict.ac.cn
From Institute of Computing Technology
All Rights Reserved.
'''
import pandas as pd
import numpy as np
import pymysql
import matplotlib ... | gpl-3.0 |
legacysurvey/legacypipe | validationtests/DESIccdSeo.py | 2 | 67203 | #Three additional subroutines are added by H-JS, which are simple variations of the pre-existing codes.
# def plotSeeingmap(band,prop,nside=4096,passmin=3,op='mean', survey='DECaLS_DR3', dir='nside4096_oversamp4',fname='nside4096_oversamp4',nbin=100):
#-->Generate seeing map and histogram for regions with Npass >= pass... | bsd-3-clause |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/_cone.py | 1 | 102379 | from plotly.basedatatypes import BaseTraceType as _BaseTraceType
import copy as _copy
class Cone(_BaseTraceType):
# class properties
# --------------------
_parent_path_str = ""
_path_str = "cone"
_valid_props = {
"anchor",
"autocolorscale",
"cauto",
"cmax",
... | mit |
cpbl/cpblUtilities | mapping.py | 1 | 42484 | #./usr/bin/python
# -*- coding: latin-1 -*-
"""
2014: colorize_svg() is the latest function to fill in colours according to data in an svg geographic map (created from SHP files, typically; e.g. see our convert_to_svg.py). It is a replacement to its predecessors, fillTaggedSVGmap and, earlier, svgcountrymap.
This me... | gpl-3.0 |
jmckaskill/subversion | tools/dev/benchmarks/suite1/benchmark.py | 1 | 33059 | #!/usr/bin/env python
# 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
# "L... | apache-2.0 |
isaacgerg/ubiome_longitudinal_analysis | code/main.py | 1 | 36578 | import glob
import os
import sys
import csv
import json
import time
import numpy as np
import scipy as sp
import scipy.signal
import scipy.stats
import matplotlib
import matplotlib.pyplot as plt
import datetime
from cycler import cycler
import sklearn.manifold
#import seaborn as sns
import otu
#-----------------... | gpl-3.0 |
alexandrebarachant/mne-python | mne/preprocessing/ica.py | 2 | 110620 | # Authors: Denis A. Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Juergen Dammers <j.dammers@fz-juelich.de>
#
# License: BSD (3-clause)
from inspect import isfunction
from collections import namedtuple
from copy import deepcopy
import os
import ... | bsd-3-clause |
amolkahat/pandas | pandas/tests/frame/test_alter_axes.py | 1 | 51348 | # -*- coding: utf-8 -*-
from __future__ import print_function
import inspect
import pytest
from datetime import datetime, timedelta
import numpy as np
from pandas.compat import lrange, PY2
from pandas import (DataFrame, Series, Index, MultiIndex, RangeIndex,
IntervalIndex, DatetimeIndex, Catego... | bsd-3-clause |
hantek/NeuroBricks | neurobricks/layer.py | 1 | 53421 | """
All parameters (excluding superparameters) in the model should be in theano var-
iables or theano shared values. In the training part, these variables should be
organized into "theano.function"s. So there should be no theano.function in the
definition of models here. Except for analysis part of codes.
"""
import n... | bsd-3-clause |
jdavidrcamacho/Tests_GP | 07 - MCMC results/test_ess_all.py | 1 | 35451 | # -*- coding: utf-8 -*-
import Gedi as gedi
import numpy as np; #np.random.seed(13042017)
import matplotlib.pylab as pl; pl.close("all")
from matplotlib.ticker import MaxNLocator
import astropy.table as Table
from time import time
import sys
#sys.path.append('/home/camacho/Downloads/emcee-master')
#sys.path.append('Z:... | mit |
fja05680/pinkfish | pinkfish/statistics.py | 1 | 34906 | """
Calculate trading statistics.
The stats() function returns the following metrics in a pd.Series.
- `start` : str
The date when trading begins formatted as YY-MM-DD.
- `end` : str
The date when trading ends formatted as YY-MM-DD.
- `beginning_balance` : int
The initial capital.
- `ending_bal... | mit |
rajul/mne-python | mne/io/fiff/tests/test_raw.py | 1 | 42873 | from __future__ import print_function
# Author: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
import os
import os.path as op
import glob
from copy import deepcopy
import warnings
import itertools as itt
import numpy as np
... | bsd-3-clause |
pratapvardhan/pandas | pandas/core/algorithms.py | 1 | 60650 | """
Generic data algorithms. This module is experimental at the moment and not
intended for public consumption
"""
from __future__ import division
from warnings import warn, catch_warnings
from textwrap import dedent
import numpy as np
from pandas.core.dtypes.cast import (
maybe_promote, construct_1d_object_array... | bsd-3-clause |
stephenhelms/WormTracker | python/wormtracker/__init__.py | 1 | 32728 | import numpy as np
from scipy import interpolate
from matplotlib import pyplot as plt
from matplotlib.patches import Rectangle
import cv2
from skimage import morphology, graph
import h5py
from subprocess import check_output
import sys
import os
import wormtracker.wormimageprocessor as wp
import roitools
import time
imp... | apache-2.0 |
natashabatalha/PandExo | pandexo/engine/jwst.py | 1 | 37329 | import os
import sys
import json
import numpy as np
import pandas as pd
from copy import deepcopy
from astropy.io import fits
from pandeia.engine.instrument_factory import InstrumentFactory
from pandeia.engine.perform_calculation import perform_calculation
from . import create_input as create
from .compute_noise impor... | gpl-3.0 |
Carralex/landlab | landlab/grid/base.py | 1 | 168966 | #! /usr/env/python
"""
Python implementation of ModelGrid, a base class used to create and manage
grids for 2D numerical models.
Do NOT add new documentation here. Grid documentation is now built in a semi-
automated fashion. To modify the text seen on the web, edit the files
`docs/text_for_[gridfile].py.txt`.
"""
im... | mit |
datamade/hcluster | tests/test_hierarchy.py | 1 | 34840 | #! /usr/bin/env python
#
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copy... | bsd-3-clause |
cerrno/neurokernel | neurokernel/LPU/neurons/photoreceptor.py | 1 | 32960 | from tables.utils import convertToNPAtom2
import numpy as np
import pycuda.driver as cuda
import pycuda.gpuarray as garray
from pycuda.compiler import SourceModule
from pycuda.tools import dtype_to_ctype, context_dependent_memoize
import tables
import matplotlib.pyplot as plt
import neurokernel.LPU.utils.curand as c... | bsd-3-clause |
zfrenchee/pandas | pandas/tests/dtypes/test_inference.py | 1 | 42128 | # -*- coding: utf-8 -*-
"""
These the test the public routines exposed in types/common.py
related to inference and not otherwise tested in types/test_common.py
"""
from warnings import catch_warnings
import collections
import re
from datetime import datetime, date, timedelta, time
from decimal import Decimal
import n... | bsd-3-clause |
jfsehuanes/thunderfish | thunderfish/peakdetection.py | 1 | 32802 | """
Detecting peaks in arrays.
detect_peaks(): peak and trough detection with a relative threshold.
detect_dynamic_peaks(): peak and trough detection with a dynamically adapted threshold.
accept_peak(): make detect_peaks() return index/time and size of peaks.
accept_peak_size_threshold(): adapt the dection threshold ... | gpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.