Skip to content

Commit

Permalink
#86 Added setObjectiveLenseCoarse and setObjectiveLenseFine (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Binary-Vanguard-12138 authored Jul 11, 2024
1 parent 8ab89ec commit eb4e885
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/instamatic/TEMController/fei_simu_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,15 @@ def getCondensorMiniLens(self):
def getObjectiveLenseCoarse(self):
return self.objectivelensecoarse_value

def setObjectiveLenseCoarse(self, value: int):
self.objectivelensecoarse_value = value

def getObjectiveLenseFine(self):
return self.objectivelensefine_value

def setObjectiveLenseFine(self, value: int):
self.objectivelensefine_value = value

def getObjectiveMiniLens(self):
return self.objectiveminilens_value

Expand Down
6 changes: 6 additions & 0 deletions src/instamatic/TEMController/jeol_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,17 @@ def getObjectiveLenseCoarse(self) -> int:
value, result = self.lens3.GetOLc()
return value

def setObjectiveLenseCoarse(self, value: int):
self.lens3.SetOLc(value)

def getObjectiveLenseFine(self) -> int:
# fine objective focus
value, result = self.lens3.GetOLf()
return value

def setObjectiveLenseFine(self, value: int):
self.lens3.SetOLf(value)

def getObjectiveMiniLens(self) -> int:
# no setter
value, result = self.lens3.GetOM()
Expand Down
6 changes: 6 additions & 0 deletions src/instamatic/TEMController/simu_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,8 +534,14 @@ def getCondensorMiniLens(self) -> int:
def getObjectiveLenseCoarse(self) -> int:
return self.objectivelensecoarse_value

def setObjectiveLenseCoarse(self, value: int):
self.objectivelensecoarse_value = value

def getObjectiveLenseFine(self) -> int:
return self.objectivelensefine_value

def setObjectiveLenseFine(self, value: int):
self.objectivelensefine_value = value

def getObjectiveMiniLens(self) -> int:
return self.objectiveminilens_value

0 comments on commit eb4e885

Please sign in to comment.