Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Nov 18, 2024
1 parent 9f0c720 commit c177d8b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions xdem/dem.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,14 @@ def __init__(
else:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", message="Parse metadata from file not implemented")
super().__init__(filename_or_dataset, load_data=load_data, parse_sensor_metadata=parse_sensor_metadata,
silent=silent, downsample=downsample, nodata=nodata)
super().__init__(
filename_or_dataset,
load_data=load_data,
parse_sensor_metadata=parse_sensor_metadata,
silent=silent,
downsample=downsample,
nodata=nodata,
)

# Ensure DEM has only one band: self.bands can be None when data is not loaded through the Raster class
if self.bands is not None and len(self.bands) > 1:
Expand Down Expand Up @@ -200,7 +206,7 @@ def from_array(
:returns: DEM created from the provided array and georeferencing.
"""
# We first apply the from_array of the parent class
rast = SatelliteImage.from_array(
rast = Raster.from_array(
data=data,
transform=transform,
crs=crs,
Expand Down

0 comments on commit c177d8b

Please sign in to comment.