Using self.__class__.mro() to get the Parent class, maybe there is a better way? Regardless, that simple adjustment lets me wrap the Find method returned lists for all PyObjects to their respective class (PyTable, PyMeasure, PyColumn, etc.)
Add function to utils for later use, just nests a list by x amount. Ex. get_sub_list([1,2,3,4,5,6],2) == [[1,2],[3,4],[5,6]]. Will use this later to experiment with multiprocessing out larger bulk queries.
self.__class__.mro()
to get the Parent class, maybe there is a better way? Regardless, that simple adjustment lets me wrap theFind
method returned lists for allPyObjects
to their respective class (PyTable, PyMeasure, PyColumn, etc.)get_sub_list([1,2,3,4,5,6],2) == [[1,2],[3,4],[5,6]]
. Will use this later to experiment with multiprocessing out larger bulk queries.