From df9a644e249227a4f49376cd8672cc1da36a206e Mon Sep 17 00:00:00 2001 From: Sofie Van Landeghem Date: Sat, 22 Nov 2025 22:48:55 +0100 Subject: [PATCH] make code bit more succinct --- tasks/common.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/common.py b/tasks/common.py index 540ff6b..e202508 100644 --- a/tasks/common.py +++ b/tasks/common.py @@ -46,9 +46,7 @@ class Task: f"Using {num_ex} examples instead." ) self.stop = num_ex - stop = self.stop - else: - stop = self.num_examples() + stop = self.num_examples() if self.stop is None else self.stop step = self.step span = stop - start num = (span + step - 1) // step # ceil_div(span, step)