diff --git a/armi/utils/reportPlotting.py b/armi/utils/reportPlotting.py index e12fc8cfe..28433444d 100644 --- a/armi/utils/reportPlotting.py +++ b/armi/utils/reportPlotting.py @@ -214,8 +214,8 @@ def keffVsTime(name, time, keff, keffUnc=None, ymin=None, extension=None): def buVsTime(name, scalars, extension=None): - """ - Produces a burnup and DPA vs time plot for this case. + r""" + produces a burnup and DPA vs. time plot for this case. Will add a second axis containing DPA if the scalar column maxDPA exists. @@ -235,8 +235,8 @@ def buVsTime(name, scalars, extension=None): plt.plot(scalars["time"], scalars["maxBuI"], ".-", label="Driver") except ValueError: runLog.warning( - f"Incompatible axis length in burnup plot. Time has {len(scalars['time'])}, bu has " - f"{len(scalars['maxBuI'])}. Skipping" + "Incompatible axis length in burnup plot. Time has {0}, bu has {1}. Skipping" + "".format(len(scalars["time"]), len(scalars["maxBuI"])) ) plt.close(1) return @@ -258,7 +258,7 @@ def buVsTime(name, scalars, extension=None): plt.title(title) plt.legend(loc="lower right") - figName = f"{name}.bu.{extension}" + figName = name + ".bu." + extension plt.savefig(figName) plt.close(1) @@ -266,8 +266,8 @@ def buVsTime(name, scalars, extension=None): def xsHistoryVsTime(name, history, buGroups, extension=None): - """ - Plot cross section history vs time. + r""" + Plot cross section history vs. time. Parameters ----------