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

Closed 15 years ago

Last modified 15 years ago

#886 closed defect (fixed)

Data change to HalfHourly dating seems to fail — at Version 3

Reported by: Alfredo Torre Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: TimeAlgebra Version: 2.0.1
Severity: blocker Keywords: DatCh, Series, HalfHourly, Hour, Minute
Cc: cperez@…, jconde@…

Description (last modified by Víctor de Buen Remiro)

Hi,
please try to run this TOL Code. The series for hour 0 minute 0 works fine but for hour 0 minute 30 does not. Actually, none of any series for 30 minutes works.

TimeSet HalfHourly = Mi(0)+Mi(30);
Serie Gauss_HH = SubSer(Gaussian(1000, 10, HalfHourly), y2009, y2010);
Serie Gauss_HH_0000 = DatCh(CalInd(H(0)*Mi(0), HalfHourly) * Gauss_MH, Diario, SumS);
Serie Gauss_GH_0030 = DatCh(CalInd(H(0)*Mi(30), HalfHourly) * Gauss_MH, Diario, SumS);
Serie Gauss_GH_0130 = DatCh(CalInd(H(1)*Mi(30), HalfHourly) * Gauss_MH, Diario, SumS);

¿Am I doing something wrong?

Change History (3)

comment:1 Changed 15 years ago by Alfredo Torre

What realy seems to fail is CalInd(H(0)*Mi(30), HalfHourly)

comment:2 Changed 15 years ago by Alfredo Torre

Resolution: fixed
Status: newclosed

Please accept my apologies. The next sentence works fine:

CalInd(Range(H(0), 0, 59, S(0)) * Mi(30), HalfHourly);

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

Description: modified (diff)

Sorry, I could not see the problem in time.
I see you've already seen the confusion.

Note: See TracTickets for help on using tickets.