Skip to content

Commit

Permalink
#155 Merge pull request from deshima-dev/astropenguin/issue151
Browse files Browse the repository at this point in the history
Fix data type of to_brightness function (input = output)
  • Loading branch information
astropenguin authored Jul 22, 2024
2 parents edf6034 + 1e39d39 commit af8fb7d
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 af8fb7d

Please sign in to comment.