>>> block_info_already_exists = os.path.exists(file_name)
>>> block_info_already_exists
False
->>> h = r.run_lines(h, ['block_info --output %s name columns "raw info.file*"'
+>>> h = r.run_lines(h, ['block_info --output %s name columns "raw info.Scanner list.Serial n*"'
... % file_name]) # doctest: +ELLIPSIS, +REPORT_UDIFF
{'columns': ['z piezo (m)', 'deflection (m)'],
'index': 0,
'name': 'approach',
- 'raw info': {'filetype': 'picoforce'}}
+ 'raw info': {'Scanner list': {'Serial number': '196PF'}}}
Success
<BLANKLINE>
>>> with open(file_name, 'r') as f:
columns: [z piezo (m), deflection (m)]
index: 0
name: approach
- raw info: {filetype: picoforce}
+ raw info:
+ Scanner list: {Serial number: 196PF}
path: .../test/data/picoforce.000
<BLANKLINE>
"""
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: picoforce.000
path: .../test/data/picoforce.000
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.picoforce.PicoForceDriver object at 0x...>
-filetype: picoforce
note: None
command stack: []
blocks: 2
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 20080428_a53t-0-0-10.dat
path: .../test/data/fclamp_hemingway/20080428_a53t-0-0-10.dat
-experiment: <hooke.experiment.ForceClamp object at 0x...>
driver: <hooke.driver.hemingway.HemingwayDriver object at 0x...>
-filetype: hemingway
note: None
command stack: []
blocks: 1
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 2009.04.23-15.15.47.jpk
path: .../test/data/vclamp_jpk/2009.04.23-15.15.47.jpk
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.jpk.JPKDriver object at 0x...>
-filetype: jpk
note: None
command stack: []
blocks: 2
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: Line0004Point0000.ibw
path: .../test/data/vclamp_mfp3d/Line0004Point0000.ibw
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.mfp3d.MFP3DDriver object at 0x...>
-filetype: mfp3d
note: None
command stack: []
blocks: 3
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: Image0396.ibw
path: .../test/data/vclamp_mfp3d/Image0396.ibw
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.mfp3d.MFP3DDriver object at 0x...>
-filetype: mfp3d
note: None
command stack: []
blocks: 3
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 20071120a_i27_t33.100
path: .../test/data/vclamp_picoforce/20071120a_i27_t33.100
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.picoforce.PicoForceDriver object at 0x...>
-filetype: picoforce
note: None
command stack: []
blocks: 2
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 0x07200000
path: .../test/data/vclamp_picoforce/0x07200000
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.picoforce.PicoForceDriver object at 0x...>
-filetype: picoforce
note: None
command stack: []
blocks: 2
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 0x06130001
path: .../test/data/vclamp_picoforce/0x06130001
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.picoforce.PicoForceDriver object at 0x...>
-filetype: picoforce
note: None
command stack: []
blocks: 2
>>> h = r.run_lines(h, ['curve_info']) # doctest: +ELLIPSIS, +REPORT_UDIFF
name: 20100504144209_unfold
path: .../test/data/vclamp_wtk/unfold/20100504/20100504144209_unfold
-experiment: <hooke.experiment.VelocityClamp object at 0x...>
driver: <hooke.driver.wtk.WTKDriver object at 0x...>
-filetype: wtk
note: None
command stack: []
blocks: 2