smousavi05 / EQTransformer

EQTransformer, a python package for earthquake signal detection and phase picking using AI.
https://rebrand.ly/EQT-documentations
MIT License
301 stars 148 forks source link

Modifications needed in Eqt_Utils.py file? #136

Closed alirezaniki closed 2 years ago

alirezaniki commented 2 years ago

Dear @smousavi05

I may be wrong with this but apparently, it seems there's a typo in line 921 of EqT_utils.py:

if sst and (sst-20 >= 0) and (sst-20 < self.dim): should be: if sst and (sst-20 >= 0) and (sst+20 < self.dim) ??

smousavi05 commented 2 years ago

@alirezaniki right, it seems they should be +20. Although it is hard to believe that I left such an obvious thing and there might be a reason for that, I have changed it in the code. Thanks for pointing it out.