You can use something like this:
imt_list = ['PGA', 'SA(0.2)']
oqp = {'imtls': {k: [] for k in imt_list}, 'mags': mags_str}
ctxm = ContextMaker('fake', gmms, oqp)
ctxs = list(ctxm.get_ctx_iter([rup], sites))
--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/8ee3752d-4781-46d2-b46e-b666869d7be6n%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/kOLGwM8f_6g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/4fdf3dda-3cde-48c8-9887-e53f2877bb76n%40googlegroups.com.
Thank you Marco!
Note: after updating OQ, I have also started to get this warning:TusaLanger2016RepiBA08SE cannot contain the methods ['_get_stddevs', '_compute_distance', '_compute_magnitude', '_get_site_amplification', '_get_site_type_dummy_variables']
TusaLanger2016RepiSP87SE cannot contain the methods ['_compute_distance', '_compute_magnitude']
TusaLanger2016Rhypo cannot contain the methods ['_compute_distance']Anything to worry about?
--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/kOLGwM8f_6g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/9d302eb8-b7cc-463b-bde2-e941140acfe4n%40googlegroups.com.