Open chrishavlin opened 3 weeks ago
Setting to draft for now because I want to see if I can write a test with some pytest monkeypatching.
Also note that the fix here is not backwards compatible -- IMO it's fine because I don't think many folks are using this functionality and it's not meant for long-term dataset storage anyway.
assuming tests pass this should be ready for review
oh, those are real failures. will take another go at those pytest fixtures....
Currently, the
Dataset
pickling is broken between python sessions when using the yt config optionstore_parameter_files = true
. For example, given two scripts,create_a_pickle.py
andload_a_pickle.py
:The following fails on the attempt to load:
(I also ran into this problem when experimenting with some dask functionality...).
The issue comes how yt now imports frontends on demand (
output_type_registry
is reset between sessions).