Raise specific error if no spacing nor shape is passed to rolling window #278
Labels
enhancement
Idea or request for a new feature
good first issue
Good for newcomers (doesn’t require deep knowledge of the project)
Description of the desired feature
The
verde.rolling_window
function has two positional arguments:coordinates
andsize
, but it also needs one of thespacing
orshape
default arguments, which are set toNone
by default.If by accident, the user doesn't pass either one of them (never happened to me 🙄), they get a very strange error:
Would be nice to check if one of them is not None, and raise an error otherwise, like
vd.block_split
does:Are you willing to help implement and maintain this feature? Yes
The text was updated successfully, but these errors were encountered: