We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 876b32a commit fc82a65Copy full SHA for fc82a65
pina/problem/abstract_problem.py
@@ -337,6 +337,10 @@ def collect_data(self):
337
# If the condition does not have a domain attribute, store
338
# the input and target points
339
keys = condition.__slots__
340
- values = [getattr(condition, name) for name in keys]
+ values = [
341
+ getattr(condition, name)
342
+ for name in keys
343
+ if getattr(condition, name) is not None
344
+ ]
345
data[condition_name] = dict(zip(keys, values))
346
self._collected_data = data
0 commit comments