Changeset 1904 in lmdz_wrf for trunk


Ignore:
Timestamp:
Apr 13, 2018, 3:14:42 PM (7 years ago)
Author:
lfita
Message:

Fixing issue on `Nstr'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1903 r1904  
    1305713057    fname = 'Nstr'
    1305813058
    13059     if type(number) == type(1) or type(number) == type(long)):
     13059    if type(number) == type(1) or type(number) == type(long(1)):
    1306013060        newStr = '{:d}'.format(number)
    1306113061    elif type(number) == type(np.int16(1)) type(number) == type(np.int32(1)) or      \
     
    1307113071    return newStr
    1307213072
    13073 print Nstr(np.float(1./3.))
    13074 
    13075 print Nstr(np.float32(1./3.))
    13076 
    13077 print Nstr(np.float64(1./3.))
    13078 
    1307913073#quit()
    1308013074
Note: See TracChangeset for help on using the changeset viewer.