From 85cc824ff03eb042cb4a91c81913b7c1d9d8d186 Mon Sep 17 00:00:00 2001 From: Lionel GUEZ <guez@lmd.ens.fr> Date: Tue, 7 May 2024 17:03:29 +0200 Subject: [PATCH] Get `ishape_last` for the last slice in init --- Common/util_eddies.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Common/util_eddies.py b/Common/util_eddies.py index 16374fb1..e98d5baf 100644 --- a/Common/util_eddies.py +++ b/Common/util_eddies.py @@ -101,6 +101,10 @@ class SHPC_class: for i in range(self.n_slices) ] + # We only need ishape_last for the last slice, for one + # orientation, in order to define n_dates: + self.get_ishape_last(self.n_slices - 1, self.def_orient) + self._n_shapes = [ {"Anticyclones": 0, "Cyclones": 0} for i in range(self.n_slices) ] -- GitLab