Bug #2874
closedsave_frames __getattr__ error
0%
Description
Traceback (most recent call last):
....
In calling self.save_frames on an Eagle camera, got
File "/Users/acheng/myami/pyscope/tia.py", line 52, in getattr
return ccdcamera.CCDCamera.__getattr__(self, name)
AttributeError: type object 'CCDCamera' has no attribute '__getattr__'
Updated by Anchi Cheng over 10 years ago
- Subject changed from save_frames not defined in CCDCamera baseclass to save_frames not defined in TIA_Falcon class and __getattr__ not defined in CCDCamera class
- Assignee set to Anchi Cheng
r18465 defines default save_frames for TIA_Falcon to fix attribute error.
It also direct unhappy path to CCDCamera.__getattribute__ since getattr (The local function used when attribute is not defined) is not defined in CCDCamera and I am not sure how we want it to be.
There is also such a call to CCDCamera.__getattr__ in gatan.py Leave it alone until later.
Updated by Anchi Cheng over 10 years ago
- Subject changed from save_frames not defined in TIA_Falcon class and __getattr__ not defined in CCDCamera class to save_frames __getattr__ error
recalled that it had to be in TIA base class probably because TIA_Falcon use super as the first thing in init. Since I don't have a Falcon to test now, leave it in TIA since it worked when the bug was discovered r18469
Updated by Anchi Cheng almost 7 years ago
- Status changed from New to Closed
- Target version set to Appion/Leginon 3.1.0