mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
added shape to aggregate filter
This commit is contained in:
parent
61efad0a8d
commit
653bec5fd8
1 changed files with 4 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue