Skip to content

I15-1: Allow specifying an attenuation per each point on the PDF - #201

Merged
DominicOram merged 7 commits into
mainfrom
i15_1_attenuation
Sep 10, 2026
Merged

I15-1: Allow specifying an attenuation per each point on the PDF#201
DominicOram merged 7 commits into
mainfrom
i15_1_attenuation

Conversation

@DominicOram

Copy link
Copy Markdown
Collaborator

See DiamondLightSource/crystallography-bluesky#127

Note:

  • The collection_specification.json on disk has not yet been updated, will do so once this is released

To test:

  • Confirm new tests pass

@jacob-williamson jacob-williamson left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good thanks, one suggestion, take it or leave it

@field_validator("transmission")
@classmethod
def _validate_transmission(cls, transmission: float) -> float:
allowed_transmissions = [100, 50, 10, 1, 0.1, 0.01, 0.001]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm guessing these always match these, if possible could we define them in one place? Might be tricky as we don't want the config server depending on ophyd-async for StrictEnum

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yh, they are. I did think about trying to map them in someway but like you said, I'm not sure where it would naturally live. I will sleep on it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Discussed in person, we will just validate in dodal, not here

@DominicOram
DominicOram merged commit c890df9 into main Sep 10, 2026
15 checks passed
@DominicOram
DominicOram deleted the i15_1_attenuation branch September 10, 2026 11:09
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