Skip to content

Commit

Permalink
Fix bug on TFIELDS
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenain committed Aug 23, 2024
1 parent e508007 commit 646167f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
extname = hdu[h].header["EXTNAME"]
outdict[extname] = dict()
# for i in range(hdu[extname].header["TFIELDS"]):
if len(hdu[extname].header["TFIELDS"]) > 1:
if hdu[extname].header["TFIELDS"] > 1:
raise ValueError(
f"Wrong DQM format, {hdu[extname]} should contain only one element"
)
Expand Down

0 comments on commit 646167f

Please sign in to comment.