[Bug 223] wildcard fails in the pattern parameter for simple_mapper
https://bugzilla.mcs.anl.gov/swift/show_bug.cgi?id=223 Mihael Hategan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution| |INVALID --- Comment #1 from Mihael Hategan <[email protected]> 2014-10-05 21:58:08 --- The simple mapper isn't really simple. It splits file names based according to some rules and treats the individual tokens as indices or field names. In the case of "r33subj017.txt", using "." as a separator, it would work with either of the two following possibilities: type struct1 { file txt; } struct1[string] physdata <...>; -- OR -- type struct1 { file txt; } type struct2 { struct1 r33subj017; } struct2 physdata <...>; In the first case, the file would be accessed using physdata["r33subj017"].txt, and in the second case it would be physdata.r33subj017.txt. Of course, our documentation doesn't quite get into any of this, but then that's a well known issue. I made the code print some more sane error messages though when this happens. -- Configure bugmail: https://bugzilla.mcs.anl.gov/swift/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla-daemon@mcs.anl.gov