applyToSources: Error or Skip on Missing Source ID?

18 views
Skip to first unread message

Sung chan wi

unread,
Sep 23, 2025, 4:04:16 AMSep 23
to OpenQuake Users

Hello,

I need a quick clarification on the engine's behavior.

I am using different source model files (source_model_A.xml, source_model_B.xml).

  • source_model_A.xml contains a source with id="A1".

  • source_model_B.xml does not contain id="A1".

Consider this logic tree, which does not use applyToBranches:

<logicTree logicTreeID="lt1">
  <logicTreeBranchSet branchSetID="bs_teams" uncertaintyType="sourceModel">
    <logicTreeBranch branchID="bA">
      <uncertaintyModel>source_model_A.xml</uncertaintyModel>
      <uncertaintyWeight>0.5</uncertaintyWeight>
    </logicTreeBranch>
    <logicTreeBranch branchID="bB">
      <uncertaintyModel>source_model_B.xml</uncertaintyModel>
      <uncertaintyWeight>0.5</uncertaintyWeight>
    </logicTreeBranch>
  </logicTreeBranchSet>

  <logicTreeBranchSet branchSetID="bs_Mmax_A1"
                      uncertaintyType="maxMagGRAbsolute"
                      applyToSources="A1">
    </logicTreeBranchSet>
</logicTree>

Question:

When the logic tree selects the path with source_model_B.xml, what happens? Does the engine:

  1. Fail with an error because source A1 is not found?

  2. Skip the BranchSet and continue the calculation?

This will help me understand if applyToBranches is strictly required to prevent errors in this case.

Thank you.


Marco Pagani

unread,
Sep 30, 2025, 8:07:12 AM (12 days ago) Sep 30
to OpenQuake Users

Hi, it should fail, but you can easily test it by yourself.

--
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 visit https://groups.google.com/d/msgid/openquake-users/cdd3db22-f46f-4a10-8fa3-26000e5ba4b1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages