Back to the main page.
Bug 2432 - dataset2files throws error if format is empty
| Status | CLOSED FIXED |
| Reported | 2014-01-08 16:47:00 +0100 |
| Modified | 2015-07-15 13:30:48 +0200 |
| Product: | FieldTrip |
| Component: | fileio |
| Version: | unspecified |
| Hardware: | PC |
| Operating System: | Windows |
| Importance: | P4 normal |
| Assigned to: | Jim Herring |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Jim Herring - 2014-01-08 16:47:39 +0100
I noticed that dataset2files allows for the 2nd input argument ('format') to be empty as it will be filled by ft_filetype in that case. However, before the empty check is run, format is used in declaring another variable and therefore throws and error if format is empty. (line 31) current_argin = {filename, format}; . . . . . . . (line 40) if isempty(format) format = ft_filetype(filename); end