From 04664b1749b6228ed583aee88f3f3de91dc4c6bc Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Mon, 21 Jun 2021 16:43:36 -0500 Subject: [PATCH] Basic BasesWave build and test run example. --- ReadMe.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/ReadMe.md b/ReadMe.md index 059e069..5e215d2 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -1 +1,40 @@ # CLASS Examples + +## OSG Container + +Example based on the OSG example (https://docs.ligo.org/lscsoft/bayeswave/running.html) of BayesWave (https://git.ligo.org/lscsoft/bayeswave). + + +### Using a Pre-Built Container on Docker + +```bash +sudo apt install cmake -y +cd projects +git clone https://git.ligo.org/lscsoft/bayeswave +cd bayeswave +docker build -t conda-env --file .conda-env.Dockerfile . +docker build -t bayeswave --build-arg BUILD_IMAGE=conda-env:latest ./ +``` + +Simple test example +```bash +docker run -it --rm bayeswave:latest -- BayesWave \ + --ifo H1 --H1-flow 32 \ + --H1-cache LALSimAdLIGO --H1-channel LALSimAdLIGO \ + --trigtime 900000000.00 --srate 512 --seglen 4 --PSDstart 900000000 \ + --PSDlength 1024 --NCmin 2 --NCmax 2 --dataseed 1234 \ + --Niter 500 --outputDir master-test +``` + +Run example inside container (incomplete/fails) +```bash +docker run -it --rm bayeswave:latest -- /bin/bash +install -dv /data ; cd /data +curl -O https://git.ligo.org/lscsoft/bayeswave/-/raw/master/BayesWaveUtils/bayeswave_pipe_examples/LDG-GW150914/LDG-GW150914.ini +curl -O https://git.ligo.org/lscsoft/bayeswave/-/raw/master/BayesWaveUtils/bayeswave_pipe_examples/LDG-GW150914/makework-LDG-GW150914.sh + +pip install gwdatafind +sed -i -e 's|BAYESWAVE_PREFIX|/opt/bayeswave|g' LDG-GW150914.ini +bash makework-LDG-GW150914.sh +``` +