Skip to content

Commit

Permalink
loop end 999 vs. 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Bailey authored and Stephen Bailey committed Sep 6, 2023
1 parent d7d3789 commit a2a96b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/desispec/io/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def write_bintable(filename, data, header=None, comments=None, units=None,
#
# Add comments and units to the *columns* of the table.
#
for i in range(1, 999):
for i in range(1, 1000):
key = 'TTYPE'+str(i)
if key not in hdu.header:
break
Expand Down

0 comments on commit a2a96b7

Please sign in to comment.