From 61d7afd903a8c8128eb9b0f5d0d43eb49e57eb07 Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Fri, 5 Jun 2026 12:38:24 +0200 Subject: [PATCH] renamed: row -> entries --- stand/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stand/api.py b/stand/api.py index 11c6b21..badde71 100644 --- a/stand/api.py +++ b/stand/api.py @@ -44,15 +44,15 @@ def append_run(beamline: Beamline, pgroup: PGroup, run: int, entries: dict[str, timestamp = entries.pop("timestamp", None) timestamp = datetime.fromisoformat(timestamp) if timestamp else datetime.now() - row = {"timestamp": timestamp, **entries} # setdefault would not force timestamp to be the first column + entries = {"timestamp": timestamp, **entries} # setdefault would not force timestamp to be the first column - df = pd.DataFrame(row, index=[run]) + df = pd.DataFrame(entries, index=[run]) lib.append_data(pgroup, df) - row = {"run": run, **row} # setdefault would not force run to be the first column + entries = {"run": run, **entries} # setdefault would not force run to be the first column for grid in grids[pgroup]: - grid.append(row) + grid.append(entries)