Skip to content

Commit 0c972d3

Browse files
committed
this validator isn't needed after performing the switch
1 parent aba3f6e commit 0c972d3

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

libensemble/specs.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -274,15 +274,6 @@ class GenSpecs(BaseModel):
274274
running. Only used if using the ``give_sim_work_first`` allocation function.
275275
"""
276276

277-
@model_validator(mode="before")
278-
def set_gen_specs_fields_from_user(cls, values):
279-
"""Set fields from user dict for backward compatibility."""
280-
# init_sample_size is now initial_batch_size
281-
if "init_sample_size" in values and "initial_batch_size" not in values:
282-
values["initial_batch_size"] = values.pop("init_sample_size")
283-
284-
return values
285-
286277
@model_validator(mode="after")
287278
def set_fields_from_vocs(self):
288279
"""Set persis_in and outputs from VOCS if vocs is provided and fields are not set."""

0 commit comments

Comments
 (0)