To make a baseline fit, you must first create a mask of channels to use in the baseline fit.
ASAP>msk = scans.create_mask([100,400],[600,900]) ASAP>scans.poly_baseline(msk, order=1)
This will fit a first order polynomial to the selected channels and subtract this polynomial from the full spectra.