[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30909] OO code failing under 3.3.52+
From: |
Pascal Dupuis |
Subject: |
[Octave-bug-tracker] [bug #30909] OO code failing under 3.3.52+ |
Date: |
Mon, 30 Aug 2010 16:22:24 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.8) Gecko/20100723 Ubuntu/10.04 (lucid) Firefox/3.6.8 |
URL:
<http://savannah.gnu.org/bugs/?30909>
Summary: OO code failing under 3.3.52+
Project: GNU Octave
Submitted by: cdemills
Submitted on: lun 30 aoû 2010 16:22:23 GMT
Category: Interpreter
Severity: 3 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Pascal Dupuis
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Hello,
while trying the latest code from mercurial, I've got a problem. The class
constructor calls private/df_pad.m, which fails as follows:
function df = df_pad(df, dim, n, coltype=[])
switch dim
case 1
%# complete row indexes
if isempty(df._ridx),
dummy = (1:n).';
else
dummy = vertcat(df._ridx, repmat(NA, n, size(df._ridx, 2)));
endif
df._ridx = dummy; <= fails
the code is called with an empty dataframe, dim = 1, n = 10.
Error message is
malformed class
assignement failed, or no method for 'class=matrix'
In principle, the assignement must be performed through subasgn, which it
itself busy calling df_pad. The code works under 3.2.4, is there some reason
while it fails under 3.3.52 ? Should I play between classes and struct to
handle directly modifications of the class variable ?
The problem can be reproduced as follows:
- install the dataframe package from octave-forge
- x=dataframe('octave_frame/data_test.csv');
Regards
Pascal
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30909>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #30909] OO code failing under 3.3.52+,
Pascal Dupuis <=