-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic BasesWave build and test run example.
- Loading branch information
1 parent
8234daa
commit 04664b1
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| ``` | ||
|
|