Skip to content

Commit 288308f

Browse files
Update to ancpbids
1 parent 593ab2c commit 288308f

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

bids2openminds/converter.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
("CHANGES", None, None),
2222
("README", None, None),
2323
("README.md", None, None),
24+
("CITATION", "CITATION", None),
25+
("CITATION.cff", "CITATION", None),
2426
]
2527

2628

bids2openminds/main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,7 @@ def create_dataset_version(bids_layout, citation, dataset_description, layout_df
225225
if 'doi' in citation:
226226
digital_identifier = omcore.DOI(identifier=citation['doi'])
227227
if 'license' in citation:
228-
for lic in omcore.License.instances():
229-
if citation['license'] == getattr(lic, "short_name", None):
230-
license = lic
231-
break
228+
license = omcore.License.by_name(citation['license'])
232229
if 'title' in citation:
233230
name = citation['title']
234231
if 'version' in citation:

test/test_dataset_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pandas as pd
44
from openminds import Collection
5-
import openminds.v3.core as omcore
5+
import openminds.v4.core as omcore
66

77
from bids2openminds.main import create_dataset_version
88

0 commit comments

Comments
 (0)