-
Notifications
You must be signed in to change notification settings - Fork 4
Developer Guide
Spencer Burris edited this page Jun 24, 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 by running gui/photoAquisitionGUI.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).
pip install numpy
pip install astropy
pip install matplotlib
pip install twisted
pip install pandas
apt install wxgtk3.0
pip install -e ../.
The last statement in the code block 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