Skip to content

Traj2d.timestep is failing #141

@knutfrode

Description

@knutfrode

I added an xfailing test for this:
https://github.com/OpenDrift/trajan/blob/main/tests/test_read_sfy.py#L33

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions