Skip to content

Commit

Permalink
dims_to_collapse always tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Nov 1, 2023
1 parent 9d1aa93 commit 9e9117f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ def collapsed(self, dims_to_collapse: Optional[Dims] = None) -> "Coord":
# through to numpy
if isinstance(dims_to_collapse, (int, np.integer)):
dims_to_collapse = (dims_to_collapse,)
if isinstance(dims_to_collapse, list):
if isinstance(dims_to_collapse, Iterable):
dims_to_collapse = tuple(dims_to_collapse)

if np.issubdtype(self.dtype, np.str_):
Expand Down

0 comments on commit 9e9117f

Please sign in to comment.