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/neutron_stars/__init__.py | import os.path
# Setup the directory with the NS equilibrium sequence(s)
NS_DATA_DIRECTORY = os.path.join(
os.path.dirname(__file__), 'ns_data')
NS_SEQUENCES = [
f.replace('equil_', '').replace('.dat', '')
for f in os.listdir(NS_DATA_DIRECTORY) if f.endswith('.dat')]
from pycbc.neutron_stars.eos_utils impor... | 373 | 36.4 | 65 | py |
pycbc | pycbc-master/pycbc/neutron_stars/pg_isso_solver.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... | 11,046 | 30.383523 | 79 | py |
pycbc | pycbc-master/pycbc/population/fgmc_functions.py | # Copyright (C) 2021 Thomas Dent
#
# 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.
"""
A set of helper functions for ev... | 30,477 | 41.926761 | 86 | py |
pycbc | pycbc-master/pycbc/population/live_pastro.py | import logging
import h5py
import numpy
from lal import YRJUL_SI as lal_s_per_yr
from pycbc.tmpltbank import bank_conversions as bankconv
from pycbc.events import triggers
from . import fgmc_functions as fgmcfun
def check_template_param_bin_data(spec_json):
"""
Parameters
----------
spec_json: JSON di... | 10,265 | 33.682432 | 79 | py |
pycbc | pycbc-master/pycbc/population/scale_injections.py | import numpy as np
from numpy import log
import copy, h5py
from scipy.interpolate import interp1d
from scipy.integrate import quad
from astropy.cosmology import WMAP9 as cosmo
from pycbc.conversions import mchirp_from_mass1_mass2 as m1m2tomch
_mch_BNS = 1.4/2**.2
_redshifts, _d_lum, _I = np.arange(0., 5., 0.01), [], ... | 16,956 | 32.379921 | 92 | py |
pycbc | pycbc-master/pycbc/population/fgmc_plots.py | # Copyright (C) 2021 Jolien Creighton & Thomas Dent
#
# 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.
import json
impor... | 10,012 | 33.174061 | 86 | py |
pycbc | pycbc-master/pycbc/population/__init__.py | from pycbc.population.rates_functions import *
from pycbc.population.scale_injections import *
from pycbc.population.population_models import *
from pycbc.population.fgmc_functions import *
from pycbc.population.fgmc_laguerre import *
from pycbc.population.live_pastro import *
from pycbc.population.live_pastro_utils im... | 327 | 40 | 48 | py |
pycbc | pycbc-master/pycbc/population/population_models.py | # Copyright (C) 2021 Shichao Wu, Alex Nitz, 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 prog... | 16,559 | 31.217899 | 81 | py |
pycbc | pycbc-master/pycbc/population/fgmc_laguerre.py | # Copyright (C) 2016 Jolien Creighton
# (C) 2021 Jolien Creighton & Thomas Dent
#
# 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)... | 6,246 | 33.136612 | 112 | py |
pycbc | pycbc-master/pycbc/population/live_pastro_utils.py | import logging
import json
from . import live_pastro as livepa
def insert_live_pastro_option_group(parser):
""" Add low-latency p astro options to the argparser object.
Parameters
----------
parser : object
ArgumentParser instance.
Returns
-------
live_pastro_group :
Argu... | 3,907 | 31.840336 | 79 | py |
pycbc | pycbc-master/pycbc/population/rates_functions.py | """
A set of helper functions for evaluating rates.
"""
import h5py
import numpy as np
from numpy import log
from scipy import integrate, optimize
import scipy.stats as ss
from pycbc.conversions import mchirp_from_mass1_mass2
def process_full_data(fname, rhomin, mass1, mass2, lo_mchirp, hi_mchirp):
"""Read the ... | 13,826 | 26.933333 | 100 | py |
pycbc | pycbc-master/pycbc/types/array_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... | 11,741 | 31.436464 | 109 | py |
pycbc | pycbc-master/pycbc/types/optparse.py | # Copyright (C) 2015 Ian Harry, Tito Dal Canton
# 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... | 21,934 | 40.076779 | 80 | py |
pycbc | pycbc-master/pycbc/types/array.py | # Copyright (C) 2012 Alex Nitz, Josh Willis, 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 3 of the License, or (at your
# option) any later ve... | 39,845 | 33.588542 | 108 | py |
pycbc | pycbc-master/pycbc/types/config.py | # Copyright (C) 2013,2017,2021 Ian Harry, Duncan Brown, 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.
#
# ... | 28,298 | 38.523743 | 84 | py |
pycbc | pycbc-master/pycbc/types/timeseries.py | # Copyright (C) 2014 Tito Dal Canton, Josh Willis, 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... | 46,009 | 38.190801 | 120 | py |
pycbc | pycbc-master/pycbc/types/__init__.py | from .array import *
from .timeseries import *
from .frequencyseries import *
from .optparse import *
from .aligned import check_aligned
| 137 | 22 | 34 | py |
pycbc | pycbc-master/pycbc/types/frequencyseries.py | # Copyright (C) 2012 Tito Dal Canton, 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... | 25,727 | 39.838095 | 120 | py |
pycbc | pycbc-master/pycbc/types/aligned.py | # Copyright (C) 2014 Josh Willis, 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 distr... | 2,021 | 35.763636 | 79 | py |
pycbc | pycbc-master/pycbc/tmpltbank/lambda_mapping.py | # Copyright (C) 2013 Ian W. 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 t... | 10,726 | 34.996644 | 80 | py |
pycbc | pycbc-master/pycbc/tmpltbank/bank_output_utils.py | import numpy
import h5py
from lal import PI, MTSUN_SI, TWOPI, GAMMA
from ligo.lw import ligolw, lsctables, utils as ligolw_utils
from pycbc import pnutils
from pycbc.tmpltbank.lambda_mapping import ethinca_order_from_string
from pycbc.io.ligolw import (
return_empty_sngl, return_search_summary, create_process_table... | 14,135 | 38.157895 | 79 | py |
pycbc | pycbc-master/pycbc/tmpltbank/lattice_utils.py | # Copyright (C) 2013 Ian W. 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 t... | 5,472 | 33.20625 | 114 | py |
pycbc | pycbc-master/pycbc/tmpltbank/bank_conversions.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 distribut... | 5,828 | 37.348684 | 79 | py |
pycbc | pycbc-master/pycbc/tmpltbank/calc_moments.py | # Copyright (C) 2013 Ian W. 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 t... | 23,569 | 43.056075 | 80 | py |
pycbc | pycbc-master/pycbc/tmpltbank/brute_force_methods.py | import numpy
from pycbc.tmpltbank.coord_utils import get_cov_params
def get_physical_covaried_masses(xis, bestMasses, bestXis, req_match,
massRangeParams, metricParams, fUpper,
giveUpThresh = 5000):
"""
This function takes the position of a poi... | 23,515 | 44.750973 | 80 | py |
pycbc | pycbc-master/pycbc/tmpltbank/__init__.py | from pycbc.tmpltbank.calc_moments import *
from pycbc.tmpltbank.lambda_mapping import *
from pycbc.tmpltbank.coord_utils import *
from pycbc.tmpltbank.lattice_utils import *
from pycbc.tmpltbank.brute_force_methods import *
from pycbc.tmpltbank.option_utils import *
from pycbc.tmpltbank.partitioned_bank import *
from p... | 361 | 39.222222 | 49 | py |
pycbc | pycbc-master/pycbc/tmpltbank/option_utils.py | # Copyright (C) 2013 Ian W. 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 t... | 57,353 | 46.4 | 95 | py |
pycbc | pycbc-master/pycbc/tmpltbank/partitioned_bank.py | # Copyright (C) 2013 Ian W. 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 t... | 28,141 | 42.903276 | 79 | py |
pycbc | pycbc-master/pycbc/tmpltbank/coord_utils.py | # Copyright (C) 2013 Ian W. 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 t... | 33,431 | 38.611374 | 87 | py |
pycbc | pycbc-master/pycbc/workflow/pegasus_workflow.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 t... | 32,296 | 36.511034 | 80 | py |
pycbc | pycbc-master/pycbc/workflow/psd.py | # Copyright (C) 2013 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... | 4,824 | 38.54918 | 88 | py |
pycbc | pycbc-master/pycbc/workflow/grb_utils.py | # Copyright (C) 2015 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 distribute... | 33,027 | 39.47549 | 79 | py |
pycbc | pycbc-master/pycbc/workflow/core.py | # Copyright (C) 2013, 2017 Ian Harry, Alex Nitz, 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.
#
# Thi... | 90,638 | 39.088014 | 168 | py |
pycbc | pycbc-master/pycbc/workflow/plotting.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... | 23,833 | 41.409253 | 93 | py |
pycbc | pycbc-master/pycbc/workflow/configparser_test.py | import re
import copy
try:
import configparser as ConfigParser
except ImportError:
import ConfigParser
def parse_workflow_ini_file(cpFile,parsed_filepath=None):
"""Read a .ini file in, parse it as described in the documentation linked
to above, and return the parsed ini file.
Parameters
------... | 10,939 | 34.176849 | 80 | py |
pycbc | pycbc-master/pycbc/workflow/versioning.py | # Copyright (C) 2023 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... | 2,384 | 32.591549 | 79 | py |
pycbc | pycbc-master/pycbc/workflow/coincidence.py | # Copyright (C) 2013 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... | 33,288 | 39.695599 | 92 | py |
pycbc | pycbc-master/pycbc/workflow/inference_followups.py | # Copyright (C) 2016 Christopher M. Biwer, Alexander Harvey Nitz, 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... | 42,899 | 40.812865 | 79 | py |
pycbc | pycbc-master/pycbc/workflow/psdfiles.py | # Copyright (C) 2015 Larne Pekowsky
#
# 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,160 | 34.840278 | 88 | py |
pycbc | pycbc-master/pycbc/workflow/minifollowups.py | # Copyright (C) 2015 Christopher M. Biwer, 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.
#
# T... | 36,594 | 42.307692 | 100 | py |
pycbc | pycbc-master/pycbc/workflow/configuration.py | # Copyright (C) 2013,2017 Ian Harry, 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 ... | 15,775 | 33.147186 | 96 | py |
pycbc | pycbc-master/pycbc/workflow/matched_filter.py | # Copyright (C) 2013 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... | 13,867 | 47.48951 | 85 | py |
pycbc | pycbc-master/pycbc/workflow/segment.py | # Copyright (C) 2013 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... | 19,177 | 41.429204 | 81 | py |
pycbc | pycbc-master/pycbc/workflow/tmpltbank.py | # Copyright (C) 2013 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... | 14,333 | 41.916168 | 86 | py |
pycbc | pycbc-master/pycbc/workflow/splittable.py | # Copyright (C) 2013 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... | 6,964 | 37.910615 | 82 | py |
pycbc | pycbc-master/pycbc/workflow/jobsetup.py | # Copyright (C) 2013 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... | 51,006 | 41.189413 | 96 | py |
pycbc | pycbc-master/pycbc/workflow/__init__.py | # Copyright (C) 2013 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 ... | 2,063 | 37.222222 | 79 | py |
pycbc | pycbc-master/pycbc/workflow/pegasus_sites.py | # Copyright (C) 2021 The PyCBC development team
#
# =============================================================================
#
# Preamble
#
# =============================================================================
#
""" This module provides default site catalogs, which shou... | 11,831 | 42.5 | 120 | py |
pycbc | pycbc-master/pycbc/workflow/dq.py | # Copyright (C) 2020 Max Trevor and Derek Davis
#
# 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... | 9,556 | 45.848039 | 79 | py |
pycbc | pycbc-master/pycbc/workflow/datafind.py | # Copyright (C) 2013 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... | 48,413 | 43.744917 | 92 | py |
pycbc | pycbc-master/pycbc/workflow/injection.py | # Copyright (C) 2015 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 distrib... | 10,485 | 39.176245 | 82 | py |
pycbc | pycbc-master/pycbc/inference/geweke.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... | 2,802 | 32.369048 | 75 | py |
pycbc | pycbc-master/pycbc/inference/gelman_rubin.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... | 6,652 | 34.388298 | 79 | py |
pycbc | pycbc-master/pycbc/inference/burn_in.py | # Copyright (C) 2017 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... | 30,844 | 37.604506 | 79 | py |
pycbc | pycbc-master/pycbc/inference/__init__.py | # pylint: disable=unused-import
from . import (models, sampler, io)
from . import (burn_in, entropy, gelman_rubin, geweke, option_utils)
| 137 | 33.5 | 68 | py |
pycbc | pycbc-master/pycbc/inference/option_utils.py | # Copyright (C) 2016 Collin Capano, 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 d... | 16,324 | 44.096685 | 79 | py |
pycbc | pycbc-master/pycbc/inference/entropy.py | """ The module contains functions for calculating the
Kullback-Leibler divergence.
"""
import numpy
from scipy import stats
def check_hist_params(samples, hist_min, hist_max, hist_bins):
""" Checks that the bound values given for the histogram are consistent,
returning the range if they are or raising an err... | 8,796 | 35.201646 | 79 | py |
pycbc | pycbc-master/pycbc/inference/evidence.py | # Copyright (C) 2019 Steven Reyes
# 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... | 8,936 | 34.324111 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/base_cube.py | # Copyright (C) 2020 Sumit Kumar, 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... | 3,361 | 33.659794 | 87 | py |
pycbc | pycbc-master/pycbc/inference/sampler/base.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... | 8,201 | 30.425287 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/epsie.py | # Copyright (C) 2019 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,831 | 38.983871 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/cpnest.py | # Copyright (C) 2019 Collin Capano, Sumit Kumar
# 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... | 8,274 | 33.053498 | 94 | py |
pycbc | pycbc-master/pycbc/inference/sampler/base_multitemper.py | # Copyright (C) 2018 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... | 16,327 | 38.062201 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/dynesty.py | # Copyright (C) 2019 Collin Capano, Sumit Kumar, Prayush Kumar
# 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... | 23,999 | 35.923077 | 81 | py |
pycbc | pycbc-master/pycbc/inference/sampler/emcee_pt.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... | 18,909 | 39.319829 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/ptemcee.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... | 27,259 | 41.527301 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/ultranest.py | # Copyright (C) 2020 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... | 7,359 | 31.711111 | 85 | py |
pycbc | pycbc-master/pycbc/inference/sampler/base_mcmc.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... | 36,376 | 37.331928 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/emcee.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,506 | 33.69708 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/__init__.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... | 2,813 | 28.93617 | 78 | py |
pycbc | pycbc-master/pycbc/inference/sampler/multinest.py | # Copyright (C) 2018 Daniel Finstad
# 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 ... | 15,427 | 37.666667 | 79 | py |
pycbc | pycbc-master/pycbc/inference/sampler/dummy.py | """ Dummy class when no actual sampling is needed, but we may want to do
some reconstruction supported by the likelihood model.
"""
import numpy
from pycbc.inference.io import PosteriorFile
from pycbc.inference import models
from pycbc.pool import choose_pool
from .base import (BaseSampler, setup_output)
def call_... | 2,594 | 29.529412 | 77 | py |
pycbc | pycbc-master/pycbc/inference/io/epsie.py | # Copyright (C) 2019 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... | 11,226 | 38.255245 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/cpnest.py | # Copyright (C) 2019 Sumit Kumar and 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
# self.option) any later version.
#
# This program... | 1,205 | 35.545455 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/base_multitemper.py | # Copyright (C) 2018 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
# self.option) any later version.
#
# This program is distributed ... | 16,944 | 40.633907 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/dynesty.py | # Copyright (C) 2019 Collin Capano, Sumit Kumar
# 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... | 7,473 | 38.544974 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/base_nested_sampler.py | # Copyright (C) 2019 Sumit Kumar, 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
# self.option) any later version.
#
# This program is... | 2,918 | 36.423077 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/emcee_pt.py | # Copyright (C) 2018 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
# self.option) any later version.
#
# This program is distributed ... | 4,859 | 34.474453 | 78 | py |
pycbc | pycbc-master/pycbc/inference/io/base_hdf.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
# self.option) any later version.
#
# This p... | 38,576 | 36.417071 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/txt.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
# self.option) any later version.
#
# This program is distr... | 2,421 | 35.149254 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/base_sampler.py | # Copyright (C) 2019 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
# self.option) any later version.
#
# This program is distributed ... | 5,298 | 34.804054 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/ptemcee.py | # Copyright (C) 2020 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
# self.option) any later version.
#
# This program is distributed ... | 5,947 | 35.944099 | 78 | py |
pycbc | pycbc-master/pycbc/inference/io/ultranest.py | # Copyright (C) 2019 Collin Capano, Sumit Kumar, 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... | 1,226 | 36.181818 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/base_mcmc.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
# self.option) any later version.
#
# This p... | 36,040 | 37.341489 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/emcee.py | # Copyright (C) 2018 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
# self.option) any later version.
#
# This program is distributed ... | 3,848 | 33.061947 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/__init__.py | # Copyright (C) 2018 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... | 32,158 | 40.124041 | 79 | py |
pycbc | pycbc-master/pycbc/inference/io/multinest.py | # Copyright (C) 2018 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
# self.option) any later version.
#
# This program is distributed ... | 5,382 | 38.291971 | 78 | py |
pycbc | pycbc-master/pycbc/inference/io/posterior.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
# self.option) any later version.
#
# This program is distributed in t... | 3,653 | 34.823529 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/base.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... | 33,142 | 36.323198 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/hierarchical.py | # Copyright (C) 2022 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... | 25,771 | 41.810631 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/single_template.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 ho... | 8,440 | 36.02193 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/gated_gaussian_noise.py | # Copyright (C) 2020 Collin Capano and Shilpa Kastha
# 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 i... | 31,219 | 39.231959 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/data_utils.py | # Copyright (C) 2018 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... | 23,677 | 41.663063 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/tools.py | """ Common utility functions for calculation of likelihoods
"""
import logging
import warnings
from distutils.util import strtobool
import numpy
import numpy.random
import tqdm
from scipy.special import logsumexp, i0e
from scipy.interpolate import RectBivariateSpline, interp1d
from pycbc.distributions import JointDi... | 36,070 | 37.291932 | 81 | py |
pycbc | pycbc-master/pycbc/inference/models/relbin.py | # Copyright (C) 2020 Daniel Finstad
# 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 ... | 32,610 | 37.547281 | 80 | py |
pycbc | pycbc-master/pycbc/inference/models/base_data.py | # Copyright (C) 2018 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,697 | 34.391304 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/gaussian_noise.py | # Copyright (C) 2018 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... | 49,252 | 39.941812 | 80 | py |
pycbc | pycbc-master/pycbc/inference/models/__init__.py | # Copyright (C) 2018 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... | 11,328 | 31.002825 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/analytic.py | # Copyright (C) 2018 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... | 8,703 | 32.221374 | 79 | py |
pycbc | pycbc-master/pycbc/inference/models/marginalized_gaussian_noise.py | # Copyright (C) 2018 Charlie Hoy, 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 dis... | 32,995 | 40.142145 | 83 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.