Yesterday the work continued, on two different topics:
- we implemented the nodes.release() instruction in both the CALI and ITF_CONDITIONS nodes, then we forced a DOWN->INIT->DOWN cycle on CALI in order to properly detach ITF_LOCK from it; then we operated ITF_CONDITIONS normally. When we unlocked because of the earthquake there was no state request done by ITF_LOCK, so apparently the only one active was the one issued by ITF_CONDITIONS, this should mean that the issue is solved;
- some update is needed for the ITF_EVENTS node, in order to properly display on the DMS and the ITF Operations page what is going on and if AutoRelock/AutoScience are enabled; because the node cannot read from the DAQ channels put there by the automation itself, we decided to make ITF_CONDITIONS write somewhere whether the two functionalities are active, so that ITF_EVENTS could read from there; for this reason I decided to give ITF_CONDITIONS the dignity of its own configuration file (ITF_CONDITIONS.ini) instead of using the one of ITF_STATUS, at the cost of a slight increase in duplication, as now all three "detector" nodes (_STATUS, _CONDITIONS and _EVENTS) have in their configuration files the parameters of the two Science-viable states; this duplication is however small and those parameters will hardly change for a long time.
The ITF_CONDITIONS.ini file is the one driving both AutoRelock and AutoScience (in principle the last four parameters of ITF_STATUS.ini could now be removed); they both have a section, as follows:
[AUTORELOCK]
max_lock_retries = 5
max_trans_duration = 3600
itf_lock_fallback_state = LOCKED_ARMS_IR
autorelock_enabled = False
[AUTOSCIENCE]
science_timer = 180
autoscience_enabled = False
The first section has the usual parameters for the AutoRelock Failsafe (number of attempts, maximum duration of a single attempt, fallback state in case of failure), and the second section only contains the timer after which we automatically set up the Science state.
The two _enabled boolean parameters are the two values written by the ITF_CONDITIONS node, they are not to be changed by hand: they are the ones needed to be read from ITF_EVENTS as explained above.