From 7b88c9104e0a01f04660edce5dd52a84503552f5 Mon Sep 17 00:00:00 2001 From: jim Date: Mon, 11 May 2015 12:18:55 -0500 Subject: [PATCH] fixed typos --- nd2reader/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nd2reader/__init__.py b/nd2reader/__init__.py index 4f47559..4e7409b 100644 --- a/nd2reader/__init__.py +++ b/nd2reader/__init__.py @@ -28,8 +28,8 @@ class Nd2(Nd2Parser): for i in range(self._image_count): for fov in range(self.field_of_view_count): for z_level in range(self.z_level_count): - for channel in self.channels: - image = self.get_image(i, fov, channel.name, z_level) + for channel_name in self.channels: + image = self.get_image(i, fov, channel_name, z_level) if image.is_valid: yield image @@ -168,7 +168,7 @@ class Nd2(Nd2Parser): """ channel_offset = {} for n, channel in enumerate(self.channels): - self._channel_offset[channel.name] = n + channel_offset[channel] = n return channel_offset def _get_raw_image_data(self, image_set_number, channel_offset):