- Timestamp:
- Jun 7, 2016, 11:59:25 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r801 r808 259 259 monodim.append(vardims[idd]) 260 260 else: 261 if int(dimcutv) > varobj.shape[idd]-1: 262 print errormsg 263 print ' ' + fname + ': given value:', int(dimcutv), \ 264 "is larger than length of dimension '" + dimcutn + \ 265 "':", varobj.shape[idd],'(C-like!) !!' 266 quit(-1) 261 267 varvalsdim.append(int(dimcutv)) 262 268 monodim.append(vardims[idd]) … … 267 273 varvalsdim.append(slice(0,varobj.shape[idd])) 268 274 dimnslice.append(vardims[idd]) 275 269 276 varvalues = varobj[tuple(varvalsdim)] 270 271 277 varvalues = np.squeeze(varobj[tuple(varvalsdim)]) 272 278
Note: See TracChangeset
for help on using the changeset viewer.