Skip to content

Commit 2b9c2bf

Browse files
committed
ooops, had forgotten to commit right logic
1 parent 618cc02 commit 2b9c2bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyneuroml/neuron/analysis/HHanalyse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def main():
404404
val = eval("sec(0.5)." + s + "_" + chanToTest)
405405

406406
if s not in foundInf:
407-
rel_dif = (lastCheckVal[s] - val) / val if val > sys.float_info.epsilon else 0.0
407+
rel_dif = (lastCheckVal[s] - val) / val if val > sys.float_info.epsilon else lastCheckVal[s]
408408
if abs(rel_dif) > tolerance:
409409
if verbose:
410410
print(

0 commit comments

Comments
 (0)