Closed keflavich closed 9 years ago
Should the viewer work at all if the dendrogram is loaded from disk? Perhaps not. It would be nice to have a clear example of how to load a dendrogram + the originating file separately and create a viewer from the pair.
Hi Adam, this might be my fault! I introduced the wcs object in pull request #126 (https://github.com/dendrograms/astrodendro/pull/126) and didn't update @ChrisBeaumont who I think was interested in updating the "save/load" functionality to be wcs-aware.
On Wed, Sep 17, 2014 at 4:35 AM, Adam Ginsburg notifications@github.com wrote:
Should the viewer work at all if the dendrogram is loaded from disk? Perhaps not. It would be nice to have a clear example of how to load a dendrogram + the originating file separately and create a viewer from the pair.
— Reply to this email directly or view it on GitHub https://github.com/dendrograms/astrodendro/issues/129#issuecomment-55864360 .
Yep, at a minimum Dendrogram.wcs needs to be initialized to None or something that keeps the viewer from breaking. Better still to preserve wcs during saving/loading
Closed via #137
A dendrogram object read from hdf5 has no wcs attribute, which breaks the viewer: