提交 f0329767 编辑于 作者: Mijian Xu's avatar Mijian Xu 😷
浏览文件

fix bugs of judge_rf

上级 7a8cb972
import numpy as np
from numpy.core.getlimits import _KNOWN_TYPES
from numpy.lib.arraysetops import isin
import obspy
from obspy.io.sac import SACTrace
......@@ -354,7 +353,7 @@ class eq(object):
# Final RMS
if rmsgate is not None:
if isin(self.rms, np.ndarray):
if isinstance(self.rms, np.ndarray):
rms = self.rms[-1]
else:
rms = self.rms
......
支持 Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册