CIP-2003 system test (and ec) updates for multiple delay models
- ec changes related to multiple delay models CIP-2003
- linting changes, typo fix, lint/format fixes, using logger
instead ofas well as print statements, adding flush=True to print statements
- linting changes, typo fix, lint/format fixes, using logger
- tested on the system-tests side
- test a (last two histograms failed)
- Test_14 all checkpoints and visibilities passed
- more recent Test_14 passed
-
TODO: local test(ran script manually from the ec bite pod) -
TODO:update ec-bite to check for and use the base time created by the delay models formatter (if the file exists. the delay models formatter was added as part of CIP-1620)-
added this change and tested the script manually because i was having trouble testing on minikube (part of the problem is tracked in CIP-2566)
-
copied part of the command line output attached above:
- root@ds-bite-bite-0:/app/images/ska-mid-cbf-engineering-console-bite# python midcbf_bite.py --talon-bite-lstv-replay
- ...
- [midcbf_bite.py: line 546]INFO: ska_epoch_utc = 1999-12-31T23:59:28.000
- [midcbf_bite.py: line 547]INFO: ska_epoch_tai = 946684800.0
- [midcbf_bite.py: line 548]INFO: start_utc_time = 2024-06-11 19:14:57.751899
- [midcbf_bite.py: line 549]INFO: start_utc_time.unix_tai = 1718133334.751899
- [midcbf_bite.py: line 552]INFO: start_utc_time_offset = start_utc_time.unix_tai - ska_epoch_tai = 771448534.751899
- [midcbf_bite.py: line 558]INFO: EDNA base time file exists
- [midcbf_bite.py: line 561]INFO: updating start utc offset with base time file
- [midcbf_bite.py: line 659]INFO: write_attribute(talondx-003/lstvplayback/lstv_pbk, start_utc_time_code, 771447868)
- [midcbf_bite.py: line 659]INFO: write_attribute(talondx-003/lstvplayback/lstv_pbk, lstv_start_addr, 33554432)
- [midcbf_bite.py: line 659]INFO: write_attribute(talondx-003/lstvplayback/lstv_pbk, lstv_end_addr, 788258431)
- [midcbf_bite.py: line 659]INFO: write_attribute(talondx-003/lstvplayback/lstv_pbk, run, 1)
- root@ds-bite-bite-0:/app/images/ska-mid-cbf-engineering-console-bite# cat /app/images/ska-mid-cbf-engineering-console-etc/delay-models/base_time.json
- { "description": "base time for delay models", "epoch_seconds": 771447868.432627 }
-
Edited by Edna Sanchez