Skip to content

Commit

Permalink
Have to set mode in offline processing for pulsar folding to work
Browse files Browse the repository at this point in the history
  • Loading branch information
loostrum committed Jan 5, 2021
1 parent 4adc943 commit 495a566
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions darc/offline_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,13 +265,13 @@ def _start_observation_worker(self, obs_config, reload=True):
self.logger.error("Failed to create results directory")
raise OfflineProcessingException("Failed to create result directory: {}".format(e))

# TAB or IAB mode
if obs_config['ntabs'] == 1:
obs_config['mode'] = 'IAB'
trigger_output_file = "{output_dir}/triggers/data/data_00_full.hdf5".format(**obs_config)
else:
obs_config['mode'] = 'TAB'
trigger_output_file = "{output_dir}/triggers/data/data_full.hdf5".format(**obs_config)
# TAB or IAB mode
if obs_config['ntabs'] == 1:
obs_config['mode'] = 'IAB'
trigger_output_file = "{output_dir}/triggers/data/data_00_full.hdf5".format(**obs_config)
else:
obs_config['mode'] = 'TAB'
trigger_output_file = "{output_dir}/triggers/data/data_full.hdf5".format(**obs_config)

# wait until end time + delay
start_processing_time = Time(obs_config['parset']['task.stopTime']) + TimeDelta(self.delay, format='sec')
Expand Down

0 comments on commit 495a566

Please sign in to comment.