On Sun, Aug 10, 2014 at 02:18:39PM +0100, Philipp Rahe wrote: > @Yeti: Any suggestions to show the warning more prominent? On > alternative would be to not load the file at all, but I was trying to > avoid this - in exactly the case the _0001 file was deleted, is > unreadable or such.
I'm not sure if I understand the situation completely. But Gwyddion has no mechanism (and is unlikely to have in 2.x) for reporting partial data loading failures. So we go with one of three options: - Consider the problems ignorable and just emit a g_warning() that ends up in gwyddion.log. BTW did you really mean errors should be visible in Data Browser? I cannot see any code doing that. - Consider the problem serious and fail. - Ask the user for input. This is normally done for raw-data-like import where the required information is unavailable in principle, but the situation of standalone data file with lost ‘header’ is not so different. For instance in the case of pixmap images we know some information (pixel dimensions) and only need to complement it. So if you want to go into this direction, I'm not against. Note I did some rather extensive cleanup (i.e. many lines of code touched) of omicronmatrix.c this spring, namely r15846 and r15865 when I noticed some prevasive memory leaks and was adding support for logging. I hope I didn't break anything. Regards, Yeti ------------------------------------------------------------------------------ _______________________________________________ Gwyddion-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gwyddion-users
