When running thinning, I encountered an error message about float indices. I fixed it with the following line (shown as screenshot as there's something weird happening with gitlab code blocks):