biophysics_fitting
❭ utils
❭ VariableThatDoesNotGetPickled
VariableThatDoesNotGetPickled¶
- class biophysics_fitting.utils.VariableThatDoesNotGetPickled(stored_item)¶
A variable that does not get pickled.
As soon as the object is pickled, the stored item is set to None.
This is used to keep a multiprocessing pool alive in a child process, but prevent it from being serialized and crossing process boundaries. Using this, the process pool only exists in the child process.