Markus Neteler wrote > On Sun, Dec 18, 2016 at 9:17 PM, Helmut Kudrnovsky <
> hellik@ > > wrote: >> Helmut Kudrnovsky wrote > ... >>> what about to do some kind of a lazy import and move panda and scikit to >>> def main()? >>> >>> It isn't needed for compiling only for running the python script. >>> >>> AFAIK panda is available in osgeo4w; check needed. Scikit isn't >>> available. >> >> something similar like a "lazy import" is also needed for some other >> addons, >> E.g. >> >> https://wingrass.fsv.cvut.cz/grass73/x86_64/addons/grass-7.3.svn/logs/r.denoise.log > > Is there any "best practice" example available? > > Markus > _______________________________________________ > grass-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-dev I've done it in this way : https://trac.osgeo.org/grass/browser/grass-addons/grass7/vector/v.in.natura2000/v.in.natura2000.py#L151 accordingly an advice by Vaclav. Maybe there are some other ways to do it. ----- best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/r-randomforest-built-status-tp5300348p5300359.html Sent from the Grass - Dev mailing list archive at Nabble.com. _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
