Domain update fails for constant values
The domain updates, or precisely _check_range
method, throws an error in https://gitlab.renkulab.io/ai-augmented-design/aixd/-/blob/master/src/aixd/data/domain.py#L366
when the values in a given (typically performance attribute) variable are the same.
File ~\CODE\aixd\src\aixd\data\domain.py:366, in Interval._check_range(self, min_value, max_value)
364 """Checks if the given range is valid. Raises an error if not."""
365 if min_value >= max_value:
--> 366 raise ValueError("The min value must be smaller than the max value")
368 if self.type == "integer":
369 min_value, max_value = int(min_value), int(max_value)
ValueError: The min value must be smaller than the max value
Seems to point to thw way min-max is calculated or updated in _check_domain_consistency
:
https://gitlab.renkulab.io/ai-augmented-design/aixd/-/blob/master/src/aixd/data/domain.py#L463-481
Edited by Ania Apolinarska