(self, stats_name: str = DataStatsKeys.IMAGE_STATS, average: bool | None = True)
| 565 | """ |
| 566 | |
| 567 | def __init__(self, stats_name: str = DataStatsKeys.IMAGE_STATS, average: bool | None = True): |
| 568 | self.summary_average = average |
| 569 | report_format = { |
| 570 | ImageStatsKeys.SHAPE: None, |
| 571 | ImageStatsKeys.CHANNELS: None, |
| 572 | ImageStatsKeys.CROPPED_SHAPE: None, |
| 573 | ImageStatsKeys.SPACING: None, |
| 574 | ImageStatsKeys.SIZEMM: None, |
| 575 | ImageStatsKeys.INTENSITY: None, |
| 576 | } |
| 577 | super().__init__(stats_name, report_format) |
| 578 | |
| 579 | self.update_ops(ImageStatsKeys.SHAPE, SampleOperations()) |
| 580 | self.update_ops(ImageStatsKeys.CHANNELS, SampleOperations()) |
| 581 | self.update_ops(ImageStatsKeys.CROPPED_SHAPE, SampleOperations()) |
| 582 | self.update_ops(ImageStatsKeys.SPACING, SampleOperations()) |
| 583 | self.update_ops(ImageStatsKeys.SIZEMM, SampleOperations()) |
| 584 | self.update_ops(ImageStatsKeys.INTENSITY, SummaryOperations()) |
| 585 | |
| 586 | def __call__(self, data: list[dict]) -> dict: |
| 587 | """ |
nothing calls this directly
no test coverage detected