Poseidon CCR CSV dive log imports: Cylinder assignments

Miika Turkia miika.turkia at gmail.com
Tue Nov 4 23:04:51 PST 2014

On Wed, Nov 5, 2014 at 2:48 PM, Willem Ferguson <
willemferguson at zoology.up.ac.za> wrote:

> Miika,
> A problem arises when importing several dive logs. It appears some of the
> cylinder storage assignments are not reset between consecutive imports. I
> attach three images of the cylinder table for each of three consecutive
> imports.
> Import_1.png: First import, all assignments correct.
> Import_2.png: Two new cylinders are created and pressure info stored
> there. Gas composition info stored correctly.
> Import_3.png: Third import. Yet two more new cylinders created into which
> pressure info is stored. But gas composition info stored correctly.
> I cannot see anything obvious in file.c. Could it be that some sync with
> the Qt code is required?

I suppose we need to re-set the cylinder counter to zero when parsing a new
log file. Will this patch do the trick for you?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141105/f4ce44b7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Reset-cylinder-index-when-importing-new-MK6-log.patch
Type: text/x-patch
Size: 957 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141105/f4ce44b7/attachment.bin>

More information about the subsurface mailing list