Skip to content

Conversation

ryanfeathers
Copy link
Contributor

No description provided.

if self.preexposure is not None:
sort_idxs = self.preexposure[ind].argsort()
else:
sort_idxs = self.ctfscalefactor[ind].argsort()
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a stable=True here? The scale factor cannot distinguish between symmetric tilts, e.g. -3 and +3, but by doing a stable sort, we can at least preserve tilt ordering that is already sorted, instead of making it random.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call! I think they should be sorted by exposure order either from Warp or RELION5 so that makes the most sense. Sort by ctfscalefactor is the current default behavior

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.

2 participants