Skip to content
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

Raster.set_mask() raise error if data not loaded #637

Open
rhugonnet opened this issue Nov 21, 2024 · 0 comments
Open

Raster.set_mask() raise error if data not loaded #637

rhugonnet opened this issue Nov 21, 2024 · 0 comments
Labels
invalid This doesn't seem right

Comments

@rhugonnet
Copy link
Contributor

rhugonnet commented Nov 21, 2024

A while ago we changed the behaviour to implicit loading everywhere in the package, instead of error raising: If .data needs to be called, it's loaded in memory by default without message.
However set_mask() still raises an error if the data is not loaded, which escaped us somehow:

raise AttributeError("self.data must be loaded first, with e.g. self.load()")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant