Skip to content
Snippets Groups Projects
Commit 04822f60 authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

replace xarray ufunc by numpy ufunc

parent a5d2871c
No related branches found
No related tags found
1 merge request!189replace xarray ufunc by numpy ufunc
......@@ -146,7 +146,7 @@ def align_xgm_array(xgm_arr, bpt):
compute_sa3 = True
mask_sa1 = is_sase_1(bpt.sel(trainId=valid_tid))
mask_sa3 = is_sase_3(bpt.sel(trainId=valid_tid))
mask = xr.ufuncs.logical_or(mask_sa1, mask_sa3)
mask = np.logical_or(mask_sa1, mask_sa3)
tid = mask.where(mask.sum(dim='pulse_slot') > 0,
drop=True).trainId
mask_sa1 = mask_sa1.sel(trainId=tid).rename({'pulse_slot': 'sa1_pId'})
......
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