From af6ab83af7cb6c950eeb2beb8fd1ce6350610d65 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sat, 3 Oct 2020 13:06:46 -0500 Subject: [PATCH] Check volume calculation ids using sets in load_results. --- openmc/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/volume.py b/openmc/volume.py index 65307a503e..7a9ef17371 100644 --- a/openmc/volume.py +++ b/openmc/volume.py @@ -319,7 +319,7 @@ class VolumeCalculation: results = type(self).from_hdf5(filename) # Make sure properties match - assert self.ids == results.ids + assert set(self.ids) == set(results.ids) assert np.all(self.lower_left == results.lower_left) assert np.all(self.upper_right == results.upper_right)