Poseidon CSV import

Miika Turkia miika.turkia at gmail.com
Fri Nov 14 21:53:20 PST 2014


On Thu, Nov 13, 2014 at 9:09 PM, Willem Ferguson <
willemferguson at zoology.up.ac.za> wrote:

> Miika,
> There is a small problem in the Poseidon CSV import. It is evident not
> while doing a CSV import, but when exporting the dive to xml. I understand
> the cause but not the solution. In the CSV import, cylinder start and end
> pressures are stored in cyl->sample_start and cyl->sample_end. When writing
> to xml, the start and end pressures for cylinder 0 (oxygen), have not been
> transfered to cyl->start and cyl->end: these latter values are both zero
> and are used for writing to xml. Consequently the start and end pressures
> of the oxygen cylinder are not written to xml. For the diluent cylinder
> everything is ok, the pressures have been transfered for cyl->sample_start
> and sample_end to cyl->start and cyl->end.
>
> Probably half of my dives are multi-cylinder, and when reading my divelog
> with multiple cylinders from xml, the cyl->start and cyl->end values are
> always set up correctly for all cylinders. I have spent quite a bit of time
> looking around for a solution, but have only found a workaround or two, not
> a solution. Do you have any ideas?
>

Will this do the trick? I am not entirely sure about the pressure handling,
but this seems reasonable way to store the cylinder start and  end
pressures.

miika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141115/ef38eaf1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Save-cylinder-pressure-from-samples.patch
Type: text/x-patch
Size: 1519 bytes
Desc: not available
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20141115/ef38eaf1/attachment-0001.bin>


More information about the subsurface mailing list