Skip to content

Releases: idaholab/MontePy

Release 0.5.2

13 Nov 06:06
Compare
Choose a tag to compare

Error Handling

  • Added the input file, line number, and the input text to almost all errors raised by MCNP_Object (#581).

Documentation

  • Updated README.
  • Updated all demo code to be tested, and corrected bugs.

Release 0.5.1

30 Oct 17:25
Compare
Choose a tag to compare

Bug Fixes

  • Fixed AttributeError that occured when a data block IMP was preceded by a comment (#580).
  • Fixed bug where tally inputs in a file prevented the file from being pickled or copied (#463).

Release 0.5.0

15 Oct 21:42
Compare
Choose a tag to compare

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

12 Sep 21:37
Compare
Choose a tag to compare

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 to problem.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 to ThermalScattering 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

23 Aug 00:36
Compare
Choose a tag to compare

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

13 Aug 18:36
Compare
Choose a tag to compare

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

23 Jul 12:15
Compare
Choose a tag to compare

Bug fixes

  • Fixed bug with trailing dollar sign comments that moved them to a new line. (#458).

Release 0.3.1

19 Jul 16:59
Compare
Choose a tag to compare

Bug fixes

  • Fixed parser bug with parsing cells with implicit intersection, e.g., (1:-2)(3:-4). (#355).

Release 0.3.0

17 Jul 22:43
Compare
Choose a tag to compare

Features Added

  • overwrite argument added to MCNP_Problem.write_to_file to ensure files are only overwritten if the user really wants to do so (#443).

Bug fixes

  • Fixed bug with SDEF input, and made parser more robust (#396).

Merge Requests

#435, #438, #439, #443, #444, #440, and #431.

Release 0.2.10

01 Jul 20:45
Compare
Choose a tag to compare

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.