marrink-lab / vermouth-martinize

Describe and apply transformation on molecular structures and topologies
Apache License 2.0
95 stars 43 forks source link

Write itp assumes nodes are in order #423

Open fgrunewald opened 2 years ago

fgrunewald commented 2 years ago

Apparently write itp get's the node indices from the order of the node-dict of a molecule not the actual key. This is actually problematic for example if you want to relabel a molecule. It would be better to use the actual indices or sort the graph or something along those lines.