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

Adapt Agglomerate Mapping Max Mag to correct value #5222

Merged
merged 3 commits into from
Mar 1, 2021
Merged

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Feb 27, 2021

#4706 increased the threshold from 8 to 16, so message should also appear only starting at 16.

Long-term it would be nice to have a single place for this value, but that is not trivial since the datastore config is not exposed to the frontend. We could instead add a flag to the data requests when this limit was exceeded or something. But for now I think this is ok.

  • Ready for review

@fm3 fm3 added the frontend label Feb 27, 2021
@fm3 fm3 requested a review from philippotto February 27, 2021 11:19
@fm3 fm3 self-assigned this Feb 27, 2021
@philippotto
Copy link
Member

Long-term it would be nice to have a single place for this value, but that is not trivial since the datastore config is not exposed to the frontend.

Maybe it would already help a bit to add a comment to each of the constant definitions mentioning the other spot on which this depends? The other threshold also looks like it should be extracted to a constant (at least at the module level): https://github.com/scalableminds/webknossos/pull/4706/files#diff-279361122384dfd2a93e9f0ddaa2a847254e0d925ce220d63762f221c07d261cR58

@fm3
Copy link
Member Author

fm3 commented Mar 1, 2021

Yes, god point :) I added comments, could you have another look?

Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks for fixing this 🚀

@fm3 fm3 enabled auto-merge (squash) March 1, 2021 10:22
@fm3 fm3 merged commit 56b8863 into master Mar 1, 2021
@fm3 fm3 deleted the agglomerate-max-mag branch March 1, 2021 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants