-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPLIT_LAST parameter commented out in the code #2099
Comments
Uh, not sure why it is commented. You can do this meanwhile: [ %SPLIT% -eq %SPLITSIZE% ] (%SPLIT% starts in 1 ) |
Hi @dbeltrankyl , thanks! But this gives the equivalent to SPLIT_FIRST, doesn't it? I think that I will compare SPLIT_END_DATE with CHUNK_END_DATE, and that should work. |
I think, it is the last, no? Having a job_date_member_chunk configured like this job_date_member_chunk_1
..
job_date_member_chunk_31
%JOBS.JOB.SPLITS%: 31 ( or auto) template:
|
In my case I have this values for the latest split:
That comes from:
So I think that since I'm using What I want to know is if the current split is the latest in that chunk or not. |
Maybe comparing with SPLIT with CHUNKSIZE is what makes sense? |
I've tested it and %SPLITS% -eq %SPLIT% should be enough
chunk 1 cat a000_20221101_fc1_1_61_A.cmd
cat a000_20221101_fc1_1_1_A.cmd
chunk 2: cat a000_20221101_fc1_2_59_A.cmd* of the current chunk
cat a000_20221101_fc1_2_1_A.cmd
While for the first is False ( and the rest )
It shouldn't vary until you go to the next chunk, I think %SPLITS% is more reliable after the testing. |
Nice, thanks Dani!! So SPLITS is the total number of splits in a chunk, right? Linking #1463 , because it is documented, but I did not understand the variable meaning.
But for example if the splitsize is 2 and the policy is flexible, for January I get 15 splits of 2 days and 1 split of 1 day, right? Sorry for all these questions!! Trying to find the best way to handle https://earth.bsc.es/gitlab/digital-twins/de_340-2/workflow/-/issues/827 :) |
Yes,
if I recall well, what happens is that you will get 15 splits but the last split will contain 3 days |
Hi @kinow @dbeltrankyl ,
I was checking the available variables with calendar information about the splits. I wanted a variable that tells me if that SPLIT is the last split of the chunk or not. For that, what I tried was SPLIT_LAST (even though I thought that maybe it meant the last split of the whole simulation, meaning the last SPLIT of the last CHUNK), but I saw that the block of code defining that variable is commented out: https://github.com/search?q=repo%3ABSC-ES%2Fautosubmit+SPLIT_LAST&type=code
I think that is a nice parameter that could be (re)included.
Thanks!
The text was updated successfully, but these errors were encountered: