Skip to content

Commit 5f6a526

Browse files
committed
Fix condition to fetch age of trench
1 parent 196abbf commit 5f6a526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stagpy/plates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def detect_plates(step, vrms_surface, fids, time):
111111
print('deleting from ridge', trench, ridge[argdel])
112112
ridge = np.delete(ridge, np.array(argdel))
113113

114-
if 'age' in conf.plates.plot:
114+
if 'age' in step.fields:
115115
agefld = step.fields['age'].values[0, :, :, 0]
116116
age_surface = np.ma.masked_where(agefld[:, indsurf] < 0.00001,
117117
agefld[:, indsurf])

0 commit comments

Comments
 (0)