|
@ -53,11 +53,11 @@ class BaseNd2(object): |
|
|
return self._metadata['ImageEvents']['RLxExperimentRecord']['uiCount'] |
|
|
return self._metadata['ImageEvents']['RLxExperimentRecord']['uiCount'] |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def _timepoint_count(self): |
|
|
|
|
|
return self._image_count / self.field_of_view_count / self._z_level_count |
|
|
|
|
|
|
|
|
def timepoint_count(self): |
|
|
|
|
|
return self._image_count / self.field_of_view_count / self.z_level_count |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def _z_level_count(self): |
|
|
|
|
|
|
|
|
def z_level_count(self): |
|
|
return self._image_count / self._sequence_count |
|
|
return self._image_count / self._sequence_count |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
@ -72,7 +72,7 @@ class BaseNd2(object): |
|
|
return sum(self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx']['']['pItemValid']) |
|
|
return sum(self._metadata['ImageMetadata']['SLxExperiment']['ppNextLevelEx']['']['pItemValid']) |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def _channel_count(self): |
|
|
|
|
|
|
|
|
def channel_count(self): |
|
|
return self._reader.channel_count |
|
|
return self._reader.channel_count |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
@ -88,7 +88,7 @@ class BaseNd2(object): |
|
|
return self._reader.metadata |
|
|
return self._reader.metadata |
|
|
|
|
|
|
|
|
def _calculate_image_set_number(self, timepoint, fov, z_level): |
|
|
def _calculate_image_set_number(self, timepoint, fov, z_level): |
|
|
return timepoint * self.field_of_view_count * self._z_level_count + (fov * self._z_level_count + z_level) |
|
|
|
|
|
|
|
|
return timepoint * self.field_of_view_count * self.z_level_count + (fov * self.z_level_count + z_level) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Nd2Reader(object): |
|
|
class Nd2Reader(object): |
|
|