Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
91d4ca0
DOCS: note error in 15yr Astro paper; thanks to Anna-Malin Lemke for …
lzkelley May 3, 2024
53951d2
fixed bug in GMR_Illustris (1+yy**mdelta instead of (1+yy)**mdelta)
lblecha May 21, 2024
59c8dc5
initial commit for compare_discrete_populations noteboo on dev branch…
lblecha May 21, 2024
bdfe7f7
Significant logging improvements, specifically for parallel runs.
lzkelley Jun 18, 2024
5010464
Add 'output/logs' subdir for (default) logging
lzkelley Jun 24, 2024
cadfdcb
Minor improvements to 'utils.random_power' function
lzkelley Jun 24, 2024
68d179e
Warn users when there may be an inconsistent library parameter passed
lzkelley Jul 25, 2024
0a06d01
DOCS: Add missing reference to __init__
lzkelley Aug 12, 2024
adca2e0
BUG: fix issue with setting log level for different handlers
lzkelley Aug 12, 2024
1eb29f6
Merge branch 'dev' of https://github.com/nanograv/holodeck into dev
lzkelley Aug 12, 2024
9004ed3
New illustris(TNG) blackhole-merger data
lzkelley Sep 30, 2024
fbaa331
Update illustris data path
lzkelley Sep 30, 2024
135bf2f
Update param_spaces.py
CayenneMatt Jul 17, 2025
8a044b6
Update host_relations.py
CayenneMatt Aug 6, 2025
ebe52d3
Update BHMF in components.py
CayenneMatt Aug 6, 2025
e347280
Update host_relations.py
CayenneMatt Aug 7, 2025
4fd7052
Update components.py
CayenneMatt Aug 7, 2025
da83b66
Update components.py
CayenneMatt Aug 8, 2025
e99e5fa
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
lblecha Oct 28, 2025
ad5b8b1
Import scipy.stats.norm for statistical functions
CayenneMatt Nov 14, 2025
8bcf107
Added scipy import statement for compatibility with BHMFs notebook.
Nov 17, 2025
d82d6c6
Merge branch 'dev' of https://github.com/nanograv/holodeck into dev
Nov 17, 2025
a43450d
Added Holodeck BHMFs notebook (written by Cayenne Matt)
Nov 17, 2025
058c81f
Adding utility for arbitrary frequency resolution (#123)
criswellalexander Nov 25, 2025
6473d87
Bring dev branch into parity with "recent" commits to main (#128)
kayhangultekin Nov 25, 2025
0830ba0
Update _PS_Astro_Strong version number to 0.3, to correspond to the c…
emikocgardiner Mar 2, 2026
fd730b0
Correcting typo in gsmf_alpha_two parameter error from 0.15 to 0.015
CayenneMatt Mar 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/source/getting_started/nanograv_15yr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ The initial set of **NANOGrav 15yr papers** are:

The use of **holodeck in the 15yr astrophysics interpretation**:


Errata
======
[1] : The 15yr Astro paper quotes an initial separation (the ``hard_sepa_init`` parameter) of "1e3 pc", this is incorrect and the actual value used in the analysis was 1e4 pc. The values in the parameter-space objects (i.e. :py:class:`~holodeck.librarian.param_spaces_classic:_PS_Classic_Phenom`) is correct.
16 changes: 15 additions & 1 deletion holodeck/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
evolution. Note that GWs can only be calculated based on some sort of model for binary
evolution. The model may be extremely simple, in which case it is sometimes glanced over.

References
----------
* [WMAP9] Hinshaw, Larson, Komatsu et al. 2013

"""

__author__ = "NANOGrav"
Expand All @@ -44,6 +48,8 @@

# ---- Define Global Parameters

LOG_SUFFIX = '.log'
LOG_FILENAME_WITH_TIME_STAMP = False

class Parameters:
"""These are WMAP9 parameters, see: [WMAP9]_ Table 3, WMAP+BAO+H0
Expand All @@ -60,6 +66,7 @@ class Parameters:
_PATH_NOTEBOOKS = os.path.join(_PATH_ROOT, "notebooks", "")
_PATH_DATA = os.path.join(_PATH_PACKAGE, "data", "")
_PATH_OUTPUT = os.path.join(_PATH_ROOT, "output", "")
_PATH_LOGS = os.path.join(_PATH_OUTPUT, "logs", "")

# NOTE: can only search for paths within the package _*NOT the root directory*_
_check_paths = [_PATH_PACKAGE, _PATH_ROOT, _PATH_DATA]
Expand All @@ -73,7 +80,14 @@ class Parameters:
# ---- Load logger

from . import logger # noqa
log = logger.get_logger(__name__, logging.WARNING) #: global root logger from `holodeck.logger`
log = logger.get_logger(__name__, level_stream=logging.WARNING) #: global root logger from `holodeck.logger`
log.setLevel(logging.WARNING)

def log_to_file(**kwargs):
logger.log_to_file(log, **kwargs)

def set_log_level(level):
log.setLevel(level)

# ---- Load cosmology instance

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion holodeck/discrete/population.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def __init__(self, fname=None, **kwargs):
"""
if fname is None:
fname = _DEF_ILLUSTRIS_FNAME
fname = os.path.join(_PATH_DATA, fname)
fname = os.path.join(_PATH_DATA, "illustris", fname)

self._fname = fname #: Filename for binary data
super().__init__(**kwargs)
Expand Down
2 changes: 1 addition & 1 deletion holodeck/gravwaves.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def _gws_harmonics_at_evo_fobs(fobs_gw, dlnf, evo, harm_range, nreals, box_vol,

if np.any(num_pois > 0):
# Find the L loudest binaries in each realizations
loud = np.sort(temp[:, np.newaxis] * (num_pois > 0), axis=0)[::-1, :]
loud = np.sort(temp[:, np.newaxis] * (num_pois > 0) / dlnf, axis=0)[::-1, :]
fore = loud[0, :]
loud = loud[:loudest, :]
else:
Expand Down
2 changes: 2 additions & 0 deletions holodeck/host_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,9 +696,11 @@ def __init__(
scatter_dex = self.SCATTER_DEX

self._mamp = mamp #: Mass-Amplitude [grams]
self._mamp_log10 = mamp_log10 #: log10 of Mass-Amplitude [log10(Msol)]
self._mplaw = mplaw #: Mass Power-law index
self._mref = mref #: Reference Mass (argument normalization)
self._scatter_dex = scatter_dex
self._zplaw = 0.0

if len(kwargs) > 0:
warn = f"Unused parameters passed to {self}! {kwargs=}"
Expand Down
4 changes: 2 additions & 2 deletions holodeck/librarian/combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def sam_lib_combine(
lib_path = lib_tools.get_sam_lib_fname(path_output, gwb_only, library=library)
if lib_path.exists():
lvl = log.INFO if recreate else log.WARNING
log.log(lvl, f"combined library already exists: {lib_path}, run with `-r` to recreate.")
log.log(lvl, f"Combined library already exists: {lib_path}, run with `-r` to recreate.")
if not recreate:
return

Expand All @@ -135,7 +135,7 @@ def sam_lib_combine(

if path_pspace is None:
path_pspace = path_output
pspace, pspace_fname = lib_tools.load_pspace_from_path(path_pspace, log=log)
pspace, pspace_fname = lib_tools.load_pspace_from_path(path_pspace)
args, args_fname = holo.librarian.gen_lib.load_config_from_path(path_pspace, log=log)

log.info(f"loaded param space: {pspace} from '{pspace_fname}'")
Expand Down
Loading
Loading