Skip to content

Commit cbb07a7

Browse files
committed
combine comments
1 parent e614fd5 commit cbb07a7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/stdatamodels/util.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,9 @@ def gentle_asarray(a, dtype, allow_extra_columns=False):
6868

6969
# When a FITS file includes a pseudo-unsigned-int column, astropy will return
7070
# a FITS_rec with an incorrect table dtype.
71+
# It's also unsafe to directly cast any FITS_rec with a
72+
# pseudo-unsigned column.
7173
# https://github.com/astropy/astropy/issues/8862
72-
# Due to an issue in astropy, it's not safe to directly cast
73-
# a FITS_rec with a pseudo-unsigned column.
74-
# See https://github.com/astropy/astropy/issues/8862
7574
if isinstance(a, fits.fitsrec.FITS_rec):
7675
if any(c.bzero is not None for c in a.columns):
7776
return _safe_asanyarray(a, out_dtype)

0 commit comments

Comments
 (0)