[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/
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Fabio, 2020/05/02
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Rik, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Fabio, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Fabio, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Rik, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines,
Fabio <=
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Rik, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Fabio, 2020/05/07
- [Octave-bug-tracker] [bug #58293] importdata doesn't like empty header lines, Rik, 2020/05/23