Poseidon CCR CSV dive log imports: Cylinder assignments

Willem Ferguson willemferguson at zoology.up.ac.za
Wed Nov 5 00:03:55 PST 2014


On 05/11/2014 09:04, Miika Turkia wrote:
> On Wed, Nov 5, 2014 at 2:48 PM, Willem Ferguson 
> <willemferguson at zoology.up.ac.za 
> <mailto: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?
>
> miika
>
Yup, Thank you very much. It does solve the problem. I was wondering 
about that external variable definition.

There is still a remaining inconsistency but first I need to look into 
that in more detail to try and understand it.
Kind regards,
willem


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141105/5a587596/attachment.html>


More information about the subsurface mailing list