Alternative:

```
if center:
    dof = y.size - 2
else:
    dof = y.size - 1
```

This would make us able to check it both cases are tested by looking at the code coverage... but it take four lines instead of one.