Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3198be2

Browse files
committed
One more instance of check_in_list.
1 parent 7540cdd commit 3198be2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/tri/triinterpolate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ def _compute_dof(self, kind, dz=None):
479479
elif kind == 'min_E':
480480
TE = _DOF_estimator_min_E(self)
481481
else:
482-
raise ValueError("CubicTriInterpolator *kind* proposed: {0}; "
483-
"should be one of: "
484-
"'user', 'geom', 'min_E'".format(kind))
482+
cbook._check_in_list(['user', 'geom', 'min_E'], kind=kind)
485483
return TE.compute_dof_from_df()
486484

487485
@staticmethod

0 commit comments

Comments
 (0)