Open tangkong opened 7 months ago
Just to add a bit, typically there are two reasons you might delay an import or put it inside some internal function:
I don't think either of these are true here.
I overlooked the actual reason these are imported in the method: PyDM's initialization routines don't work well if more than one Display
subclass is present in the file's namespace
This makes me want to reconsider initializing this through PyDMApplication at all. Refactoring this to just use a standard QApplication would be my suggestion if it didn't result in loads of teardown errors... 🤔
I'll have to look into exactly which parts of PyDMApplication are necessary for this work
Expected Behavior
There are places where we import modules/functions inside functions, rather than in the module preamble. For example:
Current Behavior
We should structure the package more sensibly
Possible Solution
Copy paste, see if it breaks?
Context
100
Your Environment
pcds-5.8.1