You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feels deceptively like MontePy has lost the information. Thankfully, it hasn't. The Surface just doesn't know about tr2 and the Cell doesn't know about m9 or any of the surfaces, so it doesn't display them. Proof:
In either __str__ or __repr__, reveal the old information when it doesn't match the available information. In this case, that would be the transform, the material, and the cell region or constituent surfaces. Example of what I'd like to see:
Always reveal "old_*" information, if present. This seems superfluous when nothing has changed.
Show the "old_" information as if it is the current information with whatever information is available. This is actually my personal preference. Example:
Is your feature request related to a problem? Please describe.
With #595, it is possible to create objects by parsing MCNP strings.
Example:
This feels deceptively like MontePy has lost the information. Thankfully, it hasn't. The
Surface
just doesn't know abouttr2
and theCell
doesn't know aboutm9
or any of the surfaces, so it doesn't display them. Proof:Describe the solution you'd like
In either
__str__
or__repr__
, reveal the old information when it doesn't match the available information. In this case, that would be the transform, the material, and the cell region or constituent surfaces. Example of what I'd like to see:Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: