Skip to content

Conversation

@JoerivanEngelen
Copy link
Contributor

Fixes #1209

Description

  • Add setting to to_mf6_pkg: error_on_well_removal, which throws an error if wells are removed entirely during well assignment.
  • Separated code to collect filtered well ids in separate method. This method is now also called to collect ids of errors being removed in error message.
  • Added attribute _is_from_imod5 to Modflow6Simulation to keep track if the simulation is loaded from iMOD5 data or not. Based on this, some validation settings might be set to be a bit more permissive. (Or call some extra cleanup?)
  • is_from_imod5 property to WriteContext to keep track of the same thing within the writing context.

Checklist

  • Links to correct issue
  • Update changelog, if changes affect users
  • PR title starts with Issue #nr, e.g. Issue #737
  • Unit tests were added
  • If feature added: Added/extended example

@JoerivanEngelen JoerivanEngelen changed the base branch from master to imod5_converter_feature_branch September 12, 2024 13:00
self.name = name
self.directory = None
self._initialize_template()
self._is_from_imod5 = False
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm imod5 converter logic is now being mixed up with the main logic. I'm not sure this is a good thing

Copy link
Contributor Author

@JoerivanEngelen JoerivanEngelen Sep 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, will be picked up further in #1222

@sonarqubecloud
Copy link

@JoerivanEngelen JoerivanEngelen merged commit fe1c630 into imod5_converter_feature_branch Sep 17, 2024
@JoerivanEngelen JoerivanEngelen deleted the issue_#1209_bypass_ValueError_well_assign branch September 17, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add option to bypass ValueError for removed wells during well assigning in to_mf6_pkg

3 participants