Back to the main page.
Bug 1936 - warning .img file couldn't be opened when ft_volumesegment is used
| Status | CLOSED FIXED |
| Reported | 2013-01-17 15:05:00 +0100 |
| Modified | 2013-02-23 20:57:14 +0100 |
| Product: | FieldTrip |
| Component: | core |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Linux |
| Importance: | P3 normal |
| Assigned to: | Jan-Mathijs Schoffelen |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Lilla Magyari - 2013-01-17 15:05:17 +0100
when I run /test/test_ft_volumesegment.m I get this warning on the screen: Warning: could not open /tmp/tpe0dcbe0a_8044_4c4e_b0b9_39b41b6c066a.img > In fileio/private/warning_once at 116 In fileio/private/filetype_check_header at 54 In ft_filetype at 328 In ft_write_mri at 54 In ft_volumesegment at 293 In test_ft_volumesegment at 26 Lilla
Jan-Mathijs Schoffelen - 2013-01-29 12:20:31 +0100
cause: ft_filetype calls filetype_check_header which fails to find the specified file, because it does not exist yet (the call to ft_filetype occurs in ft_write_volume (called from align_ctf2spm), because SPM needs to temporarily write the volumes). Explicitly providing the dataformat in the call to ft_write_volume gets rid of the warning.
Jan-Mathijs Schoffelen - 2013-01-29 12:22:30 +0100
added dataformat as input to ft_write_mri in revision 7420, for align_ctf2spm and align_itab2spm