[Swift-devel] Re: Swift Error! Round 2
Michael Wilde
wilde at mcs.anl.gov
Wed Oct 10 18:45:14 CDT 2007
Ben, what do you see thats weird about the use of the feature var?
It seems to be set from the return value of SegNClass, then assigned to
an array member. Thats not a data dependency problem, is it?
If this causes the function to hang, I'd like to try to isolate this
into a simple test case.
Is the reason obvious to you?
This also makes me want to better understand something Mihael described
to me about how mappers recurse to traverse a data structure.
Is it possible to apply a mapper to the entire array fs[] to specify a
specific pattern for the names of the output files that are placed in it?
- Mike
On 10/10/07 5:57 PM, Ben Clifford wrote:
>
> On Wed, 10 Oct 2007, andrewj at uchicago.edu wrote:
>
>> Ok, I think I have isolated a problem with Swift. I have
>> slowly worked part by part up to this point in my WF. It
>> appears to be a problem related to passing arrays of things
>> into the transformation or whatever its called.
>
> What was the step before that did work?
>
>> The problem seems to be involved with SegNClassRun or the
>> array types I am feeding it to use.
>
> Your use of the feature variable there is a bit weird - I'm not sure what
> it will actually do off the top of my head:
>
>> foreach r, i in ROIs{
>> Feature
>> feature<single_file_mapper;file=@strcat(@filename(ROIs[i].image),".S.",SegNum,".F.",FeatNum,".C.",ClassNum,".feat.output")>;
>> feature =
>> SegNClass(ROIs[i],SegInputParams,rfile1,rfile2,FeatInputParams,SegNum,FeatNum,ClassNum);
>> fs[i] = feature;
>> }
>
> can you say this:
>
> foreach r, i in ROIs {
> fs[i] = SegNClass(...)
> }
>
> without that variable at all?
>
> I'm not sure if thats the problem here but thats more like the usage I
> would make.
>
More information about the Swift-devel
mailing list