Merge pull request #1867 from paulromano/ace-to-hdf5-fix

Fix pathlib use error in openmc-ace-to-hdf5
This commit is contained in:
Patrick Shriwise 2021-08-11 16:29:41 -05:00 committed by GitHub
commit cf3516d86e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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