Skip to content

Commit

Permalink
[DATALAD RUNCMD] Do interactive fixing of some ambigous typos
Browse files Browse the repository at this point in the history
=== 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 ^^^
  • Loading branch information
yarikoptic authored and Karl5766 committed Jul 26, 2024
1 parent dc78174 commit 797a0ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snakebids/io/printing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion snakebids/tests/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 797a0ec

Please sign in to comment.