Skip to content

Bug report #242

Answered by cuihantao
jinningwang asked this question in Modeling
Dec 20, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

This seems to be a known issue. See the doc string in Delay: self.delay needs to be a scalar.

I think you can implement a DelayVec for the desired function. You can use for loops in check_var or check_eq and design suitable data structure. To store the values within the delay window, using a dictionary with the keys being the idxes and the values being a list of values can be a good choice.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jinningwang
Comment options

jinningwang Dec 20, 2021
Maintainer Author

Answer selected by jinningwang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants