Skip to content

Commit

Permalink
Basic BasesWave build and test run example.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Jun 21, 2021
1 parent 8234daa commit 04664b1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -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
```

0 comments on commit 04664b1

Please sign in to comment.