uafgeotools / mtuq

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

Need for small QOL improvement for mtuq.event.Force #223

Closed thurinj closed 10 months ago

thurinj commented 10 months ago

The mtuq.event.Force() is currently lacking a method that outputs the force vector as a dictionary.

It would be convenient to have a similar method that in [mtuq.event.Force()] (https://github.com/uafgeotools/mtuq/blob/ce9aab7f15517b68d9cd420176449d84275c00c9/mtuq/event.py#L102)

so that it is easier to build an output dictionary to save it as a JSON file (as in DetailedAnalysis.py)

rmodrak commented 10 months ago

@thurinj Could you please double check that this is correct?

https://github.com/rmodrak/mtuq/blob/db33907642652eb93a91d932004ffe641202065e/mtuq/event.py#L201

thurinj commented 10 months ago

Looks good to me!

rmodrak commented 10 months ago

Added in #224