renamed: update_cell -> set_cell

This commit is contained in:
2026-06-03 22:59:29 +02:00
parent 7823abaea7
commit 0c41198b4f
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class ArcticLibrary:
return getattr(self.lib, name)
def update_cell(self, symbol, index, column, value):
def set_cell(self, symbol, index, column, value):
df = self.get_data(symbol, index)
df.at[index, column] = value
self.set_data(symbol, df)
+1 -1
View File
@@ -53,7 +53,7 @@ def append_run(beamline: Beamline, pgroup: PGroup, run: int, row: dict[str, Any]
@router.put("/pgroups/{pgroup}/runs/{run}/entries/{entry}")
def set_entry(beamline: Beamline, pgroup: PGroup, run: int, entry: str, value: Any):
adb.get(beamline).update_cell(pgroup, run, entry, value)
adb.get(beamline).set_cell(pgroup, run, entry, value)
for grid in grids[pgroup]:
grid.set_cell(run, entry, value)
+1 -1
View File
@@ -85,7 +85,7 @@ def update_adb(evt):
new_val = evt.args["newValue"]
row_id = int(row_id)
adb.get(beamline).update_cell(pgroup, row_id, col_id, new_val)
adb.get(beamline).set_cell(pgroup, row_id, col_id, new_val)
def update_grids(evt):