We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8d4f91 commit 19b5c69Copy full SHA for 19b5c69
modelskill/model/grid.py
@@ -170,10 +170,10 @@ def _extract_point(
170
# TODO: avoid runtrip to pandas if possible (potential loss of metadata)
171
if "z" in self.data.dims and z is not None:
172
ds = self.data.interp(
173
- coords=dict(x=x, y=y, z=z), method=method # type: ignore
+ coords=dict(x=float(x), y=float(y), z=float(z)), method=method # type: ignore
174
)
175
else:
176
- ds = self.data.interp(coords=dict(x=x, y=y), method=method) # type: ignore
+ ds = self.data.interp(coords=dict(x=float(x), y=float(y)), method=method) # type: ignore
177
# TODO: exclude aux cols in dropna
178
df = ds.to_dataframe().drop(columns=["x", "y"]).dropna()
179
if len(df) == 0:
0 commit comments