Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In #1122, we added two new attributes in the
Skeleton
class calleddescription
andpreview_image
. Consequently, while you are able to open older files on v1.3.0a0, files from this version are unable to be opened on previous versions - which is not a problem if working on a single SLEAP version. However, this could easily become extremely annoying if working on multiple workstations which all have different versions of SLEAP installed - not to mention possibly breaking data format backwards compatibility.The fields we added are currently not used except for the already provided template skeletons. Hence, this PR selectively writes the new fields depending on whether the skeleton is a template (manually specified via API - only by those looking to add to our collection of template skeletons). This should not break compatibility since template skeletons are only provided as early as 1.3.0a0.
Types of changes
Does this address any currently open issues?
Outside contributors checklist
Thank you for contributing to SLEAP!
❤️