-
Notifications
You must be signed in to change notification settings - Fork 8
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
Montepy is_atomic_fraction does not work as expected #597
Comments
Just to clarify did your material definition start out as?
So good news: this is tested for and is currently working for the 1.0.0a1 candidate branch: Bad news this is a bad bug that wouldn't have a quick and easy work around for the user. I can get a patch for 0.5.3 maybe in a week or longer that would be a stop gap measure. So a few options:
Do you have a preference? |
Also I believe you are saying |
As an update. This problem seemed actually pretty easy to solve. See the PR, next week we might be able to get this reviewed and merged. |
Hi, thank you for your work. I have a technical issue that make me unable to install the code, so I couldn't test it. Maybe I'll wait the merge and it would work.
Actually I was not saying that |
@AlphonseM91 this bug fix has been shipped to pypi: https://pypi.org/project/montepy/. You can get it with |
Describe the bug
When montepy.data_inputs.material.is_atomic_fraction is set to False and I add a new material component and then write the output file, the fraction is positive (thus set to atomic fraction).
To Reproduce
A short code snippet of what you have ran.
Then my output file has previous material components with negative fraction (i.e weight fraction) and the one I just added is positive. I find no way to write it with a minus sign before.
MCNP input file snippet
My M99 Material with the hydrogen i just added.
Version
Additional context
I know this should be fixed in MontePy 1.0 but I'd like to know if there is a quick fix I could do because I really need to be able to configure my Materials
cards. Thank you!The text was updated successfully, but these errors were encountered: