Skip to content

Commit

Permalink
FIX: Better
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 10, 2024
1 parent 0806a1f commit 68b13f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mne/_fiff/open.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def _show_tree(
)
else:
postpend += " ... type=" + str(type(tag.data))
postpend = ">" * 20 + "BAD" if not good else postpend
postpend = ">" * 20 + f"BAD @{pos}" if not good else postpend
matrix_info = _matrix_info(tag)
if matrix_info is not None:
_, type_, _, _ = matrix_info
Expand Down
2 changes: 1 addition & 1 deletion mne/commands/tests/test_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def test_show_fiff(tmp_path):
with pytest.warns(RuntimeWarning, match="Invalid tag"):
lines = show_fiff(str(bad_fname), output=list)
last_line = lines[-1]
assert ">>>>BAD" in last_line
assert last_line.endswith(">>>>BAD @9015")
assert "302 = FIFF_EPOCH (734412b >f4)" in last_line


Expand Down

0 comments on commit 68b13f3

Please sign in to comment.