calculates chisq only for active components
Merge pull request #292 from francisco-dlp/BUG_FIX_spikes_removal_single_spectrum

The spike removal tools was raising an error when operating in a single ...
added tests for inactive component bug
Automatic style corrections courtesy of autopep8
Merge pull request #293 from to266/chi_squared

Chi squared bugfix