From c177d8bde6ee816c7fc55fb6e8db0dba5b48fe65 Mon Sep 17 00:00:00 2001 From: Romain Hugonnet Date: Sun, 17 Nov 2024 16:14:31 -0900 Subject: [PATCH] Linting --- xdem/dem.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xdem/dem.py b/xdem/dem.py index 561a782a..9cbe0987 100644 --- a/xdem/dem.py +++ b/xdem/dem.py @@ -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: @@ -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,