Skip to content

Commit

Permalink
#151 Fix data type of to_brightness function (input = output)
Browse files Browse the repository at this point in the history
  • Loading branch information
astropenguin committed Jul 21, 2024
1 parent edf6034 commit 1e39d39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions demerge/merge/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ def to_brightness(dfof: xr.DataArray, /) -> xr.DataArray:
- T0 / fwd
- (1 - fwd) / fwd * T_amb,
)
.astype(dfof.dtype)
.rename("Brightness")
.assign_attrs(long_name="Brightness", units="K")
)
Expand Down

0 comments on commit 1e39d39

Please sign in to comment.