Commit ea9ed58d authored by Christian Schneider's avatar Christian Schneider
Browse files

Limited extract_x and extract_y functions just for select range

parent 99dcc40d
......@@ -178,7 +178,7 @@ class data_grid(data_module_base):
x, y = self.df.dims[:2]
kws = {x: x0}
ex = self.df.sel(method='nearest', **kws)
data = data_table([np.array(self.df.coords[y]), np.array(ex)],
data = data_table([self.y, np.array(ex)[self.y_min:self.y_max]],
[y, self.name_v])
data.par = self.par
data.comments = self.comments
......@@ -215,7 +215,7 @@ class data_grid(data_module_base):
x, y = self.df.dims[:2]
kws = {y: y0}
ex = self.df.sel(method='nearest', **kws)
data = data_table([np.array(self.df.coords[x]), np.array(ex)],
data = data_table([self.x, np.array(ex)[self.x_min:self.x_max]],
[x, self.name_v])
data.par = self.par
data.comments = self.comments
......
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