Skip to content

Unable to provide fast (eg dt=0.1) timestamps for amplitude injection #429

@renniek

Description

@renniek

Hi there,

I am new to using BMTK, and I am trying to run a model where I inject a noisy current step using the IClamp module. I want this current injection to be a time varying stimulus with 0.1 ms steps. However, when I try to provide this resolution of time steps I get an error "Exception: IClampMod: csv timestamps column (timestamps) must have a consistent intervals." I think I have narrowed it down to how Python is representing floating points, and that there is an accumulation of errors across the timestamps vector such that when you run np.unique(np.diff(timestamps)), there are several different "interval" values. If I make my timestamps vector in increments of 1 (so dt=1ms), then I don't have this issue.

Ideally, I would inject a time varying stimulus defined by smaller timestamps than 1ms, though. Is there any way to allow for this functionality with the current set up?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions