Merge branch 'master' of https://github.com/hyperspy/hyperspy into model_as_dict
added tests, proper inclusion of chisquared
Automatic style corrections courtesy of autopep8
Merge branch 'model_as_dict' into samfire
added more samfire tests, fixed some remaining bugs after rename
Automatic style corrections courtesy of autopep8
Revert "Automatic style corrections courtesy of autopep8"

This reverts commit 05a8612d2e6fc831ae4424a0629f737f47cbd154.
Automatic style corrections courtesy of autopep8
more tests (with the long one) + bugfixes
Automatic style corrections courtesy of autopep8
improved fitting kernel + added some tests for it
Automatic style corrections courtesy of autopep8
individual weight tests, modified samfire (and its parts) accordingly
Automatic style corrections courtesy of autopep8