cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to pass 2.5 on Advanced Capstone

rmcfee825
New Contributor II

The runtime for \t .viz.createDashboard[] was 600

and I have successfully reduced it to 258, and yet I am still failing the test.

 

I have made the following changes

Spoiler
Changed the order of where clauses in .viz.getModSensor
{[]
symbols:`windSpeedFront`tempBackLeft`tyrePressureBackLeft;
select from sensor where date in 2020.01.01 2020.01.02,sensorId in symbols,0=lapId mod 2
/
}

and
setattrcol[`:.;`sensor;`sensorId;`p]

meta sensor

c | t f a
-----------| -----
date | d
sensorId | s p
time | t
lapId | j
units | s
sensorValue| f
session | s

 

Thanks!

1 ACCEPTED SOLUTION

megan_mcp
Moderator Moderator
Moderator

The 2.5 Test case:

Spoiler
feature exercise2.5
should func should return same result as before
expect
.test.table2.5~.viz.createDashboard[]
should .viz.createDashboard should run in half the time expect
0.5>((system"t:5 .viz.createDashboard[]")%5)%.test.time2.5\
  

W.r.t pass having now becoming a fail I would advise logging out and restarting a new session. And then running all your changes from scratch, as its a performance based one sometime other changes can impact so testing is a little more fragile.

Let me know if this helps.

Megan 🙂

View solution in original post

4 REPLIES 4

megan_mcp
Moderator Moderator
Moderator

Hi @rmcfee825 !

Here is a similar post that was asked on the community. Solved: Advanced Capstone quizzes 2.4.2 and 2.5.1 - KX Community - 11053

It includes the test case for 2.5 or it might just be a matter of logging out (saving your code down) and starting a fresh session.

If you're still having problems, please feel free to reach out!

Thanks,

Megan 🙂

rmcfee825
New Contributor II

Hello,
Tried to access the link and got the following error.


You do not have sufficient privileges for this resource or its parent to perform this action.

I have also tried logging out and starting a fresh sessions and that hasn't worked.

 

megan_mcp
Moderator Moderator
Moderator

The 2.5 Test case:

Spoiler
feature exercise2.5
should func should return same result as before
expect
.test.table2.5~.viz.createDashboard[]
should .viz.createDashboard should run in half the time expect
0.5>((system"t:5 .viz.createDashboard[]")%5)%.test.time2.5\
  

W.r.t pass having now becoming a fail I would advise logging out and restarting a new session. And then running all your changes from scratch, as its a performance based one sometime other changes can impact so testing is a little more fragile.

Let me know if this helps.

Megan 🙂

rmcfee825
New Contributor II

Thanks Megan!