Changeset 1023 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Aug 16, 2016, 8:46:07 AM (8 years ago)
Author:
lfita
Message:

Adding check of non-emptiness of the dictionary in 'dictKeysVals_stringList'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1020 r1023  
    82278227
    82288228    ik = 0
     8229
     8230    if len(dictv.keys()) < 1:
     8231        print errormsg
     8232        print '  ' + fname + ': empty dictionary !!'
     8233        quit(-1)
     8234
     8235    string = ''
    82298236    for key in dictv.keys():
    82308237        if ik == 0:
Note: See TracChangeset for help on using the changeset viewer.