This formatting is really confusing. Maybe

```python
shifted_indices[0] = indices_centered[0] + i_nb
shifted_indices[1] = indices_centered[1] + j_nb
```