Documentation on providing time-dependent input to brainpy.dyn.DSRunner
#448
Labels
documentation
Improvements or additions to documentation
brainpy.dyn.DSRunner
#448
Hi, I hope to give a time-dependent input to a Hodgkin-Huxley model, but the tutorial does not provide a detailed guide on how to implement this. I found that
brainpy.DSRunner
can receive a function to argumentinputs
, so I try the following code:However, the result is the same as setting the input current to zero. The function
I_inject
outputs the correct value, but it seems that the value is never used.The documention on
brainpy.DSRunner
(https://brainpy.readthedocs.io/en/latest/apis/auto/generated/brainpy.DSRunner.html) also provides another piece of information:But the documentation of
DSRunner.predict
is not very clear. It seems that we can only pre-generate the input data and use it when running the model. But what if the input can only be generated during runtime?In summary, I have three questions:
inputs
argument inbrainpy.DSRunner
work?brainpy.DSRunner
?brainpy.DSRunner
?Thanks!
The text was updated successfully, but these errors were encountered: