fix: Add validation for size parameter in ABConfig

This commit is contained in:
Andreas Koepf (aider) 2025-02-11 23:39:02 +01:00 committed by Andreas Koepf
parent 06e2745ceb
commit c6ef97ec0b
2 changed files with 15 additions and 12 deletions

View file

@ -58,7 +58,8 @@ class ABConfig:
def validate(self) -> None:
"""Validate configuration parameters"""
assert self.length > 0, "difficulty must be greater than 0"
assert self.length > 0, "length must be greater than 0"
assert self.size > 0, "size must be greater than 0"
class ABDataset(ProceduralDataset):