Closed al-maisan closed 13 years ago
The above is slightly misleading, I meant we should consider refactoring our job system to make use of dependency injection techniques as opposed to monkey patching python's internal class structures. The current approach pushes us further down a path where we have to do more magic/weird things etc.
I'm diving into the current mixin mechanism (for the Classical PSHA Based Mixin story), it is interesting, but maybe it's too much involved to grasp it immediately, IMHO we should keep things more straightforward to understand, also from an external contributor point of view
This makes pylint unhappy in certain cases, example:
openquake/risk/job/probabilistic.py: [W0232, ProbabilisticEventMixin] Class has no init method openquake/risk/job/probabilistic.py: [W0201, ProbabilisticEventMixin.epsilon] Attribute 'samples' defined outside init