oda-hub / dispatcher-plugin-integral

Other
1 stars 1 forks source link

failed: isgri_lc TypeError('Cannot compare structured or void to non-void arrays.') #106

Closed volodymyrss closed 1 year ago

volodymyrss commented 1 year ago

it's a bug and it obstucts @ferrigno . Not sure if this is not plugin. I try to address quickly but I am a bit blocked by the meeting.

if @burnout87 can help quickly it's much appreciated. Else I do a bit later.

https://sentry.io/organizations/cdci/issues/3805109826/?query=is%3Aunresolved&referrer=issue-stream

image

volodymyrss commented 1 year ago

this is not properly captured to sentry

ERROR:cdci_data_analysis.flask_app.dispatcher_query:failed to get query products
Traceback (most recent call last):
  File "/pyenv/versions/3.8.5/lib/python3.8/site-packages/cdci_data_analysis/analysis/queries.py", line 523, in get_query_products
    prod_list = self.build_product_list(instrument,res, scratch_dir,api=api)
  File "/pyenv/versions/3.8.5/lib/python3.8/site-packages/cdci_osa_plugin/osa_lightcurve_query.py", line 457, in build_product_list
    prod_list = OsaLightCurve.build_isgri_lc_from_ddosa_res(res,
  File "/pyenv/versions/3.8.5/lib/python3.8/site-packages/cdci_osa_plugin/osa_lightcurve_query.py", line 150, in build_isgri_lc_from_ddosa_res
    OsaLightCurve.ensure_timedel(du)
  File "/pyenv/versions/3.8.5/lib/python3.8/site-packages/cdci_osa_plugin/osa_lightcurve_query.py", line 94, in ensure_timedel
    if 'TIMEDEL' in du.data:
TypeError: Cannot compare structured or void to non-void arrays.
ferrigno commented 1 year ago

it looks that the extension is not empty, but the data property is empty, a possible patch https://github.com/oda-hub/dispatcher-plugin-integral/pull/107

volodymyrss commented 1 year ago

@ferrigno I was able to see a lightcurve in you "finished empty" request. Since it's only post-processing, just clicking on links should be enough (i.e. no caches are affected).

ferrigno commented 1 year ago

Reissuing the query worked. The New source in Cyg X-1 looks reasonable.