-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
I'd like to get your thoughts (or even help) on some changes that, I think, would improve the usability of our code. I found that we almost never prevent the user from things like putting into a negative maxStep in an InverseParam. I just did (not consciously) and found that it is very hard to trace back this error.
To prevent some of these things in the future, I was thinking about putting some sanity checks when constructing our types. What do you think?
Concretely, I suggest we check that in InverseParam
boundsLow .<= boundsHigh
alpha > 0
length(mref) == MInv.nc
maxStep > 0
maybe more? do you see other places where this might be useful?
Metadata
Metadata
Assignees
Labels
No labels