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 f9a6dc2 commit f8af15aCopy full SHA for f8af15a
src/ess/livedata/dashboard/extractors.py
@@ -63,13 +63,7 @@ def get_required_timespan(self) -> float:
63
64
def extract(self, data: sc.DataArray) -> Any:
65
"""Extract the latest value from the data, unwrapped."""
66
- # Check if data has the concat dimension
67
- if not hasattr(data, 'dims') or self._concat_dim not in data.dims:
68
- # Data doesn't have concat dim - already a single frame
69
- return data
70
-
71
- # Extract last frame along concat dimension
72
- return data[self._concat_dim, -1]
+ return data[self._concat_dim, -1] if self._concat_dim in data.dims else data
73
74
75
class FullHistoryExtractor(UpdateExtractor):
0 commit comments