MemmapHandler#

class MemmapHandler(path_translation, shape, dtype, mode='r+', indices=None, **kwargs)[source]#

Bases: object

Create numpy memmap objects to write score spaces to.

This is useful in cases where not the entire score space is sampled at once.

Parameters:
path_translationdict

Translation between rotation matrix and memmap file path.

shapetuple of int

Shape of the memmap array.

dtypetype

Numpy dtype of the memmap array.

modestr, optional

Mode to open the memmap array with.

indicestuple of slice, optional

Slices specifying which parts of the memmap array will be updated by __call__.

**kwargs

Optional keyword arguments.

Methods

MemmapHandler.merge(*args, **kwargs)

Placeholder merge method.

MemmapHandler.update_indices(indices)

Change which parts of the memmap array will be updated.