jesterTOV.inference.postprocessing.postprocessing.load_injection_eos

jesterTOV.inference.postprocessing.postprocessing.load_injection_eos#

load_injection_eos(injection_path)[source]#

Load injection EOS data from an NPZ file.

Parameters:

injection_path (str or None) – Path to NPZ file containing injection EOS data.

Return type:

Optional[Dict[str, Any]]

Returns:

dict or None – Dictionary containing injection EOS data, or None if loading fails.

Notes

Units: The injection file should contain data in geometric units:

  • masses_EOS: solar masses \(M_{\odot}\)

  • radii_EOS: \(\mathrm{km}\)

  • Lambda_EOS: dimensionless tidal deformability

  • n, p, e: geometric units \(m^{-2}\)

  • cs2: dimensionless

Missing keys are handled gracefully.