KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy Advanced Capstone Exercise 2.2 and 2.4 issues (Upd : Resolved)

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

    Posted by Saidharsan on September 16, 2024 at 5:19 am

    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 \”<mysensor> 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!

    megan_mcp replied 3 months, 1 week ago 2 Members · 10 Replies
  • 10 Replies
  • megan_mcp

    Administrator
    September 16, 2024 at 10:32 am

    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

    • Saidharsan

      Member
      September 16, 2024 at 10:36 am

      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.

      • megan_mcp

        Administrator
        September 16, 2024 at 10:55 am

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

        • Saidharsan

          Member
          September 16, 2024 at 11:14 am

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

          • megan_mcp

            Administrator
            September 16, 2024 at 11:41 am

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

            • Saidharsan

              Member
              September 16, 2024 at 12:09 pm

              Please help on this to pass the section

            • Saidharsan

              Member
              September 16, 2024 at 12:17 pm

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

            • megan_mcp

              Administrator
              September 16, 2024 at 2:26 pm

              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

            • Saidharsan

              Member
              September 16, 2024 at 2:29 pm

              Hi @megan_mcp

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

            • megan_mcp

              Administrator
              September 16, 2024 at 2:50 pm

              @Saidharsan so glad you got sorted!

Log in to reply.