We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 618cc02 commit 2b9c2bfCopy full SHA for 2b9c2bf
pyneuroml/neuron/analysis/HHanalyse.py
@@ -404,7 +404,7 @@ def main():
404
val = eval("sec(0.5)." + s + "_" + chanToTest)
405
406
if s not in foundInf:
407
- rel_dif = (lastCheckVal[s] - val) / val if val > sys.float_info.epsilon else 0.0
+ rel_dif = (lastCheckVal[s] - val) / val if val > sys.float_info.epsilon else lastCheckVal[s]
408
if abs(rel_dif) > tolerance:
409
if verbose:
410
print(
0 commit comments