Skip to content

Should Interchange.minimize also modify topology positions? #1202

@pbuslaev

Description

@pbuslaev

Description
I used Interchange.minimize() to optimize the conformation of a small molecule only. The positions were updated in the Interchange, but not in Interchange.topology. That was a bit confusing, since I wanted to write down sdf for a minimized ligand, but I got exactly the same coordinates as in input.

I thought that it can be, that not all interchanges have the topology attribute, but I breifly checked that most of the Interchange constructors also generate topology attribute. So why not adding the following line to minimize method?

self.topology.set_positions(self.positions)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions