Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelzwiers committed Sep 27, 2024
1 parent 94ad31c commit 94261cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bidscoin/bidseditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, bidsfolder: Path, input_bidsmap: BidsMap, template_bidsmap: B
self.setWindowIcon(QtGui.QIcon(str(BIDSCOIN_ICON)))
self.set_menu_statusbar()

if not input_bidsmap.filepath.is_file():
if not input_bidsmap.dataformats and not input_bidsmap.filepath.is_file():
filename, _ = QFileDialog.getOpenFileName(self, 'Open a bidsmap file', str(bidsfolder), 'YAML Files (*.yaml *.yml);;All Files (*)')
if filename:
input_bidsmap = BidsMap(Path(filename))
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def test_init(self, study_bidsmap):
# Test loading with a dummy argument
bidsmap = BidsMap(Path('dummy'))
assert len(bidsmap.dataformats) == 0
assert bidsmap.filepath.name == ''
assert bidsmap.filepath.name == 'dummy.yaml'

def test_check_templates(self):

Expand Down

0 comments on commit 94261cc

Please sign in to comment.