From a61cb4d37918d25b72e3fd70f3d663a5e388de39 Mon Sep 17 00:00:00 2001 From: Jonathan Shimwell Date: Tue, 30 Apr 2024 09:00:27 +0100 Subject: [PATCH] formatting --- src/geouned/GEOUNED/Write/WriteFiles.py | 6 +++--- tests/test_convert.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/geouned/GEOUNED/Write/WriteFiles.py b/src/geouned/GEOUNED/Write/WriteFiles.py index 64d45cd4..863b7dff 100644 --- a/src/geouned/GEOUNED/Write/WriteFiles.py +++ b/src/geouned/GEOUNED/Write/WriteFiles.py @@ -12,10 +12,10 @@ def writeGeometry(UniverseBox, MetaList, Surfaces, code_setting): # Currently there are two was of setting outFormat (via a .set method and # a class attribute. Once we have a single method then move this validating # input code to the attribute @setter - supported_mc_codes = ('mcnp', 'openMC_XML', 'openMC_PY', 'serpent', 'phits') - for out_format in code_setting['outFormat']: + supported_mc_codes = ("mcnp", "openMC_XML", "openMC_PY", "serpent", "phits") + for out_format in code_setting["outFormat"]: if out_format not in supported_mc_codes: - msg = f'outFormat {out_format} not in supported MC codes ({supported_mc_codes})' + msg = f"outFormat {out_format} not in supported MC codes ({supported_mc_codes})" raise ValueError(msg) # write cells comments in file diff --git a/tests/test_convert.py b/tests/test_convert.py index 4e6297a6..93711927 100644 --- a/tests/test_convert.py +++ b/tests/test_convert.py @@ -40,9 +40,9 @@ def test_conversion(input_step_file): } # deletes the output MC files if they already exists - suffixes = ('.mcnp', '.xml', '.inp', '.py', '.serp') + suffixes = (".mcnp", ".xml", ".inp", ".py", ".serp") for suffix in suffixes: - output_filename_stem.with_suffix(suffix).unlink(missing_ok=True) + output_filename_stem.with_suffix(suffix).unlink(missing_ok=True) GEO = CadToCsg("Input Test") @@ -53,4 +53,4 @@ def test_conversion(input_step_file): GEO.Start() for suffix in suffixes: - assert output_filename_stem.with_suffix(suffix).exists() + assert output_filename_stem.with_suffix(suffix).exists()