Just a question... is it no a better way to ensure that `longflux` and `shortflux` are `np.array` of `dtype =  np.float64`?  If this is done  in this way, then the input could just be a list... right?