Skip to content

Commit

Permalink
undo invalid black formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-kumar committed Oct 24, 2024
1 parent c66edfc commit d2fd60e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions geoips/plugins/modules/readers/ascat_uhr_netcdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ def read_byu_data(wind_xarray, fname):
dsname = "DATA"
if "wspeeds" in wind_xarray.variables:
wind_xarray["wind_speed_kts"] = xarray.where(
wind_xarray.ambiguity_select == 1,
wind_xarray.wspeeds[:, :, 0],
numpy.nan,
wind_xarray.ambiguity_select == 1, wind_xarray.wspeeds[:, :, 0], numpy.nan
)
wind_xarray["wind_speed_kts"] = xarray.where(
wind_xarray.ambiguity_select == 2,
Expand All @@ -133,9 +131,7 @@ def read_byu_data(wind_xarray, fname):
wind_xarray["wind_speed_kts"] = wind_xarray["wind_speed_kts"] * MS_TO_KTS

wind_xarray["wind_dir_deg_met"] = xarray.where(
wind_xarray.ambiguity_select == 1,
wind_xarray.wdirs[:, :, 0],
numpy.nan,
wind_xarray.ambiguity_select == 1, wind_xarray.wdirs[:, :, 0], numpy.nan
)
wind_xarray["wind_dir_deg_met"] = xarray.where(
wind_xarray.ambiguity_select == 2,
Expand Down

0 comments on commit d2fd60e

Please sign in to comment.