Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5304c45

Browse filesBrowse files
authored
Merge pull request #16808 from anntzer/inlist
MNT: One more instance of check_in_list.
2 parents 2c845db + 3198be2 commit 5304c45
Copy full SHA for 5304c45

File tree

Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-3
lines changed

‎lib/matplotlib/tri/triinterpolate.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tri/triinterpolate.py
+1-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.