ground_motion_logic_tree
logic_tree
¶
Defines ground motion characterisation model logic tree structures used in NSHM.
GMCMBranch
dataclass
¶
Bases: Branch
A branch of the GMCM logic tree
Identifies the ground motion model (gsim) and any arguments
Attributes:
Name | Type | Description |
---|---|---|
gsim_name |
str
|
the name of the ground motion model |
gsim_args |
Dict[str, Any]
|
a dict of argument names and values |
Source code in nzshm_model/logic_tree/gmcm_logic_tree/logic_tree.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
|
filtered_branch(logic_tree, branch_set)
¶
get a filtered branch containing reference to parent instances.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
logic_tree
|
the gmcm logic tree containing the branch |
required | |
branch_set
|
the branch set containing the branch |
required |
Returns:
Type | Description |
---|---|
GMCMFilteredBranch
|
a BMCMFilteredBranch instance |
Source code in nzshm_model/logic_tree/gmcm_logic_tree/logic_tree.py
27 28 29 30 31 32 33 34 35 36 37 |
|
GMCMBranchSet
dataclass
¶
Bases: BranchSet[GMCMBranch]
A list of GMCM branches that apply to a particular tectonic region.
Attributes:
Name | Type | Description |
---|---|---|
tectonic_region_type |
str
|
the tectonic region type TRT that the branch set applies to. |
branches |
List[GMCMBranch]
|
list of branches. |
Source code in nzshm_model/logic_tree/gmcm_logic_tree/logic_tree.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|
GMCMLogicTree
dataclass
¶
Bases: LogicTree['GMCMFilteredBranch']
A dataclass representing the ground motion characterisation model logic tree.
Attributes:
Name | Type | Description |
---|---|---|
branch_sets |
List[GMCMBranchSet]
|
list of GMCM branch sets that comprise the logic tree. |
Source code in nzshm_model/logic_tree/gmcm_logic_tree/logic_tree.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|