From 0c41198b4f11f15e452cd748a0adda2f83b4151f Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Wed, 3 Jun 2026 22:59:29 +0200 Subject: [PATCH] renamed: update_cell -> set_cell --- stand/adb.py | 2 +- stand/api.py | 2 +- stand/table.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stand/adb.py b/stand/adb.py index 066d61e..a8b6b4e 100644 --- a/stand/adb.py +++ b/stand/adb.py @@ -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) diff --git a/stand/api.py b/stand/api.py index 060fea5..abb0acd 100644 --- a/stand/api.py +++ b/stand/api.py @@ -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) diff --git a/stand/table.py b/stand/table.py index ba79b96..f5163ed 100644 --- a/stand/table.py +++ b/stand/table.py @@ -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):