Astropy v2.0
While working on #5858 I am seeing this particular behavior for fitscheck :-
- Running
fitscheck -v test0.fits (A test file included in astropy/io/fits/tests/data/) which works fine
MISSING './astropy/io/fits/tests/data/test0.fits' .. Checksum not found in HDU #0
1 errors
- Running
fitscheck -v --force --write test0.fits (write correct checksums and datasums for each HDU in file)
MISSING './astropy/io/fits/tests/data/test0.fits' .. Checksum not found in HDU #0
1 errors
Fine too. It first warns then updates
- Now when I run
fitscheck -v --checksum none --write (seeing call trace manually)
AttributeError: 'PrimaryHDU' object has no attribute '_checksum'
This comes from (https://github.com/astropy/astropy/blob/master/astropy/io/fits/scripts/fitscheck.py#L143)
As a matter of fact now that I've added checksums above, it verifies them successfully when I run fitscheck -v test0.fits :-
OK './astropy/io/fits/tests/data/test0.fits'
Is there something I'm missing? Or should I go ahead try to correct this.
Edit : This AttributeError is raised whenever one uses -k none or --checksum none
Astropy v2.0
While working on #5858 I am seeing this particular behavior for
fitscheck:-fitscheck -v test0.fits(A test file included inastropy/io/fits/tests/data/) which works finefitscheck -v --force --write test0.fits(write correct checksums and datasums for each HDU in file)Fine too. It first warns then
updatesfitscheck -v --checksum none --write(seeing call trace manually)This comes from (https://github.com/astropy/astropy/blob/master/astropy/io/fits/scripts/fitscheck.py#L143)
As a matter of fact now that I've added checksums above, it verifies them successfully when I run
fitscheck -v test0.fits:-Is there something I'm missing? Or should I go ahead try to correct this.
Edit : This
AttributeErroris raised whenever one uses-k noneor--checksum none