Changeset 933 for trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
- Timestamp:
- Apr 19, 2013, 4:19:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UTIL/PYTHON/planetoplot_v2/ppclass.py
r932 r933 1365 1365 # waiting for more fundamental modifications. case when self.index_y is a bool array. 1366 1366 # ... be careful if no point... 1367 if type(self.index_x[0]) == np.bool_: nx = np.sum(self.index_x) ## gives the size of the True part! 1368 if type(self.index_y[0]) == np.bool_: ny = np.sum(self.index_y) ## gives the size of the True part! 1367 try: 1368 if type(self.index_x[0]) == np.bool_: nx = np.sum(self.index_x) ## gives the size of the True part! 1369 if type(self.index_y[0]) == np.bool_: ny = np.sum(self.index_y) ## gives the size of the True part! 1370 except: 1371 pass 1369 1372 # NB: ... always 4D array but possibly with "size 1" dimensions 1370 1373 # ... if one dimension is missing because 1D 2D or 3D requests, make it appear again
Note: See TracChangeset
for help on using the changeset viewer.