An incorrect centroid exposure assignment potentially occurs in Exposures.assign_centroids() when hazard centroids and exposure coordinates do not perfectly match, in particular when the exposure is located at the same latitude as the hazard, but not at the same longitude.
The commands in line 210 - 213 do not correctly exclude exposures located outside the raster, but potentially assign them to other centroids within the raster.
As this function is a core CLIMADA - function I would recommend everyone to check whether the work is affected by this error. I will set up a fix branch for this very soon.
Cheers,
Inga