Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions bids2openminds/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def create_report(dataset, dataset_version, collection, dataset_description, inp
file_bundle_number = 0
files_number = 0
behavioral_protocols_numbers = 0
content_type_list = ""

for item in collection:
if item.type_.endswith("Subject"):
Expand All @@ -26,6 +27,10 @@ def create_report(dataset, dataset_version, collection, dataset_description, inp

behavioral_protocols_numbers += 1

if item.type_.endswith("ContentType"):

content_type_list += f"{item.name}\n"

experimental_approaches_list = ""
if dataset_version.experimental_approaches is not None:
for approache in dataset_version.experimental_approaches:
Expand Down Expand Up @@ -73,6 +78,11 @@ def create_report(dataset, dataset_version, collection, dataset_description, inp
------------------------------------------
{data_types_list}

Detected content types:
------------------------------------------
{content_type_list}


The following elements were converted:
------------------------------------------
+ number of authors : {len(dataset_version.authors or [])}
Expand Down
2 changes: 1 addition & 1 deletion bids2openminds/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ def detect_nifti_version(file_name, extension, file_size):
elif sizeof_hdr == nii2_sizeof_hdr:
return ContentType.by_name("application/vnd.nifti.2")

return None
return ContentType.by_name("application/vnd.nifti.1")
Loading