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

Add extra patch to differ stack that tracks difference between base_state and Neuroglancer initial state #321

Open
hannah-martinez opened this issue Aug 1, 2022 · 0 comments

Comments

@hannah-martinez
Copy link
Member

When Neuroglancer loads a base_state for a task, it rearranges the JSON attributes and explicitly adds attributes that were pre-defined implicitly. Example:

image

This causes a discontinuity between the earliest state that the differ stacks track and the base_state which has been stored in the task metadata. Even though the two states are technically identical, the patch application fails.

The library that Neuroglancer uses to create patches is here -> https://github.com/google/diff-match-patch

For this task, resolve this discontinuity by generating an extra patch at the head of the differ stack which tracks the difference between the base_state and Neuroglancer's earliest recorded state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant