xpsi-group/xpsi

Change default SaveBackground in method Signal.synthesise

Open

#721 opened on Jul 29, 2026

 (1 comment) (0 reactions) (0 assignees)Python (25 forks)auto 404
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 True if data_BKG or expected_background_counts are not None
  • add a print to say that the background will not be saved because save_background=False

Contributor guide