False
>>> h = r.run_lines(h, ['block_info --output %s name columns "raw info.file*"'
... % file_name]) # doctest: +ELLIPSIS, +REPORT_UDIFF
-{'index': 0, 'name': 'approach', 'columns': ['z piezo (m)', 'deflection (m)'], 'raw info': {'filetype': 'picoforce'}}
+{'columns': ['z piezo (m)', 'deflection (m)'],
+ 'index': 0,
+ 'name': 'approach',
+ 'raw info': {'filetype': 'picoforce'}}
Success
<BLANKLINE>
>>> with open(file_name, 'r') as f:
... text = f.read()
>>> if block_info_already_exists == False:
... os.remove(file_name)
->>> print text
+>>> print text # doctest: +ELLIPSIS, +REPORT_UDIFF
picoforce.000:
approach:
columns: [z piezo (m), deflection (m)]
index: 0
name: approach
raw info: {filetype: picoforce}
- path: /tmp/hooke/test/data/picoforce.000
+ path: .../test/data/picoforce.000
<BLANKLINE>
"""
['default']
>>> with open(os.path.join(target_dir, 'default'), 'r') as f:
... print f.read()
-- arguments: {input: !!python/unicode 'test/data/test'}
+- arguments: {input: test/data/test}
command: load playlist
- arguments: {}
command: get curve
['default', 'my_stack']
>>> with open(os.path.join(target_dir, 'my_stack'), 'r') as f:
... print f.read()
-- arguments: {input: !!python/unicode 'test/data/test'}
+- arguments: {input: test/data/test}
command: load playlist
- arguments: {}
command: get curve
<BLANKLINE>
>>> with open(os.path.join(target_dir, 'default'), 'r') as f:
... print f.read()
-- arguments: {input: !!python/unicode 'test/data/test'}
+- arguments: {input: test/data/test}
command: load playlist
- arguments: {}
command: get curve
<BLANKLINE>
>>> with open(os.path.join(target_dir, 'my_stack'), 'r') as f:
... print f.read()
-- arguments: {input: !!python/unicode 'test/data/test'}
+- arguments: {input: test/data/test}
command: load playlist
- arguments: {}
command: get curve
>>> h = r.run_lines(h,
... ['zero_surface_contact_point --block retract']
... ) # doctest: +ELLIPSIS, +REPORT_UDIFF
-{'info':...}
+{'active fitted parameters':...}
Success
<BLANKLINE>
>>> h = r.run_lines(h, ['flat_filter_peaks --block retract']
Success
<BLANKLINE>
>>> h = r.run_lines(h, ['zero_surface_contact_point --block retract']
-... ) # doctest: +ELLIPSIS, +REPORT_UDIFF
-{'info':...'fitted parameters': [8.413...e-08, 2.812...e-10, 158.581...],...}
+... ) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE, +REPORT_UDIFF
+{...'fitted parameters': [8.413...e-08, 2.812...e-10, 158.581...],...}
Success
<BLANKLINE>
>>> h = r.run_lines(h, ['polynomial_flatten --block retract --deflection_column "surface deflection (m)" --degree 1'])
========================================
...
>>> h = r.run_lines(h, ['help load_playlist'])
-Command: load_playlist
-<BLANKLINE>
-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.
-drivers DRIVER (driver) Drivers for loading curves.
+Usage: load_playlist [options]
+<BLANKLINE>
+Options:
+ -h, --help show this help message and exit
+ --disable-stack Add this command to appropriate command stacks. (True)
+ --output_playlist=OUTPUT_PLAYLIST
+ Name of the new playlist (defaults to an auto-
+ generated name). (None)
+ --drivers=DRIVERS Drivers for loading curves. (None)
<BLANKLINE>
Load a playlist.
<BLANKLINE>
>>> h = Hooke()
>>> r = HookeRunner()
>>> h = r.run_lines(h, ['help flat_filter_playlist']) # doctest: +REPORT_UDIFF +ELLIPSIS
-Command: flat_filter_playlist...
+Usage: flat_filter_playlist...
F. Musiani, M. Brucale, L. Bubacco, B. Samorì.
"Conformational equilibria in monomeric α-Synuclein at the
...
Success
<BLANKLINE>
>>> h = r.run_lines(h, ['zero_surface_contact_point --block retract']
-... ) # doctest: +ELLIPSIS, +REPORT_UDIFF
-{'info':...'fitted parameters': [8.413...e-08, 2.812...e-10, 158.581...],...}
+... ) # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE, +REPORT_UDIFF
+{...'fitted parameters': [8.413...e-08, 2.812...e-10, 158.581...],...}
Success
<BLANKLINE>
>>> curve = h.playlists.current().current()