avoid radius estimation when using "delaunay_triangulation" #88
-
I am successfully embedding EOmaps into my app. However, I have a slight "hiccup". My App will work with a lot of raster data. I tried to look in the source but could not trace the radius argument, only the estimator. Here is a minimum code example:
Output I am getting:
How can I set Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey, sounds awesome! I'd love to get a look at it! For delaunay-triangulations the radius-estimation is used differently than for other shapes... To avoid the estimation in the current release, simply use I'm actually in the process of improving radius-estimation a little bit (see #87)... |
Beta Was this translation helpful? Give feedback.
-
Here is a sneak peek! Great! Yeah I've got just a light speedup from |
Beta Was this translation helpful? Give feedback.
Hey, sounds awesome! I'd love to get a look at it!
For delaunay-triangulations the radius-estimation is used differently than for other shapes...
The radius is only used as a "mask_radius" to mask the obtained triangulation
(to avoid drawing very large triangles that connect far-away points).
If the mask-radius is not provided explicitly EOmaps tries to come up with a suitable guess based on the pixel-spacing (hence the radius-estimation).
To avoid the estimation in the current release, simply use
m.set_shape.delaunay_triangulation(mask_radius=np.inf)
(or use any number appropriate to your data). Not sure though if the radius-estimation is the slow part here... I'd expect the evaluation o…