scalableminds / webknossos-connect

Connect webKnossos with existing datasets (BossDB, Neuroglancer Precomputed)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Fix zoomstep wkw #113

Closed normanrz closed 3 years ago

normanrz commented 3 years ago

Fixes the zoomStep handling in the wkw backend. Previously, it would use the zoomStep as an index for the available mags. That works iff there are mags in ordinary order, i.e. 1, 2, 4, ... . This PR implements it properly: 2**zoomStep = max(mag.x, mag.y, mag.z)