SAND-Lab / MEA-NAP

MEA-NAP. A streamlined diagnostic and analytic tool for data obtained using microelectrode arrays.
GNU General Public License v3.0
13 stars 6 forks source link

Error before 4B #56

Closed kamaood closed 1 month ago

kamaood commented 2 months ago

Hi,

I am experiencing this error before 4B.

Error using struct2table Input structure is a scalar, but its fields have different numbers of rows. If you intended to create a table with one row, set 'AsArray' to true.

Timothysit commented 2 months ago

Hi, can you check whether you have the latest version of the pipeline? You can check your version on the text section when you launch the MEANAP GUI. We recently discovered that this error can occur when you have files with little or no activity, and I pushed the fix to this recently. image

kamaood commented 2 months ago

Yep I have the latest version of the pipeline and the error still occurs at 4B!

Timothysit commented 2 months ago

Hi, can you tell me which line of the code caused the error? Eg. if it's PlotNetMet at line 633 of the main script? And did you see any other warnings / errors in the matlab command window?

Timothysit commented 2 months ago

btw, you can re-run step 4B if you put step 4B in the start analysis step of the GUI

kamaood commented 2 months ago

Hi, yep I have been re-running and this is the error I get:

Error in saveNetMet (line 153) allRecordingLevelDataTable = struct2table(allRecordingLevelData);

Error in MEApipeline (line 510) saveNetMet(ExpName, Params, HomeDir)

Timothysit commented 2 months ago

Okay, seems to be an issue in step 4, can you put a debug stop at line 153 of saveNetMet, then re-run (starting at step 4 if possible), and tell me what the variable allRecordingLevelData looks like?

Timothysit commented 1 month ago

Hello again, I recently updated MEA-NAP (to version 1.8.0), which also includes some fixes to table creation, particularly with inactive electrodes. Hopefully this also fixes this issue, but let me know if not and I will re-open the issue :)