Skip to content

hashpy with obspy #4

@angelcalayag

Description

@angelcalayag

Hi, I was trying to use hashpy with an input file from obspy and ran into an error below.

Traceback (most recent call last):
  File "hashpyusage.py", line 23, in <module>
    hp.input(event, format="OBSPY")
  File "/Users/user/anaconda/lib/python2.7/site-packages/hashpy/hashpype.py", line 297, in input
    inputter(self, data, *args, **kwargs)
  File "/Users/user/anaconda/lib/python2.7/site-packages/hashpy/io/core.py", line 82, in __call__
    return self._input(*args, **kwargs)
  File "/Users/user/anaconda/lib/python2.7/site-packages/hashpy/io/obspyIO.py", line 31, in inputOBSPY
    hp.tstamp = _o.time.timestamp
AttributeError: 'NoneType' object has no attribute 'time'

I'm running the usage example code Mark wrote here: https://github.com/markcwill/hashpy under Input/Output.

Has anyone encountered this before?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions