ENH: xarray-like .loc / .sel for named model vars #6701
gt-lc-0000
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
The idea for this new feature is to make it easier to slice named model variables.
A model variable is a symbolic
TensorVariable
, which makes it hard to interact with.However, with
.coords
and.RV_dims
, we have the necessary information to perform labeled slicing.Hopefully the use case isn't too nice. For my case, it's useful for nested hierarchical models.
Models with multi-dimensional variables would also be easier to work with, if slicing / re-indexing is needed.
Before
After
Beta Was this translation helpful? Give feedback.
All reactions