define active assets consitently

This commit is contained in:
lisazeyen 2024-04-11 13:54:33 +02:00 committed by lisazeyen
parent dd874e0ed8
commit ec96a73baf

View File

@ -40,8 +40,8 @@ def add_brownfield(n, n_p, year):
# CO2 or global EU values since these are already in n
n_p.mremove(c.name, c.df.index[c.df.lifetime == np.inf])
# remove assets whose build_year + lifetime < year
n_p.mremove(c.name, c.df.index[c.df.build_year + c.df.lifetime < year])
# remove assets whose build_year + lifetime <= year
n_p.mremove(c.name, c.df.index[c.df.build_year + c.df.lifetime <= year])
# remove assets if their optimized nominal capacity is lower than a threshold
# since CHP heat Link is proportional to CHP electric Link, make sure threshold is compatible