webknossos-libs icon indicating copy to clipboard operation
webknossos-libs copied to clipboard

Clean up 32 constants

Open philippotto opened this issue 5 years ago • 0 comments

We have some magic numbers in the code base, but the problematic one is 32. In several places, it's hardcoded which is confusing and often times problematic, since the actual wkw header can contain different values here.

Also, one should carefully distinguish between the file_len and the block_len (how many blocks are in one cube? and how many voxels are in a block?). This is the naming wkw uses, but we can also use another terminology. However, it should be consistent in the code base.

philippotto avatar Jul 17 '20 09:07 philippotto