[GRASS-git] [OSGeo/grass] cdb718: wxGUI/lmgr: Lazy import specialized dialogs and wo...

Vaclav Petras noreply at github.com
Thu Apr 16 12:45:05 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/OSGeo/grass
  Commit: cdb718184ea4622a42727788ad36d2efee8b24bf
      https://github.com/OSGeo/grass/commit/cdb718184ea4622a42727788ad36d2efee8b24bf
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M gui/wxpython/lmgr/layertree.py

  Log Message:
  -----------
  wxGUI/lmgr: Lazy import specialized dialogs and work without import numpy (#511)

This follows other lazy imports in lmgr.frame and potentially speeds up GUI startup by
lazy importing wxplot.histogram and SaveWMSLayerDialog.

More importantly, this avoids numpy import in wx.lib.plot.plotcanvas used by wxplot.histogram.
So, now GUI should start even without numpy installed with message in terminal from wxnviz.
wxnviz should be the only place requiring numpy on startup and thus it is the only place proving
this message about the missing numpy dependency.

This also removes unused import of core.giface.Notification (replaced by use of two empty lines after imports (code style)).




More information about the grass-commit mailing list