Skip to content

Commit

Permalink
Expand the list of supported units (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
keskitalo authored Jun 17, 2024
1 parent fe82119 commit d67f53e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/toast/pixels_io_healpix.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def read_healpix_fits(pix, path, nest=True, comm_bytes=10000000):
if "TUNIT1" in h[1].header:
if h[1].header["TUNIT1"] == "":
funits = u.dimensionless_unscaled
elif h[1].header["TUNIT1"] == "K":
elif h[1].header["TUNIT1"] in ["K", "K_CMB"]:
funits = u.K
elif h[1].header["TUNIT1"] == "mK":
elif h[1].header["TUNIT1"] in ["mK", "mK_CMB"]:
funits = u.mK
elif h[1].header["TUNIT1"] == "uK":
elif h[1].header["TUNIT1"] in ["uK", "uK_CMB"]:
funits = u.uK
else:
funits = u.Unit(h[1].header["TUNIT1"])
Expand Down

0 comments on commit d67f53e

Please sign in to comment.