Uh oh!
There was an error while loading. Please reload this page.
Add description attribute to Model - #3956
Conversation
Allow users to attach a free-text description to a Model instance. The description is written as a <description> element in model XML and read back on import. An empty description is omitted from the output.
GuySten
left a comment
There was a problem hiding this comment.
Looks good to me.
@EdenRochmanSharabi, next time please keep the default pull request checklist.
paulromano
left a comment
There was a problem hiding this comment.
LGTM! Sorry for the delay on this relatively simple PR. Note that I fixed one issue on the branch with respect to XML escaping (modified test illustrates the problem).
@eepeterson@shimwell Do you guys have any opinions on this? If my memory serves me correctly, I feel like some combination of us had discussed this before.
shimwell
commented
Jul 22, 2026
I am in favor of meta like this model.description . I think we had chatted about meta data in the nuclear data before which is perhaps related. but yes LGTM |
Uh oh!
There was an error while loading. Please reload this page.
Closes#3586.
Adds a
descriptionproperty toModelthat allows users to attacha free-text description to a model instance.
<description>element in model XMLand read back via
from_model_xml.check_type.Tests cover round-trip serialization, empty-description omission, and
empty round-trip.