You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having some trouble using produce_or_load when my types change, which they often do during my development. The issue is that since I cannot pass any arguments to wload within produce_or_load so then I cannot pass a typemap to tell JLD2 how to reconstruct my types.
I could of course use load directly but I'd rather use DrWatson's methods.
Possibly something along these lines could resolve this?
Add the following kwarg to produce_or_load: wload_kwargs (there is already a wsave_kwargs).
Then modify the calls data = wload(file) to data = wload(file; wload_kwargs...).
If there is already a way of achieving this and I have missed it, please let me know.
If everyone agrees, I can make a PR to implement this change.
Edit: Spelling
The text was updated successfully, but these errors were encountered:
Hello!
I am having some trouble using
produce_or_load
when my types change, which they often do during my development. The issue is that since I cannot pass any arguments towload
withinproduce_or_load
so then I cannot pass atypemap
to tell JLD2 how to reconstruct my types.I could of course use
load
directly but I'd rather use DrWatson's methods.Possibly something along these lines could resolve this?
Add the following kwarg to
produce_or_load
:wload_kwargs
(there is already awsave_kwargs
).Then modify the calls
data = wload(file)
todata = wload(file; wload_kwargs...)
.If there is already a way of achieving this and I have missed it, please let me know.
If everyone agrees, I can make a PR to implement this change.
Edit: Spelling
The text was updated successfully, but these errors were encountered: