From 0941664e8a342504067aa23e2a04586e11cc7146 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 11 Aug 2021 11:16:46 -0500 Subject: [PATCH] Fix pathlib use error in openmc-ace-to-hdf5 --- scripts/openmc-ace-to-hdf5 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/openmc-ace-to-hdf5 b/scripts/openmc-ace-to-hdf5 index 3aeb95198e..7c391fd6fc 100755 --- a/scripts/openmc-ace-to-hdf5 +++ b/scripts/openmc-ace-to-hdf5 @@ -123,8 +123,7 @@ for path in ace_libraries: continue # Re-export - data.export_to_hdf5(converted[name] + '_1', 'w', libver=args.libver) - os.rename(converted[name] + '_1', converted[name]) + data.export_to_hdf5(converted[name], 'w', libver=args.libver) # Write cross_sections.xml library.export_to_xml(args.destination / 'cross_sections.xml')