Skip to content

Include filepaths in raster_calculator mistmatched dimensions error#430

Merged
dcdenu4 merged 1 commit intonatcap:mainfrom
megannissel:feature/288-raster-calc-error-msg
Apr 14, 2025
Merged

Include filepaths in raster_calculator mistmatched dimensions error#430
dcdenu4 merged 1 commit intonatcap:mainfrom
megannissel:feature/288-raster-calc-error-msg

Conversation

@megannissel
Copy link
Copy Markdown
Contributor

Addresses #288

raster_calculator issues an error if dimensions of the input rasters don't match. The error message only included the differing dimensions, however, without the associated filepaths. Including filepaths and dimensions will make it easier for a user to debug / fix the offending raster(s).

I also noticed we could be making use of the base_raster_path_band_list, which was already filtered on _is_raster_path_band_formatted, rather than re-running this check against the base_raster_path_band_const_list.

@megannissel megannissel marked this pull request as ready for review April 14, 2025 16:19
@dcdenu4 dcdenu4 self-requested a review April 14, 2025 20:33
Copy link
Copy Markdown
Member

@dcdenu4 dcdenu4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@dcdenu4 dcdenu4 merged commit cbc52fb into natcap:main Apr 14, 2025
63 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants