Skip to content

allowing materials.xml to be specified - #2364

Merged
paulromano merged 3 commits into
openmc-dev:developfrom
shimwell:allowing_export_with_different_materials_files
Jan 31, 2023
Merged

paulromano merged 3 commits into
openmc-dev:developfrom
shimwell:allowing_export_with_different_materials_files

Conversation

@shimwell

@shimwell shimwell commented Jan 27, 2023 •

Copy link
Copy Markdown
Member

The Results.export_to_materials method in openmc.deplete is super useful.

This PR is an attempt to make it a tiny bit more flexible by allowing the path to the materials.xml to be specified.

This is useful when running multiple depletion steps and wanting to get the materials for a seperate folder or elsewhere.

It is useful to have the different stages stored in separate file locations so that the materials at each time step can be investigated.

Would you be able to review @eepeterson as this is similar to changes you had in your R2SModel branch but I've tried to use the path argument with PathLike the same way it is used elsewhere in openmc (e.g. here)

@eepeterson

Copy link
Copy Markdown
Contributor

Thanks @shimwell! This is indeed helpful for those workflows.

Comment thread openmc/deplete/results.py Outdated
Comment thread openmc/deplete/results.py Outdated
@shimwell

Copy link
Copy Markdown
Member Author

I have merged in the latest develop branch (which fixes the CI) and am now rerunning the tests as I think that a pass is required to merge this PR

@shimwell

Copy link
Copy Markdown
Member Author

Super tests are passing, I think this is ready to merge

@paulromano
paulromano merged commit f1bbeda into openmc-dev:develop Jan 31, 2023
@paulromano

Copy link
Copy Markdown
Contributor

Thanks @shimwell. For future reference, you don't actually need to merge in develop to your branch. When CI runs, it is actually testing a merge commit, so just retriggering CI once the develop branch is updated should be sufficient.

apingegno pushed a commit to apingegno/openmc that referenced this pull request May 7, 2026
…_different_materials_files

allowing materials.xml to be specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants