Back to the main page.
Bug 1663 - ft_statfun_roc not called properly from ft_getuserfun
| Status | CLOSED WONTFIX |
| Reported | 2012-08-21 12:18:00 +0200 |
| Modified | 2014-01-29 13:28:32 +0100 |
| Product: | FieldTrip |
| Component: | core |
| Version: | unspecified |
| Hardware: | All |
| Operating System: | All |
| Importance: | P3 minor |
| Assigned to: | Eelke Spaak |
| URL: | |
| Tags: | |
| Depends on: | |
| Blocks: | |
| See also: |
Linsey Roijendijk - 2012-08-21 12:18:20 +0200
Performing a statistical analysis with cfg.statistic = 'roc' doesn't work correctly anymore. It seems that ft_getuserfun selects a default Matlab toolbox function 'roc' instead of the Fieldtrip function 'ft_statfun_roc'. This worked fine some time ago.
Eelke Spaak - 2012-08-21 12:28:05 +0200
This sounds like a bug indeed. Will investigate and fix.
Eelke Spaak - 2012-08-21 12:30:35 +0200
Come to think of it, this might be intended behaviour. If a function with the specified name exists on your path, that function will be used, instead of trying to prepend 'ft_statfun_' to the function name you specify. Discussion about this is needed in the FT meeting. In the meantime, you can simply specify cfg.statistic = 'ft_statfun_roc' and everything should work as it used to.
Lilla Magyari - 2012-08-22 16:07:49 +0200
(In reply to comment #2) We discussed in the FT meeting that the problem is caused by namespace conflict (roc is probably part of a matlab toolbox), and that in this case, the full name of the function should be used. Therefore, there is no need for change on the code.
Eelke Spaak - 2012-08-22 16:08:53 +0200
Conclusion: it's a feature, not a bug :)