CompuCell3D / CompuCell3D

CompuCell3D public source code repository
63 stars 39 forks source link

Reorder itmes in the xml for cell type definitions #424

Open jpsluka opened 3 years ago

jpsluka commented 3 years ago

Twedit++ creates cell type XML definitions like

      <CellType TypeId="0" TypeName="Medium"/>
      <CellType TypeId="1" TypeName="PGC"/>
      <CellType Freeze="" TypeId="2" TypeName="signalon"/>

It would be better if the "Freeze" tag was last in the XML so the cell typeId's lineup vertically.

      <CellType TypeId="0" TypeName="Medium"/>
      <CellType TypeId="1" TypeName="PGC"/>
      <CellType TypeId="2" TypeName="signalon" Freeze=""/>
CompuCell3D commented 3 years ago

Agree. I think this was a consequence of using dictionaries to order attributes - hence ordering is driven by Python or C++ dictionary ordering schedme