GNS-Science/nzshm-model

Proposal: freeze TRTs

Opened this issue · 0 comments

By definition a GMCMBranchSet should have the same tectonic_region_type for every branch and a SourceBranchSet should have the same tectonic_region_types for every branch. Currently, users could change branches or the branch fields to violate these rules. We want a way to ensure that any changes to the branches in a XBranchSet do not violate the rules. This should be the case when:

  • user changes tectonic_region_types or tectonic_region_type of a SourceBranch or GMCMBranch, respectivly
  • user adds a branch to the BranchSet.branches list
  • user replaces the BranchSet.branches list

It is OK to freeze SourceBranch and GMCMBranch as part of a potential solution