Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.91 KB

microscope.rst

File metadata and controls

59 lines (43 loc) · 1.91 KB

Microscope class

The :class:`Microscope` class provides a Python interface to the microscope. Below are the main class properties, each represented by a separate class:

Image object

Two acquisition functions: :meth:`~pytemscript.microscope.Acquisition.acquire_tem_image` and :meth:`~pytemscript.microscope.Acquisition.acquire_stem_image` return an :class:`Image` object that has the following methods and properties:

.. autoclass:: pytemscript.microscope.Image
    :members: width, height, bit_depth, pixel_type, data, save, name, metadata


Example usage

microscope = Microscope()
curr_pos = microscope.stage.position
print(curr_pos['Y'])
24.05
microscope.stage.move_to(x=-30, y=25.5)

beam_shift = microscope.optics.illumination.beam_shift
defocus = microscope.optics.projection.defocus
microscope.optics.normalize_all()

Documentation

.. automodule:: pytemscript.microscope
    :members:
    :exclude-members: Image