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

🐛 need change 'bands' into 'indexes' in DEM class #339

Closed
liuh886 opened this issue Mar 2, 2023 · 0 comments · Fixed by #340
Closed

🐛 need change 'bands' into 'indexes' in DEM class #339

liuh886 opened this issue Mar 2, 2023 · 0 comments · Fixed by #340

Comments

@liuh886
Copy link
Contributor

liuh886 commented Mar 2, 2023

Bug

The DEM class in xdem/dem.py has following lines:

[86] # self.nbands can be None when data is not loaded through the Raster class
[87] if self.nbands is not None and self.nbands > 1:
[88]     raise ValueError("DEM rasters should be composed of one band only")

Error

it raises
AttributeError: 'DEM' object has no attribute 'nbands'

Reason

The 'bands' were changed into 'indexes' since geoutils 0.0.10.

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 a pull request may close this issue.

1 participant