Feature #2487
closed
Added by Anchi Cheng over 11 years ago.
Updated almost 11 years ago.
Description
Because Leginon node classes always assumes that there is a logger attribute, it is hard to do a direct python command testing. A simulated logger makes it possible to test, for example, correctorclient.CorrectorClient()
- Category set to Leginon subsystem
- Status changed from Assigned to In Code Review
- Assignee changed from Anchi Cheng to Jim Pulokas
r17833 adds this.
Use it like this:
from leginon import correctorclient,simulogger
c_client = correctorclient.CorrectorClient()
c_client.logger = simulogger.Logger()
- Category changed from Leginon subsystem to developer tool
- Status changed from In Code Review to Closed
- Target version set to myami-3.0
Also available in: Atom
PDF