Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions mne/io/snirf/_snirf.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,18 +441,18 @@ def _get_timeunit_scaling(time_unit):
return scalings[time_unit]
else:
raise RuntimeError(f'The time unit {time_unit} is not supported by '
'MNE. Please report this error as a GitHub'
'MNE. Please report this error as a GitHub '
'issue to inform the developers.')


def _get_lengthunit_scaling(length_unit):
"""MNE expects distance in m, return required scaling."""
scalings = {'cm': 100, 'mm': 1000}
scalings = {'m': 1, 'cm': 100, 'mm': 1000}
if length_unit in scalings:
return scalings[length_unit]
else:
raise RuntimeError(f'The time unit {length_unit} is not supported by '
'MNE. Please report this error as a GitHub'
raise RuntimeError(f'The length unit {length_unit} is not supported '
'by MNE. Please report this error as a GitHub '
'issue to inform the developers.')


Expand Down