Changeset 24256 for issm/trunk-jpl/src/m/solve/WriteData.py
- Timestamp:
- 10/18/19 06:52:19 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/solve/WriteData.py
r24255 r24256 32 32 datatype = options.getfieldvalue('format') 33 33 mattype = options.getfieldvalue('mattype', 0) #only required for matrices 34 timeserieslength = options.getfieldvalue('timeserieslength', - 34 timeserieslength = options.getfieldvalue('timeserieslength', -1) 35 35 36 36 #Process sparse matrices … … 112 112 data = np.array([data]) 113 113 elif isinstance(data, (list, tuple)): 114 data = np.array(data).reshape(- 114 data = np.array(data).reshape(-1, ) 115 115 if np.ndim(data) == 1: 116 116 if np.size(data): … … 152 152 data = np.array([data]) 153 153 elif isinstance(data, (list, tuple)): 154 data = np.array(data).reshape(- 154 data = np.array(data).reshape(-1, ) 155 155 if np.ndim(data) == 1: 156 156 if np.size(data): … … 194 194 data = np.array([data]) 195 195 elif isinstance(data, (list, tuple)): 196 data = np.array(data).reshape(- 196 data = np.array(data).reshape(-1, ) 197 197 if np.ndim(data) == 1: 198 198 if np.size(data): … … 264 264 matrix = np.array([matrix]) 265 265 elif isinstance(matrix, (list, tuple)): 266 matrix = np.array(matrix).reshape(- 266 matrix = np.array(matrix).reshape(-1, ) 267 267 if np.ndim(matrix) == 1: 268 268 if np.size(matrix): … … 287 287 matrix = np.array([matrix]) 288 288 elif isinstance(matrix, (list, tuple)): 289 matrix = np.array(matrix).reshape(- 289 matrix = np.array(matrix).reshape(-1, ) 290 290 if np.ndim(matrix) == 1: 291 291 matrix = matrix.reshape(np.size(matrix), )
Note:
See TracChangeset
for help on using the changeset viewer.