If you’re editing this class - Microscope located at asyncroscopy/Microscope.py, you’re usually doing one of these:
Adding or modifying attributes of the base Microscope (Expose new device state that clients can read.)
Updating attribute read/write methods of the base Microscope (Control how attribute values are validated, stored, or synchronized with AutoScript.)
Adding or modifying commands
get_imageget_spectrum
ADD a new functionality pertaining to a microscope api - Adding Internal acquisition helpers in the base Microscope
examples - already existing
_acquire_stem_image_acquire_stem_image_advanced_acquire_spectrum
Changing the transport format (Modify DevEncoded usage, metadata schema, caching policy, or multi-image retrieval semantics.)
Improving robustness (Handle connection failures, missing proxies, AutoScript errors, simulation fallback logic, or state transitions like
FAULT,ON,OFF.)