#266 NiceSlice parsing bug

closed-fixed
core (120)
5
2011-06-01
2011-04-30
Chris Marshall
No

pdl> p $run
[1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1271419 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1280955 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281409 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1281415 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1290955 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423 1291423]

pdl> p $runs
[1271419 1280955 1281409 1281415 1290955 1291423]

pdl> p $xpix
[27 40.5 59.5 83.5 120.5 137 149 164.5 193.5 217 237.5 263 290 327.5 356.5 393 412 430.5 460 514 570 615.5 678.5 732.5 769.5 818.5 840.5 1.5 38.5 82.5 137.5 176 238 307.5 364.5 406 500 563.5 638 695 768.5 823 847 11.5 72 136 202.5 294.5 373 440.5 530 628 718.5 826.5 850.5 2 109 199 285 367.5 454.5 525 588.5 642.5 0 8 82 142.5 215.5 316 414 522.5 633 736.5 848 0.5 132 285.5 384 539 674.5 778.5 849.5 2.5 156 343 504.5 646 822.5 18.5 186 358.5 556.5 647 0 16.5 198 376.5 497.5 640.5 743 279 777.5 798 1 97.5 229.5 296 310 454 561 649.5 0 25.5 85 182.5 322 438 531.5 678.5 766.5 847.5 8.5 97 215.5 377 543.5 709 663 808.5 847 8.5 60 167.5 440 572 625 818 847 19 70 145 251 342 425.5 552.5 657.5 0 33 286 505.5 648 791 849 4.5 135.5 297.5 427 550.5 634.5 722.5 817 8 141 306.5 454.5 601 781.5 849.5 3 86.5 175 280 432 553.5 649 0 30.5 93.5 174.5 279.5 410.5 546 662 770 847.5 3 115 217 390 583 720 846 7 113.5 312 452.5 607 800 849 1.5 81.5 184 288 427.5 539 621 645.5 0]

pdl> ?vars
PDL variables in package main::

Name Type Dimension Flow State Mem
----------------------------------------------------------------
$run Double D [209] P 1.63KB
$runs Double D [6] P 0.05KB
$xpix Double D [209] P 1.63KB

pdl> p $xpix( $run==$runs((0)) ;? )
Compile error: syntax error at (eval 392) line 5, near "$runs("
BEGIN not safe after errors--compilation aborted at (eval 392) line 7, <DATA> line 387.

pdl> p $xpix->where( $run==$runs((0)) )
[27 40.5 59.5 83.5 120.5 137 149 164.5 193.5 217 237.5 263 290 327.5 356.5 393 412 430.5 460 514 570 615.5 678.5 732.5 769.5 818.5 840.5 1.5 38.5 82.5 137.5 176 238 307.5 364.5 406 500 563.5 638 695 768.5 823 847 11.5 72 136 202.5 294.5 373 440.5 530 628 718.5 826.5 850.5 2 109 199 285 367.5 454.5 525 588.5 642.5 0]

These last two should be the same. This is with PDL-2.4.9 on cygwin/XP.
I'm not marking this as critical since the problem has an easy work-around.

Discussion

  • Chris Marshall
    Chris Marshall
    2011-04-30

    perldl -V output

     
    Attachments
  • Chris Marshall
    Chris Marshall
    2011-05-18

    Bug fixed in Git.
    Thanks for reporting the problem!

     
  • Chris Marshall
    Chris Marshall
    2011-05-18

    Marked Pending to close in 2 weeks unless
    further report of trouble for this ticket.

     
  • Chris Marshall
    Chris Marshall
    2011-05-18

    • assigned_to: nobody --> marshallch
    • status: open --> pending-fixed
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-fixed --> closed-fixed