usnistgov / PyHyperScattering

Tools for hyperspectral x-ray and neutron scattering data loading, reduction, slicing, and visualization.
Other
6 stars 8 forks source link

When loading a json mask description, the mask property could not find self.annotator.object #36

Closed ktoth17 closed 2 years ago

ktoth17 commented 2 years ago

In the IntegrationUtils.py, when loading a parametric mask description from a json dump file, the mask property could not find self.annotator.object.

image

This could be fixed by adding the following to the load method: self.path_annotator( self.fig * self.poly.opts( width=self.frame.shape[1], height=self.frame.shape[0], responsive=False), annotations=['Label'], vertex_annotations=['Value'])