The binslab() function in mdx2.bin_image_series has a convoluted logic and references to private methods from a different module, the result of previous refactoring. We ought to clean this up by cleanly separating the numerical code, which can then be reused elsewhere and/or compiled to improve performance. After doing this, the remaining cross-module dependencies can be addressed by exposing a public API, or adding features to the mdx2.data module.
Originally posted by @spmeisburger in #45 (comment)
The binslab() function in mdx2.bin_image_series has a convoluted logic and references to private methods from a different module, the result of previous refactoring. We ought to clean this up by cleanly separating the numerical code, which can then be reused elsewhere and/or compiled to improve performance. After doing this, the remaining cross-module dependencies can be addressed by exposing a public API, or adding features to the mdx2.data module.
Originally posted by @spmeisburger in #45 (comment)