-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I added an xfailing test for this:
https://github.com/OpenDrift/trajan/blob/main/tests/test_read_sfy.py#L33
Line 30 in dc6f354
def timestep(self, average=np.nanmedian): |
Traj2d.timestep uses
np.diff(self.ds.time, axis=1)
but we should instead use dimension names here (the failing SFY dataset has only one axis).
Also, would it not be better if Traj1d.timestep and Traj2d.timestep returned timedeltas instead of seconds?
Metadata
Metadata
Assignees
Labels
No labels