Repository navigation
Commit 3518cae
committed
Loose identity test of a HCOMPRESSed image
HCOMPRESSed images are allowed to deviate from the original by
about 1/quantize_level of the RMS in each tile. This patch changes
the absolute identity test to a comparison with an accuracy up to the
mentioned level.
This fixes astropy#4647, if the cause I assume is correct. Someone with insight in
HCOMPRESS should check this carefully, however.1 parent 1862f24 commit 3518cae
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
| 1013 | + | |
1014 | 1014 | | |
1015 | 1015 | | |
1016 | 1016 | | |
| |||
0 commit comments