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 20 years ago

Closed 20 years ago

Last modified 18 years ago

#305 closed defect (fixed)

SubSer error

Reported by: imendez Owned by: Víctor de Buen Remiro
Priority: high Milestone:
Component: TimeSetAlgebra Version: head
Severity: major Keywords:
Cc: ofernandez

Description

This code fails:

Serie ser = SubSer(CalInd(C, Diario), Today, Today);
TimeSet autoFec = SerTms(ser) * In(First(ser), Last(ser));
Serie autoDat = SubSer(DatCh(ser, autoFec, FirstS), First(ser), Last(ser));

When you make a table from the series "autoDat", it has no data and TOL returns
the error message:

ERROR: Se encontró la fecha desconocida construyendo la cache de TimeSet, como
el sucesor de y2005m09d13El cálculo será interrrumpido.

Change History (7)

comment:1 Changed 20 years ago by danirus

Owner: changed from danirus to Víctor de Buen Remiro

Victor just tell me he will care about this.
Cheers,
Daniel

comment:2 Changed 20 years ago by danirus

Cc: ofernandez added
Version: cvsnightly built

Hi Iván,

We executed the Tol code you sent without errors.
I've tried with Tol-Tolbase (CVS version) under Windows, and also with Tol
Console (under Linux) without errors.

I've just add a new "Version Type" for "Tol Product" in Bugzilla, to be able
send a Bug Report with the Tol Version you are using: "Nightly Built". It seems
to be a problem in the construction proccess of that version.

Cheers, Daniel

comment:3 Changed 20 years ago by lalonso

Owner: changed from Víctor de Buen Remiro to danirus

This error is not due to the version "Nightly Built". It also happens in the CVS
version, probably this bug is in the DatCh function of tol.

comment:4 Changed 20 years ago by danirus

Status: newassigned

Yes, doing a best reading I'm seeing what Ivan is talking about.
The problem appears when you "paint" the Series.
I accepted the bug.

comment:5 Changed 20 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro
Status: assignednew

comment:6 Changed 20 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

This bug has been fixed..

In BHash BTimeSet::GetHashBetweenH(BReal hFirst, BReal hLast) of file
btol/timeset_type/tms.cpp, a last iteration of date Successor is done for nothing.
When last date of interval is the last date of a limited TimeSet, then an error
happens because Successor not exists. The cycle has been rewritten to avoid this
unusefull and inefficient last iteration.

comment:7 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_000305
Note: See TracTickets for help on using tickets.