Advanced Capstone Exercise 2.2 and 2.4 issues (Upd : Resolved)

https://learninghub.kx.com/forums/topic/advanced-capstone-exercise-2-2-and-2-4-issues

Hi, I've tried to clear the exercise 2.2 and 2.4 but getting the below issues also attached my code and lap table data for the reference

2.2 - my laptable contains data similar to given but getting length error

2.4 - used Q.trp and getting error showed up but the test section is not passing

quizItem success description error
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
exercise2.1 Pass "check if race day in process" ""
exercise2.1 Pass "have correct schema" ""
exercise2.2 Pass "check if lap table in process" ""
exercise2.2 Pass "only contains data for 2nd Jan 2020" ""
exercise2.2 Fail "contain all columns for 2nd Jan 2020" "length"
exercise2.3 Pass "not allowed to use select keyword" ""
exercise2.3 Pass "return correct values for temp" ""
exercise2.3 Pass "return correct values for wind" ""
exercise2.3 Pass "return correct values for all" ""
exercise2.4 Fail "when given the wrong option return error \" is not a valid option for mysensor - valid options include temptyrewindall\"" ""
exercise2.5 Pass "func should return same result as before" ""

exercise2.5 Pass "`p attribute exists"


Can anyone help how to resolve this!


Hi @Saidharsan

Can you send me your exact code for exercise 2.2 please?

For exercise 2.4 can you make sure to create a dictionary mapping the mysensor inputs, as seen in the table below.

Thanks,

Megan

Hi Megan,

The test case 2.2 is passed now and please find the dictionary image ive created even then it's not passing the test case.

Can you make sure this dictionary exists within your .f1.checkSensor function.

I've specified it has global dictionary and also declared it under .f1 namespace, even after its not passing the section

Can you send me a screenshot of your updated .f1.checkSensor function? This will allow me to assist you better?

Please help on this to pass the section

All test cases passed except 2.4 if you please help, I can submit the project

Hi @Saidharsan

Your code seems to work fine for me. If you want to download your project.md file and send it to me via private message I can have a closer look?

Thanks,

Megan

Hi @megan_mcp

I've edited the hypen symbol in the code and it got cleared. Thanks for your help.

@Saidharsan so glad you got sorted!