Skip to content

get_events silently drops unknown event types: the returned dict looks complete #63

Closed

Description

@CameronBrooks11

Helper.get_events drops flight-event types that orlab's enum does not know,
and tells the caller only through a log line:

src/orlab/core/helper.py:195-203

except (KeyError, UnsupportedFlightDataType):
    logger.warning("Skipping unknown flight event type %s", name)

The returned dict then looks complete. A caller iterating it cannot tell
"this simulation had no such event" from "orlab did not recognise the event
and silently dropped it", and the log line is suppressed entirely by an
application that raises its log level.

This is the defect #61 was
filed about, one layer up — and it is arguably worse there, because #61
degraded a whole run's fidelity in a way a user might notice, whereas this
quietly removes rows from a result the caller is about to analyse.

It matters most on exactly the jars #61 concerns: a newer OpenRocket running
on a nearest-older profile is the case where unknown event types are most
likely to appear.

Suggested shape

Return the skipped names alongside the events, or expose them on the Helper,
so a caller can branch. Whatever the shape, "I could not interpret part of
this result" must be readable from the return value, not only from a log.

Related, lower severity

  • Helper._warn_absent_once (helper.py:26-33) — an absent getter yields
    math.nan into the summary field, which is branchable, but NaN conflates
    "this OpenRocket version has no such getter" with "genuinely not a number".
  • OpenRocketInstance._warn_on_profile_drift (openrocket_instance.py) —
    drift between the profile and the live jar is log-only with no attribute.

Found during independent review of
#62. Not folded into that PR:
one logical change per commit, and this needs its own decision about the
return shape.

Activity

  1. added
    silence-defect
    on Sep 6, 2026
  2. added 2 commits that reference this issue on Sep 6, 2026
    96a0c92
    ba72a08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    silence-defect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions