说明设计停止条件和容器资源配置

This commit is contained in:
Lihatoo 2026-07-26 17:14:19 +08:00
parent 30cdd05914
commit eb7033c496
4 changed files with 85 additions and 26 deletions

View file

@ -371,7 +371,7 @@ def parse_design_options(payload):
"seed": int(raw.get("seed", 0)),
"wobble_mutations": bool(raw.get("wobble_mutations", False)),
"max_time_seconds": int(raw.get("max_time_seconds", 0)),
"fixed_target_policy": str(raw.get("fixed_target_policy", "exclude_from_optimization")).strip().lower(),
"fixed_target_policy": str(raw.get("fixed_target_policy", "include")).strip().lower(),
}
if options["trials"] < 1 or options["trials"] > 8:
raise ValueError("design trials must be between 1 and 8.")
@ -2245,7 +2245,7 @@ EXAMPLE_PAYLOAD = {
"seed": 0,
"wobble_mutations": False,
"max_time_seconds": 0,
"fixed_target_policy": "exclude_from_optimization",
"fixed_target_policy": "include",
},
"design_domains": [
{"name": "a", "sequence": "N10"},
@ -2307,7 +2307,7 @@ DESIGN_TUBE_EXAMPLE_PAYLOAD = {
"seed": 1,
"wobble_mutations": False,
"max_time_seconds": 0,
"fixed_target_policy": "exclude_from_optimization",
"fixed_target_policy": "include",
},
"design_domains": [
{"name": "a", "sequence": "N10"},