Issue: If caldb is not initialized when running batsurvey_analysis, the run fails in heasoftpy (no gtis are created) but doesn't give back an obvious error to warn the user that this is the reason, instead returning a lack of gtis.
Proposed fix: Test for $CALDB and $CALDBCONFIG in os.environ when importing bat_analysis and/or running batsurvey_analysis, parse the batsurvey response with high chatter to check for the presence of such an error ?
Issue: If caldb is not initialized when running batsurvey_analysis, the run fails in heasoftpy (no gtis are created) but doesn't give back an obvious error to warn the user that this is the reason, instead returning a lack of gtis.
Proposed fix: Test for $CALDB and $CALDBCONFIG in os.environ when importing bat_analysis and/or running batsurvey_analysis, parse the batsurvey response with high chatter to check for the presence of such an error ?