mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-07 03:00:29 +00:00
776 B
776 B
All 12 tests pass (8 unit tests + 4 doctests).
Here's a summary of the minimal changes made to /home/daytona/astropy/astropy/io/ascii/qdp.py:
-
Line 71: Added
re.IGNORECASEflag tore.compile(_type_re)— this makes the regex that classifies QDP lines case-insensitive, soread serr 1 2is recognized as a command just likeREAD SERR 1 2. This also handlesNO/no/Noin data and "new" lines. -
Line 309: Changed
if v == "NO":toif v.upper() == "NO":— this ensures that when the regex now matches lowercasenoas valid data/new markers, the data processing code also handles them correctly as masked values. -
Line 36-37: Added a doctest example
_line_type("read serr 3")→'command'to document the case-insensitive behavior.