Closed mattwthompson closed 3 months ago
I'll take a stab at this tomorrow.
This seems like a clear bug and the fix is likely unambiguous. I'll be offline tomorrow, Monday, and Tuesday, so feel free to self-merge and cut a Toolkit release without waiting for my approval!
Describe the bug
Atom names (
_SimpleAtom.name
), and likely other values are, are lost when adding a_SimpleMolecule
to a topology because this is lost in the round-trip between its dict representation.To Reproduce
Take for granted that I have a
_SimpleMolecule
in memory with non-default atom names.Output
Computing environment (please complete the following information):
conda list
Additional context
Under the hood,
Topology.add_molecule
calls_SimpleMolecule.__deepcopy__
, which goes through the dict representation. There's probably more that's lost.