Skip to content

Commit

Permalink
Remove the use if str.removeprefix for python <=3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmetNSimsek committed Dec 18, 2024
1 parent 6b02c59 commit 6efe77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion siibra/volumes/parcellationmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(
@property
def key(self):
_id = self.id
return create_key(_id.removeprefix("siibra-map-v0.0.1"))
return create_key(_id[len("siibra-map-v0.0.1"):])

@property
def species(self) -> Species:
Expand Down

0 comments on commit 6efe77c

Please sign in to comment.