-
Notifications
You must be signed in to change notification settings - Fork 526
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
allowing no cross_section in volume calculation #2725
Conversation
9db6297
to
52a4f75
Compare
@paulromano this should be good to review. |
I realised I didn't implement the test for this. Looking at what test existed for the Volume calculation, they seemed pretty short in I am happy to implement test if you fell my addition made them necessary. |
I also just saw that one of the job failed:
What should I do about this? trigger CI again with an empty commit ? |
@bam241 Yes, you'll need a test for this capability (I tried it locally and it did not work out of the box for me). The test can live in
|
3472923
to
d077a2c
Compare
@paulromano I added the test, and fixed PR so it actually works. The test is based on the geometry of the pincell tutorial. It might be overly complicated, but having the s_alpha_beta for the water actually allowed me to spot an potential bug in the |
Thanks for adding those tests Bam. I was looking through the open PRs piling up and I think this is the oldest PR that is also complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay on in providing some more feedback here. I'm hesitant about merging this PR in its current design for the following reasons:
- There is a desire longer-term to store atomic mass / isotopic composition data on the C++ side of the code, which would give us some defaults to fall back on even when no cross sections are available, in which case we could always run a volume calculation and still calculate atom densities.
- I don't see the extra code here as being that beneficial for a relatively uncommon situation -- in most cases a user should have cross sections configured in which case there is no issue.
- In volume calculation mode, only load atomic weight ratio from data files #2741 gives a very easy solution to the problem of slow initialization of the plotter due to cross section loading.
Fair enough, I can review #2741 tomorrow. |
@paulromano @shimwell let me know what you wish to do with this. I can close it, or re-work it an other way. |
I have a feeling knowledge learned or perhaps code here will be useful for when we store atomic mass / isotopic composition data on the C++ side of the code. |
I'm going through the open PRs today and I think this one can be closed as we have merged #2741 #2741 significantly speeds up the loading of nuclear data and while this one totally removes the need for nuclear data I think Paul is right and we should do this by adding the atomic mass / isotopic composition data on the C++ @bam241 would you be interested in some follow on sponsored work to add atomic mass / isotopic composition data on the C++ ? |
as discussed during last call, this follows #2690 PR.
The aim of this is to allow Volume calculation, with limited capabilities when no cross_section are provided.
Checklist