Project

General

Profile

Actions

Bug #1886

closed

loggedmethod error for gatan.Gatan

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

Status:
Won't Fix or Won't Do
Priority:
Urgent
Assignee:
Category:
Leginon subsystem
Start date:
06/26/2012
Due date:
% Done:

0%

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

Description

File "c:\python25\Lib\site-packages\pyscope\loggedmethods.py", line 24, in new_f
if mylock._RLock__count == 1 and args0.logged_methods_on:
File "c:\python25\Lib\site-packages\pyscope\loggedmethods.py", line 27, in new_f
result = f(*args, **kwargs)
File "C:\Python25\lib\site-packages\pyscope\gatan.py", line 69, in getattribute
if attr_name in object.__getattribute__(self, 'unsupported'):
AttributeError: 'Gatan' object has no attribute 'unsupported'

on NRAMM gatan camera computer, we have avoid this by the following change at line 4 in pyscope/baseinstrument.py so that loggedmethods.LoggedMethodsBase does not need to be initialized.

#class BaseInstrument(loggedmethods.LoggedMethodsBase):
class BaseInstrument(object):
Actions #1

Updated by Anchi Cheng almost 12 years ago

made the same change in branch 2.2 as r16941 as a workaround. It is not usable otherwise.

Actions #2

Updated by Jim Pulokas over 10 years ago

  • Status changed from Assigned to Won't Fix or Won't Do
  • Assignee changed from Jim Pulokas to Anchi Cheng
  • Affected Version changed from Appion/Leginon 2.2.0 (trunk) to Appion/Leginon 2.2.0

r17402 is the workaround for trunk. wont fix, only needed for debugging anyway, not for everyone.

Actions

Also available in: Atom PDF