weixin_39747577 2020-11-20 20:17
浏览 0

problem with getPaz ? or my code ?

dataless = Parser("dataless.seed")


 timereq = UTCDateTime(2009, 1, 1, 1, 21, 58, 849998)

 paz = dataless.getPAZ("NZ.BFZ.10.HHZ", timereq)

 gives me the error message : TypeError?: getPAZ() takes exactly 2 arguments (3 given)

该提问来源于开源项目:obspy/obspy

  • 写回答

11条回答 默认 最新

  • weixin_39747577 2020-11-20 20:17
    关注

    [anonymous] Replying to [ticket:165 anonymous]:

    
     dataless = Parser("dataless.seed") 
    <p>timereq = UTCDateTime(2009, 1, 1, 1, 21, 58, 849998)</p>
    <p>paz = dataless.getPAZ("NZ.BFZ.10.HHZ", timereq)</p>
    <p>gives me the error message : TypeError?: getPAZ() takes exactly 2 arguments (3 given)
    </p>

    Sorry - this problem disappeared after updating code version; using easy_install, but I now hit a problem with

    File "/home/stephen/mypython/lib/python2.6/site-packages/obspy.xseed-0.4.0-py2.6.egg/obspy/xseed/parser.py", line 435, in getPAZ

    
    [complex(x, y) for x, y in zip(resp.real_zero,
    

    AttributeError: 'Blockette053' object has no attribute 'real_zero'

    评论

报告相同问题?