VIP is a python package/library for angular, reference star and spectral differential imaging for exoplanet/disk detection through high-contrast imaging.
This code will raise an attribute error when evaluating the probability map with threshold=0.99
This error is caused by photutils function detect_sources which, since v0.7, returns None (instead of ImageSegmentation object) if no source is found in the frame, so that compute_binary_map won't return 0 detection and 0 false positive.
Hi @simalex44 , thanks for reporting this. I have just implemented a fix, which is now on the master branch. It will also be available in the next release.
This code will raise an attribute error when evaluating the probability map with threshold=0.99 This error is caused by photutils function detect_sources which, since v0.7, returns None (instead of ImageSegmentation object) if no source is found in the frame, so that compute_binary_map won't return 0 detection and 0 false positive.