Changeset 18927


Ignore:
Timestamp:
12/04/14 09:25:44 (10 years ago)
Author:
bdef
Message:

NEW: duplicate of model in a more Pythonistic way, correction in export for the classtype of results

Location:
issm/trunk-jpl/src/m/contrib/netCDF
Files:
1 added
1 edited

Legend:

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

    r18869 r18927  
    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__)
     174                                                NCgroup.__setattr__('classtype', "results")
    175175                                                if str(field)!='errlog' and str(field)!='outlog' and str(field)!='SolutionType':
    176176                                                        Var=md.results.__dict__[supfield].__getitem__(0).__dict__[field]
     
    180180                                        subfields=dict.keys(md.results.__dict__[supfield].__dict__)
    181181                                        for field in subfields:
    182                                                 NCgroup.__setattr__('classtype', md.results.__dict__[supfield].__class__.__name__)
     182                                                NCgroup.__setattr__('classtype', "results")
    183183                                                if str(field)!='errlog' and str(field)!='outlog' and str(field)!='SolutionType':
    184184#                                                       print 'Treating '+str(group)+'.'+str(supfield)+'.'+str(field)
Note: See TracChangeset for help on using the changeset viewer.