Skip to content

Commit

Permalink
IMGW Meteorology: Drop workaround for mixed up station list to fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gutzbenj committed Dec 28, 2023
1 parent e214248 commit 5def300
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Development
***********

- Docker: Enable interpolation in wetterdienst standard image
- IMGW Meteorology: Drop workaround for mixed up station list to fix issue

0.69.0 (18.12.2023)
*******************
Expand Down
18 changes: 0 additions & 18 deletions wetterdienst/provider/imgw/meteorology/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,24 +549,6 @@ def _all(self) -> pl.LazyFrame:
Columns.HEIGHT.value,
]
df = df.lazy()
df = df.with_columns(
pl.when(pl.col(Columns.HEIGHT.value).is_null())
.then(None)
.otherwise(pl.col(Columns.STATE.value))
.alias(Columns.STATE.value),
pl.when(pl.col(Columns.HEIGHT.value).is_null())
.then(pl.col(Columns.STATE.value))
.otherwise(pl.col(Columns.LATITUDE.value))
.alias(Columns.LATITUDE.value),
pl.when(pl.col(Columns.HEIGHT.value).is_null())
.then(pl.col(Columns.LATITUDE.value))
.otherwise(pl.col(Columns.LONGITUDE.value))
.alias(Columns.LONGITUDE.value),
pl.when(pl.col(Columns.HEIGHT.value).is_null())
.then(pl.col(Columns.LONGITUDE.value))
.otherwise(pl.col(Columns.HEIGHT.value))
.alias(Columns.HEIGHT.value),
)
return df.with_columns(
pl.col(Columns.LATITUDE.value).map_batches(convert_dms_string_to_dd),
pl.col(Columns.LONGITUDE.value).map_batches(convert_dms_string_to_dd),
Expand Down

0 comments on commit 5def300

Please sign in to comment.