Update PESummary metafile authored by Charlie Hoy's avatar Charlie Hoy
...@@ -58,8 +58,23 @@ print("--------------------") ...@@ -58,8 +58,23 @@ print("--------------------")
print("Parameters not included in this analysis: {}".format(", ".join(not_included))) print("Parameters not included in this analysis: {}".format(", ".join(not_included)))
print("--------------------") print("--------------------")
# check attributes
# check config file not_included = []
lalinference_attributes = dict(lalinf_samples.attrs)
for attribute, value in lalinference_attributes.items():
if not any(attribute in pesummary_attributes[key].keys() for key in pesummary_attributes.keys()):
not_included.append(attribute)
else:
for key in pesummary_attributes.keys():
if attribute in pesummary_attributes[key].keys():
if isinstance(value, bytes):
value = value.decode("utf-8")
assert pesummary_attributes[key][attribute] == value, "{} != {} for the attribute {}".format(pesummary_attributes[key][attribute], value, attribute)
print("--------------------")
print("Parameters not included in this analysis: {}".format(", ".join(not_included)))
print("--------------------")
``` ```
With output: With output:
...@@ -70,6 +85,9 @@ WARNING: failed to download https://datacenter.iers.org/data/9/finals2000A.all a ...@@ -70,6 +85,9 @@ WARNING: failed to download https://datacenter.iers.org/data/9/finals2000A.all a
-------------------- --------------------
Parameters not included in this analysis: L1_cplx_snr_amp, L1_cplx_snr_arg, L1_optimal_snr, V1_cplx_snr_amp, V1_cplx_snr_arg, V1_optimal_snr, logL, logPrior Parameters not included in this analysis: L1_cplx_snr_amp, L1_cplx_snr_arg, L1_optimal_snr, V1_cplx_snr_amp, V1_cplx_snr_arg, V1_optimal_snr, logL, logPrior
-------------------- --------------------
--------------------
Parameters not included in this analysis: LAL_APPROXIMANT, LAL_PNORDER
--------------------
``` ```
# Reviewer comments # Reviewer comments
\ No newline at end of file