Urban Mental Health report#2449
Open
claire-simpson wants to merge 15 commits intonatcap:feature/urban-health-modelfrom
Open
Urban Mental Health report#2449claire-simpson wants to merge 15 commits intonatcap:feature/urban-health-modelfrom
claire-simpson wants to merge 15 commits intonatcap:feature/urban-health-modelfrom
Conversation
… raster and vector natcap#2419
…ame of output stats gpkg natcap#2419
…ial subclass behavior natcap#2419
…in is detected in infer_continuous func natcap#2419
claire-simpson
commented
Apr 3, 2026
| else: | ||
| mappable = ax.imshow(arr, cmap=cmap, **imshow_kwargs) | ||
| fig.colorbar(mappable, ax=ax, **colorbar_kwargs) | ||
| config.plot_on_axis( |
Contributor
Author
There was a problem hiding this comment.
Wanted an extension hook without changing plot_raster_list or duplicating too much code, but curious what you think of this. It also doesn't touch the nominal plots, so maybe there is a better design here? Curious what you think.
claire-simpson
commented
Apr 3, 2026
| NEAR_ZERO_RANGE = (-0.01, 0.01) | ||
|
|
||
| @dataclass(config=ConfigDict(arbitrary_types_allowed=True)) | ||
| class SpecialRangeRasterPlotConfig(RasterPlotConfig): |
Contributor
Author
There was a problem hiding this comment.
I stuck this class here to avoid cluttering raster_utils, as I think this is a somewhat niche use case that doesn't necessarily need to be available to other reporter modules. Perhaps there is a better location for it though?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #2419
Checklist