From d26a86f5f1862c34ae4444a8dfca926471c6ccda Mon Sep 17 00:00:00 2001 From: "wbinventor@gmail.com" Date: Sun, 29 Nov 2015 09:13:28 -0500 Subject: [PATCH] Reverted to set notation in Geometry.get_all_material_cells() now that __hash__ is implemented everywhere --- openmc/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/geometry.py b/openmc/geometry.py index c0b248780e..e848e0cddf 100644 --- a/openmc/geometry.py +++ b/openmc/geometry.py @@ -147,7 +147,7 @@ class Geometry(object): if cell._type == 'normal': material_cells.add(cell) - material_cells = list(set(material_cells)) + material_cells = list(material_cells) material_cells.sort(key=lambda x: x.id) return material_cells