Skip to content

make the Project class pickleable #73

Closed as not planned
Closed as not planned

Description

@alexhroom

It would be useful to pickle the Project class, in particular for use of a ProcessPoolExecutor for asynchronously running RAT. However, this is tricky:

  • when attempting to use pickle, the ClassList class is not pickleable
    • this can be solved using the dill library which provides pickling for a wider range of objects
  • however with both pickle and dill, the input types for RAT_main are not pickleable. In general, it seems that pybind-generated classes cannot be pickled.

To pickle Project, we need to find a way of pickling the input types for RAT_main and then the whole class can be pickled via dill.

Activity

  1. self-assigned this
    on Sep 3, 2024
  2. alexhroom commented on Oct 7, 2024

    @alexhroom
    CollaboratorAuthor

    new possible method: just write a pickle function which converts to json and pickles, & the reverses for unpickling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions