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 fetch_fcst task when no data found for a model, as it usually indicates a typo in the data path #842

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jfrost-mo
Copy link
Member

@jfrost-mo jfrost-mo commented Sep 25, 2024

Fixes #824

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@jfrost-mo jfrost-mo added bug Something isn't working small Small issue that should be quick to resolve labels Sep 25, 2024
@jfrost-mo jfrost-mo self-assigned this Sep 25, 2024
@jfrost-mo
Copy link
Member Author

I probably need to add a test before merging.

@jfrost-mo jfrost-mo removed the request for review from JorgeBornemann September 25, 2024 04:23
@jfrost-mo jfrost-mo force-pushed the 824_error_when_no_data_found branch 2 times, most recently from ebefa09 to 19b6a62 Compare September 25, 2024 09:27
Copy link
Contributor

github-actions bot commented Sep 25, 2024

Coverage

@jfrost-mo jfrost-mo changed the title Error when no data found Error fetch_fcst task when no data found for a model Sep 25, 2024
@jfrost-mo jfrost-mo changed the title Error fetch_fcst task when no data found for a model Error fetch_fcst task when no data found for a model, as it usually indicates a typo in the data path Sep 25, 2024
@jfrost-mo jfrost-mo marked this pull request as ready for review September 25, 2024 10:30
@Fraetor
Copy link

Fraetor commented Sep 25, 2024

Tests could do with actually checking the return value if the FileRetrievers.

@jfrost-mo jfrost-mo marked this pull request as draft September 26, 2024 07:05
@jfrost-mo
Copy link
Member Author

Marking as draft after it didn't work when tested during the NIWA tutorial.

@jfrost-mo jfrost-mo force-pushed the 824_error_when_no_data_found branch 2 times, most recently from 83bafc8 to 1b54c3f Compare September 27, 2024 02:50
@jfrost-mo jfrost-mo marked this pull request as ready for review September 27, 2024 02:51
@jfrost-mo
Copy link
Member Author

I've added some more tests, and manually tested. It seems to work... Maybe we just forgot to merge properly into the NIWA branch?

Base automatically changed from 750_data_time_cycling to main October 24, 2024 14:21
@jfrost-mo jfrost-mo marked this pull request as draft October 24, 2024 14:22
This should catch the case where the underlying implementation is
not correctly reporting when files are missing.
@jfrost-mo jfrost-mo marked this pull request as ready for review October 25, 2024 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small Small issue that should be quick to resolve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in fetch data if no data found for a model
2 participants