From 6ab702400f50409c9dee5f7ae3139052569b9b93 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 26 Mar 2020 07:07:00 -0500 Subject: [PATCH] Make sure output_dir gets set for ThermalScattering.from_njoy --- openmc/data/thermal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/data/thermal.py b/openmc/data/thermal.py index 067c0a7034..5f939e59e8 100644 --- a/openmc/data/thermal.py +++ b/openmc/data/thermal.py @@ -766,8 +766,8 @@ class ThermalScattering(EqualityMixin): """ with tempfile.TemporaryDirectory() as tmpdir: # Run NJOY to create an ACE library - kwargs.setdefault('ace', os.path.join(tmpdir, 'ace')) - kwargs.setdefault('xsdir', os.path.join(tmpdir, 'xsdir')) + kwargs.setdefault('output_dir', tmpdir) + kwargs.setdefault('ace', os.path.join(kwargs['output_dir'], 'ace')) kwargs['evaluation'] = evaluation kwargs['evaluation_thermal'] = evaluation_thermal make_ace_thermal(filename, filename_thermal, temperatures, **kwargs)