From 653bec5fd8955ba4522d6b0f5a9542ebbe802c34 Mon Sep 17 00:00:00 2001 From: Ethan Peterson Date: Fri, 11 Nov 2022 13:20:14 -0500 Subject: [PATCH] added shape to aggregate filter --- openmc/arithmetic.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openmc/arithmetic.py b/openmc/arithmetic.py index 618c7c4a1a..3655ef2a3d 100644 --- a/openmc/arithmetic.py +++ b/openmc/arithmetic.py @@ -604,6 +604,10 @@ class AggregateFilter: def num_bins(self): return len(self.bins) if self.aggregate_filter else 0 + @property + def shape(self): + return (self.num_bins,) + @type.setter def type(self, filter_type): if filter_type not in _FILTER_TYPES: