Skip to content

Commit e2950fa

Browse files
authored
Merge pull request #78 from apdavison/pin-v3
Use openMINDS version 3, rather than "latest"
2 parents a6214fc + 748711d commit e2950fa

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

bids2openminds/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import pandas as pd
77
from nameparser import HumanName
88

9-
import openminds.latest.core as omcore
10-
import openminds.latest.controlled_terms as controlled_terms
9+
import openminds.v3.core as omcore
10+
import openminds.v3.controlled_terms as controlled_terms
1111
from openminds import IRI
1212

1313
from .utility import table_filter, pd_table_value, file_hash, file_storage_size, detect_nifti_version

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

bids2openminds/utility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
import pandas as pd
99

10-
import openminds.latest.controlled_terms as controlled_terms
11-
from openminds.latest.core import Hash, QuantitativeValue, ContentType
12-
from openminds.latest.controlled_terms import UnitOfMeasurement
10+
import openminds.v3.controlled_terms as controlled_terms
11+
from openminds.v3.core import Hash, QuantitativeValue, ContentType
12+
from openminds.v3.controlled_terms import UnitOfMeasurement
1313

1414

1515
def read_json(file_path: str) -> dict:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "bids2openminds"
3-
version = "0.1.0"
3+
version = "0.1.1.dev.0"
44
dependencies = [
55
"bids-validator == 1.14.6" ,
66
"bids",

test/test_person.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# test for create_openminds_person function in the main
22
import pytest
33
from bids2openminds.main import create_openminds_person
4-
import openminds.latest.core as omcore
4+
import openminds.v3.core as omcore
55

66
# Test data: (full_name, given_name, family_name)
77
example_names = [("John Ronald Reuel Tolkien", "John Ronald Reuel", "Tolkien"),

0 commit comments

Comments
 (0)