Skip to content

Periodic/Nonperiodic keywords to selections #759

@richardjgowers

Description

@richardjgowers

So currently we have some geometric selections which allow you to select atoms based on absolute and relative positions. These can work with and without periodic boundary conditions, both are useful at different times.

The use of PBC is currently controlled by flags, which I think we're moving towards removing (#315) so instead a keyword in the selection could be used.

u.select_atoms('A around B distance C selection D')

u.select_atoms('A point B x y z C distance D')

So with the above selections, there are positions A -> D where we could put the keyword.

Position A would be tricky as the keyword precedes the token, but it could be done. ('periodic around 7.0 protein')

D is messy for the around case as generally anything after C gets made into another selection.

I think C reads best.. ('around 7.0 periodic protein')

So tl;dr

  • add periodic keyword?
  • what should the default be? (probably same as currently?)
  • where to put the periodic keyword?

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions