subsurface/dives
Michael Keller 8f0380fd05 Equipment: Fix 'used' Gas Selection for CCR Dives.
Fix how gases are marked as 'used' and kept from being deleted in the
equipment tab for CCR dives.
It does not make sense to treat the (arbitrary) first gas in the list
with a usage type of 'diluent' or 'oxygen' as 'used' and prevent the
user from deleting it. Dive computers report the initial diluent and
any other diluents used through a 'gaschange' event, so the actually
used diluents are already picked up as part of gaschange event based
logic.
Also clarify the selection of the first diluent used as a default if no
gaschange events exist.
Also fixed the test data - gases that have a pressure change should be
included in the profile if they do not have a gas change recorded
against them by other dive computers, even if they are oxygen.
A secondary problem shown by this is that the pressure change is not
applied to the profile - the pressure is currently shown as constant on
the start pressure. But this is for another pull request.

Signed-off-by: Michael Keller <github@ike.ch>
2023-07-25 12:05:51 +12:00
..
images
abitofeverything.ssrf
Demo_SmartTrak.slg
Dive_2013-02-02-1614.xml
DL7.xml Clean up divecomputer 'device' handling 2021-08-18 13:22:02 -07:00
DL7.zxu
Example.log Import Datatrak/WLog files 2015-03-10 10:03:08 -07:00
exportprofilereference.csv
exportprofilereferenceVPMB.csv
gps-import.gpx
gps-import.xml Desktop: Import gps coordinates: test files 2020-01-24 09:51:51 -08:00
mergedVyperOstc.xml
ostc.xml Add test for merging multiple cylinders 2017-02-09 22:22:12 -08:00
ostc_00087_04-05-2014_043m_032min.dive
ostc_00173_17-08-2013_027m_043min.dive
Poseidon_MkVILog.csv
Poseidon_MkVILog.txt
sac-test.xml
SampleDivesV2.ssrf
tank_pressure.xml
Test.csv
test0.xml
test0b.xml
test1.xml
test2.xml
test3.xml Replace Linus' dives with useful test dives that help test the app 2011-11-04 10:47:38 -07:00
test4.xml
test5.xml Replace Linus' dives with useful test dives that help test the app 2011-11-04 10:47:38 -07:00
test6.xml
test7.xml
test8.xml
test9.xml Correctly plot dives ending below the surface 2011-11-09 07:53:10 -08:00
test9a.xml
test10.xml
test11.xml
test12.xml
test13.xml
test14.xml
test15.xml
test16.xml
test17.xml Add GPS locations to some of the test dives 2013-01-13 10:23:38 -08:00
test18.xml
test19.xml Fix the description of test dive cylinders 2014-07-15 20:46:02 -07:00
test20.xml
test21.xml
test22.xml
test23.xml
test24.xml
test25.xml
test26.xml
test27.xml
test28.xml
test29.xml Correctly parse multiple tags in the divelog 2013-12-12 16:29:06 -08:00
test30.xml Test dive for events 2013-12-28 07:40:54 -08:00
test31.xml Include images in profile 2014-02-06 11:29:23 -08:00
test32.xml Add test dive to show erroneous pp graphs 2014-03-15 15:01:08 -07:00
test33.xml
test34.xml
test35.xml
test36.xml
test38.xml
test40-42.xml
test40.xml
test41.csv
test42.xml Some simple test for file parsing 2015-03-14 18:15:08 -07:00
test43.xml
test44.xml
test47+48.xml
test47.xml Fix pO2 for CCR at shallow depths 2021-02-26 08:42:30 -08:00
test47b.xml
test47c.xml
test48+47.xml
test48.xml
test50.xml Test dives for duplicate names and conflicting GPS 2015-02-14 18:13:35 -08:00
test51.xml
TestAPDLogViewer.csv
TestAtmPress.xml
TestComma.csv
TestDiveDivelogsDE.DLD Add two more versions of this dive from divelogs.de 2013-02-25 22:07:05 -08:00
TestDiveDivelogsDE.udcf Add two more versions of this dive from divelogs.de 2013-02-25 22:07:05 -08:00
TestDiveDivelogsDE.xml Fix pO2 for CCR at shallow depths 2021-02-26 08:42:30 -08:00
TestDiveDivingLog5.08.udcf
TestDiveDivingLog5.08.uddf
TestDiveDivingLog5.08allimperial.xml
TestDiveDivingLog5.08allmetric.xml
TestDiveDivingLog5.08allmetric.zip
TestDiveDM3.SDE Add the same test dive in a number of different formats 2013-02-25 20:28:58 -08:00
TestDiveDM4.db
TestDiveDM4.xml
TestDiveDM5.db
TestDiveDM5.xml Clean up divecomputer 'device' handling 2021-08-18 13:22:02 -07:00
TestDiveJDiveLog.jlb
TestDiveSeabearH3_0002SBDT.CSV
TestDiveSeabearH3_0003SBDT.CSV
TestDiveSeabearH3_0004SBDT.CSV Test dives for Seabear new format 2015-07-28 08:46:51 -07:00
TestDiveSeabearH3_0005SBDT.CSV
TestDiveSeabearHUDC.csv
TestDiveSeabearHUDC.xml Clean up divecomputer 'device' handling 2021-08-18 13:22:02 -07:00
TestDiveSeabearNewFormat.xml
TestDiveSeabearT1_0001SBDT.CSV
TestDiveSeabearT1_0002SBDT.CSV
TestDiveSeabearT1_0003SBDT.CSV
TestDiveSeabearT1_0004SBDT.CSV
TestDiveSeabearT1_0005SBDT.CSV
TestDiveSeacSync.db Implement Seac SeacSync databaser parser. 2020-09-04 15:54:08 +03:00
TestDivingLog4.1.1.sql Divinglog test dive 2015-07-13 15:21:30 -07:00
testsensormove.xml
TestSensusSingle.csv
TestXP5_de.csv
TwoTimesTwo.ssrf
vyper.xml