We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40f351c commit f4a23f7Copy full SHA for f4a23f7
src/ess/livedata/config/workflows.py
@@ -76,7 +76,10 @@ def is_empty(self) -> bool:
76
def _get_value(self) -> sc.DataArray:
77
if self._to_nxlog is None:
78
raise ValueError("No data accumulated")
79
- return self._to_nxlog.get()
+ # Return latest value. Will be aggregated into a timeseries in frontend (if a
80
+ # plot requests it). This accumulator may be fully replaced once it is clear how
81
+ # we want to handle obtaining the full history (e.g., after frontend restarts).
82
+ return self._to_nxlog.get()[-1]
83
84
def _do_push(self, value: sc.DataArray) -> None:
85
0 commit comments