From 178d06023577893f0f4b0ce76e5657884d29fec1 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 17 Jul 2024 08:41:20 -1000 Subject: [PATCH] [DATALAD RUNCMD] Do interactive fixing of some ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 2", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- snakebids/io/printing.py | 2 +- snakebids/tests/test_datasets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snakebids/io/printing.py b/snakebids/io/printing.py index 25b77f4b..addadf1d 100644 --- a/snakebids/io/printing.py +++ b/snakebids/io/printing.py @@ -106,7 +106,7 @@ def new_col(val: str): def _find_elision(widths: list[int], excluded: slice, overflow: int) -> slice: - # Add 4 to overflow to account for elipses + # Add 4 to overflow to account for ellipses if max(sum(widths[excluded]) - 4, 0) >= overflow: return excluded span = excluded.stop - excluded.start diff --git a/snakebids/tests/test_datasets.py b/snakebids/tests/test_datasets.py index 2bf2d28a..59c9b5f2 100644 --- a/snakebids/tests/test_datasets.py +++ b/snakebids/tests/test_datasets.py @@ -355,7 +355,7 @@ class TestBidsComponentExpand: """ `extension` is generally excluded from the generated components because its wildcard is immediately adjacent to the previous wildcard (e.g. - sub-{subject}_{suffix}{extenions}), making it impossible to correctly parse using + sub-{subject}_{suffix}{extension}), making it impossible to correctly parse using `glob_wildcards`. Its absence does not affect the spirit of the tests. We also exclude extra_entities from the generated Components for the same reason: