Skip to content

Commit 429adb4

Browse files
committed
it turns out that values set by validators are still considered "unset". So for updating purposes for libE_specs, we want to exclude fields that are still set to their defaults
1 parent 8d58e44 commit 429adb4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libensemble/ensemble.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ def libE_specs(self, new_specs):
327327

328328
# Cast new libE_specs temporarily to dict
329329
if not isinstance(new_specs, dict):
330-
new_specs = specs_dump(new_specs, by_alias=True, exclude_none=True, exclude_unset=True)
330+
new_specs = specs_dump(new_specs, by_alias=True, exclude_none=True, exclude_defaults=True)
331331

332332
# Unset "comms" if we already have a libE_specs that contains that field, that came from parse_args
333333
if new_specs.get("comms") and hasattr(self._libE_specs, "comms") and self.parsed:

0 commit comments

Comments
 (0)