Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions imod/mf6/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ def _create_boundary_condition_for_unassigned_boundary(
pkg for _, pkg in model.items() if isinstance(pkg, pkg_type)
]

additional_boundaries = [
filtered_boundaries: list[StateType] = [
item for item in additional_boundaries or [] if item is not None
]

constant_state_packages.extend(additional_boundaries)
constant_state_packages.extend(filtered_boundaries)

return create_clipped_boundary(
model.domain, state_for_boundary, constant_state_packages, pkg_type
Expand Down
4 changes: 2 additions & 2 deletions imod/mf6/multimodel/exchange_creator.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def create_gwfgwf_exchanges(
GWFGWF(
f"{model_name}_{model_id1}",
f"{model_name}_{model_id2}",
**connected_cells_dataset, # type: ignore[misc]
**connected_cells_dataset, # type: ignore[arg-type]
)
)

Expand Down Expand Up @@ -232,7 +232,7 @@ def create_gwtgwt_exchanges(
f"{transport_model_name}_{model_id2}",
f"{flow_model_name}_{model_id1}",
f"{flow_model_name}_{model_id2}",
**connected_cells_dataset, # type: ignore[misc]
**connected_cells_dataset, # type: ignore[arg-type]
)
)

Expand Down
2 changes: 1 addition & 1 deletion imod/prepare/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def laplace_interpolate(
if missing_dims:
raise ValueError(f"Dimensions not in source: {missing_dims}")
# Ensure order matches the order in source.
dims = tuple(cast(str, dim) for dim in source.dims if dim in dims)
dims = tuple(dim for dim in source.dims if dim in dims)
shape = tuple(source.sizes[d] for d in dims)
connectivity = laplace._build_connectivity(shape)
arr = xr.apply_ufunc(
Expand Down
2 changes: 1 addition & 1 deletion imod/select/grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _reduce_grid_except_dims(
grid: GridDataArray, preserve_dims: List[str]
) -> GridDataArray:
to_reduce = {dim: 0 for dim in grid.dims if dim not in preserve_dims}
return grid.isel(**to_reduce) # type: ignore [misc, arg-type]
return grid.isel(**to_reduce) # type: ignore [arg-type]


def _validate_grid(grid):
Expand Down
Loading
Loading