You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are right, linopy is still too alpha for directly comparing it with the other implementations, but anyway, just had a short look and what is going wrong is PyPSA/linopy#57 .
ie. variable / scalar is not dispatching to the correct method and changing variable labels instead of coefficients in a linear expression.
will work correctly; ie you either do variable * scalar or scalar * variable.
To understand why the shift is necessary, that is a pandas/xarray feature that they align data on their index (the first column, like the labels) automatically.
You are right, linopy is still too alpha for directly comparing it with the other implementations, but anyway, just had a short look and what is going wrong is PyPSA/linopy#57 .
ie.
variable / scalar
is not dispatching to the correct method and changing variable labels instead of coefficients in a linear expression.will work correctly; ie you either do
variable * scalar
orscalar * variable
.To understand why the shift is necessary, that is a pandas/xarray feature that they align data on their index (the first column, like the labels) automatically.
Just consider the very simple example below:
The text was updated successfully, but these errors were encountered: