Added fix for floating point errors to CartesianGrid.photon_loc