Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_auxiliary_telescope, ts_main_telescope
-
Labels:
-
Story Points:0
-
Epic Link:
-
Sprint:TSSW Sprint - Feb 1 - Feb 15
-
Team:Telescope and Site
-
Urgent?:Yes
Description
RampGenerator in ts_simactuators makes a shallow copy of a numpy array using [:] which turns out to not be safe. Use .copy() instead.
ts_mthexapod and ts_salobj also use [:] to make a shallow copy. In those cases it's safe, but I'll fix ts_mthexapod in this ticket and fix ts_salobj in a different ticket because the best way to fix it is to use unittest.mock, and that should be applied to os.environ as well as sys.argv (so it's a bigger change)
Attachments
Issue Links
- relates to
-
DM-28604 Release packages waiting on ts_xml 7.2/8
- Done
Since I was already working on ts_mthexapod I took the opportunity to fix
DM-28804as well: make azimuth and rotation coefficients required in the configuration, and add a unit test to check that any missing instance-specific item fails validation.Pull requests: