LabeoTech / Umit

universal mesoscale Imaging Toolbox
GNU General Public License v3.0
9 stars 3 forks source link

unable to load statsgroups #26

Closed VeroniqueChouinard closed 2 years ago

VeroniqueChouinard commented 2 years ago

Following error when trying to load a previously saved statsgroup.mat in the grouping tool of the Analysis component : image

BrunoOFSouza commented 2 years ago

I fixed the issue using a new statsgroup file( see above). @VeroniqueChouinard , let me know if the problem persists using old statsgroup files.

VeroniqueChouinard commented 2 years ago

The problem is still there with old groups. However, it works with new groups. I'm also having a second problem with the creation of groups; some acquisition don't change groups when I try to move them from the base or from another group : it's as if the input wasn't sent. There is no error on Matlab; only «Verifying duplicates...».

BrunoOFSouza commented 2 years ago

I see. Can you send me one of the faulty statsgroup file?

BrunoOFSouza commented 2 years ago

The faulty old statsgroup files inherited an error from a bug probably fixed in the recent commit 76723ea847c07ef188b9cafece2f127582563622. To fix the statsgroup file to this:

  1. Load the file content in Matlab`s workspace.
  2. type: groupInfo.Ngroups = length(groupInfo.gIdxList)
  3. Save the structure groupInfo to the statsgroup file: save('FULLPATH_TO_STATSFILE', 'groupInfo')