Not all variables defined in saturations.py causing find_saturations plugin to fail
Examples of failed events: LLO 1326194073 and LLO 1326193057.
Error:
2022-01-14 05:19:03,734 [analyze.analyze_event] exception in find_saturations:
Traceback (most recent call last):
File "/home/lockloss/.local/lib/python3.6/site-packages/locklost-0.22.2.dev0+g9e37d51.d20220113-py3.6.egg/locklost/analyze.py", line 56, in analyze_event
func(event)
File "/home/lockloss/.local/lib/python3.6/site-packages/locklost-0.22.2.dev0+g9e37d51.d20220113-py3.6.egg/locklost/plugins/saturations.py", line 101, in find_saturations
ymin, ymax = set_ylims(saturations, xmax, buffer)
File "/home/lockloss/.local/lib/python3.6/site-packages/locklost-0.22.2.dev0+g9e37d51.d20220113-py3.6.egg/locklost/plugins/saturations.py", line 199, in set_ylims
if ymax < 1:
UnboundLocalError: local variable 'ymax' referenced before assignment
This is just the values used to plot graphs. It may be to do with the variables in locklost/plugins/saturations.py #L188 - L205 being defined with only > and < rather than any => statements.