Closed Irieo closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
930ceae
) 89.26% compared to head (148a545
) 89.28%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Are you fine, if I set the logging from info
to debug
?
Are you fine, if I set the logging from
info
todebug
?
sure!
Make possible to pass a list into remove_constraints() to remove multiple constraints at once. Keeps old functionality, i.e. it is still possible to pass constraint name as a string. Adds logging, so user can see what constraints are removed.
to remove all constraints:
n.model.remove_constraints(list(n.model.constraints))
to remove a single constraint:
n.model.remove_constraints(['Bus-nodal_balance'])
orn.model.remove_constraints('Bus-nodal_balance')
closes https://github.com/PyPSA/linopy/issues/210