xpsi-group/xpsi
Change default SaveBackground in method Signal.synthesise
Open
#721 opened on Jul 29, 2026
bugfixgood first issue
Repository metrics
- Stars
- (43 stars)
- PR merge metrics
- (PR metrics pending)
Description
In the Signal.synthesise method, since the default input background information (data_BKG and expected_background_counts) is None, the default for save_background should be False. Otherwise, Signal.synthesise crashes trying to save a background that is None.
With save_background=False by default, we could either:
- switch it to
Trueifdata_BKGorexpected_background_countsare notNone - add a print to say that the background will not be saved because
save_background=False