Changeset 27458 for issm/trunk-jpl/src/m/classes/boundary.py
- Timestamp:
- 12/08/22 00:23:36 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/boundary.py
r25455 r27458 10 10 11 11 12 class boundary(object): #{{{12 class boundary(object): # {{{ 13 13 """BOUNDARY class definition 14 14 … … 17 17 """ 18 18 19 def __init__(self, *args): #{{{19 def __init__(self, *args): # {{{ 20 20 self.boundaries = [] 21 21 self.name = '' … … 51 51 52 52 self.proj = proj 53 # }}}53 # }}} 54 54 55 def __repr__(self): #{{{55 def __repr__(self): # {{{ 56 56 s = ' boundary parameters:\n' 57 57 s += '{}\n'.format(fielddisplay(self, 'shppath', 'path to filename for this boundary')) … … 61 61 62 62 return s 63 # }}}63 # }}} 64 64 65 def setdefaultparameters(self): #{{{65 def setdefaultparameters(self): # {{{ 66 66 self.shppath = '' 67 67 self.shpfilename = '' … … 70 70 71 71 return self 72 # }}}72 # }}} 73 73 74 def name(self): #{{{74 def name(self): # {{{ 75 75 output = self.shpfilename 76 76 77 77 return output 78 # }}}78 # }}} 79 79 80 def edges(self): #{{{80 def edges(self): # {{{ 81 81 #read domain 82 82 path, name, ext = fileparts(self.shpfilename) … … 92 92 93 93 return output 94 # }}}94 # }}} 95 95 96 def plot(self, *args): #{{{96 def plot(self, *args): # {{{ 97 97 #recover options 98 98 options = pairoptions(*args) … … 131 131 # y = domain[i].y * unitmultiplier 132 132 # if len(x) == 1: 133 # }}}133 # }}} 134 134 135 135 #TODO: Finish translating from MATLAB after test2004.py runs without plot 136 # }}}136 # }}} 137 137 138 def checkconsistency(self, *args): #{{{138 def checkconsistency(self, *args): # {{{ 139 139 #recover options 140 140 options = pairoptions(*args) … … 157 157 raise Exception('boundary {} has two vertices extermely close to one another'.format(shpfilename)) 158 158 159 def plot3d(self, *args): #{{{159 def plot3d(self, *args): # {{{ 160 160 #recover options 161 161 options = pairoptions(*args) … … 181 181 182 182 #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.