Add direct form iir sfg gen
Closes #274 (closed)
Edited by Simon Bjurek
Merge request reports
Activity
assigned to @simbj106
@oscgu95 This mr contains generators for direct-for IIR 1 and 2. They are used by me to generate simple scheduling examples. Made some changes in plot_window.py that were still based on Qt5. Branch originally made from "add-list-scheduler" and thus the other branch should be merged first.
- Resolved by Simon Bjurek
255 255 output <<= tmp_add 256 256 257 257 return SFG([input_op], [output], name=Name(name)) 258 259 260 def direct_form_1_iir( 261 b: Sequence[complex], 262 a: Sequence[complex], 263 name: Optional[str] = None, 264 mult_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None, 265 add_properties: Optional[Union[Dict[str, int], Dict[str, Dict[str, int]]]] = None, 266 ) -> SFG: 267 """Generates a direct-form IIR filter of type I with coefficients a and b.""" 268 if len(a) != len(b): 269 raise ValueError("size of coefficient lists a and b are not the same") reset approvals from @oscgu95 by pushing to the branch
added 8 commits
-
8f2a3b2d - 1 commit from branch
master
- 6feb66ab - bumped to qtpy6
- 0fe46553 - work in progress, seems like feed-forward part of direct-form I is working
- 839d9706 - generators for direct form iir 1 and 2 working, needs automatic tests
- 4535a14d - removed commented code
- 78962bef - improved some of the styling
- 7e2285ae - added docstrings
- 2ce89054 - Apply 1 suggestion(s) to 1 file(s)
Toggle commit list-
8f2a3b2d - 1 commit from branch
reset approvals from @oscgu95 by pushing to the branch
enabled an automatic merge when all merge checks for 2ce89054 pass
Please register or sign in to reply