Skip to content

Commit bab63da

Browse files
author
cuadradot
committed
refactor: reorder imports in performance integration tests for consistency
1 parent 9f651e7 commit bab63da

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/earthkit/climate/indicators/land/snow.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def holiday_snow_and_snowfall_days(
8888
*,
8989
snd_thresh: Any = "20 mm",
9090
prsn_thresh: Any = "1 mm",
91-
snd_op: Literal['>', 'gt', '>=', 'ge'] = ">=",
92-
prsn_op: Literal['>', 'gt', '>=', 'ge'] = ">=",
91+
snd_op: Literal[">", "gt", ">=", "ge"] = ">=",
92+
prsn_op: Literal[">", "gt", ">=", "ge"] = ">=",
9393
date_start: str = "12-25",
9494
date_end: str | None = None,
9595
freq: str = "YS-JUL",
@@ -161,7 +161,7 @@ def holiday_snow_days(
161161
ds: xarray.Dataset | Any = None,
162162
*,
163163
snd_thresh: Any = "20 mm",
164-
op: Literal['>', 'gt', '>=', 'ge'] = ">=",
164+
op: Literal[">", "gt", ">=", "ge"] = ">=",
165165
date_start: str = "12-25",
166166
date_end: str | None = None,
167167
freq: str = "YS",
@@ -225,7 +225,7 @@ def snd_days_above(
225225
*,
226226
thresh: Any = "2 cm",
227227
freq: str = "YS-JUL",
228-
op: Literal['>', 'gt', '>=', 'ge'] = ">=",
228+
op: Literal[">", "gt", ">=", "ge"] = ">=",
229229
**kwargs: Any,
230230
) -> Any:
231231
"""
@@ -630,7 +630,7 @@ def snw_days_above(
630630
*,
631631
thresh: Any = "4 kg m-2",
632632
freq: str = "YS-JUL",
633-
op: Literal['>', 'gt', '>=', 'ge'] = ">=",
633+
op: Literal[">", "gt", ">=", "ge"] = ">=",
634634
**kwargs: Any,
635635
) -> Any:
636636
"""

tests/integration/test_performance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
from contextlib import nullcontext
2626
from typing import Any
2727

28+
import earthkit.climate.indicators.precipitation as ek_pr
29+
import earthkit.climate.indicators.temperature as ek_temp
2830
import earthkit.data
2931
import pytest
3032
import xarray as xr
3133

32-
import earthkit.climate.indicators.precipitation as ek_pr
33-
import earthkit.climate.indicators.temperature as ek_temp
3434
from earthkit.climate.utils.percentile import percentile_doy
3535

3636
warnings.filterwarnings("ignore")

0 commit comments

Comments
 (0)