GUI: Move sample in Smargon Z with shift+click
This commit is contained in:
1 parent
a126f7ccb4
commit
4e15624036
3 files changed
+7
-2
No files matched your search
@@ -31,7 +31,6 @@ class SampleGeometryModel(BaseModel):
|
||||
|
||||
def smargon_z(self, pic_y: float) -> Coordinate:
|
||||
y_mm = (pic_y - self.beam_location_pxl.y) * self.pixel_in_mm
|
||||
print("Moving by ", y_mm, "mm in z direction.")
|
||||
return self.smargon.sh_mm + self.smargon_nudge(Coordinate(z=y_mm))
|
||||
|
||||
# This goes from image coordinates to relative beam coordinates in image plane
|
||||
|
||||
Reference in new issue
Block a user