Skip to content

[Bug] - clip_box breaks with state at boundary when transient CHD package is already present #1743

@JoerivanEngelen

Description

@JoerivanEngelen

Bug description

  • Add transient CHD package to model
  • Call clip_box with state_at_boundary argument

A ValidiationError about dimensions is thrown upon creating the state at boundary package. This happens even when the data states_at_boundary doesn't even have a time dimension.

        if not validate:
            return
        errors = validate_func(schemata, **kwargs)
        if len(errors) > 0:
            message = validation_pkg_error_message(errors)
>           raise ValidationError(message)
E           imod.schemata.ValidationError: 
E           - head
E               - No option succeeded:
E               dim mismatch: expected ('time', 'layer', 'y', 'x'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('layer', 'y', 'x'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('time', 'layer', 'mesh2d_nFaces'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('layer', 'mesh2d_nFaces'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('time', 'y', 'x'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('y', 'x'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('time', 'mesh2d_nFaces'), got ('layer', 'mesh2d_nFaces', 'time')
E               dim mismatch: expected ('mesh2d_nFaces',), got ('layer', 'mesh2d_nFaces', 'time')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingclippingDeals with clipping methods

    Type

    Projects

    Status

    📯 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions