# HH models integration errors

**URL:** <https://brian.discourse.group/t/hh-models-integration-errors/439>\
**Category:** Support\
**Tags:** equations\
**Created:** [23 July 2021 11:39 UTC](https://brian.discourse.group/t/hh-models-integration-errors/439 "2021-07-23T11:39:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![linusconrad](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/linusconrad/32/221_2.png) [@linusconrad](https://brian.discourse.group/u/linusconrad)\
**Post date:** [23 July 2021 12:38 UTC](https://brian.discourse.group/t/hh-models-integration-errors/439/2 "2021-07-23T12:38:20Z")

</div>

Never mind found this old entry about wrong signs.

> [@Dynamic current leads to runaway values](https://brian.discourse.group/t/dynamic-current-leads-to-runaway-values/267):
>
> Hello, I’m trying to inject a current which is dependent on the membrane voltage. I’ve already created a TimedArray of conductance values and multiply this by Vm to get the current. However, during the run both current and voltage quickly become too large or NaN (depending on integration method). I suspect this is due to the current and voltage amplifying each other. Is there a way to update the current based on the voltage one time-step in to the past, or an even better way? Minimal code to r…

Checking and fixing those did the trick

---

_[View the full topic](https://brian.discourse.group/t/hh-models-integration-errors/439)._
