Skip to content

add eiger timeouts availability - #806

Merged
stan-dot merged 3 commits into
mainfrom
256-parameterise-all_frames_timeout-in-eiger
Nov 13, 2024
Merged

stan-dot merged 3 commits into
mainfrom
256-parameterise-all_frames_timeout-in-eiger

Conversation

@stan-dot

Copy link
Copy Markdown
Contributor

Fixes #256

Instructions to reviewer on how to test:

  1. Dodal connect i03
  2. should be successful

Checks for reviewer

  • Would the PR title make sense to a scientist on a set of release notes
  • If a new device has been added does it follow the standards
  • If changing the API for a pre-existing device, ensure that any beamlines using this device have updated their Bluesky plans accordingly
  • Have the connection tests for the relevant beamline(s) been run via dodal connect ${BEAMLINE}

@stan-dot stan-dot added enhancement New feature or request python Pull requests that update Python code low priority Not needed for production in the near future i03 labels Sep 25, 2024
@stan-dot stan-dot self-assigned this Sep 25, 2024
@stan-dot stan-dot linked an issue Sep 25, 2024 that may be closed by this pull request
@stan-dot
stan-dot force-pushed the 256-parameterise-all_frames_timeout-in-eiger branch from 6cfa033 to 5422a2a Compare November 8, 2024 16:08
@stan-dot
stan-dot force-pushed the 256-parameterise-all_frames_timeout-in-eiger branch from 5422a2a to 74e712d Compare November 12, 2024 12:04
@stan-dot
stan-dot marked this pull request as ready for review November 12, 2024 12:05
@codecov

codecov Bot commented Nov 12, 2024 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.64%. Comparing base (f896461) to head (b174c13).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #806   +/-   ##
=======================================
  Coverage   95.63%   95.64%           
=======================================
  Files         128      128           
  Lines        5271     5279    +8     
=======================================
+ Hits         5041     5049    +8     
  Misses        230      230           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@olliesilvester olliesilvester left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, looks good. Just one comment

Comment thread src/dodal/devices/eiger.py Outdated
if beamline in AVAILABLE_TIMEOUTS:
self.timeouts = AVAILABLE_TIMEOUTS[beamline]
else:
raise ValueError(f"Unknown beamline_name: {beamline}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could: I think it's better to use i03's timeout values as defaults rather than raising an error here. Then we could log a message to say that default values are being used

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please could you also add a test for this line

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok will do today

@stan-dot
stan-dot merged commit bd1bae5 into main Nov 13, 2024
@stan-dot
stan-dot deleted the 256-parameterise-all_frames_timeout-in-eiger branch November 13, 2024 16:25
@DominicOram DominicOram mentioned this pull request Nov 19, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request i03 low priority Not needed for production in the near future python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameterise ALL_FRAMES_TIMEOUT in eiger

2 participants