Skip to content

Commit

Permalink
Tentative fix for dataarray coord sorting in interp
Browse files Browse the repository at this point in the history
  • Loading branch information
yaugenst-flex committed Jul 5, 2024
1 parent 8150a09 commit a1ef16c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidy3d/components/data/data_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def interp(

obj = self if assume_sorted else self.sortby(list(coords.keys()))

points = tuple(dict(obj.coords).values())
points = tuple(obj.coords[k] for k in obj.dims)
xi = tuple(coords.get(k, obj.coords[k]) for k in obj.dims)
vals = interpn(points, obj.tracers, xi, method=method)

Expand Down

0 comments on commit a1ef16c

Please sign in to comment.