Skip to content

Commit 9591d58

Browse files
authored
Merge pull request #9080 from gem/kitefault
Caching the KiteFault surface
2 parents 5c017ce + 934aaf9 commit 9591d58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

openquake/hazardlib/source/kite_fault.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import collections
2222
import numpy as np
2323
from typing import Tuple
24+
from openquake.baselib import general
2425
from openquake.hazardlib import mfd
2526
from openquake.hazardlib.geo import Point, Polygon
2627
from openquake.hazardlib.geo.mesh import Mesh
@@ -129,7 +130,7 @@ def as_simple_fault(cls, source_id, name, tectonic_region_type,
129130
floating_y_step)
130131
return self
131132

132-
@property
133+
@general.cached_property
133134
def surface(self) -> KiteSurface:
134135
"""
135136
:returns:

0 commit comments

Comments
 (0)