fix collect_data

This commit is contained in:
FilippoOlivo
2025-11-18 17:08:22 +01:00
parent d4fa3ea9df
commit b00e65d872

View File

@@ -337,6 +337,10 @@ class AbstractProblem(metaclass=ABCMeta):
# If the condition does not have a domain attribute, store
# the input and target points
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))
self._collected_data = data