Skip to content

Commit

Permalink
Compressed waveforms bank workflow (#4969)
Browse files Browse the repository at this point in the history
* Add compressed waveforms to bank workflow

* Allolw plotting script to use any bank conversion parameter

* Some fixes to allow the joined bank to be plotted

* Use inference's parameter labels: they are available and mostly good

* Add mismatch to plotting, make some tweaks

* some tidying

* thinko

* Try to make the CI workflow run

* Fix do-not-compress default

* Use different examples in compress bank workflow

* Proper name for the github workflow

* Thinko

* python shebang in compression workflow script

* minor edits

* move to readily-available waveform

* TRy IMRPhenomD instead

* revert change to workflow.core

* Warn for KeyError in get_decompressed_waveform

* Fix issue with if get_decompressed_waveform raised a ValueError
  • Loading branch information
GarethCabournDavies authored Jan 22, 2025
1 parent 9b3efda commit 91db678
Show file tree
Hide file tree
Showing 14 changed files with 915 additions and 29 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/bank-compress-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: compress waveforms into a bank using pegasus + condor

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-20.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install condor
run: |
wget -qO - https://research.cs.wisc.edu/htcondor/ubuntu/HTCondor-Release.gpg.key | sudo apt-key add -
echo "deb http://research.cs.wisc.edu/htcondor/ubuntu/8.9/focal focal contrib" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://research.cs.wisc.edu/htcondor/ubuntu/8.9/focal focal contrib" | sudo tee -a /etc/apt/sources.list
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get -o Acquire::Retries=3 install minihtcondor
sudo systemctl start condor
sudo systemctl enable condor
- name: install pegasus
run: |
wget -qO - https://download.pegasus.isi.edu/pegasus/gpg.txt | sudo apt-key add -
echo "deb https://download.pegasus.isi.edu/pegasus/ubuntu bionic main" | sudo tee -a /etc/apt/sources.list
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get -o Acquire::Retries=3 install pegasus=5.0.8-1+ubuntu18
- run: sudo apt-get -o Acquire::Retries=3 install *fftw3* intel-mkl*
- name: Install pycbc
run: |
python -m pip install --upgrade 'pip<22.0' setuptools
pip install GitPython # This shouldn't really be needed!
pip install -r requirements.txt
pip install .
- name: installing sbank
run: |
pip install sbank
- name: generating template bank
run: bash -e examples/search/bank.sh
- name: running workflow
run: |
cp examples/tmpltbank/compress_workflow/*.ini ./
bash -e examples/tmpltbank/compress_workflow/gen.sh
cd output
bash -e ../examples/search/submit.sh
python ../examples/search/check_job.py
find submitdir/work/ -type f -name '*.tar.gz' -delete
- name: store log files
if: always()
uses: actions/upload-artifact@v4
with:
name: logs
path: output/submitdir/work
- name: store result page
uses: actions/upload-artifact@v4
with:
name: results
path: html
Loading

0 comments on commit 91db678

Please sign in to comment.