Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_auxiliary_telescope
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:TSSW Sprint - Apr 25 - May 09
-
Team:Telescope and Site
-
Urgent?:No
Description
The level22 field of the ATWhiteLight chillerAlarms event represents a bitmask that has 32 bits. This caused a bit of trouble for ts_sal: DM-34005, which Dave Mills has kindly fixed. I originally worked around it by omitting the last ChillerL22Alarms value. Update ts_xml to reinstate the value and specify the enum type as "unsigned int" or "unsigned long" (which are identical – both 32 bits).
Attachments
Issue Links
Activity
Summary | Split ATWhiteLight chillerAlarms.level22 into two pieces | Reinstate the missing ATWhiteLight ChillerL22Alarms enum value |
Description |
The level22 field of the ATWhiteLight chillerAlarms event represents a bitmask that has 64 bits. This causes a bit of trouble for ts_sal ( So: split this bitmask into two pieces, each 32 bits long Also update ts_xml to make the types of those bit mask fields {{long}} instead of {{unsigned int}}. |
The level22 field of the ATWhiteLight chillerAlarms event represents a bitmask that has 32 bits. This caused a bit of trouble for ts_sal: |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Reviewers | Petr Kubanek [ pkubanek ] | |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | To Do [ 10001 ] |
Story Points | 2 | 1 |
Status | To Do [ 10001 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10004 ] |
Status | In Review [ 10004 ] | Reviewed [ 10101 ] |
Resolution | Done [ 10000 ] | |
Status | Reviewed [ 10101 ] | Done [ 10002 ] |
It turns out that the Event schema was not updated in ts_xml when implementing
DM-34005, so using this feature broke ts_xml unit tests. So as part of this ticket I updated the Event schema but only for global enumerations. I figure we discourage per-topic enumerations, the type attribute is rarely needed, and the feature needs a lot of extra boilerplate. We can expand it if we find a need, but I hope we will not.I used develop of ts_sal to build the ATWhiteLight IDL file and compared it to the previous version and the new enumeration value is present but all of those enum values have type "long" (the usual) instead of "unsigned int", which I specified. I'll file a new ts_sal ticket.
Pull request: https://github.com/lsst-ts/ts_xml/pull/576