Skip to content

Commit e377517

Browse files
committed
misc: left notes for discussion
1 parent b7d365b commit e377517

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ilamb3/transform/integrate.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ def __init__(
1212
dim: str,
1313
varname: str,
1414
mean: bool = False,
15+
# give trapezoidal option to use xarray built-in .integrate()
16+
# otherwise, use nate's method
1517
**kwargs: Any,
1618
):
1719
self.dim = dim
@@ -39,7 +41,7 @@ def __call__(self, ds: xr.Dataset) -> xr.Dataset:
3941
elif dim_name == "space":
4042
ds[self.varname] = dset.integrate_space(ds, self.varname, mean=self.mean)
4143
else:
42-
return ds
44+
return ds # if someone really wants to integrate over a different magical dim, they can implement their own transform
4345

4446

4547
class integrate_time(integrate):

0 commit comments

Comments
 (0)