Repository navigation
Commit 4241d61
committed
FIX: improved detection of ascii fast_reader in non-fast parsers and guess
With the fast_reader arg explicitly set in io.ascii.read make _get_reader
raise a ParameterError if called for a slow reader, and in _guess always
call fast versions first. Have kwargs always updated from a safe copy in
the _guess loop to avoid getting dictionary args wiped out or overwritten.
C parser now generally working without forcing `guess=False` and with
autodetection of most formats, updated docs accordingly.
Tests for Fortran-exponent options and new fast_reader behaviour
extended. Added `rtol` and `atol` kwargs to `assert_table_equal` and
`assert_almost_equal` to override the rather lax `np.allclose` defaults.1 parent 63f148f commit 4241d61
7 files changed
Lines changed: 250 additions & 87 deletions
File tree
- astropy/io/ascii
- tests
- docs/io/ascii
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
| 1348 | + | |
| 1349 | + | |
1348 | 1350 | | |
1349 | | - | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
1350 | 1359 | | |
1351 | 1360 | | |
1352 | 1361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
390 | 395 | | |
391 | 396 | | |
392 | 397 | | |
| |||
0 commit comments