Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Jan 15, 2025
1 parent 740c00a commit d92c727
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bidscoin/bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ def save(self, filename: Path=None):
filename.parent.mkdir(parents=True, exist_ok=True)
LOGGER.info(f"Saving bidsmap in: {filename}")
with filename.open('w') as stream:
yaml.dump(self._data, stream, NoAliasDumper, sort_keys=False)
yaml.dump(self._data, stream, NoAliasDumper, sort_keys=False, allow_unicode=True)

def validate(self, level: int=1) -> bool:
"""
Expand Down
2 changes: 1 addition & 1 deletion bidscoin/bidseditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ def save_options(self):
bidsmap.options = self.output_bidsmap.options
bidsmap.plugins = self.output_bidsmap.plugins
with open(yamlfile, 'w') as stream:
bids.yaml.safe_dump(bidsmap, stream, sort_keys=False)
bids.yaml.safe_dump(bidsmap, stream, sort_keys=False, allow_unicode=True)

def sample_doubleclicked(self, item):
"""When source file is double-clicked in the samples_table, show the inspect- or edit-window"""
Expand Down
4 changes: 2 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
### Changed
- The plugin programming interface is now implemented with an abstract base class
- Drop saving data in the derivatives folder (i.e. this was not required by BIDS after all)
- Comments in the study bidsmap are removed due to recurrent issues with invalid (ruamel) yaml-files
- Comments in the study bidsmap are now removed due to recurrent issues with invalid (ruamel) yaml-files
- `anon` is now a bidscoin option instead of a plugin option

## [4.4.0] - 2024-10-02

### Added
Expand Down

0 comments on commit d92c727

Please sign in to comment.