Skip to content

Default angular separation#1447

Open
tfteague wants to merge 5 commits into
mainfrom
default_angular_separation
Open

Default angular separation#1447
tfteague wants to merge 5 commits into
mainfrom
default_angular_separation

Conversation

@tfteague

@tfteague tfteague commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Added $(-1, 0, 0, 0)$ as a default equivalent quaternion to AngularSeparationNeighbor, AngularSeparationGlobal, and LocalBondProjection, in response to an open issue.

Motivation and Context

The quaternions $(1, 0, 0, 0)$ and $(-1, 0, 0, 0)$ both represent the identity, and so in all physical applications should both be used.

Resolves: #1241

How Has This Been Tested?

Added a test, test_compute_defaults for AngularSeparationGlobal in test_environment_angular_separation.py to ensure the default value provides the correct angular displacement.

Checklist:

@tfteague tfteague linked an issue Jul 1, 2026 that may be closed by this pull request
Comment thread ChangeLog.md

* MSD with `mode=="direct"` is now slightly faster (#1414).
* Nematic order parameter is now ~40x faster. (#1428)
* Changed default equivalent orientations to include (-1,0,0,0) for `AngularSeparationNeighbor`, `AngularSeparationGlobal`, and `LocalBondProjection`(#1241)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Changed default equivalent orientations to include (-1,0,0,0) for `AngularSeparationNeighbor`, `AngularSeparationGlobal`, and `LocalBondProjection`(#1241)
* Changed default equivalent orientations to include (-1,0,0,0) for `AngularSeparationNeighbor`, `AngularSeparationGlobal`, and `LocalBondProjection`(#1447)

Our chanagelogs typically use the PR # , rather than the associated issue!

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.

Change default behavior of AngularSeparation

2 participants