def setup_method(self, method):
     m = Signal1D(np.arange(30).reshape((3, 10))).create_model()
     m.append(Lorentzian())
     m.multifit(show_progressbar=False)
     self.m = m
     # have to be imported here, as otherwise crashes nosetools
     from hyperspy.samfire_utils.goodness_of_fit_tests.information_theory \
         import (AIC_test, AICc_test, BIC_test)
     self.aic = AIC_test(0.)
     self.aicc = AICc_test(0.)
     self.bic = BIC_test(0.)
 def setup_method(self, method):
     m = Signal1D(np.arange(30).reshape((3, 10))).create_model()
     m.append(Lorentzian())
     # HyperSpy 2.0: remove setting iterpath='serpentine'
     m.multifit(iterpath='serpentine')
     self.m = m
     # have to be imported here, as otherwise crashes nosetools
     from hyperspy.samfire_utils.goodness_of_fit_tests.information_theory \
         import (AIC_test, AICc_test, BIC_test)
     self.aic = AIC_test(0.)
     self.aicc = AICc_test(0.)
     self.bic = BIC_test(0.)