kitzeslab / opensoundscape

Open source, scalable software for the analysis of bioacoustic recordings
http://opensoundscape.org
MIT License
140 stars 16 forks source link

SpatialEvent _localize_after_cross_correlation distance_residuals not set #1070

Open sammlapp opened 1 month ago

sammlapp commented 1 month ago

The distance_residuals is only calculated if location_estimate is not None, so you get UnboundLocalError (missing variable) if the location estimate is None when it tries to return distance_residuals

this probably happened during a refactor, should be resolved asap by setting to None if location_estimate is None