Skip to content
Merged
Changes from all commits
Commits
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
5 changes: 3 additions & 2 deletions diffmah/data_loaders/load_tng_mahs.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Module loads mass assembly history data for diffmah
"""
"""Module loads mass assembly history data for diffmah"""

import numpy as np
import os

BEBOP_TNG = "/lcrc/project/halotools/alarcon/data/"
H_TNG = 0.6774


def load_tng_data(data_drn=BEBOP_TNG):
Expand All @@ -14,5 +14,6 @@ def load_tng_data(data_drn=BEBOP_TNG):
log_mahs = _halos["mpeakh"]
log_mahs = np.maximum.accumulate(log_mahs, axis=1)
mahs = np.where(log_mahs == 0.0, 0.0, 10**log_mahs)
mahs = mahs * (1 / H_TNG)
assert mahs.max() > 1e5
return tng_t, mahs
Loading