instamatic-dev / instamatic

Python program for automated electron diffraction data collection
https://instamatic.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
57 stars 25 forks source link

Support for Direct Electron Cameras #89

Open CSSFrancis opened 1 month ago

CSSFrancis commented 1 month ago

Hi! Long time lurker here :) but just wondering what work would be needed to add in support for direct electron cameras?

We have an open api and I can help to add the functionality if this is something that seems reasonable.

stefsmeets commented 1 month ago

Hi @CSSFrancis , thanks for reaching out!

The main work is to set up an interface for the camera. Instamatic talks the camera via a camera class. The class exposes 2 methods: get_image and get_movie (optional), which users can access through instamatic uses to do their data collection. If there is an open api for the DE camerans, this essentially means wrapping the api so that instamatic can talk to the camera. I recently added support for the Merlin camera from Quantum detectors, see here for an example of the Camera class

You can look at the PRs to see the complete set of changes to get an idea:

Does that seem reasonable?