Skip to content

Commit 22c6e6b

Browse files
Update sarxarray/_io.py
Co-authored-by: Ou Ku <o.ku@esciencecenter.nl>
1 parent 55f3324 commit 22c6e6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sarxarray/_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def from_dataset(ds: xr.Dataset) -> xr.Dataset:
4545
The input dataset should have the following variables: `('real', 'imag')`.
4646
"""
4747
# Check ds should have the following dimensions: (azimuth, range, time)
48-
if any(dim not in list(ds.sizes) for dim in ["azimuth", "range", "time"]):
48+
if any(dim not in ds.sizes for dim in ["azimuth", "range", "time"]):
4949
raise ValueError(
5050
"The input dataset should have three dimensions: (azimuth, range, time)."
5151
)

0 commit comments

Comments
 (0)