Closed joshuarwood closed 3 months ago
Yes, it appears the quaternion and scpos are not being passed on creation. Looks like the fix should be here. Should simply retrieve the values from one of the input objects and pass them as kwargs as in your example calling .from_data()
.
As an aside, you can get around the plotting issue by with the following:
skyplot.add_localization(g2, detectors=[])
.
Perhaps the default should be to plot no detectors, but that is a separate issue...
Using the
multiply()
member of the GbmHealPix class results in a map that cannot be plotted. Here is example code to reproduce the issue:where
path
is a path to any valid GBM localization. Here is the failure trace:It appears to be a result of the frame object not being generated. I suspect the multiply function might not be preserving scpos and quaternion fields. I'll take a closer look tomorrow. At the moment I can fix the error by adding the following line after multiplication:
This forces the creation of the frame object, but seems counterintuitive to me.