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

adding resulting nuclide to cross section plot legend #2851

Merged
merged 6 commits into from
Feb 17, 2024

Conversation

shimwell
Copy link
Member

@shimwell shimwell commented Jan 19, 2024

This PR attempts to add the resulting nuclide to the legend in the cross section plot.

I have tried to make use of existing code by recycling the dadz values originally from chain.py and placing them in data.py. I guess they might be useful elsewhere as well

On the left we have the resulting plot currently and on the right we have the plot after this PR

Screenshot from 2024-01-19 17-47-01

*edited plot updated to fix bug spotted by @makeclean

Checklist

  • I have performed a self-review of my own code
  • I have followed the style guidelines for Python source files (if applicable)

@makeclean
Copy link
Contributor

makeclean commented Jan 19, 2024 via email

@shimwell
Copy link
Member Author

Thanks @makeclean for spotting that I have updated the plot and code.

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

Thanks @shimwell! FYI I made a change here removing the dadz from ReactionInfo rather than storing it redundantly. It was straightforward to just use the DADZ directly in the code below in chaing.py.

@paulromano paulromano enabled auto-merge (squash) February 17, 2024 17:06
@shimwell
Copy link
Member Author

Many thanks Paul that is certainly more elegant

@paulromano paulromano merged commit e8f68a0 into openmc-dev:develop Feb 17, 2024
17 checks passed
church89 pushed a commit to openmsr/openmc that referenced this pull request Jul 18, 2024
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