Skip to content

Commit

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

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

0 comments on commit 028e222

Please sign in to comment.