Skip to content

Commit

Permalink
Add "PRERELEASE" prefix to description of features without urls
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Oct 11, 2024
1 parent aacb061 commit 3b31610
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions siibra/features/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,15 @@ def _get_subclasses(cls):
@property
def description(self):
"""Allows subclasses to overwrite the description with a function call."""
description = ""
if self._description:
return self._description
description = self._description
for ds in self.datasets:
if ds.description:
return ds.description
return ''
description = ds.description
if not any(len(ds.urls) > 0 for ds in self.datasets):
description = "[PRERELEASE] " + description
return description

@property
def LICENSE(self) -> str:
Expand Down

0 comments on commit 3b31610

Please sign in to comment.