Closed thomasarmstrong98 closed 1 year ago
After recent PR, file ocf_datapipes/utils/consts.py wasn't working due to small bug where dataarray creation took the superset of all variables instead of only those passed through as keys in the dictionary. Fixed this and tested working.
ocf_datapipes/utils/consts.py
Also, bumping the pre-commit isort version to 5.12.0, as there are errors on the current version (see new thread https://stackoverflow.com/questions/75269700/pre-commit-fails-to-install-isort-5-11-4-with-error-runtimeerror-the-poetry-co). Upgrading the isort pre-commit config fixed this issue.
Fixes #
Debugged change in ocf_datapipes/utils/consts.py
First error starting happening here- https://github.com/openclimatefix/ocf_datapipes/actions/runs/4173316355/jobs/7225498026
Pull Request
Description
After recent PR, file
ocf_datapipes/utils/consts.py
wasn't working due to small bug where dataarray creation took the superset of all variables instead of only those passed through as keys in the dictionary. Fixed this and tested working.Also, bumping the pre-commit isort version to 5.12.0, as there are errors on the current version (see new thread https://stackoverflow.com/questions/75269700/pre-commit-fails-to-install-isort-5-11-4-with-error-runtimeerror-the-poetry-co). Upgrading the isort pre-commit config fixed this issue.
Fixes #
How Has This Been Tested?
Debugged change in
ocf_datapipes/utils/consts.py
Checklist: