data objects & domain checks
Initialization with minimal requirements fails.
Errors when no domain or a list as domain passed in DataInt
and DataReal
.
To reproduce:
DataInt(name = 'myint')
..\src\aaad\data_objects\data_types.py", line 571, in __init__
domain.type = self.type
AttributeError: 'NoneType' object has no attribute 'type'
DataInt(name = 'varname',domain = [0,10])
...\src\aaad\data_objects\data_types.py", line 571, in __init__
domain.type = self.type
AttributeError: 'NoneType' object has no attribute 'type'
DataReal(name = 'varname')
...\src\aaad\data_objects\data_types.py", line 345, in __init__
domain.min_value = float(domain.min_value)
AttributeError: 'NoneType' object has no attribute 'min_value'
DataReal(name = 'varname',domain = [0,1])
...\src\aaad\data_objects\data_types.py", line 345, in __init__
domain.min_value = float(domain.min_value)
AttributeError: 'NoneType' object has no attribute 'min_value'
P.S. Suggest to check all DataObjects initializations.
Edited by Alessandro Maissen