From: François Fleuret Date: Sun, 18 Feb 2024 22:10:47 +0000 (+0100) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=b35745d09b33aed20670ecb96726f89206487a24;p=culture.git Update. --- diff --git a/tasks.py b/tasks.py index 181ac44..78910a0 100755 --- a/tasks.py +++ b/tasks.py @@ -132,7 +132,7 @@ class TaskFromFile(Task): sequence = f.readline().strip() pred_mask = f.readline().strip() assert len(sequence) == len(pred_mask) - assert set(pred_mask) == {"0", "1", "2"}, f"{set(pred_mask)}" + assert set(pred_mask).issubset({"0", "1", "2"}), f"{set(pred_mask)}" pairs.append((sequence, pred_mask)) symbols = ["#"] + list(set("".join([x[0] for x in pairs])) - set(["#"]))