Skip to content

Commit 5d01cee

Browse files
committed
docs
1 parent 563a797 commit 5d01cee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

trajan/traj1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def skill(self, other, method='liu-weissberg', **kwargs):
211211
@__require_obsdim__
212212
def seltime(self, t0=None, t1=None):
213213
"""
214-
Select observations in time window between `t0` and `t1`.
214+
Select observations in time window between `t0` and `t1` (inclusive).
215215
"""
216216

217217
return self.ds.sel({self.timedim: slice(t0, t1)})

trajan/traj2d.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ def condense_obs(self):
200200
@__require_obsdim__
201201
def seltime(self, t0=None, t1=None):
202202
"""
203-
Select observations in time window between `t0` and `t1`.
203+
Select observations in time window between `t0` and `t1` (inclusive).
204+
205+
Warning: This is unlikely to work if the observation dimension has been condensed (:ref:`condens_obs`).
204206
"""
205207

206208
t0 = pd.to_datetime(t0)

0 commit comments

Comments
 (0)