You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was failing when I opened this bug last week, but this kadi dwell is no longer failing. I don't know if that's because the events3.db3 is different or because COBSRQID now has more data for get_obsid().
In [1]: from kadi import events
In [2]: dwells = events.dwells.filter(start__exact='2024:283:22:32:53.312')
In [3]: dwells
Out[3]: <Dwell: start=2024:283:22:32:53.312 dur=2122>
In [4]: dwells[0].get_obsid()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[4], line 1
----> 1 dwells[0].get_obsid()
File /proj/sot/ska3/flight/lib/python3.11/site-packages/kadi/events/models.py:525, in BaseModel.get_obsid(self)
523 obsids = query.obsids.filter(start, start)
524 if len(obsids) != 1:
--> 525 raise ValueError(
526 "Expected one obsid at {} but got {}".format(start, obsids)
527 )
528 return obsids[0].obsid
ValueError: Expected one obsid at 2024:283:22:32:53.312 but got
The text was updated successfully, but these errors were encountered:
No biggie then if kadi.events.dwells are deprecated - I think I should be able to use manvr.obsid in all cases, I was just surprised by this behavior on the dwells.
This was failing when I opened this bug last week, but this kadi dwell is no longer failing. I don't know if that's because the events3.db3 is different or because COBSRQID now has more data for get_obsid().
The text was updated successfully, but these errors were encountered: