Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Fix issues in robot load found in testing #1051

Merged
merged 3 commits into from
Dec 18, 2023

Conversation

DominicOram
Copy link
Collaborator

Fixes #1049

To test:

  1. Confirm tests run
  2. Start hyperion
export BEAMLINE=i03
python -m hyperion --dev --skip-startup-connection

In another terminal run an xray centre then robot load plan: curl -X PUT http://127.0.0.1:5005/wait_for_robot_load_then_centre/start --data-binary "@tests/test_data/parameter_json_files/good_test_wait_for_robot_load_params.json" -H "Content-Type: application/json". Confirm this gives a success

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (7a30a6e) 93.75% compared to head (091569d) 93.72%.
Report is 42 commits behind head on main.

❗ Current head 091569d differs from pull request most recent head 1fa1436. Consider uploading reports for the commit 1fa1436 to get more accurate results

Files Patch % Lines
...specific/wait_for_robot_load_then_center_params.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1051      +/-   ##
==========================================
- Coverage   93.75%   93.72%   -0.03%     
==========================================
  Files          58       58              
  Lines        2801     2807       +6     
==========================================
+ Hits         2626     2631       +5     
- Misses        175      176       +1     

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

Copy link
Collaborator

@dperl-dls dperl-dls left a comment

Choose a reason for hiding this comment

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

Looks good, works for me. Not thrilled about having to make the parameter types Any, can we make an issue for this?

@@ -185,7 +185,7 @@ def put(self, plan_name: str, action: Actions):
)
if plan is None:
raise PlanNotFound(
f"Experiment plan '{plan_name}' has no 'run' method."
f"Experiment plan '{plan_name}' not found in context. Context has {self.context.plan_functions.keys()}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

@DominicOram
Copy link
Collaborator Author

Looks good, works for me. Not thrilled about having to make the parameter types Any, can we make an issue for this?

Managed to fix it by just removing the if TYPE_CHECKING

@DominicOram
Copy link
Collaborator Author

Test is transient, see #999. So I will merge this

@DominicOram DominicOram merged commit 442ceb6 into main Dec 18, 2023
3 of 4 checks passed
@DominicOram DominicOram deleted the 1049_hotfixes_from_robot_load_testing branch December 18, 2023 13:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Robot Load: Fix issues found in testing
2 participants