diff --git a/camcheck.py b/camcheck.py index 01669f4..701343c 100755 --- a/camcheck.py +++ b/camcheck.py @@ -26,7 +26,8 @@ false = Fore.RED + " ✗" + Style.RESET_ALL cam_names = [ # "DOES-NOT-EXIST", "SATES21-CAMS154-M1", - "SATES24-CAMS161-M1" + "SATES24-CAMS161-M1", + "SATES21-PATT-M1" ] cam_names += [f"SATES21-CAMS154-GIGE{i+1}" for i in range(8)] @@ -73,7 +74,8 @@ def get_state(f): d = ib_data[f] except KeyError: return False - assert len(d) == 1 + if len(d) != 1: + print(d) return not all(d.isna()) ib_states = [get_state(f) for f in fpics] @@ -94,6 +96,7 @@ for cam, pv_state, bs_state, ib_state in zip(cam_names, pv_states, bs_states, ib res.append(new) +print() for name, pv, bs, ib in res: name = name.ljust(width) # pv = pv.ljust(bool_width)