Skip to content

Commit

Permalink
Merge pull request #58 from AxFoundation/nuclear_logic
Browse files Browse the repository at this point in the history
Maybe fix for nuclear timeout issues
  • Loading branch information
darrylmasson committed Jun 8, 2021
2 parents a1c0ab5 + 1c6b1ba commit eafe596
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dispatcher/DAQController.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,9 @@ def check_timeouts(self, detector, command=None):
self.hypervisor.tactical_nuclear_option()
self.last_nuke = now()
else:
#self.control_detector(detector=detector, command='stop')
self.log.debug(f'Nuclear timeout at {int(dt)}/{self.hv_nuclear_timeout}')
return
#return

if command is None: # not specified, we figure out it here
command_times = [(cmd,doc[detector]) for cmd,doc in self.last_command.items()]
Expand Down Expand Up @@ -314,6 +315,7 @@ def check_timeouts(self, detector, command=None):
self.hypervisor.tactical_nuclear_option()
self.last_nuke = now()
else:
self.control_detector(detector=detector, command='stop')
self.log.debug(f'Nuclear timeout at {int(dt)}/{self.hv_nuclear_timeout}')
self.error_stop_count[detector] = 0
else:
Expand Down

0 comments on commit eafe596

Please sign in to comment.