fix collect_data
This commit is contained in:
@@ -337,6 +337,10 @@ class AbstractProblem(metaclass=ABCMeta):
|
|||||||
# If the condition does not have a domain attribute, store
|
# If the condition does not have a domain attribute, store
|
||||||
# the input and target points
|
# the input and target points
|
||||||
keys = condition.__slots__
|
keys = condition.__slots__
|
||||||
values = [getattr(condition, name) for name in keys]
|
values = [
|
||||||
|
getattr(condition, name)
|
||||||
|
for name in keys
|
||||||
|
if getattr(condition, name) is not None
|
||||||
|
]
|
||||||
data[condition_name] = dict(zip(keys, values))
|
data[condition_name] = dict(zip(keys, values))
|
||||||
self._collected_data = data
|
self._collected_data = data
|
||||||
|
|||||||
Reference in New Issue
Block a user