(self, data_type: str, new_normalizer: Optional[NP_ARRAY_MAPPING])
| 327 | } |
| 328 | |
| 329 | def set_normalizer(self, data_type: str, new_normalizer: Optional[NP_ARRAY_MAPPING]): |
| 330 | if new_normalizer is None: |
| 331 | new_normalizer = identity |
| 332 | if data_type in constants.INPUT_TYPES: |
| 333 | self._input_normalizer[data_type] = new_normalizer |
| 334 | else: |
| 335 | log.info(f" Setting output normalizer, after calling set_normalizer with data_type={data_type}") |
| 336 | self._output_normalizer = new_normalizer |
| 337 | |
| 338 | def set_input_normalizers(self, new_normalizer: Optional[NP_ARRAY_MAPPING]): |
| 339 | for data_type in constants.INPUT_TYPES: |
no outgoing calls
no test coverage detected