Loop Fitting on FORC datasets

Created by: ramav87

Loop fitting on FORC datasets provides an error due to size mismatch between generated output, which appears to be the length of a particular spectroscopic slice, and the fit h5 object, which is predetermined. Editing the fitter class does not appear to be a viable option to fix this issue.

Error specifics: Upon calling loop_fitter on a FORC dataset (25 position dimensions, 2 field dimensions, 8 FORC dimensions), yields the following error:

~/Documents/pycroscopy/pycroscopy/analysis/be_loop_fitter.py in do_fit(self, processors, max_mem, solver_type, solver_options, obj_func, get_loop_parameters, h5_guess)
    396 
    397                 self.fit = np.hstack(tuple(results))
--> 398                 self._set_results()
    399 
    400                 self._start_pos = self._end_pos
~/Documents/pycroscopy/pycroscopy/analysis/fitter.py in _set_results(self, is_guess)
    185             print('Writing data to positions: {} to {}'.format(self._start_pos, self._end_pos))
    186 
--> 187         targ_dset[self._start_pos: self._end_pos, :] = source_dset[:,:]

TypeError: Can't broadcast (25, 2) -> (25, 16)