Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#277 _read_flexhdr state machine fails

closed
core (120)
5
2011-07-23
2011-07-22
Chris Marshall
No

The following generates a raw format file
and then tries to read the data in again.

The readflex call dies while processing the
header file. This version works:

pdl> $a = ones(3)
pdl> $b = zeros(4,2)
pdl> writeflex 'a_and_b', $a, $b
pdl> @data = readflex 'a_and_b'

...but this one doesn't...

pdl> writeflex 'b_and_a', $b, $a
pdl> @data = readflex 'b_and_a'
Runtime error: Bad format in readflex header file (3, 0) at /cygdrive/f/perl/usr_lib/i686-cygwin-thread-multi-64int/PDL/Core.pm line 196

It would be great if the IO logic were easier to
follow. Adding this bug as a reminder to fix.

This is with cygwin perl 5.10.1 and PDL-2.4.9_003

Discussion

  • Chris Marshall
    Chris Marshall
    2011-07-23

    • status: open --> closed
     
  • Chris Marshall
    Chris Marshall
    2011-07-23

    Bug fixed in Git.
    Thanks for reporting the problem!