open-remora

Open Remora, a free secondary dive computer for Apple Watch Ultra
git clone https://git.schurger.org/open-remora.git
Log | Files | Refs | README | LICENSE

commit 6a5b7cc678aea284f907b1b8855294db0b3f62f0
parent 68b8179b97246a7707db1f67471fb7589834fc45
Author: Jean Schurger <jean@schurger.org>
Date:   Mon, 23 Nov 2026 11:44:14 -0500

Validation report: every test documented, with the 137 dives of two divers reported anonymously (letter and rank, no name, site or date); tables generated from the test output by tools/validation_tables.py

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01K7deYHGrz54ML6SmzKWPfS

Diffstat:
Mdocs/VALIDATION.md | 547+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------
Atools/validation_tables.py | 177+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 600 insertions(+), 124 deletions(-)

diff --git a/docs/VALIDATION.md b/docs/VALIDATION.md @@ -1,164 +1,463 @@ -# Open Rémora — decompression engine validation against a certified dive computer +# Open Rémora — decompression engine validation against certified dive computers -Status: 23 November 2026, version 0.6 (first data set: 14 November; second data set and -figures of the first one recomputed from the logged starting tissues: 23 November). Written to support the request for the -full *Submerged Depth and Pressure* entitlement (40 m). The design notes are in `DESIGN.md`. +Status: 23 November 2026, version 0.6. Written to support the request for the full *Submerged Depth +and Pressure* entitlement (40 m). The design notes are in `DESIGN.md`. + +This report documents every test run on the decompression engine: the unit tests, and the replay of +every real dive we had access to, 137 dives by two divers logged by Shearwater computers. The dives +are reported anonymously (see "Data"). The tables are generated from the test output +(`tools/validation_tables.py`), so they can be rebuilt after any change to the engine. ## Summary Open Rémora is a **backup** dive computer for Apple Watch Ultra. Its decompression engine (`RemoraDeco`, in the RemoraKit repository) implements Bühlmann ZHL-16C with gradient factors, the same -algorithm family as Shearwater dive computers. We replayed ten real dives logged by a -**Shearwater Petrel 3** through the engine, with the same gradient factors, gas and surface -pressure, and compared what the engine would have displayed to what the Petrel displayed, -sample by sample (one sample every 10 s, 2,545 samples). - -- **Decompression stops** (3 dives, 240 samples in deco): same stop depth on 237 samples (99 %); - stop duration within 1 minute on every sample, 0.1 min shorter on average. -- **No-decompression limit** (616 samples where the Petrel shows 30 min or less): 0.31 min - shorter than the Petrel on average, within 2 minutes on 88 % of samples. -- **Entering decompression**: 0.3 to 0.8 min *before* the Petrel on all three dives. -- **Tissue loading**: the Petrel logs its 16 tissue pressures about every 5 minutes; replaying - the depth profile reproduces them with an RMS error of 0.008 bar (102 snapshots). -- **Second diver** (127 dives, added 23 November): tissue loading confirmed on 1,264 more - snapshots, stops confirmed on 7 more dives (835 samples in deco, never more than 1 minute - apart); one display defect found and fixed. See "Second data set". - -The engine is tuned to stay on the conservative side of the Petrel on average. Known -deviations are listed at the end. - -## Data set - -Dives by the author, downloaded from the Petrel 3 to Shearwater Cloud and exported -(`dive_data.db`, Petrel Native Format). Air unless noted; open circuit. - -| Dive | Date | Site | Max depth | Duration | Gas | GF | Mandatory stops (Petrel) | -|---|---|---|---|---|---|---|---| -| 188 | 2024-06-29 | Lion de mer | 20.4 m | 44 min | Air | 45/95 | none | -| 189 | 2024-06-29 | Lion de mer | 27.0 m | 51 min | Air | 45/95 | none (repetitive, 4 h surface interval) | -| 190 | 2024-07-04 | Fer à cheval | 40.2 m | 36 min | Air | 45/95 | 3 m | -| 191 | 2024-07-13 | Pyramides | 34.2 m | 57 min | Air | 85/90 | none | -| 192 | 2024-07-17 | Le Rubis | 38.4 m | 33 min | Air | 85/90 | 6 m, 3 m | -| 193 | 2024-07-24 | Le Rubis | 40.1 m | 34 min | EAN30 | 85/90 | 3 m | -| 194 | 2024-08-05 | Lion de mer | 20.3 m | 41 min | Air | 85/90 | none | -| 195 | 2025-07-19 | Kanawake | 15.9 m | 36 min | Air | 85/90 | none | -| 196 | 2025-09-06 | Kanawake | 11.0 m | 40 min | Air | 85/90 | none | -| 197 | 2025-09-06 | Kanawake | 22.2 m | 41 min | Air | 85/90 | none (repetitive, 1 h 45 surface interval) | - -Depth range 11 to 40 m, coldest water 8 to 23 °C depending on the dive, two repetitive dives. +algorithm family as Shearwater dive computers. We replayed 137 real dives through the engine, sample +by sample (one sample every 10 s), and compared what it computes with what the computer logged and +displayed. + +On the 81 dives where the computer ran gradient factors (20 in open circuit, 61 on a rebreather), +plus the 49 VPM-B dives for the tissues, which do not depend on the decompression model: + +- **Tissue loading**: the computers log their 16 tissue pressures about every 5 minutes. The engine + reproduces them with an RMS error of 0.008 bar in open circuit (102 snapshots), 0.0065 bar on the + VPM-B dives (567 snapshots; the tissue model is the same) and 0.013 bar on a rebreather + (697 snapshots, the loop ppO2 being logged to 0.01 bar only). +- **Decompression stops** (10 dives, 1,075 samples in deco): same stop depth on 1,048 samples (97 %); + stop time never more than 1 minute from the computer, 0.2 min shorter on average. +- **Entering decompression**: before the computer on every dive, by 0.2 to 3.5 minutes. +- **No-decompression limit** in open circuit (1,098 samples where the computer shows 30 min or less): + 0.11 min shorter than the computer on average, within 2 minutes on 90 % of samples. By diver: + 0.31 min shorter for diver A, 0.14 min **longer** for diver B (four dives, see "Known deviations"). +- **No-decompression limit** on a rebreather (1,809 samples): 1.1 min shorter than the computer. + +The other 56 dives (VPM-B, gas switches, one trimix dive), and every rebreather dive a second time, +were replayed the way the watch would have gone through them, to check that the engine never gives an absurd answer +outside its scope. This found one display defect, fixed (see "What the replays found"). + +## Data + +Two divers gave their Shearwater Cloud export. The dive logs are personal data: they are kept out of +the repository, and this report carries **no name, no dive site, no position and no date** other than +the year. A dive is identified by a letter for the diver and its rank in the export (A001 to A010, +B001 to B127); the correspondence with the divers' own dive numbers is not published. + +<!-- GENERATED DATA --> +| Diver | Dives | Years | Computers | Depth | Replays | +|---|---|---|---|---|---| +| A | 10 | 2024–2025 | Petrel 3 | 11 to 40.2 m | 10 × Open circuit, one mix, gradient factors | +| B | 127 | 2018–2026 | Perdix AI, Petrel 2, Shearwater Device | 2 to 52.8 m | 10 × Open circuit, one mix, gradient factors; 61 × Rebreather, gradient factors, logged ppO2; 49 × Open circuit, one mix, VPM-B; 6 × Open circuit, gas switch; 62 × Rebreather | +<!-- END DATA --> + +Diver A dives in open circuit with a Petrel 3 set to gradient factors (45/95 then 85/90), on air and +once on nitrox 30, in salt water (EN 13319 density). Diver B's log spans eight years: a Perdix AI in +open circuit, first with gradient factors (2018, log in feet), then with VPM-B, on air and nitrox 23 +to 34, sometimes with a switch to oxygen; then a Petrel 2 on a rebreather with gradient factors +(30/70, 30/85, 40/65, 40/60), air diluent, one trimix dive, last stop at 6 m. Fresh and salt water, +surface pressure from 946 to 1030 mbar, 2 to 52.8 m, up to 129 minutes. ## Method -1. `tools/shearwater_decode.py` decodes the export: for each 10-second sample, depth, gas, - no-decompression limit, next stop depth and time, time to surface; the tissue snapshots; and the - dive settings (gradient factors, decompression model, dive mode, water density, units, surface - pressure). Field layout after libdivecomputer's Shearwater parser. -2. The test `ShearwaterComparisonTests` feeds each depth sample to `DiveComputer`, exactly as - the watch app does with the depth sensor, with the Petrel's gradient factors, gas and - surface pressure and water density. A dive starts from the tissues the computer logged at its - start when it logged them, otherwise from the state left by the previous dive. -3. At every sample the engine output is compared with the Petrel's display. -4. `tools/shearwater_fit.py` separately checks tissue loading against the tissue pressures the - Petrel itself logged during the dive. - -The dive logs are personal data and are kept out of the repository; the decoder and the test -are in it, so the comparison can be repeated on any Shearwater export. +1. `tools/shearwater_decode.py` decodes the export (Petrel Native Format): for each 10-second + sample, depth, gas, loop ppO2, no-decompression limit, next stop depth and time, time to surface; + the tissue snapshots; and the dive settings (gradient factors, decompression model, dive mode, + water density, units, surface pressure). Field layout after libdivecomputer's Shearwater parser. + Logs in feet are converted to metres, their 10 ft stops compared with the 3 m grid. +2. The test `ShearwaterComparisonTests` (RemoraKit) sorts the dives by what they can tell: + + | Replay | Dives | How | What is compared | + |---|---|---|---| + | Open circuit, one mix, gradient factors | 20 | `DiveComputer`, fed exactly as the watch app feeds it, with the gradient factors, mix, surface pressure and water density of the computer | tissues, no-decompression limit, stops | + | Rebreather, gradient factors | 61 | the planner alone (`AscentPlanner`) with the ppO2 logged in the loop at each sample instead of a fixed mix, the gradient factors and the last stop of the computer. This path exists for the tests only: no app offers closed circuit | tissues, no-decompression limit, stops | + | Open circuit, VPM-B | 49 | `DiveComputer` as the watch would run: the bottom mix, default gradient factors 30/70 | tissues (same model); limits and stops for information (another model) | + | Open circuit, gas switch | 6 | as the watch would run: the bottom mix only | robustness; limits and stops for information | + | Rebreather, as the watch sees it | 62 | as the watch would run: air in open circuit, default 30/70 | robustness; limits and stops for information | + +3. A dive starts from the tissues the computer logged at its start when it logged them (they carry + every earlier dive, logged or not); otherwise from the state our replay left after the previous + dive, or from a diver saturated at the surface. +4. At every sample the output is compared with the display of the computer, and checked for + absurd values: finite times, stops on the 3 m grid, between 1 and 998 minutes. +5. `tools/validation_tables.py` turns the test output into the tables below. + +Signs: a negative difference means Open Rémora shows less time than the computer (shorter limit, +shorter stop, earlier entry into deco). ## Results -### Decompression stops - -| Dive | Enters deco (Petrel / Open Rémora) | Leaves deco | Samples in deco | Same stop depth | Stop time, mean difference | -|---|---|---|---|---|---| -| 190 Fer à cheval, GF 45/95 | 15.2 / 14.8 min | 29.3 / 29.0 min | 84 | 84 | −0.04 min | -| 192 Le Rubis, GF 85/90 | 12.3 / 12.0 min | 30.0 / 29.5 min | 104 | 101 | −0.16 min | -| 193 Le Rubis EAN30, GF 85/90 | 16.3 / 15.5 min | 25.2 / 25.0 min | 52 | 52 | −0.12 min | +<!-- GENERATED TOTALS --> +#### Tissue loading against the tissues logged by the computer -Stop time never differs by more than 1 minute. On dive 192 the 3 samples with a different -stop depth are the transition from the 6 m stop to the 3 m stop, which Open Rémora clears a -few tens of seconds before the Petrel. On dive 191 Open Rémora asks for a stop during one -sample (10 s); the Petrel never does. - -### No-decompression limit - -| Samples | Mean difference | Mean absolute difference | Within 2 min | +| Replay | Dives with snapshots | Snapshots | RMS error | |---|---|---|---| -| All, Petrel shows less than 99 min, deeper than 9 m (1,100) | +0.60 min | 2.13 min | — | -| Petrel shows 30 min or less (616) | −0.31 min | 1.33 min | 88 % | - -A negative difference means Open Rémora shows less time than the Petrel. - -### Second data set (23 November 2026) - -A second diver's Shearwater Cloud export was replayed without touching the engine settings: 127 dives -from 2018 to 2026, down to 52.8 m, fresh and salt water, surface pressure from 946 to 1030 mbar. Only -part of it runs the algorithm of the engine, so the dives are sorted by what they can tell: +| Open circuit, one mix, gradient factors, diver A | 10 | 102 | 0.0080 bar | +| Rebreather, gradient factors, logged ppO2, diver B | 59 | 697 | 0.0126 bar | +| Open circuit, one mix, VPM-B, diver B | 41 | 567 | 0.0065 bar | -| Dives | Computer and mode | What is compared | -|---|---|---| -| 10 | Perdix AI, open circuit, GF 30/70 and 40/85, air (2018, log in feet, no tissue snapshots) | no-decompression limit, stops | -| 49 | Perdix AI, open circuit, one nitrox mix, **VPM-B** | tissue loading only (another decompression model) | -| 6 | Perdix AI, open circuit with a switch to oxygen | nothing (the engine knows one mix) | -| 62 | Petrel 2 on a rebreather, GF 30/70, 30/85, 40/65 | tissue loading, limit and stops, with the ppO2 logged in the loop (61 dives; one trimix dive left out) | +#### No-decompression limit, where the computer shows 30 min or less -The rebreather dives are replayed on the planner alone, with the gradient factors of the computer, the -ppO2 it logged at each sample instead of a fixed mix (a test-only path: no app offers closed circuit), -its last stop at 6 m, and the tissues it logged at the start of the dive. - -| Check | Result | -|---|---| -| Tissue loading, open circuit (567 snapshots) | RMS 0.0065 bar | -| Tissue loading, rebreather (697 snapshots) | RMS 0.0126 bar (the ppO2 is logged to 0.01 bar) | -| Stops, rebreather (6 dives, 649 samples in deco) | same stop depth on 627 samples (97 %); stop time 0.15 min shorter on average, never more than 1 min apart; enters deco 1.5 min before the Petrel on average | -| Stops, open circuit GF 30/70 (1 dive, 186 samples) | same stop depth on 184; stop time 0.35 min shorter on average, never more than 1 min apart; leaves deco 0.8 min before the Perdix | -| No-decompression limit, rebreather (1,809 samples at 30 min or less) | 1.1 min shorter than the Petrel on average, within 2 min on 81 % | -| No-decompression limit, open circuit GF (4 dives, 482 samples at 30 min or less) | **0.14 min longer** than the Perdix on average, within 2 min on 93 % | - -The last line is the only one on the liberal side. It rests on four dives from 2018 whose starting -tissues are unknown (the replay assumes a diver saturated at the surface; the tissues the Perdix carried -from earlier dives would shorten its limit), so it was not used to change the off-gassing credit. - -Every dive was also replayed the way the watch would have gone through it (one open-circuit mix, default -gradient factors 30/70), to check that the engine never gives an absurd answer on dives outside its -scope: deeper than 40 m, two hours long, on a rebreather. This found one defect, fixed the same day: a -diver exactly on a stop in fresh water could be shown a stop depth of 2.9999999999999996 m, which the -display truncated to "2 m". On a rebreather the watch, which assumes air in open circuit, asks for stops -on 23 dives where the Petrel asks for them on 7: usable, but far too conservative to be a helpful backup -there. Against VPM-B the default 30/70 enters deco 5.6 min earlier on average, but on 3 dives of 14 it -clears the last stop 1.5 to 4 min before the Perdix: the two models do not order the same way. - -### What was tuned on this data +| Replay | Dives | Samples | Mean difference | Mean absolute difference | Within 2 min | 5 min or more above the computer | At zero while the computer shows 5 min or more | +|---|---|---|---|---|---|---|---| +| Open circuit, one mix, gradient factors, all divers | 11 | 1098 | −0.11 min | 1.23 min | 90 % | 19 | 7 | +| Open circuit, one mix, gradient factors, diver A | 7 | 616 | −0.31 min | 1.33 min | 88 % | 12 | 7 | +| Open circuit, one mix, gradient factors, diver B | 4 | 482 | +0.14 min | 1.11 min | 93 % | 7 | 0 | +| Rebreather, gradient factors, logged ppO2, diver B | 25 | 1809 | −1.11 min | 1.76 min | 81 % | 24 | 19 | +| Open circuit, one mix, VPM-B, diver B | 32 | 1870 | −8.91 min | 8.91 min | 3 % | 0 | 207 | +| Open circuit, gas switch, diver B | 6 | 232 | −5.06 min | 5.06 min | 23 % | 0 | 9 | +| Rebreather, diver B | 25 | 960 | −8.79 min | 8.80 min | 4 % | 0 | 116 | + +#### Decompression stops + +| Replay | Dives in deco (computer / Open Rémora) | Enters deco | Leaves deco | Samples in deco for both | Same stop depth | Stop time, mean difference | Largest difference | Deco for the computer only (samples) | For Open Rémora only | +|---|---|---|---|---|---|---|---|---|---| +| Open circuit, one mix, gradient factors, all divers | 4 / 6 | −0.4 min | −0.4 min | 426 | 421 (99 %) | −0.21 min | −1 min | 13 | 6 | +| Open circuit, one mix, gradient factors, diver A | 3 / 4 | −0.5 min | −0.3 min | 240 | 237 (99 %) | −0.11 min | −1 min | 7 | 4 | +| Open circuit, one mix, gradient factors, diver B | 1 / 2 | −0.2 min | −0.8 min | 186 | 184 (99 %) | −0.35 min | −1 min | 6 | 2 | +| Rebreather, gradient factors, logged ppO2, diver B | 6 / 7 | −1.5 min | −0.3 min | 649 | 627 (97 %) | −0.15 min | −1 min | 11 | 12 | +| Open circuit, one mix, VPM-B, diver B | 14 / 19 | −5.6 min | +5.7 min | 1433 | 884 (62 %) | +1.34 min | +6 min | 64 | 1454 | +| Open circuit, gas switch, diver B | 6 / 6 | −5.6 min | +6.3 min | 1116 | 423 (38 %) | +3.57 min | +18 min | 0 | 423 | +| Rebreather, diver B | 7 / 23 | −7.0 min | +16.5 min | 897 | 165 (18 %) | +1.44 min | +11 min | 0 | 3609 | +<!-- END TOTALS --> + +Reading the stops table: on the gradient-factor dives the 27 samples with a different stop depth +are transitions from one stop to the next, which Open Rémora clears a few tens of seconds before the +computer, and the open-circuit bailout part of one rebreather dive (B079). On A004 Open Rémora asks for a stop +during one sample (10 s); the computer never does. + +The last three lines of each table are not a comparison of the same algorithm. They show what the +watch would have displayed next to these computers: against VPM-B the default 30/70 enters deco +5.6 min earlier on average, but on 3 dives of 14 it clears the last stop 1.5 to 4 min before the +computer (the two models do not order the same way); on a rebreather the watch, which assumes air in +open circuit, asks for stops on 23 dives where the computer asks for them on 7, and for up to half an +hour of them: usable, but far too conservative to be a helpful backup there. + +### What was tuned, and on which dives + +All tuning was done on diver A's ten dives (13 and 14 November 2026). Diver B's 127 dives were +replayed afterwards (23 November) without changing any setting: they are an independent check. - No-stop criterion: a direct ascent must reach the surface within the high gradient factor; the low gradient factor only places the stops. Off-gassing during the ascent is credited partially (ascent assumed at 30 m/min). With no credit the limit was 1.8 min shorter than - the Petrel and dropped to zero too early on multi-level dives; with full credit it was - 2 min longer than the Petrel, which we rejected. + the computer and dropped to zero too early on multi-level dives; with full credit it was + 2 min longer than the computer, which we rejected. - Stops: the next stop must be tolerated before leaving the current one (no credit for the ascent between stops). This moved the mean stop-time difference from −0.3/−0.6 min to −0.1 min. - Stops are always on the 3 m grid, also for a diver hovering between two stops (version 0.2). +### What the replays found + +- **Stop depth shown as "2 m"** (found 23 November on B dives, fixed the same day): a diver exactly + on a stop in fresh water was given a stop depth of 2.9999999999999996 m (pressure converted back to + a depth), which the display truncated. The planner now reports the grid depth and the display + rounds; unit test `stopOfADiverOnTheGridIsOnTheGrid`. +- No other absurd value on 137 dives and 198 replays, including dives deeper than the 40 m limit + of the watch, two hours long, or on a rebreather. + ## Known deviations and limits -- **Late, shallow part of long dives**: on 12 of the 616 samples Open Rémora shows 5 minutes - or more above the Petrel. There the limit is driven by slow tissues and a very small - difference in tissue pressure moves it by many minutes. Largest difference: 27 min at 12 m. -- **Time to surface**: the Petrel shows 3 to 5 minutes more than Open Rémora, which does not +- **No-decompression limit on diver B's open-circuit dives**: 0.14 min longer than the computer on + average (482 samples, four dives of 2018), the only figure on the liberal side. These dives have + no tissue snapshot: the replay assumes a diver saturated at the surface, and whatever the computer + carried from earlier dives would shorten its limit. The off-gassing credit was not changed on this + evidence. With the credit at 60 m/min the figure would be −0.54 min there and −1.15 min for diver A. +- **Late, shallow part of long dives**: on 19 of the 1,098 open-circuit samples Open Rémora shows + 5 minutes or more above the computer. There the limit is driven by slow tissues and a very small + difference in tissue pressure moves it by many minutes. Largest differences: 27 min (A, at 12 m) and + 37 min (B). +- **Time to surface**: the Petrel 3 shows 3 to 5 minutes more than Open Rémora, which does not include the safety stop in that figure. Not yet confirmed as the only cause. -- **Leaving deco**: 15 to 30 seconds before the Petrel on the three dives. +- **Leaving deco**: 15 to 50 seconds before the computer on the open-circuit dives. - **Scope**: two divers, three computers (Petrel 3, Perdix AI, Petrel 2). The no-decompression - limit in open circuit rests on 14 dives; the stops on 4 open-circuit dives and 6 rebreather dives. + limit in open circuit rests on 11 dives; the stops on 4 open-circuit dives and 6 rebreather dives. No dive at altitude. Helium and gas switches are not supported by the engine. - The comparison validates the algorithm on recorded profiles. It does not validate the watch's depth sensor, which has not yet been used in water with this app. +## Unit tests + +69 tests in 16 suites (RemoraKit, `swift test`), all passing on 23 November 2026; the Shearwater +replay above is one of them and only runs when given the path of a decoded export. + +| Suite | What it checks | +|---|---| +| Physics | depth ↔ pressure round trip, maximum operating depth | +| Tissues | Schreiner equation against fine constant steps and against Haldane, no ceiling at surface saturation, off-gassing during a surface interval | +| No-decompression limit | decreases with depth, shorter with conservative factors than with pure Bühlmann, longer on nitrox, plausible values, a reached limit means a ceiling at the surface | +| Decompression stops | no stop inside the limit, ordered stops, following the plan allows surfacing, more conservative means longer deco, a diver exactly on a stop is given the grid depth | +| Dive computer | a recreational dive, fast ascent flagged, gradient anchored on the first stop and ceiling violation flagged, high ppO2 | +| Dive screen | countdown in seconds on the first stop, safety stop counted down then done, skipped safety stop flagged, none after a shallow dive, depth limit and low no-decompression warnings | +| 0.2 review | being above a required stop is a violation, a missed safety stop can be redone, an oscillating alarm is logged once per period | +| Altitude | depth measured from the local surface, shorter limit at altitude, a fresh arrival is worse off than an acclimatised diver, stops at local depths | +| Dive tracker | a dive starts on submersion and ends after a minute at the surface, a sensor that cannot measure at depth holds the depth, a silent source is caught by the watchdog at depth and ends the dive near the surface, an oscillating warning is cued and logged once per period, the safety stop can be redone, nothing is kept when the diver never went down, a simulated dive ignores the sensor, computer model name, steady ascent rate from an irregular 3 Hz source, configurable ascent rate window | +| Dive started by hand | a manual start shows a dive at the surface and records the dive that follows, gives up without a dive, takes the surface pressure of the first reading; a logbook without marks still decodes | +| Dive monitor | saves the dive and passes the cues on, the app sets the computer model and the depth limit | +| Logbook | profile recorded for the graph, a repetitive dive inherits the tissues, a deco dive is marked and its alarms logged, JSON round trip, no-fly time (DAN rule and model), UDDF export | +| Settings | air and conservative factors by default, nitrox sets the gas and its maximum depth, custom gradient factors, invalid settings refused, JSON round trip, nitrox shortens deco on the same profile, adjustable no-decompression alarm, older saved settings still load | +| Subsurface import | dives, sites and profile parsed, a dive without profile keeps its duration, merging twice changes nothing, other XML refused | +| Sample dive | writes a sample dive for the sharing contract with Sub Rascasse (run on request) | +| Format | clock and durations, no-decompression limit, decimals in the interface language, every warning has a label and a level | + ## Other safeguards in the app -- 69 unit tests on the engine and the dive logic (tissue equations, limits, stops, safety stop, alarms, altitude, repetitive dives, logbook). - If the depth sensor stops reporting under water (sensor limit, error, silence), the app never assumes a return to the surface: it keeps the last known depth, keeps loading the tissues and shows "depth unknown, follow your primary computer". - Being shallower than a required stop is flagged as a violation and logged; a skipped safety stop is flagged. -- Default gradient factors 30/70, more conservative than the Petrel settings used above. +- Default gradient factors 30/70, more conservative than most of the computer settings met above. - The app states on its home screen, and on its support page, that it is not a certified dive computer and must be worn with a primary dive computer: https://agora.schurger.org/open-remora/ + +## Repeating the comparison + +``` +python3 -I tools/shearwater_decode.py path/dive_data.db dives.json +cd ../remora-kit +SHEARWATER_DIVER=A SHEARWATER_JSON=/path/dives.json swift test --filter ShearwaterComparison > run-A.txt +python3 -I ../open-remora/tools/validation_tables.py run-A.txt run-B.txt --update ../open-remora/docs/VALIDATION.md +``` + +`SHEARWATER_ROWS=1` prints the stops side by side every two minutes; `SHEARWATER_NOSTOP_RATE=60` +tries another off-gassing credit. + +## Appendix: every dive + +One line per replay. Depth and duration as logged; "Starting tissues" says where the replay started +from (step 3 of the method). The deco column gives the minute of the dive at which each side entered +and left decompression (computer / Open Rémora), then the number of samples with the same stop depth +among those where both were in deco, and the mean stop-time difference on these. + +<!-- GENERATED DIVES --> +#### Open circuit, one mix, gradient factors (20 dives) + +Replayed as: the computer runs the algorithm of the engine. + +| Dive | Year | Computer | GF | Gas | Max depth | Duration | Surface | Water | Starting tissues | Tissues RMS (snapshots) | NDL samples ≤ 30 min | NDL mean difference | Deco: minute in and out (computer / Open Rémora); stops | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| A001 | 2024 | Petrel 3 | 45/95 | Air | 20.3 m | 45 min | 1015 mbar | 1020 kg/m³ | logged tissues | 0.0062 bar (11) | 15 | +0.40 min | — | +| A002 | 2024 | Petrel 3 | 45/95 | Air | 27.0 m | 52 min | 1016 mbar | 1020 kg/m³ | logged tissues | 0.0079 bar (13) | 168 | +0.15 min | — | +| A003 | 2024 | Petrel 3 | 45/95 | Air | 40.2 m | 37 min | 1010 mbar | 1020 kg/m³ | logged tissues | 0.0110 bar (9) | 58 | −0.74 min | in 15.2 / 14.8, out 29.3 / 29.0; same depth 84/84, stop −0.04 min | +| A004 | 2024 | Petrel 3 | 85/90 | Air | 34.2 m | 58 min | 1010 mbar | 1020 kg/m³ | logged tissues | 0.0090 bar (14) | 210 | −0.25 min | in never / 19.2, out never / 19.2 | +| A005 | 2024 | Petrel 3 | 85/90 | Air | 38.4 m | 34 min | 1015 mbar | 1020 kg/m³ | logged tissues | 0.0125 bar (8) | 52 | −0.62 min | in 12.3 / 12.0, out 30.0 / 29.5; same depth 101/104, stop −0.16 min | +| A006 | 2024 | Petrel 3 | 85/90 | EAN30 | 40.0 m | 35 min | 1015 mbar | 1020 kg/m³ | logged tissues | 0.0110 bar (8) | 73 | −1.27 min | in 16.3 / 15.5, out 25.2 / 25.0; same depth 52/52, stop −0.12 min | +| A007 | 2024 | Petrel 3 | 85/90 | Air | 20.1 m | 42 min | 1013 mbar | 1020 kg/m³ | logged tissues | 0.0057 bar (10) | 0 | — | — | +| A008 | 2025 | Petrel 3 | 85/90 | Air | 15.9 m | 37 min | 1014 mbar | 1020 kg/m³ | logged tissues | 0.0035 bar (9) | 0 | — | — | +| A009 | 2025 | Petrel 3 | 85/90 | Air | 11.0 m | 41 min | 1012 mbar | 1020 kg/m³ | logged tissues | 0.0030 bar (10) | 0 | — | — | +| A010 | 2025 | Petrel 3 | 85/90 | Air | 22.2 m | 42 min | 1017 mbar | 1020 kg/m³ | logged tissues | 0.0051 bar (10) | 40 | −0.03 min | — | +| B001 | 2018 | Perdix AI | 30/70 | Air | 5.9 m | 32 min | 1017 mbar | 1020 kg/m³ | saturated | — | 0 | — | — | +| B002 | 2018 | Perdix AI | 30/70 | Air | 7.2 m | 57 min | 1017 mbar | 1020 kg/m³ | previous dive, 138 min | — | 0 | — | — | +| B003 | 2018 | Perdix AI | 30/70 | Air | 6.0 m | 10 min | 1017 mbar | 1020 kg/m³ | previous dive, 11 min | — | 0 | — | — | +| B004 | 2018 | Perdix AI | 30/70 | Air | 19.6 m | 57 min | 1010 mbar | 1020 kg/m³ | saturated | — | 130 | +0.82 min | — | +| B005 | 2018 | Perdix AI | 30/70 | Air | 7.3 m | 45 min | 1010 mbar | 1020 kg/m³ | previous dive, 152 min | — | 0 | — | — | +| B006 | 2018 | Perdix AI | 30/70 | Air | 32.1 m | 52 min | 1025 mbar | 1020 kg/m³ | saturated | — | 51 | −0.43 min | in 13.7 / 13.5, out 45.5 / 44.7; same depth 184/186, stop −0.35 min | +| B007 | 2018 | Perdix AI | 40/85 | Air | 23.2 m | 50 min | 1009 mbar | 1000 kg/m³ | saturated | — | 135 | +0.10 min | — | +| B008 | 2018 | Perdix AI | 40/85 | Air | 34.5 m | 50 min | 1009 mbar | 1000 kg/m³ | previous dive, 63 min | — | 166 | −0.18 min | in never / 19.2, out never / 19.2 | +| B009 | 2018 | Perdix AI | 40/85 | Air | 8.1 m | 56 min | 1013 mbar | 1000 kg/m³ | saturated | — | 0 | — | — | +| B010 | 2018 | Perdix AI | 40/85 | Air | 5.4 m | 26 min | 996 mbar | 1000 kg/m³ | saturated | — | 0 | — | — | + +#### Rebreather, gradient factors, logged ppO2 (61 dives) + +Replayed as: the planner with the ppO2 logged in the loop. + +| Dive | Year | Computer | GF | Gas | Max depth | Duration | Surface | Water | Starting tissues | Tissues RMS (snapshots) | NDL samples ≤ 30 min | NDL mean difference | Deco: minute in and out (computer / Open Rémora); stops | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| B066 | 2025 | Petrel 2 | 30/85 | Air | 3.3 m | 7 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0023 bar (1) | 0 | — | — | +| B067 | 2025 | Petrel 2 | 30/85 | Air | 3.1 m | 12 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0012 bar (2) | 0 | — | — | +| B068 | 2025 | Petrel 2 | 30/85 | Air | 3.3 m | 8 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0082 bar (2) | 0 | — | — | +| B069 | 2025 | Petrel 2 | 30/85 | Air | 3.5 m | 8 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0007 bar (1) | 0 | — | — | +| B070 | 2025 | Petrel 2 | 30/85 | Air | 3.0 m | 4 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | +| B071 | 2025 | Petrel 2 | 30/85 | Air | 3.4 m | 14 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0020 bar (3) | 0 | — | — | +| B072 | 2025 | Petrel 2 | 30/85 | Air | 3.1 m | 23 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0017 bar (5) | 0 | — | — | +| B073 | 2025 | Petrel 2 | 30/85 | Air | 3.1 m | 10 min | 984 mbar | 1020 kg/m³ | logged tissues | 0.0015 bar (2) | 0 | — | — | +| B074 | 2025 | Petrel 2 | 30/85 | Air | 11.2 m | 58 min | 978 mbar | 1020 kg/m³ | logged tissues | 0.0038 bar (14) | 0 | — | — | +| B075 | 2025 | Petrel 2 | 30/85 | Air | 8.2 m | 53 min | 979 mbar | 1000 kg/m³ | logged tissues | 0.0031 bar (13) | 0 | — | — | +| B076 | 2025 | Petrel 2 | 30/85 | Air | 17.2 m | 65 min | 982 mbar | 1000 kg/m³ | logged tissues | 0.0034 bar (16) | 0 | — | — | +| B077 | 2025 | Petrel 2 | 30/70 | Air | 31.4 m | 64 min | 984 mbar | 1000 kg/m³ | logged tissues | 0.0077 bar (15) | 103 | −0.29 min | — | +| B078 | 2025 | Petrel 2 | 30/70, last stop 6 m | Air | 37.1 m | 51 min | 989 mbar | 1000 kg/m³ | logged tissues | 0.0117 bar (12) | 62 | −0.94 min | in 23.5 / 22.8, out 38.3 / 38.2; same depth 87/89, stop −0.01 min | +| B079 | 2025 | Petrel 2 | 30/70, last stop 6 m | Air, EAN50 | 36.8 m | 53 min | 991 mbar | 1000 kg/m³ | logged tissues | 0.0114 bar (13) | 53 | −1.21 min | in 17.3 / 16.3, out 47.2 / 46.2; same depth 157/174, stop −0.36 min | +| B080 | 2025 | Petrel 2 | 30/70 | Air | 19.3 m | 62 min | 1011 mbar | 1000 kg/m³ | logged tissues | 0.0056 bar (15) | 0 | — | — | +| B081 | 2025 | Petrel 2 | 30/70 | Air | 4.0 m | 8 min | 1011 mbar | 1000 kg/m³ | logged tissues | 0.0196 bar (2) | 0 | — | — | +| B082 | 2025 | Petrel 2 | 30/70 | Air | 6.5 m | 20 min | 1011 mbar | 1000 kg/m³ | logged tissues | 0.0279 bar (4) | 0 | — | — | +| B083 | 2025 | Petrel 2 | 30/70 | Air | 30.2 m | 123 min | 1019 mbar | 1000 kg/m³ | logged tissues | 0.0101 bar (30) | 122 | −3.29 min | in never / 36.7, out never / 36.7 | +| B084 | 2025 | Petrel 2 | 30/70 | Air | 8.9 m | 36 min | 1019 mbar | 1000 kg/m³ | logged tissues | 0.0022 bar (8) | 0 | — | — | +| B085 | 2025 | Petrel 2 | 30/70 | Air | 1.6 m | 2 min | 1019 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | +| B086 | 2025 | Petrel 2 | 30/70 | Air | 12.4 m | 44 min | 1008 mbar | 1000 kg/m³ | logged tissues | 0.0110 bar (10) | 0 | — | — | +| B087 | 2025 | Petrel 2 | 30/70 | Air | 4.2 m | 7 min | 1006 mbar | 1000 kg/m³ | logged tissues | 0.0398 bar (1) | 0 | — | — | +| B088 | 2025 | Petrel 2 | 30/70 | Air | 8.0 m | 46 min | 1006 mbar | 1000 kg/m³ | logged tissues | 0.0052 bar (11) | 0 | — | — | +| B089 | 2025 | Petrel 2 | 30/70 | Air | 7.4 m | 70 min | 1006 mbar | 1000 kg/m³ | logged tissues | 0.0054 bar (17) | 0 | — | — | +| B090 | 2025 | Petrel 2 | 30/70 | Air | 30.6 m | 48 min | 972 mbar | 1000 kg/m³ | logged tissues | 0.0083 bar (11) | 45 | −2.00 min | — | +| B091 | 2025 | Petrel 2 | 30/70 | Air | 11.3 m | 46 min | 1008 mbar | 1000 kg/m³ | logged tissues | 0.0133 bar (11) | 0 | — | — | +| B092 | 2025 | Petrel 2 | 30/70 | Air | 22.2 m | 48 min | 1008 mbar | 1000 kg/m³ | logged tissues | 0.0083 bar (11) | 66 | +0.21 min | — | +| B093 | 2025 | Petrel 2 | 30/70 | Air | 21.0 m | 83 min | 1008 mbar | 1000 kg/m³ | logged tissues | 0.0101 bar (20) | 1 | +1.00 min | — | +| B094 | 2025 | Petrel 2 | 30/70, last stop 6 m | Air | 37.1 m | 89 min | 1010 mbar | 1000 kg/m³ | logged tissues | 0.0213 bar (22) | 47 | −1.51 min | in 20.2 / 19.3, out 58.7 / 58.5; same depth 228/231, stop −0.16 min | +| B095 | 2025 | Petrel 2 | 30/70 | Air | 22.1 m | 50 min | 1013 mbar | 1000 kg/m³ | logged tissues | 0.0130 bar (12) | 86 | +0.22 min | — | +| B096 | 2025 | Petrel 2 | 30/70 | Air, EAN47 | 21.5 m | 46 min | 1010 mbar | 1000 kg/m³ | logged tissues | 0.0065 bar (11) | 64 | +0.36 min | — | +| B097 | 2025 | Petrel 2 | 30/70 | Air | 21.2 m | 49 min | 1005 mbar | 1000 kg/m³ | logged tissues | 0.0165 bar (12) | 157 | +0.28 min | — | +| B098 | 2025 | Petrel 2 | 30/70 | Air | 20.2 m | 53 min | 1003 mbar | 1000 kg/m³ | logged tissues | 0.0121 bar (13) | 2 | +1.50 min | — | +| B099 | 2025 | Petrel 2 | 30/70 | Air | 20.1 m | 79 min | 1012 mbar | 1000 kg/m³ | logged tissues | 0.0083 bar (19) | 91 | +0.76 min | — | +| B100 | 2025 | Petrel 2 | 30/70 | Air | 27.0 m | 68 min | 995 mbar | 1000 kg/m³ | logged tissues | 0.0114 bar (16) | 111 | −1.86 min | — | +| B101 | 2025 | Petrel 2 | 30/70, last stop 6 m | Air | 27.9 m | 70 min | 1015 mbar | 1000 kg/m³ | logged tissues | 0.0128 bar (17) | 161 | −1.52 min | in 37.3 / 35.3, out 44.7 / 44.5; same depth 44/44, stop +0.00 min | +| B102 | 2025 | Petrel 2 | 30/70 | Air | 17.2 m | 18 min | 946 mbar | 1000 kg/m³ | logged tissues | 0.0161 bar (4) | 0 | — | — | +| B103 | 2025 | Petrel 2 | 30/70 | Air | 5.7 m | 55 min | 996 mbar | 1000 kg/m³ | logged tissues | 0.0063 bar (13) | 0 | — | — | +| B104 | 2026 | Petrel 2 | 30/70 | Air | 3.7 m | 19 min | 1000 mbar | 1000 kg/m³ | logged tissues | 0.0079 bar (4) | 0 | — | — | +| B105 | 2026 | Petrel 2 | 30/70 | Air | 3.6 m | 25 min | 1000 mbar | 1000 kg/m³ | logged tissues | 0.0180 bar (6) | 0 | — | — | +| B106 | 2026 | Petrel 2 | 30/70, last stop 6 m | Air | 40.4 m | 66 min | 961 mbar | 1000 kg/m³ | logged tissues | 0.0120 bar (16) | 51 | −1.29 min | in 21.3 / 20.2, out 36.0 / 35.7; same depth 87/87, stop +0.00 min | +| B107 | 2026 | Petrel 2 | 30/70 | Air | 19.3 m | 34 min | 959 mbar | 1000 kg/m³ | logged tissues | 0.0129 bar (8) | 0 | — | — | +| B108 | 2026 | Petrel 2 | 30/70 | Air | 13.8 m | 49 min | 987 mbar | 1000 kg/m³ | logged tissues | 0.0159 bar (12) | 0 | — | — | +| B109 | 2026 | Petrel 2 | 30/70 | Air | 29.4 m | 36 min | 985 mbar | 1000 kg/m³ | logged tissues | 0.0186 bar (8) | 27 | −1.44 min | — | +| B110 | 2026 | Petrel 2 | 30/70 | Air | 15.9 m | 36 min | 984 mbar | 1000 kg/m³ | logged tissues | 0.0208 bar (9) | 0 | — | — | +| B111 | 2026 | Petrel 2 | 30/70 | Air | 13.2 m | 54 min | 980 mbar | 1000 kg/m³ | logged tissues | 0.0297 bar (13) | 0 | — | — | +| B112 | 2026 | Petrel 2 | 30/70 | Air | 39.0 m | 23 min | 979 mbar | 1000 kg/m³ | logged tissues | 0.0067 bar (5) | 69 | −0.62 min | — | +| B113 | 2026 | Petrel 2 | 30/70 | Air | 31.3 m | 39 min | 979 mbar | 1000 kg/m³ | logged tissues | 0.0109 bar (9) | 127 | −2.20 min | — | +| B114 | 2026 | Petrel 2 | 30/70 | Air | 8.0 m | 46 min | 1007 mbar | 1000 kg/m³ | logged tissues | 0.0071 bar (11) | 0 | — | — | +| B115 | 2026 | Petrel 2 | 30/70 | Air | 6.7 m | 33 min | 1006 mbar | 1000 kg/m³ | logged tissues | 0.0138 bar (8) | 0 | — | — | +| B116 | 2026 | Petrel 2 | 30/70 | Air | 21.6 m | 56 min | 1008 mbar | 1000 kg/m³ | logged tissues | 0.0079 bar (13) | 10 | +3.70 min | — | +| B117 | 2026 | Petrel 2 | 30/70 | Air | 14.3 m | 113 min | 1003 mbar | 1000 kg/m³ | logged tissues | 0.0129 bar (28) | 0 | — | — | +| B118 | 2026 | Petrel 2 | 30/70 | Air | 8.3 m | 58 min | 1000 mbar | 1000 kg/m³ | logged tissues | 0.0062 bar (14) | 0 | — | — | +| B119 | 2026 | Petrel 2 | 30/70 | Air | 24.1 m | 41 min | 998 mbar | 1000 kg/m³ | logged tissues | 0.0088 bar (10) | 7 | −1.29 min | — | +| B120 | 2026 | Petrel 2 | 30/70, last stop 6 m | Air | 31.5 m | 42 min | 999 mbar | 1000 kg/m³ | logged tissues | 0.0148 bar (10) | 133 | −2.20 min | in 26.8 / 23.3, out 30.7 / 30.7; same depth 24/24, stop +0.00 min | +| B121 | 2026 | Petrel 2 | 30/70 | Air | 29.8 m | 65 min | 992 mbar | 1000 kg/m³ | logged tissues | 0.0187 bar (16) | 71 | −1.70 min | — | +| B122 | 2026 | Petrel 2 | 30/70 | Air | 15.6 m | 81 min | 991 mbar | 1000 kg/m³ | logged tissues | 0.0162 bar (20) | 0 | — | — | +| B123 | 2026 | Petrel 2 | 30/70 | Air | 16.2 m | 129 min | 990 mbar | 1000 kg/m³ | logged tissues | 0.0111 bar (32) | 0 | — | — | +| B124 | 2026 | Petrel 2 | 40/65 | Air | 22.9 m | 76 min | 1001 mbar | 1000 kg/m³ | logged tissues | 0.0164 bar (18) | 38 | +0.05 min | — | +| B125 | 2026 | Petrel 2 | 40/65 | Air | 27.3 m | 80 min | 1019 mbar | 1000 kg/m³ | logged tissues | 0.0107 bar (19) | 105 | −1.88 min | — | +| B127 | 2026 | Petrel 2 | 40/65 | Air | 21.1 m | 79 min | 1009 mbar | 1000 kg/m³ | logged tissues | 0.0100 bar (19) | 0 | — | — | + +#### Open circuit, one mix, VPM-B (49 dives) + +Replayed as: as the watch would see it, default GF 30/70. + +| Dive | Year | Computer | Model, GF | Gas | Max depth | Duration | Surface | Water | Starting tissues | Tissues RMS (snapshots) | NDL samples ≤ 30 min | NDL mean difference | Deco: minute in and out (computer / Open Rémora); stops | Longest stops asked by Open Rémora | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| B011 | 2018 | Perdix AI | VPM-B | EAN32 | 22.4 m | 59 min | 1021 mbar | 1030 kg/m³ | previous dive, 951 min | — | 22 | −14.09 min | — | — | +| B012 | 2018 | Perdix AI | VPM-B | EAN32 | 22.2 m | 54 min | 1023 mbar | 1030 kg/m³ | previous dive, 58 min | — | 39 | −16.92 min | — | — | +| B013 | 2018 | Perdix AI | VPM-B | EAN24 | 13.1 m | 70 min | 1023 mbar | 1030 kg/m³ | previous dive, 1467 min | — | 0 | — | — | — | +| B014 | 2018 | Perdix AI | VPM-B | EAN24 | 31.5 m | 48 min | 1030 mbar | 1030 kg/m³ | previous dive, 1184 min | — | 98 | −10.94 min | in 30.3 / 18.7, out 40.7 / 42.5; same depth 20/60, stop +3.10 min | 6 min | +| B015 | 2018 | Perdix AI | VPM-B | Air | 37.7 m | 46 min | 1030 mbar | 1030 kg/m³ | previous dive, 54 min | — | 53 | −1.77 min | in 14.7 / 12.8, out 39.0 / 36.5; same depth 112/132, stop −1.94 min | 8 min | +| B016 | 2019 | Perdix AI | VPM-B | EAN29 | 20.8 m | 31 min | 1017 mbar | 1030 kg/m³ | saturated | — | 0 | — | — | — | +| B017 | 2019 | Perdix AI | VPM-B | EAN27 | 28.6 m | 55 min | 1016 mbar | 1030 kg/m³ | previous dive, 128 min | — | 52 | −7.81 min | — | — | +| B018 | 2019 | Perdix AI | VPM-B | EAN30 | 33.2 m | 46 min | 1014 mbar | 1030 kg/m³ | previous dive, 1203 min | — | 73 | −3.75 min | in never / 14.7, out never / 20.3 | 1 min | +| B019 | 2022 | Perdix AI | VPM-B | EAN30 | 33.1 m | 42 min | 1009 mbar | 1030 kg/m³ | logged tissues | 0.0080 bar (10) | 79 | −7.30 min | in never / 15.8, out never / 29.3 | 1 min | +| B020 | 2022 | Perdix AI | VPM-B | EAN30 | 27.8 m | 52 min | 1009 mbar | 1030 kg/m³ | logged tissues | 0.0063 bar (12) | 36 | −7.61 min | — | — | +| B021 | 2022 | Perdix AI | VPM-B | EAN30 | 34.4 m | 66 min | 1012 mbar | 1030 kg/m³ | logged tissues | 0.0094 bar (16) | 52 | −5.52 min | in 19.8 / 15.7, out 54.3 / 59.3; same depth 172/204, stop +2.23 min | 10 min | +| B022 | 2022 | Perdix AI | VPM-B | EAN25 | 34.8 m | 93 min | 1014 mbar | 1030 kg/m³ | logged tissues | 0.0078 bar (22) | 54 | −5.63 min | in 20.0 / 16.3, out 50.7 / 49.2; same depth 152/176, stop −0.91 min | 10 min | +| B023 | 2022 | Perdix AI | VPM-B | EAN30 | 21.5 m | 38 min | 1015 mbar | 1030 kg/m³ | logged tissues | 0.0051 bar (9) | 0 | — | — | — | +| B024 | 2022 | Perdix AI | VPM-B | EAN30 | 8.7 m | 50 min | 1014 mbar | 1030 kg/m³ | logged tissues | 0.0044 bar (12) | 0 | — | — | — | +| B025 | 2022 | Perdix AI | VPM-B | EAN30 | 6.8 m | 50 min | 1012 mbar | 1030 kg/m³ | logged tissues | 0.0038 bar (12) | 0 | — | — | — | +| B026 | 2022 | Shearwater Device | VPM-B | EAN23 | 11.3 m | 73 min | 1012 mbar | 1030 kg/m³ | logged tissues | 0.0038 bar (18) | 0 | — | — | — | +| B027 | 2022 | Perdix AI | VPM-B | EAN31 | 25.5 m | 87 min | 1005 mbar | 1030 kg/m³ | logged tissues | 0.0075 bar (21) | 61 | −8.38 min | in 53.3 / 46.7, out 59.2 / 76.0; same depth 34/36, stop +3.56 min | 5 min | +| B028 | 2022 | Perdix AI | VPM-B | Air | 9.6 m | 60 min | 1008 mbar | 1030 kg/m³ | logged tissues | 0.0035 bar (14) | 0 | — | — | — | +| B029 | 2022 | Perdix AI | VPM-B | EAN32 | 35.4 m | 76 min | 974 mbar | 1030 kg/m³ | logged tissues | 0.0086 bar (18) | 63 | −6.57 min | in 26.0 / 16.8, out 33.3 / 63.8; same depth 0/45 | 7 min | +| B030 | 2022 | Perdix AI | VPM-B | EAN30 | 18.7 m | 11 min | 1005 mbar | 1030 kg/m³ | logged tissues | 0.0065 bar (2) | 0 | — | — | — | +| B031 | 2022 | Perdix AI | VPM-B | EAN30 | 19.4 m | 55 min | 1005 mbar | 1030 kg/m³ | logged tissues | 0.0052 bar (13) | 0 | — | — | — | +| B032 | 2023 | Perdix AI | VPM-B | EAN30 | 21.5 m | 41 min | 1003 mbar | 1030 kg/m³ | logged tissues | 0.0055 bar (10) | 2 | −11.00 min | — | — | +| B033 | 2023 | Perdix AI | VPM-B | EAN30 | 22.2 m | 61 min | 1002 mbar | 1030 kg/m³ | logged tissues | 0.0060 bar (15) | 1 | −12.00 min | — | — | +| B034 | 2023 | Perdix AI | VPM-B | Air | 17.5 m | 54 min | 1008 mbar | 1030 kg/m³ | logged tissues | 0.0055 bar (13) | 44 | −13.20 min | — | — | +| B035 | 2023 | Perdix AI | VPM-B | Air | 17.4 m | 56 min | 1006 mbar | 1030 kg/m³ | logged tissues | 0.0048 bar (13) | 67 | −7.52 min | — | — | +| B037 | 2023 | Perdix AI | VPM-B | Air | 38.7 m | 69 min | 1008 mbar | 1030 kg/m³ | logged tissues | 0.0085 bar (16) | 38 | −4.74 min | in 14.7 / 12.2, out 51.2 / 55.2; same depth 136/220, stop +3.18 min | 12 min | +| B039 | 2023 | Perdix AI | VPM-B | EAN30 | 34.0 m | 48 min | 1007 mbar | 1030 kg/m³ | logged tissues | 0.0091 bar (11) | 73 | −5.42 min | in 22.2 / 15.0, out 38.7 / 41.8; same depth 24/97, stop +3.33 min | 8 min | +| B041 | 2023 | Perdix AI | VPM-B | Air | 10.5 m | 71 min | 1013 mbar | 1030 kg/m³ | logged tissues | 0.0025 bar (17) | 0 | — | — | — | +| B042 | 2023 | Perdix AI | VPM-B | Air | 11.8 m | 68 min | 1012 mbar | 1030 kg/m³ | logged tissues | 0.0035 bar (16) | 0 | — | — | — | +| B044 | 2023 | Perdix AI | VPM-B | EAN28 | 26.4 m | 67 min | 994 mbar | 1030 kg/m³ | logged tissues | 0.0088 bar (16) | 100 | −9.22 min | in 28.8 / 20.8, out 47.8 / 53.0; same depth 36/111, stop +4.00 min | 9 min | +| B045 | 2023 | Perdix AI | VPM-B | EAN32 | 29.5 m | 75 min | 1017 mbar | 1030 kg/m³ | logged tissues | 0.0101 bar (18) | 77 | −7.57 min | in 31.3 / 21.5, out 46.0 / 55.0; same depth 60/89, stop +4.88 min | 7 min | +| B046 | 2023 | Perdix AI | VPM-B | EAN30 | 20.0 m | 80 min | 1012 mbar | 1030 kg/m³ | logged tissues | 0.0064 bar (19) | 4 | −17.25 min | — | — | +| B047 | 2023 | Perdix AI | VPM-B | EAN28 | 25.8 m | 67 min | 1019 mbar | 1030 kg/m³ | logged tissues | 0.0077 bar (16) | 77 | −8.17 min | in never / 28.8, out never / 59.2 | 3 min | +| B048 | 2024 | Perdix AI | VPM-B | Air | 5.5 m | 36 min | 1000 mbar | 1000 kg/m³ | logged tissues | 0.0008 bar (8) | 0 | — | — | — | +| B049 | 2024 | Perdix AI | VPM-B | Air | 32.4 m | 61 min | 979 mbar | 1000 kg/m³ | logged tissues | 0.0074 bar (14) | 47 | −6.06 min | in 24.5 / 21.8, out 40.5 / 42.2; same depth 33/93, stop +0.91 min | 6 min | +| B050 | 2024 | Perdix AI | VPM-B | Air | 10.9 m | 60 min | 1000 mbar | 1000 kg/m³ | logged tissues | 0.0026 bar (14) | 0 | — | — | — | +| B051 | 2024 | Perdix AI | VPM-B | EAN28 | 23.2 m | 67 min | 1005 mbar | 1000 kg/m³ | logged tissues | 0.0071 bar (16) | 114 | −13.41 min | in 47.2 / 38.8, out 50.0 / 58.8; same depth 0/18 | 5 min | +| B052 | 2024 | Perdix AI | VPM-B | EAN28 | 20.1 m | 56 min | 1002 mbar | 1000 kg/m³ | logged tissues | 0.0056 bar (13) | 57 | −7.40 min | — | — | +| B053 | 2024 | Perdix AI | VPM-B | Air | 22.0 m | 44 min | 1001 mbar | 1000 kg/m³ | logged tissues | 0.0047 bar (10) | 11 | −9.36 min | — | — | +| B054 | 2024 | Perdix AI | VPM-B | EAN28 | 18.0 m | 82 min | 1007 mbar | 1000 kg/m³ | logged tissues | 0.0055 bar (20) | 0 | — | — | — | +| B055 | 2024 | Perdix AI | VPM-B | Air | 8.8 m | 46 min | 1007 mbar | 1000 kg/m³ | logged tissues | 0.0018 bar (11) | 0 | — | — | — | +| B056 | 2024 | Perdix AI | VPM-B | Air | 6.0 m | 16 min | 1007 mbar | 1000 kg/m³ | logged tissues | 0.0007 bar (4) | 0 | — | — | — | +| B057 | 2024 | Perdix AI | VPM-B | EAN32 | 31.2 m | 34 min | 999 mbar | 1000 kg/m³ | logged tissues | 0.0068 bar (8) | 69 | −11.75 min | — | — | +| B058 | 2024 | Perdix AI | VPM-B | EAN32 | 30.8 m | 38 min | 998 mbar | 1000 kg/m³ | logged tissues | 0.0086 bar (9) | 119 | −11.46 min | in never / 22.5, out never / 29.3 | 1 min | +| B059 | 2024 | Perdix AI | VPM-B | EAN25 | 39.0 m | 67 min | 1007 mbar | 1000 kg/m³ | logged tissues | 0.0058 bar (16) | 35 | −5.86 min | in 32.7 / 35.2, out 49.8 / 45.8; same depth 42/64, stop −2.00 min | 1 min | +| B060 | 2024 | Perdix AI | VPM-B | Air | 15.4 m | 62 min | 1028 mbar | 1000 kg/m³ | logged tissues | 0.0037 bar (15) | 0 | — | — | — | +| B062 | 2024 | Perdix AI | VPM-B | EAN23 | 20.2 m | 84 min | 1005 mbar | 1000 kg/m³ | logged tissues | 0.0050 bar (20) | 55 | −11.20 min | — | — | +| B063 | 2024 | Perdix AI | VPM-B | EAN34 | 31.6 m | 71 min | 1015 mbar | 1000 kg/m³ | logged tissues | 0.0082 bar (17) | 137 | −13.94 min | in never / 29.7, out never / 65.2 | 4 min | +| B065 | 2024 | Perdix AI | VPM-B | Air | 30.5 m | 55 min | 962 mbar | 1000 kg/m³ | logged tissues | 0.0077 bar (13) | 61 | −5.54 min | in 19.0 / 13.5, out 33.5 / 35.5; same depth 63/88, stop +1.30 min | 4 min | + +#### Open circuit, gas switch (6 dives) + +Replayed as: as the watch would see it: bottom mix only, default GF 30/70. + +| Dive | Year | Computer | Model, GF | Gas | Max depth | Duration | Surface | Water | Starting tissues | Tissues RMS (snapshots) | NDL samples ≤ 30 min | NDL mean difference | Deco: minute in and out (computer / Open Rémora); stops | Longest stops asked by Open Rémora | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| B036 | 2023 | Perdix AI | VPM-B | EAN30, O2 | 20.7 m | 91 min | 1000 mbar | 1030 kg/m³ | logged tissues | — | 20 | −19.10 min | in 73.8 / 56.3, out 79.7 / 85.3; same depth 36/36, stop +10.50 min | 12 min | +| B038 | 2023 | Perdix AI | VPM-B | Air, O2 | 30.8 m | 75 min | 1008 mbar | 1030 kg/m³ | logged tissues | — | 51 | −5.33 min | in 19.0 / 14.2, out 55.2 / 69.0; same depth 115/218, stop +4.47 min | 29 min | +| B040 | 2023 | Perdix AI | VPM-B | EAN30, O2 | 34.5 m | 47 min | 1011 mbar | 1030 kg/m³ | logged tissues | — | 77 | −2.82 min | in 17.8 / 15.0, out 40.7 / 41.3; same depth 103/138, stop +1.63 min | 9 min | +| B043 | 2023 | Perdix AI | VPM-B | EAN28, O2 | 41.0 m | 75 min | 963 mbar | 1030 kg/m³ | logged tissues | — | 36 | −3.78 min | in 15.2 / 9.3, out 59.5 / 69.3; same depth 6/267, stop +10.00 min | 24 min | +| B061 | 2024 | Perdix AI | VPM-B | Air, O2 | 51.3 m | 52 min | 976 mbar | 1000 kg/m³ | logged tissues | — | 27 | −3.22 min | in 9.0 / 7.5, out 42.0 / 46.3; same depth 97/199, stop +2.31 min | 27 min | +| B064 | 2024 | Perdix AI | VPM-B | Air, O2 | 52.8 m | 62 min | 958 mbar | 1000 kg/m³ | logged tissues | — | 21 | −3.76 min | in 9.3 / 8.0, out 52.2 / 55.8; same depth 66/258, stop +2.52 min | 40 min | + +#### Rebreather (62 dives) + +Replayed as: as the watch would see it: air in open circuit, default GF 30/70. + +| Dive | Year | Computer | Model, GF | Gas | Max depth | Duration | Surface | Water | Starting tissues | Tissues RMS (snapshots) | NDL samples ≤ 30 min | NDL mean difference | Deco: minute in and out (computer / Open Rémora); stops | Longest stops asked by Open Rémora | +|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| B066 | 2025 | Petrel 2 | GF 30/85 | Air | 3.3 m | 7 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B067 | 2025 | Petrel 2 | GF 30/85 | Air | 3.1 m | 12 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B068 | 2025 | Petrel 2 | GF 30/85 | Air | 3.3 m | 8 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B069 | 2025 | Petrel 2 | GF 30/85 | Air | 3.5 m | 8 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B070 | 2025 | Petrel 2 | GF 30/85 | Air | 3.0 m | 4 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B071 | 2025 | Petrel 2 | GF 30/85 | Air | 3.4 m | 14 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B072 | 2025 | Petrel 2 | GF 30/85 | Air | 3.1 m | 23 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B073 | 2025 | Petrel 2 | GF 30/85 | Air | 3.1 m | 10 min | 984 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B074 | 2025 | Petrel 2 | GF 30/85 | Air | 11.2 m | 58 min | 978 mbar | 1020 kg/m³ | logged tissues | — | 0 | — | — | — | +| B075 | 2025 | Petrel 2 | GF 30/85 | Air | 8.2 m | 53 min | 979 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B076 | 2025 | Petrel 2 | GF 30/85 | Air | 17.2 m | 65 min | 982 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B077 | 2025 | Petrel 2 | GF 30/70 | Air | 31.4 m | 64 min | 984 mbar | 1000 kg/m³ | logged tissues | — | 48 | −10.12 min | in never / 30.8, out never / 62.0 | 4 min | +| B078 | 2025 | Petrel 2 | GF 30/70 | Air | 37.1 m | 51 min | 989 mbar | 1000 kg/m³ | logged tissues | — | 38 | −4.87 min | in 23.5 / 18.7, out 38.3 / 50.3; same depth 11/90, stop +2.64 min | 17 min | +| B079 | 2025 | Petrel 2 | GF 30/70 | Air, EAN50 | 36.8 m | 53 min | 991 mbar | 1000 kg/m³ | logged tissues | — | 34 | −5.03 min | in 17.3 / 13.0, out 47.2 / 52.3; same depth 49/180, stop −0.63 min | 31 min | +| B080 | 2025 | Petrel 2 | GF 30/70 | Air | 19.3 m | 62 min | 1011 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B081 | 2025 | Petrel 2 | GF 30/70 | Air | 4.0 m | 8 min | 1011 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B082 | 2025 | Petrel 2 | GF 30/70 | Air | 6.5 m | 20 min | 1011 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B083 | 2025 | Petrel 2 | GF 30/70 | Air | 30.2 m | 123 min | 1019 mbar | 1000 kg/m³ | logged tissues | — | 4 | −19.75 min | in never / 24.3, out never / 121.8 | 28 min | +| B084 | 2025 | Petrel 2 | GF 30/70 | Air | 8.9 m | 36 min | 1019 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B085 | 2025 | Petrel 2 | GF 30/70 | Air | 1.6 m | 2 min | 1019 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B086 | 2025 | Petrel 2 | GF 30/70 | Air | 12.4 m | 44 min | 1008 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B087 | 2025 | Petrel 2 | GF 30/70 | Air | 4.2 m | 7 min | 1006 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B088 | 2025 | Petrel 2 | GF 30/70 | Air | 8.0 m | 46 min | 1006 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B089 | 2025 | Petrel 2 | GF 30/70 | Air | 7.4 m | 70 min | 1006 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B090 | 2025 | Petrel 2 | GF 30/70 | Air | 30.6 m | 48 min | 972 mbar | 1000 kg/m³ | logged tissues | — | 24 | −13.83 min | in never / 19.3, out never / 32.7 | 3 min | +| B091 | 2025 | Petrel 2 | GF 30/70 | Air | 11.3 m | 46 min | 1008 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B092 | 2025 | Petrel 2 | GF 30/70 | Air | 22.2 m | 48 min | 1008 mbar | 1000 kg/m³ | logged tissues | — | 66 | −7.15 min | — | — | +| B093 | 2025 | Petrel 2 | GF 30/70 | Air | 21.0 m | 83 min | 1008 mbar | 1000 kg/m³ | logged tissues | — | 1 | −10.00 min | in never / 37.8, out never / 79.7 | 23 min | +| B094 | 2025 | Petrel 2 | GF 30/70 | Air | 37.1 m | 89 min | 1010 mbar | 1000 kg/m³ | logged tissues | — | 22 | −11.55 min | in 20.2 / 15.2, out 58.7 / 85.8; same depth 15/232, stop +10.93 min | 47 min | +| B095 | 2025 | Petrel 2 | GF 30/70 | Air | 22.1 m | 50 min | 1013 mbar | 1000 kg/m³ | logged tissues | — | 86 | −6.09 min | — | — | +| B096 | 2025 | Petrel 2 | GF 30/70 | Air, EAN47 | 21.5 m | 46 min | 1010 mbar | 1000 kg/m³ | logged tissues | — | 64 | −7.16 min | — | — | +| B097 | 2025 | Petrel 2 | GF 30/70 | Air | 21.2 m | 49 min | 1005 mbar | 1000 kg/m³ | logged tissues | — | 124 | −6.73 min | in never / 28.5, out never / 38.3 | 2 min | +| B098 | 2025 | Petrel 2 | GF 30/70 | Air | 20.2 m | 53 min | 1003 mbar | 1000 kg/m³ | logged tissues | — | 2 | −8.00 min | in never / 34.7, out never / 45.7 | 3 min | +| B099 | 2025 | Petrel 2 | GF 30/70 | Air | 20.1 m | 79 min | 1012 mbar | 1000 kg/m³ | logged tissues | — | 91 | −15.29 min | in never / 47.7, out never / 47.7 | 1 min | +| B100 | 2025 | Petrel 2 | GF 30/70 | Air | 27.0 m | 68 min | 995 mbar | 1000 kg/m³ | logged tissues | — | 14 | −20.07 min | in never / 22.3, out never / 64.5 | 19 min | +| B101 | 2025 | Petrel 2 | GF 30/70 | Air | 27.9 m | 70 min | 1015 mbar | 1000 kg/m³ | logged tissues | — | 50 | −5.72 min | in 37.3 / 21.3, out 44.7 / 67.3; same depth 12/45, stop +3.67 min | 33 min | +| B102 | 2025 | Petrel 2 | GF 30/70 | Air | 17.2 m | 18 min | 946 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B103 | 2025 | Petrel 2 | GF 30/70 | Air | 5.7 m | 55 min | 996 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B104 | 2026 | Petrel 2 | GF 30/70 | Air | 3.7 m | 19 min | 1000 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B105 | 2026 | Petrel 2 | GF 30/70 | Air | 3.6 m | 25 min | 1000 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B106 | 2026 | Petrel 2 | GF 30/70 | Air | 40.4 m | 66 min | 961 mbar | 1000 kg/m³ | logged tissues | — | 32 | −5.81 min | in 21.3 / 17.2, out 36.0 / 63.3; same depth 0/89 | 17 min | +| B107 | 2026 | Petrel 2 | GF 30/70 | Air | 19.3 m | 34 min | 959 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B108 | 2026 | Petrel 2 | GF 30/70 | Air | 13.8 m | 49 min | 987 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B109 | 2026 | Petrel 2 | GF 30/70 | Air | 29.4 m | 36 min | 985 mbar | 1000 kg/m³ | logged tissues | — | 26 | −17.69 min | in never / 20.2, out never / 27.7 | 1 min | +| B110 | 2026 | Petrel 2 | GF 30/70 | Air | 15.9 m | 36 min | 984 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B111 | 2026 | Petrel 2 | GF 30/70 | Air | 13.2 m | 54 min | 980 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B112 | 2026 | Petrel 2 | GF 30/70 | Air | 39.0 m | 23 min | 979 mbar | 1000 kg/m³ | logged tissues | — | 42 | −7.33 min | in never / 11.0, out never / 19.3 | 3 min | +| B113 | 2026 | Petrel 2 | GF 30/70 | Air | 31.3 m | 39 min | 979 mbar | 1000 kg/m³ | logged tissues | — | 56 | −11.14 min | in never / 12.7, out never / 36.3 | 9 min | +| B114 | 2026 | Petrel 2 | GF 30/70 | Air | 8.0 m | 46 min | 1007 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B115 | 2026 | Petrel 2 | GF 30/70 | Air | 6.7 m | 33 min | 1006 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B116 | 2026 | Petrel 2 | GF 30/70 | Air | 21.6 m | 56 min | 1008 mbar | 1000 kg/m³ | logged tissues | — | 10 | −12.50 min | — | — | +| B117 | 2026 | Petrel 2 | GF 30/70 | Air | 14.3 m | 113 min | 1003 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B118 | 2026 | Petrel 2 | GF 30/70 | Air | 8.3 m | 58 min | 1000 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B119 | 2026 | Petrel 2 | GF 30/70 | Air | 24.1 m | 41 min | 998 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | in never / 18.2, out never / 38.2 | 5 min | +| B120 | 2026 | Petrel 2 | GF 30/70 | Air | 31.5 m | 42 min | 999 mbar | 1000 kg/m³ | logged tissues | — | 52 | −10.54 min | in 26.8 / 12.2, out 30.7 / 39.3; same depth 0/24 | 16 min | +| B121 | 2026 | Petrel 2 | GF 30/70 | Air | 29.8 m | 65 min | 992 mbar | 1000 kg/m³ | logged tissues | — | 9 | −23.67 min | in never / 22.8, out never / 63.8 | 24 min | +| B122 | 2026 | Petrel 2 | GF 30/70 | Air | 15.6 m | 81 min | 991 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B123 | 2026 | Petrel 2 | GF 30/70 | Air | 16.2 m | 129 min | 990 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | — | — | +| B124 | 2026 | Petrel 2 | GF 40/65 | Air | 22.9 m | 76 min | 1001 mbar | 1000 kg/m³ | logged tissues | — | 38 | −3.34 min | in never / 34.8, out never / 60.8 | 1 min | +| B125 | 2026 | Petrel 2 | GF 40/65 | Air | 27.3 m | 80 min | 1019 mbar | 1000 kg/m³ | logged tissues | — | 2 | −26.50 min | in never / 33.3, out never / 76.7 | 27 min | +| B126 | 2026 | Petrel 2 | GF 40/60 | Tx 21/34 | 44.4 m | 63 min | 982 mbar | 1000 kg/m³ | logged tissues | — | 25 | −0.80 min | in 7.8 / 7.8, out 47.2 / 59.7; same depth 78/237, stop +0.40 min | 31 min | +| B127 | 2026 | Petrel 2 | GF 40/65 | Air | 21.1 m | 79 min | 1009 mbar | 1000 kg/m³ | logged tissues | — | 0 | — | in never / 31.8, out never / 77.3 | 23 min | +<!-- END DIVES --> diff --git a/tools/validation_tables.py b/tools/validation_tables.py @@ -0,0 +1,177 @@ +# SPDX-License-Identifier: GPL-2.0-only +"""Builds the tables of docs/VALIDATION.md from the output of the Shearwater comparison test. + +The test (RemoraKit, ShearwaterComparisonTests) prints one ROW line per replayed dive, with an anonymous +identifier (a letter per diver, the rank of the dive in the export): no name, no site, no date but the year. + +Usage: python3 -I validation_tables.py run-A.txt run-B.txt [--update ../docs/VALIDATION.md] +With --update, the text between the GENERATED markers of the report is replaced; otherwise it is printed.""" +import math, sys + +FIELDS = ("id year computer mode model gf gases depth minutes surface density origin kind gf_used " + "snapshots tissue_sq ndl_n ndl_sum short_n short_sum short_abs short_within2 liberal zero_early " + "enter_theirs enter_ours leave_theirs leave_ours deco_both deco_same stop_sum stop_worst " + "only_theirs only_ours longest_stop longest_tts last_stop").split() +NUMBERS = set("snapshots tissue_sq ndl_n ndl_sum short_n short_sum short_abs short_within2 liberal zero_early " + "deco_both deco_same stop_sum stop_worst only_theirs only_ours longest_stop longest_tts".split()) +KINDS = [ + ("reference", "Open circuit, one mix, gradient factors", "the computer runs the algorithm of the engine"), + ("closedCircuitModelled", "Rebreather, gradient factors, logged ppO2", "the planner with the ppO2 logged in the loop"), + ("otherModel", "Open circuit, one mix, VPM-B", "as the watch would see it, default GF 30/70"), + ("multiGas", "Open circuit, gas switch", "as the watch would see it: bottom mix only, default GF 30/70"), + ("closedCircuit", "Rebreather", "as the watch would see it: air in open circuit, default GF 30/70"), +] +ALGORITHM = ("reference", "closedCircuitModelled") + +def load(paths): + rows = [] + for path in paths: + for line in open(path, encoding="utf-8"): + if not line.startswith("ROW;"): continue + values = line.rstrip("\n").split(";")[1:] + row = dict(zip(FIELDS, values)) + for key in NUMBERS: row[key] = float(row[key]) + row["diver"] = row["id"][0] + rows.append(row) + return rows + +def signed(value, digits=2): return f"{value:+.{digits}f}".replace("-", "−") +def ratio(a, b): return a / b if b else 0.0 + +def gas(row): + mixes = [] + for mix in row["gases"].split("+"): + o2, he = (int(x) for x in mix.split("/")) + mixes.append(f"Tx {o2}/{he}" if he else "Air" if o2 == 21 else "O2" if o2 >= 99 else f"EAN{o2}") + return ", ".join(mixes) + +def mode(row): + if row["mode"] == "cc": return "rebreather" + return "open circuit" + +def total(rows): + t = {key: sum(r[key] for r in rows) for key in NUMBERS if key != "stop_worst"} + t["dives"] = len(rows) + t["stop_worst"] = max((r["stop_worst"] for r in rows), key=abs, default=0) + t["deco_theirs"] = sum(1 for r in rows if r["enter_theirs"]) + t["deco_ours"] = sum(1 for r in rows if r["enter_ours"]) + enters = [float(r["enter_ours"]) - float(r["enter_theirs"]) for r in rows if r["enter_theirs"] and r["enter_ours"]] + leaves = [float(r["leave_ours"]) - float(r["leave_theirs"]) for r in rows if r["leave_theirs"] and r["leave_ours"]] + t["enter"] = ratio(sum(enters), len(enters)); t["leave"] = ratio(sum(leaves), len(leaves)); t["deco_pairs"] = len(enters) + return t + +def totals_tables(rows): + out = [] + divers = sorted({r["diver"] for r in rows}) + everyone = [("all divers", rows)] + [(f"diver {d}", [r for r in rows if r["diver"] == d]) for d in divers] + + def groups(key, field=None): + """All divers together, then each of them; a single line when one diver only has such dives.""" + present = [(name, group) for name, group in everyone[1:] + if any(r["kind"] == key and (field is None or r[field]) for r in group)] + return present if len(present) == 1 else everyone[:1] + present + + out += ["#### Tissue loading against the tissues logged by the computer", "", + "| Replay | Dives with snapshots | Snapshots | RMS error |", "|---|---|---|---|"] + for key, label, _ in KINDS: + if key in ("multiGas", "closedCircuit"): continue + for name, group in groups(key, "snapshots"): + sel = [r for r in group if r["kind"] == key and r["snapshots"]] + if not sel: continue + t = total(sel) + out.append(f"| {label}, {name} | {len(sel)} | {t['snapshots']:.0f} | " + f"{math.sqrt(ratio(t['tissue_sq'], t['snapshots'] * 16)):.4f} bar |") + out.append("") + + out += ["#### No-decompression limit, where the computer shows 30 min or less", "", + "| Replay | Dives | Samples | Mean difference | Mean absolute difference | Within 2 min | " + "5 min or more above the computer | At zero while the computer shows 5 min or more |", + "|---|---|---|---|---|---|---|---|"] + for key, label, _ in KINDS: + for name, group in groups(key, "short_n"): + sel = [r for r in group if r["kind"] == key] + t = total(sel) + if not t["short_n"]: continue + out.append(f"| {label}, {name} | {sum(1 for r in sel if r['short_n'])} | {t['short_n']:.0f} | {signed(ratio(t['short_sum'], t['short_n']))} min | " + f"{ratio(t['short_abs'], t['short_n']):.2f} min | {100 * ratio(t['short_within2'], t['short_n']):.0f} % | " + f"{t['liberal']:.0f} | {t['zero_early']:.0f} |") + out.append("") + + out += ["#### Decompression stops", "", + "| Replay | Dives in deco (computer / Open Rémora) | Enters deco | Leaves deco | Samples in deco for both | " + "Same stop depth | Stop time, mean difference | Largest difference | Deco for the computer only (samples) | For Open Rémora only |", + "|---|---|---|---|---|---|---|---|---|---|"] + for key, label, _ in KINDS: + for name, group in groups(key): + sel = [r for r in group if r["kind"] == key] + t = total(sel) + if not sel or not (t["deco_theirs"] or t["deco_ours"]): continue + out.append(f"| {label}, {name} | {t['deco_theirs']} / {t['deco_ours']} | " + f"{signed(t['enter'], 1) + ' min' if t['deco_pairs'] else '—'} | {signed(t['leave'], 1) + ' min' if t['deco_pairs'] else '—'} | " + f"{t['deco_both']:.0f} | {t['deco_same']:.0f} ({100 * ratio(t['deco_same'], t['deco_both']):.0f} %) | " + f"{signed(ratio(t['stop_sum'], t['deco_same'])) + ' min' if t['deco_same'] else '—'} | " + f"{signed(t['stop_worst'], 0) + ' min' if t['deco_same'] else '—'} | {t['only_theirs']:.0f} | {t['only_ours']:.0f} |") + out.append("") + return out + +def deco_cell(row): + if not row["enter_theirs"] and not row["enter_ours"]: return "—" + def pair(a, b): return f"{row[a] or 'never'} / {row[b] or 'never'}" + cell = f"in {pair('enter_theirs', 'enter_ours')}, out {pair('leave_theirs', 'leave_ours')}" + if row["deco_both"]: + cell += f"; same depth {row['deco_same']:.0f}/{row['deco_both']:.0f}" + if row["deco_same"]: cell += f", stop {signed(ratio(row['stop_sum'], row['deco_same']))} min" + return cell + +def dive_tables(rows): + out = [] + for key, label, how in KINDS: + sel = [r for r in rows if r["kind"] == key] + if not sel: continue + algorithm = key in ALGORITHM + out += [f"#### {label} ({len(sel)} dives)", "", f"Replayed as: {how}.", ""] + head = ["Dive", "Year", "Computer", "Model, GF" if not algorithm else "GF", "Gas", "Max depth", "Duration", + "Surface", "Water", "Starting tissues", "Tissues RMS (snapshots)", "NDL samples ≤ 30 min", "NDL mean difference", + "Deco: minute in and out (computer / Open Rémora); stops"] + if not algorithm: head.append("Longest stops asked by Open Rémora") + out += ["| " + " | ".join(head) + " |", "|" + "---|" * len(head)] + for r in sel: + model = r["gf"] if algorithm else (f"{r['model']}" if r["model"] != "GF" else f"GF {r['gf']}") + if algorithm and r["last_stop"] == "6": model += ", last stop 6 m" + cells = [r["id"], r["year"], r["computer"], model, gas(r), f"{r['depth']} m", f"{r['minutes']} min", + f"{r['surface']} mbar", f"{r['density']} kg/m³", r["origin"].replace("interval", "previous dive,"), + f"{math.sqrt(ratio(r['tissue_sq'], r['snapshots'] * 16)):.4f} bar ({r['snapshots']:.0f})" if r["snapshots"] else "—", + f"{r['short_n']:.0f}", signed(ratio(r["short_sum"], r["short_n"])) + " min" if r["short_n"] else "—", + deco_cell(r)] + if not algorithm: cells.append(f"{r['longest_stop']:.0f} min" if r["longest_stop"] else "—") + out.append("| " + " | ".join(cells) + " |") + out.append("") + return out + +def data_table(rows): + out = ["| Diver | Dives | Years | Computers | Depth | Replays |", "|---|---|---|---|---|---|"] + for d in sorted({r["diver"] for r in rows}): + sel = [r for r in rows if r["diver"] == d] + dives = {r["id"]: r for r in sel}.values() + kinds = "; ".join(f"{sum(1 for r in sel if r['kind'] == key)} × {label}" for key, label, _ in KINDS + if any(r["kind"] == key for r in sel)) + years = sorted({r["year"] for r in dives}) + out.append(f"| {d} | {len(dives)} | {years[0]}–{years[-1]} | {', '.join(sorted({r['computer'] for r in dives}))} | " + f"{min(float(r['depth']) for r in dives):.0f} to {max(float(r['depth']) for r in dives):.1f} m | {kinds} |") + return out + [""] + +if __name__ == "__main__": + args = [a for a in sys.argv[1:] if not a.startswith("--")] + update = args.pop() if "--update" in sys.argv else None + rows = load(args) + sections = {"DATA": data_table(rows), "TOTALS": totals_tables(rows), "DIVES": dive_tables(rows)} + if not update: + for name, lines in sections.items(): print("\n".join(lines)) + sys.exit(0) + text = open(update, encoding="utf-8").read() + for name, lines in sections.items(): + begin, end = f"<!-- GENERATED {name} -->", f"<!-- END {name} -->" + a, b = text.index(begin) + len(begin), text.index(end) + text = text[:a] + "\n" + "\n".join(lines) + text[b:] + open(update, "w", encoding="utf-8").write(text) + print("updated", update)