Leaklens

astropy__astropy-6938

Possible bug in io.fits related to D exponents

Verdict: the issue points to the file or function that was changed (Tier B).

I came across the following code in ``fitsrec.py``: ```python # Replace exponent separator in floating point numbers if 'D' in format: output_field.replace(encode_ascii('E'), encode_ascii('D')) ``` I think this may be incorrect because as far as I can tell ``replace`` is not an in-place operation for ``chararray`` (it returns a copy).

The text points to the exact place to change: “I came across the following code in ``fitsrec.py``: ```python # Replace exponent separator in floating point numbers if 'D' in format: output_field.replace(encode_ascii(…”

All SWE-bench Lite tasks · more astropy/astropy tasks · How the check works