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

Fixing bug when attempting to edit a cell geometry #562

Closed MicahGale closed 1 month ago

MicahGale commented 1 month ago

Description

An error is raised when a cell geometry is edited without being fully initialized and linked to the corresponding surfaces. Rather than letting this happen instead an IllegalState is raised. This error is really most a @MicahGale problem, and shouldn't be typical user behavior.

Fixes #558

Checklist