# Diagnostic codes Every run writes `diagnostics.parquet`: what it met and resolved by a documented rule, one row per category, code, severity and element, with a count. A run never stops for these; a high count is worth a look. {py:meth}`openmobisim.Run.diagnostics` reads them. These are the codes this version can write, by where they arise. | Where | Code | What happened | |---|---|---| | the run | `diagnostic_detail_truncated` | Per-element diagnostic detail was capped, at 4 096 elements per code; the count stays exact. | | the run | `gridlock` | Vehicles stood in a closed loop of links waiting on one another when the loading ended (gridlock): one per loop, about the loop's first link. | | the run | `mode_not_available` | The trip's mode cannot be simulated by this run: what it needs is not there (a bike or walk layer, a timetable for transit and its combinations, parkings for park-and-ride and bike-and-ride). | | the run | `no_feasible_path` | No feasible path existed for a trip; the documented fallback was used. | | the run | `no_vehicle_available` | A trip that states a mode needing a vehicle (a car or a bike) found its traveller's vehicle not at its origin, or the traveller owns none. A trip that chooses its mode is offered only the modes its traveller can use. | | the run | `trip_truncated` | A trip did not complete within the simulation window. | | the network | `degenerate_link_length` | A link had zero or negative length; it was given a minimum length. | | the network | `jam_density_raised_to_fit_capacity` | A link's capacity implied a backward wave above its bound, or no triangle at all; jam density was raised so the triangle closes with the capacity given. | | the network | `link_references_unknown_node` | A link referenced a node that was never declared; the link was dropped. | | the network | `unknown_highway_class` | An OSM `highway` value the defaults table does not model; the link was treated as `unclassified`. | | the network | `wave_speed_clamped` | A link's derived backward wave speed was clamped to its bound. | | the network | `wide_projection_extent` | The study area spans far enough in longitude that projection distortion is material at its edges. | | the demand | `duplicate_person_row` | Two `persons.parquet` rows named the same traveller; all but the first (in file order) were dropped. | | the demand | `duplicate_trip_seq` | Two rows for the same traveller stated different `trip_seq` values resolving to a duplicate after sorting; all but the first (in file order) were dropped. | | the demand | `inconsistent_traveller_weight` | A traveller's trip rows disagreed on `weight`; the first stated value was kept. | | the demand | `inconsistent_user_class` | A traveller's trip rows disagreed on `user_class`; the first stated value was kept (before any `persons.parquet` override). | | the demand | `ownership_overridden` | `persons.parquet` overrode at least one ownership field, or the `user_class`, for this traveller. Counted per traveller. | | the demand | `person_unknown_traveller` | A `persons.parquet` row's `traveller_id` matched no traveller in `trips.parquet`; the row was ignored. | | the demand | `trip_chain_origin_overridden` | Trip *n*+1's stated origin disagreed with trip *n*'s destination; the chain wins. Counted per traveller. | | reading OpenStreetMap | `osm_access_denied` | A way was excluded by `access=no` or `access=private`, or a car-class way by `motorcar`, `motor_vehicle` or `vehicle` set to `no` or `private`. | | reading OpenStreetMap | `osm_closed_loop_dropped` | A closed way with no junction but its own end could not become a link (it would start and end at one node) and was dropped. | | reading OpenStreetMap | `osm_is_an_area` | A way was tagged `area=yes` and is not a linear road. | | reading OpenStreetMap | `osm_maxspeed_unlimited` | A `maxspeed=none`; the class default was used. | | reading OpenStreetMap | `osm_maxspeed_unparsed` | A `maxspeed` tag could not be interpreted; the class default was used. | | reading OpenStreetMap | `osm_missing_node` | A way referenced a node the extract does not contain — normal at the edge of a bounding-box extract, where ways are cut. | | reading OpenStreetMap | `osm_service_not_a_street` | A `highway=service` way that is a parking aisle, driveway, drive-through or emergency access was left out of the road network. | | reading OpenStreetMap | `osm_too_few_nodes` | A way had fewer than two nodes. | | reading OpenStreetMap | `osm_unknown_highway_class` | A way carried a `highway` value the defaults table does not model. | | reading OpenStreetMap | `osm_way_cut_into_pieces` | A way with missing nodes in its middle was imported as separate pieces rather than bridged across the gap. | | reading OpenStreetMap | `osm_way_lost_to_missing_nodes` | A way was dropped because too few of its nodes survived. |