If we want to calculate the CDPP without including in-transit data, we require a way to exclude data from the calculation.
This can be done in the C function by taking an array of include boolean flags. In the Cython wrapper we can have an argument defaulting to None for the data array.
When this is not passed the Cython wrapper can construct a numpy array of Trues to include the data, otherwise just pass the array on
If we want to calculate the CDPP without including in-transit data, we require a way to exclude data from the calculation.
This can be done in the C function by taking an array of include boolean flags. In the Cython wrapper we can have an argument defaulting to
None
for the data array. When this is not passed the Cython wrapper can construct a numpy array ofTrue
s to include the data, otherwise just pass the array on