Skip to content

Add attrs to total unc dataarray returned by total_unc() #36

Open

Description

@madsted

e.g. units.
To be consistent with attrs returned with unc components

Activity

  1. shunt16 commented on Oct 27, 2026

    @shunt16
    Collaborator

    With newer xarray (e.g. 2026.9) total_unc() now comes back with attrs copied from an uncertainty component - including its err_corr_* and pdf_shape attrs, which aren't right for the total uncertainty (with xarray 2024.7 it had no attrs). So this should set the attrs explicitly, e.g. just units, rather than relying on what xarray carries through.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions