Clear all

Unable to segment files

7 Posts
6 Users
Posts: 3
Topic starter
Active Member
Joined: 3 years ago

Hello, I am getting an error (see screenshot) when trying to segment snirf files on Homer 3. I am using Homer 3 v1.80.2, Matlab R2019b on a Mac. The error comes up after entering the range in seconds for segmentation. Any ideas about what may be going on? Thank you.

6 Replies
Posts: 308
Joined: 4 years ago

I don't know this command in Homer. What does segment snirf do? Or what do you expect it to do?

Meryem Yücel
Posts: 200
Joined: 4 years ago

Hi Sara,

The functionality works for me on Homer 3 latest dev (v1.82.1). Please send along a sample snirf file so that I can try reproducing the issue. 

@David, this function segments a given snirf file into sub snirf file(s) by cutting the orig file at the time range(s) provided by the user.



1 Reply
Joined: 2 months ago

Active Member
Posts: 3


Hi Meryem,

I have some questions about the use of Homer2, and my experiment has an inter-group variable and an intragroup variable, and the intragroup variable has four conditions, and I marked each stimulus before the start. I wanted to be able to compare the different conditions between the two groups of participants, but I didn't know how to do it, and I wanted to try the function of segment files, but Matlab always got an error when I used it. I hope you can get back to me, thank you very much


Posts: 4
Active Member
Joined: 2 months ago

Hi Sara,

We had the same problem and this corrected it fully:

Go to this file Homer3/DataTree/AcquiredData/DataFiles/Hdf5/hdf5write_safe.m  , open it and go to line98 where should appear:  tid = H5T.copy('H5T_NATIVE_ULONG'). Now replace the 'H5T_NATIVE_ULONG' back to 'H5T_NATIVE_INT'.

Hope it works. Kind regards,


Posts: 7
Active Member
Joined: 6 years ago

@mayucel , is this the fix that was implemented in the Homer development version?

Page 1 / 2