Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Developer Information

robelgeda edited this page May 8, 2018 · 4 revisions

To access the CubeVizLayout:

session.application.tab(index_of_cubviz_tab)

To access the CubevizImageViewer:

CubeVizLayout.<NameOfView>._widget

for toolbar:

         if self.contour_component is None:
            # Edit toolbar menu to check the off option
            menu = self.toolbar.actions['cubeviz:contour'].menu()
            actions = menu.actions()
            for action in actions:
                if 'Off' == action.text():
                    action.setChecked(True)
                    break
            self.remove_contour()

List of useful commands:

Install dev Version of CubeViz:

conda create -n cubeviz-dev-env -c http://ssb.stsci.edu/astroconda-dev cubeviz

Solve astropy version problem on git:

git submodule update

Creating a new development environment:

conda create -n cubeviz-dev python=3.6 numpy matplotlib pyqt
source activate cubeviz-dev
pip install bottleneck pytest-qt
cd /path/to/glue
python setup.py develop
cd /path/to/specviz
python setup.py develop
cd /path/to/cubeviz
python setup.py develop