This commit is contained in:
1 parent
7aeee1a029
commit
a126f7ccb4
6 files changed
+45
-17
No files matched your search
@@ -28,6 +28,12 @@ class SampleGeometryModel(BaseModel):
|
||||
def beam_size_pxl(self) -> Coordinate:
|
||||
return self.beam_size_mm / self.pixel_in_mm
|
||||
|
||||
|
||||
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
|
||||
def picture_to_sample(self, pic_pxl: Coordinate) -> Coordinate:
|
||||
# Relative to beam location
|
||||
|
||||
Reference in new issue
Block a user