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
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_residualsthis probably happened during a refactor, should be resolved asap by setting to None if location_estimate is None