slf-dot-ch / snowmicropyn

A python package to read, export and post process data (*.pnt files) recorded by SnowMicroPen, a snow penetration probe for scientific applications developed at SLF.
https://www.slf.ch/en/services-and-products/research-instruments/snowmicropen-r-smp4-version.html
GNU General Public License v3.0
10 stars 12 forks source link

Improve profile <-> air gap interaction #16

Open reisecker opened 1 year ago

reisecker commented 1 year ago

It is now possible to reasonably work with the superposition view in conjunction with hiding the air gap: A set of profiles can be loaded. If they have surface markers toggling the air gap will also work in the superposed view. If not, the marker can be added via the toolbox and everything will update automatically.

However, there are places missing this interaction, e. g. the context menu to set markers and when deleting markers. In this case the files‘ inis must be saved and reloaded.

To solve this inconvenience a bit of a convolution in the old code needs to be untangled: https://github.com/slf-dot-ch/snowmicropyn/blob/780489c2f9237b3a2d464ed0cb4d9281db213381/snowmicropyn/pyngui/sidebar.py#L161

Since all code for this feature is probably going to be completely replaced in the future as issue #12 becomes more and more pressing for now this is as far as it reasonably goes - hopefully being resolved within issue #12.