From 44e40d7cc2e78e43b5a2ff8be323145ed167be5e Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 28 May 2024 10:51:30 +0200 Subject: [PATCH] filter out devices that do not exist --- .../stationcontrol-jupyter/startup/01-devices.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/jupyter-lab/ipython-profiles/stationcontrol-jupyter/startup/01-devices.py b/docker/jupyter-lab/ipython-profiles/stationcontrol-jupyter/startup/01-devices.py index ed361a2bc..feb2f5c5b 100644 --- a/docker/jupyter-lab/ipython-profiles/stationcontrol-jupyter/startup/01-devices.py +++ b/docker/jupyter-lab/ipython-profiles/stationcontrol-jupyter/startup/01-devices.py @@ -138,3 +138,6 @@ devices = ( + recvs + unb2s ) + +# Filter out devices that do not exist +devices = [d for d in devices if d is not None] -- GitLab