close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#383 closed defect (fixed)

Estimate makes TOL crash when ModelDef has a wrong bad definition

Reported by: imendez Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: Math Version: head
Severity: blocker Keywords:
Cc:

Description

Hi, this code:

Serie aleatoria = SubSer(Gaussian(0, 0.1), y1998, y2002);
Serie output = aleatoria+(Pulse(y2000, Diario)*Real 0.5);
Set mod = ModelDef
(
output,
1,
0,
7,
?,
1,
SetOfPolyn(1, 1),
SetOfPolyn(1, 1),
SetOfSet(InputDef(0.1, Pulse(y2000, Diario))),
InputDef(0.1, Pulse(y2000, Diario)),
AllLinear
);
Set est1 = Estimate(mod, y1998, y2002);

causes a TOL crashing. It's obviously due to a negligence of the coder (it's me)
but I think that TOL should be more condescending with him (me) by showing an
error message.

[Note: the error is in the input definition, because it must be a SetOfSet of
InputDef structures instead of a unique InputDef structure.]

Regards.

Change History (3)

comment:1 Changed 19 years ago by Víctor de Buen Remiro

Status: newassigned

Thanks to report it.
We are working about this bug.

comment:2 Changed 19 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: assignedclosed

Bug has been fixed
An error will be emited if an input hasn't InputDef structure

comment:3 Changed 18 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000383
Note: See TracTickets for help on using tickets.