Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowing materials.xml to be specified #2364

Conversation

shimwell
Copy link
Member

@shimwell shimwell commented Jan 27, 2023

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
Contributor

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

openmc/deplete/results.py Outdated Show resolved Hide resolved
openmc/deplete/results.py Outdated Show resolved Hide resolved
@shimwell
Copy link
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
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
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.

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