Skip to content

Single neutron energy vertical line option in xs_plotting - #308

Open
eitan-weinstein wants to merge 2 commits into
svalinn:mainfrom
eitan-weinstein:neutron_energy_vline
Open

Single neutron energy vertical line option in xs_plotting#308
eitan-weinstein wants to merge 2 commits into
svalinn:mainfrom
eitan-weinstein:neutron_energy_vline

Conversation

@eitan-weinstein

Copy link
Copy Markdown
Contributor

This PR introduces new functionality to xs_plotting.py to allow for the plotting of a vertical line at a provided neutron energy to highlight the plot in a specific region. This was motivated by the desire to see the differences in group structure effects for 14.1 MeV neutrons by having a clear marker of where on the plot to focus.

@gonuke gonuke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @eitan-weinstein - Some cleanup suggestions

Comment thread tools/ALARAJOYWrapper/xs_plotting.py Outdated
Comment on lines +144 to +161
if KZA == dsv_pKZA and MT == flagged_num_to_int(dsv_MT)[0]:
if KZA == dsv_pKZA and MT == flagged_num_to_int(dsv_MT):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I've noticed this in a couple of PRs, was it originally a bug? Is there a PR that just fixes this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch. I'll make a small PR just for that bug.

Comment thread tools/ALARAJOYWrapper/xs_plotting.py Outdated

@gonuke gonuke left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ready to merge after a rebase for the other small change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants