From f52d33a2276ee2923f1a91543d986a2fcb7ae193 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 1 Nov 2024 09:23:51 +0000 Subject: [PATCH] Dimension: Capture `dim.sizes` aliases in `dim.expression_sizes` --- loki/dimension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loki/dimension.py b/loki/dimension.py index 3122128d2..0247a7da9 100644 --- a/loki/dimension.py +++ b/loki/dimension.py @@ -184,7 +184,7 @@ def size_expressions(self): This includes generic aliases, like ``end - start + 1`` or ``1:size`` ranges. """ - exprs = as_tuple(self.size) + exprs = self.sizes exprs += (f'1:{self.size}', ) if self.bounds: exprs += (f'{self.bounds[1]} - {self.bounds[0]} + 1', )