Skip to content
Snippets Groups Projects

fix nan issue in FugaMultiLUTDeficit

Merged Mads M. Pedersen requested to merge fuga_multilut_nan into master
1 file
+ 2
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading