hirokawa / cssrlib-data

Sample scripts and dataset for CSSRlib
Other
27 stars 8 forks source link

About errors 「KeyError: <sCType.CBIAS: 3>」 #33

Closed niuxiansen2 closed 1 day ago

niuxiansen2 commented 5 days ago

Dear Dr. hirokawa,

Thank you for providing this excellent code. However, I have one question about some errors while running it

Traceback` (most recent call last):
  File "/content/cssrlib-data/samples/test_ppprtcm.py", line 192, in <module>
    _, _, eph = cs.decode(msg[k:k+cs.len+3])
  File "/usr/local/lib/python3.10/dist-packages/cssrlib/rtcm.py", line 1651, in decode
    i = self.decode_cssr_cbias(msg, i)
  File "/usr/local/lib/python3.10/dist-packages/cssrlib/rtcm.py", line 526, in decode_cssr_cbias
    if timediff(self.time, self.lc[inet].t0[sCType.CBIAS]) > 0:
KeyError: <sCType.CBIAS: 3>

Thank you very much! Best regards.

AndreHauschild commented 5 days ago

I assume you are using the main branch? This issue is fixed in the devel branch. Please try using this instead.

niuxiansen2 commented 4 days ago

I assume you are using the main branch? This issue is fixed in the devel branch. Please try using this instead.

Thank you so much for your helpful response ,I use the code from the devel branch, it run successfully.