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 attribute name to fix the non-acceptance of cli kwargs for earthengine #491

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

kbp45-cusp
Copy link
Contributor

@kbp45-cusp kbp45-cusp commented Jan 7, 2025

The current version of weather mover is unable pass the CLI xarray_open_dataset_kwargs argument to ConvertToAsset correctly.

As the ConvertToAsset is a dataclass, only the attributes defined in the class will be picked up from the kwargs provided via CLI while initialization (https://github.com/google/weather-tools/blob/main/weather_mv/loader_pipeline/sinks.py#L55). As the current attribute name is open_dataset_kwargs which doesn't match the argument provided from the CLI (xarray_open_dataset_kwargs), the xarray open dataset arguments are not being passed correctly. This PR fixes this issue.

Reference for removal of Mambaforge: conda-forge/miniforge#704

@mahrsee1997 mahrsee1997 self-requested a review January 7, 2025 07:22
@Piyush-Ingale
Copy link
Contributor

LGTM.

Copy link
Collaborator

@mahrsee1997 mahrsee1997 left a comment

Choose a reason for hiding this comment

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

LGTM ! Thanks @kbp45-cusp for this change :)

Please bump the weather-mv version in setup.py.

@kbp45-cusp
Copy link
Contributor Author

LGTM ! Thanks @kbp45-cusp for this change :)

Please bump the weather-mv version in setup.py.

This is done.

@mahrsee1997 mahrsee1997 merged commit d8421e0 into google:main Jan 7, 2025
5 checks passed
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.

3 participants