Skip to content

Mx bluesky 221 document the gridscan#263

Merged
ndevenish merged 5 commits intomainfrom
mx-bluesky_221_document_the_gridscan
Mar 20, 2025
Merged

Mx bluesky 221 document the gridscan#263
ndevenish merged 5 commits intomainfrom
mx-bluesky_221_document_the_gridscan

Conversation

@rtuck99
Copy link
Collaborator

@rtuck99 rtuck99 commented Dec 16, 2024

Submitted as part of DiamondLightSource/mx-bluesky#221

This PR adds some comments and test code to better document the output of the gridscans. However there are a few points to mention/things I'd appreciate some feedback on:

  • I added some additional dependencies to the requirements.conda.txt in order to get the unit tests to run. They still don't all pass but at least they run. Sort of.
  • The project appears to support/require Python 3.8/9 according to setup.cfg but the tests don't compile unless you have at least 3.10
  • I commented out the test case for negative snaking as the implementation flips the axis orientation and I wasn't sure whether this was supported or used
  • I didn't revert the changes in Sanitize unrolling snaked grid scans #253, so the tree is still broken but I can do that in a separate PR if you wish - I think rather than a plain revert it would be better to make the code non-mutating.

rtuck99 and others added 5 commits March 18, 2025 13:35
This is required, but most of the time this is used it's installed on
top of a dials that hasn't been installed through conda, so adding
this here would probably try to install dials via conda on top of
dials
@rtuck99 rtuck99 force-pushed the mx-bluesky_221_document_the_gridscan branch from 0e7701f to dbd6b2b Compare March 18, 2025 13:36
@ndevenish ndevenish merged commit 695a533 into main Mar 20, 2025
@ndevenish ndevenish deleted the mx-bluesky_221_document_the_gridscan branch March 20, 2025 15:03
),
[dlstbx.util.xray_centering_3d.GridScan3DResult(
centre_of_mass=(2.5, 1.5, 0.5),
max_voxel=(2.5, 1.5, 0.5),
Copy link
Contributor

Choose a reason for hiding this comment

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

This test fails raising pydantic error as max_voxel parameter is declared in GridScan3DResult class as max_voxel: Tuple[int, ...].

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.

3 participants