Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when reading mars request with only one date #421

Closed
corentincarton opened this issue Jul 23, 2024 · 1 comment
Closed

Error when reading mars request with only one date #421

corentincarton opened this issue Jul 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@corentincarton
Copy link
Contributor

What happened?

I get the following error
AttributeError: 'str' object has no attribute 'to_datetime_list'
when providing only one date as a string to the mars request.

What are the steps to reproduce the bug?

You can reproduce the issue with the following request:

    "class": "ce",
    "date": "2024-06-12",
    "expver": 1,
    "levtype": "sfc",
    "model": "lisflood",
    "origin": "ecmf",
    "param": "240023",
    "step": "6/to/240/by/6",
    "stream": "efas",
    "time": "00:00:00",
    "type": "pf",
    "number": "1/to/50",
}
fc = earthkit.data.from_source("mars", fc_request)

Version

feature/earthkit-engine

Platform (OS and architecture)

HPC

Relevant log output

No response

Accompanying data

No response

Organisation

No response

@corentincarton corentincarton added the bug Something isn't working label Jul 23, 2024
@sandorkertesz
Copy link
Collaborator

@corentincarton, thank you for reporting this issue. It was only a problem in the feature/earthkit-engine branch where it is fixed now. So I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants