Skip to content

Commit

Permalink
Configure McStasscript
Browse files Browse the repository at this point in the history
  • Loading branch information
willend committed Jan 12, 2024
1 parent 71ed30e commit 282d31f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,11 @@ RUN cd /opt/install && \
# Include scipp in base env
wget https://scipp.github.io/_downloads/e85d8706af3fe2e161bf9b5ed34bd8ae/scipp.yml && \
mamba env update --quiet --file scipp.yml && \
# Configure McStasScript for use with installed McStas
export MCSTAS_BINDIR=`mcrun --showcfg=bindir` && \
export MCSTAS_COMPDIR=`mcrun --showcfg=resourcedir` && \
sed -i 's+@MCSTAS_BINDIR@+'"${MCSTAS_BINDIR}"'+g' McStasScript/configuration.yaml && \
sed -i 's+@MCSTAS_COMPDIR@+'"${MCSTAS_COMPDIR}"'+g' McStasScript/configuration.yaml && \
find /opt/conda/lib -type d -name mcstasscript -exec cp McStasScript/configuration.yaml \{\} \;
# Run mcdoc, installed via conda
/opt/conda/bin/mcdoc -i

0 comments on commit 282d31f

Please sign in to comment.