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

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

[Octave-bug-tracker] [bug #58294] importdata duplicates header lines


From: Fabio
Subject: [Octave-bug-tracker] [bug #58294] importdata duplicates header lines
Date: Sat, 2 May 2020 13:53:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

URL:
  <https://savannah.gnu.org/bugs/?58294>

                 Summary: importdata duplicates header lines
                 Project: GNU Octave
            Submitted by: efferre79
            Submitted on: Sat 02 May 2020 05:53:49 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 5.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

in the current version of importdata.m the header lines can appear duplicated
in the output.textdata section if the wrong number of header lines is
suggested by the user

I have created a patch that solves the issue, moreover I have also added a
warning to the user when the auto-detected number of headelines is greater
than the value asked by the user (in that way the user doesn't get many NA
lines at the beginning of output.data)

I have added here a test datafile to show the problem:


importdata('test.log',"\t") % no problem here
importdata('test.log',"\t",1) % problem is here evident




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 02 May 2020 05:53:49 PM UTC  Name: test.log  Size: 85B   By:
efferre79

<http://savannah.gnu.org/bugs/download.php?file_id=48989>
-------------------------------------------------------
Date: Sat 02 May 2020 05:53:49 PM UTC  Name: importdata.m.patch  Size: 2KiB  
By: efferre79

<http://savannah.gnu.org/bugs/download.php?file_id=48990>

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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