[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49546] importdata() fails for textfiles with
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #49546] importdata() fails for textfiles with missing values |
Date: |
Mon, 7 Nov 2016 21:57:29 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Follow-up Comment #5, bug #49546 (project octave):
With that fix I now get (octave-4.3.0+):
>> test importdata
***** test
## Exceptional values (Inf, NaN, NA)
A = [3.1 Inf NA; -Inf NaN 128];
fn = tempname ();
fid = fopen (fn, "w");
fputs (fid, "3.1\tInf\tNA\n-Inf\tNaN\t128");
fclose (fid);
[a,d,h] = importdata (fn, '\t');
unlink (fn);
assert (a, A);
assert (d, "\t");
assert (h, 0);
!!!!! test failed
ASSERT errors for: assert (a,A)
Location | Observed | Expected | Reason
(1,3) NaN NA 'NA' mismatch
>>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49546>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/