CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-pynmea2

Python library for parsing and generating NMEA 0183 protocol messages used in GPS and marine navigation systems

77

1.11x
Overview
Eval results
Files

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how well the engineer uses pynmea2's error handling capabilities to build a robust NMEA sentence validator. The focus is on proper use of the parse() function, exception handling for the three error types (ParseError, ChecksumError, SentenceTypeError), and understanding of the check parameter for strict validation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses pynmea2.parse()",
      "description": "Uses the pynmea2.parse() function to parse NMEA sentences into sentence objects",
      "max_score": 15
    },
    {
      "name": "Handles ChecksumError",
      "description": "Catches pynmea2.ChecksumError exceptions and categorizes them correctly as checksum errors",
      "max_score": 20
    },
    {
      "name": "Handles SentenceTypeError",
      "description": "Catches pynmea2.SentenceTypeError exceptions and categorizes them correctly as unknown sentence type errors",
      "max_score": 20
    },
    {
      "name": "Handles ParseError",
      "description": "Catches pynmea2.ParseError exceptions (or its parent class) and categorizes them correctly as general parse errors",
      "max_score": 20
    },
    {
      "name": "Strict mode parameter",
      "description": "Uses the check=True parameter in pynmea2.parse() when strict mode is enabled, and check=False (or omitted) when strict mode is disabled",
      "max_score": 15
    },
    {
      "name": "Sentence type extraction",
      "description": "Extracts the sentence type from parsed sentence objects using the sentence_type attribute or similar mechanism provided by pynmea2",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-pynmea2

tile.json