Skip to content

Commit 56e12dd

Browse files
committed
prop_map and properties attributes were redundant
1 parent 05743d8 commit 56e12dd

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

openmc_plotter/plotmodel.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class PlotModel():
9191
Mapping of plot coordinates to cell/material ID by pixel
9292
ids_map : NumPy int32 array (v_res, h_res, 3)
9393
Mapping of cell and material ids
94-
props_map : Numpy float array (v_res, h_res, 3)
94+
properties : Numpy float array (v_res, h_res, 3)
9595
Mapping of cell temperatures and material densities
9696
image : NumPy int array (v_res, h_res, 3)
9797
The current RGB image data
@@ -128,7 +128,7 @@ def __init__(self, use_settings_pkl):
128128

129129
# Return values from id_map and property_map
130130
self.ids_map = None
131-
self.props_map = None
131+
self.properties = None
132132

133133
self.version = __VERSION__
134134

@@ -275,12 +275,12 @@ def makePlot(self):
275275
cv = self.currentView = copy.deepcopy(self.activeView)
276276
pv = self.previousViews[-1]
277277

278-
if (self.props_map is None) or (self.ids_map is None) or \
278+
if (self.properties is None) or (self.ids_map is None) or \
279279
(cv.view_params != pv.view_params):
280280
# we are at the first view and need to populate OR
281281
# view has changed and need to populate
282282
self.ids_map = openmc.lib.id_map(cv.view_params)
283-
self.props_map = openmc.lib.property_map(cv.view_params)
283+
self.properties = openmc.lib.property_map(cv.view_params)
284284

285285
self.cell_ids = self.ids_map[:, :, 0]
286286
self.instances = self.ids_map[:, :, 1]
@@ -324,8 +324,7 @@ def makePlot(self):
324324

325325
# set model image
326326
self.image = image
327-
# set model properties
328-
self.properties = self.props_map
327+
329328
# tally data
330329
self.tally_data = None
331330

0 commit comments

Comments
 (0)