From 1d475a64267cff9fce41304d1efd1e85d394b013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Ros=C3=A9n?= Date: Tue, 20 Feb 2024 09:45:36 +0100 Subject: [PATCH] Disable nikon --- cellpainter/cellpainter/runtime.py | 8 ++++++-- deploy-labrobots.sh | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/cellpainter/cellpainter/runtime.py b/cellpainter/cellpainter/runtime.py index 5e8dba0..20fa92c 100644 --- a/cellpainter/cellpainter/runtime.py +++ b/cellpainter/cellpainter/runtime.py @@ -155,12 +155,16 @@ def handle_signal(signum: int, _frame: Any): raise ValueError('Squid: cannot connect to squid, is squid web service running?') if 1: + class NikonDisabled: + pass try: - self.nikon = Nikon.remote().nikon + self.nikon = NikonDisabled() # type: ignore + # self.nikon = Nikon.remote().nikon except: raise ValueError('Nikon: cannot connect to nikon') try: - self.nikon_stage = NikonPi.remote().nikon_stage + self.nikon_stage = NikonDisabled() # type: ignore + # self.nikon_stage = NikonPi.remote().nikon_stage except: raise ValueError('NikonPi: cannot connect to nikon stage') diff --git a/deploy-labrobots.sh b/deploy-labrobots.sh index 83e9e7c..e7faecb 100755 --- a/deploy-labrobots.sh +++ b/deploy-labrobots.sh @@ -3,14 +3,14 @@ set -x windows_nuc=$(python -c 'import labrobots; print(labrobots.WindowsNUC.ip)') windows_gbg=$(python -c 'import labrobots; print(labrobots.WindowsGBG.ip)') -nikon=$(python -c 'import labrobots; print(labrobots.Nikon.ip)') +# nikon=$(python -c 'import labrobots; print(labrobots.Nikon.ip)') ssh devserver " set -x; curl -s $windows_gbg:5050/git/pull_and_shutdown; curl -s $windows_nuc:5050/git/pull_and_shutdown; - curl -s $nikon:5050/git/pull_and_shutdown; + # curl -s $nikon:5050/git/pull_and_shutdown; curl -s $windows_gbg:5050/git/show; curl -s $windows_nuc:5050/git/show; - curl -s $nikon:5050/git/show; + # curl -s $nikon:5050/git/show; "