numpy_geometry icon indicating copy to clipboard operation
numpy_geometry copied to clipboard

Import updates to fix tool loading

Open montyevans opened this issue 9 months ago • 0 comments

Fixes https://github.com/Dan-Patterson/numpy_geometry/issues/5

  1. The absolute imports in npg_bool_hlp.py don't resolve correctly, so I moved them to be relative imports.
  2. In tbx_tools.py, the line from npg.npg_overlay import dissolve, merge_ has two issues: a. There is no function in the repo called dissolve, causing an import error. A quick read suggests this might be union_adj inside npg_bool_ops, so I've updated accordingly. b. The function merge_ exists in npg_bool_ops, not npg_overlay, so I've updated accordingly.

I've only tested this with a couple of tools, but it seems to run fine.

montyevans avatar Jan 16 '25 18:01 montyevans