Skip to content

Commit

Permalink
Merge branch 'release/0.18.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Oct 25, 2023
2 parents 59c3e7a + cfbd2df commit 2a8fc10
Show file tree
Hide file tree
Showing 11 changed files with 603 additions and 216 deletions.
2 changes: 1 addition & 1 deletion climetlab/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def __len__(self):
return len(self.indices)

def __repr__(self):
return "MaskIndex(%r,%s)" % (self.index, self.indices)
return "MaskIndex(%r,len=%s)" % (self.index, len(self.indices))


class MultiIndex(Index):
Expand Down
2 changes: 1 addition & 1 deletion climetlab/indexing/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(
self.source, str
), f"Not expecting a str here ({self.source})"
for i, f in enumerate(self.source):
details.append(f"{i}={f}")
details.append(f"{i}={f} {f.metadata('number')}")
if i > 30:
details.append("...")
break
Expand Down
Loading

0 comments on commit 2a8fc10

Please sign in to comment.