Skip to content

from_source should support Path objects #862

@krikru

Description

@krikru

Is your feature request related to a problem? Please describe.

When earthkit.data.from_source is called with a pathlib.Path object as argument, a TypeError exception is raised with the message object of type 'PosixPath' has no len().

Describe the solution you'd like

earthkit.data.from_source should support Path objects as arguments. It can just convert these to strings if needed to.

Describe alternatives you've considered

No response

Additional context

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions