Integrating KL into CoCoA (v4.04)
- The corresponding
cosmolike_corebranch for thegeneric_interface.cppparser fix isnonlimber-dev. - A typical failure signature is:
[critical] read_table: failed to parse file external_modules/data/roman_kl/Roman_3x2pt_cov_Ncl20_Ntomo10 at data line 12401, column 9: token='1.630861e-316' (out of range) Roman_3x2pt_cov_Ncl20_Ntomo10can contain extremely small subnormal entries such as1.630861e-316.- The original
read_tableimplementation incosmolike_core/cosmolike/generic_interface.cppusedstd::stod, which raised a range error on these finite underflowed values and stopped likelihood initialization. - The fix is to parse table values with
std::strtodand only treat range errors as fatal when the parsed result is non-finite. Finite underflowed values are accepted. - If you see this error, switch
Cocoa/external_modules/code/cosmolike_coreto branchnonlimber-devor apply the samegeneric_interface.cpppatch, then rebuildprojects/roman_kl/interface/cosmolike_roman_kl_interface.so.