Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix pathlib use error in openmc-ace-to-hdf5
  • Loading branch information
paulromano committed Aug 11, 2021
commit 0941664e8a342504067aa23e2a04586e11cc7146
3 changes: 1 addition & 2 deletions scripts/openmc-ace-to-hdf5
Original file line number Diff line number Diff line change
Expand Up @@ -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')