From d2e451e6ef6649855406d8c075ac0674b24b48cc Mon Sep 17 00:00:00 2001 From: John Stilley <1831479+john-science@users.noreply.github.com> Date: Thu, 17 Mar 2022 19:05:07 -0700 Subject: [PATCH] Fixing docstring (#601) --- armi/nuclearDataIO/xsLibraries.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/armi/nuclearDataIO/xsLibraries.py b/armi/nuclearDataIO/xsLibraries.py index a634b40e1..c9be299df 100644 --- a/armi/nuclearDataIO/xsLibraries.py +++ b/armi/nuclearDataIO/xsLibraries.py @@ -406,7 +406,7 @@ def get(self, nuclideLabel, default): def getNuclide(self, nucName, suffix): """ - Get a nuclide object from the XS library or None. + Get a nuclide object from the XS library. Parameters ---------- @@ -420,8 +420,8 @@ def getNuclide(self, nucName, suffix): nuclide : Nuclide object A nuclide from the library or None """ - libLabel = nuclideBases.byName[nucName].label + suffix + try: return self[libLabel] except KeyError: @@ -512,7 +512,6 @@ def getScatterWeights(self, scatterMatrixKey="elasticScatter"): -------- _buildScatterWeights """ - if not self._scatterWeights.get(scatterMatrixKey): self._scatterWeights[scatterMatrixKey] = self._buildScatterWeights( scatterMatrixKey @@ -557,7 +556,6 @@ def plotNucXs( """ generates a XS plot for a nuclide on the ISOTXS library - nucName : str or list The nuclides to plot xsName : str or list @@ -583,7 +581,6 @@ def plotNucXs( armi.nucDirectory.nuclide.plotScatterMatrix """ - # convert all input to lists if isinstance(nucNames, str): nucNames = [nucNames]