mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Update filter.py
This commit is contained in:
parent
3ab762f617
commit
974db1ca57
1 changed files with 1 additions and 1 deletions
|
|
@ -1083,7 +1083,7 @@ class RealFilter(Filter):
|
|||
return np.allclose(self.bins, other.bins)
|
||||
|
||||
def get_bin_index(self, filter_bin):
|
||||
i = np.where(i = np.where(self.bins == filter_bin[1])[0]
|
||||
i = np.where(self.bins == filter_bin[1])[0]
|
||||
if len(i) == 0:
|
||||
msg = 'Unable to get the bin index for Filter since "{0}" ' \
|
||||
'is not one of the bins'.format(filter_bin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue