From 834450066e9926d0441ca027dda8c23eb2798174 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sat, 17 Sep 2022 11:31:46 -0500 Subject: [PATCH] Adding check of interpolation parameter in eff __eq__ --- openmc/filter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmc/filter.py b/openmc/filter.py index 2af5fe5b79..35a65f4fef 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -1913,6 +1913,8 @@ class EnergyFunctionFilter(Filter): def __eq__(self, other): if type(self) is not type(other): return False + elif not self.interpolation == other.interpolation: + return False elif not all(self.energy == other.energy): return False else: