Skip to content

Commit

Permalink
remove debugging print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
kkiesling committed Jul 6, 2022
1 parent 9dd7953 commit d342372
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions openmc_plotter/plotmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,24 +231,15 @@ def makePlot(self):
Runs OpenMC in plot mode to generate new plot image.
"""
cv = self.currentView = copy.deepcopy(self.activeView)
pv = self.previousViews[-1] # pv will always be at least 1 to store current views, so only do this if len > 1

print('*** NEW CALL TO MAKEPLOT ***')
print(cv.view_params == pv.view_params)
print('Previous View Parameters')
print(pv.view_params)
print('Current View Parameters')
print(cv.view_params)

if (self.__props_map is None) or (self.__ids_map is None) or (cv.view_params != pv.view_params):
print('generating new id/prop map')
# we are at the first view and need to populate OR view has changed and need to populate
pv = self.previousViews[-1]

if (self.__props_map is None) or (self.__ids_map is None) or \
(cv.view_params != pv.view_params):
# we are at the first view and need to populate OR
# view has changed and need to populate
self.__ids_map = openmc.lib.id_map(cv.view_params)
self.__props_map = openmc.lib.property_map(cv.view_params)

else:
print('no change')

self.cell_ids = self.__ids_map[:, :, 0]
self.instances = self.__ids_map[:, :, 1]
self.mat_ids = self.__ids_map[:, :, 2]
Expand Down

0 comments on commit d342372

Please sign in to comment.