repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
pycbc | pycbc-master/pycbc/libutils.py | # Copyright (C) 2014 Josh Willis
#
# 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 2 of the License, or (at your
# option) any later version.
#
# This program is distributed in th... | 9,494 | 39.063291 | 131 | py |
pycbc | pycbc-master/pycbc/sensitivity.py | """ This module contains utilities for calculating search sensitivity
"""
import numpy
from pycbc.conversions import chirp_distance
from . import bin_utils
def compute_search_efficiency_in_bins(
found, total, ndbins,
sim_to_bins_function=lambda sim: (sim.distance,)):
"""
Calculate search eff... | 11,609 | 35.624606 | 83 | py |
pycbc | pycbc-master/pycbc/bin_utils.py | from bisect import bisect_right
try:
from fpconst import PosInf, NegInf
except ImportError:
# fpconst is not part of the standard library and might not be available
PosInf = float("+inf")
NegInf = float("-inf")
import numpy
import math
class Bins(object):
"""
Parent class for 1-dimensional bi... | 21,555 | 29.317862 | 81 | py |
pycbc | pycbc-master/pycbc/opt.py | # Copyright (C) 2015 Joshua Willis
#
# 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 later version.
#
# This program is distributed in ... | 5,385 | 35.890411 | 89 | py |
pycbc | pycbc-master/pycbc/_version.py | # Copyright (C) 2017 Duncan Brown
#
# 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 later version.
#
# This program is distributed in t... | 3,219 | 37.795181 | 88 | py |
pycbc | pycbc-master/pycbc/detector.py | # -*- coding: UTF-8 -*-
# Copyright (C) 2012 Alex Nitz
#
#
# 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 later version.
#
# This pr... | 30,528 | 37.989783 | 104 | py |
pycbc | pycbc-master/pycbc/coordinates.py | # Copyright (C) 2016 Christopher M. Biwer
#
#
# 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 later version.
#
# This program is distri... | 4,141 | 26.986486 | 78 | py |
pycbc | pycbc-master/pycbc/__init__.py | # Copyright (C) 2012 Alex Nitz, Josh Willis
#
# 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 later version.
#
# This program is distr... | 6,218 | 31.731579 | 93 | py |
pycbc | pycbc-master/pycbc/scheme.py | # Copyright (C) 2014 Alex Nitz, Andrew Miller
#
# 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 later version.
#
# This program is dis... | 11,120 | 32.296407 | 98 | py |
pycbc | pycbc-master/pycbc/dq.py | # Copyright (C) 2018 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 16,660 | 36.609481 | 86 | py |
pycbc | pycbc-master/pycbc/pool.py | """ Tools for creating pools of worker processes
"""
import multiprocessing.pool
import functools
from multiprocessing import TimeoutError, cpu_count
import types
import signal
import atexit
import logging
def is_main_process():
""" Check if this is the main control process and may handle one time tasks
"""
... | 5,462 | 29.35 | 79 | py |
pycbc | pycbc-master/pycbc/transforms.py | # Copyright (C) 2017 Christopher M. Biwer
# 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 later version.
#
# This program is distribut... | 84,293 | 32.663738 | 152 | py |
pycbc | pycbc-master/pycbc/events/eventmgr.py | # Copyright (C) 2012 Alex Nitz
# 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
# self.option) any later version.
#
# This program is distributed in ... | 49,942 | 44.526892 | 94 | py |
pycbc | pycbc-master/pycbc/events/trigger_fits.py | """
Tools for maximum likelihood fits to single trigger statistic values
For some set of values above a threshold, e.g. trigger SNRs, the functions
in this module perform maximum likelihood fits with 1-sigma uncertainties
to various simple functional forms of PDF, all normalized to 1.
You can also obtain the fitted fu... | 9,465 | 29.934641 | 89 | py |
pycbc | pycbc-master/pycbc/events/veto.py | """ This module contains utilities to manipulate trigger lists based on
segment.
"""
import numpy
from ligo.lw import table, lsctables, utils as ligolw_utils
from ligo.segments import segment, segmentlist
def start_end_to_segments(start, end):
return segmentlist([segment(s, e) for s, e in zip(start, end)])
def se... | 7,572 | 32.361233 | 96 | py |
pycbc | pycbc-master/pycbc/events/threshold_cuda.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 8,580 | 29.108772 | 105 | py |
pycbc | pycbc-master/pycbc/events/significance.py | # Copyright (C) 2022 Gareth Cabourn Davies
#
# 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 later version.
#
# This program is distrib... | 13,225 | 38.957704 | 79 | py |
pycbc | pycbc-master/pycbc/events/cuts.py | # Copyright (C) 2022 Gareth Cabourn Davies
#
# 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 later version.
#
# This program is distrib... | 18,453 | 39.647577 | 79 | py |
pycbc | pycbc-master/pycbc/events/coinc.py | # Copyright (C) 2015 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 53,283 | 37.978786 | 105 | py |
pycbc | pycbc-master/pycbc/events/coherent.py | # Copyright (C) 2022 Andrew Williamson
#
# 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 later version.
#
# This program is distributed... | 13,726 | 32.644608 | 79 | py |
pycbc | pycbc-master/pycbc/events/threshold_cpu.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 3,511 | 37.593407 | 98 | py |
pycbc | pycbc-master/pycbc/events/triggers.py | # Copyright (C) 2017 Christopher M. Biwer
#
# 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 later version.
#
# This program is distribu... | 8,750 | 35.924051 | 78 | py |
pycbc | pycbc-master/pycbc/events/stat.py | # Copyright (C) 2016 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 84,871 | 36.587245 | 82 | py |
pycbc | pycbc-master/pycbc/events/__init__.py | """
This packages contains modules for clustering events
"""
from .eventmgr import *
from .veto import *
from .coinc import *
| 128 | 13.333333 | 52 | py |
pycbc | pycbc-master/pycbc/events/ranking.py | """ This module contains functions for calculating single-ifo ranking
statistic values
"""
import numpy
def effsnr(snr, reduced_x2, fac=250.):
"""Calculate the effective SNR statistic. See (S5y1 paper) for definition.
"""
snr = numpy.array(snr, ndmin=1, dtype=numpy.float64)
rchisq = numpy.array(reduce... | 10,863 | 32.223242 | 87 | py |
pycbc | pycbc-master/pycbc/events/single.py | """ utilities for assigning FAR to single detector triggers
"""
import logging
import h5py
import numpy as np
from pycbc.events import ranking, trigger_fits as fits
from pycbc.types import MultiDetOptionAction
from pycbc import conversions as conv
from pycbc import bin_utils
class LiveSingle(object):
def __init__... | 10,489 | 45.211454 | 79 | py |
pycbc | pycbc-master/pycbc/events/coinc_rate.py | #
# =============================================================================
#
# Preamble
#
# =============================================================================
#
""" This module contains functions for calculating expected rates of noise
and signal coincidences.
"""... | 6,808 | 31.117925 | 79 | py |
pycbc | pycbc-master/pycbc/psd/estimate.py | # Copyright (C) 2012 Tito Dal Canton
#
# 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 2 of the License, or (at your
# option) any later version.
#
# This program is distributed i... | 12,318 | 34.399425 | 101 | py |
pycbc | pycbc-master/pycbc/psd/variation.py | """ PSD Variation """
import numpy
from numpy.fft import rfft, irfft
import scipy.signal as sig
import pycbc.psd
from pycbc.types import TimeSeries
from pycbc.filter import resample_to_delta_t
def mean_square(data, delta_t, srate, short_stride, stride):
""" Calculate mean square of given time series once per s... | 8,554 | 37.886364 | 80 | py |
pycbc | pycbc-master/pycbc/psd/analytical.py | #!/usr/bin/python
# Copyright (C) 2012-2016 Alex Nitz, Tito Dal Canton, Leo Singer
# 2022 Shichao Wu
#
# 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 2 of the Licen... | 6,384 | 34.870787 | 105 | py |
pycbc | pycbc-master/pycbc/psd/__init__.py | #!/usr/bin/python
# Copyright (C) 2014 Alex Nitz, Andrew Miller, Tito Dal Canton
#
# 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 2 of the License, or (at your
# option) any late... | 28,796 | 47.808475 | 80 | py |
pycbc | pycbc-master/pycbc/psd/analytical_space.py | # Copyright (C) 2022 Shichao Wu, Alex Nitz
# 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 later version.
#
# This program is distribu... | 26,286 | 34.331989 | 79 | py |
pycbc | pycbc-master/pycbc/psd/read.py | #!/usr/bin/python
# Copyright (C) 2012 Alex Nitz, Tito Dal Canton
#
# 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 2 of the License, or (at your
# option) any later version.
#
# ... | 7,153 | 37.053191 | 98 | py |
pycbc | pycbc-master/pycbc/io/ligolw.py | # Copyright (C) 2020 Leo Singer, 2021 Tito Dal Canton
#
# 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 later version.
#
# This program... | 12,522 | 34.985632 | 78 | py |
pycbc | pycbc-master/pycbc/io/record.py | # Copyright (C) 2015 Collin Capano
# 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 later version.
#
# This program is distributed in t... | 77,702 | 39.3233 | 113 | py |
pycbc | pycbc-master/pycbc/io/hdf.py | """
Convenience classes for accessing hdf5 trigger files
"""
import h5py
import numpy as np
import logging
import inspect
import pickle
from itertools import chain
from io import BytesIO
from lal import LIGOTimeGPS, YRJUL_SI
from ligo.lw import ligolw
from ligo.lw import lsctables
from ligo.lw import utils as ligolw... | 55,538 | 36.628049 | 100 | py |
pycbc | pycbc-master/pycbc/io/__init__.py | import logging
from astropy.utils.data import download_file
from .hdf import *
from .record import *
def get_file(url, retry=5, **args):
""" Retrieve file with retry upon failure
Uses the astropy download_file but adds a retry feature for flaky
connections. See astropy for full options
"""
i = 0
... | 621 | 26.043478 | 74 | py |
pycbc | pycbc-master/pycbc/io/live.py | import logging
import os
import pycbc
import numpy
import lal
import json
import copy
from multiprocessing.dummy import threading
from ligo.lw import ligolw
from ligo.lw import lsctables
from ligo.lw import utils as ligolw_utils
from pycbc import version as pycbc_version
from pycbc import pnutils
from pycbc.io.ligolw i... | 24,753 | 42.352014 | 81 | py |
pycbc | pycbc-master/pycbc/distributions/spins.py | # Copyright (C) 2017 Collin Capano, Chris Biwer
# 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 later version.
#
# This program is dist... | 12,002 | 40.247423 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/uniform.py | # Copyright (C) 2016 Collin Capano
# 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 later version.
#
# This program is distributed in t... | 5,286 | 33.555556 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/mass.py | # Copyright (C) 2021 Yifan Wang
# 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 later version.
#
# This program is distributed in the h... | 10,257 | 34.010239 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/bounded.py | # Copyright (C) 2016 Collin Capano, Christopher M. Biwer
# 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 later version.
#
# This progr... | 13,606 | 37.00838 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/power_law.py | # Copyright (C) 2016 Christopher M. Biwer
# 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 later version.
#
# This program is distribute... | 7,732 | 34.472477 | 130 | py |
pycbc | pycbc-master/pycbc/distributions/fixedsamples.py | # Copyright (C) 2020 Alexander Nitz
# 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 later version.
#
# This program is distributed in t... | 6,510 | 37.755952 | 80 | py |
pycbc | pycbc-master/pycbc/distributions/utils.py | # Copyright (C) 2021 Shichao Wu
# 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 later version.
#
# This program is distributed in the ... | 4,617 | 33.207407 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/sky_location.py | # Copyright (C) 2016 Collin Capano
# 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 later version.
#
# This program is distributed in t... | 6,709 | 37.342857 | 78 | py |
pycbc | pycbc-master/pycbc/distributions/external.py | # Copyright (C) 2020 Alexander Nitz, 2022 Shichao Wu
# 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 later version.
#
# This program is... | 8,901 | 37.042735 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/uniform_log.py | # Copyright (C) 2017 Christopher M. Biwer
# 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 later version.
#
# This program is distribut... | 2,814 | 38.647887 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/gaussian.py | # Copyright (C) 2016 Christopher M. Biwer, Collin Capano
# 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 later version.
#
# This progr... | 9,342 | 37.767635 | 163 | py |
pycbc | pycbc-master/pycbc/distributions/joint.py | # Copyright (C) 2017 Collin Capano, Christopher M. Biwer, Alex Nitz
# 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 later version.
#
#... | 14,281 | 37.085333 | 84 | py |
pycbc | pycbc-master/pycbc/distributions/angular.py | # Copyright (C) 2016 Collin Capano
# 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 later version.
#
# This program is distributed in t... | 19,645 | 37.59725 | 101 | py |
pycbc | pycbc-master/pycbc/distributions/constraints.py | # Copyright (C) 2017 Christopher M. Biwer
# 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 later version.
#
# This program is distribute... | 5,056 | 38.818898 | 91 | py |
pycbc | pycbc-master/pycbc/distributions/__init__.py | # Copyright (C) 2016 Collin Capano, Christopher M. Biwer, Alex Nitz,
# 2021 Yifan Wang, Shichao Wu
# 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 Licen... | 9,321 | 40.616071 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/qnm.py | # Copyright (C) 2018 Miriam Cabero, Collin Capano
# 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 later version.
#
# This program is di... | 10,564 | 38.569288 | 79 | py |
pycbc | pycbc-master/pycbc/distributions/arbitrary.py | # Copyright (C) 2016 Miriam Cabero Mueller, Collin Capano
# 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 later version.
#
# This progr... | 13,126 | 37.952522 | 79 | py |
pycbc | pycbc-master/pycbc/catalog/__init__.py | # Copyright (C) 2017 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the... | 6,843 | 31.903846 | 79 | py |
pycbc | pycbc-master/pycbc/catalog/catalog.py | # Copyright (C) 2017 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the... | 2,479 | 32.513514 | 79 | py |
pycbc | pycbc-master/pycbc/results/psd.py | # Copyright (C) 2022
# Tito Dal Canton, Gareth Cabourn Davies, Ian Harry
#
# 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 later versio... | 2,081 | 29.173913 | 79 | py |
pycbc | pycbc-master/pycbc/results/versioning.py | #!/usr/bin/python
# Copyright (C) 2015 Ian Harry
#
# 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 later version.
#
# This program is ... | 6,293 | 39.606452 | 83 | py |
pycbc | pycbc-master/pycbc/results/metadata.py | """
This Module contains generic utility functions for creating plots within
PyCBC.
"""
import os.path, pycbc.version
import configparser as ConfigParser
from html.parser import HTMLParser
from xml.sax.saxutils import escape, unescape
escape_table = {
'"': """,
"'": "'",
... | 4,769 | 29.974026 | 89 | py |
pycbc | pycbc-master/pycbc/results/render.py | #!/usr/bin/python
# Copyright (C) 2015 Christopher M. Biwer
#
# 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 later version.
#
# This ... | 7,996 | 31.245968 | 89 | py |
pycbc | pycbc-master/pycbc/results/color.py | """ Utilities for managing matplotlib colors and mapping ifos to color
"""
_ifo_color_map = {
'G1': '#222222', # dark gray
'K1': '#ffb200', # yellow/orange
'H1': '#ee0000', # red
'I1': '#b0dd8b', # light green
'L1': '#4ba6ff', # blue
'V1': '#9b59b6', # magenta/purple
}
_source_color_map ... | 703 | 22.466667 | 70 | py |
pycbc | pycbc-master/pycbc/results/mpld3_utils.py | """ This module provides functionality to extend mpld3
"""
import mpld3, mpld3.plugins, mpld3.utils
class ClickLink(mpld3.plugins.PluginBase):
"""Plugin for following a link on click"""
JAVASCRIPT = """
mpld3.register_plugin("clicklink", ClickLink);
ClickLink.prototype = Object.create(mpld3.Plugin.pro... | 4,810 | 38.434426 | 93 | py |
pycbc | pycbc-master/pycbc/results/layout.py | # Copyright (C) 2015 Alexander Harvey Nitz
#
# 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 later version.
#
# This program is distrib... | 3,937 | 35.803738 | 79 | py |
pycbc | pycbc-master/pycbc/results/table_utils.py | # Copyright (C) 2014 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 4,726 | 31.6 | 104 | py |
pycbc | pycbc-master/pycbc/results/pygrb_postprocessing_utils.py | # Copyright (C) 2019 Francesco Pannarale, Gino Contestabile, Cameron Mills
#
# 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 later vers... | 33,850 | 40.843016 | 80 | py |
pycbc | pycbc-master/pycbc/results/plot.py | """ Plotting utilities and premade plot configurations
"""
def hist_overflow(val, val_max, **kwds):
""" Make a histogram with an overflow bar above val_max """
import pylab
overflow = len(val[val>=val_max])
pylab.hist(val[val<val_max], **kwds)
if 'color' in kwds:
color = kwds['color']
... | 1,509 | 29.2 | 76 | py |
pycbc | pycbc-master/pycbc/results/__init__.py | from pycbc.results.table_utils import *
from pycbc.results.metadata import *
from pycbc.results.versioning import *
from pycbc.results.color import *
from pycbc.results.plot import *
from pycbc.results.psd import *
from pycbc.results.layout import *
from pycbc.results.dq import *
from pycbc.results.str_utils import *
f... | 423 | 34.333333 | 54 | py |
pycbc | pycbc-master/pycbc/results/followup.py | # Copyright (C) 2014 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 5,023 | 33.410959 | 85 | py |
pycbc | pycbc-master/pycbc/results/scatter_histograms.py | # Copyright (C) 2016 Miriam Cabero Mueller, Collin Capano
#
# 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 later version.
#
# This pro... | 33,143 | 37.184332 | 82 | py |
pycbc | pycbc-master/pycbc/results/dq.py | '''This module contains utilities for following up search triggers'''
# JavaScript for searching the aLOG
redirect_javascript = """<script type="text/javascript">
function redirect(form,way)
{
// Set location to form and submit.
if(form != '')
{
document.forms[form].action=way;
... | 2,187 | 29.816901 | 84 | py |
pycbc | pycbc-master/pycbc/results/pygrb_plotting_utils.py | # Copyright (C) 2019 Francesco Pannarale, Gino Contestabile, Cameron Mills
#
# 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 later vers... | 9,071 | 40.806452 | 79 | py |
pycbc | pycbc-master/pycbc/results/str_utils.py | # Copyright (C) 2016 Collin Capano
# 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 later version.
#
# This program is distributed in t... | 9,027 | 34.968127 | 83 | py |
pycbc | pycbc-master/pycbc/frame/frame.py | # Copyright (C) 2014 Andrew Miller, Alex Nitz, Tito Dal Canton, Christopher M. Biwer
#
# 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 ... | 33,651 | 36.811236 | 105 | py |
pycbc | pycbc-master/pycbc/frame/gwosc.py | # Copyright (C) 2017 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 5,783 | 30.096774 | 78 | py |
pycbc | pycbc-master/pycbc/frame/__init__.py | from . frame import (locations_to_cache, read_frame,
query_and_read_frame, frame_paths, write_frame,
DataBuffer, StatusBuffer, iDQBuffer)
from . store import (read_store)
# Status flags for the calibration state vector
# See e.g. https://dcc.ligo.org/LIGO-G1700234
# https://... | 1,365 | 26.32 | 75 | py |
pycbc | pycbc-master/pycbc/frame/store.py | # Copyright (C) 2019 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the ... | 2,303 | 31 | 78 | py |
pycbc | pycbc-master/pycbc/filter/resample.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 15,735 | 34.361798 | 102 | py |
pycbc | pycbc-master/pycbc/filter/matchedfilter_cuda.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 2,147 | 34.213115 | 79 | py |
pycbc | pycbc-master/pycbc/filter/matchedfilter_numpy.py | # Copyright (C) 2017 Ian Harry
# 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 later version.
#
# This program is distributed in the ho... | 830 | 38.571429 | 75 | py |
pycbc | pycbc-master/pycbc/filter/autocorrelation.py | # Copyright (C) 2016 Christopher M. Biwer
# 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 later version.
#
# This program is distribut... | 5,472 | 30.635838 | 116 | py |
pycbc | pycbc-master/pycbc/filter/simd_correlate.py | # Copyright (C) 2014 Josh Willis
#
# 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 later version.
#
# This program is distributed in th... | 3,116 | 42.291667 | 86 | py |
pycbc | pycbc-master/pycbc/filter/__init__.py | from .matchedfilter import *
from .resample import *
| 53 | 17 | 28 | py |
pycbc | pycbc-master/pycbc/filter/matchedfilter.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 83,046 | 38.247164 | 114 | py |
pycbc | pycbc-master/pycbc/filter/zpk.py | # Copyright (C) 2014 Christopher M. Biwer
#
# 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 later version.
#
# This program is distrib... | 3,947 | 32.457627 | 107 | py |
pycbc | pycbc-master/pycbc/filter/qtransform.py | # Copyright (C) 2017 Hunter A. Gabbard, Andrew Lundgren,
# Duncan Macleod, Alex Nitz
#
# 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 (a... | 7,048 | 29.383621 | 79 | py |
pycbc | pycbc-master/pycbc/filter/fotonfilter.py | #!/usr/bin/env python
# Copyright (C) 2015 Christopher M. Biwer
#
# 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 later version.
#
# T... | 3,609 | 33.711538 | 105 | py |
pycbc | pycbc-master/pycbc/vetoes/bank_chisq.py | # Copyright (C) 2013 Ian Harry, Alex Nitz
# 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 later version.
#
# This program is distribut... | 9,693 | 37.931727 | 90 | py |
pycbc | pycbc-master/pycbc/vetoes/chisq_cuda.py | # Copyright (C) 2015 Alex Nitz, Josh Willis
# 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 later version.
#
# This program is distrib... | 12,354 | 34.3 | 100 | py |
pycbc | pycbc-master/pycbc/vetoes/chisq.py | # Copyright (C) 2012 Alex Nitz
# 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 later version.
#
# This program is distributed in the h... | 19,668 | 36.971042 | 103 | py |
pycbc | pycbc-master/pycbc/vetoes/__init__.py | from .chisq import *
from .bank_chisq import *
from .autochisq import *
| 72 | 17.25 | 25 | py |
pycbc | pycbc-master/pycbc/vetoes/autochisq.py | # Copyright (C) 2013 Stas Babak
# 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 later version.
#
# This program is distributed in the ... | 12,524 | 41.74744 | 79 | py |
pycbc | pycbc-master/pycbc/vetoes/sgchisq.py | """Chisq based on sine-gaussian tiles.
See https://arxiv.org/abs/1709.08974 for a discussion.
"""
import numpy
from pycbc.waveform.utils import apply_fseries_time_shift
from pycbc.filter import sigma
from pycbc.waveform import sinegauss
from pycbc.vetoes.chisq import SingleDetPowerChisq
from pycbc.events import ranki... | 7,224 | 39.363128 | 79 | py |
pycbc | pycbc-master/pycbc/strain/recalibrate.py | """ Classes and functions for adjusting strain data.
"""
# Copyright (C) 2015 Ben Lackey, Christopher M. Biwer,
# Daniel Finstad, Colm Talbot, Alex Nitz
#
# 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
... | 18,783 | 35.473786 | 79 | py |
pycbc | pycbc-master/pycbc/strain/strain.py | #Copyright (C) 2013 Alex Nitz
#
# 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 later version.
#
# This program is distributed in the h... | 93,225 | 45.243056 | 113 | py |
pycbc | pycbc-master/pycbc/strain/calibration.py | # Copyright (C) 2018 Colm Talbot
#
# 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 later version.
#
# This program is distributed in th... | 5,742 | 31.446328 | 79 | py |
pycbc | pycbc-master/pycbc/strain/lines.py | # Copyright (C) 2019 Miriam Cabero
#
# 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 later version.
#
# This program is distributed in ... | 8,123 | 35.760181 | 78 | py |
pycbc | pycbc-master/pycbc/strain/__init__.py | from .recalibrate import CubicSpline, PhysicalModel
from .strain import detect_loud_glitches
from .strain import from_cli, from_cli_single_ifo, from_cli_multi_ifos
from .strain import insert_strain_option_group, insert_strain_option_group_multi_ifo
from .strain import verify_strain_options, verify_strain_options_multi... | 1,299 | 31.5 | 84 | py |
pycbc | pycbc-master/pycbc/strain/gate.py | # Copyright (C) 2016 Collin Capano
#
# 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 later version.
#
# This program is distributed in ... | 6,383 | 33.695652 | 78 | py |
pycbc | pycbc-master/pycbc/neutron_stars/eos_utils.py | # Copyright (C) 2022 Francesco Pannarale, Andrew Williamson,
# Samuel Higginbotham
#
# 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... | 7,931 | 36.415094 | 81 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.