sea.py: fix status datatype

sea status is a string (not a tuple) and needs therefore
special treatment.
interestingly this bug did not yet appear ...
This commit is contained in:
2022-10-04 15:11:57 +02:00
parent 12cb0cdade
commit 498dbd4179

View File

@ -533,11 +533,14 @@ class SeaModule(Module):
if key == 'target':
kwds['readonly'] = False
prev = cls.accessibles[key]
if key == 'status':
# special case: status from sea is a string, not the status tuple
pobj = prev.copy()
else:
pobj = Parameter(**kwds)
merged_properties = prev.propertyValues.copy()
pobj.updateProperties(merged_properties)
pobj.merge(merged_properties)
datatype = kwds.get('datatype', cls.accessibles[key].datatype)
else:
pobj = Parameter(**kwds)
datatype = pobj.datatype