Ignore:
Timestamp:
12/08/22 00:23:36 (2 years ago)
Author:
jdquinn
Message:

CHG: MATLAB > Python translation; cleanup

File:
1 edited

Legend:

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

    r25455 r27458  
    1010
    1111
    12 class boundary(object): #{{{
     12class boundary(object):  # {{{
    1313    """BOUNDARY class definition
    1414
     
    1717    """
    1818
    19     def __init__(self, *args): #{{{
     19    def __init__(self, *args):  # {{{
    2020        self.boundaries = []
    2121        self.name       = ''
     
    5151
    5252            self.proj = proj
    53     #}}}
     53    # }}}
    5454
    55     def __repr__(self): #{{{
     55    def __repr__(self):  # {{{
    5656        s = '   boundary parameters:\n'
    5757        s += '{}\n'.format(fielddisplay(self, 'shppath', 'path to filename for this boundary'))
     
    6161
    6262        return s
    63     #}}}
     63    # }}}
    6464
    65     def setdefaultparameters(self): #{{{
     65    def setdefaultparameters(self):  # {{{
    6666        self.shppath = ''
    6767        self.shpfilename = ''
     
    7070
    7171        return self
    72     #}}}
     72    # }}}
    7373
    74     def name(self): #{{{
     74    def name(self):  # {{{
    7575        output = self.shpfilename
    7676
    7777        return output
    78     #}}}
     78    # }}}
    7979
    80     def edges(self): #{{{
     80    def edges(self):  # {{{
    8181        #read domain
    8282        path, name, ext = fileparts(self.shpfilename)
     
    9292
    9393        return output
    94     #}}}
     94    # }}}
    9595
    96     def plot(self, *args): #{{{
     96    def plot(self, *args):  # {{{
    9797        #recover options
    9898        options = pairoptions(*args)
     
    131131            # y = domain[i].y * unitmultiplier
    132132            # if len(x) == 1:
    133         #}}}
     133        # }}}
    134134
    135135        #TODO: Finish translating from MATLAB after test2004.py runs without plot
    136     #}}}
     136    # }}}
    137137
    138     def checkconsistency(self, *args): #{{{
     138    def checkconsistency(self, *args):  # {{{
    139139        #recover options
    140140        options = pairoptions(*args)
     
    157157                    raise Exception('boundary {} has two vertices extermely close to one another'.format(shpfilename))
    158158
    159     def plot3d(self, *args): #{{{
     159    def plot3d(self, *args):  # {{{
    160160        #recover options
    161161        options = pairoptions(*args)
     
    181181
    182182        #TODO: Finish translating from MATLAB after test2004.py runs without plot
    183     #}}}
    184 #}}}
     183    # }}}
     184# }}}
Note: See TracChangeset for help on using the changeset viewer.