Skip to content

Commit

Permalink
Minor bugfixes, revert unwanted accidental changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Baharis committed Feb 10, 2025
1 parent 5b9baf6 commit 65c962e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/instamatic/microscope/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import threading
import time
from functools import wraps
from typing import Any, Callable
from typing import Any, Callable, Dict

from instamatic import config
from instamatic.exceptions import TEMCommunicationError, exception_list
Expand Down Expand Up @@ -92,7 +92,7 @@ def wrapper(*args, **kwargs):

return wrapper

def _eval_dct(self, dct: dict[str, Any]) -> Any:
def _eval_dct(self, dct: Dict[str, Any]) -> Any:
"""Takes approximately 0.2-0.3 ms per call if HOST=='localhost'."""
self.s.send(dumper(dct))

Expand Down
4 changes: 2 additions & 2 deletions src/instamatic/microscope/interface/jeol_microscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ def setStagePosition(
if z is not None and abs(nz - z) > 500:
logger.warning(f'stage.z -> requested: {z}, got: {nz}')
if a is not None and abs(na - a) > 0.057:
logger.warning(f'stage.a -> requested: {a}, got: {na}')
logger.warning(f'stage.a -> requested: {a:.1f}, got: {na:.1f}')
if b is not None and abs(nb - b) > 0.057:
logger.warning(f'stage.b -> requested: {b}, got: {nb}')
logger.warning(f'stage.b -> requested: {b:.1f}, got: {nb:.1f}')

def is_goniotool_available(self):
"""Return goniotool status."""
Expand Down

0 comments on commit 65c962e

Please sign in to comment.