Skip to content

Commit

Permalink
There are no important changes in reportPlotting, skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
john-science committed Oct 31, 2024
1 parent f0e7f6e commit 450248e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions armi/utils/reportPlotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -258,16 +258,16 @@ 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)

report.setData("Burnup Plot", os.path.abspath(figName), report.BURNUP_PLOT)


def xsHistoryVsTime(name, history, buGroups, extension=None):
"""
Plot cross section history vs time.
r"""
Plot cross section history vs. time.
Parameters
----------
Expand Down

0 comments on commit 450248e

Please sign in to comment.