magmap.tests.test_chunking module#

Unit testing for the chunking module

class magmap.tests.test_chunking.TestChunking(methodName='runTest')[source]#

Bases: TestCase

static stack_split_remerge(roi, max_pixels, overlap)[source]#

Split and remerge a stack.

Parameters:
  • roi (ndarray) – Region of interest.

  • max_pixels (Sequence[int]) – Maximum pixels along each dimension.

  • overlap (Sequence[int]) – Number of overlapping pixels along each dimension, to be added to max_pixels if possible.

Return type:

ndarray

Returns:

The remerged stack

test_stack_splitter()[source]#

Test splitting and remerging.