Skip to content

Commit

Permalink
Deal with downloaded atlases with _v in the name (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson authored Oct 30, 2024
1 parent 329077d commit 6c93155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainglobe_atlasapi/list_atlases.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_downloaded_atlases():
brainglobe_dir = config.get_brainglobe_dir()

return [
f.name.split("_v")[0]
f.name.rsplit("_v", 1)[0]
for f in brainglobe_dir.glob("*_*_*_v*")
if f.is_dir()
]
Expand Down

0 comments on commit 6c93155

Please sign in to comment.