Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow distance override for multi-panel detectors #698

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

dagewa
Copy link
Member

@dagewa dagewa commented Feb 23, 2024

Previously distance overrides in dials.import were restricted to single panel detectors by assert len(detector) == 1. This PR lifts that restriction. If a multi-panel detector has a hierarchy it will have its root node distance set. If there is no hierarchy then each panel will individually have distance set, but only if those panels are coplanar and already at the same distance.

dagewa added a commit to dials/dials that referenced this pull request Feb 23, 2024
Copy link

codecov bot commented Feb 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 42.41%. Comparing base (f901366) to head (40fe02c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #698      +/-   ##
==========================================
+ Coverage   42.39%   42.41%   +0.01%     
==========================================
  Files         186      186              
  Lines       16362    16423      +61     
  Branches     3121     3145      +24     
==========================================
+ Hits         6937     6965      +28     
- Misses       8793     8819      +26     
- Partials      632      639       +7     

@dagewa dagewa merged commit 8f53e56 into cctbx:main Feb 26, 2024
13 checks passed
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.

None yet

2 participants