very weird problem loading datafile (sounds like a bug)
Jaroslav Hajek
highegg at gmail.com
Tue Jun 3 00:19:46 CDT 2008
On Tue, Jun 3, 2008 at 2:59 AM, francholi <flopezluro at gmail.com> wrote:
>
> Hi, I have a set of ascii files, named from 0 to 9, I'm loading these files
> to calculate covariance matrices and eigenvectors,
> everything works fine, but I'm having trouble to load file named 7.....so,
> you are thinking, "and what?",
> well, it's just that, the file named 7 doesn't load, if I rename it to "70",
> it loads fine, if I rename the file named 0 to 7, then the file that 1
> minute before worked perfect, now named as 7 just doesn't load.
> Somebody please can tell me, why in the hell, just the file named 7 doesn't
> load ????
> I tried from octave console, from bash as an argument, any name works fine,
> but "7" doesn't work.
> I really feel like a stupid, so anyone can start his response in any terms,
> I'll no take it as an offense.
>
> I'm using
> Ubuntu Linux,
> Octave 3.0.0,
> Octave was configured for "i486-pc-linux-gnu".
> kernel 2.6.24,
>
> I can't put here the contents of my very super secret files, so a very
> simple test of my problem is:
>
> octave:1> a = [1 2];
> octave:2> save("7","a");
> octave:3> load("7")
>
> Invalid call to load. Correct usage is:
>
> -- Command: load options file v1 v2 ...
>
>
> Additional help for built-in functions and operators is
> available in the on-line version of the manual. Use the command
> `doc <topic>' to search the manual index.
>
> Help and information about Octave is also available on the WWW
> at http://www.octave.org and via the help at octave.org
> mailing list.
>
> octave:3> save("8","a");
> octave:4> load("8")
> octave:5>
>
> Please, try this at home and tell me that I'm not crazy......
> :-/
No, you definitely are not crazy. It's a minor bug and the cause is
not hard to guess:
the -7 option is parsed incorrectly. Attached a fix.
cheers
> thanks for listening and sorry for my english.
> Francisco.
>
> pd. I did a quick search in the list and I didn't find anything similar to
> my problem, please sorry if it's a known problem....
> --
> View this message in context: http://www.nabble.com/very-weird-problem-loading-datafile-%28sounds-like-a-bug%29-tp17614033p17614033.html
> Sent from the Octave - Bugs mailing list archive at Nabble.com.
>
> _______________________________________________
> Bug-octave mailing list
> Bug-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/bug-octave
>
--
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: load_fix.diff
Type: text/x-patch
Size: 822 bytes
Desc: not available
Url : https://www.cae.wisc.edu/pipermail/bug-octave/attachments/20080603/c6beb536/attachment-0001.bin
More information about the Bug-octave
mailing list