From 8108cac1f8e95e61339968dd3df51f790b36bfd5 Mon Sep 17 00:00:00 2001 From: Stef Smeets Date: Fri, 8 Feb 2019 17:55:24 +0100 Subject: [PATCH] Add missing HT value getter --- instamatic/TEMController/jeol_microscope.py | 3 +++ instamatic/TEMController/simu_microscope.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/instamatic/TEMController/jeol_microscope.py b/instamatic/TEMController/jeol_microscope.py index a3e1126d..974fa2c1 100644 --- a/instamatic/TEMController/jeol_microscope.py +++ b/instamatic/TEMController/jeol_microscope.py @@ -121,6 +121,9 @@ def setNeutral(self, *args): arg = self.NTRLMAPPING[arg] self.def3.setNTRL(arg) + def getHTValue(self): + return self.ht3.GetHTValue() + def getBrightness(self) -> int: value, result = self.lens3.GetCL3() return value diff --git a/instamatic/TEMController/simu_microscope.py b/instamatic/TEMController/simu_microscope.py index 82b489e8..5b9a2254 100644 --- a/instamatic/TEMController/simu_microscope.py +++ b/instamatic/TEMController/simu_microscope.py @@ -105,6 +105,9 @@ def __init__(self, name: str="simulate"): self.objectivelensefine_value = random.randint(MIN, MAX) self.objectiveminilens_value = random.randint(MIN, MAX) + def getHTValue(self): + return 200000 + def getBrightness(self) -> int: return self.Brightness_value