Set value of attribute key_strict. Args: value (bool, optional): Whether to raise error when setting unsupported keys. Defaults to True.
(self, value: bool)
| 209 | return self.__key_strict__ |
| 210 | |
| 211 | def set_key_strict(self, value: bool): |
| 212 | """Set value of attribute key_strict. |
| 213 | |
| 214 | Args: |
| 215 | value (bool, optional): |
| 216 | Whether to raise error when setting unsupported keys. |
| 217 | Defaults to True. |
| 218 | """ |
| 219 | former__key_strict__ = self.__key_strict__ |
| 220 | self.__key_strict__ = value |
| 221 | if former__key_strict__ is False and \ |
| 222 | value is True: |
| 223 | self.pop_unsupported_items() |
| 224 | |
| 225 | def check_keypoints_compressed(self) -> bool: |
| 226 | """Check whether the keypoints are compressed. |
no test coverage detected