Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions vesuvius/src/vesuvius/data/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,9 @@ def download_inklabel(self, save_path=None) -> None:
# Extract parent URL and segment ID
parent_url = os.path.dirname(base_url)
segment_id_str = os.path.basename(base_url)
# Remove .zarr extension if present (fixes URL construction bug)
if segment_id_str.endswith('.zarr'):
segment_id_str = segment_id_str[:-5]
# Construct ink label path
inklabel_filename = f"{segment_id_str}_inklabels.png"
inklabel_url = os.path.join(parent_url, inklabel_filename)
Expand Down