From af442677c015fcf48263fde46b402e665585d71d Mon Sep 17 00:00:00 2001 From: Will Boyd Date: Wed, 2 Sep 2015 19:50:56 -0700 Subject: [PATCH] Changed Tally.get_value to Tally.get_values in Python scripts --- scripts/openmc-plot-mesh-tally | 4 ++-- scripts/openmc-statepoint-3d | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/openmc-plot-mesh-tally b/scripts/openmc-plot-mesh-tally index 5c46d927c..d49c9061d 100755 --- a/scripts/openmc-plot-mesh-tally +++ b/scripts/openmc-plot-mesh-tally @@ -230,9 +230,9 @@ class MeshPlotter(tk.Frame): meshtuple = (i + 1, axial_level, j + 1) filters, filter_bins = zip(*spec_list + [ (mesh_filter, meshtuple)]) - mean = selectedTally.get_value( + mean = selectedTally.get_values( self.scoreBox.get(), filters, filter_bins) - stdev = selectedTally.get_value( + stdev = selectedTally.get_values( self.scoreBox.get(), filters, filter_bins, value='std_dev') if mbvalue == 'Mean': diff --git a/scripts/openmc-statepoint-3d b/scripts/openmc-statepoint-3d index 30205c769..e667ad0bb 100755 --- a/scripts/openmc-statepoint-3d +++ b/scripts/openmc-statepoint-3d @@ -219,7 +219,7 @@ def main(file_, o): for y in range(1,ny+1): for z in range(1,nz+1): filterspec[0][1] = (x,y,z) - val = sp.get_value(tally.id-1, filterspec, sid)[o.valerr] + val = sp.get_values(tally.id-1, filterspec, sid)[o.valerr] if o.vtk: # vtk cells go z, y, x, so we store it now and enter it later i = (z-1)*nx*ny + (y-1)*nx + x-1