Skip to content

Commit

Permalink
fix recentre
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed May 16, 2024
1 parent c276569 commit 5d2d164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/anemoi/datasets/create/functions/sources/recentre.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
from copy import deepcopy

from anemoi.datasets.compute.recentre import recentre as compute_perturbations
import anemoi.datasets.compute.recentre as _recentre

from .mars import mars

Expand Down Expand Up @@ -53,7 +53,7 @@ def load_if_needed(context, dates, dict_or_dataset):
def recentre(context, dates, members, centre, alpha=1.0, remapping={}, patches={}):
members = load_if_needed(context, dates, members)
centre = load_if_needed(context, dates, centre)
return compute_perturbations(members, centre, alpha=alpha)
return _recentre(members=members, centre=centre, alpha=alpha)


execute = recentre

0 comments on commit 5d2d164

Please sign in to comment.