added update_cell
This commit is contained in:
@@ -28,6 +28,12 @@ class ArcticLibrary:
|
||||
return getattr(self.lib, name)
|
||||
|
||||
|
||||
def update_cell(self, symbol, index, column, value):
|
||||
df = self.get_data(symbol, index)
|
||||
df.at[index, column] = value
|
||||
self.set_data(symbol, df)
|
||||
|
||||
|
||||
def get_data(self, symbol, index=None):
|
||||
if index is not None:
|
||||
index = encode_index(index)
|
||||
|
||||
+1
-4
@@ -85,10 +85,7 @@ def update_adb(evt):
|
||||
new_val = evt.args["newValue"]
|
||||
|
||||
row_id = int(row_id)
|
||||
lib = adb.get(beamline)
|
||||
df = lib.get_data(pgroup, row_id)
|
||||
df.at[row_id, col_id] = new_val
|
||||
lib.set_data(pgroup, df)
|
||||
adb.get(beamline).update_cell(pgroup, row_id, col_id, new_val)
|
||||
|
||||
|
||||
def update_grids(evt):
|
||||
|
||||
Reference in New Issue
Block a user