uafgeotools / mtuq

moment tensor uncertainty quantification
BSD 2-Clause "Simplified" License
67 stars 22 forks source link

Possible discussion topic: Combined PySEP + MTUQ workflow #258

Open rmodrak opened 6 months ago

rmodrak commented 6 months ago

An approach for generating event-specific MTUQ scripts from PySEP config files:

https://github.com/rmodrak/mtuq_script_generator/blob/3e2181639da4615822e5610c077a06d19827288c/mtuq_script_generator.py#L110

Generating event-specific MTUQ scripts in this way can help avoid some tedious copying and pasting. Also, could be helpful as UAF seeks a reproducible, standardized workflow?

bch0w commented 6 months ago

Hi @rmodrak, this looks like a great idea. Let me know if you need anything on the PySEP end.

One thing I'll note is that since the scope of PySEP has broadened, the current, default PySEP settings do not create the requisite MTUQ files, so a user would have to know which flags to turn on to get the required weights files, and output with a file naming format that MTUQ can parse.

Perhaps adding a flag, e.g., pysep ./config.yaml --mtuq_ready (or similar naming) could help standardize things for MTUQ input, and would be useful for MTUQ users?

Some relevant PySEP issues for reference: https://github.com/adjtomo/pysep/issues/118, https://github.com/adjtomo/pysep/issues/125, https://github.com/adjtomo/pysep/issues/129

rmodrak commented 6 months ago

Thanks for these comments and linked issues, much appreciated. Any flags or options that support Carl's way or working could be helpful.

UAF could perhaps develop its own templates, or even its own generator based on the above? I will try to remember to bring up over Zoom...