Fast curve review seems to be a GUI-specific feature.
[hooke.git] / test / tutorial.py
index 58d2b10e7c8f825282706f493545899a4a4f4a3f..34bf1524a49850e2e1ad814df0d444c0b4efc2cd 100644 (file)
@@ -38,6 +38,7 @@ Command: load_playlist
 Arguments:
 <BLANKLINE>
 help BOOL (bool) Print a help message.
+stack BOOL (bool) Add this command to appropriate command stacks.
 output_playlist STRING (string) Name of the new playlist (defaults to
     an auto-generated name).
 input FILE (file) File name for the input playlist.
@@ -69,6 +70,7 @@ hooke
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['new_playlist --output_playlist mylist'])
+<FilePlaylist mylist>
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['jump_to_playlist -- -1'])
@@ -96,8 +98,8 @@ Success
 <BLANKLINE>
 >>> os.path.isfile('mylist.hkp')
 True
->>> h = r.run_lines(h, ['load_playlist --output_playlist other_list mylist'])
-<FilePlaylist other_list>
+>>> h = r.run_lines(h, ['load_playlist mylist.hkp'])
+<FilePlaylist mylist.hkp>
 Success
 <BLANKLINE>
 >>> if playlist_already_exists == False:
@@ -169,7 +171,7 @@ Success
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['get_playlist'])
-<FilePlaylist other_list>
+<FilePlaylist mylist.hkp>
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['previous_playlist'])
@@ -187,7 +189,7 @@ Success
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['get_playlist'])
-<FilePlaylist other_list>
+<FilePlaylist mylist.hkp>
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['playlist_index'])
@@ -209,7 +211,7 @@ Success
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['get_playlist'])
-<FilePlaylist other_list>
+<FilePlaylist mylist.hkp>
 Success
 <BLANKLINE>
 >>> h = r.run_lines(h, ['playlist_index'])
@@ -219,44 +221,29 @@ Success
 
 *Taking notes*
 
->>> h = r.run_lines(h, ['''set_note "Hi there.\\nI'm a note"'''])
-Success
-<BLANKLINE>
->>> h = r.run_lines(h, ['note_filter_playlist --output_playlist filtered'])
->>> h = r.run_lines(h, ['get_playlist'])
->>> h = r.run_lines(h, ['jump_to_playlist -- -1'])
->>> h = r.run_lines(h, ['get_playlist'])
->>> h = r.run_lines(h, ['get_curve'])
->>> h = r.run_lines(h, ['curve_index'])
->>> h = r.run_lines(h, ['jump_to_curve -- -1'])
->>> h = r.run_lines(h, ['get_curve'])
->>> h = r.run_lines(h, ['curve_index'])
->>> h = r.run_lines(h, ['get_note'])
->>> h = r.run_lines(h, ['set_note ""'])
->>> h = r.run_lines(h, ['get_note'])
+See :file:`note.py`.
 
 *Exporting curves*
 
->>> os.path.exists('mycurve.dat')
->>> h = r.run_lines(h, ['export_bock --output mycurve.dat'])
->>> os.path.isfile('mycurve.dat')
+See :file:`export_block.py`.
 
 *Measuring distances and forces*
 
->>> h = r.run_lines(h, ['delta 300 500'])
+See :file:`delta.py`.
 
 *Worm like chain and freely jointed chain fitting*
 
-*Multiple curve fitting and measuring*
+*Command stacks*
+
+See :file:`command_stack.py`,
+:file:`apply_command_stack_to_playlist.py`, and
+:file:`command_stack_save_load.py`.
+
+*Multiple curve analysis*
 
-*Fast curve reviewing and saving*
+See :file:`multiple_curve_analysis`.
 
 *Configuring Hooke*
 
->>> h = r.run_lines(h, ['set_config conditions temperature 300.0'])
->>> h = r.run_lines(h, ['get_config conditions temperature'])
->>> h = r.run_lines(h, ['set_config conditions temperature 295.3'])
->>> h = r.run_lines(h, ['get_config conditions temperature'])
->>> h = r.run_lines(h, ['print_config'])
->>> h = r.run_lines(h, ['save_config'])
+See :file:`config.py`.
 """