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

Update zenodo source of gridded weather data #391

Merged
merged 2 commits into from
Jun 7, 2024

Conversation

brynpickering
Copy link
Member

@brynpickering brynpickering commented Jun 7, 2024

Fixes some review comments from @irm-codebase in #390.

Made a specific PR as they are changes that are worth considering in isolation, I believe. Deals with data units, mostly.

I'll deal with the rest of the review comments in #390 directly.

Checklist

Any checks which are not relevant to the PR can be pre-checked by the PR creator. All others should be checked by the reviewer. You can add extra checklist items here if required by the PR.

  • CHANGELOG updated
  • Minimal workflow tests pass
  • Tests added to cover contribution
  • Documentation updated
  • Configuration schema updated

Copy link
Member

@timtroendle timtroendle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

pattern: ^(https?|http?):\/\/.+
description: "Web address of gridded 10m wind speed data. Expecting a netCDF file with the coordinates [time, site], and the variables [temperature, lat, lon]."
pattern: ^(https?|http?):\/\/.+{data_var}.*\.(nc)$
description: "Web address of gridded weather data. Expecting a netCDF file with the coordinates [time, site], the variables [{data_type}, lat, lon], and the attribute 'unit'."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be [{data_var}, lat, lon] I guess?

@@ -218,17 +222,14 @@ def get_daily_heat_demand(

def heat_function(t, parameters):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type hints are missing everywhere but I understand they will be added in #390.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, and better variable naming

@brynpickering brynpickering merged commit 5e1945f into feature-hot-water Jun 7, 2024
4 checks passed
@brynpickering brynpickering deleted the update-weather-data-zenodo branch June 7, 2024 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants