Project

General

Profile

Actions

Bug #2874

closed

save_frames __getattr__ error

Added by Anchi Cheng almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Start date:
07/31/2014
Due date:
% Done:

0%

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

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__'

Actions #1

Updated by Anchi Cheng almost 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.

Actions #2

Updated by Anchi Cheng almost 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

Actions #3

Updated by Anchi Cheng over 6 years ago

  • Status changed from New to Closed
  • Target version set to Appion/Leginon 3.1.0
Actions

Also available in: Atom PDF