Commit 85f78282 authored by Gerhard Kirchmair's avatar Gerhard Kirchmair
Browse files

Bugfix for extract function

parent 5facd2cc
......@@ -176,7 +176,8 @@ class data_grid(data_module_base):
data_table module
"""
x, y = self.df.dims[:2]
ex = self.df.sel(x=x0, method='nearest')
kws = {x: x0}
ex = self.df.sel(method='nearest', **kws)
data = data_table([np.array(self.df.coords[y]), np.array(ex)],
[x, y])
data.par = self.par
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment