Closed kitchoi closed 8 years ago
I think this is the best I could do... I was thinking of this: since only EngineManagerStadnalone
uses AddEngineSourceToMayavi
so perhaps I should move it there straight away. However then I think it is nice to have each panel of the GUI having an isolated non-GUI class that does the same thing and reuse the functions. Reusability was the motivation for having EngineManagerStandalone
(vs EngineManagerStandaloneUI
), AddEngineSourceToMayavi
(vs AddSourcePanel
) and RunAndAnimate
(vs RunAndAnimate
)
Summary, with this, the only code block that assigns
point_scalars_name
... is inCUDSSource._select_attributes
. The related docstring is only duplicated twice, once inCUDSSource.__init__
, and once inEngineSource.__init__