[kepler-dev] [Bug 5722] Check for problems with sanitized RecordToken labels

bugzilla-daemon at ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Fri Dec 21 17:48:54 PST 2012


http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5722

--- Comment #12 from Derik Barseghian <barseghian at nceas.ucsb.edu> ---
I haven't gotten parenthesis (or better, arbitrary strings) working.

Here's some testing showing behavior w/ my patch. All seems to work except note
the inconsistency it introduces with being unable to refer to a label with a
prefix number in its name.


>> [myLabel= {4,5}].myLabel
{4, 5}
>> [myLabel A= {4,5}].myLabel A
{4, 5}
>> [myLabel A 5= {4,5}].myLabel A 5
{4, 5}
>> [5myLabel A 5= {4,5}].5myLabel A 5
Error parsing expression "[5myLabel A 5= {4,5}].5myLabel A 5"
Because:
Encountered " <DOUBLE> ".5 "" at line 1, column 22.
>> {5myLabel A 5= {4,5}}.length()
1
>> foo = {5myLabel A 5= {4,5}, 6myLab 6={6,7}}
{5myLabel A 5 = {4, 5}, 6myLab 6 = {6, 7}}
>> bar = {6myLab 6={6,7}}
{6myLab 6 = {6, 7}}
>> merge(foo,bar)
{5myLabel A 5 = {4, 5}, 6myLab 6 = {6, 7}}
>> intersect(foo,bar)
{6myLab 6 = {6, 7}}
>> foo + foo
{5myLabel A 5 = {8, 10}, 6myLab 6 = {12, 14}}
>> foo * foo
{5myLabel A 5 = {16, 25}, 6myLab 6 = {36, 49}}
>> foo / foo
{5myLabel A 5 = {1, 1}, 6myLab 6 = {1, 1}}
>> foo = foo + foo
{5myLabel A 5 = {8, 10}, 6myLab 6 = {12, 14}}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-dev/attachments/20121222/3c5a7d3a/attachment.html>


More information about the Kepler-dev mailing list