octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61358] dlmread fails to read NA values on arm


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61358] dlmread fails to read NA values on arm64
Date: Sun, 26 Jan 2025 06:25:46 -0500 (EST)

Follow-up Comment #18, bug #61358 (group octave):

GitHub started to provide Ubuntu runners on ARM64 for free (as in "free beer")
for public repositories.

The issue that is reported here seems to be still occurring on a current head
of the default branch:

***** test
 file = tempname ();
 unwind_protect
   fid = fopen (file, "wt");
   fwrite (fid, "1,NA,3");
   fclose (fid);

   assert (dlmread (file), [1, NA, 3]);
 unwind_protect_cleanup
   unlink (file);
 end_unwind_protect
!!!!! test failed
ASSERT errors for:  assert (dlmread (file),([1, NA, 3]))

  Location  |  Observed  |  Expected  |  Reason
    (2)           0            NA        'NA' mismatch
***** test <*54029>
 file = tempname ();
 unwind_protect
   fid = fopen (file, "wt");
   fwrite (fid, "NaNe,bNa,Name,c\n1,NaN,3,Inftest\n-Inf,6,NA,8");
   fclose (fid);

   assert (dlmread (file), [0, 0, 0, 0; 1, NaN, 3, 0; -Inf, 6, NA, 8]);
 unwind_protect_cleanup
   unlink (file);
 end_unwind_protect
!!!!! regression: https://octave.org/testfailure/?54029
ASSERT errors for:  assert (dlmread (file),([0, 0, 0, 0; 1, NaN, 3, 0; -Inf,
6, NA, 8]))

  Location  |  Observed  |  Expected  |  Reason
   (3,3)          0            NA        'NA' mismatch


The following test errors in io.tst on these runners (also with NaN values)
might or might not be related:

***** test <*63383>
 [val, count, msg, pos] = sscanf ('2 3 n', '%f');
 assert (val, [2; 3]);
 assert (count, 2);
 assert (msg, 'sscanf: format failed to match');
 assert (pos, 5);
 [val, count, msg, pos] = sscanf ('2 3 na', '%f');
 assert (val, [2; 3; NA]);
 assert (count, 3);
 assert (msg, '');
 assert (pos, 7);
 [val, count, msg, pos] = sscanf ('2 3 nan', '%f');
 assert (val, [2; 3; NaN]);
 assert (count, 3);
 assert (msg, '');
 assert (pos, 8);
!!!!! regression: https://octave.org/testfailure/?63383
ASSERT errors for:  assert (val,([2; 3; NA]))

  Location  |  Observed  |  Expected  |  Reason
     .          O(2x1)       E(3x1)      Dimensions don't match
***** test <*63383>
 [val, count, msg, pos] = sscanf ('+NA -NA 1 +NAN -NAN', '%f');
 assert (val, [NA; NA; 1; NaN; NaN]);
 assert (count, 5);
 assert (msg, '');
 assert (pos, 20);
 [val, count, msg, pos] = sscanf ('-NA', '%f');
 assert (val, NA);
 assert (count, 1);
 assert (msg, '');
 assert (pos, 4);
 [val, count, msg, pos] = sscanf ('+NA', '%f');
 assert (val, NA);
 assert (count, 1);
 assert (msg, '');
 assert (pos, 4);
 [val, count, msg, pos] = sscanf ('-NaN', '%f');
 assert (val, NaN);
 assert (count, 1);
 assert (msg, '');
 assert (pos, 5);
 [val, count, msg, pos] = sscanf ('+NaN', '%f');
 assert (val, NaN);
 assert (count, 1);
 assert (msg, '');
 assert (pos, 5);
!!!!! regression: https://octave.org/testfailure/?63383
ASSERT errors for:  assert (val,NA)

  Location  |  Observed  |  Expected  |  Reason
     .          O(0x1)       E(1x1)      Dimensions don't match




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61358>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]