Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't show stdlib paths for user_level_warnings #8625

Merged
merged 2 commits into from
Jan 21, 2024

Commits on Jan 19, 2024

  1. Don't show stdlib paths for user_level_warnings

    Was previously seeing:
    
    ```
      <frozen _collections_abc>:801: FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`.
    ```
    
    Now:
    
    ```
      /Users/maximilian/workspace/xarray/xarray/tests/test_dataset.py:701: FutureWarning: The return type of `Dataset.dims` will be changed to return a set of dimension names in future, in order to be more consistent with `DataArray.dims`. To access a mapping from dimension names to lengths, please use `Dataset.sizes`.
        assert ds.dims == ds.sizes
    ```
    
    It's a heuristic, so not perfect, but I think very likely to be accurate. Any contrary cases very welcome...
    max-sixty committed Jan 19, 2024
    Configuration menu
    Copy the full SHA
    54dae1b View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2024

  1. Configuration menu
    Copy the full SHA
    d9674a2 View commit details
    Browse the repository at this point in the history