On Tue, May 10, 2016 at 06:49:29PM +0200, Mark S. Bentley wrote:
> (python:27272): GwyApp-CRITICAL **: _gwy_app_log_start_message_capture:
> assertion 'log_setup.capturing_from == G_MAXUINT' failed
> Segmentation fault (core dumped)
Ah, this is a bug. There is no logging setup in standalone Python
scripts so they are broken by the message capturing – which no one
noticed. Calling gwy.gwy_app_setup_logging() with any sane argument
(e.g. zero) first should work around it. It should be also fixed by
r18186.
Buf for a standalone Python script you can try instead using the plain
functions and commanding the data browser directly:
C = gwy.gwy_file_load('test.gwy', gwy.RUN_NONINTERACTIVE)
gwy.gwy_app_data_browser_add(C)
gwy.gwy_app_data_browser_select_data_field(C, 0)
gwy.gwy_file_save(C, 'test.vtk', gwy.RUN_NONINTERACTIVE)
gwy.gwy_app_data_browser_remove(C)
> Coming back to the original question, can I use gwy.gwy_file_save() or
> do I have to use gwy_app_file_save_as()?
Just gwy_file_save(). They both reduce to exports anyway.
Regards,
Yeti
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users