Changeset 274f9ef in flex_extract.git for source/python/submit.py


Ignore:
Timestamp:
Oct 22, 2018, 11:44:47 AM (6 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
db27c09
Parents:
708c667
Message:

Converted docstrings to numpy style and build first structure for sphinxdocumentation (incl API)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/submit.py

    r27fe969 r274f9ef  
    6262
    6363def main():
    64     '''
    65     @Description:
    66         Get the arguments from script call and from CONTROL file.
    67         Decides from the argument "queue" if the local version
    68         is done "queue=None" or the gateway version with "queue=ecgate"
    69         or "queue=cca".
     64    '''Get the arguments from script call and from CONTROL file.
     65    Decides from the argument "queue" if the local version
     66    is done "queue=None" or the gateway version with "queue=ecgate"
     67    or "queue=cca".
    7068
    71     @Input:
    72         <nothing>
     69    Parameters
     70    ----------
    7371
    74     @Return:
    75         <nothing>
     72    Return
     73    ------
     74
    7675    '''
    7776
     
    105104
    106105def submit(jtemplate, c, queue):
    107     '''
    108     @Description:
    109         Prepares the job script and submit it to the specified queue.
     106    '''Prepares the job script and submit it to the specified queue.
    110107
    111     @Input:
    112         jtemplate: string
    113             Job template file from sub-directory "_templates" for
    114             submission to ECMWF. It contains all necessary
    115             module and variable settings for the ECMWF environment as well as
    116             the job call and mail report instructions.
    117             Default is "job.temp".
     108    Parameters
     109    ----------
     110    jtemplate : :obj:`string`
     111        Job template file from sub-directory "_templates" for
     112        submission to ECMWF. It contains all necessary
     113        module and variable settings for the ECMWF environment as well as
     114        the job call and mail report instructions.
     115        Default is "job.temp".
    118116
    119         c: instance of class ControlFile
    120             Contains all the parameters of CONTROL file and
    121             command line.
    122             For more information about format and content of the parameter
    123             see documentation.
     117    c : :obj:`ControlFile`
     118        Contains all the parameters of CONTROL file and
     119        command line.
    124120
    125         queue: string
    126             Name of queue for submission to ECMWF (e.g. ecgate or cca )
     121    queue : :obj:`string`
     122        Name of queue for submission to ECMWF (e.g. ecgate or cca )
    127123
    128     @Return:
    129         <nothing>
     124    Return
     125    ------
     126
    130127    '''
    131128
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG