idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
32 stars 7 forks source link

Create an ab initio parse method. #595

Open MicahGale opened 1 day ago

MicahGale commented 1 day ago

Description

This feature adds the ability to parse MCNP inputs arbitrarily. All MCNP_Object now accepts and parses str. This also introduces MCNP_Problem.parse which is a convenience function that just parses, and goes. This also adds the ability to pass a number to a constructor to simplify the build.

Fixes #88

Checklist

MicahGale commented 1 day ago

Also an open question is: if this should ship for 0.6 or 1.0