remove redundant assert in ChainSumConfig.validate()

This commit is contained in:
Andreas Koepf 2025-02-19 09:42:32 +01:00
parent 9fb231dde9
commit e9a2097a71

View file

@ -27,10 +27,6 @@ class ChainSumConfig:
assert self.min_digits > 0, "min_digits must be positive"
assert self.max_digits >= self.min_digits, "max_digits must be >= min_digits"
# Validate digit ranges make sense
if self.min_digits > 1:
assert 10 ** (self.min_digits - 1) >= 1, "min_digits would result in invalid number range"
class ChainSumDataset(ProceduralDataset):
"""Generates simple arithmetic tasks using only + and - operators"""