vitaldb api 관련 #377

junmo kim (2021-03-29 08:50) · 82 view(s)

Traceback (most recent call last):
  File "/home/kicarus/PycharmProjects/autoregulation/compare_v3_1.py", line 85, in <module>
    COx_save(i)
  File "/home/kicarus/PycharmProjects/autoregulation/compare_v3_1.py", line 63, in COx_save
    data, indicator = vital_load(tfile, freq, lr=lr)
  File "/home/kicarus/PycharmProjects/autoregulation/utils.py", line 96, in vital_load
    trk = vitaldb.vital_trks(path)
  File "/home/kicarus/PycharmProjects/autoregulation/vitaldb.py", line 420, in vital_trks
    vf = VitalFile(ipath)
  File "/home/kicarus/PycharmProjects/autoregulation/vitaldb.py", line 57, in __init__
    self.load_vital(ipath, dtnames)
  File "/home/kicarus/PycharmProjects/autoregulation/vitaldb.py", line 229, in load_vital
    port, pos = unpack_str(buf, pos)
  File "/home/kicarus/PycharmProjects/autoregulation/vitaldb.py", line 20, in unpack_str
    strlen = unpack_dw(buf, pos)[0]
struct.error: unpack_from requires a buffer of at least 4 bytes

 

내부 API에 혹시 문제가 있을 수도 있지 않을까 하는 노파심에 에러 로그를 전달드립니다.