Skip to content

Commit d92c727

Browse files
committed
Minor tweaks
1 parent 740c00a commit d92c727

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bidscoin/bids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ def save(self, filename: Path=None):
10851085
filename.parent.mkdir(parents=True, exist_ok=True)
10861086
LOGGER.info(f"Saving bidsmap in: {filename}")
10871087
with filename.open('w') as stream:
1088-
yaml.dump(self._data, stream, NoAliasDumper, sort_keys=False)
1088+
yaml.dump(self._data, stream, NoAliasDumper, sort_keys=False, allow_unicode=True)
10891089

10901090
def validate(self, level: int=1) -> bool:
10911091
"""

bidscoin/bidseditor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ def save_options(self):
937937
bidsmap.options = self.output_bidsmap.options
938938
bidsmap.plugins = self.output_bidsmap.plugins
939939
with open(yamlfile, 'w') as stream:
940-
bids.yaml.safe_dump(bidsmap, stream, sort_keys=False)
940+
bids.yaml.safe_dump(bidsmap, stream, sort_keys=False, allow_unicode=True)
941941

942942
def sample_doubleclicked(self, item):
943943
"""When source file is double-clicked in the samples_table, show the inspect- or edit-window"""

docs/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
### Changed
1414
- The plugin programming interface is now implemented with an abstract base class
1515
- Drop saving data in the derivatives folder (i.e. this was not required by BIDS after all)
16-
- Comments in the study bidsmap are removed due to recurrent issues with invalid (ruamel) yaml-files
16+
- Comments in the study bidsmap are now removed due to recurrent issues with invalid (ruamel) yaml-files
1717
- `anon` is now a bidscoin option instead of a plugin option
18-
18+
1919
## [4.4.0] - 2024-10-02
2020

2121
### Added

0 commit comments

Comments
 (0)