Skip to content

Commit

Permalink
Generate descriptions/ancillary data for members
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Apr 20, 2024
1 parent 546fd70 commit db29263
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/yamcs/pymdb/xtce.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,6 +862,16 @@ def add_aggregate_parameter_type(
member_el.attrib["name"] = str(member.name)
member_el.attrib["typeRef"] = member_type_name

if member.short_description:
member_el.attrib["shortDescription"] = member.short_description

if member.long_description:
ET.SubElement(member_el, "LongDescription").text = (
member.long_description
)
if member.extra:
self.add_ancillary_data(member_el, member.extra)

if isinstance(member, AbsoluteTimeMember):
self.add_absolute_time_parameter_type(
parent,
Expand Down

0 comments on commit db29263

Please sign in to comment.