-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge for v3.4 #63
Merge for v3.4 #63
Conversation
(since "shade_raster" now works with reprojected raster)
Codecov Report
@@ Coverage Diff @@
## master #63 +/- ##
==========================================
- Coverage 75.46% 73.03% -2.43%
==========================================
Files 12 12
Lines 5106 5330 +224
==========================================
+ Hits 3853 3893 +40
- Misses 1253 1437 +184
Continue to review full report at Codecov.
|
- use BM.on_layer for selectors and sliders - move `util._layer_selector._get_layers()` to `m._get_layers()`
- add "name" property to all webmap services
- make sure Maps objects are properly garbage-collected - avoid circular references (use weak-references otherwise) - add `m.cleanup()` to allow immediate garbage-collection of Maps objects - remove unneeded "m._bounds()" function
- callbacks are only executed on the layer of the associated Maps-object - callbacks on the "all" layer are executed on all Maps-objects (the new default layer is "all" !)
…m normalized zdata
_shade_map normalizes vmin and vmax instead of recalculating them from normalized zdata
- it's no longer needed since `m.add_colorbar(orientation=...)` is much better
add docstring for "layer" on m.add_colorbar
A major release that brings a lot of updates on speed and memory management and some very nice (but possibly breaking) changes compared previous versions of EOmaps.
❗ IMPORTANT CHANGES ❗
⭐ Starting with EOmaps v3.4 all callbacks and colorbars are layer-specific !
This means that callbacks only trigger if the layer of the associated
Maps
object is visible!(...and colorbars are only visible if the associated layer is visible)
To trigger callbacks or add features & datasets independent of the visible layer, use
m.all.cb. ...
(or attach them to a
Maps
object on the"all"
layer)Note:
pick
callbacks now always react to the visible collection!(except for the ones on the
"all"
layer)🍃 removed arguments
"orientation"
argument has been removed fromMaps(...)
(it set the colorbar-orientation which is now specified via
m.add_colorbar(orientation=...)
🌳 NEW
m.show()
can be used to make the associated layer visible. (a shortcut form.show_layer(m.layer)
m.BM.on_layer(...)
can be used to trigger functions if the visible layer changes.m.plot_map(memmap=False)
)🌦️ changes
m.from_file
orm.new_layer_from_file
) now always uses"shade_raster"
as the default plot-shape (since EOmaps v3.3.2, raster-shading works perfectly fine with re-projected rasters as well)Maps
objects (use multiple objects for multiple colorbars)🔨 fixes
preset="bw"
inm.add_scalebar
Maps.from_file
now properly handlespathlib.Path
objectsm.add_colorbar(log=True)
for horizontal colorbarslayer
kwarg fromm.add_logo
shade_raster
orshade_points
ifvmin/vmax
outside the data-range are used(thanks to @maxhollmann)