AI4EPS / PhaseNet

PhaseNet: A Deep-Neural-Network-Based Seismic Arrival Time Picking Method
MIT License
268 stars 111 forks source link

AttributeError: 'str' object has no attribute 'decode' #63

Closed zhong-yy closed 5 months ago

zhong-yy commented 2 years ago

Hi, Dr Zhu. I just tried the latest version and got an error AttributeError: 'str' object has no attribute 'decode', which is caused by line 191 in PhaseNet/phasenet//predict.py

...
fname_batch = [x.decode() for x in fname_batch]
...

I notice that this line was added in the latest change https://github.com/AI4EPS/PhaseNet/commit/9f551ca060749ac819a76a76e1ab0ad44f0bcf1c

Is this error due to any change in the input data format?

tt123890 commented 5 months ago

因为csv中的数据名称和mseed数据名称不一致

zhong-yy commented 5 months ago

因为csv中的数据名称和mseed数据名称不一致

名称是一致,我忘记当时怎么解决的了