-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
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
Warning on attempt to save anonymous function #175
Comments
Hmm, that explains my problem. However, a warning that I'm saving an anonymous function is not really a solution to the problem that we'd still want (need!) to save a Do I understand correctly, that this issue will be fixed with #316 |
This will be fixed with #316 . |
JLD2 now warns when saving functions (v0.5.0) |
Consider the following.
I understand that it will never be practical to save anonymous functions in a HDF file. However, it would be helpful if
@save
raised a warning when you tried to do that.Among other things, it would save users from repeatedly raising this issue.
I ran across this when I tried to save a
DifferentialEquations.ODESolution
. That is the kind of thing you want to save, and it would be nice to get a warning when theODESolution
fordx/dt = f(t,x)
includesf
as an anonymous function. Unless you read the source ofDifferentialEquations
, there is no reason you would guess that it did.Related issues: #13 #86
The text was updated successfully, but these errors were encountered: