repo_name
string
path
string
copies
string
size
string
content
string
license
string
3DGenomes/tadbit
_pytadbit/modelling/structuralmodels.py
1
142351
""" 19 Jul 2013 """ from cPickle import load, dump, HIGHEST_PROTOCOL from subprocess import Popen, PIPE from math import acos, degrees, pi, sqrt from warnings import warn from string import upper...
gpl-3.0
GGiecold/ECLAIR
src/ECLAIR/Build_instance/ECLAIR_core.py
1
58120
#!/usr/bin/env python # ECLAIR/src/ECLAIR/Build_instance/ECLAIR_core.py # Author: Gregory Giecold for the GC Yuan Lab # Affiliation: Harvard University # Contact: g.giecold@gmail.com, ggiecold@jimmy.harvard.edu """ECLAIR is a package for the robust and scalable inference of cell lineages from gene ex...
mit
robintw/Py6S
Py6S/SixSHelpers/all_wavelengths.py
1
50086
# This file is part of Py6S. # # Copyright 2012 Robin Wilson and contributors listed in the CONTRIBUTORS file. # # Py6S 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, o...
lgpl-3.0
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/core/indexes/datetimes.py
1
105327
# pylint: disable=E1101 from __future__ import division import operator import warnings from datetime import time, datetime, timedelta import numpy as np from pytz import utc from pandas.core.base import _shared_docs from pandas.core.dtypes.common import ( _INT64_DTYPE, _NS_DTYPE, is_object_dtype, is...
mit
klusta-team/klustaviewa
klustaviewa/views/featureview.py
1
50160
"""Feature View: show spikes as 2D points in feature space.""" # ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import operator import time import numpy as np import numpy.random as rdn from qtool...
bsd-3-clause
QudevETH/PycQED_py3
pycqed/analysis_v2/spectroscopy_analysis.py
1
77874
""" Spectroscopy class This file contains the Spectroscopy class that forms the basis analysis of all the spectroscopy measurement analyses. """ import pycqed.analysis_v2.base_analysis as ba import numpy as np import pandas as pd import matplotlib.pyplot as plt from pycqed.analysis import measurement_analysis as MA f...
mit
adykstra/mne-python
mne/time_frequency/tests/test_tfr.py
1
30262
from itertools import product import os.path as op import numpy as np from numpy.testing import (assert_array_almost_equal, assert_array_equal, assert_equal) import pytest import matplotlib.pyplot as plt import mne from mne import Epochs, read_events, pick_types, create_info, EpochsArray fr...
bsd-3-clause
gfyoung/scipy
scipy/interpolate/interpolate.py
3
103213
""" Classes for interpolating values. """ from __future__ import division, print_function, absolute_import __all__ = ['interp1d', 'interp2d', 'spline', 'spleval', 'splmake', 'spltopp', 'lagrange', 'PPoly', 'BPoly', 'NdPPoly', 'RegularGridInterpolator', 'interpn'] import itertools import warnin...
bsd-3-clause
Diviyan-Kalainathan/causal-humans
Cause-effect/lib/protoML/code/test_only.py
1
108298
from __future__ import print_function import pandas as pd import numpy as np from sklearn.metrics import auc_score from sklearn.ensemble import GradientBoostingRegressor from csv import writer as csv_writer from collections import defaultdict from copy import deepcopy from feature_cache import FeatureCache from rand...
mit
Phylex/Vakuumtechnik
programme/PhyPraKit.py
1
37467
#!/usr/bin/python # module PhyPraKit.py ''' .. module PhyPraKit :synopsis: a collection of tools for data analysis recommended for "Physikalisches Praktikum am KIT" .. moduleauthor:: Guenter Quast <g.quast@kit.edu> **Collection of Tools for Data Analysis**, contains the follwoing functions: 1. Data inp...
gpl-3.0
CxAalto/gtfspy
gtfspy/filter.py
1
32896
import time import os import shutil import logging import sqlite3 import datetime import pandas import gtfspy from gtfspy import util from gtfspy.gtfs import GTFS from gtfspy.import_loaders.day_loader import recreate_days_table from gtfspy.import_loaders.day_trips_materializer import recreate_day_trips2_table from gt...
mit
anntzer/scikit-learn
sklearn/preprocessing/_encoders.py
2
34494
# Authors: Andreas Mueller <amueller@ais.uni-bonn.de> # Joris Van den Bossche <jorisvandenbossche@gmail.com> # License: BSD 3 clause import numpy as np from scipy import sparse import numbers from ..base import BaseEstimator, TransformerMixin from ..utils import check_array, is_scalar_nan from ..utils.valida...
bsd-3-clause
aclapes/simpledarwintree
tracklet_clustering.py
1
32098
__author__ = 'aclapes' from os import path, makedirs, remove, walk import cPickle import random import time from math import isnan import sys import threading import numpy as np from sklearn.metrics import pairwise from sklearn.neighbors import KDTree from Queue import PriorityQueue from spectral_division import sp...
gpl-2.0
rtrwalker/geotecha
geotecha/speccon/test/test_speccon1d_vr.py
1
135590
# geotecha - A software suite for geotechncial engineering # Copyright (C) 2018 Rohan T. Walker (rtrwalker@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, either version 3 of the L...
gpl-3.0
jreback/pandas
pandas/tests/plotting/frame/test_frame.py
1
87629
""" Test cases for DataFrame.plot """ from datetime import date, datetime import itertools import re import string import warnings import numpy as np import pytest import pandas.util._test_decorators as td from pandas.core.dtypes.api import is_list_like import pandas as pd from pandas import DataFrame, MultiIndex, ...
bsd-3-clause
VizGrimoire/GrimoireReports
scripts/standard-report.py
1
54304
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Copyright (C) 2014, 2015 Bitergia ## ## 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) ...
gpl-3.0
nilbody/h2o-3
h2o-py/h2o/frame.py
1
70975
# -*- coding: utf-8 -*- # import numpy no numpy cuz windoz from __future__ import print_function from __future__ import absolute_import from six import iteritems, itervalues, PY3 import collections from io import StringIO import csv import imp import os import tempfile from datetime import datetime import sys impor...
apache-2.0
ajenhl/tacl
tests/results_test.py
1
51937
#!/usr/bin/env python3 import io import unittest import pandas as pd import tacl from .tacl_test_case import TaclTestCase class ResultsTestCase (TaclTestCase): def setUp(self): self._tokenizer = tacl.Tokenizer( tacl.constants.TOKENIZER_PATTERN_CBETA, tacl.constants.TOKENIZER_JO...
gpl-3.0
jacobbieker/GCP-perpendicular-least-squares
pls.py
1
35002
__author__ = 'Jacob Bieker' import os, sys, random import numpy import pandas from astropy.table import Table, vstack import copy import scipy.odr as odr from scipy.stats import linregress from statsmodels.formula.api import ols import statsmodels.api as sm # Fit plane or line iteratively # if more than one cluster,...
mit
lennepkade/HistoricalMap
function_historical_map.py
1
30035
"""!@brief Interface between qgisForm and function_historical_map.py ./*************************************************************************** HistoricalMap A QGIS plugin Mapping old landcover (specially forest) from historical maps ------------...
gpl-2.0
pronix/spark
python/pyspark/sql/dataframe.py
1
51104
# # 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
jamestwebber/scipy
scipy/ndimage/filters.py
1
49603
# Copyright (C) 2003-2005 Peter J. Verveer # # 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 conditions and the following d...
bsd-3-clause
TheBrane/sodi-data-acquisition
NASA Web Of Sciences/nasa_combined.py
1
66176
''' Kaushik Tandon January 2020 NASA Web Of Science conversion for The Brane ''' import json import csv import numpy as np import pandas as pd import requests import inflection as inf from collections import OrderedDict from nltk.corpus import wordnet as wn import nltk nltk.download('wordnet') import warnings warn...
mit
astrofrog/ginga
ginga/qtw/plugins/Pick.py
1
42224
# # Pick.py -- Pick plugin for fits viewer # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import threading from ginga.qtw.QtHelp import QtGui, QtCore from ginga.qtw i...
bsd-3-clause
rahulremanan/python_tutorial
Machine_Vision/01_Transfer_Learning/src/transfer_learning.py
1
65186
# !/usr/bin/python3.6 # -*- coding: utf-8 -*- # Transfer learning using Keras and Tensorflow. # Written by Rahul Remanan and MOAD (https://www.moad.computer) machine vision team. # For more information contact: info@moad.computer # License: MIT open source license # Repository: https://github.com/rahulremanan/python_tu...
mit
yavalvas/yav_com
build/matplotlib/lib/matplotlib/pyplot.py
1
120324
# Note: The first part of this file can be modified in place, but the latter # part is autogenerated by the boilerplate.py script. """ Provides a MATLAB-like plotting framework. :mod:`~matplotlib.pylab` combines pyplot with numpy into a single namespace. This is convenient for interactive work, but for programming it ...
mit
mgaitan/scipy
scipy/stats/tests/test_morestats.py
2
48694
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (TestCase, run_module_suite, assert_array_equal, ...
bsd-3-clause
Kleptobismol/scikit-bio
skbio/stats/power.py
1
40721
r""" Empirical Power Estimation (:mod:`skbio.stats.power`) ===================================================== .. currentmodule:: skbio.stats.power The purpose of this module is to provide empirical, post-hoc power estimation of normally and non-normally distributed data. It also provides support to subsample data ...
bsd-3-clause
lizardsystem/flooding-base
flooding_base/views.py
1
38914
"""Views for LizardBase author: ir. k.k.ha see the documentation on TWiki """ import csv import datetime import json import logging from django.conf import settings from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group from django.core import serializers from django.co...
gpl-3.0
phev8/dataset_tools
playground/eyetracker_activity_det.py
1
67994
import os import numpy as np import pandas as pd import itertools from experiment_handler.label_data_reader import read_activity_labels_from_eyetracker_labelling, read_experiment_phases from experiment_handler.object_recognition.object_detection_reader import read_object_detections import matplotlib.pyplot as plt from ...
mit
baudren/montepython_public
montepython/analyze.py
1
93542
""" .. module:: analyze :synopsis: Extract data from chains and produce plots .. moduleauthor:: Karim Benabed <benabed@iap.fr> .. moduleauthor:: Benjamin Audren <benjamin.audren@epfl.ch> Collection of functions needed to analyze the Markov chains. This module defines as well a class :class:`Information`, that sto...
mit
vhaasteren/piccard
piccard/ptafuncs.py
1
37144
#!/usr/bin/env python # encoding: utf-8 # vim: tabstop=4:softtabstop=4:shiftwidth=4:expandtab """ ptafuncs.py Requirements: - numpy: pip install numpy - h5py: macports, apt-get, http://h5py.googlecode.com/ - matplotlib: macports, apt-get - emcee: pip install emcee (fallback option included) - ...
gpl-3.0
CroatianMeteorNetwork/cmn_binviewer
FF_bin_suite.py
1
54285
# coding=utf-8 # Copyright 2014 Denis Vida, denis.vida@gmail.com # The FF_bin_suite 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. # The FF_bin_suite is distributed in the hope that it will be # ...
bsd-3-clause
josenavas/QiiTa
qiita_db/analysis.py
1
38175
""" Objects for dealing with Qiita analyses This module provides the implementation of the Analysis and Collection classes. Classes ------- - `Analysis` -- A Qiita Analysis class - `Collection` -- A Qiita Collection class for grouping multiple analyses """ # ----------------------------------------------------------...
bsd-3-clause
vascotenner/holoviews
holoviews/plotting/mpl/element.py
1
31291
import math from matplotlib import ticker from matplotlib import colors import matplotlib.pyplot as plt import numpy as np import param from ...core import util from ...core import (OrderedDict, NdOverlay, DynamicMap, CompositeOverlay, Element3D, Element) from ...core.options import abbreviated_e...
bsd-3-clause
neuropoly/spinalcordtoolbox
spinalcordtoolbox/reports/qc.py
1
38797
#!/usr/bin/env python # -*- coding: utf-8 -*- import glob import sys import os import fcntl import json import logging import datetime import io from string import Template from shutil import copyfile import numpy as np import skimage import skimage.io import skimage.exposure from matplotlib.backends.backend_agg impo...
mit
winklerand/pandas
pandas/tests/frame/test_constructors.py
1
75720
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime, timedelta import functools import itertools import pytest from numpy.random import randn import numpy as np import numpy.ma as ma import numpy.ma.mrecords as mrecords from pandas.core.dtypes.common import is_integer_dtype ...
bsd-3-clause
css-lucas/GAT
gat/core/sna/SNAcityupdate01NOV.py
1
34720
import tempfile import matplotlib.pyplot as plt import networkx as nx import numpy as np import xlrd from networkx.algorithms import bipartite as bi from networkx.algorithms import centrality from itertools import product from collections import defaultdict from flask import jsonify import pandas as pd import datetime ...
mit
switch-model/switch-hawaii-studies
database/Postgresql Table Creation Scripts/import_data.py
1
30325
#!/usr/bin/env python # This will eventually be a good place to put all the code to create the main database # for Switch-Hawaii. For now it just imports a few miscellaneous tables that were not # imported by other code. # Started by Matthias Fripp on 2015-07-27 import sys, csv, datetime, os from textwrap import dede...
apache-2.0
jdmcbr/geopandas
geopandas/tests/test_geom_methods.py
1
37334
import string import numpy as np from numpy.testing import assert_array_equal from pandas import DataFrame, MultiIndex, Series from shapely.geometry import LinearRing, LineString, MultiPoint, Point, Polygon from shapely.geometry.collection import GeometryCollection from shapely.ops import unary_union from geopandas ...
bsd-3-clause
allisnone/pytrade
pdSql.py
1
34710
# -*- coding:utf-8 -*- from sqlalchemy import create_engine import pymysql import pandas as pd import numpy as np import datetime,time,os import tushare as ts from pandas.io import sql import easytrader,easyhistory import time,os from tradeStrategy import Stockhistory import pdSql_common as pdsqlc from f...
gpl-2.0
r9y9/librosa
librosa/feature/spectral.py
1
46290
#!/usr/bin/env python # -*- coding: utf-8 -*- """Spectral feature extraction""" import numpy as np import scipy import scipy.signal import scipy.fftpack from .. import util from .. import filters from ..util.exceptions import ParameterError from ..core.time_frequency import fft_frequencies from ..core.audio import z...
isc
HesselTjeerdsma/Cyber-Physical-Pacman-Game
Algor/flask/lib/python2.7/site-packages/scipy/signal/signaltools.py
1
116436
# Author: Travis Oliphant # 1999 -- 2002 from __future__ import division, print_function, absolute_import import warnings import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion ...
apache-2.0
adezfouli/savigp
GP/savigp.py
1
48556
import threading import math import GPy from atom.enum import Enum from scipy.misc import logsumexp from sklearn.cluster import MiniBatchKMeans, KMeans from GPy.util.linalg import mdot import numpy as np from scipy.linalg import cho_solve, solve_triangular from GPy.core import Model from util import mdiag_dot, jitchol...
apache-2.0
aitatanit/filterpy
filterpy/stats/stats.py
1
32099
# -*- coding: utf-8 -*- # pylint: disable=invalid-name, too-many-arguments, bad-whitespace # pylint: disable=too-many-lines, too-many-locals, len-as-condition """Copyright 2015 Roger R Labbe Jr. FilterPy library. http://github.com/rlabbe/filterpy Documentation at: https://filterpy.readthedocs.org Supporting book at...
mit
networkdynamics/attribution-extraction
source/sourceFeatureExtraction.py
1
35536
import sourceEntityTrainingSet as tokenize import resolveSourceSpan as sourceSpanning import resolveCue as cueResolving import sys import os #from intermediaries.nlpReaders.annotated_text import AnnotatedText as A #from intermediaries.nlpReaders.parc_reader import AnnotatedText as B from parc_reader import ParcCorenlpR...
mit
NikNitro/Python-iBeacon-Scan
sympy/holonomic/holonomic.py
4
93737
""" This module implements Holonomic Functions and various operations on them. """ from __future__ import print_function, division from sympy import (Symbol, diff, S, Dummy, Order, rf, meijerint, I, solve, limit, Float, nsimplify, gamma) from sympy.printing import sstr from sympy.core.compatibility import range, ...
gpl-3.0
zkbt/mosasaurus
mosasaurus/optspex.py
1
30291
import numpy as np import matplotlib.pyplot as plt import scipy.interpolate as spi import scipy.signal as sps import mosasaurus.gaussian as g reload(g) import mosasaurus.smooth as smooth # STEP 3: Fit sky background with out-of-spectra data def fitbg(dataim, mask, x1, x2, deg=1, threshold=5, isrotate=False, isplots=F...
mit
fstonezst/LightGBM
python-package/lightgbm/basic.py
1
67887
# coding: utf-8 # pylint: disable = invalid-name, C0111, C0301 # pylint: disable = R0912, R0913, R0914, W0105, W0201, W0212 """Wrapper c_api of LightGBM""" from __future__ import absolute_import import ctypes import os import warnings from tempfile import NamedTemporaryFile import numpy as np import scipy.sparse fro...
mit
adowaconan/Spindle_by_Graphical_Features
eegPipelineFunctions.py
1
39252
# -*- coding: utf-8 -*- """ Created on Tue May 16 12:22:46 2017 @author: ning """ import mne import pandas as pd import numpy as np from scipy import stats, signal from scipy.spatial.distance import squareform, pdist from scipy.sparse.csgraph import laplacian import os import networkx as nx from sklearn....
mit
dsg-bielefeld/deep_disfluency
deep_disfluency/tagger/deep_tagger.py
1
41107
from __future__ import division import numpy as np import cPickle import os from copy import deepcopy import time from sklearn.metrics import precision_recall_fscore_support from sklearn.metrics import classification_report import gensim from nltk.tag import CRFTagger import re from deep_disfluency.language_model.ngra...
mit
jreback/pandas
pandas/core/arrays/base.py
1
47796
""" An interface for extending pandas with custom arrays. .. warning:: This is an experimental API and subject to breaking changes without warning. """ from __future__ import annotations import operator from typing import ( Any, Callable, Dict, Optional, Sequence, Tuple, Type, T...
bsd-3-clause
rs2/pandas
pandas/tests/tools/test_to_datetime.py
1
90242
""" test to_datetime """ import calendar from collections import deque from datetime import datetime, timedelta import locale from dateutil.parser import parse from dateutil.tz.tz import tzoffset import numpy as np import pytest import pytz from pandas._libs import tslib from pandas._libs.tslibs import iNaT, parsing...
bsd-3-clause
datapythonista/pandas
pandas/core/arrays/base.py
1
51068
""" An interface for extending pandas with custom arrays. .. warning:: This is an experimental API and subject to breaking changes without warning. """ from __future__ import annotations import operator from typing import ( TYPE_CHECKING, Any, Callable, Iterator, Sequence, TypeVar, ...
bsd-3-clause
agacia/ovnis
python/analyse.py
1
32722
#!/usr/bin/python -tt """A Python program to analyse Sumo and OVNIS outpuy. Try running this program from the command line: python analyse.py """ import os # import csv import matplotlib matplotlib.use('Agg') # headless mode import matplotlib.pyplot as plt import numpy as np # import time # from matplotlib.mlab imp...
gpl-2.0
gcarq/freqtrade
freqtrade/rpc/rpc.py
1
33161
""" This module contains class to define a RPC communications """ import logging from abc import abstractmethod from datetime import date, datetime, timedelta from enum import Enum from math import isnan from typing import Any, Dict, List, Optional, Tuple, Union import arrow from numpy import NAN, int64, mean from pan...
gpl-3.0
Widukind/dlstats
dlstats/fetchers/world_bank.py
1
37132
# -*- coding: utf-8 -*- import logging from datetime import datetime import time from collections import OrderedDict import os import json import hashlib import zipfile import requests from slugify import slugify import pandas import xlrd from widukind_common import errors from dlstats.fetchers._commons import Fet...
agpl-3.0
benmezger/dotfiles
dot_ipython/profile_default/ipython_config.py
1
38669
# Configuration file for ipython. # ------------------------------------------------------------------------------ # InteractiveShellApp(Configurable) configuration # ------------------------------------------------------------------------------ ## A Mixin for applications that start InteractiveShell instances. # # P...
mit
plotly/python-api
packages/python/plotly/plotly/graph_objs/treemap/marker/_colorbar.py
1
69628
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "treemap.marker" _path_str = "treemap.marker.colorbar" _valid_props = { "bgcolor", ...
mit
python27/NetworkControllability
NetworkControllability/NodeAttackExperiments.py
1
32372
import networkx as nx import matplotlib.pyplot as plt import exact_controllability as ECT from networkx.utils import powerlaw_sequence import operator import random import csv import copy import subprocess, os import time from ControllabilityRobustnessBasedOnNodeAttack import RandomNodeAttack from ControllabilityRobu...
bsd-2-clause
hetaodie/hetaodie.github.io
assets/media/uda-ml/fjd/ica/创建客户细分/customer/customer_segments.py
1
33575
#!/usr/bin/env python # coding: utf-8 # # 机器学习纳米学位 # ## 非监督学习 # ## 项目 3: 创建用户分类 # 欢迎来到机器学习工程师纳米学位的第三个项目!在这个 notebook 文件中,有些模板代码已经提供给你,但你还需要实现更多的功能来完成这个项目。除非有明确要求,你无须修改任何已给出的代码。以**'练习'**开始的标题表示接下来的代码部分中有你必须要实现的功能。每一部分都会有详细的指导,需要实现的部分也会在注释中以 **'TODO'** 标出。请仔细阅读所有的提示! # # 除了实现代码外,你还**必须**回答一些与项目和你的实现有关的问题。每一个需要你回答的问题都会...
mit
Spinmob/spinmob
_pylab_tweaks.py
1
61900
import sys as _sys import os as _os import pylab as _pylab import time as _time import matplotlib as _mpl import numpy as _n try: from . import _functions as _fun from . import _pylab_colormap except: import _functions as _fun ...
gpl-3.0
pratapvardhan/pandas
pandas/tests/frame/test_timeseries.py
1
30423
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime, time import pytest from numpy import nan from numpy.random import randn import numpy as np from pandas import (DataFrame, Series, Index, Timestamp, DatetimeIndex, MultiIndex, to_date...
bsd-3-clause
alexmojaki/birdseye
birdseye/bird.py
1
42004
import ast import hashlib import inspect import json import os import sys import traceback from collections import defaultdict, deque, namedtuple, Counter from functools import partial from itertools import chain, islice from threading import Lock from types import FrameType, TracebackType, CodeType, FunctionType, Modu...
mit
StructuralNeurobiologyLab/SyConn
syconn/proc/meshes.py
1
43988
# -*- coding: utf-8 -*- # SyConn - Synaptic connectivity inference toolkit # # Copyright (c) 2016 - now # Max Planck Institute of Neurobiology, Martinsried, Germany # Authors: Sven Dorkenwald, Philipp Schubert, Joergen Kornfeld import itertools import warnings from collections import Counter from typing import Optiona...
gpl-2.0
IntelLabs/hpat
sdc/hiframes/pd_series_ext.py
1
39500
# ***************************************************************************** # Copyright (c) 2020, Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # Redistributions of sou...
bsd-2-clause
bje-/NEMO
nemo/generators.py
1
33352
# Copyright (C) 2011, 2012, 2013, 2014 Ben Elliston # Copyright (C) 2014, 2015, 2016 The University of New South Wales # Copyright (C) 2016, 2017 IT Power (Australia) # # This file 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 S...
gpl-3.0
allisnone/pytrade
easytrader_tdx_api.py
1
67099
# -*- coding:utf-8 -*- import easytrader,time,datetime,os import ctypes import os import subprocess import tempfile import time import traceback import win32api import win32gui from io import StringIO import pandas as pd import pyperclip import win32com.client import win32con from PIL import ImageGrab ...
gpl-2.0
bert9bert/statsmodels
statsmodels/tsa/arima_model.py
1
79395
# Note: The information criteria add 1 to the number of parameters # whenever the model has an AR or MA term since, in principle, # the variance could be treated as a free parameter and restricted # This code does not allow this, but it adds consistency with other # packages such as gretl and X1...
bsd-3-clause
kubeflow/pipelines
sdk/python/kfp/components/_python_op.py
1
53961
# Copyright 2018 The Kubeflow Authors # # 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...
apache-2.0
philrosenfield/colibri2trilegal
colibri2trilegal.py
1
45627
""" Utilities for converting COLIBRI tracks into TRILEGAL tracks """ import glob import logging import os import sys import matplotlib.pyplot as plt import numpy as np from ast import literal_eval from matplotlib import cm, rcParams from matplotlib.ticker import NullFormatter, MultipleLocator, ScalarFormatter, MaxNLo...
mit
ucsd-ccbb/Oncolist
src/restLayer/app/SearchViz.py
1
87637
__author__ = 'aarongary' from collections import Counter from app import PubMed from models.TermResolver import TermAnalyzer from elasticsearch import Elasticsearch from app import elastic_search_uri from app import path_to_cluster_file from app import path_to_DB_file from app import util import numpy as np import net...
mit
SKIRT/PTS
core/basics/plot.py
1
138802
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
agpl-3.0
JT5D/scikit-learn
sklearn/ensemble/forest.py
1
50932
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
bsd-3-clause
samnashi/howdoflawsgetlonger
tester_1dconv.py
1
48381
from __future__ import print_function import numpy as np from random import shuffle import matplotlib.lines as mlines import matplotlib.pyplot as plt from keras.models import Sequential, Model from keras.utils import plot_model from keras.layers import Dense, LSTM, GRU, Flatten, Input, Reshape, TimeDistributed, Bidirec...
gpl-3.0
ooovector/qtlab_replacement
awg_iq_multi.py
1
31107
# awg_iq class # two channels of awgs and a local oscillator used to feed a single iq mixer # maximum settings of the current mixer that should not be exceeded import numpy as np import logging from .save_pkl import * from .config import get_config from matplotlib import pyplot as plt #import time def get_config_fl...
gpl-3.0
SheffieldML/GPy
GPy/testing/state_space_main_tests.py
1
44815
# -*- coding: utf-8 -*- # Copyright (c) 2015, Alex Grigorevskiy # Licensed under the BSD 3-clause license (see LICENSE.txt) """ Test module for state_space_main.py """ import unittest import numpy as np import matplotlib.pyplot as plt from scipy.stats import norm import GPy.models.state_space_setup as ss_setup import...
bsd-3-clause
lidavidm/mathics-heroku
venv/lib/python2.7/site-packages/sympy/plotting/plot.py
1
61671
"""Plotting module for Sympy. A plot is represented by the ``Plot`` class that contains a reference to the backend and a list of the data series to be plotted. The data series are instances of classes meant to simplify getting points and meshes from sympy expressions. ``plot_backends`` is a dictionary with all the bac...
gpl-3.0
HirokiNakahara/GUINNESS
guinness.py
1
42351
# ----------------------------------------------------------------------- # guinness.py # A GUI based Neural NEtwork SyntheSizer for an FPGA deep learning # # Creation Date : 04/Aug./2017 # Copyright (C) <2017> Hiroki Nakahara, All rights reserved. # # Released under the GPL v2.0 License. # # Acknowledgements: # Th...
gpl-2.0
jtwhite79/pyemu
pyemu/utils/pst_from.py
1
153834
from __future__ import print_function, division import os from pathlib import Path from datetime import datetime import shutil import inspect import warnings import platform import numpy as np import pandas as pd import pyemu import time from ..pyemu_warnings import PyemuWarning import copy import string # the tolera...
bsd-3-clause
ryokbys/nap
nappy/napsys.py
1
40706
#!/usr/bin/env python """ System information used in pmd, including cell information, lattice constant, number of atoms, atom species, atom positions. Users can use `napsys.py` as a converter program as described below. Available formats are, pmd, POSCAR, dump, xsf Usage: napsys.py convert [options] INFILE OUTFIL...
mit
piyush0609/scipy
scipy/special/add_newdocs.py
1
70838
# Docstrings for generated ufuncs # # The syntax is designed to look like the function add_newdoc is being # called from numpy.lib, but in this file add_newdoc puts the # docstrings in a dictionary. This dictionary is used in # generate_ufuncs.py to generate the docstrings for the ufuncs in # scipy.special at the C lev...
bsd-3-clause
mcallaghan/tmv
BasicBrowser/tmv_app/views.py
1
46667
from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.template import Template, Context, RequestContext, loader from tmv_app.models import * from scoping.models import * import parliament.models as pm from django.db.models import Q, F, Sum, Count, FloatField, Case, When, Value, Max from d...
gpl-3.0
MIT-LCP/wfdb-python
wfdb/io/record.py
1
198301
import datetime import multiprocessing import posixpath import re import numpy as np import os import pandas as pd import requests import math import functools import struct import pdb from wfdb.io import _header from wfdb.io import _signal from wfdb.io import download from wfdb.io import annotation # -------------...
mit
bdh1011/wau
venv/lib/python2.7/site-packages/pandas/tests/test_format.py
1
115849
# -*- coding: utf-8 -*- from __future__ import print_function from distutils.version import LooseVersion import re from pandas.compat import range, zip, lrange, StringIO, PY3, lzip, u import pandas.compat as compat import itertools import os import sys from textwrap import dedent import warnings from numpy import nan...
mit
bjornsturmberg/NumBAT
backend/plotting.py
1
40378
# plotting.py is a subroutine of NumBAT that contains numerous plotting # routines. # Copyright (C) 2017 Bjorn Sturmberg. # NumBAT 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 Lic...
gpl-3.0
adykstra/mne-python
mne/viz/_3d.py
1
114181
# -*- coding: utf-8 -*- """Functions to make 3D plots with M/EEG data.""" # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Eric Larson <larson.eric.d@gmail.com> # Maina...
bsd-3-clause
MaxQu/MAVProxy
MAVProxy/mavproxy.py
1
39039
#!/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 from MAVProxy.modules.lib import textconsole...
gpl-3.0
brianlorenz/COSMOS_IMACS_Redshifts
Redshift_Measurement/ExtractSpectra.py
1
30180
import numpy as np import matplotlib.pyplot as plt import sys import os from astropy.io import fits from scipy.optimize import curve_fit from matplotlib.widgets import Slider, Button, SpanSelector #Usage: run ExtractSpectra.py imloc (objnum) #Example: run ExtractSpectra.py "feb16_abig.fits" #This extracts all obj...
mit
MJuddBooth/pandas
pandas/tests/series/test_missing.py
1
55480
# coding=utf-8 # pylint: disable-msg=E1101,W0612 from datetime import datetime, timedelta from distutils.version import LooseVersion import numpy as np from numpy import nan import pytest import pytz from pandas._libs.tslib import iNaT from pandas.compat import range from pandas.errors import PerformanceWarning impo...
bsd-3-clause
MarineDataTools/pycnv
pycnv/pycnv.py
1
52744
import datetime from pytz import timezone import numpy import logging import sys import argparse import pkg_resources import yaml import pylab as pl import os import hashlib standard_name_file = pkg_resources.resource_filename('pycnv', 'rules/standard_names.yaml') # Get the version version_file = pkg_resources.reso...
gpl-3.0
simondona/img-fft-filter-bec-tn
libraries/panels.py
1
30469
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright (C) 2014-2016 Simone Donadello # # 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) an...
gpl-3.0
Bhare8972/LOFAR-LIM
LIM_scripts/main_plotter.py
1
212786
#!/usr/bin/env python3 ## on APP machine from __future__ import unicode_literals import sys import os from time import sleep from pickle import dumps, loads import datetime import matplotlib # Make sure that we are using QT5 matplotlib.use('Qt5Agg') #matplotlib.use('svg') from PyQt5 import QtCore, QtWidgets from Py...
mit
FCP-INDI/C-PAC
CPAC/utils/create_fsl_flame_preset.py
1
49905
# TODO: create a function that can help easily map raw pheno files that do not # TODO: have the participant_session id that CPAC uses def read_group_list_text_file(group_list_text_file): """Read in the group-level analysis participant-session list text file.""" with open(group_list_text_file, "r") as f: ...
bsd-3-clause
leukemianetworks/AMLnetwork
Downloads/multidatanetanalysis.py
1
52072
# multidatanetanalysis.py # Copyright (C) 2014 LeukemiaNetworks # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License Version 2 # as published by the Free Software Foundation. # This program is distributed in the hope t...
gpl-2.0
MicrosoftResearch/Azimuth
azimuth/util.py
1
54768
import pandas import matplotlib.pylab as plt import pylab as pl # so can just grab qqplotting code from fastlmm directly import scipy.stats import scipy as sp import numpy as np import itertools import sklearn.metrics import Bio.SeqUtils.MeltingTemp as Tm import Bio.Entrez as Entrez import Bio.SeqUtils as SeqUtil impor...
bsd-3-clause
lioritan/Thesis
problems/alg10_superflatten.py
1
40331
# -*- coding: utf-8 -*- """ Created on Tue Dec 06 20:33:28 2016 @author: Lior """ from random import choice from numpy import * from matplotlib.mlab import find from scipy.stats import mode import time def clean_tree_for_pickle(tree_node): tree_node.relations=None tree_node.good_recs=None if tree_node....
gpl-2.0
lfairchild/PmagPy
pmagpy_tests/test_ipmag.py
1
32767
#!/usr/bin/env python import unittest import os import sys import re import matplotlib import glob from pmagpy import pmag from pmagpy import ipmag from pmagpy import contribution_builder as cb from pmagpy import convert_2_magic as convert from pmag_env import set_env #from pmagpy import find_pmag_dir WD = pmag.get_te...
bsd-3-clause
flightgong/scikit-learn
sklearn/gaussian_process/gaussian_process.py
1
34257
# -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # Licence: BSD 3 clause from __future__ import print_function import numpy as np from scipy import linalg, optimize, rand from ..base import BaseEstimator, RegressorMixin from ..m...
bsd-3-clause
Feardrop/IMChallenge
Data/VRwTW.py
1
30675
# This Python file uses the following encoding: utf-8 # Copyright 2015 Tin Arm Engineering AB # 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 ...
gpl-3.0