Skip to content

Commit

Permalink
#124 Fix inferred type of abs(DataArray)
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Nov 8, 2023
1 parent 45995bf commit fd83e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions decode/qlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# standard library
from pathlib import Path
from typing import Literal, Optional, Sequence
from typing import Literal, Optional, Sequence, cast


# dependencies
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fd83e53

Please sign in to comment.