RascalSoftware / python-RAT

Python interface for RAT
1 stars 5 forks source link

make the `Project` class pickleable #73

Open alexhroom opened 2 months ago

alexhroom commented 2 months ago

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

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.

alexhroom commented 4 weeks ago

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