I have run NO tests. improved variable naming, changed iterative step to use recursion to reconstruct lists with transform, instead of having varying but repetitive code. Simplified feature counting as a separate function and reduced if statements where any count < 4 just returns it's feature count and anything above 3 considered it's dependency status.
unload could probably be improved if dialog is a sub classed from _io module and just check that the file is closed, assigning None to it is a bit pointless, removed u prefix from strings as that is an old Unicode thing from python 2. Python 3 supports Unicode full stop
also setValue doesn't PyQt support floats so you can get a more fine grain loading bar
I have run NO tests. improved variable naming, changed iterative step to use recursion to reconstruct lists with transform, instead of having varying but repetitive code. Simplified feature counting as a separate function and reduced if statements where any count < 4 just returns it's feature count and anything above 3 considered it's dependency status.
unload
could probably be improved if dialog is a sub classed from_io
module and just check that the file is closed, assigning None to it is a bit pointless, removedu
prefix from strings as that is an old Unicode thing from python 2. Python 3 supports Unicode full stopalso
setValue
doesn't PyQt support floats so you can get a more fine grain loading bar