MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / set_key_strict

Method set_key_strict

detrsmpl/data/data_structures/human_data.py:211–223  ·  view source on GitHub ↗

Set value of attribute key_strict. Args: value (bool, optional): Whether to raise error when setting unsupported keys. Defaults to True.

(self, value: bool)

Source from the content-addressed store, hash-verified

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.

Callers 1

newMethod · 0.80

Calls 1

pop_unsupported_itemsMethod · 0.95

Tested by

no test coverage detected