NaNs compared to 0 evaluate to false: https://github.com/LorenFrankLab/non_local_detector/blob/2a22b370eb20f776ccb55486cf1db2f450350ba3/src/non_local_detector/analysis/distance1D.py#L128