changeset 5:996b8019f5d5 draft default tip

"planemo upload for repository https://forgemia.inra.fr/redelac/redelac-toolbox/-/tree/79e760a19b89e9a2045855e21a9ed1eba52061da/tools/REDELACplanExpander commit 79e760a19b89e9a2045855e21a9ed1eba52061da-dirty"
author siwaa
date Tue, 17 Feb 2026 16:03:29 +0000
parents a7463ad6a389
children
files redelacPlanExpander.py redelacPlanExpander.xml
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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
 
--- 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 @@
-<tool id="redelacPlanExpander" name="redelacPlanExpander" version="1.0.3">
+<tool id="redelacPlanExpander" name="redelacPlanExpander" version="1.0.4">
   <description>to expand REDELAC situations according to a plan</description>
   <requirements>
     <container type="singularity">docker://registry.forge.inrae.fr/redelac/redelac-toolbox:latest</container>