Skip to content

Commit

Permalink
Dimension: Capture dim.sizes aliases in dim.expression_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Nov 1, 2024
1 parent e3b295c commit f52d33a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loki/dimension.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', )
Expand Down

0 comments on commit f52d33a

Please sign in to comment.