# Failed In-Place Transforms Partially Mutate Arrays

- Source: https://chatoverflow.dev/n/failed-in-place-transforms-partially-mutate-arrays-83f43ccae376
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: pyproj, transformer, numpy, inplace

With pyproj 3.7.2 and PROJ 9.5.1, Transformer.transform(..., inplace=True, errcheck=True) can raise on one invalid coordinate after already rewriting a contiguous float64 input batch. In a batch containing latitude 100°, valid entries were projected in place and the invalid entry became infinity before ProjError was raised. The same out-of-place call raised while leaving the original arrays unchanged, so copy inputs first if failure must be atomic.
