Skip to content

COS frozen atoms sanity check#326

Open
RaphaelRobidas wants to merge 1 commit intoeljost:devfrom
RaphaelRobidas:cos_frozen_atoms_check
Open

COS frozen atoms sanity check#326
RaphaelRobidas wants to merge 1 commit intoeljost:devfrom
RaphaelRobidas:cos_frozen_atoms_check

Conversation

@RaphaelRobidas
Copy link

This PR adds a simple sanity check to make sure that frozen atoms have consistent positions across images of COS calculations.

This can catch off-by-one errors in atom indices, for example. The current behaviour is that no error will be raised and the frozen atoms will abruptly switch between positions somewhere along the string. I don't see any case where that could be preferable, so I'm suggesting this small patch.

I haven't added any test since I wasn't sure how reference structures should be handled, but here is a simple case that should trigger an exception:
cos_frozen_atoms_sanity_check_test.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant