Skip to content

Commit

Permalink
Disable nikon
Browse files Browse the repository at this point in the history
  • Loading branch information
danr committed Feb 20, 2024
1 parent ae17cb8 commit 1d475a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions cellpainter/cellpainter/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
6 changes: 3 additions & 3 deletions deploy-labrobots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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;
"

0 comments on commit 1d475a6

Please sign in to comment.