From 995d920e5f52900540c7e4b1efb690fd468c21e0 Mon Sep 17 00:00:00 2001 From: Ruben Verweij Date: Fri, 24 Jan 2020 14:39:00 +0100 Subject: [PATCH] Fix typo in z-level check --- nd2reader/raw_metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nd2reader/raw_metadata.py b/nd2reader/raw_metadata.py index 2b8f22c..0d77ddc 100644 --- a/nd2reader/raw_metadata.py +++ b/nd2reader/raw_metadata.py @@ -162,7 +162,7 @@ class RawMetadata(object): list: the z levels, just a sequence from 0 to n. """ z_levels = self._parse_dimension(r""".*?Z\((\d+)\).*?""") - if 0 == len(z_levels): + if 0 != len(z_levels): z_levels = parse_if_not_none(self.z_data, self._parse_z_coordinates) if z_levels is None: z_levels = []