Level 3 Capstone Project needs reset

Hey all!

I'm trying to complete the Level 3 capstone, and I'm running into trouble with Exercise 1.3, the .f1.createLapTable function. It works exactly as I want it to, it passes the .f1.createLapTable.quke test - but for whatever reason, when I run testSection[exercise1]`, this section consistently shows up as a "Fail". No idea if it's just me and there's an issue with my function, or if there's a problem with the capstone itself - but either way, I think it's worth resetting the whole project (I have a back-up saved of everything I've got so far). Could someone do this for me, please?

(P.S. Am I on the right lines with this? Been banging my head against the wall for this for ages.)

.f1.createLapTable:{[eventTab;sensorTab]
    rack:(select from eventTab) cross select distinct sensorId from sensorTab;
    attrSen:update `p#session from `session`lapId`sensorId`time xasc sensorTab;
    delete date from wj[(rack`time;rack`endTime);`session`lapId`sensorId`time;rack;(attrSen;(avg;`sensorValue))]
    }

1 Answer

1

Hi @peter.morris.phd ,

There issue with the capstone project has been resolved so you should be able to continue (you might want to restart your server. You can do this on Jupyterhub by going to File> Hub Control Panel> Stop My Server > Start My Server.

I had a run through your code for createLapTable and simplified it a bit:

.f1.createLapTable:{[eventTab;sensorTab]
    rack:(select from eventTab) cross select distinct sensorId from sensorTab;
    /attrSen:update `p#session from `session`lapId`sensorId`time xasc sensorTab;
    delete date from wj[(rack`time;rack`endTime);`sensorId`time;rack;(sensorTab;(avg;`sensorValue))]
    }

Hope that helps,

Laura