[SoC] [GRASS-dev] Weekly report #3 - GRASS Interactive Scatter Plot Tool
stepan.turek at seznam.cz
Sun Jul 7 04:55:15 PDT 2013
Hi Sören and Markus,
many thanks for big help. If I understand it correctly, the key, which will
solve my issue, is the multiprocessing module, which allows to define
region just in this process without affecting the others (as it is in the
modules). Thanks to that it will be possible to use raster library in the
backend and get rid of files produced by r.out.bin.
I would avoid to use ctypes in the same process as wxGUI. The grass
libraries call exit() in case a fatal error occurs. This will also
crash the GUI in this case. I would strongly suggest to use
multiprocessing Python module to spawn new processes that make use of
ctypes. However, what is the reason that you use ctypes directly
instead of PyGRASS that was designed to provide an abstract layer
above several grass libraries? Maybe you can add an OO layer in
PyGRASS providing access to your backend?"
Extending PyGRASS to provide access to the backend is good idea. I will do
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SoC