JulieTremblay3 / LIONirs

GNU General Public License v3.0
15 stars 4 forks source link

Error saving after PARAFAC manual artifact cleaning #6

Open UriEytan opened 3 months ago

UriEytan commented 3 months ago

Hello, I've been encountering a few problems while trying to 'clean' my signals using PARAFAC. My batch I use is as follows (wonder if I should alter it a bit?) צילום מסך 2024-07-25 164608

In general - the 'Save Data' button is supposed to replace the file I'm using, like saving a normal script? Or it only 'saves' the modifications into the new SNIRF file I will get in the last module?

1 - when I extract the artifacts I detected, I get an error while clicking the '-' button to subtract, thought when I click the 'Clear Noise' button the noise is being subtracted. The errors is as follows: צילום מסך 2024-07-25 164247 Reference to non-existent field 'output'. Error in gui_ParafacIO>gui_ParafacIO_OutputFcn (line 134) varargout{1} = handles.output; Error in gui_mainfcn (line 264) feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles); Error in gui_ParafacIO (line 42) gui_mainfcn(gui_State, varargin{:}); Error in plot_sessions_GUI>btn_substractPARAFAC_Callback (line 5313) gui_ParafacIO() %,gcbo,[],guidata(gcbo)) Error in gui_mainfcn (line 95) feval(varargin{:}); Error in plot_sessions_GUI (line 42) gui_mainfcn(gui_State, varargin{:}); Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)plot_sessions_GUI('btn_substractPARAFAC_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback.

  1. When I enter the Write SNIRF module, it does write it but I can't open it, getting this error: 25-Jul-2024 16:45:09 - Running 'Read .snirf' 25-Jul-2024 16:45:09 - Failed 'Read .snirf' Error using importdata (line 137) Unable to open file. In file "C:\Program Files\MATLAB\R2017b\toolbox\matlab\iofun\importdata.p" (???), function "importdata" at line 137. In file "C:\Sagol Project\spm12\toolbox\LIONirs-master\3dMTG\IO_FileFuncs\Createproject_fromsnirf.m" (???), function "Createproject_fromsnirf" at line 26. In file "C:\Sagol Project\spm12\toolbox\LIONirs-master\nirs_run_readSNIRF.m" (???), function "nirs_run_readSNIRF" at line 47.

No executable modules, but still unresolved dependencies or incomplete module inputs. The following modules did not run: Failed: Read .snirf Skipped: Normalization dOD = log(I/Io) Skipped: Extract Skipped: Subtract Skipped: DisplayGUI

Thank you very much!