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

Set username for NNLoc / HYPO2000 relocation #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shicks-seismo
Copy link
Contributor

This was causing an error when the relocation was complete and Obspyck was trying to import the new catalogue / events.
Perhaps related to an older version of Obspy?

This was causing an error when the relocation was complete and Obspyck was trying to import the new catalogue / events.
Perhaps related to an older version of Obspy?
@megies
Copy link
Owner

megies commented Mar 31, 2017

Hmm.. no there must be something else wrong if this doesn't work. Inside obspyck I need to do an ugly monkey patch of man event-type obspy classes. Essentially we're not creating an obspy Event instance but an obspyck.event_helper.Event instance which has this method attached..

@shicks-seismo
Copy link
Contributor Author

Oh, I see - I hadn't thought about that.
Okay, will keep playing with the code a little more to narrow down the issue.
Will try and update you soon with the exact error message I get.

@shicks-seismo
Copy link
Contributor Author

Okay, so this is the error I get for the HYPO_2000 when I have the line set to
self.catalog[0].set_creation_info_username(self.username):

Traceback (most recent call last):
File "/Users/sph1r17/anaconda/envs/obspy_2.7/lib/python2.7/site-packages/obspyck-0.4.1.post0-py2.7.egg/obspyck/obspyck.py", line 447, in on_qToolButton_doHyp2000_clicked
self.loadHyp2000Data()
File "/Users/sph1r17/anaconda/envs/obspy_2.7/lib/python2.7/site-packages/obspyck-0.4.1.post0-py2.7.egg/obspyck/obspyck.py", line 2576, in loadHyp2000Data
self.catalog[0].set_creation_info_username(self.username)
File "/Users/sph1r17/anaconda/envs/obspy_2.7/lib/python2.7/site-packages/obspy/core/util/attribdict.py", line 125, in getattr
raise AttributeError(e.args[0])
AttributeError: set_creation_info_username

@megies
Copy link
Owner

megies commented Mar 31, 2017

Sorry.. I'm pretty tangled up working on obspy 1.1.0 release.. ping me next week if I don't respond the next days.. ;-)

Copy link
Owner

@megies megies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is something else, this fix is just curing the symptoms, unfortunately..

@shicks-seismo
Copy link
Contributor Author

Thanks. No rush as the 'fix' is working for me right now! Have a nice weekend.

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

Successfully merging this pull request may close these issues.

None yet

2 participants