Skip to content

Commit c66f5d3

Browse files
committed
Run hard-iron shrinkage candidates in parallel
1 parent f43248c commit c66f5d3

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: ou-iii-mag-hard-iron-parallel
2+
3+
on:
4+
push:
5+
branches:
6+
- agent/ou-iii-rms-improvement
7+
paths:
8+
- tools/ou_iii_mag_hard_iron_single.py
9+
- .github/workflows/ou-iii-mag-hard-iron-parallel.yml
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
candidate:
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
shrink: [0.00, 0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.40]
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v6
23+
- name: Install build dependencies
24+
run: |
25+
sudo apt-get update -qq
26+
sudo apt-get install -y -qq g++ make libeigen3-dev unzip python3
27+
- name: Download simulation records
28+
env:
29+
GH_TOKEN: ${{ github.token }}
30+
run: |
31+
gh release download v1.1.3 --repo bareboat-necessities/oceanography-waves-lib --pattern 'sim-data-files.zip' --clobber
32+
mkdir -p plots/kalman_ou_iii
33+
unzip -o sim-data-files.zip -d plots/kalman_ou_iii >/dev/null
34+
cp plots/kalman_ou_iii/*.csv tests/kalman_ou_iii/
35+
test "$(find tests/kalman_ou_iii -maxdepth 1 -name 'wave_data_*.csv' | wc -l)" -ge 8
36+
- name: Evaluate candidate
37+
env:
38+
OU3_HI_MIN_INFO: "0.0001"
39+
OU3_HI_SHRINK: ${{ matrix.shrink }}
40+
OU3_HI_MAG_SCALE: "1.02"
41+
OU3_HI_RS_COEFF: "0.3475"
42+
run: python3 -u tools/ou_iii_mag_hard_iron_single.py

0 commit comments

Comments
 (0)