Repository navigation
Tomography testing - #55
tomkane-dls wants to merge 28 commits into
Conversation
6392aec to
b299666
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #55 +/- ##
===========================================
+ Coverage 50.70% 78.57% +27.86%
===========================================
Files 5 5
Lines 213 252 +39
===========================================
+ Hits 108 198 +90
+ Misses 105 54 -51 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Co-authored-by: Shihab S <[email protected]>
…rom dodal (XThetaStage for tmography and sample stage rename
f7d59dc to
fee59c1
Compare
ac7b1a5 to
53947a6
Compare
…rom dodal (XThetaStage for tmography and sample stage rename
| detector = inject("spectroscopy_detector") | ||
| diodes = inject("spectroscopy_diodes") | ||
| pandabox = inject("pandabox") | ||
| sample_stage = inject("spectroscopy_stage") | ||
| stage = inject("spectroscopy_stage") |
There was a problem hiding this comment.
I'm not sure I agree with the re-name here. From my point of view, if the stage is called spectroscopy_stage everywhere else (i.e. Dodal and other plans files within this repo), it makes more sense for it to always be called spectroscopy_stage, rather than shortening it here. Same for the detector.
There was a problem hiding this comment.
Okay yes I agree with you, I think they should all mirror the dodal names at this point. Do you agree with shortening them as the actual plan arguments?
There was a problem hiding this comment.
I think for the specific scans (i.e. spectroscopy or tomography), there's not really a reason to shorten them? As it's a very specific scan rather than a generic one (i.e. fly_scan), and it only works with that specific detector/device, I'm not sure it makes sense to shorten the arguments if the only think you can use is the spectroscopy_detector. I think really what I want to avoid is something like this:
def my_specifc_plan(
detector: specific_detector,
device: specific_stage,
): ...| detector = inject("tomography_detector") | ||
| stage = inject("tomography_stage") | ||
| tomography_flip_mirror = inject("tomography_flip_mirror") | ||
| spectroscopy_flip_mirror = inject("spectroscopy_flip_mirror") |
There was a problem hiding this comment.
Same for this one, I think it's just more confusing if we're truncating device names within each plan. Personally, I'd rather have the same name for the device all the time.
| ImageType.DARK: (SAMPLE_OUT_X, False), | ||
| ImageType.FLAT: (SAMPLE_OUT_X, True), |
There was a problem hiding this comment.
I'm a bit confused on the difference between true/false sample out. I would have though you need two positions - out and in - and then to specify between one of those two positions?
There was a problem hiding this comment.
Ah sorry if it is confusing, I will try and make it less so
ImageType is an enum which in that dictionary gives: a float value for the H position of tomography + boolean of whether the light is on. SAMPLE_OUT_X is a constant defined at the top.
So
ImageType.DARK = (sample out, light off)
ImageType.FLAT = (sample out, light on)
ImageType.PROJECTION = (sample in, light on)
There was a problem hiding this comment.
Ah, this is just me not reading well enough! Thanks for the explanation, that makes much more sense now.
There was a problem hiding this comment.
I think just to set an example we could use different numbers for SAMPLE_IN_X and SAMPLE_OUT_X or make SAMPLE_OUT_X a plan parameter even if it is not exposed on the UI.
hyperrealist
left a comment
There was a problem hiding this comment.
Just a couple of minor comments.
| ImageType.DARK: (SAMPLE_OUT_X, False), | ||
| ImageType.FLAT: (SAMPLE_OUT_X, True), |
There was a problem hiding this comment.
I think just to set an example we could use different numbers for SAMPLE_IN_X and SAMPLE_OUT_X or make SAMPLE_OUT_X a plan parameter even if it is not exposed on the UI.
| @@ -201,35 +297,32 @@ def demo_tomography( | |||
| scan_type: ScanType, | |||
There was a problem hiding this comment.
demo_tomography no longer accepts LightSource. Update PR description.
Frontend changes to form -> atlas
General
Spectroscopy renames (spectroscopy_plans.py, plans.py)
Tomography plan
Tests