Resolution#

class mhm_tools.common.resolution_handler.Resolution(l1=None, l11=None, l2=None, l2_file=None, l0=None, l0_resolution=None, l1_resolution=None, l11_resolution=None, l2_resolution=None, raise_on_missmatch=True)[source]#

Bases: object

Class to hold resolution information.

Attributes:
l0_resolution

Backward-compatible alias for l0.

l11_resolution

Backward-compatible alias for l11.

l1_resolution

Backward-compatible alias for l1.

l2_resolution

Backward-compatible alias for l2.

Methods

get_max_resolution()

Get the maximum resolution.

only_one_resolution()

Return the resolution if there is only one otherwise None.

get_max_resolution()[source]#

Get the maximum resolution.

only_one_resolution()[source]#

Return the resolution if there is only one otherwise None.

property l0_resolution#

Backward-compatible alias for l0.

property l11_resolution#

Backward-compatible alias for l11.

property l1_resolution#

Backward-compatible alias for l1.

property l2_resolution#

Backward-compatible alias for l2.