[PATCH] Improvements on JDiveLog import

Miika Turkia miika.turkia at gmail.com
Sat Nov 24 09:52:19 PST 2012


On Sat, Nov 24, 2012 at 7:08 PM, Dirk Hohndel <dirk at hohndel.org> wrote:
> Miika Turkia <miika.turkia at gmail.com> writes:
>
>> If dive computer does not record the sample interval, but records time
>> stamps on the samples, we use those.
>>
>> A couple of corner cases fixed that were noticed in new log samples.
>> Also fixes when importing dives logged in imperial units.
>
> Excellent. I tested this with Jan's jdivelog export and it seems to work
> perfectly. Great work (and who on earth invented that insane language...
> 'when' and 'otherwise'?? really??)

Diego had also DECOINFO events in his logs. The attached patch
converts these to subsurface events (TFS attribute gets discarded even
though I do convert it also, just in case). The events seem to work
well enough with this info. There is also a test dive attached to show
how the decoinfo is displayed.

miika
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Convert-decoinfo-fields-for-subsurface.patch
Type: application/octet-stream
Size: 2495 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20121124/c17c1f49/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Sample-dive-for-decoinfo.patch
Type: application/octet-stream
Size: 2551 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20121124/c17c1f49/attachment-0003.obj>


More information about the subsurface mailing list