# HG changeset patch # User siwaa # Date 1771344209 0 # Node ID 996b8019f5d5b8c1121158d354b3b63e9cfc6cab # Parent a7463ad6a389217ff156c3ce1a2a1652b31c0dc0 "planemo upload for repository https://forgemia.inra.fr/redelac/redelac-toolbox/-/tree/79e760a19b89e9a2045855e21a9ed1eba52061da/tools/REDELACplanExpander commit 79e760a19b89e9a2045855e21a9ed1eba52061da-dirty" diff -r a7463ad6a389 -r 996b8019f5d5 redelacPlanExpander.py --- a/redelacPlanExpander.py Mon Feb 16 11:45:40 2026 +0000 +++ b/redelacPlanExpander.py Tue Feb 17 16:03:29 2026 +0000 @@ -196,7 +196,7 @@ tmpDf['maille_drias'].astype(str) + '_' + \ tmpDf['horizon '].astype(str) + '_sta.xml' - # Updating the fclim1 column + # Updating the fclim1 column # alias =CONCATENATE($E2;".";YEAR(R2)) tmpDf['fclim1'] = \ @@ -224,7 +224,7 @@ nbL = len(listOfSuccess) -# fixing first station before to save +# fixing stations before to save fi = 0 @@ -233,8 +233,9 @@ for succ in listOfSuccess: li = expandedDf[expandedDf['id_simu'] == succ].index.max() - - expandedDf.loc[fi:li - 1, 'fstation'] = expandedDf['fstation'][fi + 5] + + # 10 as ref should be reminded + expandedDf.loc[fi:li - 1, 'fstation'] = expandedDf['fstation'][fi + 10] fi = li + 1 diff -r a7463ad6a389 -r 996b8019f5d5 redelacPlanExpander.xml --- a/redelacPlanExpander.xml Mon Feb 16 11:45:40 2026 +0000 +++ b/redelacPlanExpander.xml Tue Feb 17 16:03:29 2026 +0000 @@ -1,4 +1,4 @@ - + to expand REDELAC situations according to a plan docker://registry.forge.inrae.fr/redelac/redelac-toolbox:latest