Skip to content

Support opening single model XML files#115

Merged
kkiesling merged 2 commits into
openmc-dev:developfrom
paulromano:hash-model-xml
Apr 11, 2023
Merged

Support opening single model XML files#115
kkiesling merged 2 commits into
openmc-dev:developfrom
paulromano:hash-model-xml

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

Right now the plotter assumes that a user's model is always composed of separate geometry, materials, and settings XML files. This PR updates the plotter to work with our new functionality in v0.13.3 whereby a model can be represented in a single XML file. The command-line arguments were reconfigured now so that you pass the directory or model.xml file as a regular (non-flag) argument:

  • openmc-plotter (current directory with individual XML files or model.xml file)
  • openmc-plotter some_dir/ (directory with individual XML files or model.xml file
  • openmc-plotter some_model.xml (single, arbitrarily named XML file)

For consistency, the plot_settings.pkl file is always written in the same directory where the XML files exist.

@paulromano paulromano requested a review from kkiesling April 10, 2023 16:10

@kkiesling kkiesling left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great. Thanks for this update!

@kkiesling kkiesling merged commit 4659ff9 into openmc-dev:develop Apr 11, 2023
@paulromano paulromano deleted the hash-model-xml branch April 12, 2023 03:51
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.

2 participants