Changeset 2487 in lmdz_wrf for trunk


Ignore:
Timestamp:
Apr 30, 2019, 1:43:11 PM (6 years ago)
Author:
lfita
Message:

Getting the right if for checking with 'calendar' and 'calendar_type'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r2483 r2487  
    25842584                self.unitsval = units
    25852585
    2586                 if not gen.searchInlist(attvar, 'calendar') or                       \
     2586                if not gen.searchInlist(attvar, 'calendar') and                      \
    25872587                  not gen.searchInlist(attvar, 'calendar_type'):
    25882588                    print warnmsg
     
    3172631726          'since [YYYY]-[MM]-[DD] [HH]:[MM]:[SS]'
    3172731727        quit(-1)
    31728     if not gen.searchInlist(timeattrs,'calendar') or                                 \
     31728    if not gen.searchInlist(timeattrs,'calendar') and                                \
    3172931729      not gen.searchInlist(timeattrs,'calendar_type'):
    3173031730        print warnmsg
Note: See TracChangeset for help on using the changeset viewer.