Skip to content

Commit

Permalink
added smoke tests for the indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
huard committed Sep 8, 2023
1 parent fcfe1a8 commit 5f834a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tests/test_atmos.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,14 @@ def test_wind_chill_index(atmosds):
)


def test_wind_profile(atmosds):
atmos.wind_profile(wind_speed=atmosds.sfcWind, h_r="10 m", h="100 m", alpha=1 / 7)


def test_wind_power_potential(atmosds):
atmos.wind_power_potential(wind_speed=atmosds.sfcWind)


class TestDrynessIndex:
def test_simple(self, atmosds):
ds = atmosds.isel(location=3)
Expand Down
2 changes: 1 addition & 1 deletion xclim/indicators/atmos/_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def cfcheck(self, **das):
wind_power_potential = Converter(
title="Wind power potential",
identifier="wind_power_potential",
units="W m-2",
units="",
long_name="Wind power potential",
description="Wind power potential using a semi-idealized turbine power curve using a cut_in speed of {cut_in}, "
"a rated speed of {rated}, and a cut_out speed of {cut_out}.",
Expand Down

0 comments on commit 5f834a2

Please sign in to comment.