Subseasonal recipe spliting by variable not working
Hi @vagudets,
I am working with @ptrascas to use the recent sub-seasonal developments and I detected an unexpected behaviour when using the launcher.
The sub-seasonal recipe is split if sdate is set as a year 'YYYY'. This is fine. However, it currently accepts the variables in the format of an atomic recipe. If I change it to the general recipe format (i.e. in a single the launch fails). The split by variable will be very beneficial for a future operational workflow.
On the other hand, when sdate is a date 'YYYYMMDD' that only one job will be run, the launch also fails.
To do these tests, we used the examples from the repo (recipes/examples/recipe_subseasonal.yml and example_scripts/subseasonal_load.R).
The errors were related to divide_recipe:
INFO [2024-07-31 16:03:35] ##### RECIPE CHECK SUCCESSFULL #####
INFO [2024-07-31 16:03:35] Splitting recipe in single verifications.
Error in prettyNum(.Internal(format(x, trim, digits, nsmall, width, 3L, :
invalid 'trim' argument
Calls: divide_recipe -> format -> format.default -> prettyNum
We can keep working for now with the current version.
Cheers,
Núria