Return a value identifying the feature.
(self, feature: dict)
| 919 | return mapping |
| 920 | |
| 921 | def get_feature_id(self, feature: dict) -> Union[str, int]: |
| 922 | """Return a value identifying the feature.""" |
| 923 | fields = self.feature_identifier.split(".")[1:] |
| 924 | value = functools.reduce(operator.getitem, fields, feature) |
| 925 | assert isinstance(value, (str, int)) |
| 926 | return value |
| 927 | |
| 928 | @staticmethod |
| 929 | def _to_key(d: dict) -> str: |