-
Notifications
You must be signed in to change notification settings - Fork 4
Developer Guide
Spencer Burris edited this page Sep 2, 2021
·
24 revisions
The primary science camera at Manastash Ridge Observatory is an Andor CCD camera called Evora. The user interface for the camera is also called Evora, and is started from evora/
with python2 client/gui/gui.py
.
Important files are:
-
evora/client/gui/gui.py
: starts the client interface -
evora/common/classes/acquisition_classes.py
: handles everything in the imaging tab -
evora/common/netconsts.py
: constants relating to networking such as IP addresses and ports -
evora/server/andor/andor.py
: How evora_server.py calls the camera functions (like expose). "The functions in there are not to be trusted except for those "swigged". You can find the functions that are being swigged in atmcdLxd.i of the include folder." -
evora/server/server.py
: runs on machine physically connected to camera. -
evora/server/ftp_server.py
: how images are transferred from server to client -
evora/server/andor/include/
: andor.py is built here, and then copied to gui "upon" install of the drivers. -
evora-gui/main.qml
: defines the new GUI that is not in use yet
Note that the old version of wxPython (wxgtk3.0) is required, not the current version (wxPython v4.x, or Phoenix--a major overhaul of the package).
sudo apt install python2 python2-dev libwxgtk3.0-gtk3-0v5 libwxgtk3.0-gtk3-dev
pip2 install numpy astropy matplotlib twisted pandas mock pillow
pip2 install -e ../.
The last statement in the code block should be run in evora/
and is the installation of Evora itself. Once Evora is installed, run it from the evora directory, like this:
ScienceCamera/evora $ python client/gui/gui.py
Pip works for most libraries except:
- I used apt to install wxpython, have tested the pip install
- matplotlib with python2.7 may fail with the error that it can't find 'py27-backports-functools_lru_cache'. Solution is to:
sudo pip2 uninstall backports.functools-lru-cache
sudo apt install python-backports.functools-lru-cache