Skip to content

[Bug] - Confusing warning message when loading messy GEN files #1810

@JoerivanEngelen

Description

@JoerivanEngelen

Bug description
I'm loading messy GEN files from IBRAHYM, but it results in an incorrect warning:

UserWarning: Inconsistent IPF: header states 2 columns, first line contains 3

This stems from the imod.formats.ipf._infer_delimwhitespace helper function from the IPF module being used in the GEN module.

  • The following needs to be done: create a small imod.formats.common module where useful helper functions can be shared
  • Add an argument so that the warning message text "IPF" or "GEN" can be set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    Status

    🧐 In Review

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions