<filename>demo/scripts/shot.py
#!/usr/bin/env python

"""
Recreate tcl script in python

'scripts/shot.tcl'
==============
set verify
set tree demo
set current demo 0
set current demo /increment
create pulse 0
set tree demo /shot=0
dispatch /build /monitor=MONITOR
dispatch /phase init /monitor=MONITOR
"""

import MDSplus as mds

# set verify

<filename>demo/scripts/shot.py
#!/usr/bin/env python

"""
Recreate tcl script in python

'scripts/shot.tcl'
==============
set verify
set tree demo
set current demo 0
set current demo /increment
create pulse 0
set tree demo /shot=0
dispatch /build /monitor=MONITOR
dispatch /phase init /monitor=MONITOR
"""

import MDSplus as mds

# set verify

#!/usr/bin/env python Recreate tcl script in python  'scripts/shot.tcl' ============== set verify set tree demo set current demo 0 set current demo /increment create pulse 0 set tree demo /shot=0 dispatch /build /monitor=MONITOR dispatch /phase init /monitor=MONITOR # set verify