Skip to content

[Bug] - Projectfile reader breaks upon receiving empty wells #1799

@JoerivanEngelen

Description

@JoerivanEngelen

Bug description
iMOD5 can generate model databases with IPF files for wells with 0 rows. This occurs when copying a model database with the iMOD BATCH MODELCOPY function. iMOD Python doesn't gracefully handle this at the moment.

Steps to reproduce

  1. Copy a subsection from a large model with the MODELCOPY batch function, set the WINDOW to a bounding box outside the bbox of well fields.
  2. Try reading the projectfile this produces, this will throw an error if the IPF file is supposed to have associated text files.

Additional context
This is quite a common workflow in debugging large regional models and the national model, as using the full models results in a terribly slow workflow.

Metadata

Metadata

Labels

backwards_compatibilityBackwards compatibility with iMOD5bugSomething isn't working

Type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions