Changeset 18869


Ignore:
Timestamp:
11/26/14 17:52:21 (11 years ago)
Author:
bdef
Message:

CHG: adding classtype attribute

File:
1 edited

Legend:

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

    r18867 r18869  
    172172                                        subfields=dict.keys(md.results.__dict__[supfield].__getitem__(0).__dict__)
    173173                                        for field in subfields:
     174                                                NCgroup.__setattr__('classtype', md.results.__dict__[supfield].__class__.__name__)
    174175                                                if str(field)!='errlog' and str(field)!='outlog' and str(field)!='SolutionType':
    175176                                                        Var=md.results.__dict__[supfield].__getitem__(0).__dict__[field]
     
    179180                                        subfields=dict.keys(md.results.__dict__[supfield].__dict__)
    180181                                        for field in subfields:
     182                                                NCgroup.__setattr__('classtype', md.results.__dict__[supfield].__class__.__name__)
    181183                                                if str(field)!='errlog' and str(field)!='outlog' and str(field)!='SolutionType':
    182184#                                                       print 'Treating '+str(group)+'.'+str(supfield)+'.'+str(field)
     
    189191                        for field in fields:
    190192#                               print 'Treating ' +str(group)+'.'+str(field)
     193                                NCgroup.__setattr__('classtype', md.__dict__[group].__class__.__name__)
    191194                                Var=md.__dict__[group].__dict__[field]
    192195                                CreateVar(Var,False)
Note: See TracChangeset for help on using the changeset viewer.