xpsi-group / xpsi

X-PSI: X-ray Pulse Simulation and Inference
Other
34 stars 21 forks source link

All true values set to None if one them is None. #351

Closed thjsal closed 7 months ago

thjsal commented 9 months ago

When plotting true values for posterior plots with synthetic data, no true values are plotted if even one of them is set to "None". The reason is that all true values are changed to None in that case:

https://github.com/xpsi-group/xpsi/blob/1dfb38f7a598f4dc9b2cd5d507c52018cdcbd492/xpsi/PostProcessing/_metadata.py#L58

This can be fixed just by removing that requirement, and removing the following line checking that all true values are float values: https://github.com/xpsi-group/xpsi/blob/1dfb38f7a598f4dc9b2cd5d507c52018cdcbd492/xpsi/PostProcessing/_metadata.py#L213