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

tutorial examples do not work #2

Open
ArthurRodgers opened this issue Nov 7, 2023 · 2 comments
Open

tutorial examples do not work #2

ArthurRodgers opened this issue Nov 7, 2023 · 2 comments

Comments

@ArthurRodgers
Copy link

I tried to run the tutorial examples in Guide_run_MTUQ_scripts.ipynb and they run to estimate the source, but fail on plotting with "NameError: name 'trace_labels' is not defined"

I'm trying to emulate your example for a synthetic example my 3D data but was not able to run tutorial example successfully.

Also, it seems the data file naming (eventid.net.sta.loc.BH.chan [zrt]) and units (velocity in cm/sec?) is fixed. Both mtuq and mtuq_supp have strict conventions that are not clear

@SeismoFelix
Copy link
Collaborator

Hi @ArthurRodgers, thank you for trying the examples provided here. Did you update to the latest pulled version of MTUQ? The issue with trace_labels was already addressed: uafgeotools/mtuq@da13de3

About the unit issue, you are right. Thank you for pointing this out. This example is hard coded for working with cm or cm/s depending on whether the observed waveforms are in displacement or velocity. I will improve the example to make it flexible in that way. In the meantime, you can modify this and write, for instance, 'm' if this is the unit you are willing to work with.

Finally, for simplicity, either the physical magnitude of the observed data is displacement or velocity, the units tag preserves the displacement magnitude (i.e., 'cm' or 'm'). Therefore, in the combination tags=['units:cm', 'type:velocity'.format(data_unit)]), it is assumed that the tag 'units:cm' means that the observed data is expected in cm/s.

If the issue persists after updating MTUQ, please share the issue with a screen-shot or a detailed description of the error.

Best

@ArthurRodgers
Copy link
Author

ArthurRodgers commented Nov 8, 2023 via email

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