From b957fdf71f75b5c0b78d2247e7fc699a734db31d Mon Sep 17 00:00:00 2001 From: DinoBektesevic Date: Wed, 21 Feb 2024 03:10:24 -0800 Subject: [PATCH] Restore ImageCollection.toImageStack because of StampCreator. --- src/kbmod/image_collection.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/kbmod/image_collection.py b/src/kbmod/image_collection.py index 2a216c1a7..cca3c9151 100644 --- a/src/kbmod/image_collection.py +++ b/src/kbmod/image_collection.py @@ -491,6 +491,17 @@ def get_duration(self): # maybe timespan? return self.data["mjd"][-1] - self.data["mjd"][0] + def toImageStack(self): + """Return an `~kbmod.search.image_stack` object for processing with + KBMOD. + Returns + ------- + imageStack : `~kbmod.search.image_stack` + Image stack for processing with KBMOD. + """ + layeredImages = [img for std in self._standardizers for img in std.toLayeredImage()] + return ImageStack(layeredImages) + def toWorkUnit(self, config): """Return an `~kbmod.WorkUnit` object for processing with KBMOD.