Changeset fc05fbd in flex_extract.git


Ignore:
Timestamp:
Feb 25, 2019, 9:21:50 PM (5 months ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
dev
Children:
5551626
Parents:
6404de1
Message:

BugFix? for job_chunk param. start_date counts as one full day and therefore we have to subtract one day from the 'inbetween' end_date to have to correct number of days per job.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/submit.py

    rd4696e0 rfc05fbd  
    162162            end = datetime.strptime(c.end_date, '%Y%m%d')
    163163            chunk = timedelta(days=c.job_chunk)
     164            oneday = timedelta(days=1)
    164165
    165166            while start <= end:
    166167                if (start + chunk) <= end:
    167                     c.end_date = (start + chunk).strftime("%Y%m%d")
     168                    c.end_date = (start + chunk - oneday).strftime("%Y%m%d")
    168169                else:
    169170                    c.end_date = end.strftime("%Y%m%d")
    170171
    171172                clist = c.to_list()
    172 
    173173                mk_jobscript(jtemplate, job_file, clist)
    174174
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG