FIX Epochs:  raise error if baseline is outside data
FIX
FIX : avoid division by zero warning + integer division