Back to the main page.

Bug 1905 - make a function that translates between /home and h:\

Status CLOSED FIXED
Reported 2012-12-19 13:31:00 +0100
Modified 2013-01-23 16:12:58 +0100
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Windows
Importance: P3 normal
Assigned to: Jim Herring
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2012-12-19 13:31:08 +0100

this makes it easier to run test scripts on windows and linux. E.g. file = dccnfilename('/home/common/....) would return h:\common\... on a pc.


Jim Herring - 2012-12-20 17:08:09 +0100

Created a function dccnfilename.m in /test/private that converts between UNIX and Windows path formats.


Robert Oostenveld - 2012-12-21 12:18:23 +0100

>> load(dccnfilename('/home/common/matlab/fieldtrip/data/test/bug1910.mat')); Undefined function or variable 'IsWindows'. Error in dccnfilename (line 30) if IsWindows I fixed it mac001> svn commit test/private/ Sending test/private/dccnfilename.m Transmitting file data . Committed revision 7245.