Hey @SimonCMills you're right that there's a small bug here, but the fix is more subtle than this. the object that we pass to get_Z, fitted_flocker etc needs to be a flocker_data object. So at the end of that if(mixed) block at line 71, we need to rebuild a flocker_data object to pass to the new_data argument. Minimally, this would be a one-element list with an element $data containing the data and the class set to flocker_data.
Hey @SimonCMills you're right that there's a small bug here, but the fix is more subtle than this. the object that we pass to
get_Z
,fitted_flocker
etc needs to be aflocker_data
object. So at the end of thatif(mixed)
block at line 71, we need to rebuild aflocker_data
object to pass to thenew_data
argument. Minimally, this would be a one-element list with an element$data
containing the data and the class set toflocker_data
.