Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • P pycroscopy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Vasudevan, Rama K
  • pycroscopy
  • Issues
  • #183
Closed
Open
Issue created Jul 03, 2018 by Vasudevan, Rama K@rvvOwner

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)
Assignee
Assign to
Time tracking