Skip to content

Fix TestFitsData::testFocusHFR. Also added test for HFR computation for FITS_NORMAL images.

Hy Murveit requested to merge murveit/kstars:fix-testfitsdata into master

Fix testfitsdata. The focus test needs a FITSDATA in mode FITS_FOCUS. Added test for FITS_NORMAL HFR.

The Analyze MR broke TestFitsData::testFocusHFR() when it introduced the default-true quickHFR flag which makes the star-detection and HFR computation for FITS_NORMAL images only use the 25% center of the image (thus speeding things up by a factor of 4X). This had no effect on HFR computation for focus images, however the test for focus HFRs hadn't been setting image type to FITS_FOCUS.

With this fix, the test now sets its type for FITS_FOCUS when testings focus images. In addition, a new test was added, TestFitsData::testNormalHFR(), to make sure FITS_NORMAL images get the values they should (assuming the quickHFR setting is true).

To test: Run Tests/fitsviewer/testfitsdata and all tests should pass.

Merge request reports