4 Class definitions for accessing DISPATCH meta and binary data. 7 help(dispatch) # overview 8 s=dispatch.snapshot(3) # read data/00003/ 9 s=dispatch.snapshot(3,verbose=1) # print id and position 10 s=dispatch.snapshot(3,verbose=2) # print id and all attribues 11 s=dispatch.snapshot(3,'run') # read data/run/00003/ 12 s=dispatch.snapshot(3,'run','tmp') # read tmp/run/00003/ 13 s.<TAB> # tab-expand snapshot properties 14 s.time # e.g., snapshot time 15 ss=dispatch.snapshots() # read all data/?????/ 16 ss=dispatch.snapshots('run') # read all data/run/?????/ 17 ss=dispatch.snapshots('run','tmp') # read all tmp/run/?????/ 18 p=s.patches[10] # patch with ID=11 19 p.<TAB> # tab-expand patch properties 20 dispatch.attributes(p) # prettyprint patch attributes 21 i=p.idx # variable index object 22 d=p.data[0] # density, by integer index 23 d=p.data[i.d] # density, by variable index 24 d=p.data[i.dict['d']] # density, by variable name 28 from ._dispatch
import *
29 from .demo
import demo