I have a sdaps tenq survey which I can run:

[tkovacs@sunspot new]$ sdaps tenq recognize
------------------------------------------------------------------------------
- SDAPS -- recognize
------------------------------------------------------------------------------
6 sheets
|################################################################| 100% 00:00:01
0.219686 seconds per sheet


without issue but the custom script throws an error.  Am I doing something 
wrong?


[tkovacs@sunspot new]$ ./sdaps-recognize.py tenq tenq_scan.tif
Traceback (most recent call last):
  File "./sdaps-recognize.py", line 73, in <module>
    survey.questionnaire.recognize.recognize()
  File "/usr/lib64/python2.7/site-packages/sdaps/recognize/buddies.py", line 
479, in recognize
    res = self.identify(clean=False)
  File "/usr/lib64/python2.7/site-packages/sdaps/recognize/buddies.py", line 
465, in identify
    self.obj.sheet.recognize.recognize()
  File "/usr/lib64/python2.7/site-packages/sdaps/recognize/buddies.py", line 
85, in recognize
    self.duplex_copy_image_attr(failed_pages, 'rotated', _("Neither %s, %i or 
%s, %i has a known rotation!"))
  File "/usr/lib64/python2.7/site-packages/sdaps/recognize/buddies.py", line 
292, in duplex_copy_image_attr
    second = self.obj.images[i + 1]
IndexError: list index out of range


Terrence Kovacs
Research Systems Engineer
Physics and Astronomy Department
Dartmouth College
Wilder 341, 603-646-9303

Reply via email to