|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
very weird problem loading datafile (sounds like a bug)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@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...... ![]() 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.... |
|
|
Re: very weird problem loading datafile (sounds like a bug)On Tue, Jun 3, 2008 at 2:59 AM, francholi <flopezluro@...> 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@... > 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...... > :-/ 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@... > 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 [load_fix.diff] # HG changeset patch # User Jaroslav Hajek <highegg@...> # Date 1212470218 -7200 # Node ID 1e2fd7cdc3a0a38ad2a93395d920a9a75792b652 # Parent 5640a70cbab196610cfc6c488552606a28261c09 trivial fix option in Fload diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-06-03 Jaroslav Hajek <highegg@...> + + * load-save.cc (Fload): Fix "-7" option. + 2008-06-02 David Bateman <dbateman@...> * pt.cc (tree:last_break_function): Next pointer to last function diff --git a/src/load-save.cc b/src/load-save.cc --- a/src/load-save.cc +++ b/src/load-save.cc @@ -689,7 +689,7 @@ { format = LS_MAT5_BINARY; } - else if (argv[i] == "7" || argv[i] == "-v7") + else if (argv[i] == "-7" || argv[i] == "-v7") { format = LS_MAT7_BINARY; } _______________________________________________ Bug-octave mailing list Bug-octave@... https://www.cae.wisc.edu/mailman/listinfo/bug-octave |
|
|
Re: very weird problem loading datafile (sounds like a bug)On 3-Jun-2008, Jaroslav Hajek wrote:
| On Tue, Jun 3, 2008 at 2:59 AM, francholi <flopezluro@...> 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@... | > 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. I applied the changeset. Thanks, jwe _______________________________________________ Bug-octave mailing list Bug-octave@... https://www.cae.wisc.edu/mailman/listinfo/bug-octave |
| Free embeddable forum powered by Nabble | Forum Help |