Changeset 1d15e27 in flex_extract.git for source


Ignore:
Timestamp:
Nov 30, 2018, 6:24:41 PM (5 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
97f4f4c
Parents:
de4dc27
Message:

bug fix for missing variable in subfunction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/python/mods/get_mars_data.py

    r45c6337 r1d15e27  
    149149    # if data are to be retrieved, clean up any old grib files
    150150    if c.request == 0 or c.request == 2:
    151         remove_old('*grb')
     151        remove_old('*grb', c.inputdir)
    152152
    153153    # --------------  flux data ------------------------------------------------
     
    265265    return start, end, chunk
    266266
    267 def remove_old(pattern):
     267def remove_old(pattern, inputdir):
    268268    '''Deletes old retrieval files matching the pattern.
    269269
     
    273273        The sub string pattern which identifies the files to be deleted.
    274274
    275     Return
    276     ------
    277 
    278     '''
    279     print('... removing old content of ' + c.inputdir)
    280 
    281     tobecleaned = UioFiles(c.inputdir, pattern)
     275    inputdir : :obj:`string`, optional
     276        Path to the directory where the retrieved data is stored.
     277
     278    Return
     279    ------
     280
     281    '''
     282    print('... removing old content of ' + inputdir)
     283
     284    tobecleaned = UioFiles(inputdir, pattern)
    282285    tobecleaned.delete_files()
    283286
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG