Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def _compute_rbf_interpolation_coeffs(
scale_factor: ta.wpfloat,
horizontal_start: gtx.int32,
array_ns: ModuleType = np,
) -> tuple[data_alloc.NDArray, data_alloc.NDArray]:
) -> list[data_alloc.NDArray]:
rbf_offset_shape_full = rbf_offset.shape
rbf_offset = rbf_offset[horizontal_start:]
num_elements = rbf_offset.shape[0]
Expand Down Expand Up @@ -346,7 +346,7 @@ def index_offset(f):
rbf_vec_coeff_np[j][i + horizontal_start, valid_neighbors] = sla.cho_solve(
z_diag_np, rhs_np[j][i, valid_neighbors]
)
rbf_vec_coeff = tuple([array_ns.asarray(x) for x in rbf_vec_coeff_np])
rbf_vec_coeff = [array_ns.asarray(x) for x in rbf_vec_coeff_np]

# Normalize coefficients
for j in range(num_zonal_meridional_components):
Expand Down Expand Up @@ -399,7 +399,7 @@ def compute_rbf_interpolation_coeffs_cell(
array_ns=array_ns,
)
assert len(coeffs) == 2
return coeffs
return tuple(coeffs)


def compute_rbf_interpolation_coeffs_edge(
Expand Down Expand Up @@ -483,4 +483,4 @@ def compute_rbf_interpolation_coeffs_vertex(
array_ns=array_ns,
)
assert len(coeffs) == 2
return coeffs
return tuple(coeffs)