New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to delete cylinders and their associated pressure data after Liquivision data import #869
Comments
The log file has sensor 0 and sensor 4 readings. And that results in 5 cylinder rows in the equipment tab even though only 1 cylinder is defined in the log file. Clearly this case is incorrectly handled by Subsurface. |
Fwiw, having sensors be numbered 0 and 4 makes sense - this evidently comes from a computer itself that has well defined index of transmitters (configurable by user). On this particular dive only transmitters/sensors 0 and 4 were present. Index 0 is reserved for the transmitter of the user of the computer themselves. Buddies 1,2,3 (thus sensors 1,2,3) were not present on this dive, thus their transmitters were also not present. The problem is with handling of this data past import, as you correctly noticed. |
I did some investigations around this during the last weeks because I also saw an issue and finally I think I understand part of it a little bit better. From my point of view we have two issues:
|
Ahhh, that's funny: Linus in fact forewarned us that this handling of multiple pressure sensors is not yet complete: @dirkhh I'll once simply try to increase MAX_SENSORS plus some bugfix because MAX_SENSORS is even not used consistently - at another point the number of 2 is hard coded... |
Ok, what I wrote about the MAX_SENSORS (and Linus) is not correct ;-) |
Please keep in mind that we also need to distinguish between the side-mount case (two sensors displaying the pressures of the two tanks that are used at the same time without gas switches), the rebreather case (whatever that case may be, I have no clue about rebreathers), and then this case where the dive computer tracks pressure readings from other divers. |
Created a PR #870 with a couple of small improvements. Inside this PR there is one commit which fixes the "can't remove the cylinder" part of this issue for me. |
Liquivision supports up to 10 transmitters (sensors). From my POV, the most important part is being able to delete the cylinders and associated data, I don't actually care about my buddys data graph at that point. |
@vklimovs
Today we do "everything" wrong here: We first allow to delete the "used" cylinder and then we "merge" the pressure info which is clearly incorrect. |
I think even if pressure data is present user should be free to delete the cylinder though, why not? User can edit (delete) any other data about the dive, why not the cylinder pressure. |
Describe the issue:
Issue long description:
After importing Liquivision file (.lvd) that contains data from more than 1 pressure transmitter (sensor), it's not possible to edit Cylinders section of Equipment tab.
Operating system:
Windows 10, English
Liquivision Lynx by downloading data using proprietary app and then importing into Subsurface.
Subsurface version:
Subsurface 4.7.4
Previous Subsurface versions had bugs wrt import of .lvd files which are now fixed (thank you!)
Using official release.
Steps to reproduce:
Current behavior:
Nothing happens - after performing the deletion and pressing "Apply changes", all deleted cylinders reappear.
Expected behavior:
Cylinder and its associated pressure information is deleted from the database and disappears from the UI and dive profile graph. It should be possible to delete all cylinders and their associated pressure data.
Additional information:
Attached is a sample log file in which it's possible to see the issue:
test.zip
The text was updated successfully, but these errors were encountered: