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

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

[Octave-bug-tracker] [bug #58293] importdata doesn't like empty header l


From: Fabio
Subject: [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines
Date: Thu, 7 May 2020 13:44:45 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0

Follow-up Comment #5, bug #58293 (project octave):

no the problem is that colheaders is blindly looked into last line of
headers.


      if (! isempty (output.textdata))
        if (delimiter == " ")
          output.colheaders = regexp (strtrim (output.textdata{end}),
                                      ' +', 'split');
        else
          output.colheaders = ostrsplit (output.textdata{end}, delimiter);
        endif
      endif


I think this problem is not related to this bug report, I could have a look
and open a new bug. What do you think?

We should decide if the number of column headers must be equal to the number
of columns in output.data, or if we can have empty col headers like in my
example file attached initially. For instance we can decide that there are
column headers only if there is a separator in the last line of headers

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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