works for me with

period = si._minperiod

instead of

period = si.get_warm_up_period()