Skip to content

Commit

Permalink
REL: local ip for online monitor + catching KeyboardInterrupt
Browse files Browse the repository at this point in the history
  • Loading branch information
rpartzsch committed Dec 13, 2024
1 parent 1d2775f commit 63d03b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 2 additions & 4 deletions aidatlu/main/tlu.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ def run(self) -> None:
self.log_trigger_inputs(current_event[0:6])
first_event = False

except:
KeyboardInterrupt
except KeyboardInterrupt:
run_active = False
t.do_run = False
self.stop_run()
Expand All @@ -492,8 +491,7 @@ def run(self) -> None:
try:
while np.size(current_event) > 1:
current_event = self.pull_fifo_event()
except:
KeyboardInterrupt
except KeyboardInterrupt:
self.log.warning("Interrupted FIFO cleanup")

if self.zmq_address not in [None, "off"]:
Expand Down
6 changes: 3 additions & 3 deletions aidatlu/online_monitor/configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
converter :
AIDA_TLU_Converter :
kind : tlu_converter
frontend : tcp://131.220.165.88:1500
backend : tcp://127.0.0.1:7501
frontend : tcp://127.0.0.1:6500
backend : tcp://127.0.0.1:7500
threshold: 10

receiver :
AIDA_TLU :
kind : tlu_receiver
frontend : tcp://127.0.0.1:7501
frontend : tcp://127.0.0.1:7500
2 changes: 1 addition & 1 deletion aidatlu/tlu_configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pmt_control:

#Save data and generate interpreted data from the raw data set. Set to 'True' or 'False'.
save_data: True
output_data_path: '/media/data/ITK_DEBUG/tests_3/itk/chip_0/'
output_data_path:

#zmq connection leave it blank or set to 'off' if not needed
zmq_connection: 'off' #"tcp://127.0.0.1:6500"

0 comments on commit 63d03b9

Please sign in to comment.