From 13758d0e362a3a8ea5886cec52b91862bf93dd29 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Thu, 9 Nov 2017 23:19:09 -0500 Subject: [PATCH] Remove false warnings when a Filter is reused --- openmc/tallies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/tallies.py b/openmc/tallies.py index 76c6fa7141..a4c57e1f1b 100644 --- a/openmc/tallies.py +++ b/openmc/tallies.py @@ -3514,7 +3514,7 @@ class Tallies(cv.CheckedList): if f not in already_written: root_element.append(f.to_xml_element()) already_written[f] = f.id - else: + elif f.id != already_written[f]: # Set the IDs of identical filters with different # user-defined IDs to the same value f.id = already_written[f]