Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashpy with obspy #4

Open
angelcalayag opened this issue May 3, 2015 · 1 comment
Open

hashpy with obspy #4

angelcalayag opened this issue May 3, 2015 · 1 comment
Assignees

Comments

@angelcalayag
Copy link

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?

@markcwill
Copy link
Owner

Sorry, for some reason, this got lost in my notifications. Looks like the origin you want to run HASH on is not set as preferred? I will add the option to take the first origin in Event.origins if there is no preferred one, but IMHO always better to specify...

@markcwill markcwill self-assigned this Jan 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants