Skip to content

DLS I16 loader#110

Merged
clatlan merged 11 commits into
clatlan:masterfrom
DanPorter:i16_loader
Jul 3, 2026
Merged

DLS I16 loader#110
clatlan merged 11 commits into
clatlan:masterfrom
DanPorter:i16_loader

Conversation

@DanPorter

@DanPorter DanPorter commented May 5, 2026

Copy link
Copy Markdown
Contributor

Implementation of CDIUtils for the I16 beamline at Diamond Light Source.

  • I16 uses single NeXus files per scan so this has lead to a change in inputs for certain of the loader functions. The NeXus files contain all the detector details and this is extracted.
  • I16 has a 6-circle diffractometer involving 4 Eulerian rotations of the sample, however I can't figure out how to add more than 2 - some advice would be appreciated on how to do this (see the TODOs).
  • A geometry entry has been added for I16. This has been tested on the beamline and should be correct.
  • I've added an i16 specific notebook and made some changes to the prepare_bcdi_notebooks.py script to allow this to be run (it will run automatically if the instrument environment variable is present).

The notebooks run on the beamline in a prepared python environment including PyNX.
Still todo: I need to make some changes to allow cluster submission at DLS.

Comment thread src/cdiutils/__init__.py
Comment thread src/cdiutils/io/i16.py Outdated
DanPorter added 2 commits May 11, 2026 11:38
ruff format and ruff check --fix
ruff format and ruff check --fix
@DanPorter

Copy link
Copy Markdown
Contributor Author

Changes made above. Thanks for the suggestions about multiple axes - these will have to wait for a future PR, along with cluster submission changes. I suggest this is merged as is as it works for standard rocking scans in the vertical geometry.

@clatlan clatlan merged commit fe1d598 into clatlan:master Jul 3, 2026
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