Plans for python objects from MCNP output files? [short answer: no] #342
-
Sorry, I'm not following the feature request template since I'm thinking this project's scope is intentionally limited to input files but thought I would ask the question. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Yes as it now stands there is no plan to support output files. The main reasons for this are:
If one day MCNP implements H5 files, or really any standardized format really, for tallies, I'd be open to revisit this. |
Beta Was this translation helpful? Give feedback.
-
So believe it or not, I'm coming back to this thinking we should maybe reconsider. To be honest I had never actually tried to use mcnptools. It turns out that it is unbelievably slow (at least tests with a few imsht/meshtal's I had lying around). Natively reading the output file in python for some 4 different meshtallies (from a 160MB meshtal file) takes about 6 seconds while mcnptools takes 10x that (and the results are conceivably worse on a 1+GB file I have). Admittedly, the mcnptools code looks cleaner but it is very slow. LANL may be moving strictly to H5 files in which case MontePy could just offer some simple wrapper methods to extract data from the H5 files. Also, because I suspect they will move to HDF5, I wouldn't suggest any sort of parsing of regular output files near-term. However, I think the story is different for meshtals - near-term support could be of benefit. |
Beta Was this translation helpful? Give feedback.
-
This discussion should be briefly summarized on https://idaholab.github.io/MontePy/faq.html |
Beta Was this translation helpful? Give feedback.
Yes as it now stands there is no plan to support output files. The main reasons for this are:
If one day MCNP implements H5 files, or really any standardized format really, for tallies, I'd be open to revisit this.