From 0d84c538181022f607ddceb898c132faac2568b8 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Fri, 24 Feb 2023 22:05:00 +0000 Subject: [PATCH] review improvment, refactor to single line Co-authored-by: Paul Romano --- openmc/material.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmc/material.py b/openmc/material.py index bdc25b280a..a1b3367a90 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -143,8 +143,7 @@ class Material(IDManagerMixin): string += '{: <16}=\t{}'.format('\tDensity', self._density) string += f' [{self._density_units}]\n' - string += '{: <16}=\t{}'.format('\tVolume', self._volume) - string += ' [cm^3]\n' + string += '{: <16}=\t{} [cm^3]\n'.format('\tVolume', self._volume) string += '{: <16}\n'.format('\tS(a,b) Tables')