From ecc38a1ae4ba2adc194bd0a0c61a3d088b56b242 Mon Sep 17 00:00:00 2001 From: yardasol Date: Wed, 29 Jun 2022 14:47:30 -0500 Subject: [PATCH] fix multi-line error message --- openmc/deplete/flux_operator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openmc/deplete/flux_operator.py b/openmc/deplete/flux_operator.py index b74403b691..ab6fbe565d 100644 --- a/openmc/deplete/flux_operator.py +++ b/openmc/deplete/flux_operator.py @@ -316,9 +316,9 @@ class FluxSpectraDepletionOperator(TransportOperator): try: assert data.shape == (len(nuclides), len(reactions)) except AssertionError: - raise SyntaxError('Nuclides list of length {len(nuclides)} and - reactions array of length {len(reactions)} do not - match dimensions of data array of shape {data.shape}') + raise SyntaxError('Nuclides list of length {len(nuclides)} and' + 'reactions array of length {len(reactions)} do not' + 'match dimensions of data array of shape {data.shape}') check_iterable_type('nuclides', nuclides, str) check_iterable_type('reactions', reactions, str)