Closed FabianHofmann closed 1 month ago
Attention: Patch coverage is 94.11765%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 88.97%. Comparing base (
f5f6144
) to head (78511c5
).
Files | Patch % | Lines |
---|---|---|
linopy/variables.py | 92.00% | 1 Missing and 1 partial :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
From release notes:
The classes
Variable
,LinearExpression
andConstraint
now have a newgetitem
method that allows selecting a subset of the object in the same way asxarray
objects, i.e. by integer labels or boolean index. Example usage:x[[1, 2]]
orx[x.indexes["some_index"] > 5]
.The class
Constraint
now has a new method.loc
to select a subset of the constraint by labels.Selecting a single variable with the
getitem
([]
) method now raises aFutureWarning
that the return type will change toVariable
instead of aScalarVariable
in the future. To get aScalarVariable
in the future, use theat[]
method.