From 983946b0ce5638b417e694fed7355bf533e7f8dc Mon Sep 17 00:00:00 2001 From: omiralles Date: Thu, 21 Nov 2024 20:20:21 +0100 Subject: [PATCH] Import cfunits in Convert init --- src/anemoi/transform/filters/rescale.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/anemoi/transform/filters/rescale.py b/src/anemoi/transform/filters/rescale.py index 24eb5ba..9b32421 100644 --- a/src/anemoi/transform/filters/rescale.py +++ b/src/anemoi/transform/filters/rescale.py @@ -8,8 +8,6 @@ # nor does it submit to any jurisdiction. -from cfunits import Units - from . import filter_registry from .base import SimpleFilter @@ -67,6 +65,7 @@ def __init__( unit_out, param ): + from cfunits import Units u0 = Units(unit_in) u1 = Units(unit_out) x1, x2 = 0.0, 1.0