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

In dataset upload, allow un-sorted anisotropic mags in properties.json #6167

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Apr 26, 2022

In datasource validation there is a check asserting that the mags are consistent (meaning that all dimensions increase monotonically, you cannot have 1-1-2 AND 2-2-1). This check previously relied on the mags also being IN ORDER in the properties.json. This PR removes this latter requirement (I think it was there only accidentally). We double-checked that there are no important code paths that rely on this order.

Steps to test:

  • Edit a datasource-properties.json from the dataset settings page, try saving it (disable frontend validation?)
  • inconsistent mags should still be forbidden but any ordering should be fine

@fm3 fm3 self-assigned this Apr 26, 2022
@fm3 fm3 requested a review from jstriebel April 26, 2022 09:22
Copy link
Contributor

@jstriebel jstriebel left a comment

Choose a reason for hiding this comment

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

👍

@fm3 fm3 merged commit 6bbafb6 into master Apr 26, 2022
@fm3 fm3 deleted the relax-mag-sorting-check branch April 26, 2022 11:20
hotzenklotz added a commit that referenced this pull request Apr 26, 2022
…r_access_list

* 'master' of github.com:scalableminds/webknossos:
  In dataset upload, allow un-sorted anisotropic mags in properties.json (#6167)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants