Skip to content

Commit 4eba064

Browse files
authored
Merge pull request #44 from climagination/coarsen_bug
make sure ds is updated by coarsening
2 parents 93a019e + 09d8f04 commit 4eba064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nc2pt/align.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def apply_coarsen(ds: xr.DataArray,
143143
Coarsened dataset.
144144
"""
145145
scale_factor = climdata.select.spatial.scale_factor
146-
coarsen_lr(ds, scale_factor)
146+
ds = coarsen_lr(ds, scale_factor)
147147
logging.info(f"🪛 Coarsened field by a factor of {scale_factor}")
148148
return ds
149149

0 commit comments

Comments
 (0)