Hi Luiz,
The problem seems to be twofold:
1. I forgot to add a way to update the goodness_test tolerance for samfire workers (the processes that perform individual pixel fits), sorry about that. It's trivial to fix in the code, however for you to get it may be more tricky, depending how you installed hyperspy in the first place.
2. You need to change the gooness_test tolerance! This generally means that either your model or your variance estimation is wrong.
Sadly, due to the first problem (again, my bad..) the temporary solution would be to cheat terribly - for example this:
# first estimate the variance whatever it may be
s.estimate_poissonian_noise_variance()
# then set up the model and fit the pixel as you did previously...
# [skipped, just run the same]
# then import numpy
import numpy as np
# and find what's the current mean value for the reduced chi-squared
thevalue = np.nanmean(m.red_chisq.data)
# and then estimate the variance again, but this time scaled such that the red_chisq will hopefully be around 1
s.estimate_poissonian_noise_variance(gain_factor=thevalue)
# after this, re-run the pixel fit
m.fit() # optionally with any arguments you used before
# and plot the reduced chi-squared, to check that the values are reasonable (i.e. hopefully less than 2)
m.red_chisq.plot()
# Continue to create samfire, as previously
....
Sorry that it's so backwards and cheating - I'll fix it in the next version
Tomas