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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
channels: conda-forge
environment-file: ci${{ matrix.python-version}}.yml
activate-environment: weather-tools
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
use-mamba: true
- name: Check MetView's installation
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
channels: conda-forge
environment-file: ci${{ matrix.python-version}}.yml
activate-environment: weather-tools
miniforge-variant: Mambaforge
miniforge-variant: Miniforge3
miniforge-version: latest
use-mamba: true
- name: Install weather-tools[test]
Expand Down
6 changes: 3 additions & 3 deletions weather_mv/loader_pipeline/ee.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,13 @@ class ConvertToAsset(beam.DoFn, KwargsFactoryMixin):
Attributes:
ee_asset_type: The type of asset to ingest in the earth engine. Default: IMAGE.
asset_location: The bucket location at which asset files will be pushed.
open_dataset_kwargs: A dictionary of kwargs to pass to xr.open_dataset().
xarray_open_dataset_kwargs: A dictionary of kwargs to pass to xr.open_dataset().
disable_grib_schema_normalization: A flag to turn grib schema normalization off; Default: on.
"""

asset_location: str
ee_asset_type: str = 'IMAGE'
open_dataset_kwargs: t.Optional[t.Dict] = None
xarray_open_dataset_kwargs: t.Optional[t.Dict] = None
disable_grib_schema_normalization: bool = False
group_common_hypercubes: t.Optional[bool] = False
band_names_dict: t.Optional[t.Dict] = None
Expand All @@ -493,7 +493,7 @@ def convert_to_asset(self, queue: Queue, uri: str):
job_start_time = get_utc_timestamp()

with open_dataset(uri,
self.open_dataset_kwargs,
self.xarray_open_dataset_kwargs,
self.disable_grib_schema_normalization,
initialization_time_regex=self.initialization_time_regex,
forecast_time_regex=self.forecast_time_regex,
Expand Down
2 changes: 1 addition & 1 deletion weather_mv/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
packages=find_packages(),
author='Anthromets',
author_email='[email protected]',
version='0.2.32',
version='0.2.33',
url='https://weather-tools.readthedocs.io/en/latest/weather_mv/',
description='A tool to load weather data into BigQuery.',
install_requires=beam_gcp_requirements + base_requirements,
Expand Down
Loading