Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libensemble/gen_classes/aposmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class APOSMM(PersistentGenInterfacer):
Seed for the random number generator.
"""

returns_id = True

def _validate_vocs(self, vocs: VOCS):
if len(vocs.constraints):
warnings.warn("APOSMM does not support constraints in VOCS. Ignoring.")
Expand Down
3 changes: 2 additions & 1 deletion libensemble/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def __init__(
): # e.g. {"f": ["f"]} doesn't need mapping
self.variables_mapping["f"] = self._get_unmapped_keys(self.VOCS.objectives, "f")
# Map sim_id to _id
self.variables_mapping["sim_id"] = ["_id"]
if self.returns_id:
self.variables_mapping["sim_id"] = ["_id"]

if len(kwargs) > 0: # so user can specify gen-specific parameters as kwargs to constructor
if not self.gen_specs.get("user"):
Expand Down
Loading