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

add eiger timeouts availability #806

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

stan-dot
Copy link
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
Copy link

codecov bot commented Nov 12, 2024

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.

Copy link
Collaborator

@olliesilvester olliesilvester left a comment

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

if beamline in AVAILABLE_TIMEOUTS:
self.timeouts = AVAILABLE_TIMEOUTS[beamline]
else:
raise ValueError(f"Unknown beamline_name: {beamline}")
Copy link
Collaborator

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
Collaborator

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
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
19 checks passed
@stan-dot stan-dot deleted the 256-parameterise-all_frames_timeout-in-eiger branch November 13, 2024 16:25
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