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

transpose method for variables #152

Open
robingirard opened this issue Aug 10, 2023 · 1 comment
Open

transpose method for variables #152

robingirard opened this issue Aug 10, 2023 · 1 comment

Comments

@robingirard
Copy link

Is it planned to have the transpose method (available for xarray) for variables ? Since it does not exist for now, how can I formulate an equation such as :
Var[a,b,t]+Var[b,a,t] == 0 for all a,b ,t
Thanks in advance

@FabianHofmann
Copy link
Collaborator

hey @robingirard, whereas linopy does not explicitly allow for tranposing the variables, you could do something like,

x + x.loc[x.coords["b"], x.coords["a"]] == 0

Hope that helps!

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

No branches or pull requests

2 participants