Commit b0c1cde
committed
Raise ValueError on invalid scale in render_images
Previously, render_images(scale="...") silently reset an unknown scale
name to None and auto-picked a resolution, discarding the user's intent
without warning. The downstream _multiscale_to_spatial_image already had
the right ValueError but was unreachable because the value was cleared
beforehand. Validate at the entry point and surface the error with the
list of valid scales.
Closes #6231 parent 29b1cc1 commit b0c1cde
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3007 | 3007 | | |
3008 | 3008 | | |
3009 | 3009 | | |
3010 | | - | |
3011 | | - | |
3012 | | - | |
3013 | | - | |
3014 | | - | |
3015 | | - | |
| 3010 | + | |
| 3011 | + | |
| 3012 | + | |
| 3013 | + | |
| 3014 | + | |
| 3015 | + | |
3016 | 3016 | | |
3017 | 3017 | | |
3018 | 3018 | | |
| |||
0 commit comments