Skip to content

Commit

Permalink
Replaced djr scripts paths to tools/mfx/scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredericpoitevin committed Aug 30, 2024
1 parent 187edbc commit cce60e4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
4 changes: 2 additions & 2 deletions mfx/cctbx.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def xfel_gui(self, user):

proc = [
f"ssh -YAC {user}@s3dflogin "
f"/sdf/home/d/djr/scripts/cctbx_step1.sh {user} {self.experiment}"
f"/sdf/group/lcls/ds/tools/mfx/scripts/cctbx_step1.sh {user} {self.experiment}"
]

logging.info(proc)
Expand Down Expand Up @@ -40,7 +40,7 @@ def notch_check(self, user, runs=[]):

proc = [
f'ssh -YAC {user}@s3dflogin '
f'/sdf/home/d/djr/scripts/cctbx_notch_check.sh "{self.runlist}"'
f'/sdf/group/lcls/ds/tools/mfx/scripts/cctbx_notch_check.sh "{self.runlist}"'
]

logging.info(proc)
Expand Down
2 changes: 1 addition & 1 deletion scripts/cctbx/cctbx_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main(args):
logging.info("Starting up cctbx")
proc = [
f"ssh -YAC psana "
f"/sdf/home/d/djr/scripts/cctbx_step2.sh"
f"/sdf/group/lcls/ds/tools/mfx/scripts/cctbx_step2.sh"
]

logging.info(proc)
Expand Down
2 changes: 1 addition & 1 deletion scripts/cctbx/cctbx_step1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ user=$1
experiment=$2

source /sdf/group/lcls/ds/ana/sw/conda1/manage/bin/psconda.sh
python /sdf/home/d/djr/scripts/cctbx_start.py -u $user -e $experiment
python /sdf/group/lcls/ds/tools/mfx/scripts/cctbx_start.py -u $user -e $experiment
16 changes: 15 additions & 1 deletion scripts/cctbx/cctbx_step2.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
#! /bin/bash

option=$1

source /sdf/group/lcls/ds/tools/cctbx/setup.sh
cctbx.xfel

if [[ "$option" == "notch" ]]
then
echo Selected $option
runlist=$2
libtbx.python /sdf/group/lcls/ds/tools/cctbx/energy/fee_spec.py $runlist
fi

if [[ "$option" == "gui" ]]
then
echo Selected $option
cctbx.xfel
fi

0 comments on commit cce60e4

Please sign in to comment.