734 grid using callbacks#901
Conversation
…een skipped and new issue # raised
d-perl
left a comment
There was a problem hiding this comment.
Looks great. Because we have discussed this so much in person I don't think there's any more to do for this change.
| assert gridscan_params.x_start == 0.0005 | ||
| assert gridscan_params.y1_start == -0.0001 | ||
| assert gridscan_params.z1_start == -0.0001 | ||
| assert gridscan_params.x_start == 0.1 |
There was a problem hiding this comment.
Why did these values change?
There was a problem hiding this comment.
Yh, it's worrying that this changed, why did it?
There was a problem hiding this comment.
gridscan_params = GridScanParams() is located in fast_grid_scan.py.
The values for x_start, y1_start and z1_start are defined in the GridScanParams class to begin with.
I change it to 0.1 since that is what the test is expecting in order to pass.
Is it wise to change the values of 0.0005, -0.0001, -0.0001 for x_start, y1_start and z1_start respectively in GridScanParams()?
There was a problem hiding this comment.
No, that won't fix the problem.
Previously, the default parameter of x_start = 0.1 in GridScanParams was modified in grid_detection_plan in line 167: out_parameters.x_start = start_positions[0][0], so the default value was replaced before the assertion in the test is run.
What is different about the way start_positions[0][0] used to be calculated in grid_detection_plan compared to how GridDetectionCallback calculates start_positions now?
DominicOram
left a comment
There was a problem hiding this comment.
Looks great, some comments in there
| self.box_widths: list = [] | ||
| self.no_of_boxes: list = [] |
There was a problem hiding this comment.
Should: Are these used? Can we remove them?
There was a problem hiding this comment.
I just did a quick test and debug. They are not used so it will be removed
| assert gridscan_params.x_start == 0.0005 | ||
| assert gridscan_params.y1_start == -0.0001 | ||
| assert gridscan_params.z1_start == -0.0001 | ||
| assert gridscan_params.x_start == 0.1 |
There was a problem hiding this comment.
Yh, it's worrying that this changed, why did it?
Fixes #734
Tests using:
have been skipped by using
@pytest.mark.skipas_fake_grid_detectiondoes not have real enough parameters to pass the tests. I will raise a new issue for this.To test: