Skip to content

Commit 6b1bcc2

Browse files
committed
correction
1 parent 763626c commit 6b1bcc2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

bids2openminds/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,9 @@ def create_behavioral_protocol(layout, collection):
9595

9696

9797
def techniques_openminds(suffix):
98+
# TODO "MRIPulseSequence" and "MRIWeighting" should be added as soon as openMINDS v4 becomes available.
9899
possible_types = ["Technique", "AnalysisTechnique", "StimulationApproach",
99-
"StimulationTechnique", "MRIPulseSequence", "MRIWeighting"]
100+
"StimulationTechnique"]
100101

101102
if suffix in mapping.MAP_2_TECHNIQUES:
102103
items_openminds = mapping.MAP_2_TECHNIQUES[suffix]

bids2openminds/report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def create_report(dataset, dataset_version, collection, dataset_description, inp
4949
behavioral_protocols_list = ""
5050
if dataset_version.behavioral_protocols is not None:
5151
for behavioral_protocol in dataset_version.behavioral_protocols:
52-
behavioral_protocols_list += f"{technique.behavioral_protocol}\n"
52+
behavioral_protocols_list += f"{behavioral_protocol.name}\n"
5353
else:
5454
behavioral_protocols_list = "No behavioral protocols were detected. Please follow the BIDS recommendations for task labels, as bids2openminds detects behavioral protocols based on task labels."
5555

0 commit comments

Comments
 (0)