Hi Francois,
While importing multiple combined fif files now generally works, I have a new dataset consisting of 2 fif files that produces an error. I have uploaded the data in the minea1 server (same location as before, example_data_francois/data_fails/) so you can replicate the problem.
Specifically, the link to raw file is created, however importing the trials causes this error:
BST> Emptying temporary directory...
Error using fif_read_raw_segment (line 65)
No data in this range
Error in in_fread_fif (line 96)
[F, TimeVector] = fif_read_raw_segment(sFile, sfid, SamplesBounds, iChannels);
Error in in_fread (line 81)
[F,TimeVector] = in_fread_fif(sFile, iEpoch, SamplesBounds, iChannels);
Error in in_data (line 298)
[F, TimeVector] = in_fread(sFile, ChannelMat, BlocksToRead(iFile).iEpoch,
BlocksToRead(iFile).iTimes, [], ImportOptions);
Error in import_data (line 176)
[ImportedDataMat, ChannelMat, nChannels, nTime, ImportOptions] = in_data(sFile, ChannelMat,
FileFormat, ImportOptions, nbCall);
Error in import_raw_to_db (line 51)
NewFiles = import_data(sFile, ChannelMat, sFile.format, [], iSubject, [], sStudy.DateOfStudy);
Error in tree_callbacks>@(h,ev)import_raw_to_db(filenameRelative) (line 1296)
gui_component('MenuItem', jPopup, [], 'Import in database',
IconLoader.ICON_EEG_NEW, [], @(h,ev)import_raw_to_db(filenameRelative));
Also, the raw data viewer opens properly and displays the correct extended time, but when I move the time point towards the end of the recording, I get this error:
Error using fif_read_raw_segment (line 65)
No data in this range
Error in in_fread_fif (line 96)
[F, TimeVector] = fif_read_raw_segment(sFile, sfid, SamplesBounds, iChannels);
Error in in_fread (line 81)
[F,TimeVector] = in_fread_fif(sFile, iEpoch, SamplesBounds, iChannels);
Error in panel_record>ReadRawBlock (line 1205)
[F, TimeVector] = in_fread(sFile, ChannelMat, iEpoch, smpBlock, iChannels, ImportOptions);
Error in panel_record (line 30)
eval(macro_method);
Error in bst_memory>LoadRecordingsRaw (line 909)
F = panel_record('ReadRawBlock', GlobalData.DataSet(iDS).Measures.sFile, ChannelMat, iEpoch,
TimeRange, 1, RawViewerOptions.UseCtfComp, RawViewerOptions.RemoveBaseline, UseSsp);
Error in bst_memory>LoadRecordingsMatrix (line 843)
DataMat.F = LoadRecordingsRaw(iDS);
Error in bst_memory (line 72)
eval(macro_method);
Error in panel_record>ReloadRecordings (line 1152)
bst_memory('LoadRecordingsMatrix', iDS);
Error in panel_record>ValidateTimeWindow (line 633)
ReloadRecordings();
Error in panel_record>SetStartTime (line 574)
ValidateTimeWindow();
Error in panel_record>JumpToEvent (line 1549)
SetStartTime(startTime, evtEpoch);
Error in panel_record (line 30)
eval(macro_method);
Error in figure_timeseries>FigureMouseDownCallback (line 461)
panel_record('JumpToEvent', iEvt, iOccur);
Error while evaluating Figure WindowButtonDownFcn.
Thank you!
Dimitrios