Skip to content

Multiple Polygon Selection Display Failure #78

Description

@mags612
Screenshot 2024-10-30 at 1 30 57 pm The polygon display fails when multiple polygons are selected simultaneously. Instead of showing multiple shadowed regions, follow error received:

Traceback (most recent call last):
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 5685, in update_SV
self.plot_map_mpl(sample_id, field_type, field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6534, in plot_map_mpl
self.plot_small_histogram(map_df,field)
File "/Users/maggie/Desktop/LaME/LaserMapExplorer/main.py", line 6993, in plot_small_histogram
bin_width = (np.nanmax(array) - np.nanmin(array)) / self.default_bins
^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/numpy/lib/_nanfunctions_impl.py", line 493, in nanmax
res = np.fmax.reduce(a, axis=axis, out=out, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: zero-size array to reduction operation fmax which has no identity

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions