From 5bac4eb2bd665dfb9d6058052f46de83aeb41f60 Mon Sep 17 00:00:00 2001 From: "Hannes F. Kuchelmeister" Date: Mon, 12 Jul 2021 18:56:06 +0200 Subject: [PATCH] add channel count and round count --- situr/image/situ_image.py | 3 +++ situr/image/situ_tile.py | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/situr/image/situ_image.py b/situr/image/situ_image.py index 02032ae..df6bd20 100644 --- a/situr/image/situ_image.py +++ b/situr/image/situ_image.py @@ -39,6 +39,9 @@ class SituImage: self._load_image() return self.data + def get_channel_count(self): + return self.get_data().shape[0] + def get_channel(self, channel): ''' Loads and returns the specified channel for all focus_levels. diff --git a/situr/image/situ_tile.py b/situr/image/situ_tile.py index 32ab942..bb7db9e 100644 --- a/situr/image/situ_tile.py +++ b/situr/image/situ_tile.py @@ -18,6 +18,12 @@ class Tile: self.images.append( SituImage(situ_image_list, nucleaus_channel=nucleaus_channel)) + def get_round_count(self): + return len(self.images) + + def get_channel_count(self): + return self.images.get_channel_count(self) + def get_round(self, round_number): """This