Skip to content

Commit

Permalink
Merge pull request #482 from dirac-institute/restore_toimagestack
Browse files Browse the repository at this point in the history
Restore ImageCollection.toImageStack because of StampCreator.
  • Loading branch information
DinoBektesevic authored Feb 26, 2024
2 parents a9c5128 + b957fdf commit a87c111
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/kbmod/image_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a87c111

Please sign in to comment.