Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
JoerivanEngelen committed Jan 30, 2024
1 parent e4f9ac4 commit 123e17f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xugrid/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ def partition(grids: list[UgridType]):


def unique_grids(grids: list[UgridType]):
"""
Find uniques in list of unhashable elements.
Source: https://stackoverflow.com/a/54964373
"""
return [p[0] for p in partition(grids)]

0 comments on commit 123e17f

Please sign in to comment.