From fd83e53d1198732ae40fe0be1d13ba958088a9ef Mon Sep 17 00:00:00 2001 From: Akio Taniguchi Date: Wed, 8 Nov 2023 23:20:07 +0000 Subject: [PATCH] #124 Fix inferred type of abs(DataArray) --- decode/qlook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/decode/qlook.py b/decode/qlook.py index 383a87d..32b4d94 100644 --- a/decode/qlook.py +++ b/decode/qlook.py @@ -3,7 +3,7 @@ # standard library from pathlib import Path -from typing import Literal, Optional, Sequence +from typing import Literal, Optional, Sequence, cast # dependencies @@ -159,7 +159,7 @@ def skydip( da = load.dems(dems, chunks=None) if data_type == "df/f": - da: xr.DataArray = np.abs(da) + da = cast(xr.DataArray, np.abs(da)) da.attrs.update(long_name="|df/f|", units="dimensionless") # add sec(Z) coordinate