Fix pathlib use error in openmc-ace-to-hdf5

This commit is contained in:
Paul Romano 2021-08-11 11:16:46 -05:00
parent 4c17061a1d
commit 0941664e8a

View file

@ -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')