@@ -282,11 +282,17 @@ def storeCurrent(self):
282282
283283 def create_tally_image (self , view = None ):
284284 """
285+ Parameters
286+ ----------
287+ view :
288+ View used to set bounds of the tally data
289+
285290 Returns
286291 -------
287- tuple : image data (numpy.ndarray), data extents (optional),
288- data_min_value (float), data_max_value (float),
289- data label (str)
292+ tuple
293+ image data (numpy.ndarray), data extents (optional),
294+ data_min_value (float), data_max_value (float),
295+ data label (str)
290296 """
291297 if view is None :
292298 view = self .currentView
@@ -387,13 +393,11 @@ def create_tally_image(self, view=None):
387393 mean_data = self ._create_tally_domain_image (tally ,
388394 'mean' ,
389395 scores ,
390- nuclides ,
391- view )
396+ nuclides )
392397 std_dev_data = self ._create_tally_domain_image (tally ,
393398 'std_dev' ,
394399 scores ,
395- nuclides ,
396- view )
400+ nuclides )
397401 image_data = 100 * np .divide (std_dev_data [0 ],
398402 mean_data [0 ],
399403 out = np .zeros_like (mean_data [0 ]),
@@ -411,8 +415,7 @@ def create_tally_image(self, view=None):
411415 image = self ._create_tally_domain_image (tally ,
412416 tally_value ,
413417 scores ,
414- nuclides ,
415- view )
418+ nuclides )
416419 return image + (units_out ,)
417420
418421 def _create_tally_domain_image (self , tally , tally_value , scores , nuclides , view = None ):
@@ -501,10 +504,7 @@ def _do_op(array, tally_value, ax=0):
501504
502505 return image_data , None , data_min , data_max
503506
504- def _create_distribcell_image (self , tally , tally_value , scores , nuclides , view = None ):
505- if view is None :
506- cv = self .currentView
507-
507+ def _create_distribcell_image (self , tally , tally_value , scores , nuclides ):
508508 sp = self .statepoint
509509 dfilter = tally .find_filter (openmc .DistribcellFilter )
510510
@@ -529,7 +529,7 @@ def _create_distribcell_image(self, tally, tally_value, scores, nuclides, view=N
529529 def _create_tally_mesh_image (self , tally , tally_value , scores , nuclides , view = None ):
530530 # some variables used throughout
531531 if view is None :
532- cv = self .currentView
532+ view = self .currentView
533533
534534 sp = self .statepoint
535535 mesh_filter = tally .find_filter (openmc .MeshFilter )
0 commit comments