Skip to content

Conversation

@felixcremer
Copy link
Member

This changes the wording in the docs for mapslices to explain, that the time dimension is still going to be around and how to get rid of it via dropdims.

This closes #545
@briochemc Do you think that explanation to be clear?

@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.80%. Comparing base (8bd94a0) to head (c056557).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #558   +/-   ##
=======================================
  Coverage   69.80%   69.80%           
=======================================
  Files          14       14           
  Lines        2113     2113           
=======================================
  Hits         1475     1475           
  Misses        638      638           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

````
There is no time dimension left, because there is only one value left after averaging all time steps.

The time dimension has only a single value indicating the time interval that was used for the average. To remove this singleton dimension you can use `dropdims`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is necessary anymore since now the behavior is the same as in Base. Maybe just a tip admonition, like below? (Not sure this is the right format for DocumenterVitepress 😅)

> [!TIP]
> To remove the time dimension, use the `dropdims = true` keyword.

@briochemc
Copy link
Contributor

Yes, I think it's good! But maybe you don't even need this much? (see comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: mean over dimension does not remove dimension

3 participants