-
Notifications
You must be signed in to change notification settings - Fork 9
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
Create an ab initio parse method to quickly make new objects from an MCNP string. #595
Conversation
Also an open question is: if this should ship for 0.6 or 1.0 |
Also keep in mind this is merging into alpha-test and not dev. So trying it out can be part of alpha testing. |
I deleted the tests from #597. I think the testing from |
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.
A very nice and useful feature.
See the comments below for one thing to fix, some necessary documentation, and one question.
I figure that 0.2.0 was really the second major release, so marking the changes from the first to second major release now that we are on the third is no longer necessary.
Description
This feature adds the ability to parse MCNP inputs arbitrarily. All
MCNP_Object
now accepts and parsesstr
. This also introducesMCNP_Problem.parse
which is a convenience function that just parses, and goes. Theappend
option controls if this new object is added to the problem or not. This also adds the ability to pass a number to a constructor to simplify the build.Fixes #88
Checklist
📚 Documentation preview 📚: https://montepy--595.org.readthedocs.build/en/595/