@@ -328,14 +328,14 @@ def create_tally_image(self, view=None):
328328 scores ,
329329 nuclides ,
330330 view )
331- image_data = np .divide (std_dev_data [0 ],
332- mean_data [0 ],
333- out = np .zeros_like (mean_data [0 ]),
334- where = mean_data != 0 )
331+ image_data = 100 * np .divide (std_dev_data [0 ],
332+ mean_data [0 ],
333+ out = np .zeros_like (mean_data [0 ]),
334+ where = mean_data != 0 )
335335 extents = mean_data [1 ]
336336 data_min = np .min (image_data )
337337 data_max = np .max (image_data )
338- return image_data , extents , data_min , data_max , units_out
338+ return image_data , extents , data_min , data_max , '% error'
339339
340340 else :
341341 image = self ._create_tally_mesh_image (tally ,
@@ -353,15 +353,15 @@ def create_tally_image(self, view=None):
353353 scores ,
354354 nuclides ,
355355 view )
356- dev_data = self ._create_tally_domain_image (tally ,
356+ std_dev_data = self ._create_tally_domain_image (tally ,
357357 'std_dev' ,
358358 scores ,
359359 nuclides ,
360360 view )
361- image_data = np .divide (std_dev_data [0 ],
362- mean_data [0 ],
363- out = np .zeros_like (mean_data [0 ]),
364- where = mean_data != 0 )
361+ image_data = 100 * np .divide (std_dev_data [0 ],
362+ mean_data [0 ],
363+ out = np .zeros_like (mean_data [0 ]),
364+ where = mean_data != 0 )
365365 # adjust for NaNs in bins without tallies
366366 image_data = np .nan_to_num (image_data ,
367367 nan = 0.0 ,
@@ -370,7 +370,7 @@ def create_tally_image(self, view=None):
370370 extents = mean_data [1 ]
371371 data_min = np .min (image_data )
372372 data_max = np .max (image_data )
373- return image_data , extents , data_min , data_max , units_out
373+ return image_data , extents , data_min , data_max , '% error'
374374 else :
375375 image = self ._create_tally_domain_image (tally ,
376376 tally_value ,
@@ -383,7 +383,6 @@ def _create_tally_domain_image(self, tally, tally_value, scores, nuclides, view=
383383 # data resources used throughout
384384 if view is None :
385385 view = self .currentView
386- sp = self .statepoint
387386
388387 data = tally .get_reshaped_data (tally_value )
389388 data_out = np .full (self .ids .shape , - 1.0 )
0 commit comments