Skip to content

fix: read-only error for derive_label/add_table on a read-only container - #285

Merged
lorenzocerrone merged 2 commits into
mainfrom
fix/derive-label-read-only
Nov 12, 2026
Merged

lorenzocerrone merged 2 commits into
mainfrom
fix/derive-label-read-only

Conversation

@lorenzocerrone

Copy link
Copy Markdown
Collaborator

Fixes #279.

derive_label and add_table on a container opened with mode="r" that has no labels/tables group raised NgioValidationError("No labels found in the image."): the group could not be created, and the error said it did not exist. Both now raise NgioValueError("The group is read only. Cannot derive a label.") / ... add a table. first, matching the other write paths. Same check on OmeZarrPlate.add_table.

The read path is unchanged: list_labels returns [] and labels_container still raises "No labels found" on a read-only container.

Checklist before merging

  • I added an appropriate entry to CHANGELOG.md

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@lorenzocerrone
lorenzocerrone merged commit 5a31e45 into main Nov 12, 2026
11 checks passed
@lorenzocerrone
lorenzocerrone deleted the fix/derive-label-read-only branch November 12, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

derive_label on a read-only container raises "No labels found" instead of a read-only error

1 participant