Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Should esmlab functions return xarray objects for scalars? #29

Closed
mnlevy1981 opened this issue Jan 15, 2019 · 1 comment
Closed

Should esmlab functions return xarray objects for scalars? #29

mnlevy1981 opened this issue Jan 15, 2019 · 1 comment

Comments

@mnlevy1981
Copy link
Contributor

  • esmlab version:`2019.1.0
  • xarray version: 0.11.2
  • Python version: 3.6.7
  • Operating System: macos 10.14.2

Description

As discussed in #28, confusion can arise when a scalar value is returned as an xarray object... for example, taking the weighted average of an array where the weights and array have the same dimensions. In those cases, it might be preferable to return just the values attribute of the xarray object.

What I Did

Had a conversation with @andersy005 that led to #28 and then thought more about what I expected to happen

@andersy005
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants