Skip to content

Commit

Permalink
definitions.json file encoding bugfix
Browse files Browse the repository at this point in the history
Specified UTF-8 file encoding when reading 'definitions.json'
  • Loading branch information
DC-3T authored and wtclarke committed Apr 4, 2024
1 parent 5d51565 commit df359da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nifti_mrs/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# See https://setuptools.pypa.io/en/latest/userguide/datafiles.html#accessing-data-files-at-runtime
from importlib_resources import files

data_text = files('nifti_mrs.standard').joinpath('definitions.json').read_text()
data_text = files('nifti_mrs.standard').joinpath('definitions.json').read_text(encoding='utf-8')
json_def = json.loads(data_text)

# Carry out translation
Expand Down

0 comments on commit df359da

Please sign in to comment.