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

Fix apply agglomerate #5499

Merged
merged 6 commits into from May 27, 2021
Merged

Fix apply agglomerate #5499

merged 6 commits into from May 27, 2021

Conversation

youri-k
Copy link
Contributor

@youri-k youri-k commented May 19, 2021

  • fixes the reader range calculation

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • see slack

Issues:


@youri-k youri-k requested a review from fm3 May 19, 2021 16:35
@youri-k youri-k self-assigned this May 19, 2021
val initialValues = cache(initialBoundingBox)
var range = initialValues.idRange
var currDimensions = initialValues.dimensions

var x = initialBoundingBox._1
var y = initialBoundingBox._2
var z = initialBoundingBox._3 + currDimensions._3
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fm3 The error was caused by this premature advancement of z. Since we already read the range and currDimensions two lines above, this saved one iteration in the inner loop. However, this corrupted the values of nextBBinX and nextBBinY because they started at the wrong z value. This seems to never have been problem before, but it is conceptually wrong. Now we do one "unnecessary" inner iteration and cache lookup, but I think this is better than a complicated check whether we are in the first iteration. Let me know if you think the comments and this explanation are sufficient or if there still is something unclear.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks, I think I get this a bit better now. Also thanks for the comments! They are very helpful!
If you agree, I think it would be great to also have a short higher-level comment block explaining what the cumsum.json is and what wk uses it for. Maybe even also for the agglomerate file itself. Feel free to merge after that :)

@youri-k youri-k merged commit d21259e into master May 27, 2021
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.

Some Isosurface Requests fail
2 participants