Changeset 21268


Ignore:
Timestamp:
10/13/16 01:51:10 (8 years ago)
Author:
bdef
Message:

BUG: a few more fixes

Location:
issm/trunk-jpl/src/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/contrib/defleurian/netCDF/export_netCDF.py

    r21267 r21268  
    4040
    4141        #get all model classes and create respective groups
    42         typelist=[bool,str,unicode,int,float,complex,dict,
     42        typelist=[bool,str,unicode,int,float,complex,
    4343                                                collections.OrderedDict,
    4444                                                numpy.int64,numpy.ndarray,numpy.float64]
  • issm/trunk-jpl/src/m/io/loadvars.py

    r21267 r21268  
    9494                                        except ValueError:
    9595                                                steplist=[int(findall(r'\d+',key)[0]) for key in keylist]
    96                                         indexlist=[index*(len(curclass.groups)-1)/max(steplist) for index in steplist]
     96                                        indexlist=[index*(len(curclass.groups)-1)/max(1,max(steplist)) for index in steplist]
    9797                                        listtype=curclass.groups[keylist[0]].classtype
    9898                                        if listtype=='dict':
Note: See TracChangeset for help on using the changeset viewer.