DiamondLightSource / mx-bluesky

Bluesky plans, plan stubs, and utilities for MX beamlines
https://diamondlightsource.github.io/mx-bluesky/
Apache License 2.0
0 stars 2 forks source link

Automate finding the pixels_per_micron #386

Open DominicOram opened 1 year ago

DominicOram commented 1 year ago

We should be able to have a plan that for different zoom levels automatically finds the pixels per micron

npat113 commented 1 year ago

Notes for self.

Find tip of sharp pin in X/Y pixels at 2 points a distance apart (smargon move set distance). Distance will vary by zoom.

DominicOram commented 1 year ago

Whilst looking at the code for this in GDA @evalott100 and I believe we found that the GDA lookup file that contains zoom levels -> pixels_per_micron doesn't seem to contain values for the standard zoom levels GDA uses. e.g. there is a pixels_per_micron value for 7x and 8x zoom. But the closest preset zoom on the device in 7.5x. In this case GDA will use the value for 7 from the file. It would be good if when we do this calibration we make sure to take measurements at the preset values so we don't have to do any rounding at those.

DominicOram commented 1 year ago

Look at together e.g. where is flatfield assigned etc.

DominicOram commented 10 months ago

@DominicOram and @npat113 to sit on a beamline and do it together