Skip to content

Commit

Permalink
Merge pull request #258 from JunAishima/one-branch-2023-1-fixes
Browse files Browse the repository at this point in the history
One branch 2023 1 fixes
  • Loading branch information
JunAishima authored Jan 19, 2023
2 parents b1eecdc + 849fbb6 commit 152d0fa
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 19 deletions.
2 changes: 1 addition & 1 deletion bin/lsdcRemote_amx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export LD_LIBRARY_PATH=$matlab_distrib/bin/glnx86:$matlab_distrib/toolbox
export PINALIGNDIR=${PROJDIR}pinAlign/pin_align-master/
export MXPROCESSINGSCRIPTSDIR=${PROJDIR}mx-processing/
# below not ideal as environment name also needed by daq_mainAux
conda activate lsdc-server-2022-3.2
conda activate lsdc-server-2023-1.0
$LSDCHOME/daq_mainAux.py
2 changes: 1 addition & 1 deletion bin/lsdcRemote_fmx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export LD_LIBRARY_PATH=$matlab_distrib/bin/glnx86:$matlab_distrib/toolbox
export PINALIGNDIR=${PROJDIR}pinAlign/pin_align-master/
export MXPROCESSINGSCRIPTSDIR=${PROJDIR}mx-processing/
# below not ideal as environment name also needed by daq_mainAux
conda activate lsdc-server-2022-3.2
conda activate lsdc-server-2023-1.0
$LSDCHOME/daq_mainAux.py
2 changes: 1 addition & 1 deletion bin/lsdcServer_amx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export LD_LIBRARY_PATH=$matlab_distrib/bin/glnx86:$matlab_distrib/toolbox
export PINALIGNDIR=${PROJDIR}pinAlign/pin_align-master/
export MXPROCESSINGSCRIPTSDIR=${PROJDIR}lsdc-processing/
# below not idea as environment name also needed by daq_main2
conda activate lsdc-server-2022-4.0
conda activate lsdc-server-2023-1.0
$LSDCHOME/lsdcServer
4 changes: 2 additions & 2 deletions bin/lsdcServer_fmx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
export PROJDIR=/nsls2/software/mx/daq/
export CONFIGDIR=${PROJDIR}bnlpx_config/
export LSDCHOME=${PROJDIR}lsdc_fmx
export PYTHONPATH="/nsls2/data/fmx/shared/config/lsdc_overlay/lsdc-server-2022-3.1/lib/python3.8/site-packages:.:${CONFIGDIR}:/usr/lib64/edna-mx/mxv1/src:/usr/lib64/edna-mx/kernel/src:${LSDCHOME}:${PROJDIR}/RobotControlLib"
export PYTHONPATH=".:${CONFIGDIR}:/usr/lib64/edna-mx/mxv1/src:/usr/lib64/edna-mx/kernel/src:${LSDCHOME}:${PROJDIR}/RobotControlLib"
export PATH=/usr/local/bin:/usr/bin:/bin:${PROJDIR}/software/bin:/opt/ccp4/bin
source ${CONFIGDIR}daq_env.txt
export matlab_distrib=${PROJDIR}/software/c3d/matlab_distrib
export LD_LIBRARY_PATH=$matlab_distrib/bin/glnx86:$matlab_distrib/toolbox
export PINALIGNDIR=${PROJDIR}pinAlign/pin_align-master/
export MXPROCESSINGSCRIPTSDIR=${PROJDIR}lsdc-processing/
# below not idea as environment name also needed by daq_main2
conda activate lsdc-server-2022-3.2
conda activate lsdc-server-2023-1.0
$LSDCHOME/lsdcServer
2 changes: 1 addition & 1 deletion bin/lsdcServer_nyx.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export matlab_distrib=${PROJDIR}/software/c3d/matlab_distrib
export LD_LIBRARY_PATH=$matlab_distrib/bin/glnx86:$matlab_distrib/toolbox
export PINALIGNDIR=${PROJDIR}pinAlign/pin_align-master/
export MXPROCESSINGSCRIPTSDIR=${PROJDIR}lsdc-processing/
conda activate lsdc-server-2022-3.2
conda activate lsdc-server-2023-1.0
$LSDCHOME/lsdcServer
2 changes: 1 addition & 1 deletion daq_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def mountSample(sampID):
setPvDesc("robotOmegaWorkPos",90.0)
logger.info("done setting work pos")
if (currentMountedSampleID != ""): #then unmount what's there
if (sampID!=currentMountedSampleID and !robot_lib.multiSampleGripper()):
if (sampID!=currentMountedSampleID and not robot_lib.multiSampleGripper()):
puckPos = mountedSampleDict["puckPos"]
pinPos = mountedSampleDict["pinPos"]
if robot_lib.unmountRobotSample(gov_robot, puckPos,pinPos,currentMountedSampleID):
Expand Down
2 changes: 1 addition & 1 deletion daq_main2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/ipython -i
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/ipython -i
"""
The main server for the LSDC system
"""
Expand Down
2 changes: 1 addition & 1 deletion daq_mainAux.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/ipython -i
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/ipython -i
"""
The server run when lsdcRemote is used
"""
Expand Down
2 changes: 1 addition & 1 deletion embl_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def testRobot(self):
logger.error(message)


def multiSampleGripper():
def multiSampleGripper(self):
return False

def openGripper(self):
Expand Down
2 changes: 1 addition & 1 deletion fmx_annealer.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def govStateSet(stateStr, configStr = 'Robot'):
return

from ophyd import PVPositioner, PVPositionerPC, Device, Component as Cpt, EpicsMotor, EpicsSignal, EpicsSignalRO
from ophyd import SubscriptionStatus
from ophyd.status import SubscriptionStatus

# XF:17IDC-ES:FMX{Wago:1}AnnealerIn-Sts
# XF:17IDC-ES:FMX{Wago:1}AnnealerAir-Sel
Expand Down
2 changes: 0 additions & 2 deletions lsdcGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2758,8 +2758,6 @@ def createSampleTab(self):
self.vidActionRasterExploreRadio.setDisabled(True)
self.vidActionRasterDefRadio.setDisabled(True)
self.vidActionDefineCenterRadio.setDisabled(True)
else:
return

hutchCornerCamThread = VideoThread(parent=self, delay=HUTCH_TIMER_DELAY, url=getBlConfig('hutchCornerCamURL'))
hutchCornerCamThread.frame_ready.connect(lambda frame: self.updateCam(self.pixmap_item_HutchCorner, frame))
Expand Down
2 changes: 1 addition & 1 deletion lsdcServer
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
dzdo pkill -KILL -f daq_main2.py
source /opt/conda_envs/lsdc-server-2022-4.0/bin/activate
source /opt/conda_envs/lsdc-server-2023-1.0/bin/activate
$LSDCHOME/daq_main2.py
2 changes: 1 addition & 1 deletion runFastDPH5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/python
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/python
import os
import sys
import db_lib
Expand Down
2 changes: 1 addition & 1 deletion runPinAlign.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/python
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/python
import sys
import os

Expand Down
2 changes: 1 addition & 1 deletion runSpotFinder4syncW.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/python
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/python
import time
import os
import sys
Expand Down
2 changes: 1 addition & 1 deletion start_bs.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/ipython -i
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/ipython -i
# import asyncio
from ophyd import *
from ophyd.mca import (Mercury1, SoftDXPTrigger)
Expand Down
2 changes: 1 addition & 1 deletion sweepDump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/opt/conda_envs/lsdc-server-2022-4.0/bin/python
#!/opt/conda_envs/lsdc-server-2023-1.0/bin/python
import lsdb1
import sys

Expand Down

0 comments on commit 152d0fa

Please sign in to comment.