Skip to content

Resolve "Remove the Dim enum"

Wout De Nolf requested to merge 49-remove-the-dim-enum into main

Closes #49 (closed)

The Dim enum seems over-design which is missing the purpose of making sure the dimensions are a sequence of 0, 1 and 2.

If anything the dimensions could be a named tuple namedtuple('Point', 'x y channel') but I don't think its worth the serialization/deserialization. The tuple is only really used (not just passed) in transform_to_standard.

This MR also adds a test for transform_to_standard and a bug fix.

Also the standard dimensions (2, 1, 0) was specified everywhere as default. Now it's centralized.

Edited by Wout De Nolf

Merge request reports

Loading