Skip to content

DistanceMatrix accept AtomGroup #3486

@lilyminium

Description

@lilyminium

Is your feature request related to a problem?

Is there any reason DistanceMatrix cannot accept an AtomGroup inplace of a Universe? This would help with atomgroups created through non-selection-string ways, which you then need to re-create with atom indices. e.g.
https://groups.google.com/g/mdnalysis-discussion/c/ad4HW_6w2MM/m/-h3bRDv0DgAJ?utm_medium=email&utm_source=footer

Describe the solution you'd like

Here:

super(DistanceMatrix, self).__init__(universe.trajectory, **kwargs)
self.atoms = universe.select_atoms(select)

- universe.trajectory
+ universe.universe.trajectory

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions