Changeset b6ea29e in flex_extract.git for Source/Python/Mods/tools.py


Ignore:
Timestamp:
Jul 28, 2022, 10:34:17 AM (22 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
373b74e
Parents:
5606fc9
Message:

Adaptations for Bologna servers in Python part

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/Mods/tools.py

    r75db9b0 rb6ea29e  
    651651    return
    652652
    653 def put_file_to_ecserver(ecd, filename, target, ecuid, ecgid):
     653def put_file_to_ecserver(ecd, filename):
    654654    '''Uses the ecaccess-file-put command to send a file to the ECMWF servers.
    655655
     
    668668        The name of the file to send to the ECMWF server.
    669669
    670     target : str
    671         The target queue where the file should be sent to.
    672 
    673     ecuid : str
    674         The user id on ECMWF server.
    675 
    676     ecgid : str
    677         The group id on ECMWF server.
    678 
    679670    Return
    680671    ------
     
    684675    try:
    685676        subprocess.check_output(['ecaccess-file-put',
    686                                  ecd + '/' + filename,
    687                                  target + ':/home/ms/' +
    688                                  ecgid + '/' + ecuid +
    689                                  '/' + filename],
     677                                 ecd + '/' + filename],
    690678                                stderr=subprocess.STDOUT)
    691679    except subprocess.CalledProcessError as e:
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG