X-Git-Url: http://git.tremily.us/?p=hooke.git;a=blobdiff_plain;f=test%2Fjpk_driver.py;h=cfc11c9ed319c3145feb34c78b6bb7e075a6fb0b;hp=d3b80b63dcdfd10730069793d6a9cb3bcdd28ed0;hb=2db803a170da4792c4bcd11228da56038cb4261e;hpb=3b1055628b5ffabafba71774d7688e6e2a54085a diff --git a/test/jpk_driver.py b/test/jpk_driver.py index d3b80b6..cfc11c9 100644 --- a/test/jpk_driver.py +++ b/test/jpk_driver.py @@ -2,15 +2,15 @@ # # This file is part of Hooke. # -# Hooke is free software: you can redistribute it and/or -# modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation, either -# version 3 of the License, or (at your option) any later version. +# Hooke is free software: you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. # -# Hooke is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Lesser General Public License for more details. +# Hooke is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General +# Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with Hooke. If not, see @@ -23,18 +23,23 @@ >>> r = HookeRunner() >>> playlist = os.path.join('test', 'data', 'vclamp_jpk', 'playlist') >>> h = r.run_lines(h, ['load_playlist ' + playlist]) # doctest: +ELLIPSIS - + Success >>> 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: None +path: .../test/data/vclamp_jpk/2009.04.23-15.15.47.jpk driver: -filetype: None -note: +note: None +command stack: [] blocks: 2 +block names: ['approach', 'retract'] block sizes: [(4096, 6), (4096, 4)] Success +>>> p = h.playlists.current() +>>> for i,curve in enumerate(p.items()): +... print i, [d.info['name'] for d in curve.data] +... # doctest: +REPORT_UDIFF + """