Skip to content

Commit

Permalink
Add missing HT value getter
Browse files Browse the repository at this point in the history
  • Loading branch information
stefsmeets committed Feb 8, 2019
1 parent 7e1a462 commit 8108cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions instamatic/TEMController/jeol_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions instamatic/TEMController/simu_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

1 comment on commit 8108cac

@asdfdsa
Copy link
Contributor

@asdfdsa asdfdsa commented on 8108cac Feb 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was gonna pull request you about this :)

Please sign in to comment.