Skip to content

Material info on right click#100

Merged
paulromano merged 5 commits into
openmc-dev:developfrom
kkiesling:material_info
Jul 6, 2022
Merged

Material info on right click#100
paulromano merged 5 commits into
openmc-dev:developfrom
kkiesling:material_info

Conversation

@kkiesling

Copy link
Copy Markdown
Contributor

closes #80

If you right click on a material, clicking the material id from the menu will now open a message box with information about that material:

  • material density
  • material temperature
  • breakdown of nuclides and their densities
    That was all the easily available information in openmc.lib.materials, but let me know if there is other information that should be displayed.

Also, I kind of think it'd be useful if the message box could stay open while using other parts of the gui, or if you could open multiple materials' information at the same time (ie multiple message boxes). But I couldn't figure out the proper way to do that with Qt. Right now, when the message box opens, you have to close it/press ok before doing anything more with the gui.

@kkiesling kkiesling changed the title Material info Material info on right click Jun 30, 2022

@paulromano paulromano 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.

Love it! This will be very useful. A few suggested changes:

Comment thread openmc_plotter/main_window.py Outdated
Comment thread openmc_plotter/main_window.py Outdated
Comment thread openmc_plotter/main_window.py Outdated
Comment thread openmc_plotter/main_window.py Outdated
kkiesling and others added 2 commits July 6, 2022 14:14
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
@paulromano paulromano merged commit 5691d44 into openmc-dev:develop Jul 6, 2022
@paulromano

Copy link
Copy Markdown
Contributor

Thanks @kkiesling!

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.

Material composition viewer

2 participants