source: issm/oecreview/Archive/24684-25833/ISSM-25455-25456.diff@ 27230

Last change on this file since 27230 was 25834, checked in by Mathieu Morlighem, 4 years ago

CHG: added 24684-25833

File size: 982 bytes
RevLine 
[25834]1Index: ../trunk-jpl/src/m/plot/processmesh.py
2===================================================================
3--- ../trunk-jpl/src/m/plot/processmesh.py (revision 25455)
4+++ ../trunk-jpl/src/m/plot/processmesh.py (revision 25456)
5@@ -12,7 +12,7 @@
6
7 TODO:
8 - Test application of matlplotlib.delaunay
9- - Test that output of delaunay matches output of delaunay in MATLAB (see
10+ - Test that output of delaunay matches output of delaunay in MATLAB (see
11 src/m/plot/processmesh.m)
12 """
13
14@@ -61,7 +61,7 @@
15 else:
16 z = np.zeros(np.shape(md.mesh.x))
17 z = options.getfieldvalue('z', z)
18- if isinstance(z, basestring):
19+ if isinstance(z, str):
20 z = getattr(md, z)
21
22 #is it a 2D plot?
23@@ -89,7 +89,7 @@
24 y = y * unit
25 z = z * unit
26
27- #is model a member of planet class?
28+ #is model a member of planet class?
29 #
30 # TODO: Change this when planet class defined (see src/m/plot/processmesh.m)
31 #
Note: See TracBrowser for help on using the repository browser.