Open kbvw opened 1 month ago
NMODL continuing to run after the SymPy error will be addressed by #1257.
However, it is not clear to me if a variable named is
should or should not be allowed in a mod file?
Yes, because NEURON + nocmodl allow it. The issue is with the string we generate that we then send to SymPy. We should add something to internally rename is
to something else (and later back to is
again).
When running NMODL on a mod file (
kv4_ch.mod
, found in https://github.com/Hjorthmedh/BasalGangliaData/tree/main/data/neurons/mechanisms) containing a variable namedis
, SymPy throws aSyntaxError
that later results in NMODL crashing with seemingly unrelated errors.After renaming the variable, NMODL runs without error. Tested on nightly 0.6.152 and on 0.5.