Changeset 13411


Ignore:
Timestamp:
09/20/12 16:41:13 (13 years ago)
Author:
cborstad
Message:

NEW: skeleton of plotmodel routine in python, plotmodel(md,'data','mesh') now works

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

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/pairoptions.py

    r13116 r13411  
    4141                        else:
    4242                                #option is not a string, ignore it
    43                                 print "WARNING: option number %d '%s' is not a string and will be ignored." % (i+1,type(arg[2*i]))
     43                                print "WARNING: option number %d is not a string and will be ignored." % (i+1)
    4444        # }}}
    4545
     
    128128        # }}}
    129129
    130 #       function num = fieldoccurences(obj,field), % {{{
    131 #       %FIELDOCCURENCES - get number of occurence of a field
    132 #
    133 #               %check input
    134 #               if ~ischar(field),
    135 #                       error('fieldoccurences error message: field should be a string');
    136 #               end
    137 #
    138 #               %get number of occurence
    139 #               num=sum(strcmpi(field,obj.list(:,1)));
    140 #       end % }}}
     130        #def fieldoccurences(self,field): #{{{
     131        #       '''
     132        #       FIELDOCCURENCES - get number of occurence of a field
     133        #       '''
     134        #
     135        #       #check input
     136        #       if not isinstance(field,(str,unicode)):
     137        #               raise TypeError("fieldoccurences error message: field should be a string")
     138
     139        #       #get number of occurence
     140        #       # ??
     141        #       #return num
     142        #       #% }}}
    141143
    142144        def getfieldvalue(self,field,default=None):    # {{{
Note: See TracChangeset for help on using the changeset viewer.