Commit 10bab41e authored by Christian Schneider's avatar Christian Schneider
Browse files

Added status messages for Tektronix Spectrum Analyzer

parent 5764f3f1
......@@ -71,39 +71,37 @@ class data_grid(data_module_base):
@property
def x(self):
"""Default for two dim grid: Return first dimension"""
return self.return_coord(self.name_x)[self.x_min:self.x_max]
return self.return_coord(self.name_x)
@x.setter
def x(self, value):
self.df.coords[self.name_x][self.x_min:self.x_max] = value
self.df.coords[self.name_x] = value
@property
def y(self):
"""Default for two dim grid: Return second dimension"""
return self.return_coord(self.name_y)[self.y_min:self.y_max]
return self.return_coord(self.name_y)
@y.setter
def y(self, value):
self.df.coords[self.name_y][self.y_min:self.y_max] = value
self.df.coords[self.name_y] = value
@property
def z(self):
"""Default for two dim grid: Return values"""
return np.array(self.df.values)[self.x_min:self.x_max,
self.y_min:self.y_max]
return np.array(self.df.values)
@z.setter
def z(self, values):
self.df.values[self.x_min:self.x_max, self.y_min:self.y_max] = values
self.df.values = values
@property
def values(self):
return np.array(self.df.values)[self.x_min:self.x_max,
self.y_min:self.y_max]
return np.array(self.df.values)
@values.setter
def values(self, values):
self.df.values[self.x_min:self.x_max, self.y_min:self.y_max] = values
self.df.values = values
def rename_x(self, new_name):
self.df = self.df.rename({self.name_x: new_name})
......
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