more precise restrictive handling of opts cost adjustment flags

This commit is contained in:
Fabian Neumann 2024-01-04 18:58:04 +01:00
parent 9530d63e55
commit f9fec1a4be

View File

@ -3286,7 +3286,8 @@ def remove_h2_network(n):
def maybe_adjust_costs_and_potentials(n, opts): def maybe_adjust_costs_and_potentials(n, opts):
for o in opts: for o in opts:
if "+" not in o: flags = ["+e", "+p", "+m"]
if all(flag not in o for flag in flags):
continue continue
oo = o.split("+") oo = o.split("+")
carrier_list = np.hstack( carrier_list = np.hstack(