CCA Source Model and reduce_sm

42 views
Skip to first unread message

Mostafa Nayyerloo

unread,
Sep 11, 2024, 7:38:23 AM9/11/24
to OpenQuake Users
Hi there,

Just wondering if the Caribbean and Central America source model can be reduced using reduce_sm? I get an error message which I'm guessing has to do with some non-parametric sources in the CCA source model. Any thoughts on how this model can be reduced would be much appreciated. I'm only interested in the Trinidad part of the CCA model.

Thanks,
Mostafa

Marco Pagani

unread,
Sep 12, 2024, 2:18:26 AM9/12/24
to OpenQuake Users

I am also (presumably) getting the same error:

  File "/Users/mpagani/Repos/venv3pt11/src/oq-engine/openquake/commonlib/readinput.py", line 1367, in ok
    code = tag2code[re.search(r'\}(\w+)', src_node.tag).group(1)]

KeyError: 'nonParametricSeismicSource'

We will look into this. For the time being reduction of the source model is possible only manually.

Thanks for signalling.

--
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/2a9edfb7-1b61-43a9-9f8d-14db4c3884c7n%40googlegroups.com.
Message has been deleted

Mostafa Nayyerloo

unread,
Sep 12, 2024, 8:30:27 AM9/12/24
to OpenQuake Users
Thanks Marco.

Marco Pagani

unread,
Sep 12, 2024, 8:35:55 AM9/12/24
to OpenQuake Users

Mostafa, Michele has already fixed the bug. If you pull the OQ master you should be able to complete your task.

Message has been deleted

Mostafa Nayyerloo

unread,
Sep 12, 2024, 10:13:34 AM9/12/24
to OpenQuake Users
Perfect, thank you both!  

Mostafa Nayyerloo

unread,
Sep 12, 2024, 4:55:55 PM9/12/24
to OpenQuake Users
Hi Marco, 

I did some tests using the latest Windows package. It works fine with no errors but does not remove any sources, which is strange. Would you be able please to have a look. 

Thanks,
Mostafa
Reply all
Reply to author
Forward
0 new messages