Skip to content

Commit 748711d

Browse files
authored
Update report.py
1 parent 54a4a11 commit 748711d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bids2openminds/report.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ def create_report(dataset, dataset_version, collection, dataset_description, inp
99
behavioral_protocols_numbers = 0
1010

1111
for item in collection:
12-
if item.type_ == "https://openminds.ebrains.eu/core/Subject":
12+
if item.type_.endswith("Subject"):
1313

1414
subject_number += 1
1515
subject_state_numbers.append(len(item.studied_states))
1616

17-
if item.type_ == "https://openminds.ebrains.eu/core/File":
17+
if item.type_.endswith("File"):
1818

1919
files_number += 1
2020

21-
if item.type_ == "https://openminds.ebrains.eu/core/FileBundle":
21+
if item.type_.endswith("FileBundle"):
2222

2323
file_bundle_number += 1
2424

25-
if item.type_ == "https://openminds.ebrains.eu/core/BehavioralProtocol":
25+
if item.type_.endswith("BehavioralProtocol"):
2626

2727
behavioral_protocols_numbers += 1
2828

0 commit comments

Comments
 (0)