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: