Skip to content

Commit

Permalink
minor: match userwarning in tst, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Nov 6, 2020
1 parent b6379fe commit 54da125
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pybv/io.py
Expand Up @@ -240,7 +240,7 @@ def _optimize_channel_unit(resolution, unit):
else:
raise ValueError(
f'Encountered unsupported unit: {unit}'
'\nUse either "None" for `unit`, or one of the units: '
'\nUse either "None" for `unit`, or one of the following: '
f'{SUPPORTED_UNITS}'
)

Expand Down
2 changes: 1 addition & 1 deletion pybv/tests/test_bv_writer.py
Expand Up @@ -131,7 +131,7 @@ def test_write_read_cycle(meas_date):

# write and read data to BV format
# ensure that greek small letter mu gets converted to micro sign
with pytest.warns(UserWarning):
with pytest.warns(UserWarning, match="Encountered small greek letter mu"):
write_brainvision(data, sfreq, ch_names, fname, tmpdir, events=events,
resolution=np.power(10., -np.arange(10)),
unit='μV',
Expand Down

0 comments on commit 54da125

Please sign in to comment.