#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
Owner: | changed from danirus to Víctor de Buen Remiro |
---|
comment:2 Changed 20 years ago by
Cc: | ofernandez added |
---|---|
Version: | cvs → nightly 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
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
Status: | new → assigned |
---|
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
Owner: | changed from danirus to Víctor de Buen Remiro |
---|---|
Status: | assigned → new |
comment:6 Changed 20 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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
bug_file_loc: | → http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000305 |
---|
Victor just tell me he will care about this.
Cheers,
Daniel