Project

General

Profile

Actions

Bug #3318

open

TIA camera getImage function returns error 'tuple' object has no attribute 'shape'

Added by Anchi Cheng about 9 years ago. Updated about 9 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
07/19/2015
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

use exe file at this site and replace safearray.py as instructed in [[Installing_comtypes]]


Description

The pyscope camera test failed at

c.getImage()
Actions #1

Updated by Anchi Cheng about 9 years ago

  • Workaround updated (diff)

See https://pythonhosted.org/comtypes/#numpy-arrays-as-output-arguments

The default output is tuple or tuple, not 2D numpy ndarray.

When this happened at TSRI, it turns out that a newer version of comtypes was installed, not 0.6.2 in files of this site.

During debugging, we found that the replacement safearray.py found in pyscope that gives ndarray output can not be used to replace the 1.1 version one. This needs to be updated. In the mean time, the workaround is to use the 0.6.2 version. See Installing_comtypes

Use workaround in the mean time.

Actions

Also available in: Atom PDF