Closed ChristopherChudzicki closed 5 years ago
Thanks for doing this. Just the one comment.
Hmm. Sorry, I caught one more thing. gen_symbols_samples
now returns dictionaries containing all the variables AND constants, right? So in FormulaGrader
's raw_check
function, we don't need to initialize the variables with the constants any more; we can just set the variable list to the constants.
Also, there's a cute bug here that we need to fix: a dependent variable that has the same name as a constant can lead to problems. We need to scrub the list of constants of any variable names before we do the sampling.
:+1:
I think this is all set now! Good catches...
Also, there's a cute bug here that we need to fix: a dependent variable that has the same name as a constant can lead to problems. We need to scrub the list of constants of any variable names before we do the sampling.
Took me a little while to write an example.
It's a cute little gotcha, isn't it? You'd have to be doing something fairly contrived to trigger it, but still!
addresses #197