photutils
photutils copied to clipboard
add filter_non_finite argument to PSFPhotometry
This was an issue that arose when trying to fit a PSF model to data with non-finite values. PSFPhotometry takes in a Fitter obj, however you can't specify filter_non_finite
when instantiating a fitter class, only when its called. Because of this, theres no way to direct the fitter inside PSFPhotometry to filter nans. The solution to this would be to add a new filter_non_finite
parameter to PSFPhotometry (and everything else in photutils that takes a fitter as input)
if the fitter classes were able to be initialized with filter_non_finite
, this would solve the issue as well (@WilliamJamieson any thoughts?)