diff --git a/examples/01_atlases_and_parcellations/001_accessing_parcellations.py b/examples/01_atlases_and_parcellations/001_accessing_parcellations.py index 3157ce999..198f5ae0a 100644 --- a/examples/01_atlases_and_parcellations/001_accessing_parcellations.py +++ b/examples/01_atlases_and_parcellations/001_accessing_parcellations.py @@ -43,7 +43,7 @@ # %% # Also, you can display the doi/url of the related dataset/publication using -print(julich_brain.doi_or_url) +print(julich_brain.urls) # %% # Typically however, we are only interested in the parcellations supported by diff --git a/siibra/core/concept.py b/siibra/core/concept.py index 992ecc1f3..9e19eac32 100644 --- a/siibra/core/concept.py +++ b/siibra/core/concept.py @@ -125,12 +125,13 @@ def LICENSE(self) -> str: return '\n'.join(licenses) @property - def doi_or_url(self) -> str: - return '\n'.join([ + def urls(self) -> List[str]: + """The list of URLs (including DOIs) associated with this atlas concept.""" + return [ url.get("url") for ds in self.datasets for url in ds.urls - ]) + ] @property def authors(self): diff --git a/siibra/features/feature.py b/siibra/features/feature.py index aa5db9ccf..aa98f4fd4 100644 --- a/siibra/features/feature.py +++ b/siibra/features/feature.py @@ -175,12 +175,13 @@ def LICENSE(self) -> str: return '\n'.join(licenses) @property - def doi_or_url(self) -> str: - return '\n'.join([ + def urls(self) -> List[str]: + """The list of URLs (including DOIs) associated with this feature.""" + return [ url.get("url") for ds in self.datasets for url in ds.urls - ]) + ] @property def authors(self):