Skip to content

Commit

Permalink
FIX: Justify true zero
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 30, 2025
1 parent 73cf0e8 commit b7ef7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mne/export/_edf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ def _export_raw(fname, raw, physical_range, add_ch_type, *, fmt="edf"):
)

if fmt == "edf":
digital_min, digital_max = -32768, 32767 # 2 ** 15 - 1
digital_min, digital_max = -32767, 32767 # 2 ** 15 - 1, symmetric (true zero)
else:
digital_min, digital_max = -8388608, 8388607 # 2 ** 23 - 1
digital_min, digital_max = -8388607, 8388607 # 2 ** 23 - 1
fmt_kwargs = dict()
if check_version("edfio", "0.4.6"):
fmt_kwargs["fmt"] = fmt
Expand Down

0 comments on commit b7ef7b7

Please sign in to comment.