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

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

[Octave-bug-tracker] [bug #41630] Importdata function fails with Unable


From: anonymous
Subject: [Octave-bug-tracker] [bug #41630] Importdata function fails with Unable to determine delimiter error
Date: Tue, 18 Feb 2014 07:22:14 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:27.0) Gecko/20100101 Firefox/27.0

URL:
  <http://savannah.gnu.org/bugs/?41630>

                 Summary: Importdata function fails with  Unable to determine
delimiter error
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Tue 18 Feb 2014 07:22:12 AM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Ravikiran Chiru
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Mac OS

    _______________________________________________________

Details:

I am using octave 3.8.0-6 OS X mavericks dmg downloaded from

http://sourceforge.net/projects/octave/files/Octave%20MacOSX%20Binary/2013-12-30%20binary%20installer%20of%20Octave%203.8.0%20for%20OSX%2010.9.1%20%28beta%29/


I tried to import a plain text file (attached landmarks_list.txt) which looks
like:

Landmark-1
Landmark-2
Landmark-3
Landmark-4
Landmark-5


i.e it has no headers and a single column.

Loading this file using any of the following 

A=importdata("landmarks_list.txt")
A=importdata("landmarks_list.txt","t")
A=importdata("landmarks_list.txt","t",0)
A=importdata("landmarks_list.txt"," ")
A=importdata("landmarks_list.txt"," ",0)

all fail with:

error: importdata: Unable to determine delimiter
error: called from:
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/io/importdata.m at line
214, column 5
error:   /usr/local/octave/3.8.0/share/octave/3.8.0/m/io/importdata.m at line
132, column 38

I then tried an older version of importdata.m taken from
http://sourceforge.net/p/octave/feature-requests/41/
and it worked like a charm.
There seems to be some issue with the delimiter detection.

NOTE: There is not path/file not found issue

NOTE: I have tried this with multicolumn files with a valid "t" delimiter and
this fails too with the latest importdata and it passes with the older
version.
      
G'day
Chiru







    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 18 Feb 2014 07:22:12 AM UTC  Name: landmark_list.txt  Size: 78B  
By: None

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

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41630>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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