Skip to content

Fixing p0 and d0 reaction filtering in ALARAJOYWrapper#274

Closed
eitan-weinstein wants to merge 5 commits into
svalinn:mainfrom
eitan-weinstein:fixing_ground_state_pathways
Closed

Fixing p0 and d0 reaction filtering in ALARAJOYWrapper#274
eitan-weinstein wants to merge 5 commits into
svalinn:mainfrom
eitan-weinstein:fixing_ground_state_pathways

Conversation

@eitan-weinstein
Copy link
Copy Markdown
Contributor

Previously, in #229, I must have accidentally not included MT 600 and 650 in the EXCITATION_DICT used for filtering duplicate excitation reaction pathways if the cumulative reactions are present as well. I noticed this problem because I was seeing an unreasonably high amount of 14C production from the simulated irradiation of nitrogen, caused by the 14N (n,p) 14C reaction. Upon looking to my DSV file, I saw duplicates of both the 70140 60140 p and 70140 60130 d reactions, explaining the overproduction. As it stood, EXCITATION_DICT did not include the explicit (n,p0) and (n,d0) as it should have, allowing them to sneak past the filtration system in iterate_MTs(). After this patch, the nitrogen reactions all look ok and I'm sure there are reactions for other elements that are affected by this.

@gonuke
Copy link
Copy Markdown
Member

gonuke commented May 14, 2026

I expect this to be a small patch, but it appears to include a lot of other code...

@eitan-weinstein
Copy link
Copy Markdown
Contributor Author

I expect this to be a small patch, but it appears to include a lot of other code...

Oh, I think I built this branch from #271, but this should be independent of that. I'll open a new PR with the minimal fix.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants