Skip to content

Commit

Permalink
urls -> doi_or_url and returns a list of string
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Feb 27, 2024
1 parent 68f5fdc commit 8535656
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions siibra/core/concept.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 4 additions & 3 deletions siibra/features/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8535656

Please sign in to comment.