We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AsdfFile
AsdfFile instances are not pickleable.
import asdf, pickle af = asdf.AsdfFile({'a': 1}) pickle.dumps(af)
Fails with
AttributeError: Can't pickle local object 'ValidatorManager._get_jsonschema_validator.<locals>._validator'
asdf version: main python version: 3.10 operating system: mac os (m1)
The text was updated successfully, but these errors were encountered:
To provide a bit more context. The lack of "pickle-ability" means AsdfFile instances do not play well with multiprocessing:
multiprocessing
def get_a(af): return af['a'] with multiprocessing.Pool(4): pool.map(get_a, [af])
Fails with the above error.
Sorry, something went wrong.
No branches or pull requests
Description of the problem
AsdfFile
instances are not pickleable.Example of the problem
Fails with
System information
asdf version: main
python version: 3.10
operating system: mac os (m1)
The text was updated successfully, but these errors were encountered: