simonrw / calculate-cdpp

Determine the CDPP for a lightcurve
0 stars 0 forks source link

Enable ignoring data points #1

Open simonrw opened 10 years ago

simonrw commented 10 years ago

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

simonrw commented 10 years ago

This could be an issue when trying to use boolean types in C

simonrw commented 10 years ago

The user could put this in their python code...