Commit 4c8afd4e authored by Dónal Murray's avatar Dónal Murray

Add data for volume and flow plots

parent e61db898
Pipeline #721 failed
......@@ -48,7 +48,7 @@ class NativeUI(HEVClient, QMainWindow):
if (payload["type"] == "DATA"):
self.data = payload["DATA"]
# remove first entry and append plot data to end
self.plots = np.append(np.delete(self.plots, 0, 0), [[self.data["timestamp"], self.data["pressure_patient"], 0, 0]], axis=0)
self.plots = np.append(np.delete(self.plots, 0, 0), [[self.data["timestamp"], self.data["pressure_patient"], self.data["flow"], self.data["volume"]]], axis=0)
except KeyError:
logging.warning(f"Invalid payload: {payload}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment