-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add reduce method to allow for pickling of Parallel table objects.
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5cad3da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW you can make the factory function a classmethod. Nice to keep things in one place
5cad3da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! The problem now is how to get this to behave like the TableProxy in dask-ms. Unfortunately I cannot figure out how to use the metaclass trick as the Table class is a Boost.Python.class i.e. one gets
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
and I cannot think of a simple way to resolve this. I thought that maybe it would be possible to do it using the__new__
method to check the cache on instantiation but I cannot quite get that right. Oh well, learning loads.5cad3da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.