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

Adds labels map argument when loading annotations #489

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Conversation

rwood-97
Copy link
Collaborator

Summary

At the moment, when you load annotations, the AnnotationsLoader will auto-generate a labels map. This is useful for first round of annotations as you wont have one defined yet.
However, if you are doing a second round of annotations, you might want to use the same labels map as before to make sure the numbering is consistent. This option is implemented in this PR.

Describe your changes

This PR:

  • Adds labels map argument when calling load() method of annotations loader.
  • Forces sorting of the labels map
  • Implements method for appending new values to labels map.

Checklist before assigning a reviewer (update as needed)

  • Self-review code
  • Ensure submission passes current tests
  • Add tests
  • Update relevant docs

Reviewer checklist

Please add anything you want reviewers to specifically focus/comment on.

  • Everything looks ok?

@rwood-97 rwood-97 merged commit 6eec831 into main Aug 12, 2024
8 checks passed
@rwood-97 rwood-97 deleted the labels_map_fix branch August 12, 2024 14:00
@rwood-97 rwood-97 mentioned this pull request Aug 12, 2024
4 tasks
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.

1 participant