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

Notify user of invalid pnts instead of crashing #15

Open reisecker opened 1 year ago

reisecker commented 1 year ago

Currently, snowmicropyn hard exits when encountering an invalid pnt file, which is especially annoying when batch loading a bunch of files.

The low level call to init a profile happens in a class constructor which currently is forced to create something and return it - traversing the calling chain upwards every module probably needs some small new logic to handle the opposite.