Releases: idaholab/MontePy
Releases · idaholab/MontePy
Release 0.5.1
Release 0.5.0
Features Added
- Added
clone
method to simplify making copies of objects (#469).
Performance Improvement
- Fixed cyclic memory reference that lead to memory leak in
copy.deepcopy
(#514). - Fixed O(N2) operation in how append works for object collections like Cells (#556).
Bug Fixes
- Fixed bug with parsing an
EO
input (#551). - Fixed a bug raised in an edge case when editing cell geometry, by making the error clearer (#558).
- Fixed bug with having a shortcut in a cell fill (#552).
- Fixed bug where file streams couldn't actually be read (#553).
Support
- Added support for Python 3.13, and removed support for Python 3.8, and officially added support NumPy 1 & 2 (#548).
Release 0.4.1
Features Added
- Added support for reading an input from either file paths or streams (file handles) with
montepy.read_input
(#519).
Bug Fixes
- Fixed a bug where
problem.materials.append_renumber
would double add a material toproblem.data_inputs
(#516). - Fixed bug where material-level library specifications (e.g.,
m1 plib=84p
) could not be fully parsed (#521). - Fixed bug with shortcuts right after another shortcut (e.g.,
1 2M 3R
) not being properly recompressed on export (#499). - Fixed bug with shortcuts in cell geometry definitions not being recompressed on export (#489).
- Fixed bug where leading comments were not always transferred to the appropriate input. (#352, #526).
Performance Improvement
- Fixed method of linking
Material
toThermalScattering
objects, avoiding a very expensive O(N 2) (#510).
Deprecations
- Marked
Material.material_components
as deprecated, and created migration plan describing what to expect moving forward (#506).
Release 0.4.0
Features Added
- Write problems to either file paths or streams (file handles) with MCNP_Problem.write_problem() (#492).
- When adding a material to problem.materials it will also be added to problem.data_inputs, ensuring it is printed to the file (#488).
Bug Fixes
- Fixed bug that didn't show metastable states for pretty printing and isotope. Also handled the case that Am-241 metstable states break convention (#486).
- Fixed bug where cell modifiers could be made irrelevant by being added after a comment (#483).
- Fixed bug where parentheses in cell geometry are not properly exported (#491).
Release 0.3.3
Bug fixes
- Fixed bug with material compositions not being updated when written to file (#470).
- Fixed bug with appending and renumbering numbered objects from other MCNP problems (#466).
- Fixed bug with dynamic typing and the parsers that only appear in edge cases (#461).
- Fixed parser bug with having spaces in the start of the transform input for the fill of a cell (#479).
- Fixed bug with trying to get trailing comments from non-existant parts of the syntax tree (#480).
Code Quality
- Simpler
Isotope
representation (#473).
Release 0.3.2
Bug fixes
- Fixed bug with trailing dollar sign comments that moved them to a new line. (#458).
Release 0.3.1
Bug fixes
- Fixed parser bug with parsing cells with implicit intersection, e.g.,
(1:-2)(3:-4)
. (#355).
Release 0.3.0
Release 0.2.10
Bug Fixes
- Fixed bug with parsing tally segments (#377)
Note: v0.2.9 was skipped due to this version already being taken on test PyPI due to CI testing.