Skip to content

ENH: warn when a drag CSV does not form a regular grid #1238

Open

Description

@MateusStano

When a multi-variable drag CSV given to Rocket (power_off_drag / power_on_drag) is not an exact grid, Rocket.__load_rocket_drag_csv falls back to scattered interpolation without telling the user. This happens with a missing combination, a repeated row, or the same value written two ways (0.3 and 0.30000000000000004).

The drag coefficient then changes both between and outside the points. On a 3 x 3 table with one point dropped, a query beyond the last alpha goes from 0.57 to 0.53.

Proposal: a warnings.warn where the loader falls back (if csv_func is None:), saying the table is not a full grid and scattered interpolation is used. Then remove "no warning is given" from the note in docs/user/rocket/rocket_usage.rst.

Found in the review of #1232.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions