(self)
| 776 | self._validate_metadata() |
| 777 | |
| 778 | def _validate_metadata(self): |
| 779 | if self._metadata is None: |
| 780 | return |
| 781 | if (self._metadata.categorical_limit is not None and |
| 782 | self.dtype is not None): |
| 783 | assert np.issubdtype(self.dtype, np.integer), \ |
| 784 | "`categorical_limit` can be specified only in integral " + \ |
| 785 | "fields but got {}".format(self.dtype) |
| 786 | |
| 787 | def set_value(self, blob, throw_on_type_mismatch=False, unsafe=False): |
| 788 | """Sets only the blob field still validating the existing dtype""" |
no test coverage detected