Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are my annotations not saved? #109

Open
delta2golf opened this issue Dec 15, 2023 · 1 comment
Open

Why are my annotations not saved? #109

delta2golf opened this issue Dec 15, 2023 · 1 comment
Labels
question Further information is requested

Comments

@delta2golf
Copy link

Annotation is added, but it is not saved, is there any save function that I am missing?

qp = QuPathProject(project_path, 'r+')

image = qp.images[4]

square = Polygon([[0, 0], [0, 1000], [1000, 1000], [1000, 0]])

image.hierarchy.add_annotation(square)

image
@ap--
Copy link
Collaborator

ap-- commented Feb 22, 2024

Hello @delta2golf,

You need to call qp.save() or use QuPathProject in a context manager.

@ap-- ap-- added the question Further information is requested label Feb 22, 2024
@ap-- ap-- changed the title issue saving annotations Why are my annotations not saved? Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants