Skip to content

Commit

Permalink
Merge pull request #194 from catalystneuro/fix_get_images_dict_Extrac…
Browse files Browse the repository at this point in the history
…tSegmentationExtractor

[Fix] get segmentation images in `NewExtractSegmentationExtractor`
  • Loading branch information
weiglszonja authored Aug 15, 2022
2 parents 5a547c5 + f676459 commit 5f5dfb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ def get_images_dict(self):
images_dict: dict
dictionary with key, values representing different types of Images
"""
images_dict = dict(
images_dict = super().get_images_dict()
images_dict.update(
summary_image=self._info_struct["summary_image"][:],
f_per_pixel=self._info_struct["F_per_pixel"][:],
max_image=self._info_struct["max_image"][:],
Expand Down
5 changes: 4 additions & 1 deletion tests/test_extractsegmentationextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ def test_extractor_get_images_dict(self):
)[:]

images_dict = self.extractor.get_images_dict()
self.assertEqual(len(images_dict), 3)
self.assertEqual(len(images_dict), 5)

self.assertEqual(images_dict["correlation"], None)
self.assertEqual(images_dict["mean"], None)

self.assertEqual(images_dict["summary_image"].shape, summary_image.shape)
self.assertEqual(images_dict["max_image"].shape, max_image.shape)
Expand Down

0 comments on commit 5f5dfb3

Please sign in to comment.