Skip to content
Snippets Groups Projects
Commit 9c61ac38 authored by Mads M. Pedersen's avatar Mads M. Pedersen
Browse files

fix nan issue in FugaMultiLUTDeficit

parent 51dc4a3a
No related branches found
No related tags found
1 merge request!612fix nan issue in FugaMultiLUTDeficit
Pipeline #66606 failed
......@@ -261,7 +261,9 @@ class FugaMultiLUTDeficit(XRLUTDeficitModel, FugaDeficit):
if z_lst is None:
z_lst = np.sort(np.unique([da.z for da in da_lst]))
x_lst = np.sort(np.unique([da.x for da in da_lst]))
x_lst = x_lst[(x_lst >= np.max([da.x[0] for da in da_lst])) & (x_lst <= np.min([da.x[-1] for da in da_lst]))]
y_lst = np.sort(np.unique([da.y for da in da_lst]))
y_lst = y_lst[(y_lst >= np.max([da.y[0] for da in da_lst])) & (y_lst <= np.min([da.y[-1] for da in da_lst]))]
da_lst = [da.interp(z=z_lst, x=x_lst, y=y_lst) for da in da_lst]
# combine_by_coords does not always merge attributes correctly
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment