<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 13, 2014 at 3:54 PM, Hategan-Marandiuc, Philip M. <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@mcs.anl.gov</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Oh, so I think Mike was saying an entirely different thing. You don't<br>
use two separate filesys mappers. That won't work.<br></blockquote><div><br></div><div>Right. We assumed this should work. And Mike tested this with a small dataset. Later on we found that it was working by chance and not by design. The previous message was to update the discussion with this finding. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
You use one filesys mapper for the initial data and then a structured<br>
regexp mapper, which preserves the order. That has to work, and it is a<br>
feature supported since swift version zero.<br>
<br>
In other news, filename(), if not invoked from an app body, should now<br>
avoid doing a remote pathname expansion, so your initial scheme should<br>
work. However, I would still recommend Mike's solution.<br></blockquote><div><br></div><div>Thanks! I am using the structured regexp mapper. Seems to be sufficient for the needs of this app.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Mihael<br>
<span class="im HOEnZb"><br>
On Fri, 2014-12-12 at 16:55 -0600, Ketan Maheshwari wrote:<br>
> ><br>
</span><div class="HOEnZb"><div class="h5">> > The simplest approach is to just map one array to each file suffix. The<br>
> > filesys mapper will return the files in the same lexicographic order for<br>
> > each pattern:<br>
> ><br>
> > $ cat ./regexpmap3.swift<br>
> ><br>
> > type file;<br>
> ><br>
> > file data[] <filesys_mapper; prefix="f", suffix=".dat">;<br>
> > file image[] <filesys_mapper; prefix="f", suffix=".img">;<br>
> ><br>
> > foreach j, i in data {<br>
> > tracef(" data[%i] = %s\nimage[%i] = %s\n",<br>
> > i, filename(data[i]),<br>
> > i, filename(image[i]));<br>
> > }<br>
> ><br>
> > $ swift ./regexpmap3.swift<br>
> > Swift 0.95 RC5 swift-r7605 cog-r3874<br>
> > RunID: run078<br>
> > Progress: Wed, 10 Dec 2014 22:10:56+0000<br>
> > data[2] = f3.dat<br>
> > image[2] = f3.img<br>
> > data[3] = f4.dat<br>
> > image[3] = f4.img<br>
> > data[0] = f1.dat<br>
> > image[0] = f1.img<br>
> > data[1] = f2.dat<br>
> > image[1] = f2.img<br>
> > Final status:Wed, 10 Dec 2014 22:10:56+0000<br>
> ><br>
> ><br>
> After some more experiments it was determined that this does not hold true.<br>
> That is, independent filesys_mappers on a given directory will not pick the<br>
> files in the same order resulting in irregular combinations in the<br>
> resulting tuple.<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> Swift-user mailing list<br>
> <a href="mailto:Swift-user@ci.uchicago.edu">Swift-user@ci.uchicago.edu</a><br>
> <a href="https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user" target="_blank">https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user</a><br>
<br>
<br>
</div></div></blockquote></div></div></div>