This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import astropy.units as u | |
from astropy.coordinates import SkyCoord | |
import matplotlib.pyplot as plt | |
# LEGWORK is a python package that can calculate LISA SNRs - https://legwork.readthedocs.io/ | |
# Citation info at: https://legwork.readthedocs.io/en/latest/cite.html | |
import legwork as lw | |
# take 100,000 random samples based on uncertainties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import argparse | |
def collect_all_bibs(bib_files): | |
# regex for anything that matches "@[some word]{[something]," | |
bibtex_key_regex = r"@\w*{.*(?=\,)" | |
# convert strings to lists in case only one file | |
if isinstance(bib_files, str): | |
bib_files = [bib_files] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import h5py as h5 | |
import numpy as np | |
import legwork | |
import astropy.units as u | |
import pandas as pd | |
# constants | |
dco_types = ["BHBH", "BHNS", "NSNS"] | |
det_rates = [74, 42, 8] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
import pandas as pd | |
import numpy as np | |
def create_appendix_d(Zs=[0.014, 0.002], verbose=False, | |
masses=[0.8, 0.9, 1, 2, 4, 7, 12, 15, 20, 25, 32, 40, 60, 85, 120]): | |
"""Recreate Appendix D from "Understanding Stellar Evolution" by Henry Lamers and Emily Levesque. | |
Parameters | |
---------- | |
Zs : `list`, optional |