Repository navigation
Adding openmc.read_source_file - #2858
Conversation
|
I thought this did exist somewhere... I'll have to dig and take a look. That's how we tested it when we introduced the feature??? |
|
How does this relate to |
|
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Description
We currently have the ability to write a list of
openmc.SourceParticleobjects to an HDF5 file, but no ability to read a file into a list of those objects that I'm aware of. I found it useful to be able to do so today and added that function so I thought I'd contribute ithere.
I added testing of this function to
test_source_file.py, but left the checks usingh5pyin place as it hammers on that file spec a bit so I think it's still useful to have them around.Checklist
I have run clang-format (version 15) on any C++ source files (if applicable)