You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO to be activated after merging the FileBundle pull request
25
21
# case "https://openminds.ebrains.eu/core/FileBundle":
26
22
#
27
23
# file_bundle_number += 1
28
24
29
-
print("This dataset contains following items:")
30
-
print(f"Number of subjects : {subject_number}")
31
-
print(f"Number of files : {files_number}")
32
-
# print(f"Number of file bundles : {file_bundle_number}")
25
+
report=f"""Conversion Report
26
+
=================
27
+
28
+
Dataset title : {dataset.full_name}
33
29
30
+
The following elements were converted:
31
+
--------------------------------------
32
+
+ number of converted subjects: {subject_number}
33
+
+ number of state for each subject: XX-YY
34
+
+ number of files: {files_number}
35
+
+ number of files: {file_bundle_number}
36
+
37
+
The following elements were not converted:
38
+
------------------------------------------
39
+
"""
34
40
if"GeneratedBy"indataset_description:
35
-
print("This dataset is derivative. The derivative section of BIDS specification is not final yet, so conversion is not complete. The generated openMINDS file should be treated carefully.")
41
+
report=report+"\n"+"+ Dataset is derivative, derivative data are ignored for now\n"
36
42
37
43
derivatives_path=os.path.join(
38
44
input_path, "derivatives")
39
45
ifos.path.isdir(derivatives_path):
40
-
print("This dataset contains derivative. The derivative section of BIDS specification is not final yet, so conversion is not complete. The generated openMINDS file should be treated carefully.")
46
+
report=report+"\n"+"+ Dataset contains derivative, derivative data are ignored for now\n"
0 commit comments