scexao-org / camstack

EDT cam stack - python + minimal imgtake.c
5 stars 2 forks source link

[WIP] Cam start script #5

Closed mileslucas closed 7 months ago

mileslucas commented 1 year ago

Proof of concept for #4

Example usage (on alala)

(base) alala@alala:~/src/camstack$ python -m camstack.cam_mains.main miles
Starting MILES in tmux session miles_ctrl
DEBUG: using camstack.cam_mains.miles_orcam
Finished initiating camera. Inspect miles_ctrl for further debug information (some cameras take a little longer to start).

Function Mapping

What do you think about the CAM_METHOD in __init__.py for organizing the camera names and how to start them? If you think this config should be part of some other package or module then let's figure that out.

Accuracy/Reliability

I've copied over a minimal subset of the tmux commands, what do you think, is it safe enough to use for all the cameras, are there corner cases to consider?

Logging

Print statements are fine, but what do you think about logging?