bugGNU Octave - Bugs: bug #55173, load of data files part of octave...

 
 

bug #55173: load of data files part of octave warn about load path

Submitter:  Carnë Draug <carandraug>
Submitted:  Thu 06 Dec 2018 07:18:46 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 28 Jan 2020 09:41:26 PM UTC, comment #3: 

For reference, the mailing list discussion was

  https://lists.gnu.org/archive/html/octave-maintainers/2018-12/msg00019.html

basically:

1 - Rik and Kai suggests removing the warning
2 - I think load working in this manner is crazy and warning makes sense so I suggest adding a function to load from the samples directory
3 - jwe agrees that warning is desirable and proposes making a variable for data directory public, alternatively change the default warning state
4 - Rik is against adding a new function and so suggests ignoring the warning if data is the sample data.
5 - jwe is against making the data directory a special exemption case for the warning

Carnë Draug <carandraug>
Group Member
Sat 08 Dec 2018 08:56:46 AM UTC, comment #2: 

A workaround can be (at least for demos/tests)


%!demo
%! q = warning ("query", "Octave:data-file-in-path");
%! warning ("off", "Octave:data-file-in-path");
%! S = load ("penny.mat");
%! warning (q.state, "Octave:data-file-in-path");


Avinoam Kalma <avinoam>
Group Member
Fri 07 Dec 2018 07:30:02 PM UTC, comment #1: 

I asked about approaches to resolving this on the Maintainer's list.  We'll see what other developers think.

Rik <rik5>
Group administrator
Thu 06 Dec 2018 07:18:46 PM UTC, original submission:  

Loading one of the data files that are part of an Octave installation such as penny.mat, give a warning that the file was found via the load path:


octave:1> load penny.mat
warning: load: '/usr/local/share/octave/5.0.0/data/penny.mat' found by searching load path


We shouldn't have such a warning since this works just fine and is common in examples. Or is there another way recommended to load the data files distributed with Octave?

Carnë Draug <carandraug>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-12-07 rik5 CategoryNone Interpreter
        Item GroupNone Other
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code