[Swift-devel] Re: mapping files from directories

Mihael Hategan hategan at mcs.anl.gov
Mon May 5 21:01:39 CDT 2008


I think you need to use the location parameter:
inp <simple_mapper;location="inputs",prefix=...>;

On Mon, 2008-05-05 at 20:59 -0500, Uri Hasson wrote:
> Hello all,
> 
> I seem to be able to map files when no directory is stated as part of
> the prefix, but this mapping fails when path is included.
> 
> 
> Works:  
> AFNIobj
> inp<simple_mapper;prefix=@strcat("ts.0",subject,".",run,"+orig.")>;
> 
> Breaks:
> AFNIobj
> inp<simple_mapper;prefix=@strcat("inputs/ts.0",subject,".",run,"+orig.")>;
> 
> The first succeeds [SwiftScript trace: ts.005.1+orig.BRIK SwiftScript
> trace: ts.005.1+orig.HEAD]
> and the second gives:
> java.lang.RuntimeException: Data set initialization failed for
> org.griphyn.vdl.mapping.RootDataNode identifier
> tag:benc at ci.uchicago.edu,2008:swift:dataset:20080505-2056-s3bk01i8:720000000047 with no value at dataset=inp (closed). Missing required field: HEAD
> 
> Only difference is file location. 
> 
> Because I intend to map files existing in various directories in the
> file system (or even in an 'inputs' dir underneath the current working
> swift dir), understanding this would be helpful.
> 
> Thanks,
> Uri
> 
> 
> On Sun, May 4, 2008 at 8:35 PM, Ben Clifford <benc at hawaga.org.uk>
> wrote:
>         
>         > This solves the problem.
>         
>         ok good. You should be able to change the 05 into another
>         array index too,
>         through a similar looking regexp (or something that is
>         actually
>         readable/maintainable...)
>         
>         --
>         
> 




More information about the Swift-devel mailing list