6.2.3. schema

It provides CO2MPAS schema parse/validator.

Functions

check_data_version
check_phases_separated
>>> bags = [
is_sorted
validate_base
validate_flags
validate_meta
validate_plan
vehicle_family_id

Classes

Empty
vehicle_family_id_pattern = '\n (?:\n (IP|RL|RM|PR) - (\\d{2}) - ([A-Z0-9_]{2,3}) - (\\d{4}) - (\\d{4})\n )\n |\n (?:\n IP - ([A-Z0-9_]{2,15}) - ([A-Z0-9_]{3}) - ([01])\n )\n'

Define VehicleFamilyId (aka ProjectId) pattern here not to import the world on use. Referenced by sampling.tstamp.TstampReceiver.extract_dice_tag_name().

NOTE: keep synced with pCO2DICE/src/co2dice/base.py!