def setup_method(self, method):
     self.shape = (7, 15)
     art_model = DictionaryTreeBrowser()
     art_model.set_item('red_chisq.data', np.ones(self.shape))
     art_model.red_chisq.data[3, 5] = 0.8
     art_model.red_chisq.data[2, 5] = 2.
     self.m = art_model
     # have to be imported here, as otherwise crashes nosetools
     from hyperspy.samfire_utils.goodness_of_fit_tests.red_chisq import \
         red_chisq_test as rct
     self.t = rct(0.9)
    def setUp(self):
        self.shape = (7, 15)
        art_model = DictionaryTreeBrowser()
        art_model.set_item("red_chisq.data", np.ones(self.shape))
        art_model.red_chisq.data[3, 5] = 0.8
        art_model.red_chisq.data[2, 5] = 2.0
        self.m = art_model
        # have to be imported here, as otherwise crashes nosetools
        from hyperspy.samfire_utils.goodness_of_fit_tests.red_chisq import red_chisq_test as rct

        self.t = rct(0.9)